Get the Best IPTV Service
(self.webpackChunkdiscourse=self.webpackChunkdiscourse||[]).push([[987],{74803:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"+9aUAbN/",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["about-wrapper",[28,[37,1],null,[["model","contactInfo","faqOverridden"],[[30,0,["model"]],[30,0,["contactInfo"]],[30,0,["faqOverridden"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["about-page"],null]],[1,"\\n\\n "],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n\\n "],[10,"ul"],[14,0,"nav-pills"],[12],[1,"\\n "],[10,"li"],[14,0,"nav-item-about"],[12],[8,[39,7],[[24,0,"active"]],[["@route"],["about"]],[["default"],[[[[1,[28,[35,8],["about.simple_title"],null]]],[]]]]],[13],[1,"\\n"],[41,[30,0,["faqOverridden"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,7],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,8],["guidelines"],null]]],[]]]]],[13],[1,"\\n "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,7],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,8],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renameFaqToGuidelines"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,7],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,8],["guidelines"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,7],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,8],["faq"],null]]],[]]]]],[13],[1,"\\n "]],[]]]],[]]],[41,[30,0,["site","tos_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-tos"],[12],[8,[39,7],null,[["@route"],["tos"]],[["default"],[[[[1,[28,[35,8],["tos"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["site","privacy_policy_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-privacy"],[12],[8,[39,7],null,[["@route"],["privacy"]],[["default"],[[[[1,[28,[35,8],["privacy"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],[],false,["plugin-outlet","hash","body-class","section","div","ul","li","link-to","i18n","if","about-page"]]',moduleName:"discourse/templates/about.hbs",isStrictMode:!1})},70473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"avVPaqci",block:'[[[1,[28,[35,0],["account-created-page"],null]],[1,"\\n"],[1,[28,[35,1],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,2]],[1,"\\n"],[10,0],[14,0,"account-created"],[12],[1,"\\n "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","hide-application-header-buttons","hide-application-sidebar","div","component","-outlet"]]',moduleName:"discourse/templates/account-created.hbs",isStrictMode:!1})},3408:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"kP+B4vBb",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[10,0],[14,0,"ac-message"],[12],[1,"\\n "],[8,[39,2],null,[["@email","@updateNewEmail"],[[30,0,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"activation-controls"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n "],[8,[39,3],[[24,0,"edit-cancel"]],[["@action","@label"],[[30,0,["cancel"]],"cancel"]],null],[1,"\\n"],[13]],[],false,["signup-progress-bar","div","activation-email-form","d-button"]]',moduleName:"discourse/templates/account-created/edit-email.hbs",isStrictMode:!1})},98639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"Kzx9O+XM",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[8,[39,1],null,[["@header"],[[30,0,["welcomeTitle"]]]],null],[1,"\\n"],[10,0],[14,0,"success-info"],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["accountCreated","message"]]],null]],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["accountCreated","show_controls"]],[[[1," "],[8,[39,5],null,[["@sendActivationEmail","@editActivationEmail"],[[28,[37,6],[[30,0],"sendActivationEmail"],null],[28,[37,6],[[30,0],"editActivationEmail"],null]]],null],[1,"\\n"]],[]],null]],[],false,["signup-progress-bar","welcome-header","div","html-safe","if","activation-controls","action"]]',moduleName:"discourse/templates/account-created/index.hbs",isStrictMode:!1})},44786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"W/KKEmCX",block:'[[[8,[39,0],null,[["@step"],["activate"]],null],[1,"\\n"],[10,0],[14,0,"ac-message"],[12],[1,"\\n"],[41,[30,0,["email"]],[[[1," "],[1,[28,[35,3],[[28,[37,4],["login.sent_activation_email_again"],[["currentEmail"],[[30,0,["email"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["login.sent_activation_email_again_generic"],null]],[1,"\\n"]],[]]],[13]],[],false,["signup-progress-bar","div","if","html-safe","i18n"]]',moduleName:"discourse/templates/account-created/resent.hbs",isStrictMode:!1})},91586:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ELctwfve",block:'[[[8,[39,0],null,null,null],[1,"\\n"],[8,[39,1],null,null,null],[1,"\\n\\n"],[8,[39,2],[[4,[38,3],[[30,0,["trackDiscoursePainted"]]],null]],null,[["default"],[[[[1,"\\n "],[10,3],[14,6,"#main-container"],[14,1,"skip-link"],[12],[1,[28,[35,5],["skip_to_main_content"],null]],[13],[1,"\\n "],[8,[39,6],null,null,null],[1,"\\n "],[8,[39,7],null,null,null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["above-site-header","div",[28,[37,9],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showSiteHeader"]],[[[1," "],[8,[39,11],null,[["@canSignUp","@showCreateAccount","@showLogin","@showKeyboard","@toggleMobileView","@logout","@sidebarEnabled","@showSidebar","@toggleSidebar"],[[30,0,["canSignUp"]],[28,[37,12],["showCreateAccount"],null],[28,[37,12],["showLogin"],null],[28,[37,12],["showKeyboardShortcutsHelp"],null],[28,[37,12],["toggleMobileView"],null],[28,[37,12],["logout"],null],[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]],[30,0,["toggleSidebar"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,null,null],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_offline_indicator"]],[[[1," "],[8,[39,14],null,null,null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["below-site-header","div",[28,[37,9],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,1,"main-outlet-wrapper"],[14,0,"wrap"],[14,"role","main"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-wrapper"],[12],[1,"\\n"],[41,[28,[37,16],[[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]]],null],[[[1," "],[8,[39,17],null,[["@toggleSidebar"],[[28,[37,18],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,19],null,null,null],[1,"\\n\\n "],[8,[39,8],null,[["@name"],["before-main-outlet"]],null],[1,"\\n\\n "],[10,0],[14,1,"main-outlet"],[12],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName"],["above-main-container","div"]],null],[1,"\\n "],[10,0],[14,0,"container"],[14,1,"main-container"],[12],[1,"\\n"],[41,[30,0,["showTop"]],[[[1," "],[8,[39,20],null,[["@name"],["top"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,21],null,null,null],[1,"\\n "],[8,[39,22],null,null,null],[1,"\\n "],[8,[39,23],null,null,null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["top-notices","div",[28,[37,9],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[46,[28,[37,25],null,null],null,null,null],[1,"\\n\\n "],[8,[39,26],null,null,null],[1,"\\n "],[8,[39,8],null,[["@name","@outletArgs"],["main-outlet-bottom",[28,[37,9],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@name"],["after-main-outlet"]],null],[1,"\\n\\n"],[41,[30,0,["showPoweredBy"]],[[[1," "],[8,[39,27],null,null,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["above-footer","div",[28,[37,9],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n"],[41,[30,0,["showFooter"]],[[[1," "],[8,[39,20],null,[["@name","@triggerAppEvent","@classNames"],["footer","true","custom-footer-content"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["below-footer","div",[28,[37,9],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n\\n "],[8,[39,28],null,null,null],[1,"\\n "],[8,[39,29],null,null,null],[1,"\\n "],[8,[39,30],null,null,null],[1,"\\n "],[8,[39,31],null,null,null],[1,"\\n "],[8,[39,32],null,null,null],[1,"\\n "],[8,[39,33],null,null,null],[1,"\\n\\n"],[41,[30,0,["showFooterNav"]],[[[1," "],[8,[39,8],null,[["@name"],["footer-nav"]],[["default"],[[[[1,"\\n "],[8,[39,34],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[8,[39,35],null,null,null],[1,"\\n"],[8,[39,36],null,null,null],[1,"\\n"],[8,[39,37],null,null,null]],[],false,["d-styles","d-virtual-height","discourse-root","did-insert","a","i18n","d-document","page-loading-slider","plugin-outlet","hash","if","glimmer-site-header","route-action","software-update-prompt","offline-indicator","div","and","sidebar","action","loading-slider-fallback-spinner","custom-html","notification-consent-banner","pwa-install-banner","global-notice","component","-outlet","card-container","powered-by-discourse","d-lightbox","modal-container","dialog-holder","topic-entrance","composer-container","render-glimmer-container","footer-nav","d-menus","d-tooltips","d-toasts"]]',moduleName:"discourse/templates/application.hbs",isStrictMode:!1})},7851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ManfXvfJ",block:'[[[1,[28,[35,0],["badges-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container badges"],[12],[1,"\\n "],[10,"h1"],[12],[1,[28,[35,4],["badges.title"],null]],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName"],["below-badges-title","div"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"badge-groups"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["badgeGroups"]]],null]],null],null,[[[1," "],[10,0],[14,0,"badge-grouping"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,"\\n "],[10,"h2"],[12],[1,[30,1,["badgeGrouping","displayName"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,1,["badges"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@badge","@username"],[[30,2],[30,0,["currentUser","username"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["bg","b"],false,["body-class","section","div","h1","i18n","span","plugin-outlet","each","-track-array","h2","badge-card"]]',moduleName:"discourse/templates/badges/index.hbs",isStrictMode:!1})},18596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"romIclfh",block:'[[[41,[30,0,["canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[15,0,[29,["container show-badge ",[30,0,["model","slug"]]]]],[12],[1,"\\n "],[10,"h1"],[12],[1,"\\n "],[8,[39,4],null,[["@route"],["badges.index"]],[["default"],[[[[1,[28,[35,5],["badges.title"],null]]],[]]]]],[1,"\\n /\\n "],[1,[30,0,["model","name"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"show-badge-details"],[12],[1,"\\n "],[8,[39,6],null,[["@badge","@size","@count"],[[30,0,["model"]],"large",[30,0,["userBadges","grant_count"]]]],null],[1,"\\n "],[10,0],[15,0,[29,["badge-grant-info ",[52,[30,0,["hiddenSetTitle"]],"","hidden"]]]],[12],[1,"\\n "],[10,0],[12],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n "],[1,[28,[35,5],["badges.allow_title"],null]],[1,"\\n "],[8,[39,7],[[24,0,"btn-default pad-left"]],[["@action","@icon"],[[30,0,["toggleSetUserTitle"]],"pencil"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","multiple_grant"]],[[[1," "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n "],[1,[28,[35,5],["badges.multiple_grant"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[15,0,[29,["badge-set-title ",[52,[30,0,["hiddenSetTitle"]],"hidden",""]]]],[12],[1,"\\n "],[8,[39,8],null,[["@name","@outletArgs"],["selectable-user-badges",[28,[37,9],null,[["selectableUserBadges","closeAction"],[[30,0,["selectableUserBadges"]],[30,0,["toggleSetUserTitle"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@selectableUserBadges","@closeAction"],[[30,0,["selectableUserBadges"]],[30,0,["toggleSetUserTitle"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["userBadges"]],[[[1," "],[10,0],[15,0,[29,["user-badges ",[30,0,["model","slug"]]]]],[12],[1,"\\n "],[8,[39,11],null,[["@selector","@action"],[".badge-info",[28,[37,12],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"badges-granted"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["userBadges"]]],null]],null],null,[[[1," "],[8,[39,15],[[24,0,"badge-info"]],[["@user","@size","@date"],[[30,1,["user"]],"medium",[30,1,["granted_at"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"granted-on"],[12],[1,"\\n "],[1,[28,[35,16],[[28,[37,5],["badges.granted_on"],[["date"],[[28,[37,17],[[30,1,["granted_at"]]],null]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["post_number"]],[[[1," "],[10,3],[14,0,"post-link"],[15,6,[29,[[30,1,["topic","url"]],"/",[30,1,["post_number"]]]]],[12],[1,[28,[35,16],[[30,1,["topic","fancyTitle"]]],null]],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[51,[30,0,["canLoadMore"]]],[[[41,[30,0,["canShowOthers"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,3],[14,1,"show-others-with-badge-link"],[15,6,[30,0,["model","url"]]],[14,0,"btn btn-default"],[12],[1,[28,[35,5],["badges.others_count"],[["count"],[[30,0,["othersCount"]]]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,20],null,[["@condition"],[[30,0,["canLoadMore"]]]],null],[1,"\\n"]],[]],null],[13]],["ub"],false,["if","hide-application-footer","div","h1","link-to","i18n","badge-card","d-button","plugin-outlet","hash","badge-title","load-more","action","each","-track-array","user-info","html-safe","format-date","a","unless","conditional-loading-spinner"]]',moduleName:"discourse/templates/badges/show.hbs",isStrictMode:!1})},23845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"FSYTAsWs",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[8,[39,4],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["footer_nav.share","link",[30,0,["shareModal"]]]],null],[1,"\\n"]],[]],null]],[],false,["composer-tip-close-button","fn","html-safe","if","d-button"]]',moduleName:"discourse/templates/composer/dominating-topic.hbs",isStrictMode:!1})},44911:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"7xNfDvV/",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[41,[30,0,["message","title"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["message","title"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,4],[[30,0,["message","body"]]],null]]],[],false,["composer-tip-close-button","fn","if","h3","html-safe"]]',moduleName:"discourse/templates/composer/education.hbs",isStrictMode:!1})},54095:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"WboXcjLd",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[8,[39,3],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["user.private_message","envelope",[28,[37,1],[[30,0,["switchPM"]],[30,0,["message"]]],null]]],null]],[],false,["composer-tip-close-button","fn","html-safe","d-button"]]',moduleName:"discourse/templates/composer/get-a-room.hbs",isStrictMode:!1})},1430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"74KS2T1g",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["message","body"]]],null]],[1,"\\n"],[13]],[],false,["composer-tip-close-button","fn","p","html-safe"]]',moduleName:"discourse/templates/composer/group-mentioned.hbs",isStrictMode:!1})},45685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"014tklkJ",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,"h3"],[12],[1,[28,[35,3],["composer.similar_topics"],null]],[13],[1,"\\n\\n"],[10,"ul"],[14,0,"topics"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["message","similarTopics"]]],null]],null],null,[[[1," "],[10,0],[14,0,"similar-topic"],[12],[1,"\\n "],[8,[39,8],null,[["@result","@withTopicUrl"],[[30,1],true]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13]],["topic"],false,["composer-tip-close-button","fn","h3","i18n","ul","each","-track-array","div","search-menu/results/type/topic"]]',moduleName:"discourse/templates/composer/similar-topics.hbs",isStrictMode:!1})},73906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"mE49HeZG",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n "],[10,0],[14,0,"confirm-new-email"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["user.change_email.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_new.description"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_new.description_add"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,2],[12],[1,[30,0,["model","new_email"]]],[13],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,2],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","if","d-button"]]',moduleName:"discourse/templates/confirm-new-email.hbs",isStrictMode:!1})},17811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"AZiEhlwm",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n "],[10,0],[14,0,"confirm-old-email"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["user.change_email.authorizing_old.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_old.description"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.change_email.authorizing_old.description_add"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["user.change_email.authorizing_old.old_email"],[["email"],[[30,0,["model","old_email"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["user.change_email.authorizing_old.new_email"],[["email"],[[30,0,["model","new_email"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,2],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","if","d-button"]]',moduleName:"discourse/templates/confirm-old-email.hbs",isStrictMode:!1})},52243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"sAJNXsko",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n "],[8,[39,2],null,[["@category","@showCategoryAdmin","@canCreateTopic","@createTopic","@filterType"],[[30,0,["model","parentCategory"]],[30,0,["model","can_create_category"]],[30,0,["model","can_create_topic"]],[30,0,["createTopic"]],"categories"]],null],[1,"\\n "]],[]],[[[1,"\\n\\n "],[1,[28,[35,4],["categories-list"],null]],[1,"\\n\\n "],[10,0],[14,0,"contents"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["topicTrackingState","hasIncoming"]],[30,0,["isCategoriesRoute"]]],null],[[[1," "],[10,0],[15,0,[28,[37,8],["show-more",[52,[30,0,["hasTopics"]],"has-topics"]],null]],[12],[1,"\\n "],[11,0],[24,"role","button"],[24,0,"alert alert-info clickable"],[4,[38,9],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,10],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,11],null,[["@categories","@topics","@parentCategory","@loadMore","@loadingMore"],[[30,0,["model","categories"]],[30,0,["model","topics"]],[30,0,["model","parentCategory"]],[30,0,["model","loadMore"]],[30,0,["model","isLoading"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["below-discovery-categories","div",[28,[37,13],null,[["categories","topics"],[[30,0,["model","categories"]],[30,0,["model","topics"]]]]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/navigation",":list","body-class","div","if","and","concat-class","on","count-i18n","discovery/categories-display","plugin-outlet","hash"]]',moduleName:"discourse/templates/discovery/categories.hbs",isStrictMode:!1})},26902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ya9aVeVr",block:'[[[8,[39,0],null,[["@name"],["custom-homepage"]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[10,2],[14,0,"alert alert-info"],[12],[1,"\\n "],[1,[28,[35,3],["custom_homepage.admin_message"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]]],[],false,["plugin-outlet","if","p","i18n"]]',moduleName:"discourse/templates/discovery/custom.hbs",isStrictMode:!1})},22537:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"AgaLY3Gp",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n "],[8,[39,2],null,[["@queryString","@updateTopicsListQueryParams","@canBulkSelect","@bulkSelectHelper"],[[30,0,["q"]],[30,0,["updateTopicsListQueryParams"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,4],null,[["@period","@expandAllPinned","@expandAllGloballyPinned","@model","@canBulkSelect","@bulkSelectHelper"],[[30,0,["period"]],[30,0,["expandAllPinned"]],[30,0,["expandAllGloballyPinned"]],[30,0,["model"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/filter-navigation",":list","discovery/topics"]]',moduleName:"discourse/templates/discovery/filter.hbs",isStrictMode:!1})},72031:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"x6qRsqM5",block:'[[[8,[39,0],null,[["@model","@createTopicDisabled"],[[30,0,["model"]],[30,0,["createTopicDisabled"]]]],[["navigation","header","list"],[[[[1,"\\n "],[8,[39,2],null,[["@category","@tag","@additionalTags","@filterType","@noSubcategories","@canBulkSelect","@bulkSelectHelper","@createTopic","@createTopicDisabled","@canCreateTopicOnTag","@toggleTagInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],[[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["model","additionalTags"]],[30,0,["model","filterType"]],[30,0,["model","noSubcategories"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["createTopic"]],[30,0,["createTopicDisabled"]],[30,0,["model","canCreateTopicOnTag"]],[30,0,["toggleTagInfo"]],[30,0,["model","tagNotification"]],[30,0,["model","list"]],[30,0,["showDismissRead"]],[30,0,["showResetNew"]],[30,0,["dismissRead"]],[30,0,["resetNew"]]]],null],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,0,["model","subcategoryList"]],[[[1," "],[8,[39,5],null,[["@categories","@parentCategory"],[[30,0,["model","subcategoryList","categories"]],[30,0,["model","subcategoryList","parentCategory"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,0,["showTagInfo"]],[30,0,["model","tag"]]],null],[[[1," "],[8,[39,7],null,[["@tag","@list"],[[30,0,["model","tag"]],[30,0,["model","list"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,9],null,[["@period","@changePeriod","@model","@canBulkSelect","@bulkSelectHelper","@showDismissRead","@showResetNew","@category","@tag","@changeSort","@changeNewListSubset","@dismissRead","@resetNew"],[[30,0,["model","list","for_period"]],[30,0,["changePeriod"]],[30,0,["model","list"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["showDismissRead"]],[30,0,["showResetNew"]],[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["changeSort"]],[30,0,["changeNewListSubset"]],[30,0,["dismissRead"]],[30,0,["resetNew"]]]],null],[1,"\\n "]],[]]]]]],[],false,["discovery/layout",":navigation","discovery/navigation",":header","if","discovery/categories-display","and","tag-info",":list","discovery/topics"]]',moduleName:"discourse/templates/discovery/list.hbs",isStrictMode:!1})},28232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ar41JDN5",block:'[[[10,0],[15,0,[29,["edit-category ",[52,[30,0,["expandedMenu"]],"expanded-menu"]]]],[12],[1,"\\n "],[10,0],[14,0,"edit-category-title-bar"],[12],[1,"\\n "],[10,0],[14,0,"edit-category-title"],[12],[1,"\\n "],[10,"h2"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"],[41,[30,0,["model","id"]],[[[1," "],[8,[39,3],null,[["@categories","@category","@noSubcategories","@editingCategory","@editingCategoryTab"],[[30,0,["site","categoriesList"]],[30,0,["model"]],[30,0,["model","noSubcategories"]],true,[30,0,["selectedTab"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,4],[[30,0,["site","desktopView"]],[30,0,["model","id"]]],null],[[[1," "],[8,[39,5],[[24,0,"category-back"]],[["@action","@label","@icon"],[[28,[37,6],[[30,0],"goBack"],null],"category.back","caret-left"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"edit-category-nav"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-stacked"],[12],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"general"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"security"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"settings"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"images"]],null],[1,"\\n "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"topic-template"]],null],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[8,[39,8],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"tags"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"edit-category-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[30,0,["selectedTabTitle"]]],[13],[1,"\\n\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["panels"]]],null]],null],null,[[[1," "],[46,[30,1],null,[["selectedTab","category","registerValidator"],[[30,0,["selectedTab"]],[30,0,["model"]],[28,[37,6],[[30,0],"registerValidator"],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showDeleteReason"]],[[[1," "],[10,0],[14,0,"edit-category-delete-warning"],[12],[1,"\\n "],[10,2],[14,0,"warning"],[12],[1,[28,[35,14],[[30,0,["model","cannot_delete_reason"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"edit-category-footer"],[12],[1,"\\n "],[8,[39,5],[[24,1,"save-category"],[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["disabled"]],[28,[37,6],[[30,0],"saveCategory"],null],[30,0,["saveLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","can_delete"]],[[[1," "],[8,[39,5],[[24,0,"btn-danger"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,6],[[30,0],"deleteCategory"],null],"trash-can","category.delete"]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","id"]],[[[1," "],[10,0],[14,0,"disable-info"],[12],[1,"\\n "],[8,[39,5],[[24,0,"btn-default"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,6],[[30,0],"toggleDeleteTooltip"],null],"circle-question","category.delete"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[13]],["tab"],false,["div","if","h2","bread-crumbs","and","d-button","action","ul","edit-category-tab","h3","each","-track-array","component","p","html-safe"]]',moduleName:"discourse/templates/edit-category-tabs.hbs",isStrictMode:!1})},60784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"fj+h/2uL",block:'[[[10,0],[14,0,"container email-login clearfix"],[12],[1,"\\n "],[10,0],[14,0,"content-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"image-wrapper"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1," "],[10,0],[14,0,"error-info"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","error"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_login"]],[[[1," "],[10,0],[14,0,"email-login-form"],[12],[1,"\\n"],[41,[30,0,["secondFactorRequired"]],[[[41,[30,0,["model","security_key_required"]],[[[1," "],[8,[39,5],null,[["@setShowSecurityKey","@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,6],[[28,[37,7],[[30,0,["model","security_key_required"]]],null]],null],[28,[37,6],[[28,[37,7],[[30,0,["secondFactorMethod"]]],null]],null],[30,0,["model","backup_codes_enabled"]],[30,0,["model","totp_enabled"]],[30,0,["secondFactorRequired"]],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["model","backup_codes_enabled"]],[30,0,["model","totp_enabled"]],true]],[["default"],[[[[1,"\\n "],[8,[39,9],[[16,2,[30,0,["secondFactorToken"]]],[4,[38,10],["input",[28,[37,11],[[28,[37,6],[[28,[37,7],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["secondFactorMethod"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1," "],[10,"h2"],[12],[1,[28,[35,13],["email_login.confirm_title"],[["site_name"],[[30,0,["siteSettings","title"]]]]]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,13],["email_login.logging_in_as"],[["email"],[[30,0,["model","token_email"]]]]]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["model","security_key_required"]]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"],[24,4,"submit"]],[["@label","@action"],["email_login.confirm_button",[28,[37,17],[[30,0],"finishLogin"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","img","form","if","html-safe","security-key-form","fn","mut","second-factor-form","second-factor-input","on","with-event-value","h2","i18n","p","unless","d-button","action"]]',moduleName:"discourse/templates/email-login.hbs",isStrictMode:!1})},62879:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"iYk0/NwN",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["errorHtml"]],[30,0,["isForbidden"]]],null],[[[1," "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,3],[[30,0,["errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"error-page"],[12],[1,"\\n "],[10,0],[14,0,"face"],[12],[1,":("],[13],[1,"\\n "],[10,0],[14,0,"reason"],[12],[1,[30,0,["reason"]]],[13],[1,"\\n"],[41,[30,0,["requestUrl"]],[[[1," "],[10,0],[14,0,"url"],[12],[1,"\\n "],[1,[28,[35,4],["errors.prev_page"],null]],[1,"\\n "],[10,3],[15,6,[30,0,["requestUrl"]]],[14,"data-auto-route","true"],[12],[1,[30,0,["requestUrl"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,0,["networkFixed"]],[[[1," "],[1,[28,[35,6],["circle-check"],null]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[30,0,["desc"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["enabledButtons"]]],null]],null],null,[[[1," "],[8,[39,9],[[16,0,[30,1,["classes"]]]],[["@icon","@action","@label"],[[30,1,["icon"]],[30,1,["action"]],[30,1,["key"]]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["buttonData"],false,["div","if","and","html-safe","i18n","a","d-icon","each","-track-array","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/exception.hbs",isStrictMode:!1})},36144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"0HOHpYbC",block:'[[[1,[28,[35,0],[[28,[37,1],["static-",[30,0,["model","path"]]],null]],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,5],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,6],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,5],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["body-class","concat","section","watch-read","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/faq.hbs",isStrictMode:!1})},87824:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"/Pqq1FWK",block:'[[[41,[30,0,["loading"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["search-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"search-container"],[12],[1,"\\n "],[10,0],[14,0,"search-header"],[14,"role","search"],[12],[1,"\\n "],[10,"h1"],[14,0,"search-page-heading"],[12],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1," "],[10,0],[14,0,"result-count"],[14,1,"search-result-count"],[14,"aria-live","polite"],[12],[1,"\\n "],[1,[28,[35,6],[[30,0,["resultCountLabel"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["search.full_page_title"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"search-bar"],[12],[1,"\\n "],[8,[39,8],[[24,0,"full-page-search search no-blur search-query"]],[["@value","@aria-label","@enter","@hasAutofocus","@aria-controls"],[[30,0,["searchTerm"]],[28,[37,7],["search.search_term_label"],null],[28,[37,9],[[30,0],"search",[28,[37,10],null,[["collapseFilters"],[true]]]],null],[30,0,["hasAutofocus"]],"search-result-count"]],null],[1,"\\n "],[8,[39,11],null,[["@id","@value","@content","@onChange","@options"],["search-type",[30,0,["search_type"]],[30,0,["searchTypes"]],[28,[37,12],[[28,[37,13],[[30,0,["search_type"]]],null]],null],[28,[37,10],null,[["castInteger"],[true]]]]],null],[1,"\\n "],[8,[39,14],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[28,[37,12],[[28,[37,9],[[30,0],"search"],null],[28,[37,10],null,[["collapseFilters"],[true]]]],null],"magnifying-glass","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["usingDefaultSearchType"]],[[[41,[30,0,["context"]],[[[1," "],[10,0],[14,0,"search-context"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,16],[[24,3,"searchContext"]],[["@type","@checked"],["checkbox",[30,0,["searchContextEnabled"]]]],null],[1,"\\n "],[1,[30,0,["searchContextDescription"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"search-filters"],[12],[1,"\\n "],[8,[39,17],null,[["@searchTerm","@onChangeSearchTerm","@search","@searchButtonDisabled","@expandFilters"],[[28,[37,18],[[30,0,["searchTerm"]]],null],[28,[37,12],[[28,[37,13],[[30,0,["searchTerm"]]],null]],null],[28,[37,9],[[30,0],"search",[28,[37,10],null,[["collapseFilters"],[true]]]],null],[30,0,["searchButtonDisabled"]],[30,0,["expandFilters"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"search-notice"],[12],[1,"\\n"],[41,[30,0,["invalidSearch"]],[[[1," "],[10,0],[14,0,"fps-invalid"],[12],[1,"\\n "],[1,[28,[35,7],["search.too_short"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"search-advanced"],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-header","div",[28,[37,10],null,[["search","type","model","addSearchResults","sortOrder"],[[30,0,["searchTerm"]],[30,0,["search_type"]],[30,0,["model"]],[30,0,["addSearchResults"]],[30,0,["sortOrder"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["usingDefaultSearchType"]],[[[1," "],[10,0],[15,0,[30,0,["searchInfoClassNames"]]],[14,"role","region"],[15,"ariaLabel",[28,[37,7],["search.sort_or_bulk_actions"],null]],[12],[1,"\\n"],[41,[30,0,["canBulkSelect"]],[[[1," "],[8,[39,14],[[24,0,"btn-default bulk-select"]],[["@icon","@title","@action"],["list","topics.bulk.toggle",[28,[37,9],[[30,0],"toggleBulkSelect"],null]]],null],[1,"\\n"],[41,[30,0,["bulkSelectHelper","selected"]],[[[1," "],[8,[39,20],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,0,["bulkSelectHelper"]],[30,0,["afterBulkActionComplete"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[41,[30,0,["hasUnselectedResults"]],[[[1," "],[8,[39,14],[[24,0,"btn-default bulk-select-all"]],[["@icon","@action","@label"],["square-check",[28,[37,9],[[30,0],"selectAll"],null],"search.select_all"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasSelection"]],[[[1," "],[8,[39,14],[[24,0,"btn-default bulk-select-clear"]],[["@icon","@action","@label"],["far-square",[28,[37,9],[[30,0],"clearAll"],null],"search.clear_all"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,0],[14,0,"sort-by inline-form"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,7],["search.sort_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,11],null,[["@value","@content","@onChange","@id","@options"],[[30,0,["sortOrder"]],[30,0,["sortOrders"]],[30,0,["setSortOrder"]],"search-sort-by",[28,[37,10],null,[["castInteger"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-info","div",[28,[37,10],null,[["search"],[[30,0,["searchTerm"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["searching"]],[[[1," "],[1,[28,[35,22],null,[["size"],["medium"]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"search-results"],[14,"role","region"],[12],[1,"\\n "],[8,[39,23],null,[["@selector","@action"],[".fps-result",[28,[37,9],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,24],[[30,0,["usingDefaultSearchType"]],[30,0,["customSearchType"]]],null],[[[1," "],[8,[39,25],null,[["@posts","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,0,["searchResultPosts"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectHelper","selected"]],[30,0,["highlightQuery"]],[30,0,["model","grouped_search_result","search_log_id"]]]],null],[1,"\\n\\n "],[8,[39,26],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,"\\n "],[1,[30,0,["error"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["hasResults"]]],[[[41,[30,0,["searchActive"]],[[[1," "],[10,"h3"],[12],[1,[28,[35,7],["search.no_results"],null]],[13],[1,"\\n\\n"],[41,[30,0,["showSuggestion"]],[[[1," "],[10,0],[14,0,"no-results-suggestion"],[12],[1,"\\n "],[1,[28,[35,7],["search.cant_find"],null]],[1,"\\n"],[41,[30,0,["canCreateTopic"]],[[[1," "],[11,3],[24,6,""],[4,[38,30],["click",[28,[37,12],[[30,0,["createTopic"]],[30,0,["searchTerm"]]],null]],null],[12],[1,[28,[35,7],["search.start_new_topic"],null]],[13],[1,"\\n"],[41,[51,[30,0,["siteSettings","login_required"]]],[[[1," "],[1,[28,[35,7],["search.or_search_google"],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,7],["search.search_google"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,31],null,[["@searchTerm"],[[30,0,["searchTerm"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1," "],[10,"h3"],[14,0,"search-footer"],[12],[1,"\\n"],[41,[30,0,["model","grouped_search_result","more_full_page_results"]],[[[41,[30,0,["isLastPage"]],[[[1," "],[1,[28,[35,7],["search.more_results"],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,7],["search.no_more_results"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,26],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["model","categories","length"]],[[[1," "],[10,"h4"],[14,0,"category-heading"],[12],[1,"\\n "],[1,[28,[35,7],["search.categories"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","categories"]]],null]],null],null,[[[1," "],[1,[28,[35,35],[[30,1]],[["extraClasses"],["fps-category-item"]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","tags","length"]],[[[1," "],[10,"h4"],[14,0,"tag-heading"],[12],[1,"\\n "],[1,[28,[35,7],["search.tags"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"tag-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","tags"]]],null]],null],null,[[[1," "],[10,0],[14,0,"fps-tag-item"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["url"]]],[12],[1,"\\n "],[1,[30,2,["id"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","users"]],[[[1," "],[10,0],[14,0,"user-items"],[12],[1,"\\n"],[42,[28,[37,34],[[28,[37,34],[[30,0,["model","users"]]],null]],null],null,[[[1," "],[8,[39,36],[[24,0,"fps-user-item"]],[["@user"],[[30,3]]],[["default"],[[[[1,"\\n "],[1,[28,[35,37],[[30,3]],[["imageSize"],["large"]]]],[1,"\\n\\n "],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[30,3,["name"]],[[[1," "],[10,1],[14,0,"name"],[12],[1,"\\n "],[1,[30,3,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n "],[1,[30,3,["username"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["searchActive"]],[[[1," "],[10,"h3"],[12],[1,[28,[35,7],["search.no_results"],null]],[13],[1,"\\n"]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13]],["category","tag","user"],false,["if","hide-application-footer","body-class","section","div","h1","html-safe","i18n","search-text-field","action","hash","combo-box","fn","mut","d-button","label","input","search-advanced-options","readonly","plugin-outlet","topic-list/topic-bulk-select-dropdown","span","loading-spinner","load-more","or","search-result-entries","conditional-loading-spinner","unless","h3","a","on","google-search","h4","each","-track-array","category-link","user-link","avatar"]]',moduleName:"discourse/templates/full-page-search.hbs",isStrictMode:!1})},7829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"OJlsX1bp",block:'[[[41,[30,0,["canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@selector","@action"],[".user-stream-item",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["model"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],[[[1," "],[10,0],[12],[1,[28,[35,8],[[30,0,["emptyText"]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,9],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]]]]]],["post"],false,["if","hide-application-footer","load-more","action","div","each","-track-array","group-post","i18n","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-posts.hbs",isStrictMode:!1})},96710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"O/nvKT0F",block:'[[[8,[39,0],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list tr",[28,[37,1],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@topicList","@showPosters"],[[30,0,["model"]],true]],null],[1,"\\n "],[8,[39,3],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],[],false,["load-more","action","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-topics.hbs",isStrictMode:!1})},66546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"7zuLqdIU",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[8,[39,5],[[24,0,"bulk-select"]],[["@icon","@action","@title"],["list",[30,0,["toggleBulkSelect"]],"topics.bulk.toggle"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1," "],[8,[39,6],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey","@autocomplete"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]],"off"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1," "],[10,1],[14,0,"bulk-select-buttons-wrap"],[12],[1,"\\n"],[41,[30,0,["bulkSelection"]],[[[1," "],[8,[39,8],null,[["@bulkSelection","@canAdminGroup","@canEditGroup","@onChange"],[[30,0,["bulkSelection"]],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,9],[[30,0],"actOnSelection",[30,0,["bulkSelection"]]],null]]],null],[1,"\\n\\n "],[8,[39,5],[[24,0,"bulk-select-clear"]],[["@action","@label","@icon"],[[30,0,["bulkClearAll"]],"topics.bulk.clear_all","far-square"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"bulk-select-all"]],[["@action","@label","@icon"],[[30,0,["bulkSelectAll"]],"topics.bulk.select_all","square-check"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-members-manage"],[12],[1,"\\n "],[8,[39,5],[[24,0,"btn-default group-members-add"]],[["@icon","@action","@label"],["plus",[28,[37,10],["showAddMembersModal"],null],"groups.manage.add_members"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[8,[39,5],[[24,0,"btn-default group-members-invite"]],[["@icon","@action","@label"],["plus",[28,[37,10],["showInviteModal"],null],"groups.manage.invite_members"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasMembers"]],[[[1," "],[8,[39,11],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,9],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@className"],[[29,["group-members\\n ",[52,[30,0,["isBulk"]],"sticky-header",""],"\\n ",[52,[30,0,["canManageGroup"]],"group-members--can-manage",""]]]]],[["header","body"],[[[[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--username username"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic","@colspan"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true,"2"]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--can-manage"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["group-index-table-header-after-username",[28,[37,16],null,[["group","asc","order"],[[30,0,["model"]],[30,0,["asc"]],[30,0,["order"]]]]]]],null],[1,"\\n\\n "],[8,[39,14],[[24,0,"directory-table__column-header--added"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"added_at","groups.member_added",true]],null],[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--last-posted"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"last_posted_at","last_post",true]],null],[1,"\\n "],[8,[39,14],[[24,0,"directory-table__column-header--last-seen"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"last_seen_at","last_seen",true]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--member-settings"],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[42,[28,[37,19],[[28,[37,19],[[30,0,["model","members"]]],null]],null],null,[[[1," "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n "],[10,0],[14,0,"directory-table__cell directory-table__cell--username group-member"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1," "],[8,[39,20],[[24,0,"bulk-select"],[4,[38,21],["click",[28,[37,9],[[30,0],"selectMember",[30,1]],null]],null]],[["@type"],["checkbox"]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[8,[39,22],null,[["@user","@skipName","@showStatus","@showStatusTooltip"],[[30,1],[30,0,["skipName"]],true,true]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__cell directory-table__cell--can-manage group-owner"],[12],[1,"\\n"],[41,[28,[37,1],[[30,1,["owner"]],[30,1,["primary"]]],null],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["groups.members.status"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n"],[41,[30,1,["owner"]],[[[1," "],[1,[28,[35,24],["shield-halved"],null]],[1,"\\n "],[1,[28,[35,23],["groups.members.owner"],null]],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,1,["primary"]],[[[1," "],[1,[28,[35,23],["groups.members.primary"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["group-index-table-row-after-username",[28,[37,16],null,[["member"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"directory-table__cell directory-table__cell--added"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["groups.member_added"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["added_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_posted_at"]]],"--empty"],"\\n directory-table__cell--last-posted"]]],[12],[1,"\\n"],[41,[30,1,["last_posted_at"]],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["last_post"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["last_posted_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_seen_at"]]],"--empty"],"\\n directory-table__cell--last-seen"]]],[12],[1,"\\n"],[41,[30,1,["last_seen_at"]],[[[1," "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,23],["last_seen"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,26],[[30,1,["last_seen_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1," "],[10,0],[14,0,"directory-table__cell directory-table__cell--member-settings member-settings"],[12],[1,"\\n "],[8,[39,28],null,[["@member","@canAdminGroup","@canEditGroup","@onChange"],[[30,1],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,9],[[30,0],"actOnGroup",[30,1]],null]]],null],[1,"\\n"],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,29],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,"br"],[12],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,23],[[30,0,["emptyMessageKey"]]],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","section","div","d-button","text-field","span","bulk-group-member-dropdown","action","route-action","load-more","responsive-table",":header","table-header-toggle","plugin-outlet","hash",":body","each","-track-array","input","on","user-info","i18n","d-icon","br","bound-date","unless","group-member-dropdown","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-index.hbs",isStrictMode:!1})},76266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"RmADyVt/",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n "],[8,[39,5],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasRequesters"]],[[[1," "],[8,[39,6],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,7],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,8],null,[["@className"],["group-members group-members__requests"]],[["header","body"],[[[[1,"\\n "],[8,[39,10],[[24,0,"username"]],[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true]],null],[1,"\\n "],[8,[39,10],null,[["@onToggle","@order","@asc","@field","@labelKey","@automatic"],[[30,0,["updateOrder"]],[30,0,["order"]],[30,0,["asc"]],"requested_at","groups.member_requested",true]],null],[1,"\\n "],[10,0],[14,0,"directory-table__column-header group-request-reason__column-header"],[12],[1,[28,[35,11],["groups.requests.reason"],null]],[13],[1,"\\n "],[10,0],[14,0,"directory-table__column-header"],[12],[13],[1,"\\n "]],[]],[[[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["model","requesters"]]],null]],null],null,[[[1," "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-member"],[12],[1,"\\n "],[8,[39,15],null,[["@user","@skipName"],[[30,1],[30,0,["skipName"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["groups.member_requested"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,17],[[30,1,["requested_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-request-reason__content"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["groups.requests.reason"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[30,1,["reason"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__cell group-accept-deny-buttons"],[12],[1,"\\n"],[41,[30,1,["request_undone"]],[[[1," "],[1,[28,[35,11],["groups.requests.undone"],null]],[1,"\\n"]],[]],[[[41,[30,1,["request_accepted"]],[[[1," "],[1,[28,[35,11],["groups.requests.accepted"],null]],[1,"\\n "],[8,[39,18],null,[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"undoAcceptRequest"],null],[30,1]],null],"groups.requests.undo"]],null],[1,"\\n"]],[]],[[[41,[30,1,["request_denied"]],[[[1," "],[1,[28,[35,11],["groups.requests.denied"],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,18],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"acceptRequest"],null],[30,1]],null],"groups.requests.accept"]],null],[1,"\\n "],[8,[39,18],[[24,0,"btn-danger"]],[["@action","@label"],[[28,[37,19],[[28,[37,7],[[30,0],"denyRequest"],null],[30,1]],null],"groups.requests.deny"]],null],[1,"\\n "]],[]]]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,20],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,[28,[35,11],["groups.empty.requests"],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","section","div","text-field","load-more","action","responsive-table",":header","table-header-toggle","i18n",":body","each","-track-array","user-info","span","bound-date","d-button","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-requests.hbs",isStrictMode:!1})},52989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"cTeEQ6LP",block:'[[[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["before-group-container","div",[28,[37,2],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["container group group-",[30,0,["model","name"]]]]],[12],[1,"\\n"],[41,[30,0,["showTooltip"]],[[[1," "],[10,0],[14,0,"group-delete-tooltip"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,6],["admin.groups.delete_automatic_group"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-details-container"],[12],[1,"\\n "],[10,0],[14,0,"group-info"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]],[30,0,["model","flair_bg_color"]]],null],[[[1," "],[10,0],[14,0,"group-avatar-flair"],[12],[1,"\\n "],[8,[39,8],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[28,[37,7],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]]],null],[30,0,["model","flair_bg_color"]],[30,0,["model","flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-info-names"],[12],[1,"\\n "],[10,1],[14,0,"group-info-name"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["model","full_name"]],[30,0,["model","name"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","full_name"]],[[[1," "],[10,0],[14,0,"group-info-full-name"],[12],[1,"\\n "],[1,[30,0,["model","name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[30,0,["canManageGroup"]],[30,0,["model","automatic"]]],null],[[[1," "],[8,[39,10],[[24,0,"group-automatic-tooltip"]],null,[["trigger","content"],[[[[1,"\\n "],[1,[28,[35,12],["gear"],null]],[1,"\\n "],[1,[28,[35,6],["admin.groups.manage.membership.automatic"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[1,[28,[35,6],["admin.groups.manage.membership.automatic_tooltip"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-details-button"],[12],[1,"\\n "],[8,[39,14],null,[["@tagName","@model","@showLogin"],["",[30,0,["model"]],[28,[37,15],["showLogin"],null]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","admin"]],[[[41,[30,0,["model","automatic"]],[[[1," "],[8,[39,16],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,0,["toggleDeleteTooltip"]],"circle-question","admin.groups.delete"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,16],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,0,["destroyGroup"]],[30,0,["destroying"]],"trash-can","admin.groups.delete"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["displayGroupMessageButton"]],[[[1," "],[8,[39,16],[[24,0,"btn-primary group-message-button"]],[["@action","@icon","@label"],[[30,0,["messageGroup"]],"envelope","groups.message"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["group-details-after","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","bio_cooked"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"group-bio"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,18],[[30,0,["model","bio_cooked"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"user-content-wrapper"],[12],[1,"\\n "],[10,"section"],[14,0,"user-primary-navigation"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,20],null,[["@group","@currentPath","@tabs"],[[30,0,["model"]],[30,0,["currentPath"]],[30,0,["tabs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[46,[28,[37,22],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["span","plugin-outlet","hash","div","if","p","i18n","or","avatar-flair","and","d-tooltip",":trigger","d-icon",":content","group-membership-button","route-action","d-button","hr","html-safe","section","group-navigation","component","-outlet"]]',moduleName:"discourse/templates/group.hbs",isStrictMode:!1})},81705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"halkZcVe",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1," "],[8,[39,3],null,[["@filter","@categoryId"],["posts",[30,0,["category_id"]]]],null],[1,"\\n "],[8,[39,3],null,[["@filter","@categoryId"],["topics",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[8,[39,3],null,[["@filter","@categoryId"],["mentions",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,4],null,[["@name","@connectorTagName"],["group-activity-bottom","li"]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],[],false,["section","mobile-nav","if","group-activity-filter","plugin-outlet","component","-outlet"]]',moduleName:"discourse/templates/group/activity.hbs",isStrictMode:!1})},11747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"51+b4n8U",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,5],null,[["@route","@model"],[[30,1,["route"]],[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],[[30,1,["title"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,8],null,null],null,null,null],[1,"\\n"],[13]],["tab"],false,["section","mobile-nav","each","-track-array","li","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/manage.hbs",isStrictMode:!1})},95100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"JVP7FOr2",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["groups.manage.categories.long_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,3],["groups.manage.categories.description"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","watchingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.watched_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-tracking"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","trackingCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","trackingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.tracked_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingFirstPostCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","watchingFirstPostCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.watching_first_post_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-regular"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","regularCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","regularCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.regular_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-muted"],null]],[1,"\\n "],[1,[28,[35,3],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n "],[8,[39,5],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","mutedCategories"]],[30,0,["selectedCategories"]],[28,[37,6],[[28,[37,7],[[30,0,["model","mutedCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.categories.muted_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","div","label","i18n","d-icon","category-selector","fn","mut","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/categories.hbs",isStrictMode:!1})},22326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"RpCq8iTK",block:'[[[8,[39,0],null,[["@group"],[[30,0,["model"]]]],null]],[],false,["group-manage-email-settings"]]',moduleName:"discourse/templates/group/manage/email.hbs",isStrictMode:!1})},95202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"jIJeM4bE",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-interaction-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/interaction.hbs",isStrictMode:!1})},28329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"CNDT3wNv",block:'[[[41,[51,[30,0,["model","all_loaded"]]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","logs"]],[[[1," "],[10,0],[14,0,"group-manage-logs-controls"],[12],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","action"]],"action"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","acting_user"]],"acting_user"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","target_user"]],"target_user"]],null],[1,"\\n "],[8,[39,4],null,[["@clearFilter","@value","@type"],[[28,[37,5],[[30,0],"clearFilter"],null],[30,0,["filters","subject"]],"subject"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,6],null,[["@selector","@action"],[".group-manage-logs .group-manage-logs-row",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"group-manage-logs"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.action"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.acting_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.target_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.subject"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["groups.manage.logs.when"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","logs"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@log","@filters"],[[30,1],[30,0,["filters"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,15],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,[28,[35,10],["groups.empty.logs"],null]],[13],[1,"\\n"]],[]]]],["logItem"],false,["unless","hide-application-footer","if","div","group-manage-logs-filter","action","load-more","table","thead","th","i18n","tbody","each","-track-array","group-manage-logs-row","conditional-loading-spinner"]]',moduleName:"discourse/templates/group/manage/logs.hbs",isStrictMode:!1})},58896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"Q0K2JW+D",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-membership-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/membership.hbs",isStrictMode:!1})},12001:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"o68/+VTU",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,1],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n "],[8,[39,2],null,[["@model","@saving"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n"],[13]],[],false,["form","groups-form-profile-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/profile.hbs",isStrictMode:!1})},34475:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"dmBqLStz",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["before-manage-group-tags","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,5],["groups.manage.tags.long_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,5],["groups.manage.tags.description"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-watching"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.watched_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-tracking"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","tracking_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.tracked_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_first_post_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.watching_first_post_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-regular"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","regular_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.regular_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["d-muted"],null]],[1,"\\n "],[1,[28,[35,5],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n "],[8,[39,7],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","muted_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,2],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,5],["groups.manage.tags.muted_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["form","plugin-outlet","hash","div","label","i18n","d-icon","tag-chooser","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/tags.hbs",isStrictMode:!1})},83390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"jHptY/B/",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n "],[8,[39,1],[[24,0,"messages-nav"]],[["@desktopClass"],["nav-stacked action-list"]],[["default"],[[[[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route","@model"],["group.messages.inbox",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user.messages.inbox"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route","@model"],["group.messages.archive",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user.messages.archive"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],[],false,["section","mobile-nav","li","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/messages.hbs",isStrictMode:!1})},37504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"mcHemRbt",block:'[[[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n"],[41,[30,0,["model","permissions"]],[[[1," "],[10,"label"],[14,0,"group-category-permissions-desc"],[12],[1,"\\n "],[1,[28,[35,3],["groups.permissions.description"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"table"],[14,0,"group-category-permissions"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["model","permissions"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[30,1,["description"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["groups.permissions.none"],null]],[1,"\\n"]],[]]],[13]],["permission"],false,["section","if","label","i18n","table","tbody","each","-track-array","tr","td","category-link"]]',moduleName:"discourse/templates/group/permissions.hbs",isStrictMode:!1})},55811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"kRHHAQzp",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["groups","canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,3],["groups-page"],null]],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["before-groups-index-container","div"]],null],[1,"\\n\\n"],[10,"section"],[14,0,"container groups-index"],[12],[1,"\\n "],[10,0],[14,0,"groups-header"],[12],[1,"\\n"],[41,[30,0,["currentUser","can_create_group"]],[[[1," "],[8,[39,7],[[24,0,"btn-default groups-header-new pull-right"]],[["@action","@icon","@label"],[[30,0,["new"]],"plus","admin.groups.new.title"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"groups-header-filters"],[12],[1,"\\n "],[8,[39,8],[[16,"placeholder",[28,[37,9],["groups.index.all"],null]],[24,0,"groups-header-filters-name no-blur"],[16,"aria-description",[28,[37,9],["groups.index.search_results"],null]],[4,[38,11],["input",[28,[37,12],[[30,0,["onFilterChanged"]]],null]],null]],[["@value","@type"],[[28,[37,10],[[30,0,["filter"]]],null],"search"]],null],[1,"\\n\\n "],[8,[39,13],[[24,0,"groups-header-filters-type"]],[["@value","@content","@onChange","@options"],[[30,0,["type"]],[30,0,["types"]],[28,[37,14],[[28,[37,15],[[30,0,["type"]]],null]],null],[28,[37,16],null,[["clearable","none"],[true,"groups.index.filter"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["groups"]],[[[1," "],[8,[39,17],null,[["@selector","@action"],[".groups-boxes .group-box",[28,[37,18],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"groups-boxes"],[12],[1,"\\n"],[42,[28,[37,20],[[28,[37,20],[[30,0,["groups"]]],null]],null],null,[[[1," "],[8,[39,21],[[24,0,"group-box"],[16,"data-group-name",[30,1,["name"]]]],[["@route","@model"],["group.members",[30,1,["name"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"group-box-inner"],[12],[1,"\\n "],[10,0],[14,0,"group-info-wrapper"],[12],[1,"\\n"],[41,[30,1,["flair_url"]],[[[1," "],[10,1],[14,0,"group-avatar-flair"],[12],[1,"\\n "],[8,[39,23],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flair_url"]],[30,1,["flair_bg_color"]],[30,1,["flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"group-info"],[12],[1,"\\n "],[8,[39,24],null,[["@group"],[[30,1]]],null],[1,"\\n "],[10,0],[14,0,"group-user-count"],[12],[1,[28,[35,25],["user"],null]],[1,[30,1,["user_count"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-description"],[12],[1,[28,[35,26],[[30,1,["bio_excerpt"]]],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"group-membership"],[12],[1,"\\n "],[8,[39,27],null,[["@tagName","@model","@showLogin"],["",[30,1],[28,[37,28],["showLogin"],null]]],[["default"],[[[[1,"\\n"],[41,[30,1,["is_group_owner"]],[[[1," "],[10,1],[14,0,"is-group-owner"],[12],[1,"\\n "],[1,[28,[35,25],["shield-halved"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.is_group_owner"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,1,["is_group_user"]],[[[1," "],[10,1],[14,0,"is-group-member"],[12],[1,"\\n "],[1,[28,[35,25],["check"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.is_group_user"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,1,["public_admission"]],[[[1," "],[1,[28,[35,9],["groups.index.public"],null]],[1,"\\n"]],[]],[[[41,[30,1,["isPrivate"]],[[[1," "],[1,[28,[35,25],["far-eye-slash"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.private"],null]],[1,"\\n"]],[]],[[[41,[30,1,["automatic"]],[[[1," "],[1,[28,[35,9],["groups.index.automatic"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,25],["ban"],null]],[1,"\\n "],[1,[28,[35,9],["groups.index.closed"],null]],[1,"\\n"]],[]]],[1," "]],[]]]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["group-index-box-after","div",[28,[37,16],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,29],null,[["@condition"],[[30,0,["groups","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,2],[14,"role","status"],[12],[1,[28,[35,9],["groups.index.empty"],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["after-groups-index-container","div"]],null]],["group"],false,["if","or","hide-application-footer","body-class","plugin-outlet","section","div","d-button","input","i18n","readonly","on","with-event-value","combo-box","fn","mut","hash","load-more","action","each","-track-array","link-to","span","avatar-flair","groups-info","d-icon","html-safe","group-membership-button","route-action","conditional-loading-spinner","p"]]',moduleName:"discourse/templates/groups/index.hbs",isStrictMode:!1})},56645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"VR+MxxiY",block:'[[[1,[28,[35,0],["groups-new-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h1"],[12],[1,[28,[35,3],["admin.groups.new.title"],null]],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[39,6],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","owner-selector"],[12],[1,[28,[35,3],["admin.groups.add_owners"],null]],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["owner-selector",[30,0,["splitOwnerUsernames"]],[28,[37,10],[[30,0],"updateOwnerUsernames"],null],[28,[37,11],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","member-selector"],[12],[1,[28,[35,3],["groups.members.title"],null]],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["member-selector",[30,0,["splitUsernames"]],[28,[37,10],[[30,0],"updateUsernames"],null],[28,[37,11],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,12],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,13],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n "],[8,[39,14],[[24,0,"btn-primary group-form-save"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["saving"]],"admin.groups.new.create"]],null],[1,"\\n\\n "],[8,[39,15],null,[["@route"],["groups"]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","h1","i18n","hr","form","groups-form-profile-fields","div","label","email-group-user-chooser","action","hash","groups-form-membership-fields","groups-form-interaction-fields","d-button","link-to"]]',moduleName:"discourse/templates/groups/new.hbs",isStrictMode:!1})},42626:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"4/3+QeFR",block:"[[],[],false,[]]",moduleName:"discourse/templates/hide-modal.hbs",isStrictMode:!1})},65510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"dFjK5FDi",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/invites.hbs",isStrictMode:!1})},42136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"8HoRVwQv",block:'[[[1,[28,[35,0],["invite-page"],null]],[1,"\\n"],[1,[28,[35,1],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,2]],[1,"\\n"],[10,"section"],[12],[1,"\\n "],[10,0],[14,0,"container invites-show clearfix"],[12],[1,"\\n"],[41,[51,[28,[37,6],[[30,0,["externalAuthsOnly"]],[30,0,["existingUserId"]]],null]],[[[1," "],[8,[39,7],null,[["@step"],[[52,[30,0,["successMessage"]],"activate","signup"]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@header"],[[30,0,["welcomeTitle"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[52,[30,0,["successMessage"]],"invite-success","invite-form"]],[12],[1,"\\n "],[10,0],[14,0,"col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,0],[14,0,"success-info"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,11],[[30,0,["successMessage"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"invited-by"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,12],["invites.invited_by"],null]],[13],[1,"\\n "],[10,2],[12],[8,[39,13],null,[["@user"],[[30,0,["invitedBy"]]]],null],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,2],[14,0,"create-account-associate-link"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["associateHtml"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["isInviteLink"]]],[[[1," "],[10,2],[14,0,"email-message"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["yourEmailMessage"]]],null]],[1,"\\n"],[41,[30,0,["showSocialLoginAvailable"]],[[[1," "],[1,[28,[35,12],["invites.social_login_available"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["externalAuthsOnly"]],[[[41,[30,0,["authOptions"]],[[[41,[51,[30,0,["isInviteLink"]]],[[[1," "],[8,[39,14],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,15],null,[["@externalLogin","@context"],[[28,[37,16],[[30,0],"externalLogin"],null],"invite"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["discourseConnectEnabled"]],[[[1," "],[10,3],[14,0,"btn btn-primary discourse-connect raw-link"],[15,6,[30,0,["ssoPath"]]],[12],[1,"\\n "],[1,[28,[35,12],["continue"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldDisplayForm"]],[[[1," "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["isInviteLink"]],[[[1," "],[10,0],[14,0,"input email-input input-group"],[12],[1,"\\n "],[8,[39,19],[[24,1,"new-account-email"],[24,3,"email"],[16,0,[28,[37,20],[[30,0,["email"]]],null]],[24,"autofocus","autofocus"],[16,"disabled",[30,0,["externalAuthsOnly"]]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["email"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,12],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,14],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"],[41,[51,[30,0,["emailValidation","reason"]]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,12],["user.email.instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input username-input input-group"],[12],[1,"\\n "],[8,[39,19],[[16,0,[28,[37,20],[[30,0,["accountUsername"]]],null]],[24,1,"new-account-username"],[24,3,"username"],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"autocomplete","off"],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["accountUsername"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,12],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,14],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["fullnameRequired"]],[[[1," "],[8,[39,23],[[24,0,"input name-input input-group name-required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["externalAuthsOnly"]]],[[[1," "],[10,0],[14,0,"input password-input input-group"],[12],[1,"\\n "],[8,[39,24],[[24,"autocomplete","new-password"],[24,1,"new-account-password"],[16,0,[28,[37,20],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,12],["invites.password_label"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,25],null,[["@maskPassword","@togglePasswordMask","@parentController"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]],"invites-show"]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n "],[8,[39,14],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n "],[10,0],[15,0,[29,["caps-lock-warning\\n ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,26],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,12],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,27],[[30,0,["showFullname"]],[28,[37,28],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,23],[[24,0,"input name-input input-group"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,30],[[28,[37,30],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,31],[[16,0,[28,[37,20],[[30,1,["value"]]],null]],[4,[38,21],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"invitation-cta"],[12],[1,"\\n "],[8,[39,32],[[24,0,"btn-primary invitation-cta__accept"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,16],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n "],[10,0],[14,0,"invitation-cta__info"],[12],[1,"\\n "],[10,1],[14,0,"invitation-cta__signed-up"],[12],[1,[28,[35,12],["login.previous_sign_up"],null]],[13],[1,"\\n "],[8,[39,32],[[24,0,"btn-flat invitation-cta__sign-in"]],[["@action","@label"],[[28,[37,34],["showLogin"],null],"log_in"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,"br"],[12],[13],[10,"br"],[12],[13],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["existingUserRedeeming"]],[[[41,[30,0,["existingUserCanRedeem"]],[[[1," "],[8,[39,32],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,16],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["existingUserCanRedeemError"]]],[13],[1,"\\n"]],[]]]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["f"],false,["body-class","hide-application-header-buttons","hide-application-sidebar","section","div","unless","or","signup-progress-bar","if","welcome-header","p","html-safe","i18n","user-info","input-tip","login-buttons","action","a","form","input","value-entered","on","label","fullname-input","password-field","toggle-password-mask","d-icon","and","not","each","-track-array","user-field","d-button","span","route-action","br"]]',moduleName:"discourse/templates/invites/show.hbs",isStrictMode:!1})},12788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"6zFUKqed",block:'[[[1,[35,0]],[1,"\\n"],[1,[35,1]]],[],false,["loading-spinner","hide-application-footer"]]',moduleName:"discourse/templates/loading.hbs",isStrictMode:!1})},72242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"KYZLNuoR",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["login.to_continue"],null]],[13],[1,"\\n\\n "],[10,2],[14,5,"margin-top: 1em"],[12],[1,[28,[35,2],["login.preferences"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,5],["showLogin"],null],"log_in"]],null],[1,"\\n"],[13]],[],false,["div","h2","i18n","p","d-button","route-action"]]',moduleName:"discourse/templates/login-preferences.hbs",isStrictMode:!1})},299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"uK4W1HGW",block:'[[[41,[28,[37,1],[[30,0,["siteSettings","full_page_login"]],[28,[37,2],[[30,0,["showLogin"]],[28,[37,3],[[30,0,["siteSettings","login_required"]]],null]],null]],null],[[[1," "],[1,[28,[35,4],["search","login","signup","menu"],null]],[1,"\\n "],[1,[35,5]],[1,"\\n "],[1,[28,[35,6],["login-page"],null]],[1,"\\n "],[10,0],[14,0,"login-fullpage"],[12],[1,"\\n "],[8,[39,8],null,[["@flash","@type"],[[30,0,["flash"]],[30,0,["flashType"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,9],["login-body",[30,0,["bodyClasses"]]],null]],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n\\n"],[41,[30,0,["hasNoLoginOptions"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n "],[10,0],[14,0,"login-welcome-header no-login-methods-configured"],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,12],["login.no_login_methods.title"],null]],[13],[1,"\\n "],[10,"img"],[12],[13],[1,"\\n "],[10,2],[14,0,"login-subheader"],[12],[1,"\\n "],[1,[28,[35,15],[[28,[37,12],["login.no_login_methods.description",[28,[37,16],null,[["adminLoginPath"],[[30,0,["adminLoginPath"]]]]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,16],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1," "],[8,[39,18],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,16],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[39,19],null,[["@loginName","@loginNameChanged","@canLoginLocalWithEmail","@canUsePasskeys","@passkeyLogin","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@showSecurityKey","@otherMethodAllowed","@showSecondFactor","@handleForgotPassword","@login","@flashChanged","@flashTypeChanged","@securityKeyCredentialChanged"],[[30,0,["loginName"]],[30,0,["loginNameChanged"]],[30,0,["canLoginLocalWithEmail"]],[30,0,["canUsePasskeys"]],[30,0,["passkeyLogin"]],[30,0,["loginPassword"]],[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["totpEnabled"]],[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["otherMethodAllowed"]],[30,0,["showSecondFactor"]],[30,0,["handleForgotPassword"]],[30,0,["triggerLogin"]],[30,0,["flashChanged"]],[30,0,["flashTypeChanged"]],[30,0,["securityKeyCredentialChanged"]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,20],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,0,["showLoginButtons"]],[30,0,["site","desktopView"]]],null],[[[41,[51,[30,0,["canLoginLocal"]]],[[[1," "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n "],[8,[39,17],null,[["@header"],[[28,[37,12],["login.header_title"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[1," "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,18],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[51,[30,0,["hasNoLoginOptions"]]],[[[1," "],[8,[39,20],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[1,[28,[35,6],["static-login"],null]],[1,"\\n "],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[10,0],[14,0,"login-welcome"],[12],[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["above-login",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,10],null,[["@name"],["above-static"]],null],[1,"\\n\\n "],[10,0],[14,0,"login-content"],[12],[1,"\\n "],[1,[28,[35,15],[[30,0,["model","html"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],null,[["@name"],["below-static"]],null],[1,"\\n "],[8,[39,10],null,[["@name","@outletArgs"],["below-login",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"body-page-button-container"],[12],[1,"\\n"],[41,[30,0,["application","canSignUp"]],[[[1," "],[8,[39,23],[[24,0,"btn-primary sign-up-button"]],[["@action","@label"],[[28,[37,24],["showCreateAccount"],null],"sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary login-button"]],[["@action","@icon","@label"],[[52,[30,0,["shouldTriggerRouteAction"]],[28,[37,24],["showLogin"],null],[30,0,["showFullPageLogin"]]],"user","log_in"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[],false,["if","and","or","not","hide-application-header-buttons","hide-application-sidebar","body-class","div","flash-message","concat-class","plugin-outlet","h1","i18n","img","p","html-safe","hash","welcome-header","login-buttons","local-login-form","login-page-cta","unless","section","d-button","route-action"]]',moduleName:"discourse/templates/login.hbs",isStrictMode:!1})},98099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"n/VVzRBv",block:'[[[1,[28,[35,0],["password-reset-page"],null]],[1,"\\n"],[1,[35,1]],[1,"\\n"],[1,[28,[35,2],["search","login","signup","menu"],null]],[1,"\\n"],[10,0],[14,0,"container password-reset clearfix"],[12],[1,"\\n "],[10,"form"],[14,0,"change-password-form login-left-side"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,2],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n\\n"],[41,[30,0,["requiresApproval"]],[[[1," "],[10,2],[12],[1,[28,[35,7],["login.not_approved"],null]],[13],[1,"\\n"]],[]],[[[41,[51,[30,0,["redirected"]]],[[[1," "],[11,3],[24,0,"btn"],[16,6,[30,0,["redirectHref"]]],[4,[38,10],["click",[30,0,["done"]]],null],[12],[1,[30,0,["continueButtonText"]]],[13],[1,"\\n"]],[]],null]],[]]]],[]],[[[41,[30,0,["securityKeyOrSecondFactorRequired"]],[[[1," "],[10,"h2"],[12],[1,[28,[35,7],["user.change_password.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,7],["user.change_password.verify_identity"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySecurityKeyForm"]],[[[1," "],[8,[39,13],null,[["@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,14],[[28,[37,15],[[30,0,["selectedSecondFactorMethod"]]],null]],null],[30,0,["backupEnabled"]],[30,0,["secondFactorRequired"]],[30,0,["otherMethodAllowed"]],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,16],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,0,["selectedSecondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["secondFactorRequired"]],false]],[["default"],[[[[1,"\\n "],[8,[39,17],[[16,2,[30,0,["secondFactorToken"]]],[24,1,"second-factor"],[4,[38,10],["input",[28,[37,18],[[28,[37,14],[[28,[37,15],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["selectedSecondFactorMethod"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["displaySecurityKeyForm"]]],[[[1," "],[8,[39,19],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,20],[[30,0],"submit"],null],"submit"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,"h2"],[12],[1,[28,[35,7],["user.change_password.choose_new"],null]],[13],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input"],[12],[1,"\\n "],[8,[39,21],[[24,"autofocus","autofocus"],[24,"autocomplete","new-password"],[24,1,"new-account-password"],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,10],["focusout",[30,0,["togglePasswordValidation"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,0],[14,0,"change-password__password-info"],[12],[1,"\\n "],[10,0],[14,0,"change-password_tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,22],null,[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,23],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,7],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,24],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,19],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,20],[[30,0],"submit"],null],"user.change_password.set_password"]],null],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n"],[13]],[],false,["body-class","hide-application-sidebar","hide-application-header-buttons","div","form","if","p","i18n","unless","a","on","h2","br","security-key-form","fn","mut","second-factor-form","second-factor-input","with-event-value","d-button","action","password-field","input-tip","d-icon","toggle-password-mask"]]',moduleName:"discourse/templates/password-reset.hbs",isStrictMode:!1})},5533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"fBTUoEBV",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference"],[12],[1,"\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["success"]],[[[1," "],[10,0],[14,0,"alert alert-success"],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n "],[8,[39,5],[[24,0,"success-back"]],[["@route"],["preferences.account"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["arrow-left"],null]],[1,"\\n "],[1,[28,[35,7],["user.change_email.back_to_preferences"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["new"]],"user.add_email.title","user.change_email.title"]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@id","@classNames","@autofocus"],[[30,0,["newEmail"]],"change-email","input-xxlarge","autofocus"]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1," "],[1,[28,[35,7],["user.change_email.taken"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["user.email.instructions"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,10],null,[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls save-button"],[12],[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[28,[37,12],[[30,0],"saveEmail"],null],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n "],[8,[39,5],[[24,0,"cancel"]],[["@route","@model"],["preferences.account",[30,0,["model","username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[13]],[],false,["body-class","section","form","if","div","link-to","d-icon","i18n","label","text-field","input-tip","d-button","action"]]',moduleName:"discourse/templates/preferences-email.hbs",isStrictMode:!1})},6257:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"q4Cgppya",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference second-factor"],[12],[1,"\\n "],[8,[39,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["showEnforcedNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,6],["user.second_factor.enforced_notice"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEnforcedWithOAuthNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,6],["user.second_factor.enforced_with_oauth_notice"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayOAuthWarning"]],[[[1," "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,6],["user.second_factor.oauth_enabled_warning"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group totp"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor.totp.title"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["totps"]]],null]],null],null,[[[1," "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,1,["name"]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor.totp.default_name"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,10],null,[["@totp","@editSecondFactor","@disableSingleSecondFactor"],[[30,1],[28,[37,11],[[30,0],"editSecondFactor"],null],[28,[37,11],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,12],[[24,0,"btn-default new-totp"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"createTotp"],null],"plus",[30,0,["loading"]],"user.second_factor.totp.add"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group security-key"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor.security_key.title"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["security_keys"]]],null]],null],null,[[[1," "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,2,["name"]],[[[1," "],[1,[30,2,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor.security_key.default_name"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,13],null,[["@securityKey","@editSecurityKey","@disableSingleSecondFactor"],[[30,2],[28,[37,11],[[30,0],"editSecurityKey"],null],[28,[37,11],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[8,[39,12],[[24,0,"btn-default new-security-key"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"createSecurityKey"],null],"plus",[30,0,["loading"]],"user.second_factor.security_key.add"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group pref-second-factor-backup"],[12],[1,"\\n "],[10,0],[14,0,"controls pref-second-factor-backup"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,6],["user.second_factor_backup.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_enabled"]],[[[1," "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_backup_enabled"]],[[[1," "],[1,[28,[35,14],[[28,[37,6],["user.second_factor_backup.manage"],[["count"],[[30,0,["model","second_factor_remaining_backup_codes"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],[[24,0,"btn-default new-second-factor-backup"]],[["@action","@icon","@disabled","@label"],[[28,[37,11],[[30,0],"editSecondFactorBackup"],null],"plus",[30,0,["loading"]],"user.second_factor_backup.enable_long"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[37,15],[[30,0,["model","second_factor_backup_enabled"]],[30,0,["isCurrentUser"]]],null],[[[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[39,16],null,[["@secondFactorBackupEnabled","@editSecondFactorBackup","@disableSecondFactorBackup"],[[30,0,["model","second_factor_backup_enabled"]],[28,[37,11],[[30,0],"editSecondFactorBackup"],null],[28,[37,11],[[30,0],"disableSecondFactorBackup"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.second_factor_backup.enable_prerequisites"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasSecondFactors"]],[[[41,[51,[30,0,["showEnforcedNotice"]]],[[[1," "],[10,0],[14,0,"control-group pref-second-factor-disable-all"],[12],[1,"\\n "],[10,0],[14,0,"controls -actions"],[12],[1,"\\n "],[8,[39,12],[[24,0,"btn-danger"]],[["@icon","@action","@disabled","@label"],["ban",[28,[37,11],[[30,0],"disableAllSecondFactors"],null],[30,0,["loading"]],"user.second_factor.disable_all"]],null],[1,"\\n "],[8,[39,18],[[24,0,"cancel"]],[["@route","@model"],["preferences.security",[30,0,["model","username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["totp","security_key"],false,["body-class","section","conditional-loading-spinner","form","if","div","i18n","h2","each","-track-array","token-based-auth-dropdown","action","d-button","security-key-dropdown","html-safe","and","two-factor-backup-dropdown","unless","link-to"]]',moduleName:"discourse/templates/preferences-second-factor.hbs",isStrictMode:!1})},38910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"V/ruSD30",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,2],null,[["@ariaLabel"],["User secondary - preferences"]],[["default"],[[[[1,"\\n "],[8,[39,3],[[24,0,"user-nav__preferences-account"]],[["@route","@ariaCurrentContext"],["preferences.account","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.account"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-security"]],[["@route","@ariaCurrentContext"],["preferences.security","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["lock"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.security"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-profile"]],[["@route","@ariaCurrentContext"],["preferences.profile","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.profile"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-emails"]],[["@route","@ariaCurrentContext"],["preferences.emails","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.emails"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-notifications"]],[["@route","@ariaCurrentContext"],["preferences.notifications","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bell"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.notifications"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","can_change_tracking_preferences"]],[[[1," "],[8,[39,3],[[24,0,"user-nav__preferences-tracking"]],[["@route","@ariaCurrentContext"],["preferences.tracking","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["plus"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.tracking"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],[[24,0,"user-nav__preferences-users"]],[["@route","@ariaCurrentContext"],["preferences.users","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["users"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.users"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-interface"]],[["@route","@ariaCurrentContext"],["preferences.interface","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["desktop"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.interface"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,3],[[24,0,"user-nav__preferences-navigation-menu"]],[["@route","@ariaCurrentContext"],["preferences.navigation-menu","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bars"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences_nav.navigation_menu"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav-under-interface","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav","li",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences"],[14,1,"user-content"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["above-user-preferences","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","if","plugin-outlet","hash","section","form","component","-outlet"]]',moduleName:"discourse/templates/preferences.hbs",isStrictMode:!1})},68822:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"IXQmaTXh",block:'[[[10,0],[14,0,"control-group pref-username"],[14,"data-setting-name","user-username"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.username.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,0,["model"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","discourse_connect_overrides_avatar"]]],[[[1," "],[10,0],[14,0,"control-group pref-avatar"],[14,"data-setting-name","user-avatar"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,1,"profile-picture"],[12],[1,[28,[35,2],["user.avatar.title"],null]],[13],[1,"\\n "],[10,"input"],[14,1,"user-avatar-uploads"],[15,"data-custom-avatar-upload-id",[30,0,["model","custom_avatar_upload_id"]]],[15,"data-system-avatar-upload-id",[30,0,["model","system_avatar_upload_id"]]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[1," "],[1,[28,[35,6],[[30,0,["model"]],"huge"],null]],[1,"\\n "],[8,[39,7],[[24,1,"edit-avatar"],[24,0,"btn-default pad-left"]],[["@action","@icon"],[[28,[37,8],[[28,[37,9],["showAvatarSelector"],null],[30,0,["model"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[14,0,"control-group pref-email"],[14,"data-setting-name","user-email"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email.title"],null]],[13],[1,"\\n"],[41,[30,0,["model","email"]],[[[41,[30,0,["siteSettings","enable_secondary_emails"]],[[[1," "],[10,0],[14,0,"emails"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["emails"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row email"],[12],[1,"\\n "],[10,0],[14,0,"email-first"],[12],[1,[30,1,["email"]]],[13],[1,"\\n "],[10,0],[14,0,"email-second"],[12],[1,"\\n"],[41,[30,1,["primary"]],[[[1," "],[10,1],[14,0,"primary"],[12],[1,"\\n "],[1,[28,[35,2],["user.email.primary_label"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[51,[30,1,["confirmed"]]],[[[1," "],[10,1],[14,0,"unconfirmed"],[12],[1,"\\n "],[1,[28,[35,2],["user.email.unconfirmed_label"],null]],[1,"\\n "],[13],[1,"\\n •\\n"],[41,[30,1,["resending"]],[[[1," "],[10,1],[12],[1,[28,[35,2],["user.email.resending_label"],null]],[13],[1,"\\n"]],[]],[[[41,[30,1,["resent"]],[[[1," "],[10,1],[12],[1,[28,[35,2],["user.email.resent_label"],null]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"resend-email-confirmation"],[24,4,"button"],[4,[38,15],["click",[28,[37,8],[[30,0,["resendConfirmationEmail"]],[30,1]],null]],null],[12],[1,"\\n "],[1,[28,[35,2],["user.email.resend_label"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1," "],[8,[39,16],null,[["@email","@setPrimaryEmail","@destroyEmail"],[[30,1],[28,[37,17],[[30,0],"setPrimaryEmail"],null],[28,[37,17],[[30,0],"destroyEmail"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canAddEmail"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,18],null,[["@route","@query"],["preferences.email",[28,[37,19],null,[["new"],[1]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,20],["plus"],null]],[1,"\\n "],[1,[28,[35,2],["user.email.add_email"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","email"]]],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1," "],[8,[39,18],[[24,0,"btn btn-default btn-small btn-icon pad-left no-text"]],[["@route"],["preferences.email"]],[["default"],[[[[1,"\\n "],[1,[28,[35,20],["pencil"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["siteSettings","auth_overrides_email"]],[[[1," "],[1,[28,[35,2],["user.email.auth_override_instructions"],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,2],["user.email.instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-default"]],[["@action","@title","@icon","@label"],[[28,[37,8],[[28,[37,9],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canUpdateAssociatedAccounts"]],[[[1," "],[10,0],[14,0,"control-group pref-associated-accounts"],[14,"data-setting-name","user-associated-accounts"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.associated_accounts.title"],null]],[13],[1,"\\n"],[41,[30,0,["associatedAccountsLoaded"]],[[[1," "],[10,"table"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["authProviders"]]],null]],null],null,[[[41,[30,2,["account"]],[[[1," "],[10,"tr"],[15,0,[29,[[28,[37,24],[[30,2,["method","name"]]],null]," account-connected"]]],[12],[1,"\\n "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n "],[10,"td"],[12],[1,[30,2,["account","description"]]],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,2,["method","can_revoke"]],[[[1," "],[8,[39,7],[[24,0,"btn-danger no-text"]],[["@action","@title","@icon","@disabled"],[[28,[37,8],[[28,[37,17],[[30,0],"revokeAccount"],null],[30,2,["account"]]],null],"user.associated_accounts.revoke","trash-can",[28,[37,26],[[30,0,["revoking"]],[30,2,["method","name"]]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"tr"],[15,0,[28,[37,24],[[30,2,["method","name"]]],null]],[12],[1,"\\n "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n "],[10,"td"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,2,["method","can_connect"]],[[[1," "],[8,[39,7],[[24,0,"btn-default"]],[["@action","@label","@icon","@disabled"],[[28,[37,8],[[28,[37,17],[[30,0],"connectAccount"],null],[30,2,["method"]]],null],"user.associated_accounts.connect","plug",[30,0,["disableConnectButtons"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["user.associated_accounts.not_connected"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],null,[["@action","@title","@icon","@label"],[[28,[37,8],[[28,[37,9],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditName"]],[[[1," "],[10,0],[14,0,"control-group pref-name"],[14,"data-setting-name","user-name"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.name.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_name"]],[[[1," "],[8,[39,27],null,[["@value","@classNames","@maxlength"],[[30,0,["newNameInput"]],"input-xxlarge","255"]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[30,0,["nameInstructions"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1," "],[10,0],[14,0,"control-group pref-title"],[14,"data-setting-name","user-title"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.title.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,28],null,[["@value","@content","@onChange","@options"],[[30,0,["newTitleInput"]],[30,0,["model","availableTitles"]],[28,[37,8],[[28,[37,29],[[30,0,["newTitleInput"]]],null]],null],[28,[37,19],null,[["none"],["user.title.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.title.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectFlair"]],[[[1," "],[10,0],[14,0,"control-group pref-flair"],[14,"data-setting-name","user-flair"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.flair.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,30],null,[["@value","@content","@onChange","@options"],[[30,0,["newFlairGroupId"]],[30,0,["model","availableFlairs"]],[28,[37,8],[[28,[37,29],[[30,0,["newFlairGroupId"]]],null]],null],[28,[37,19],null,[["none"],["user.flair.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.flair.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectUserStatus"]],[[[1," "],[10,0],[14,0,"control-group pref-user-status"],[14,"data-setting-name","user-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.status.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["newStatus"]],[[[1," "],[8,[39,31],null,[["@status","@showDescription"],[[30,0,["newStatus"]],true]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[28,[35,2],["user.status.not_set"],null]],[13],[1,"\\n"]],[]]],[1," "],[8,[39,7],[[24,0,"btn-default btn-small pad-left"]],[["@action","@icon"],[[28,[37,8],[[28,[37,17],[[30,0],"showUserStatusModal"],null],[30,0,["newStatus"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectPrimaryGroup"]],[[[1," "],[10,0],[14,0,"control-group pref-primary-group"],[14,"data-setting-name","user-primary-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.primary_group.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,28],null,[["@value","@content","@options"],[[30,0,["newPrimaryGroupInput"]],[30,0,["model","filteredGroups"]],[28,[37,19],null,[["none"],["user.primary_group.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDownloadPosts"]],[[[1," "],[10,0],[14,0,"control-group pref-data-export"],[14,"data-setting-name","user-data-export"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.download_archive.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-default btn-request-archive"]],[["@action","@label","@icon"],[[28,[37,17],[[30,0],"exportUserArchive"],null],"user.download_archive.button_text","download"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.download_archive.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,32],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-account","div",[28,[37,19],null,[["model","save"],[[30,0,["model"]],[28,[37,17],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,32],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,19],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSaveUser"]],[[[1," "],[8,[39,34],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,17],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","canDeleteAccount"]],[[[1," "],[10,0],[14,0,"control-group delete-account"],[12],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[28,[37,17],[[30,0],"delete"],null],[30,0,["deleteDisabled"]],"trash-can","user.delete_account"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["email","authProvider"],false,["div","label","i18n","username-preference","unless","input","bound-avatar","d-button","fn","route-action","if","each","-track-array","span","button","on","email-dropdown","action","link-to","hash","d-icon","table","tbody","tr","dasherize","td","get","text-field","combo-box","mut","flair-chooser","user-status-message","plugin-outlet","br","save-controls"]]',moduleName:"discourse/templates/preferences/account.hbs",isStrictMode:!1})},57795:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"oQ40bif/",block:'[[[8,[39,0],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-apps","div",[28,[37,3],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model"],false,["user-preferences/user-api-keys","span","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/apps.hbs",isStrictMode:!1})},27791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"8FcNxUR9",block:'[[[8,[39,0],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@save","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSave"]],[[[1," "],[8,[39,3],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["user.no_category_access"],null]],[1,"\\n"]],[]]]],[],false,["user-preferences/categories","action","if","save-controls","i18n"]]',moduleName:"discourse/templates/preferences/categories.hbs",isStrictMode:!1})},30192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"K3des7M9",block:'[[[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1," "],[10,0],[14,0,"warning-wrap"],[12],[1,"\\n "],[10,0],[14,0,"warning"],[12],[1,[28,[35,3],["user.mailing_list_mode.warning"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[10,0],[14,0,"control-group pref-email-settings"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.email_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-messages-level"],[12],[1,"\\n "],[10,"label"],[14,"for","user-email-messages-level"],[12],[1,[28,[35,3],["user.email_messages_level"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_messages_level"]],"user-email-messages-level",[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_messages_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailMessagesLevelAway"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-level"],[12],[1,"\\n "],[10,"label"],[14,"for","user-email-level"],[12],[1,[28,[35,3],["user.email_level.title"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_level"]],"user-email-level",[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailLevelAway"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-previous-replies"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.email_previous_replies.title"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["previousRepliesOptions"]],[30,0,["model","user_option","email_previous_replies"]],[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","email_previous_replies"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-email-in-reply-to"]],[["@labelKey","@checked"],["user.email_in_reply_to",[30,0,["model","user_option","email_in_reply_to"]]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails-pref-email-settings","div",[28,[37,11],null,[["model","save"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","disable_digest_emails"]]],[[[1," "],[10,0],[14,0,"control-group pref-activity-summary"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.email_activity_summary"],null]],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-email-digests"]],[["@labelKey","@disabled","@checked"],["user.email_digests.title",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","email_digests"]]]],null],[1,"\\n"],[41,[30,0,["model","user_option","email_digests"]],[[[1," "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-digests-frequency"],[12],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange","@options"],["value",[30,0,["digestFrequencies"]],[30,0,["model","user_option","digest_after_minutes"]],[28,[37,6],[[28,[37,7],[[30,0,["model","user_option","digest_after_minutes"]]],null]],null],[28,[37,11],null,[["filterable"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-include-tl0-in-digests"]],[["@labelKey","@disabled","@checked"],["user.include_tl0_in_digests",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","include_tl0_in_digests"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[1," "],[10,0],[14,0,"control-group pref-mailing-list-mode"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.mailing_list_mode.label"],null]],[13],[1,"\\n "],[8,[39,8],[[24,"data-setting-name","user-mailing-list-mode-enabled"]],[["@labelKey","@checked"],["user.mailing_list_mode.enabled",[30,0,["model","user_option","mailing_list_mode"]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,13],[[28,[37,3],["user.mailing_list_mode.instructions"],null]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1," "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-mailing-list-mode-options"],[12],[1,"\\n "],[8,[39,5],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["mailingListModeOptions"]],[30,0,["model","user_option","mailing_list_mode_frequency"]],[28,[37,12],[[30,0],[28,[37,7],[[30,0,["model","user_option","mailing_list_mode_frequency"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails","div",[28,[37,11],null,[["model","save"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,11],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,15],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,12],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["unless","if","div","i18n","label","combo-box","fn","mut","preference-checkbox","span","plugin-outlet","hash","action","html-safe","br","save-controls"]]',moduleName:"discourse/templates/preferences/emails.hbs",isStrictMode:!1})},67666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"kmozkeGb",block:'[[[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface-top","div",[28,[37,2],null,[["model","save"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showThemeSelector"]],[[[1," "],[10,0],[14,0,"control-group theme"],[14,"data-setting-name","user-theme"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.theme"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value"],[[30,0,["userSelectableThemes"]],[30,0,["themeId"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["themeIdChanged"]],[[[1," "],[10,2],[14,0,"alert alert-success save-theme-alert"],[12],[1,[28,[35,7],["user.save_to_change_theme"],[["save_text"],[[28,[37,7],["save"],null]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showThemeSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.theme_default_on_all_devices",[30,0,["makeThemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showColorSchemeSelector"]],[[[1," "],[10,"fieldset"],[14,0,"control-group color-scheme"],[14,"data-setting-name","user-color-scheme"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.color_scheme"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"control-subgroup light-color-scheme"],[12],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],["user.color_schemes.regular"],null]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value","@onChange","@options"],[[30,0,["userSelectableColorSchemes"]],[30,0,["selectedColorSchemeId"]],[28,[37,3],[[30,0],"loadColorScheme"],null],[28,[37,2],null,[["translatedNone","autoInsertNoneItem"],[[30,0,["selectedColorSchemeNoneLabel"]],[30,0,["showColorSchemeNoneItem"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"control-subgroup dark-color-scheme"],[12],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],["user.color_schemes.dark"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@content","@value","@onChange"],[[30,0,["userSelectableDarkColorSchemes"]],[30,0,["selectedDarkColorSchemeId"]],[28,[37,3],[[30,0],"loadDarkColorScheme"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["previewingColorScheme"]],[[[41,[30,0,["previewingColorScheme"]],[[[1," "],[8,[39,13],[[24,0,"btn-default btn-small undo-preview"]],[["@action","@label","@icon"],[[28,[37,3],[[30,0],"undoColorSchemePreview"],null],"user.color_schemes.undo","arrow-rotate-left"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls color-scheme-checkbox"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.color_scheme_default_on_all_devices",[30,0,["makeColorSchemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,7],["user.color_schemes.dark_instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDarkModeToggle"]],[[[1," "],[10,0],[14,0,"control-group dark-mode"],[14,"data-setting-name","user-dark-mode"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.dark_mode"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.dark_mode_enable",[30,0,["enableDarkMode"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group text-size"],[14,"data-setting-name","user-text-size"],[12],[1,"\\n "],[10,"label"],[14,"for","text-size-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.text_size.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@valueProperty","@content","@value","@onChange"],["text-size-selector","value",[30,0,["textSizes"]],[30,0,["textSize"]],[28,[37,3],[[30,0],"selectTextSize"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showTextSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.text_size_default_on_all_devices",[30,0,["makeTextSizeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_user_locale"]],[[[1," "],[10,0],[14,0,"control-group pref-locale"],[14,"data-setting-name","user-locale"],[12],[1,"\\n "],[10,"label"],[14,"for","locale-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.locale.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@valueProperty","@langProperty","@content","@value","@onChange","@options"],["locale-selector","value","value",[30,0,["availableLocales"]],[30,0,["model","locale"]],[28,[37,14],[[28,[37,15],[[30,0,["model","locale"]]],null]],null],[28,[37,2],null,[["filterable","none"],[true,"user.locale.default"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,7],["user.locale.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group home"],[14,"data-setting-name","user-home"],[12],[1,"\\n "],[10,"label"],[14,"for","home-selector"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.home"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],null,[["@id","@content","@valueProperty","@value","@onChange"],["home-selector",[30,0,["userSelectableHome"]],"value",[30,0,["homepageId"]],[28,[37,14],[[28,[37,15],[[30,0,["model","user_option","homepage_id"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"fieldset"],[14,0,"control-group other"],[14,"data-setting-name","user-other-settings"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,7],["user.other_settings"],null]],[13],[1,"\\n\\n "],[8,[39,10],[[24,"data-setting-name","user-external-links"],[24,0,"pref-external-links"]],[["@labelKey","@checked"],["user.external_links_in_new_tab",[30,0,["model","user_option","external_links_in_new_tab"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-quoting"],[24,0,"pref-enable-quoting"]],[["@labelKey","@checked"],["user.enable_quoting",[30,0,["model","user_option","enable_quoting"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-smart-lists"],[24,0,"pref-enable-smart-lists"]],[["@labelKey","@checked"],["user.enable_smart_lists",[30,0,["model","user_option","enable_smart_lists"]]]],null],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-enable-defer"],[24,0,"pref-defer-unread"]],[["@labelKey","@checked"],["user.enable_defer",[30,0,["model","user_option","enable_defer"]]]],null],[1,"\\n"],[41,[30,0,["siteSettings","automatically_unpin_topics"]],[[[1," "],[8,[39,10],[[24,"data-setting-name","user-auto-unpin"],[24,0,"pref-auto-unpin"]],[["@labelKey","@checked"],["user.automatically_unpin_topics",[30,0,["model","user_option","automatically_unpin_topics"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","allow_users_to_hide_profile"]],[[[1," "],[8,[39,10],[[24,"data-setting-name","user-hide-profile"],[24,0,"pref-hide-profile"]],[["@labelKey","@checked"],["user.hide_profile",[30,0,["model","user_option","hide_profile"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],[[24,"data-setting-name","user-dynamic-favicon"],[24,0,"pref-dynamic-favicon"]],[["@labelKey","@checked"],["user.dynamic_favicon",[30,0,["model","user_option","dynamic_favicon"]]]],null],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown pref-page-title"],[14,"data-setting-name","user-page-title"],[12],[1,"\\n "],[10,"label"],[14,"for","user-title-count-mode"],[12],[1,[28,[35,7],["user.title_count_mode.title"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["titleCountModes"]],[30,0,["model","user_option","title_count_mode"]],"user-title-count-mode",[28,[37,14],[[28,[37,15],[[30,0,["model","user_option","title_count_mode"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown pref-bookmark-after-notification"],[14,"data-setting-name","user-bookmark-after-notification"],[12],[1,"\\n "],[10,"label"],[14,"for","bookmark-after-notification-mode"],[12],[1,[28,[35,7],["user.bookmark_after_notification.title"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["bookmarkAfterNotificationModes"]],[30,0,["model","user_option","bookmark_auto_delete_preference"]],"bookmark-after-notification-mode",[28,[37,3],[[30,0],[28,[37,15],[[30,0,["model","user_option","bookmark_auto_delete_preference"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],[[24,"data-setting-name","user-new-user-tips"],[24,0,"pref-new-user-tips"]],[["@labelKey","@checked"],["user.skip_new_user_tips.description",[30,0,["model","user_option","skip_new_user_tips"]]]],null],[1,"\\n"],[41,[30,0,["site","user_tips"]],[[[1," "],[8,[39,13],[[24,"data-setting-name","user-reset-seen-user-tips"],[24,0,"btn-default pref-reset-seen-user-tips"]],[["@action"],[[28,[37,3],[[30,0],"resetSeenUserTips"],null]]],[["default"],[[[[1,[28,[35,7],["user.reset_seen_user_tips"],null]]],[]]]]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface","div",[28,[37,2],null,[["model","save"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,17],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["span","plugin-outlet","hash","action","if","div","label","i18n","combo-box","p","preference-checkbox","fieldset","legend","d-button","fn","mut","br","save-controls"]]',moduleName:"discourse/templates/preferences/interface.hbs",isStrictMode:!1})},14397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ThTfBORe",block:'[[[10,0],[14,0,"control-group preferences-navigation-menu-navigation"],[14,"data-setting-name","user-navigation-menu-navigation"],[12],[1,"\\n "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.experimental_sidebar.navigation_section"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.experimental_sidebar.navigation_section_instruction"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"pref-link-to-filtered-list"]],[["@labelKey","@checked"],["user.experimental_sidebar.link_to_filtered_list_checkbox_description",[30,0,["newSidebarLinkToFilteredList"]]]],null],[1,"\\n "],[8,[39,4],[[24,0,"pref-show-count-new-items"]],[["@labelKey","@checked"],["user.experimental_sidebar.show_count_new_items_checkbox_description",[30,0,["newSidebarShowCountOfNewItems"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,6],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["div","legend","i18n","label","preference-checkbox","save-controls","action"]]',moduleName:"discourse/templates/preferences/navigation-menu.hbs",isStrictMode:!1})},53823:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"57sNkMo2",block:'[[[10,0],[14,0,"control-group notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.notifications"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-like-notification-frequency"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.like_notification_frequency.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["likeNotificationFrequencies"]],[30,0,["model","user_option","like_notification_frequency"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","like_notification_frequency"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["capabilities","isAppWebview"]]],[[[1," "],[10,0],[14,0,"control-group desktop-notifications"],[14,"data-setting-name","user-desktop-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.desktop_notifications.label"],null]],[13],[1,"\\n "],[8,[39,7],null,null,null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.desktop_notifications.each_browser_note"],null]],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-desktop-notifications","div",[28,[37,10],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,11],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-notifications","div",[28,[37,10],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,13],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["div","label","i18n","combo-box","action","mut","unless","desktop-notification-config","span","plugin-outlet","hash","user-notification-schedule","br","save-controls"]]',moduleName:"discourse/templates/preferences/notifications.hbs",isStrictMode:!1})},66996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"NBRHA/Bl",block:'[[[41,[30,0,["showEnforcedRequiredFieldsNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[28,[35,2],["user.preferences.profile.enforced_required_fields"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,0,["canChangeBio"]],[[[1," "],[10,0],[14,0,"control-group pref-bio"],[14,"data-setting-name","user-bio"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.bio"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls bio-composer input-xxlarge"],[12],[1,"\\n "],[8,[39,5],null,[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group pref-timezone"],[14,"data-setting-name","user-timezone"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.timezone"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"input-xxlarge"]],[["@value","@onChange"],[[30,0,["model","user_option","timezone"]],[28,[37,7],[[28,[37,8],[[30,0,["model","user_option","timezone"]]],null]],null]]],null],[1,"\\n "],[8,[39,9],[[24,0,"btn-default"]],[["@icon","@label","@action"],["globe","user.use_current_timezone",[28,[37,10],[[30,0],"useCurrentTimezone"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","can_change_location"]],[[[1," "],[10,0],[14,0,"control-group pref-location"],[14,"data-setting-name","user-location"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","edit-location"],[12],[1,[28,[35,2],["user.location"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-xxlarge"],[24,1,"edit-location"]],[["@type","@value"],["text",[30,0,["model","location"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_change_website"]],[[[1," "],[10,0],[14,0,"control-group pref-website"],[14,"data-setting-name","user-website"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","edit-website"],[12],[1,[28,[35,2],["user.website"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-xxlarge"],[24,1,"edit-website"]],[["@type","@value"],["text",[30,0,["model","website"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-user-fields"],[12],[1,"\\n "],[8,[39,14],null,[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n\\n"],[41,[51,[30,0,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,0,["siteSettings","allow_profile_backgrounds"]],[[[41,[30,0,["canUploadProfileHeader"]],[[[1," "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-profile-bg"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.change_profile_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,15],null,[["@imageUrl","@type","@id"],[[30,0,["model","profile_background_upload_url"]],"profile_background","profile-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_profile_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canUploadUserCardBackground"]],[[[1," "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-card-bg"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.change_card_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,15],null,[["@imageUrl","@type","@id"],[[30,0,["model","card_background_upload_url"]],"card_background","profile-card-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_card_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","allow_featured_topic_on_user_profiles"]],[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-featured-topic"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.featured_topic"],null]],[13],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1," "],[10,"label"],[14,0,"featured-topic-link"],[12],[1,"\\n "],[8,[39,16],null,[["@route","@models"],["topic",[28,[37,17],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,18],[[28,[37,19],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,9],[[24,0,"btn-default feature-topic-on-profile-btn"]],[["@action","@label"],[[30,0,["showFeaturedTopicModal"]],"user.feature_topic_on_profile.open_search"]],null],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1," "],[8,[39,9],[[24,0,"btn-danger clear-feature-topic-on-profile-btn"]],[["@action","@label"],[[28,[37,10],[[30,0],"clearFeaturedTopicFromProfile"],null],"user.feature_topic_on_profile.clear.title"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["user.change_featured_topic.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeDefaultCalendar"]],[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-default-calendar"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["download_calendar.default_calendar"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,20],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["calendarOptions"]],[30,0,["model","user_option","default_calendar"]],"user-default-calendar",[28,[37,7],[[28,[37,8],[[30,0,["model","user_option","default_calendar"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,2],["download_calendar.default_calendar_instruction"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,21],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-profile","div",[28,[37,22],null,[["model","save"],[[30,0,["model"]],[28,[37,10],[[30,0],"save"],null]]]]]],null],[1,"\\n\\n "],[8,[39,21],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-preferences","div",[28,[37,22],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "],[8,[39,21],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,22],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,23],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,10],[[30,0],"save"],null],[30,0,["saved"]]]],null]],["uf"],false,["if","div","i18n","unless","label","d-editor","timezone-input","fn","mut","d-button","action","input","each","-track-array","user-field","uppy-image-uploader","link-to","array","replace-emoji","html-safe","combo-box","plugin-outlet","hash","save-controls"]]',moduleName:"discourse/templates/preferences/profile.hbs",isStrictMode:!1})},72969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"D1mv+E+E",block:'[[[41,[30,0,["canChangePassword"]],[[[1," "],[10,0],[14,0,"control-group pref-password"],[14,"data-setting-name","user-password"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.password.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"btn btn-default"],[4,[38,5],["click",[30,0,["changePassword"]]],null],[12],[1,"\\n "],[1,[28,[35,6],["envelope"],null]],[1,"\\n"],[41,[30,0,["model","no_password"]],[[[1," "],[1,[28,[35,3],["user.change_password.set_password"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["user.change_password.action"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[1,[30,0,["passwordProgress"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canUsePasskeys"]],[[[1," "],[8,[39,7],null,[["@model"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1," "],[10,0],[14,0,"control-group pref-second-factor"],[14,"data-setting-name","user-second-factor"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.second_factor.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.second_factor.short_description"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls pref-second-factor"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-second-factor"]],[["@action","@icon","@label"],[[30,0,["manage2FA"]],"lock","user.second_factor.enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[14,0,"control-group pref-auth-tokens"],[14,"data-setting-name","user-auth-tokens"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.auth_tokens.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.short_description"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-tokens"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["authTokens"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row auth-token"],[12],[1,"\\n "],[10,0],[14,0,"auth-token-icon"],[12],[1,[28,[35,6],[[30,2,["icon"]]],null]],[13],[1,"\\n"],[41,[51,[30,2,["is_active"]]],[[[1," "],[8,[39,12],null,[["@token","@revokeAuthToken","@showToken"],[[30,2],[28,[37,13],[[30,0],"revokeAuthToken"],null],[28,[37,13],[[30,0],"showToken"],null]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"auth-token-first"],[12],[1,"\\n "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.device_location"],[["device","ip","location"],[[30,2,["device"]],[30,2,["client_ip"]],[30,2,["location"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-token-second"],[12],[1,"\\n"],[41,[30,2,["is_active"]],[[[1," "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.browser_active"],[["browser"],[[30,2,["browser"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,14],[[28,[37,3],["user.auth_tokens.browser_last_seen"],[["browser","date"],[[30,2,["browser"]],[28,[37,15],[[30,2,["seen_at"]]],null]]]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canShowAllAuthTokens"]],[[[1," "],[11,3],[24,6,""],[4,[38,5],["click",[30,0,["toggleShowAllAuthTokens"]]],null],[12],[1,"\\n"],[41,[30,0,["showAllAuthTokens"]],[[[1," "],[1,[28,[35,6],["caret-up"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.auth_tokens.show_few"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["caret-down"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.show_all"],[["count"],[[30,0,["model","user_auth_tokens","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[24,6,""],[24,0,"pull-right text-danger"],[4,[38,5],["click",[28,[37,17],[[30,0,["revokeAuthToken"]],null],null]],null],[12],[1,"\\n "],[1,[28,[35,6],["right-from-bracket"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,3],["user.auth_tokens.log_out_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,18],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-security","div",[28,[37,20],null,[["model","save"],[[30,0,["model"]],[28,[37,13],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,19],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,20],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model","token"],false,["if","div","label","i18n","a","on","d-icon","user-preferences/user-passkeys","d-button","each","-track-array","unless","auth-token-dropdown","action","html-safe","format-date","span","fn","user-preferences/user-api-keys","plugin-outlet","hash","br"]]',moduleName:"discourse/templates/preferences/security.hbs",isStrictMode:!1})},42272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"iumgIZhk",block:'[[[8,[39,0],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["user-preferences/tags","action","save-controls"]]',moduleName:"discourse/templates/preferences/tags.hbs",isStrictMode:!1})},63216:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"NfEaAIrM",block:'[[[1,[28,[35,0],["user-preferences-tracking-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-topics-wrapper"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.topics_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-new-topic-duration"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.new_topic_duration.label"],null]],[13],[1,"\\n "],[8,[39,4],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["considerNewTopicOptions"]],[30,0,["model","user_option","new_topic_duration_minutes"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-auto-track-topics"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.auto_track_topics"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["autoTrackDurations"]],[30,0,["model","user_option","auto_track_topics_after_msecs"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-notification-level-when-replying"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["user.notification_level_when_replying"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["notificationLevelsForReplying"]],[30,0,["model","user_option","notification_level_when_replying"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],null,[["@labelKey","@checked"],["user.topics_unread_when_closed",[30,0,["model","user_option","topics_unread_when_closed"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-categories-tags-wrapper"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,8],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[30,0,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[30,0,["save"]],[30,0,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["showMutePrecedenceSetting"]],[[[1," "],[10,0],[14,0,"control-group user-preferences__watched-precedence-over-muted"],[12],[1,"\\n "],[8,[39,7],[[24,"data-setting-name","watched-precedence-over-muted"]],[["@labelKey","@checked"],["user.watched_precedence_over_muted",[30,0,["model","user_option","watched_precedence_over_muted"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSave"]],[[[1," "],[8,[39,11],null,[["@model","@action","@saved"],[[30,0,["model"]],[30,0,["save"]],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null]],[],false,["body-class","div","label","i18n","combo-box","action","mut","preference-checkbox","user-preferences/categories","user-preferences/tags","if","save-controls"]]',moduleName:"discourse/templates/preferences/tracking.hbs",isStrictMode:!1})},66323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"K4s5gsX/",block:'[[[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.users"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","can_ignore_users"]],[[[1," "],[10,0],[14,0,"control-group user-ignore"],[14,"data-setting-name","user-ignored-users"],[12],[1,"\\n "],[10,0],[14,0,"controls tracking-controls user-notifications"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n "],[1,[28,[35,1],["user.ignored_users"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@model","@items"],[[30,0,["model"]],[30,0,["model","ignored_usernames"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_mute_users"]],[[[1," "],[10,0],[14,0,"control-group user-mute"],[14,"data-setting-name","user-muted-users"],[12],[1,"\\n "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,4],["d-muted"],[["class"],["icon"]]]],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["user.muted_users"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["mutedUsernames"]],[28,[37,8],[[30,0],"onChangeMutedUsernames"],null],[28,[37,9],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.muted_users_instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_send_private_messages"]],[[[1," "],[10,0],[14,0,"control-group private-messages"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.private_messages"],null]],[13],[1,"\\n "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked"],["user.allow_private_messages",[30,0,["model","user_option","allow_private_messages"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages-from-specific-users"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,10],null,[["@labelKey","@checked","@disabled"],["user.allow_private_messages_from_specific_users",[30,0,["model","user_option","enable_allowed_pm_users"]],[30,0,["disableAllowPmUsersSetting"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["allowPmUsersEnabled"]],[[[1," "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["allowedPmUsernames"]],[28,[37,8],[[30,0],"onChangeAllowedPmUsernames"],null],[28,[37,9],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.allowed_pm_users_instructions"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,12],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,8],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["label","i18n","if","div","d-icon","ignored-user-list","span","user-chooser","action","hash","preference-checkbox","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/users.hbs",isStrictMode:!1})},29772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"/Li+tftO",block:'[[[1,[28,[35,0],["static-privacy"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,3],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,3],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/privacy.hbs",isStrictMode:!1})},53625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"7uvxSOfb",block:'[[[10,0],[14,0,"reviewable-container"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-list"],[12],[1,"\\n"],[41,[30,0,["reviewables"]],[[[1," "],[8,[39,2],null,[["@selector","@action"],[".reviewable-item",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"reviewables"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["reviewables"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@reviewable","@remove"],[[30,1],[28,[37,3],[[30,0],"remove"],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,7],null,[["@condition"],[[30,0,["reviewables","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-review"],[12],[1,"\\n "],[1,[28,[35,8],["review.none"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filters"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.status"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterStatus"]],[30,0,["statuses"]],[28,[37,11],[[28,[37,12],[[30,0,["filterStatus"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["filtersExpanded"]],[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["above-review-filters","div",[28,[37,15],null,[["model","additionalFilters"],[[30,0,["model"]],[30,0,["additionalFilters"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["filterType"]],[30,0,["allTypes"]],[28,[37,11],[[28,[37,12],[[30,0,["filterType"]]],null]],null],[28,[37,15],null,[["none"],["review.filters.type.all"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.score_type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["filterScoreType"]],[30,0,["allScoreTypes"]],[28,[37,11],[[28,[37,12],[[30,0,["filterScoreType"]]],null]],null],[28,[37,15],null,[["none"],["review.filters.score_type.all"]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.priority.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterPriority"]],[30,0,["priorities"]],[28,[37,11],[[28,[37,12],[[30,0,["filterPriority"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filters.category"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,16],null,[["@value","@onChange","@options"],[[30,0,["filterCategoryId"]],[28,[37,11],[[28,[37,12],[[30,0,["filterCategoryId"]]],null]],null],[28,[37,15],null,[["none","clearable"],["review.filters.all_categories",true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_flagged_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],null,[["@value","@onChange","@options"],[[30,0,["filterFlaggedBy"]],[28,[37,3],[[30,0],"updateFilterFlaggedBy"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_reviewed_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],null,[["@value","@onChange","@options"],[[30,0,["filterReviewedBy"]],[28,[37,3],[[30,0],"updateFilterReviewedBy"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_user"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,17],[[24,0,"user-selector"]],[["@value","@onChange","@options"],[[30,0,["filterUsername"]],[28,[37,3],[[30,0],"updateFilterUsername"],null],[28,[37,15],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["filterTopic"]],[[[1," "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.filtered_topic"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,18],[[24,0,"btn-default"]],[["@label","@icon","@action"],["review.show_all_topics","xmark",[28,[37,3],[[30,0],"resetTopic"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-filter date-range"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.date_filter"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,19],null,[["@from","@to","@onChange","@showFromTime","@showToTime"],[[30,0,["filterFromDate"]],[30,0,["filterToDate"]],[30,0,["setRange"]],false,false]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-filter sort-order"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[35,8],["review.order_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@value","@content","@onChange"],[[30,0,["filterSortOrder"]],[30,0,["sortOrders"]],[28,[37,11],[[28,[37,12],[[30,0,["filterSortOrder"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-filters-actions"],[12],[1,"\\n "],[8,[39,18],[[24,0,"btn-primary refresh"]],[["@icon","@label","@action"],["arrows-rotate","review.filters.refresh",[28,[37,3],[[30,0],"refresh"],null]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,18],[[24,0,"btn-default expand-secondary-filters"]],[["@label","@icon","@action"],["show_help",[30,0,["toggleFiltersIcon"]],[28,[37,3],[[30,0],"toggleFilters"],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["r"],false,["div","if","load-more","action","each","-track-array","reviewable-item","conditional-loading-spinner","i18n","label","combo-box","fn","mut","span","plugin-outlet","hash","category-chooser","email-group-user-chooser","d-button","date-time-input-range"]]',moduleName:"discourse/templates/review-index.hbs",isStrictMode:!1})},37286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"pKw8jiNN",block:'[[[10,0],[14,0,"reviewable-settings"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[35,2],["review.settings.priorities.title"],null]],[13],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["scoreTypes"]]],null]],null],null,[[[1," "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[10,0],[14,0,"field"],[12],[1,"\\n "],[8,[39,5],null,[["@value","@content","@onChange"],[[30,1,["reviewable_priority"]],[30,0,["settings","reviewable_priorities"]],[28,[37,6],[[28,[37,7],[[30,1,["reviewable_priority"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1,"\\n "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n "],[10,0],[14,0,"title"],[12],[13],[1,"\\n "],[10,0],[14,0,"field"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary save-settings"]],[["@icon","@label","@action","@disabled"],["check","review.settings.save_changes",[28,[37,9],[[30,0],"save"],null],[30,0,["saving"]]]],null],[1,"\\n\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[14,0,"saved"],[12],[1,[28,[35,2],["review.settings.saved"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["rst"],false,["div","h4","i18n","each","-track-array","combo-box","fn","mut","d-button","action","if","span"]]',moduleName:"discourse/templates/review-settings.hbs",isStrictMode:!1})},55662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"8+48Es0D",block:'[[[8,[39,0],null,[["@reviewable"],[[30,0,["reviewable"]]]],null]],[],false,["reviewable-item"]]',moduleName:"discourse/templates/review-show.hbs",isStrictMode:!1})},26149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"L9RkP/pr",block:'[[[41,[30,0,["reviewableTopics"]],[[[1," "],[10,"table"],[14,0,"reviewable-topics"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.topic"],null]],[1," "],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.reviewable_count"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,4],["review.topics.reported_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["reviewableTopics"]]],null]],null],null,[[[1," "],[10,"tr"],[14,0,"reviewable-topic"],[12],[1,"\\n "],[10,"td"],[14,0,"topic-title"],[12],[1,"\\n "],[10,0],[14,0,"combined-title"],[12],[1,"\\n "],[8,[39,11],null,[["@topic"],[[30,1]]],null],[1,"\\n "],[10,3],[15,6,[30,1,["relative_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,[28,[35,13],[[30,1,["title"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reviewable-count"],[12],[1,"\\n "],[1,[30,1,["stats","count"]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reported-by"],[12],[1,"\\n "],[1,[28,[35,4],["review.topics.unique_users"],[["count"],[[30,1,["stats","unique_users"]]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reviewable-details"],[12],[1,"\\n "],[8,[39,14],null,[["@topicId","@claimedBy","@onClaim"],[[30,1,["id"]],[30,1,["claimed_by"]],[28,[37,15],[[28,[37,16],[[30,1,["claimed_by"]]],null]],null]]],null],[1,"\\n "],[8,[39,17],[[24,0,"btn btn-primary btn-small"]],[["@route","@query"],["review.index",[28,[37,18],null,[["topic_id"],[[30,1,["id"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,19],["list"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["review.topics.details"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-review"],[12],[1,"\\n "],[1,[28,[35,4],["review.none"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],["rt"],false,["if","table","thead","th","i18n","tbody","each","-track-array","tr","td","div","topic-status","a","replace-emoji","reviewable-claimed-topic","fn","mut","link-to","hash","d-icon","span"]]',moduleName:"discourse/templates/review-topics.hbs",isStrictMode:!1})},36978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"0rrfcvTb",block:'[[[10,0],[14,0,"reviewable"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills reviewable-title"],[12],[1,"\\n "],[8,[39,2],null,[["@route","@label"],["review.index","review.view_all"]],null],[1,"\\n "],[8,[39,2],null,[["@route","@label"],["review.topics","review.grouped_by_topic"]],null],[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[8,[39,2],null,[["@route","@label","@icon"],["review.settings","review.settings.title","wrench"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["div","ul","nav-item","if","component","-outlet"]]',moduleName:"discourse/templates/review.hbs",isStrictMode:!1})},39473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"tfoR1buA",block:'[[[1,[35,0]],[1,"\\n\\n"],[41,[30,0,["message"]],[[[1," "],[10,0],[15,0,[29,["alert ",[30,0,["alertClass"]]]]],[12],[1,[30,0,["message"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["loadError"]]],[[[1," "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["customDescription"]],[[[1," "],[10,2],[14,0,"action-description"],[12],[1,[30,0,["customDescription"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n"],[41,[30,0,["showSecurityKeyForm"]],[[[1," "],[10,0],[14,1,"security-key"],[12],[1,"\\n "],[8,[39,6],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,0,["authenticateSecurityKey"]],"key","login.security_key_authenticate"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,7],[[30,0,["showTotpForm"]],[30,0,["showBackupCodesForm"]]],null],[[[1," "],[10,"form"],[15,0,[30,0,["inputFormClass"]]],[12],[1,"\\n "],[8,[39,9],[[16,2,[30,0,["secondFactorToken"]]],[4,[38,10],["input",[28,[37,11],[[28,[37,12],[[28,[37,13],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["shownSecondFactorMethod"]]]],null],[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["authenticateToken"]],"submit"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["alternativeMethods","length"]],[[[1," "],[10,2],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["alternativeMethods"]]],null]],null],null,[[[41,[28,[37,16],[[30,2],0],null],[[[1," "],[10,1],[12],[1,"·"],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[29,["toggle-second-factor-method ",[30,1,["class"]]]]],[4,[38,10],["click",[28,[37,12],[[30,0,["useAnotherMethod"]],[30,1,["id"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,19],[[30,1,["translationKey"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1,2]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],["method","index"],false,["hide-application-sidebar","if","div","unless","h3","p","d-button","or","form","second-factor-input","on","with-event-value","fn","mut","each","-track-array","gt","span","a","i18n"]]',moduleName:"discourse/templates/second-factor-auth.hbs",isStrictMode:!1})},31247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"bJwEhhN1",block:'[[[8,[39,0],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,1],[[30,0],"toggleMultiSelect"],null],[28,[37,1],[[30,0],"mergePosts"],null],[28,[37,1],[[30,0],"deleteSelected"],null],[28,[37,1],[[30,0],"deselectAll"],null],[28,[37,1],[[30,0],"selectAll"],null]]],null]],[],false,["selected-posts","action"]]',moduleName:"discourse/templates/selected-posts.hbs",isStrictMode:!1})},6114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"jxwPlSMK",block:'[[[1,[28,[35,0],["search","login","signup","menu"],null]],[1,"\\n"],[1,[35,1]],[1,"\\n"],[1,[28,[35,2],["signup-page"],null]],[1,"\\n"],[10,0],[14,0,"signup-fullpage"],[12],[1,"\\n "],[8,[39,4],null,[["@flash","@type"],[[30,0,["flash"]],[30,0,["flashType"]]]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],["signup-body",[30,0,["bodyClasses"]]],null]],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],[[52,[30,0,["site","desktopView"]],"login-left-side"],[30,0,["authOptions","auth_provider"]]],null]],[12],[1,"\\n "],[8,[39,8],null,[["@step"],["signup"]],null],[1,"\\n "],[8,[39,9],[[24,1,"create-account-title"]],[["@header"],[[28,[37,10],["create_account.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-header-bottom",[28,[37,11],null,[["showLogin"],[[28,[37,12],["showLogin"],null]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showCreateForm"]],[[[1," "],[10,"form"],[14,1,"login-form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,15],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n "],[8,[39,16],[[16,"disabled",[30,0,["emailDisabled"]]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation account-email-validation-more-info"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[24,3,"email"],[24,1,"new-account-email"],[16,0,[28,[37,17],[[30,0,["accountEmail"]]],null]],[4,[38,18],["focusout",[30,0,["checkEmailAvailability"]]],null],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["accountEmail"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,10],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showEmailValidation"]],[[[1," "],[8,[39,20],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"account-email-validation-more-info"],[12],[1,"\\n"],[41,[30,0,["siteSettings","show_signup_form_email_instructions"]],[[[1," "],[1,[28,[35,10],["user.email.instructions"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n "],[8,[39,16],[[16,"disabled",[30,0,["usernameDisabled"]]],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation username-validation-more-info"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"],[24,3,"username"],[24,1,"new-account-username"],[16,0,[28,[37,17],[[30,0,["accountUsername"]]],null]],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["accountUsername"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,10],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showUsernameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"username-validation-more-info"],[12],[1,"\\n "],[1,[28,[35,10],["user.username.instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,20],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["fullnameRequired"]],[[[1," "],[8,[39,21],[[24,0,"input-group create-account__fullname required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["authOptions"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1," "],[8,[39,22],[[24,"autocomplete","current-password"],[24,"aria-describedby","password-validation password-validation-more-info"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]],[24,1,"new-account-password"],[16,0,[28,[37,17],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,18],["focusout",[30,0,["togglePasswordValidation"]]],null],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,10],["user.password.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,23],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,20],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","show_signup_form_password_instructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"password-validation-more-info"],[12],[1,"\\n "],[1,[30,0,["passwordInstructions"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[10,0],[15,0,[28,[37,5],["caps-lock-warning",[52,[51,[30,0,["capsLockOn"]]],"hidden"]],null]],[12],[1,"\\n "],[1,[28,[35,25],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,10],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,"\\n "],[1,[28,[35,10],["user.password_confirmation.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,26],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n "],[8,[39,16],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1," "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n "],[8,[39,16],[[24,1,"inviteCode"],[16,0,[28,[37,17],[[30,0,["inviteCode"]]],null]],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,"\\n "],[1,[28,[35,10],["user.invite_code.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"more-info"],[12],[1,"\\n "],[1,[28,[35,10],["user.invite_code.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[28,[37,27],[[30,0,["showFullname"]],[28,[37,28],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,21],[[24,0,"input-group create-account__fullname"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,30],[[28,[37,30],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,31],[[16,0,[28,[37,17],[[30,1,["value"]]],null]],[4,[38,18],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value","@validation"],[[30,1,["field"]],[30,1,["value"]],[30,1,["validation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["create-account-after-user-fields",[28,[37,11],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["accountName"]],[30,0,["accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,32],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["skipConfirmation"]],[[[1," "],[1,[28,[35,33],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"login-or-separator"],[12],[10,1],[12],[1,"\\n "],[1,[28,[35,10],["login.or"],null]],[13],[13]],[]],null],[1,"\\n "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,34],null,[["@externalLogin","@context"],[[30,0,["externalLogin"]],"create-account"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,27],[[30,0,["showCreateForm"]],[30,0,["site","mobileView"]]],null],[[[1," "],[8,[39,32],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["f"],false,["hide-application-header-buttons","hide-application-sidebar","body-class","div","flash-message","concat-class","plugin-outlet","if","signup-progress-bar","welcome-header","i18n","hash","route-action","form","span","html-safe","input","value-entered","on","label","input-tip","fullname-input","password-field","toggle-password-mask","unless","d-icon","honeypot-input","and","not","each","-track-array","user-field","signup-page-cta","loading-spinner","login-buttons"]]',moduleName:"discourse/templates/signup.hbs",isStrictMode:!1})},47550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"cHkZoR5Y",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["tagging.groups.edit_title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@model","@onDestroy"],[[30,0,["model"]],[28,[37,4],[[30,0],"onDestroy"],null]]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-edit.hbs",isStrictMode:!1})},69752:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"1yxI2NjT",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[1,[28,[35,3],["tagging.groups.about_heading"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["tagging.groups.about_heading_empty"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"section"],[14,0,"tag-groups-about"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,3],["tagging.groups.about_description"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[12],[1,"\\n"],[41,[51,[30,0,["model"]]],[[[1," "],[8,[39,7],[[24,0,"btn btn-primary"]],[["@route"],["tagGroups.new"]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],["plus"],null]],[1,"\\n "],[1,[28,[35,3],["tagging.groups.new"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],[],false,["div","h3","if","i18n","section","p","unless","link-to","d-icon"]]',moduleName:"discourse/templates/tag-groups-index.hbs",isStrictMode:!1})},99706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"paKAAimJ",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["tagging.groups.new_title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,4],[[30,0],"onSave"],null]]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-new.hbs",isStrictMode:!1})},7039:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"iDb18PkP",block:'[[[10,3],[14,0,"tag-groups--back"],[15,6,[28,[37,1],["/tags"],null]],[12],[1,"\\n "],[1,[28,[35,2],["chevron-left"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["tagging.groups.back_btn"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tag-groups-container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,4],["tagging.groups.title"],null]],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[41,[30,0,["model"]],[[[1," "],[10,0],[14,0,"tag-groups-sidebar content-list"],[12],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["model"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["tagGroups.edit",[30,1]]],[["default"],[[[[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,13],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,14],[[30,0],"newTagGroup"],null],"plus","tagging.groups.new"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[46,[28,[37,16],null,null],null,null,null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,0],[14,0,"alert info"],[12],[1,[28,[35,4],["tagging.groups.disabled"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["tagGroup"],false,["a","get-url","d-icon","span","i18n","div","h2","if","ul","each","-track-array","li","link-to","d-button","action","component","-outlet"]]',moduleName:"discourse/templates/tag-groups.hbs",isStrictMode:!1})},4937:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"5ID5SU8e",block:'[[[1,[28,[35,0],["tags-page"],null]],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["body-class","component","-outlet"]]',moduleName:"discourse/templates/tags.hbs",isStrictMode:!1})},47760:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"q6gYKjYO",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,1],null,null,null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tags-index"],[12],[1,"\\n\\n "],[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[10,0],[14,0,"container tags-controls"],[12],[1,"\\n"],[41,[30,0,["canAdminTags"]],[[[1," "],[8,[39,3],null,[["@actionsMapping"],[[30,0,["actionsMapping"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,"h2"],[12],[1,[28,[35,5],["tagging.tags"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["tags-below-title","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n "],[1,[28,[35,5],["tagging.sort_by"],null]],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["sortByCount"]]],null],[12],[1,[28,[35,5],["tagging.sort_by_count"],null]],[13],[13],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["sortById"]]],null],[12],[1,[28,[35,5],["tagging.sort_by_name"],null]],[13],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"all-tag-lists"],[12],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","extras","categories"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@categoryId"],[[30,1,["tags"]],[30,0,["sortProperties"]],[30,1,["id"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[42,[28,[37,13],[[28,[37,13],[[30,0,["model","extras","tag_groups"]]],null]],null],null,[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@tagGroupName"],[[30,2,["tags"]],[30,0,["sortProperties"]],[30,2,["name"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,14],null,[["@tags","@sortProperties","@titleKey"],[[30,0,["model"]],[30,0,["sortProperties"]],[30,0,["otherTagsTitleKey"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[13]],["category","tagGroup"],false,["div","discourse-banner","if","tags-admin-dropdown","h2","i18n","plugin-outlet","hash","span","a","on","hr","each","-track-array","tag-list"]]',moduleName:"discourse/templates/tags/index.hbs",isStrictMode:!1})},51769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"eNRF/1eG",block:'[[[44,[[30,0,["model","postStream"]]],[[[41,[51,[28,[37,2],[[30,1,["loaded"]],[30,1,["loadedAllPosts"]]],null]],[[[1," "],[1,[35,3]],[1,"\\n"]],[]],null]],[1]]],[1,"\\n"],[8,[39,4],[[4,[38,5],null,null]],[["@multiSelect","@enteredAt","@topic","@hasScrolled"],[[30,0,["multiSelect"]],[30,0,["enteredAt"]],[30,0,["model"]],[30,0,["hasScrolled"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,7],null,[["@category","@tags"],[[30,0,["model","category"]],[30,0,["model","tags"]]]],null],[1,"\\n "],[8,[39,8],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[1,[28,[35,9],[[28,[37,10],["archetype-",[30,0,["model","archetype"]]],null]],null]],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,12],null,[["@overlay","@hide"],[[30,0,["hasScrolled"]],[30,0,["model","errorLoading"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSharedDraftControls"]],[[[1," "],[8,[39,13],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-post-stream","div",[28,[37,16],null,[["model","editFirstPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"editFirstPost"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","postStream","loaded"]],[[[41,[30,0,["model","postStream","firstPostPresent"]],[[[1," "],[8,[39,18],null,[["@cancelled","@save","@model"],[[28,[37,17],[[30,0],"cancelEditingTopic"],null],[28,[37,17],[[30,0],"finishedEditingTopic"],null],[30,0,["model"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["editingTopic"]],[[[1," "],[10,0],[14,0,"edit-topic-title"],[12],[1,"\\n "],[8,[39,19],null,[["@shouldShow"],[[30,0,["model","isPrivateMessage"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"edit-title__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-title",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,20],null,[["@id","@value","@maxlength","@autofocus"],["edit-title",[30,0,["buffered","title"]],[30,0,["siteSettings","max_topic_title_length"]],"true"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showCategoryChooser"]],[[[1," "],[10,0],[14,0,"edit-category__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-category",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,21],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["buffered","category_id"]],[28,[37,17],[[30,0],"topicCategoryChanged"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditTags"]],[[[1," "],[10,0],[14,0,"edit-tags__wrapper"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["edit-topic-tags",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@value","@onChange","@options"],[[30,0,["buffered","tags"]],[28,[37,17],[[30,0],"topicTagsChanged"],null],[28,[37,16],null,[["filterable","categoryId","minimum","filterPlaceholder","useHeaderFilter"],[true,[30,0,["buffered","category_id"]],[30,0,["minimumRequiredTags"]],"tagging.choose_for_topic",true]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["edit-topic","div",[28,[37,16],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,17],[[30,0],"finishedEditingTopic"],null],"check","composer.save_edit"]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,17],[[30,0],"cancelEditingTopic"],null],"xmark","composer.cancel"]],null],[1,"\\n\\n"],[41,[30,0,["canRemoveTopicFeaturedLink"]],[[[1," "],[11,3],[24,6,""],[24,0,"remove-featured-link"],[16,"title",[28,[37,25],["composer.remove_featured_link"],null]],[4,[38,26],["click",[30,0,["removeFeaturedLink"]]],null],[12],[1,"\\n "],[1,[28,[35,27],["circle-xmark"],null]],[1,"\\n "],[1,[30,0,["featuredLinkDomain"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[10,"h1"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n"],[41,[51,[30,0,["model","is_warning"]]],[[[41,[30,0,["canSendPms"]],[[[1," "],[8,[39,19],null,[["@shouldShow","@href","@title","@ariaLabel"],[[30,0,["model","isPrivateMessage"]],[30,0,["pmPath"]],"topic_statuses.personal_message.title","user.messages.inbox"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,19],null,[["@shouldShow"],[[30,0,["model","isPrivateMessage"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["model","details","loaded"]],[[[1," "],[8,[39,29],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[11,3],[16,6,[30,0,["model","url"]]],[24,0,"fancy-title"],[4,[38,26],["click",[30,0,["jumpTop"]]],null],[12],[1,"\\n "],[1,[28,[35,30],[[30,0,["model","fancyTitle"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","details","can_edit"]],[[[1," "],[11,3],[24,6,""],[24,0,"edit-topic"],[16,"title",[28,[37,25],["edit_topic"],null]],[4,[38,26],["click",[30,0,["editTopic"]]],null],[12],[1,[28,[35,27],["pencil"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-title-suffix",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-category-wrapper",[28,[37,16],null,[["topic"],[[30,0,["model"]]]]]]],[["default"],[[[[1,"\\n "],[8,[39,31],[[24,0,"topic-category"]],[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","publishedPage"]],[[[1," "],[10,0],[14,0,"published-page-notice"],[12],[1,"\\n "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","publishedPage","public"]],[[[1," "],[10,1],[14,0,"is-public"],[12],[1,[28,[35,25],["topic.publish_page.public"],null]],[13],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,25],["topic.publish_page.topic_published"],null]],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,3],[15,6,[30,0,["model","publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["model","publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,23],null,[["@icon","@label","@action"],["file","topic.publish_page.publishing_settings",[28,[37,32],["showPagePublish"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"container posts"],[12],[1,"\\n "],[10,0],[15,0,[29,["selected-posts ",[52,[51,[30,0,["multiSelect"]]],"hidden"]]]],[12],[1,"\\n "],[8,[39,33],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,17],[[30,0],"mergePosts"],null],[28,[37,17],[[30,0],"deleteSelected"],null],[28,[37,17],[[30,0],"deselectAll"],null],[28,[37,17],[[30,0],"selectAll"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[37,2],[[30,0,["showBottomTopicMap"]],[30,0,["loadedAllPosts"]]],null],[[[1," "],[10,0],[14,0,"topic-map --bottom"],[12],[1,"\\n "],[8,[39,34],null,[["@model","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,0,["model"]],[30,0,["model","details"]],[30,0,["model","postStream"]],[28,[37,35],[[30,0,["model","archetype"]],"private_message"],null],[28,[37,32],["showInvite"],null],[28,[37,17],[[30,0],"removeAllowedGroup"],null],[28,[37,17],[[30,0],"removeAllowedUser"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName"],["above-timeline","div"]],null],[1,"\\n\\n "],[8,[39,36],[[24,0,"topic-navigation"]],[["@topic","@jumpToDate","@jumpToIndex"],[[30,0,["model"]],[28,[37,17],[[30,0],"jumpToDate"],null],[28,[37,17],[[30,0],"jumpToIndex"],null]]],[["default"],[[[[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation","div",[28,[37,16],null,[["topic","renderTimeline","topicProgressExpanded"],[[30,0,["model"]],[30,2,["renderTimeline"]],[30,2,["topicProgressExpanded"]]]]]]],null],[1,"\\n"],[41,[30,2,["renderTimeline"]],[[[1," "],[8,[39,37],null,[["@info","@model","@replyToPost","@showTopReplies","@jumpToPostPrompt","@enteredIndex","@prevEvent","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@fullscreen"],[[30,2],[30,0,["model"]],[28,[37,17],[[30,0],"replyToPost"],null],[28,[37,17],[[30,0],"showTopReplies"],null],[28,[37,17],[[30,0],"jumpToPostPrompt"],null],[30,0,["enteredIndex"]],[30,2,["prevEvent"]],[28,[37,17],[[30,0],"jumpTop"],null],[28,[37,17],[[30,0],"jumpBottom"],null],[28,[37,17],[[30,0],"jumpEnd"],null],[28,[37,17],[[30,0],"jumpToIndex"],null],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null],[30,2,["topicProgressExpanded"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,38],null,[["@prevEvent","@topic","@expanded","@jumpToPost"],[[30,2,["prevEvent"]],[30,0,["model"]],[30,2,["topicProgressExpanded"]],[28,[37,17],[[30,0],"jumpToPost"],null]]],[["default"],[[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-progress","div",[28,[37,16],null,[["model","jumpToPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"jumpToPost"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,39],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["model"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation-bottom","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"section"],[14,0,"topic-area"],[14,1,"topic"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n\\n "],[10,0],[14,0,"posts-wrapper"],[12],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingAbove"]]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-posts","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,0,["model","postStream","loadingFilter"]]],[[[1," "],[8,[39,42],null,[["@posts","@canCreatePost","@multiSelect","@selectedPostsCount","@filteredPostsCount","@selectedQuery","@gaps","@showReadIndicator","@streamFilters","@lastReadPostNumber","@highestPostNumber","@showFlags","@editPost","@showHistory","@showLogin","@showRawEmail","@deletePost","@permanentlyDeletePost","@recoverPost","@expandHidden","@toggleBookmark","@togglePostType","@rebakePost","@changePostOwner","@grantBadge","@changeNotice","@lockPost","@unlockPost","@unhidePost","@replyToPost","@toggleWiki","@showTopReplies","@cancelFilter","@removeAllowedUser","@removeAllowedGroup","@topVisibleChanged","@currentPostChanged","@currentPostScrolled","@bottomVisibleChanged","@togglePostSelection","@selectReplies","@selectBelow","@fillGapBefore","@fillGapAfter","@showInvite","@showPagePublish"],[[30,0,["postsToRender"]],[30,0,["model","details","can_create_post"]],[30,0,["multiSelect"]],[30,0,["selectedPostsCount"]],[30,0,["model","postStream","filteredPostsCount"]],[30,0,["selectedQuery"]],[30,0,["model","postStream","gaps"]],[30,0,["model","show_read_indicator"]],[30,0,["model","postStream","streamFilters"]],[30,0,["userLastReadPostNumber"]],[30,0,["highestPostNumber"]],[28,[37,17],[[30,0],"showPostFlags"],null],[28,[37,17],[[30,0],"editPost"],null],[28,[37,32],["showHistory"],null],[28,[37,32],["showLogin"],null],[28,[37,32],["showRawEmail"],null],[28,[37,17],[[30,0],"deletePost"],null],[28,[37,17],[[30,0],"permanentlyDeletePost"],null],[28,[37,17],[[30,0],"recoverPost"],null],[28,[37,17],[[30,0],"expandHidden"],null],[28,[37,17],[[30,0],"toggleBookmark"],null],[28,[37,17],[[30,0],"togglePostType"],null],[28,[37,17],[[30,0],"rebakePost"],null],[28,[37,17],[[30,0],"changePostOwner"],null],[28,[37,17],[[30,0],"grantBadge"],null],[28,[37,17],[[30,0],"changeNotice"],null],[28,[37,17],[[30,0],"lockPost"],null],[28,[37,17],[[30,0],"unlockPost"],null],[28,[37,17],[[30,0],"unhidePost"],null],[28,[37,17],[[30,0],"replyToPost"],null],[28,[37,17],[[30,0],"toggleWiki"],null],[28,[37,17],[[30,0],"showTopReplies"],null],[28,[37,17],[[30,0],"cancelFilter"],null],[28,[37,17],[[30,0],"removeAllowedUser"],null],[28,[37,17],[[30,0],"removeAllowedGroup"],null],[28,[37,17],[[30,0],"topVisibleChanged"],null],[28,[37,17],[[30,0],"currentPostChanged"],null],[28,[37,17],[[30,0],"currentPostScrolled"],null],[28,[37,17],[[30,0],"bottomVisibleChanged"],null],[28,[37,17],[[30,0],"togglePostSelection"],null],[28,[37,17],[[30,0],"selectReplies"],null],[28,[37,17],[[30,0],"selectBelow"],null],[28,[37,17],[[30,0],"fillGapBefore"],null],[28,[37,17],[[30,0],"fillGapAfter"],null],[28,[37,32],["showInvite"],null],[28,[37,32],["showPagePublish"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingBelow"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"topic-bottom"],[12],[13],[1,"\\n\\n "],[8,[39,41],null,[["@condition"],[[30,0,["model","postStream","loadingFilter"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[1,"\\n"],[41,[30,0,["model","pending_posts"]],[[[1," "],[10,0],[14,0,"pending-posts"],[12],[1,"\\n"],[42,[28,[37,44],[[28,[37,44],[[30,0,["model","pending_posts"]]],null]],null],null,[[[1," "],[10,0],[14,0,"reviewable-item"],[15,"data-reviewable-id",[30,3,["id"]]],[12],[1,"\\n "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n "],[10,1],[14,0,"reviewable-type"],[12],[1,"\\n "],[1,[28,[35,25],["review.awaiting_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"created-at"],[12],[1,"\\n "],[1,[28,[35,45],[[30,3,["created_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,46],null,[["@user"],[[30,0,["currentUser"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,47],null,[["@user"],[[30,0,["currentUser"]]]],null],[1,"\\n "],[10,0],[14,0,"post-body"],[12],[8,[39,48],null,[["@rawText"],[[30,3,["raw"]]]],null],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-additional-reviewable-actions",[28,[37,16],null,[["pending"],[[30,3]]]]]],null],[1,"\\n "],[8,[39,23],[[24,0,"btn-danger"]],[["@label","@icon","@action"],["review.delete","trash-can",[28,[37,49],[[28,[37,17],[[30,0],"deletePending"],null],[30,3]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","queued_posts_count"]],[[[1," "],[10,0],[14,0,"has-pending-posts"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[1,[28,[35,30],[[28,[37,25],["review.topic_has_pending"],[["count"],[[30,0,["model","queued_posts_count"]]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,50],null,[["@route","@query"],["review",[28,[37,16],null,[["topic_id","type","status"],[[30,0,["model","id"]],"ReviewableQueuedPost","pending"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,25],["review.view_pending"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,51],null,[["@topic","@user","@tagName"],[[30,0,["model"]],[30,0,["currentUser"]],""]],null],[1,"\\n\\n "],[8,[39,52],null,[["@topicClosed","@statusType","@statusUpdate","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId","@showTopicTimerModal","@removeTopicTimer"],[[30,0,["model","closed"]],[30,0,["model","topic_timer","status_type"]],[30,0,["model","topic_status_update"]],[30,0,["model","topic_timer","execute_at"]],[30,0,["model","topic_timer","based_on_last_post"]],[30,0,["model","topic_timer","duration_minutes"]],[30,0,["model","topic_timer","category_id"]],[28,[37,32],["showTopicTimerModal"],null],[28,[37,17],[[30,0],"removeTopicTimer",[30,0,["model","topic_timer","status_type"]],"topic_timer"],null]]],null],[1,"\\n\\n"],[41,[30,0,["showSelectedPostsAtBottom"]],[[[1," "],[10,0],[15,0,[29,["selected-posts\\n ",[52,[51,[30,0,["multiSelect"]]],"hidden"],"\\n ",[52,[30,0,["showSelectedPostsAtBottom"]],"hidden"]]]],[12],[1,"\\n "],[8,[39,33],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,17],[[30,0],"mergePosts"],null],[28,[37,17],[[30,0],"deleteSelected"],null],[28,[37,17],[[30,0],"deselectAll"],null],[28,[37,17],[[30,0],"selectAll"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-area-bottom","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[13],[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[41,[30,0,["session","showSignupCta"]],[[[1," "],[8,[39,53],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["currentUser"]],[[[1," "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-footer-buttons","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,54],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@toggleBookmark","@showFlagTopic","@toggleArchiveMessage","@editFirstPost","@deferTopic","@replyToPost"],[[30,0,["model"]],[28,[37,17],[[30,0],"toggleMultiSelect"],null],[28,[37,32],["showTopicSlowModeUpdate"],null],[28,[37,17],[[30,0],"deleteTopic"],null],[28,[37,17],[[30,0],"recoverTopic"],null],[28,[37,17],[[30,0],"toggleClosed"],null],[28,[37,17],[[30,0],"toggleArchived"],null],[28,[37,17],[[30,0],"toggleVisibility"],null],[28,[37,32],["showTopicTimerModal"],null],[28,[37,32],["showFeatureTopic"],null],[28,[37,32],["showChangeTimestamp"],null],[28,[37,17],[[30,0],"resetBumpDate"],null],[28,[37,17],[[30,0],"convertToPublicTopic"],null],[28,[37,17],[[30,0],"convertToPrivateMessage"],null],[28,[37,17],[[30,0],"toggleBookmark"],null],[28,[37,32],["showFlagTopic"],null],[28,[37,17],[[30,0],"toggleArchiveMessage"],null],[28,[37,17],[[30,0],"editFirstPost"],null],[28,[37,17],[[30,0],"deferTopic"],null],[28,[37,17],[[30,0],"replyToPost"],null]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,55],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]]]],[]]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-suggested","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,57],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n "],[8,[39,15],null,[["@name","@outletArgs"],["topic-below-suggested",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["noErrorYet"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","errorHtml"]],[[[1," "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,30],[[30,0,["model","errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"topic-error"],[12],[1,"\\n "],[10,0],[12],[1,[30,0,["model","errorMessage"]]],[13],[1,"\\n"],[41,[30,0,["model","noRetry"]],[[[41,[51,[30,0,["currentUser"]]],[[[1," "],[8,[39,23],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,32],["showLogin"],null],"user","log_in"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,23],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,17],[[30,0],"retryLoading"],null],"arrows-rotate","errors.buttons.again"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,41],null,[["@condition"],[[30,0,["retrying"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,58],null,[["@quoteState","@selectText","@buildQuoteMarkdown","@editPost","@topic"],[[30,0,["quoteState"]],[28,[37,17],[[30,0],"selectText"],null],[30,0,["buildQuoteMarkdown"]],[28,[37,17],[[30,0],"editPost"],null],[30,0,["model"]]]],null],[1,"\\n"]],[]]]]]],["postStream","info","pending"],false,["let","unless","and","hide-application-footer","discourse-topic","sticky-avatars","if","add-category-tag-classes","add-topic-status-classes","body-class","concat","div","discourse-banner","shared-draft-controls","span","plugin-outlet","hash","action","topic-title","private-message-glyph","text-field","category-chooser","mini-tag-chooser","d-button","a","i18n","on","d-icon","h1","topic-status","html-safe","topic-category","route-action","selected-posts","topic-map","eq","topic-navigation","topic-timeline","topic-progress","topic-admin-menu","section","conditional-loading-spinner","scrolling-post-stream","each","-track-array","age-with-tooltip","reviewable-created-by","reviewable-created-by-name","cook-text","fn","link-to","slow-mode-info","topic-timer-info","signup-cta","topic-footer-buttons","anonymous-topic-footer-buttons","br","more-topics","post-text-selection"]]',moduleName:"discourse/templates/topic.hbs",isStrictMode:!1})},614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"vJEQqNAw",block:'[[[1,[28,[35,0],["static-tos"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n "],[8,[39,3],null,[["@name"],["above-static"]],null],[1,"\\n "],[1,[28,[35,4],[[30,0,["model","html"]]],null]],[1,"\\n "],[8,[39,3],null,[["@name"],["below-static"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["body-class","section","div","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/tos.hbs",isStrictMode:!1})},818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"WjtSXL6W",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[1,[28,[35,1],[[30,0,["model"]]],null]],[1,"\\n"],[13]],[],false,["div","html-safe"]]',moduleName:"discourse/templates/unknown.hbs",isStrictMode:!1})},29219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"4oCZBPe5",block:'[[[10,"ul"],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["model"]]],null]],null],null,[[[1," "],[8,[39,3],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],null],[13]],["pending_post"],false,["ul","each","-track-array","pending-post"]]',moduleName:"discourse/templates/user-activity-pending.hbs",isStrictMode:!1})},51639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"UxDGuDJC",block:'[[[1,[28,[35,0],["user-invites-page"],null]],[1,"\\n\\n"],[41,[30,0,["canInviteToForum"]],[[[1," "],[8,[39,2],[[24,0,"user-content"]],[["@id","@selector","@action"],["user-content",".user-invite-list tr",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"user-additional-controls"],[12],[1,"\\n"],[41,[30,0,["showSearch"]],[[[1," "],[10,0],[14,0,"user-invite-search"],[12],[1,"\\n "],[10,"form"],[12],[8,[39,7],null,[["@value","@placeholderKey"],[[30,0,["searchTerm"]],"user.invited.search"]],null],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"user-invite-buttons"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-default invite-button"]],[["@icon","@action","@label"],["plus",[30,0,["createInvite"]],"user.invited.create"]],null],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[41,[30,0,["siteSettings","allow_bulk_invite"]],[[[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@label"],["upload",[30,0,["createInviteCsv"]],"user.invited.bulk_invite.text"]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[30,0,["showBulkActionButtons"]],[[[41,[30,0,["inviteExpired"]],[[[41,[30,0,["removedAll"]],[[[1," "],[10,1],[14,0,"removed-all"],[12],[1,"\\n "],[1,[28,[35,10],["user.invited.removed_all"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@icon","@action","@label"],["xmark",[30,0,["destroyAllExpired"]],"user.invited.remove_all"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["invitePending"]],[[[41,[30,0,["reinvitedAll"]],[[[1," "],[10,1],[14,0,"reinvited-all"],[12],[1,"\\n "],[8,[39,8],null,[["@icon","@disabled","@label"],["check",true,"user.invited.reinvited_all"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasEmailInvites"]],[[[1," "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@label"],["arrows-rotate",[30,0,["reinviteAll"]],"user.invited.reinvite_all"]],null],[1,"\\n "]],[]],null]],[]]]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[12],[1,"\\n"],[41,[30,0,["model","invites"]],[[[41,[30,0,["inviteRedeemed"]],[[[1," "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.redeemed_at"],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1," "],[10,"th"],[12],[1,[28,[35,10],["user.last_seen"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.topics_entered"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.posts_read_count"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.time_read"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.days_visited"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","invites"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,19],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[28,[35,20],[[30,1,["user"]]],[["imageSize"],["tiny"]]]]],[]]]]],[1,"\\n "],[8,[39,19],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[30,1,["user","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,21],[[30,1,["redeemed_at"]]],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1," "],[10,"td"],[12],[1,[28,[35,21],[[30,1,["user","last_seen_at"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,22],[[30,1,["user","topics_entered"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,22],[[30,1,["user","posts_read_count"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,23],[[30,1,["user","time_read"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,1],[15,"title",[28,[37,10],["user.invited.days_visited"],null]],[12],[1,[28,[35,24],[[30,1,["user","days_visited"]]],null]],[13],[1,"\\n /\\n "],[10,1],[15,"title",[28,[37,10],["user.invited.account_age_days"],null]],[12],[1,[28,[35,24],[[30,1,["user","days_since_created"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,24],[[30,1,["invite_source"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.sent"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,10],["user.invited.expires_at"],null]],[13],[1,"\\n "],[10,"th"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","invites"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[14,0,"invite-type"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.invited_via"],null]],[13],[1,"\\n"],[41,[30,2,["email"]],[[[1," "],[1,[28,[35,25],["envelope"],null]],[1,"\\n "],[1,[30,2,["email"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,25],["link"],null]],[1,"\\n "],[1,[28,[35,10],["user.invited.invited_via_link"],[["key","count","max"],[[30,2,["shortKey"]],[30,2,["redemption_count"]],[30,2,["max_redemptions_allowed"]]]]]],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,2,["groups"]]],null]],null],null,[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[29,["/g/",[30,3,["name"]]]]],[12],[1,[28,[35,25],["users"],null]],[1,"\\n "],[1,[30,3,["name"]]],[13],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,2,["topic"]],[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[30,2,["topic","url"]]],[12],[1,[28,[35,25],["file"],null]],[1," "],[1,[30,2,["topic","title"]]],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[14,0,"invite-updated-at"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.sent"],null]],[13],[1,"\\n "],[1,[28,[35,21],[[30,2,["updated_at"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[14,0,"invite-expires-at"],[12],[1,"\\n "],[10,0],[14,0,"label"],[12],[1,[28,[35,10],["user.invited.expires_at"],null]],[13],[1,"\\n"],[41,[30,0,["inviteExpired"]],[[[1," "],[1,[28,[35,28],[[30,2,["expires_at"]]],null]],[1,"\\n"]],[]],[[[41,[30,2,["expired"]],[[[1," "],[1,[28,[35,10],["user.invited.expired"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,28],[[30,2,["expires_at"]]],null]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,2,["can_delete_invite"]],[[[1," "],[10,"td"],[14,0,"invite-actions"],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-default"]],[["@icon","@action","@title"],["pencil",[28,[37,29],[[30,0,["editInvite"]],[30,2]],null],"user.invited.edit"]],null],[1,"\\n "],[8,[39,8],[[24,0,"cancel"]],[["@icon","@action","@title"],["trash-can",[28,[37,29],[[30,0,["destroyInvite"]],[30,2]],null],[52,[30,2,["destroyed"]],"user.invited.removed","user.invited.remove"]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,30],null,[["@condition"],[[30,0,["invitesLoading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"user-invite-none"],[12],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[1," "],[1,[28,[35,24],[[28,[37,10],["user.invited.bulk_invite.none"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["user.invited.none"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-error invite-error"],[12],[1,"\\n "],[1,[30,0,["model","error"]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],["invite","invite","g"],false,["body-class","if","load-more","action","section","div","form","text-field","d-button","span","i18n","table","thead","tr","th","tbody","each","-track-array","td","link-to","avatar","format-date","number","format-duration","html-safe","d-icon","p","a","raw-date","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-invited-show.hbs",isStrictMode:!1})},12101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"c+Zsc03G",block:'[[[41,[30,0,["can_see_invite_details"]],[[[1," "],[1,[28,[35,1],["user-invites-page"],null]],[1,"\\n\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,3],null,[["@ariaLabel"],["User secondary - invites"]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","pending",[30,0,["pendingLabel"]]]],null],[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","expired",[30,0,["expiredLabel"]]]],null],[1,"\\n "],[8,[39,4],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","redeemed",[30,0,["redeemedLabel"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,6],null,null],null,null,null]],[],false,["if","body-class","div","horizontal-overflow-nav","nav-item","component","-outlet"]]',moduleName:"discourse/templates/user-invited.hbs",isStrictMode:!1})},94042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"mtqaQUIq",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["categories.latest"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1," "],[8,[39,1],[[24,0,"user-nav__messages-group-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.new","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["circle-exclamation"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.unread","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["circle-plus"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,1],[[24,0,"user-nav__messages-group-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.archive","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,2],["box-archive"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,4],["user.messages.archive"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[40,[[[1," "],[8,[39,8],null,[["@levelId","@onChange"],[[30,0,["group","group_user","notification_level"]],[30,0,["changeGroupNotificationLevel"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,7],[[30,0,["navigationControlsButton"]]],null]],[1,"\\n"],[10,0],[15,0,[29,["group-messages group-",[30,0,["group","name"]]]]],[12],[1,"\\n "],[46,[28,[37,11],null,null],null,null,null],[1,"\\n"],[13]],[],false,["user-nav/messages-secondary-nav","d-navigation-item","d-icon","span","i18n","if","in-element","-in-el-null","group-notifications-tracking","div","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-group.hbs",isStrictMode:!1})},62843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"MphownAp",block:'[[[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[35,2],["tagging.tags"],null]],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by"],null]],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortByCount"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by_count"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortById"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["tagging.sort_by_name"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"hr"],[12],[13],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1," "],[8,[39,8],null,[["@tags","@sortProperties","@titleKey","@isPrivateMessage","@tagsForUser"],[[30,0,["model"]],[30,0,["sortProperties"]],"tagging.all_tags",true,[30,0,["tagsForUser"]]]],null],[1,"\\n"]],[]],null]],[],false,["div","h2","i18n","span","if","a","on","hr","tag-list"]]',moduleName:"discourse/templates/user-private-messages-tags-index.hbs",isStrictMode:!1})},20264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"SN0Ntl3u",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n "],[10,"li"],[14,0,"tags"],[12],[1,"\\n "],[8,[39,2],null,[["@route"],["userPrivateMessages.tags.index"]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["tag"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,5],["user.messages.all_tags"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["tagName"]],[[[1," "],[10,"li"],[14,0,"archive"],[12],[1,"\\n "],[8,[39,2],null,[["@route","@model"],["userPrivateMessages.tags.show",[30,0,["tagName"]]]],[["default"],[[[[1,"\\n "],[1,[30,0,["tagName"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[46,[28,[37,8],null,null],null,null,null]],[],false,["user-nav/messages-secondary-nav","li","link-to","d-icon","span","i18n","if","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-tags.hbs",isStrictMode:!1})},26506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"zaH7p0De",block:'[[[41,[30,0,["showWarningsWarning"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],[[28,[37,3],["admin.user.warnings_list_warning"],null]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,4],null,null,[["default"],[[[[1,"\\n "],[8,[39,5],[[24,0,"user-nav__messages-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["categories.latest"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__messages-sent"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.sent","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.messages.sent"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1," "],[8,[39,5],[[24,0,"user-nav__messages-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.new","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["circle-exclamation"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__messages-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.unread","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["circle-plus"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"user-nav__messages-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.archive","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["box-archive"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.messages.archive"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[46,[28,[37,9],null,null],null,null,null]],[],false,["if","div","html-safe","i18n","user-nav/messages-secondary-nav","d-navigation-item","d-icon","span","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-user.hbs",isStrictMode:!1})},39377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"aT+2E99c",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["noContent"]],[[[1," "],[8,[39,2],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,3],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list .topic-list-item",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["model","loadingBefore"]],[30,0,["incomingCount"]]],null],[[[1," "],[10,0],[14,0,"show-mores"],[12],[1,"\\n "],[11,3],[24,"tabindex","0"],[24,6,""],[16,0,[29,["alert alert-info clickable\\n ",[52,[30,0,["model","loadingBefore"]],"loading"]]]],[4,[38,10],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,11],null,[["@key","@count"],["topic_count_latest",[28,[37,7],[[30,0,["model","loadingBefore"]],[30,0,["incomingCount"]]],null]]],null],[1,"\\n"],[41,[30,1,["loadingBefore"]],[[[1," "],[1,[28,[35,12],null,[["size"],["small"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,[["@topicList","@hideCategory","@showPosters","@tagsForUser","@canBulkSelect","@bulkSelectHelper","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["model"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["tagsForUser"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],true]],null],[1,"\\n\\n "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n "],[8,[39,14],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],["@model"],false,["if","hide-application-footer","empty-state","load-more","action","topic-dismiss-buttons","route-action","or","div","a","on","count-i18n","loading-spinner","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-topics-list.hbs",isStrictMode:!1})},67635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"R2OsCuE5",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-user-profile","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[10,0],[15,0,[29,["container\\n ",[52,[30,0,["viewingSelf"]],"viewing-self"],"\\n ",[52,[30,0,["model","profile_hidden"]],"profile-hidden"],"\\n ",[30,0,["primaryGroup"]]]]],[12],[1,"\\n "],[10,"section"],[14,0,"user-main"],[12],[1,"\\n "],[10,3],[14,6,"#user-content"],[14,1,"user-nav-skip-link"],[14,0,"skip-link__user-nav"],[12],[1,"\\n "],[1,[28,[35,6],["skip_user_nav"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[15,0,[29,[[52,[30,0,["collapsedInfo"]],"collapsed-info"],"\\n about\\n ",[52,[30,0,["hasProfileBackgroundUrl"]],"has-background","no-background"]]]],[12],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[41,[30,0,["showStaffCounters"]],[[[1," "],[10,0],[14,0,"staff-counters"],[12],[1,"\\n"],[41,[30,0,["model","number_of_flags_given"]],[[[1," "],[10,0],[12],[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.flags_given"],[["className","count"],["helpful-flags",[30,0,["model","number_of_flags_given"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_flagged_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"all","ReviewableFlaggedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.flagged_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_flagged_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_rejected_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"rejected","ReviewableQueuedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.rejected_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_rejected_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","number_of_deleted_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@model"],["user.deletedPosts",[30,0,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.deleted_posts"],[["className","count"],["deleted-posts",[30,0,["model","number_of_deleted_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_suspensions"]],[[[1," "],[10,0],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["showSuspensions"]]],null],[12],[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.suspensions"],[["className","count"],["suspensions",[30,0,["model","number_of_suspensions"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","warnings_received_count"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,9],null,[["@route","@model"],["userPrivateMessages.user.warnings",[30,0,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,6],["user.staff_counters.warnings_received"],[["className","count"],["warnings-received",[30,0,["model","warnings_received_count"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"user-profile-image"],[15,5,[30,0,["model","profileBackgroundUrl"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"details"],[12],[1,"\\n "],[10,0],[14,0,"primary"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["before-user-profile-avatar",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[8,[39,11],null,[["@user","@tagName"],[[30,0,["model"]],""]],null],[1,"\\n "],[10,0],[14,0,"primary-textual"],[12],[1,"\\n "],[10,0],[14,0,"user-profile-names"],[12],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"full-name","username"],"\\n user-profile-names__primary"]]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["model","name"]],[28,[37,12],[[30,0,["model","username"]]],null]]],[1,"\\n "],[1,[28,[35,13],[[30,0,["model"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n"],[41,[30,0,["model","status"]],[[[1," "],[8,[39,14],null,[["@status"],[[30,0,["model","status"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"username","full-name"],"\\n user-profile-names__secondary"]]],[12],[41,[30,0,["nameFirst"]],[[[1,[30,0,["model","username"]]]],[]],[[[1,[30,0,["model","name"]]]],[]]],[13],[1,"\\n"],[41,[30,0,["model","staged"]],[[[1," "],[10,0],[14,0,"staged user-profile-names__secondary"],[12],[1,[28,[35,6],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","title"]],[[[1," "],[10,0],[14,0,"user-profile-names__title"],[12],[1,[30,0,["model","title"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-post-names","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1," "],[10,0],[14,0,"featured-topic user-profile__featured-topic"],[12],[1,"\\n "],[10,1],[15,"title",[28,[37,6],["user.featured_topic"],null]],[12],[1,"\\n "],[1,[28,[35,16],["book"],null]],[13],[8,[39,9],null,[["@route","@models"],["topic",[28,[37,17],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,18],[[28,[37,8],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"location-and-website user-profile__location-and-website"],[12],[1,"\\n "],[41,[30,0,["model","location"]],[[[10,0],[14,0,"user-profile-location"],[12],[1,[28,[35,16],["location-dot"],null]],[1,[30,0,["model","location"]]],[13]],[]],null],[1,"\\n"],[41,[30,0,["model","website_name"]],[[[1," "],[10,0],[14,0,"user-profile-website"],[12],[1,"\\n"],[1," "],[1,[28,[35,16],["globe"],null]],[41,[30,0,["linkWebsite"]],[[[10,3],[15,6,[30,0,["model","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,"title",[30,0,["model","website"]]],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-location-and-website","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"bio"],[12],[1,"\\n"],[41,[30,0,["model","suspended"]],[[[1," "],[10,0],[14,0,"suspended"],[12],[1,"\\n "],[1,[28,[35,16],["ban"],null]],[1,"\\n "],[10,"b"],[12],[1,"\\n"],[41,[30,0,["model","suspendedForever"]],[[[1," "],[1,[28,[35,6],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,6],["user.suspended_notice"],[["date"],[[30,0,["model","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"],[41,[30,0,["model","suspend_reason"]],[[[1," "],[10,"b"],[12],[1,[28,[35,6],["user.suspended_reason"],null]],[13],[1,"\\n "],[1,[30,0,["model","suspend_reason"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isNotSuspendedOrIsStaff"]],[[[1," "],[8,[39,21],null,null,[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[30,0,["model","bio_cooked"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1," "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1," "],[10,0],[15,0,[29,["public-user-field ",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[13],[1,":\\n "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,1,["value"]]],null]],null],null,[[[1," "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,"\\n"],[41,[30,1,["field","searchable"]],[[[1," "],[8,[39,9],null,[["@route","@query"],["users",[28,[37,1],null,[["name"],[[30,2]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-public-fields","div",[28,[37,1],null,[["publicUserFields","model"],[[30,0,["publicUserFields"]],[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-primary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"controls"],[12],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[41,[30,0,["model","can_send_private_message_to_user"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,26],[[24,0,"btn-primary compose-pm"]],[["@action","@icon","@label"],[[28,[37,27],[[28,[37,28],["composePrivateMessage"],null],[30,0,["model"]]],null],"envelope","user.private_message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMuteOrIgnoreUser"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,29],null,[["@user","@value","@updateNotificationLevel"],[[30,0,["model"]],[30,0,["userNotificationLevel"]],[28,[37,30],[[30,0],"updateNotificationLevel"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTopLevelAdminButton"]],[[[1," "],[10,"li"],[12],[10,3],[15,6,[30,0,["model","adminPath"]]],[14,0,"btn btn-default user-admin"],[12],[1,[28,[35,16],["wrench"],null]],[10,1],[14,0,"d-button-label"],[12],[1,[28,[35,6],["admin.user.show_admin_profile"],null]],[13],[13],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-controls","li",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["canExpandProfile"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,26],[[24,"aria-controls","collapsed-info-panel"],[16,"aria-expanded",[52,[30,0,["collapsedInfoState","isExpanded"]],"true","false"]],[24,0,"btn-default"]],[["@ariaLabel","@label","@icon","@action"],[[30,0,["collapsedInfoState","ariaLabel"]],[28,[37,31],["user.",[30,0,["collapsedInfoState","label"]]],null],[30,0,["collapsedInfoState","icon"]],[28,[37,30],[[30,0],[30,0,["collapsedInfoState","action"]]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-above-collapsed-info",[28,[37,1],null,[["model","collapsedInfo"],[[30,0,["model"]],[30,0,["collapsedInfo"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[1," "],[10,0],[14,0,"secondary"],[14,1,"collapsed-info-panel"],[12],[1,"\\n "],[10,"dl"],[12],[1,"\\n"],[41,[30,0,["model","created_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"created-at"],[12],[1,[28,[35,6],["user.created"],null]],[13],[10,"dd"],[14,0,"created-at"],[12],[1,[28,[35,35],[[30,0,["model","created_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_posted_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"last-posted-at"],[12],[1,[28,[35,6],["user.last_posted"],null]],[13],[10,"dd"],[14,0,"last-posted-at"],[12],[1,[28,[35,35],[[30,0,["model","last_posted_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_seen_at"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"last-seen-at"],[12],[1,[28,[35,6],["user.last_seen"],null]],[13],[10,"dd"],[14,0,"last-seen-at"],[12],[1,[28,[35,35],[[30,0,["model","last_seen_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","profile_view_count"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"profile-view-count"],[12],[1,[28,[35,6],["views"],null]],[13],[10,"dd"],[14,0,"profile-view-count"],[12],[1,[30,0,["model","profile_view_count"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","invited_by"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"invited-by"],[12],[1,[28,[35,6],["user.invited_by"],null]],[13],[10,"dd"],[14,0,"invited-by"],[12],[8,[39,9],null,[["@route","@model"],["user",[30,0,["model","invited_by"]]]],[["default"],[[[[1,[30,0,["model","invited_by","username"]]]],[]]]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasTrustLevel"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"trust-level"],[12],[1,[28,[35,6],["user.trust_level"],null]],[13],[10,"dd"],[14,0,"trust-level"],[12],[1,[30,0,["model","trustLevel","name"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["canCheckEmails"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"email"],[12],[1,[28,[35,6],["user.email.title"],null]],[13],[1,"\\n "],[10,"dd"],[14,0,"email"],[15,"title",[30,0,["model","email"]]],[12],[1,"\\n"],[41,[30,0,["model","email"]],[[[1," "],[1,[30,0,["model","email"]]],[1,"\\n"]],[]],[[[1," "],[8,[39,26],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,27],[[28,[37,28],["checkEmail"],null],[30,0,["model"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","displayGroups"]],[[[1," "],[10,0],[12],[10,"dt"],[14,0,"groups"],[12],[1,[28,[35,6],["groups.title"],[["count"],[[30,0,["model","displayGroups","length"]]]]]],[13],[1,"\\n "],[10,"dd"],[14,0,"groups"],[12],[1,"\\n"],[42,[28,[37,23],[[28,[37,23],[[30,0,["model","displayGroups"]]],null]],null],null,[[[1," "],[10,1],[12],[8,[39,9],[[24,0,"group-link"]],[["@route","@model"],["group",[30,3,["name"]]]],[["default"],[[[[1,[30,3,["name"]]]],[]]]]],[13],[1,"\\n"]],[3]],null],[1,"\\n "],[8,[39,9],null,[["@route","@query"],["groups",[28,[37,1],null,[["username"],[[30,0,["model","username"]]]]]]],[["default"],[[[[1,"\\n ...\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteUser"]],[[[1," "],[10,0],[14,0,"pull-right"],[12],[8,[39,26],[[24,0,"btn-danger btn-delete-user"]],[["@action","@icon","@label"],[[28,[37,30],[[30,0],"adminDelete"],null],"triangle-exclamation","user.admin_delete"]],null],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-secondary",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"new-user-wrapper"],[12],[1,"\\n "],[8,[39,36],null,[["@user","@isStaff","@isMobileView","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@currentParentRoute","@showRead","@showDrafts","@showBookmarks"],[[30,0,["model"]],[30,0,["currentUser","staff"]],[30,0,["site","mobileView"]],[30,0,["showActivityTab"]],[30,0,["showNotificationsTab"]],[30,0,["showPrivateMessages"]],[30,0,["canInviteToForum"]],[30,0,["showBadges"]],[30,0,["currentParentRoute"]],[30,0,["showRead"]],[30,0,["showDrafts"]],[30,0,["showBookmarks"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"new-user-content-wrapper"],[12],[1,"\\n "],[46,[28,[37,38],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["uf","v","group"],false,["plugin-outlet","hash","div","if","section","a","i18n","unless","html-safe","link-to","on","user-profile-avatar","format-username","user-status","user-status-message","span","d-icon","array","replace-emoji","b","br","html-with-links","each","-track-array","ul","li","d-button","fn","route-action","user-notifications-dropdown","action","concat","dl","dt","dd","bound-date","user-nav","component","-outlet"]]',moduleName:"discourse/templates/user.hbs",isStrictMode:!1})},47007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"zQPGUWkj",block:'[[[1,[28,[35,0],["user-activity-page"],null]],[1,"\\n"],[8,[39,1],null,[["@name"],["user-activity-navigation-wrapper"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,3],null,[["@ariaLabel"],["User secondary - activity"]],[["default"],[[[[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-all"]],[["@route","@ariaCurrentContext"],["userActivity.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,4],[[24,0,"user-nav__activity-topics"]],[["@route","@ariaCurrentContext"],["userActivity.topics","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["list-ul"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.4"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-replies"]],[["@route","@ariaCurrentContext"],["userActivity.replies","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showRead"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-read"],[16,"title",[28,[37,7],["user.read_help"],null]]],[["@route","@ariaCurrentContext"],["userActivity.read","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["clock-rotate-left"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user.read"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["user","showDrafts"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-drafts"]],[["@route","@ariaCurrentContext"],["userActivity.drafts","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["draftLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,9],[[30,0,["model","pending_posts_count"]],0],null],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-pending"]],[["@route","@ariaCurrentContext"],["userActivity.pending","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["clock"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["pendingLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],[[24,0,"user-nav__activity-likes"]],[["@route","@ariaCurrentContext"],["userActivity.likesGiven","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.1"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showBookmarks"]],[[[1," "],[8,[39,4],[[24,0,"user-nav__activity-bookmarks"]],[["@route","@ariaCurrentContext"],["userActivity.bookmarks","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,5],["bookmark"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["user_action_groups.3"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-activity-bottom","li",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","if","gt","hash","section","component","-outlet"]]',moduleName:"discourse/templates/user/activity.hbs",isStrictMode:!1})},81152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"NQWGmoJ/",block:'[[[1,[28,[35,0],["user-badges-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["user-badges-content",[28,[37,3],null,[["sortedBadges","maxFavBadges","favoriteBadges","canFavoriteMoreBadges","favorite"],[[30,0,["sortedBadges"]],[30,0,["siteSettings","max_favorite_badges"]],[30,0,["favoriteBadges"]],[30,0,["canFavoriteMoreBadges"]],[30,0,["favorite"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["siteSettings","max_favorite_badges"]],[[[1," "],[10,2],[14,0,"favorite-count"],[12],[1,"\\n "],[1,[28,[35,6],["badges.favorite_count"],[["count","max"],[[30,0,["favoriteBadges","length"]],[30,0,["siteSettings","max_favorite_badges"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["sortedBadges"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@badge","@count","@canFavorite","@isFavorite","@username","@canFavoriteMoreBadges","@onFavoriteClick","@filterUser"],[[30,1,["badge"]],[30,1,["count"]],[30,1,["can_favorite"]],[30,1,["is_favorite"]],[30,0,["username"]],[30,0,["canFavoriteMoreBadges"]],[28,[37,11],[[30,0],"favorite",[30,1]],null],"true"]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,2],null,[["@name","@outletArgs"],["after-user-profile-badges",[28,[37,3],null,[["user"],[[30,0,["user","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["ub"],false,["body-class","section","plugin-outlet","hash","if","p","i18n","div","each","-track-array","badge-card","action"]]',moduleName:"discourse/templates/user/badges.hbs",isStrictMode:!1})},68201:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"ZvQa53AV",block:'[[[1,[28,[35,0],["user-activity-bookmarks-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName"],["above-user-bookmarks","div"]],null],[1,"\\n\\n"],[41,[30,0,["permissionDenied"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,5],["bookmarks.list_permission_denied"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["userDoesNotHaveBookmarks"]],[[[1," "],[8,[39,6],null,[["@title","@body"],[[28,[37,5],["user.no_bookmarks_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"inline-form full-width bookmark-search-form"],[12],[1,"\\n "],[8,[39,7],[[16,"placeholder",[28,[37,5],["bookmarks.search_placeholder"],null]],[24,1,"bookmark-search"],[24,"autocomplete","off"]],[["@type","@value","@enter"],["text",[30,0,["searchTerm"]],[30,0,["search"]]]],null],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon"],[[30,0,["search"]],"magnifying-glass"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["nothingFound"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,5],["user.no_bookmarks_search"],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,9],null,[["@bulkSelectHelper","@loadMore","@reload","@loadingMore","@content"],[[30,0,["bulkSelectHelper"]],[28,[37,10],[[30,0],"loadMore"],null],[28,[37,10],[[30,0],"reload"],null],[30,0,["loadingMore"]],[30,0,["model","bookmarks"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]],[]]]],[]]]]]],[],false,["body-class","conditional-loading-spinner","plugin-outlet","if","div","i18n","empty-state","input","d-button","bookmark-list","action"]]',moduleName:"discourse/templates/user/bookmarks.hbs",isStrictMode:!1})},74108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"KLqkLbTq",block:'[[[1,[28,[35,0],["user-messages-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-above-navigation",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[10,"ol"],[14,0,"category-breadcrumb"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,6],null,[["@content","@value","@onChange"],[[30,0,["messagesDropdownContent"]],[30,0,["messagesDropdownValue"]],[30,0,["onMessagesDropdownChange"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],[[24,1,"user-navigation-secondary__horizontal-nav"],[24,0,"messages-nav"]],[["@ariaLabel"],["User secondary - messages"]],null],[1,"\\n\\n "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["currentUser","admin"]],[[[1," "],[8,[39,9],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[14,1,"navigation-controls__button"],[12],[13],[1,"\\n\\n"],[41,[30,0,["showNewPM"]],[[[1," "],[8,[39,11],[[24,0,"btn-primary new-private-message"]],[["@action","@icon","@label"],[[28,[37,12],["composePrivateMessage"],null],"envelope","user.new_private_message"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-controls-bottom",[28,[37,2],null,[["showNewPM"],[[30,0,["showNewPM"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[46,[28,[37,15],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","hash","div","ol","li","user-nav/messages-dropdown","horizontal-overflow-nav","if","bulk-select-toggle","span","d-button","route-action","section","component","-outlet"]]',moduleName:"discourse/templates/user/messages.hbs",isStrictMode:!1})},61685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"pkwTTyDw",block:'[[[41,[30,0,["model","error"]],[[[1," "],[10,0],[14,0,"item error"],[12],[1,"\\n"],[41,[30,0,["model","forbidden"]],[[[1," "],[1,[28,[35,2],["errors.reasons.forbidden"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["errors.desc.unknown"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["doesNotHaveNotifications"]],[[[1," "],[8,[39,3],null,[["@name"],["user-notifications-empty-state"]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@title","@body"],[[28,[37,2],["user.no_notifications_page_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,[["@name"],["user-notifications-above-filter"]],null],[1,"\\n "],[10,0],[14,0,"user-notifications-filter"],[12],[1,"\\n "],[8,[39,5],null,[["@value","@onChange"],[[30,0,["filter"]],[30,0,["updateFilter"]]]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["user-notifications-after-filter",[28,[37,6],null,[["items"],[[30,0,["items"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["nothingFound"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,2],["notifications.empty"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[30,0,["listContainerClassNames"]]],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["items"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["user-notifications-list-bottom",[28,[37,6],null,[["controller"],[[30,0]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],["item"],false,["if","div","i18n","plugin-outlet","empty-state","notifications-filter","hash","each","-track-array","user-menu/menu-item","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications-index.hbs",isStrictMode:!1})},90590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"+qXNnTt1",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["user-notifications-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[39,4],null,[["@ariaLabel"],["User secondary - notifications"]],[["default"],[[[[1,"\\n "],[8,[39,5],[[24,0,"user-nav__notifications-all"]],[["@route","@ariaCurrentContext"],["userNotifications.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["bell"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-responses"]],[["@route","@ariaCurrentContext"],["userNotifications.responses","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-likes"]],[["@route","@ariaCurrentContext"],["userNotifications.likesReceived","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.2"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[8,[39,5],[[24,0,"user-nav__notifications-mentions"]],[["@route","@ariaCurrentContext"],["userNotifications.mentions","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["at"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.7"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],[[24,0,"user-nav__notifications-edits"]],[["@route","@ariaCurrentContext"],["userNotifications.edits","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.11"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,5],[[24,0,"user-nav__notifications-links"]],[["@route","@ariaCurrentContext"],["userNotifications.links","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["link"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,8],["user_action_groups.17"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-notifications-bottom","li",[28,[37,10],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1," "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"btn-default dismiss-notifications"]],[["@title","@action","@label","@icon","@disabled"],["user.dismiss_notifications_tooltip",[28,[37,12],[[30,0],"resetNew"],null],"user.dismiss_notifications","check",[30,0,["allNotificationsRead"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,14],[[24,0,"notification-history user-stream"]],[["@selector","@action"],[".user-stream .notification",[28,[37,12],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[46,[28,[37,16],null,null],null,null,null],[1,"\\n "],[8,[39,17],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","div","horizontal-overflow-nav","d-navigation-item","d-icon","span","i18n","plugin-outlet","hash","d-button","action","section","load-more","component","-outlet","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications.hbs",isStrictMode:!1})},72047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"5GiCsByi",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@stream"],[[30,0,["model"]]]],null]],[],false,["if","hide-application-footer","user-stream"]]',moduleName:"discourse/templates/user/posts.hbs",isStrictMode:!1})},21084:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"AhWKlb1x",block:'[[[10,2],[14,0,"user-profile-hidden"],[12],[1,[28,[35,1],["user.profile_hidden"],null]],[13]],[],false,["p","i18n"]]',moduleName:"discourse/templates/user/profile-hidden.hbs",isStrictMode:!1})},8756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"f/LRUg+Z",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["model","stream","canLoadMore"]]],null],[[[1," "],[1,[35,2]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","stream","noContent"]],[[[1," "],[8,[39,3],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],null],[8,[39,4],null,[["@stream"],[[30,0,["model","stream"]]]],null]],[],false,["if","or","hide-application-footer","empty-state","user-stream"]]',moduleName:"discourse/templates/user/stream.hbs",isStrictMode:!1})},42882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"l/UhIe5Y",block:'[[[1,[28,[35,0],["user-summary-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["above-user-summary-stats",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n"],[41,[30,0,["model","can_see_summary_stats"]],[[[1," "],[10,0],[14,0,"top-section stats-section"],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,6],["user.summary.stats"],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[14,0,"stats-days-visited"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","days_visited"]],"user.summary.days_visited"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"stats-time-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label","@rawTitle","@type"],[[30,0,["timeRead"]],"user.summary.time_read",[28,[37,6],["user.summary.time_read_title"],[["duration"],[[30,0,["timeReadMedium"]]]]],"string"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1," "],[10,"li"],[14,0,"stats-recent-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label","@rawTitle","@type"],[[30,0,["recentTimeRead"]],"user.summary.recent_time_read",[28,[37,6],["user.summary.recent_time_read_title"],[["duration"],[[30,0,["recentTimeReadMedium"]]]]],"string"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"li"],[14,0,"stats-topics-entered"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topics_entered"]],"user.summary.topics_entered"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[14,0,"stats-posts-read"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","posts_read_count"]],"user.summary.posts_read"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-likes-given linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.likesGiven"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-likes-given"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,"li"],[14,0,"stats-likes-received"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@icon","@label"],[[30,0,["model","likes_received"]],"heart","user.summary.likes_received"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["model","bookmark_count"]],[[[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-bookmark-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.bookmarks"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-bookmark-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-topic-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.topics"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-topic-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[41,[30,0,["model","can_see_user_actions"]],[[[1," "],[10,"li"],[14,0,"stats-post-count linked-stat"],[12],[1,"\\n "],[8,[39,10],null,[["@route"],["userActivity.replies"]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"stats-post-count"],[12],[1,"\\n "],[8,[39,9],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-summary-stat","li",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["below-user-summary-stats",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"top-section replies-and-topics-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"replies-section pull-left"]],[["@title"],["top_replies"]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@type","@items","@user"],["replies",[30,0,["model","replies"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[8,[39,13],null,[["@createdAt","@topic","@likes","@url"],[[30,1,["createdAt"]],[30,1,["topic"]],[30,1,["like_count"]],[30,1,["url"]]]],null],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"topics-section pull-right"]],[["@title"],["top_topics"]],[["default"],[[[[1,"\\n "],[8,[39,12],null,[["@type","@items","@user"],["topics",[30,0,["model","topics"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[8,[39,13],null,[["@createdAt","@topic","@likes","@url"],[[30,2,["created_at"]],[30,2],[30,2,["like_count"]],[30,2,["url"]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"top-section links-and-replied-to-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"links-section pull-left"]],[["@title"],["top_links"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","links","length"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","links"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n"],[1," "],[10,3],[14,0,"domain"],[15,6,[30,3,["url"]]],[15,"title",[30,3,["title"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["user","removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[15,"data-clicks",[30,3,["clicks"]]],[15,"aria-label",[28,[37,6],["topic_map.clicks"],[["count"],[[30,3,["clicks"]]]]]],[12],[1,"\\n "],[1,[28,[35,18],[[30,3,["url"]]],null]],[1,"\\n "],[13],[1,"\\n"],[1," "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,3],[15,6,[30,3,["post_url"]]],[12],[1,"\\n "],[1,[28,[35,20],[[30,3,["topic","fancyTitle"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],["user.summary.no_links"],null]],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"summary-user-list replied-section pull-right"]],[["@title"],["most_replied_to_users"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_replies",[30,0,["model","most_replied_to_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,4],"reply","replies"]],null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"top-section most-liked-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"summary-user-list liked-by-section pull-left"]],[["@title"],["most_liked_by"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_by_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,5],"heart","likes"]],null],[1,"\\n "]],[5]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,11],[[24,0,"summary-user-list liked-section pull-right"]],[["@title"],["most_liked_users"]],[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_users"]]]],[["default"],[[[[1,"\\n "],[8,[39,23],null,[["@user","@icon","@countClass"],[[30,6],"heart","likes"]],null],[1,"\\n "]],[6]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","top_categories","length"]],[[[1," "],[10,0],[14,0,"top-section top-categories-section"],[12],[1,"\\n "],[8,[39,11],[[24,0,"summary-category-list pull-left"]],[["@title"],["top_categories"]],[["default"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[14,0,"category-link"],[12],[13],[1,"\\n "],[10,"th"],[14,0,"topic-count"],[12],[1,[28,[35,6],["user.summary.topics"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"reply-count"],[12],[1,[28,[35,6],["user.summary.replies"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","top_categories"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[8,[39,2],null,[["@name","@outletArgs"],["user-summary-top-category-row",[28,[37,3],null,[["category","user"],[[30,7],[30,0,["user"]]]]]]],[["default"],[[[[1,"\\n "],[10,"td"],[14,0,"category-link"],[12],[1,"\\n "],[1,[28,[35,30],[[30,7]],[["allowUncategorized","hideParent"],["true",false]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"topic-count"],[12],[1,"\\n "],[8,[39,31],null,[["@user","@category","@searchOnlyFirstPosts","@count"],[[30,0,["user"]],[30,7],true,[30,7,["topic_count"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"reply-count"],[12],[1,"\\n "],[8,[39,31],null,[["@user","@category","@searchOnlyFirstPosts","@count"],[[30,0,["user"]],[30,7],false,[30,7,["post_count"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[7]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[10,0],[14,0,"top-section badges-section"],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,6],["user.summary.top_badges"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","badges"]],[[[1," "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["model","badges"]]],null]],null],null,[[[1," "],[8,[39,32],null,[["@badge","@count","@username"],[[30,8],[30,8,["count"]],[30,0,["user","username_lower"]]]],null],[1,"\\n"]],[8]],null],[1," "],[8,[39,2],null,[["@name","@outletArgs"],["after-user-summary-badges",[28,[37,3],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],["user.summary.no_badges"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["moreBadges"]],[[[1," "],[8,[39,10],[[24,0,"more"]],[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],["user.summary.more_badges"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[13]],["reply","topic","link","user","user","user","category","badge"],false,["body-class","div","plugin-outlet","hash","if","h3","i18n","ul","li","user-stat","link-to","user-summary-section","user-summary-topics-list","user-summary-topic","each","-track-array","a","unless","shorten-url","br","html-safe","p","user-summary-users-list","user-summary-user","table","thead","th","tbody","tr","td","category-link","user-summary-category-search","badge-card"]]',moduleName:"discourse/templates/user/summary.hbs",isStrictMode:!1})},30512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"7yG3UbZJ",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["users-page"],null]],[1,"\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,4],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[10,0],[14,0,"users-directory directory"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["users-top","div",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-controls"],[12],[1,"\\n "],[10,0],[14,0,"period-controls"],[12],[1,"\\n "],[8,[39,10],null,[["@period","@onChange","@fullDay"],[[30,0,["period"]],[28,[37,11],[[28,[37,12],[[30,0,["period"]]],null]],null],false]],null],[1,"\\n"],[41,[30,0,["lastUpdatedAt"]],[[[1," "],[10,0],[14,0,"directory-last-updated"],[12],[1,"\\n "],[1,[28,[35,13],["directory.last_updated"],null]],[1,"\\n "],[1,[30,0,["lastUpdatedAt"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"inline-form"],[12],[1,"\\n "],[10,"label"],[14,0,"total-rows"],[12],[1,"\\n"],[41,[30,0,["model","totalRows"]],[[[1," "],[1,[28,[35,13],["directory.total_rows"],[["count"],[[30,0,["model","totalRows"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,15],[[16,"placeholder",[28,[37,13],["directory.filter_name"],null]],[24,0,"filter-name no-blur"],[4,[38,17],["input",[28,[37,18],[[30,0,["onUsernameFilterChanged"]]],null]],null]],[["@value"],[[28,[37,16],[[30,0,["nameInput"]]],null]]],null],[1,"\\n"],[41,[30,0,["showGroupFilter"]],[[[1," "],[8,[39,19],[[24,0,"directory-group-selector"]],[["@value","@content","@onChange","@options"],[[30,0,["group"]],[30,0,["groupOptions"]],[30,0,["groupChanged"]],[28,[37,9],null,[["none"],["directory.group.all"]]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[39,20],[[24,0,"btn-default open-edit-columns-btn"]],[["@icon","@action"],["wrench",[30,0,["showEditColumnsModal"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,8],null,[["@name","@outletArgs"],["users-directory-controls",[28,[37,9],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,21],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","length"]],[[[1," "],[8,[39,22],null,[["@items","@columns","@showTimeRead","@order","@asc"],[[30,0,["model"]],[30,0,["columns"]],[30,0,["showTimeRead"]],[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n "],[8,[39,21],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["name"]],[[[1," "],[1,[28,[35,13],["directory.no_results_with_search"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,13],["directory.no_results.body"],null]],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[1,[28,[35,24],[[28,[37,13],["directory.no_results.extra_body"],[["basePath"],[[28,[37,25],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","section","load-more","action","div","span","plugin-outlet","hash","period-chooser","fn","mut","i18n","label","input","readonly","on","with-event-value","combo-box","d-button","conditional-loading-spinner","directory-table","p","html-safe","base-path"]]',moduleName:"discourse/templates/users.hbs",isStrictMode:!1})},39862:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=(0,n(82739).createTemplateFactory)({id:"hvyCRoDX",block:"[[],[],false,[]]",moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.fa7c273b/node_modules/@ember/legacy-built-in-components/templates/empty.hbs",isStrictMode:!1})},20498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{basePath(){return"/admin/customize/"}}},60972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{appendQueryParams(e,t){return super.appendQueryParams(e,t,".json")}}},60250:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(e,t,n){return this.appendQueryParams("/tags/list",n)}}},67968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{cache=!0}},63423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{jsonMode=!0;pathFor(e,t,n){return`/posts/${n.username}/pending.json`}}},15301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(96749),s=n(6610);class r extends i.default{find(e,t,n){let{postId:i}=n;return(0,s.ajax)(`/posts/${i}/reply-history`).then(e=>({post_reply_histories:e}))}}},46648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(96749),s=n(6610);class r extends i.default{find(e,t,n){let{postId:i,after:r=1}=n;return(0,s.ajax)(`/posts/${i}/replies?after=${r||1}`).then(e=>({post_replies:e}))}}},32081:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(54836),s=n(96749),r=n(6610);class o extends s.default{find(e,t,n){return super.find(e,t,n).then(function(e){return{post:e}})}createRecord(e,t,n){let o=(0,i.underscore)(t);return n.nested_post=!0,(0,r.ajax)(this.pathFor(e,t),{type:"POST",data:n}).then(function(e){return new s.Result(e[o],e)})}}},56661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{jsonMode=!0;pathFor(e,t,n){return`/pub/by-topic/${n}`}}},96749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Result:()=>l,default:()=>c});var i=n(70001),s=n(54836),r=n(6610),o=n(6692);let a=["plugin","theme","embeddable-host","web-hook","web-hook-event","flagged-topic"];function l(e,t){this.payload=e,this.responseJson=t,this.target=null}function u(e){if(404===e.status)throw Error("404: "+e.responseText);throw e}class c extends i.default{primaryKey="id";jsonMode=!1;storageKey(e,t,n){if(n&&n.cacheKey)return n.cacheKey;let i=Math.abs((0,o.hashString)(JSON.stringify(t)));return`${e}_${i}`}basePath(e,t){return a.includes(t.replace("_","-"))?"/admin/":"/"}appendQueryParams(e,t,n){if(t){if("object"!=typeof t)return`${e}/${encodeURIComponent(t)}${n||""}`;{let i=new URLSearchParams;for(let[e,n]of Object.entries(t))n&&i.set(e,n);let s=i.toString();if(s)return`${e}${n||""}?${s}`}}return e}pathFor(e,t,n){let i=this.basePath(e,t,n)+(0,s.underscore)(e.pluralize(this.apiNameFor(t)));return this.appendQueryParams(i,n)}apiNameFor(e){return e}findAll(e,t,n){return(0,r.ajax)(this.pathFor(e,t,n)).catch(u)}find(e,t,n){return(0,r.ajax)(this.pathFor(e,t,n)).catch(u)}findStale(e,t,n,i){if(this.cached)return this.cached[this.storageKey(t,n,i)]}cacheFind(e,t,n,i,s){this.cached=this.cached||{},this.cached[this.storageKey(t,n,i)]=s}getPayload(e,t){let n={method:e,data:t};return this.jsonMode&&(n.contentType="application/json",n.data=JSON.stringify(t)),n}update(e,t,n,i){let o={},a=(0,s.underscore)(this.apiNameFor(t));return o[a]=i,(0,r.ajax)(this.pathFor(e,t,n),this.getPayload("PUT",o)).then(function(e){return new l(e[a],e)})}createRecord(e,t,n){let i={},o=(0,s.underscore)(this.apiNameFor(t));return i[o]=n,(0,r.ajax)(this.pathFor(e,t),this.getPayload("POST",i)).then(function(e){return new l(e[o],e)})}destroyRecord(e,t,n){return(0,r.ajax)(this.pathFor(e,t,n.get(this.primaryKey)),{type:"DELETE"})}}},76749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{jsonMode=!0;pathFor(e,t,n){return`/review/${n}/explain.json`}}},3645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(){return"/review/settings"}}},24989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(){return"/review/topics"}}},74951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{jsonMode=!0;pathFor(e,t,n){return this.appendQueryParams("/review",n)}}},3452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(e,t,n){return"/tag/"+n+"/info"}}},49611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(e,t,n){return"/tag/"+n+"/notifications"}}},70099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(96749);class s extends i.default{pathFor(e,t,n){return n?`/tag/${n}`:"/tags"}}},15513:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(96749),s=n(6610),r=n(83611),o=n(46606);class a extends i.default{find(e,t,n){let{filter:i,params:o}=n;return r.default.getAndRemove("topic_list",()=>{let e=`/${i}.json`;if(o){let t=new URLSearchParams;for(let[e,n]of Object.entries(o))if(void 0!==n){if(Array.isArray(n))for(let i of n)t.append(`${e}[]`,i);else t.set(e,n)}let n=t.toString();n&&(e+=`?${n}`)}return(0,s.ajax)(e)}).then(e=>(e.filter=i,e.params=o,e))}async applyTransformations(e){for(let t of e)await o.default.applyTransformations(t.topics)}}},91920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(96749),s=n(6610);class r extends i.default{find(e,t,n){return n.similar?(0,s.ajax)("/topics/similar_to",{data:n.similar}):super.find(e,t,n)}}},98272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S,getAndClearUnhandledThemeErrors:()=>w}),n(96708);let i=new WeakMap;function s(e,t,n,s){let r={configurable:!0,enumerable:!0,writable:!0,initializer:null};for(let i of(s&&(r.initializer=s),n))r=i(e,t,r)||r;void 0===r.initializer?Object.defineProperty(e,t,r):function(e,t,n){let s=i.get(e);s||(s=new Map,i.set(e,s)),s.set(t,n)}(e,t,r)}function r(e,t,n){let i={...Object.getOwnPropertyDescriptor(e,t)};for(let s of n)i=s(e,t,i)||i;void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(e):void 0,i.initializer=void 0),Object.defineProperty(e,t,i)}let o=Object.freeze(Object.defineProperty({__proto__:null,c:function(e,t){return t.reduce((e,t)=>t(e)||e,e)},f:function(e,t,n,i){return s(e.prototype,t,n,i)},g:s,i:function(e,t){let n=function(e,t){var n;let s=e.prototype;for(;s;){let e=null==(n=i.get(s))?void 0:n.get(t);if(e)return e;s=s.prototype}}(e.constructor,t);n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(e):void 0})},m:function(e,t,n){let{prototype:i}=e;return r(i,t,n)},n:r,p:function(e,t){for(let[n,i,s]of t)"field"===n?function(e,t,n){let i={configurable:!0,enumerable:!0,writable:!0,initializer:()=>{var n;return null==(n=Object.getOwnPropertyDescriptor(e,t))?void 0:n.value}};for(let s of n)i=s(e,t,i)||i;i.initializer&&(i.value=i.initializer.call(e),delete i.initializer),Object.defineProperty(e,t,i)}(e,i,s):r(e,i,s);return e}},Symbol.toStringTag,{value:"Module"}));globalThis.dt7948=o,n(78980),n(41010);var a=n(47642),l=n(8968),u=n(49861),c=n(66332),d=n.n(c),p=n(14587),h=n(83618),m=n(45929),g=n(50042);(0,a.registerDiscourseImplicitInjections)();let f=[],_=[];class y extends l.default{modulePrefix="discourse";rootElement="#main";customEvents={paste:"paste"};Resolver=(()=>(0,g.buildResolver)("discourse"))();start(){(function(){if(T)return;let e="ℹ️ ",t=document.querySelector("meta[name=generator]")?.content,n=t?.split(" ");if(n){let t=n[1],i=n[5]?.substr(0,10);e+=`Discourse v${t} — https://github.com/discourse/discourse/commits/${i} — `}console.log(e+=`Ember v${u.default}`),T=!0})(),document.querySelectorAll("noscript").forEach(e=>e.remove()),(0,p.normalizeEmberEventHandling)(this),Error.stackTraceLimit&&(Error.stackTraceLimit=1/0),window.history.scrollRestoration="manual",function(e){let t=[],n=[],i=[],s=[];for(let e of Object.keys(requirejs.entries))if(e.startsWith("discourse/")&&!e.endsWith("-test")){if(e.startsWith("discourse/initializers/"))t.push(e);else if(e.startsWith("discourse/instance-initializers/"))n.push(e);else{let t=function(e){let t=e.match(/^discourse\/theme\-(\d+)\//);if(t)return parseInt(t[1],10)}(e);(void 0!==t||e.startsWith("discourse/plugins/"))&&(e.includes("/pre-initializers/")?i.push([e,t]):(e.includes("/initializers/")||e.includes("/api-initializers/"))&&s.push([e,t]))}}for(let n of t)e.initializer(k(n));for(let t of n)e.instanceInitializer(k(t));for(let[t,n]of i)e.initializer(x(t,n));for(let[t,n]of s)e.instanceInitializer(x(t,n));for(let[t,n]of f.entries())e.instanceInitializer({name:`_discourse_plugin_${t}`,after:"inject-objects",initialize:()=>(0,h.withPluginApi)(n.version,n.code)})}(this)}_registerPluginCode(e,t){f.push({version:e,code:t})}ready(){performance.mark("discourse-ready");let e=new CustomEvent("discourse-ready");document.dispatchEvent(e)}}function b(e){let{themeId:t,error:n}=e,i=new CustomEvent("discourse-error",{cancelable:!0,detail:{themeId:t,error:n}});document.dispatchEvent(i)&&_.push(i)}function w(){let e=_;return _=[],e}function k(e){let t=d()(e,null,null,!0);if(!t)throw Error(e+" must export an initializer.");let n=t.default;if(!n)throw Error(e+" must have a default export");return n.name||(n.name=e.slice(e.lastIndexOf("/")+1)),n}function x(e,t){let n;try{n=k(e)}catch(e){if(!t||(0,m.isTesting)())throw e;b({themeId:t,error:e});return}let i=n.initialize;return n.initialize=e=>{try{return i.call(n,e.__container__,e)}catch(e){if(!t||(0,m.isTesting)())throw e;b({themeId:t,error:e})}},n}let T=!1,S=y},88539:(e,t,n)=>{"use strict";var i=n(41664);let s=window,r=s.define;(0,i.A)(n(54235)),r("discourse/adapters/email-template",function(){return(0,i.A)(n(20498))}),r("discourse/adapters/group",function(){return(0,i.A)(n(60972))}),r("discourse/adapters/list-tag",function(){return(0,i.A)(n(60250))}),r("discourse/adapters/notification",function(){return(0,i.A)(n(67968))}),r("discourse/adapters/pending-post",function(){return(0,i.A)(n(63423))}),r("discourse/adapters/post-reply-history",function(){return(0,i.A)(n(15301))}),r("discourse/adapters/post-reply",function(){return(0,i.A)(n(46648))}),r("discourse/adapters/post",function(){return(0,i.A)(n(32081))}),r("discourse/adapters/published-page",function(){return(0,i.A)(n(56661))}),r("discourse/adapters/rest",function(){return(0,i.A)(n(96749))}),r("discourse/adapters/reviewable-explanation",function(){return(0,i.A)(n(76749))}),r("discourse/adapters/reviewable-settings",function(){return(0,i.A)(n(3645))}),r("discourse/adapters/reviewable-topic",function(){return(0,i.A)(n(24989))}),r("discourse/adapters/reviewable",function(){return(0,i.A)(n(74951))}),r("discourse/adapters/tag-info",function(){return(0,i.A)(n(3452))}),r("discourse/adapters/tag-notification",function(){return(0,i.A)(n(49611))}),r("discourse/adapters/tag",function(){return(0,i.A)(n(70099))}),r("discourse/adapters/topic-list",function(){return(0,i.A)(n(15513))}),r("discourse/adapters/topic",function(){return(0,i.A)(n(91920))}),r("discourse/app",function(){return(0,i.A)(n(98272))}),r("discourse/config/environment",function(){return(0,i.A)(n(67436))}),r("discourse/deprecation-workflow",function(){return(0,i.A)(n(96708))}),r("discourse/form-kit/components/fk/alert",function(){return(0,i.A)(n(51635))}),r("discourse/form-kit/components/fk/char-counter",function(){return(0,i.A)(n(20256))}),r("discourse/form-kit/components/fk/checkbox-group",function(){return(0,i.A)(n(47126))}),r("discourse/form-kit/components/fk/col",function(){return(0,i.A)(n(83579))}),r("discourse/form-kit/components/fk/collection",function(){return(0,i.A)(n(87593))}),r("discourse/form-kit/components/fk/container",function(){return(0,i.A)(n(46814))}),r("discourse/form-kit/components/fk/control-wrapper",function(){return(0,i.A)(n(47302))}),r("discourse/form-kit/components/fk/control/checkbox",function(){return(0,i.A)(n(99542))}),r("discourse/form-kit/components/fk/control/code",function(){return(0,i.A)(n(20706))}),r("discourse/form-kit/components/fk/control/composer",function(){return(0,i.A)(n(76745))}),r("discourse/form-kit/components/fk/control/conditional-content",function(){return(0,i.A)(n(45035))}),r("discourse/form-kit/components/fk/control/conditional-content/condition",function(){return(0,i.A)(n(21037))}),r("discourse/form-kit/components/fk/control/conditional-content/content",function(){return(0,i.A)(n(65657))}),r("discourse/form-kit/components/fk/control/custom",function(){return(0,i.A)(n(18204))}),r("discourse/form-kit/components/fk/control/icon",function(){return(0,i.A)(n(13158))}),r("discourse/form-kit/components/fk/control/image",function(){return(0,i.A)(n(31722))}),r("discourse/form-kit/components/fk/control/input",function(){return(0,i.A)(n(94935))}),r("discourse/form-kit/components/fk/control/menu",function(){return(0,i.A)(n(11664))}),r("discourse/form-kit/components/fk/control/menu/container",function(){return(0,i.A)(n(56536))}),r("discourse/form-kit/components/fk/control/menu/divider",function(){return(0,i.A)(n(11102))}),r("discourse/form-kit/components/fk/control/menu/item",function(){return(0,i.A)(n(9232))}),r("discourse/form-kit/components/fk/control/password",function(){return(0,i.A)(n(67214))}),r("discourse/form-kit/components/fk/control/question",function(){return(0,i.A)(n(9839))}),r("discourse/form-kit/components/fk/control/radio-group",function(){return(0,i.A)(n(62794))}),r("discourse/form-kit/components/fk/control/radio-group/radio",function(){return(0,i.A)(n(1194))}),r("discourse/form-kit/components/fk/control/select",function(){return(0,i.A)(n(60483))}),r("discourse/form-kit/components/fk/control/textarea",function(){return(0,i.A)(n(17401))}),r("discourse/form-kit/components/fk/control/toggle",function(){return(0,i.A)(n(2559))}),r("discourse/form-kit/components/fk/errors-summary",function(){return(0,i.A)(n(12947))}),r("discourse/form-kit/components/fk/errors",function(){return(0,i.A)(n(93402))}),r("discourse/form-kit/components/fk/field-data",function(){return(0,i.A)(n(38110))}),r("discourse/form-kit/components/fk/field",function(){return(0,i.A)(n(52405))}),r("discourse/form-kit/components/fk/fieldset",function(){return(0,i.A)(n(4925))}),r("discourse/form-kit/components/fk/form",function(){return(0,i.A)(n(47919))}),r("discourse/form-kit/components/fk/input-group",function(){return(0,i.A)(n(80987))}),r("discourse/form-kit/components/fk/label",function(){return(0,i.A)(n(31147))}),r("discourse/form-kit/components/fk/meta",function(){return(0,i.A)(n(45424))}),r("discourse/form-kit/components/fk/object",function(){return(0,i.A)(n(8102))}),r("discourse/form-kit/components/fk/row",function(){return(0,i.A)(n(29997))}),r("discourse/form-kit/components/fk/section",function(){return(0,i.A)(n(17874))}),r("discourse/form-kit/components/fk/submit",function(){return(0,i.A)(n(6337))}),r("discourse/form-kit/components/fk/text",function(){return(0,i.A)(n(62278))}),r("discourse/form-kit/lib/constants",function(){return(0,i.A)(n(37297))}),r("discourse/form-kit/lib/fk-form-data",function(){return(0,i.A)(n(55272))}),r("discourse/form-kit/lib/validation-parser",function(){return(0,i.A)(n(95705))}),r("discourse/form-kit/lib/validator",function(){return(0,i.A)(n(75126))}),r("discourse/global-compat",function(){return(0,i.A)(n(41010))}),r("discourse/initializers/deprecation-error-mode",function(){return(0,i.A)(n(82927))}),r("discourse/initializers/deprecation-identify-source",function(){return(0,i.A)(n(14039))}),r("discourse/initializers/deprecation-this-property-fallback-handler",function(){return(0,i.A)(n(66671))}),r("discourse/initializers/discourse-bootstrap",function(){return(0,i.A)(n(52104))}),r("discourse/initializers/dynamic-route-builders",function(){return(0,i.A)(n(62312))}),r("discourse/initializers/freeze-valid-transformers",function(){return(0,i.A)(n(91537))}),r("discourse/initializers/inject-discourse-objects",function(){return(0,i.A)(n(57684))}),r("discourse/initializers/map-routes",function(){return(0,i.A)(n(65687))}),r("discourse/instance-initializers/animated-images-pause-on-click",function(){return(0,i.A)(n(88728))}),r("discourse/instance-initializers/auth-complete",function(){return(0,i.A)(n(86832))}),r("discourse/instance-initializers/auto-load-modules",function(){return(0,i.A)(n(56364))}),r("discourse/instance-initializers/badging",function(){return(0,i.A)(n(67522))}),r("discourse/instance-initializers/banner",function(){return(0,i.A)(n(54354))}),r("discourse/instance-initializers/bookmark-menu",function(){return(0,i.A)(n(17182))}),r("discourse/instance-initializers/boot-services",function(){return(0,i.A)(n(57625))}),r("discourse/instance-initializers/clean-dom-on-route-change",function(){return(0,i.A)(n(38575))}),r("discourse/instance-initializers/click-interceptor",function(){return(0,i.A)(n(11804))}),r("discourse/instance-initializers/codeblock-buttons",function(){return(0,i.A)(n(41672))}),r("discourse/instance-initializers/component-templates",function(){return(0,i.A)(n(54311))}),r("discourse/instance-initializers/csrf-token",function(){return(0,i.A)(n(34970))}),r("discourse/instance-initializers/discovery-controller-shims",function(){return(0,i.A)(n(80390))}),r("discourse/instance-initializers/document-scrollbar-width",function(){return(0,i.A)(n(19783))}),r("discourse/instance-initializers/eager-load-raw-templates",function(){return(0,i.A)(n(69130))}),r("discourse/instance-initializers/enable-emoji",function(){return(0,i.A)(n(3600))}),r("discourse/instance-initializers/handle-cookies",function(){return(0,i.A)(n(91200))}),r("discourse/instance-initializers/hashtag-css-generator",function(){return(0,i.A)(n(832))}),r("discourse/instance-initializers/hashtag-post-decorations",function(){return(0,i.A)(n(48991))}),r("discourse/instance-initializers/hbr-topic-list-overrides",function(){return(0,i.A)(n(42757))}),r("discourse/instance-initializers/highlight-users",function(){return(0,i.A)(n(20167))}),r("discourse/instance-initializers/image-aspect-ratio",function(){return(0,i.A)(n(93062))}),r("discourse/instance-initializers/init-route-scroll-manager",function(){return(0,i.A)(n(52988))}),r("discourse/instance-initializers/inject-objects",function(){return(0,i.A)(n(15984))}),r("discourse/instance-initializers/jquery-plugins",function(){return(0,i.A)(n(94503))}),r("discourse/instance-initializers/keyboard-shortcuts",function(){return(0,i.A)(n(1899))}),r("discourse/instance-initializers/live-development",function(){return(0,i.A)(n(61674))}),r("discourse/instance-initializers/localization",function(){return(0,i.A)(n(13017))}),r("discourse/instance-initializers/logout",function(){return(0,i.A)(n(84834))}),r("discourse/instance-initializers/logs-notice",function(){return(0,i.A)(n(55896))}),r("discourse/instance-initializers/message-bus",function(){return(0,i.A)(n(75294))}),r("discourse/instance-initializers/meta-tag-updater",function(){return(0,i.A)(n(77552))}),r("discourse/instance-initializers/mobile",function(){return(0,i.A)(n(72034))}),r("discourse/instance-initializers/moment",function(){return(0,i.A)(n(53892))}),r("discourse/instance-initializers/more-topics-tabs",function(){return(0,i.A)(n(25179))}),r("discourse/instance-initializers/narrow-desktop",function(){return(0,i.A)(n(69694))}),r("discourse/instance-initializers/onebox-decorators",function(){return(0,i.A)(n(98564))}),r("discourse/instance-initializers/page-tracking",function(){return(0,i.A)(n(95905))}),r("discourse/instance-initializers/populate-template-map",function(){return(0,i.A)(n(60134))}),r("discourse/instance-initializers/post-decorations",function(){return(0,i.A)(n(36088))}),r("discourse/instance-initializers/read-only",function(){return(0,i.A)(n(42259))}),r("discourse/instance-initializers/register-hashtag-types",function(){return(0,i.A)(n(80996))}),r("discourse/instance-initializers/register-media-optimization-upload-processor",function(){return(0,i.A)(n(23161))}),r("discourse/instance-initializers/register-service-worker",function(){return(0,i.A)(n(66450))}),r("discourse/instance-initializers/relative-ages",function(){return(0,i.A)(n(86137))}),r("discourse/instance-initializers/sharing-sources",function(){return(0,i.A)(n(26497))}),r("discourse/instance-initializers/signup-cta",function(){return(0,i.A)(n(70167))}),r("discourse/instance-initializers/sniff-capabilities",function(){return(0,i.A)(n(53681))}),r("discourse/instance-initializers/strip-mobile-app-url-params",function(){return(0,i.A)(n(6116))}),r("discourse/instance-initializers/subscribe-user-notifications",function(){return(0,i.A)(n(3013))}),r("discourse/instance-initializers/svg-sprite-fontawesome",function(){return(0,i.A)(n(5549))}),r("discourse/instance-initializers/topic-footer-buttons",function(){return(0,i.A)(n(24137))}),r("discourse/instance-initializers/url-redirects",function(){return(0,i.A)(n(28115))}),r("discourse/instance-initializers/video-placeholder",function(){return(0,i.A)(n(66237))}),r("discourse/instance-initializers/webview-background",function(){return(0,i.A)(n(44558))}),r("discourse/lib/admin-plugin-config-nav",function(){return(0,i.A)(n(84176))}),r("discourse/lib/admin-plugin-header-actions",function(){return(0,i.A)(n(26529))}),r("discourse/lib/admin-utilities",function(){return(0,i.A)(n(53912))}),r("discourse/lib/after-frame-paint",function(){return(0,i.A)(n(38557))}),r("discourse/lib/ajax-error",function(){return(0,i.A)(n(64149))}),r("discourse/lib/ajax",function(){return(0,i.A)(n(6610))}),r("discourse/lib/api",function(){return(0,i.A)(n(61718))}),r("discourse/lib/autocomplete",function(){return(0,i.A)(n(21640))}),r("discourse/lib/avatar-flair",function(){return(0,i.A)(n(55990))}),r("discourse/lib/body-scroll-lock",function(){return(0,i.A)(n(47050))}),r("discourse/lib/bookmark-form-data",function(){return(0,i.A)(n(84568))}),r("discourse/lib/bookmark",function(){return(0,i.A)(n(90808))}),r("discourse/lib/bulk-select-helper",function(){return(0,i.A)(n(76546))}),r("discourse/lib/cached-topic-list",function(){return(0,i.A)(n(77149))}),r("discourse/lib/can-check-emails-helper",function(){return(0,i.A)(n(43900))}),r("discourse/lib/caret-position",function(){return(0,i.A)(n(55905))}),r("discourse/lib/category-hashtags",function(){return(0,i.A)(n(24812))}),r("discourse/lib/category-tag-search",function(){return(0,i.A)(n(37186))}),r("discourse/lib/class-prepend",function(){return(0,i.A)(n(6235))}),r("discourse/lib/click-track",function(){return(0,i.A)(n(31800))}),r("discourse/lib/codeblock-buttons",function(){return(0,i.A)(n(73160))}),r("discourse/lib/color-scheme-picker",function(){return(0,i.A)(n(84424))}),r("discourse/lib/columns",function(){return(0,i.A)(n(72613))}),r("discourse/lib/composer-video-thumbnail-uppy",function(){return(0,i.A)(n(58452))}),r("discourse/lib/composer/custom-popup-menu-options",function(){return(0,i.A)(n(15642))}),r("discourse/lib/composer/toolbar",function(){return(0,i.A)(n(9762))}),r("discourse/lib/computed",function(){return(0,i.A)(n(28147))}),r("discourse/lib/constants",function(){return(0,i.A)(n(69391))}),r("discourse/lib/cookie",function(){return(0,i.A)(n(84266))}),r("discourse/lib/copy-text",function(){return(0,i.A)(n(73077))}),r("discourse/lib/d-popover",function(){return(0,i.A)(n(82674))}),r("discourse/lib/dag",function(){return(0,i.A)(n(31222))}),r("discourse/lib/debounce",function(){return(0,i.A)(n(35507))}),r("discourse/lib/decimal-adjust",function(){return(0,i.A)(n(11973))}),r("discourse/lib/desktop-notifications",function(){return(0,i.A)(n(20643))}),r("discourse/lib/dirty-keys",function(){return(0,i.A)(n(74987))}),r("discourse/lib/do-not-disturb",function(){return(0,i.A)(n(74583))}),r("discourse/lib/download-calendar",function(){return(0,i.A)(n(16747))}),r("discourse/lib/email-provider-default-settings",function(){return(0,i.A)(n(10742))}),r("discourse/lib/ember-action-modifier",function(){return(0,i.A)(n(14312))}),r("discourse/lib/ember-events",function(){return(0,i.A)(n(14587))}),r("discourse/lib/ember-version",function(){return(0,i.A)(n(46884))}),r("discourse/lib/export-csv",function(){return(0,i.A)(n(5335))}),r("discourse/lib/export-result",function(){return(0,i.A)(n(54450))}),r("discourse/lib/eyeline",function(){return(0,i.A)(n(53973))}),r("discourse/lib/fabricators",function(){return(0,i.A)(n(16640))}),r("discourse/lib/filter-mode",function(){return(0,i.A)(n(63252))}),r("discourse/lib/flag-targets/flag",function(){return(0,i.A)(n(53738))}),r("discourse/lib/flag-targets/post-flag",function(){return(0,i.A)(n(76569))}),r("discourse/lib/flag-targets/topic-flag",function(){return(0,i.A)(n(83044))}),r("discourse/lib/form-template-validation",function(){return(0,i.A)(n(80101))}),r("discourse/lib/formatter",function(){return(0,i.A)(n(38536))}),r("discourse/lib/grant-badge-utils",function(){return(0,i.A)(n(26446))}),r("discourse/lib/hash",function(){return(0,i.A)(n(6692))}),r("discourse/lib/hashtag-autocomplete",function(){return(0,i.A)(n(15963))}),r("discourse/lib/hashtag-decorator",function(){return(0,i.A)(n(50110))}),r("discourse/lib/hashtag-type-registry",function(){return(0,i.A)(n(34663))}),r("discourse/lib/hashtag-types/base",function(){return(0,i.A)(n(63724))}),r("discourse/lib/hashtag-types/category",function(){return(0,i.A)(n(52757))}),r("discourse/lib/hashtag-types/tag",function(){return(0,i.A)(n(87725))}),r("discourse/lib/highlight-html",function(){return(0,i.A)(n(26190))}),r("discourse/lib/highlight-search",function(){return(0,i.A)(n(44331))}),r("discourse/lib/highlight-syntax-merge-html-plugin",function(){return(0,i.A)(n(27507))}),r("discourse/lib/highlight-syntax",function(){return(0,i.A)(n(18672))}),r("discourse/lib/homepage-router-overrides",function(){return(0,i.A)(n(82884))}),r("discourse/lib/implicit-injections",function(){return(0,i.A)(n(47642))}),r("discourse/lib/intercept-click",function(){return(0,i.A)(n(3737))}),r("discourse/lib/is-element-in-viewport",function(){return(0,i.A)(n(94412))}),r("discourse/lib/key-value-store",function(){return(0,i.A)(n(13973))}),r("discourse/lib/keyboard-shortcuts",function(){return(0,i.A)(n(56907))}),r("discourse/lib/lazy-load-images",function(){return(0,i.A)(n(9162))}),r("discourse/lib/lightbox",function(){return(0,i.A)(n(57177))}),r("discourse/lib/lightbox/constants",function(){return(0,i.A)(n(13603))}),r("discourse/lib/lightbox/helpers",function(){return(0,i.A)(n(11635))}),r("discourse/lib/lightbox/helpers/create-download-link",function(){return(0,i.A)(n(60572))}),r("discourse/lib/lightbox/helpers/find-nearest-shared-parent",function(){return(0,i.A)(n(65335))}),r("discourse/lib/lightbox/helpers/get-swipe-direction",function(){return(0,i.A)(n(25423))}),r("discourse/lib/lightbox/helpers/open-image-in-new-tab",function(){return(0,i.A)(n(14049))}),r("discourse/lib/lightbox/helpers/preload-item-images",function(){return(0,i.A)(n(29212))}),r("discourse/lib/lightbox/helpers/scroll-parent-to-element-center",function(){return(0,i.A)(n(88139))}),r("discourse/lib/lightbox/helpers/set-carousel-scroll-position",function(){return(0,i.A)(n(66265))}),r("discourse/lib/lightbox/helpers/site-theme-color",function(){return(0,i.A)(n(86383))}),r("discourse/lib/lightbox/process-html",function(){return(0,i.A)(n(36725))}),r("discourse/lib/link-lookup",function(){return(0,i.A)(n(28427))}),r("discourse/lib/link-mentions",function(){return(0,i.A)(n(87342))}),r("discourse/lib/load-ace-editor",function(){return(0,i.A)(n(88274))}),r("discourse/lib/load-faker",function(){return(0,i.A)(n(18604))}),r("discourse/lib/load-morphlex",function(){return(0,i.A)(n(81346))}),r("discourse/lib/load-oneboxes",function(){return(0,i.A)(n(40224))}),r("discourse/lib/load-script",function(){return(0,i.A)(n(2406))}),r("discourse/lib/local-dates",function(){return(0,i.A)(n(90093))}),r("discourse/lib/lock-on",function(){return(0,i.A)(n(22757))}),r("discourse/lib/logout",function(){return(0,i.A)(n(71554))}),r("discourse/lib/media-optimization-utils",function(){return(0,i.A)(n(87090))}),r("discourse/lib/mobile",function(){return(0,i.A)(n(76578))}),r("discourse/lib/model-transformers",function(){return(0,i.A)(n(8628))}),r("discourse/lib/narrow-desktop",function(){return(0,i.A)(n(83454))}),r("discourse/lib/notification-levels",function(){return(0,i.A)(n(18523))}),r("discourse/lib/notification-types-manager",function(){return(0,i.A)(n(19581))}),r("discourse/lib/notification-types/admin-problems",function(){return(0,i.A)(n(96348))}),r("discourse/lib/notification-types/base",function(){return(0,i.A)(n(38051))}),r("discourse/lib/notification-types/bookmark-reminder",function(){return(0,i.A)(n(74953))}),r("discourse/lib/notification-types/custom",function(){return(0,i.A)(n(48597))}),r("discourse/lib/notification-types/edited",function(){return(0,i.A)(n(40275))}),r("discourse/lib/notification-types/granted-badge",function(){return(0,i.A)(n(57241))}),r("discourse/lib/notification-types/group-mentioned",function(){return(0,i.A)(n(45297))}),r("discourse/lib/notification-types/group-message-summary",function(){return(0,i.A)(n(85300))}),r("discourse/lib/notification-types/invitee-accepted",function(){return(0,i.A)(n(92816))}),r("discourse/lib/notification-types/liked-consolidated",function(){return(0,i.A)(n(30021))}),r("discourse/lib/notification-types/liked",function(){return(0,i.A)(n(71869))}),r("discourse/lib/notification-types/linked-consolidated",function(){return(0,i.A)(n(79171))}),r("discourse/lib/notification-types/membership-request-accepted",function(){return(0,i.A)(n(18406))}),r("discourse/lib/notification-types/membership-request-consolidated",function(){return(0,i.A)(n(60848))}),r("discourse/lib/notification-types/moved-post",function(){return(0,i.A)(n(72094))}),r("discourse/lib/notification-types/new-features",function(){return(0,i.A)(n(6244))}),r("discourse/lib/notification-types/watching-first-post",function(){return(0,i.A)(n(57519))}),r("discourse/lib/offset-calculator",function(){return(0,i.A)(n(8032))}),r("discourse/lib/optional-service",function(){return(0,i.A)(n(40710))}),r("discourse/lib/page-tracker",function(){return(0,i.A)(n(63022))}),r("discourse/lib/plugin-api",function(){return(0,i.A)(n(83618))}),r("discourse/lib/plugin-connectors",function(){return(0,i.A)(n(50628))}),r("discourse/lib/post-action-feedback",function(){return(0,i.A)(n(97113))}),r("discourse/lib/post-bookmark-manager",function(){return(0,i.A)(n(39149))}),r("discourse/lib/posts-with-placeholders",function(){return(0,i.A)(n(93501))}),r("discourse/lib/preload-store",function(){return(0,i.A)(n(83611))}),r("discourse/lib/public-js-versions",function(){return(0,i.A)(n(17259))}),r("discourse/lib/push-notifications",function(){return(0,i.A)(n(38449))}),r("discourse/lib/put-cursor-at-end",function(){return(0,i.A)(n(4354))}),r("discourse/lib/pwa-utils",function(){return(0,i.A)(n(22054))}),r("discourse/lib/quote-state",function(){return(0,i.A)(n(17482))}),r("discourse/lib/quote",function(){return(0,i.A)(n(69970))}),r("discourse/lib/raw-render-glimmer",function(){return(0,i.A)(n(19491))}),r("discourse/lib/register-service-worker",function(){return(0,i.A)(n(92242))}),r("discourse/lib/register-topic-footer-button",function(){return(0,i.A)(n(98860))}),r("discourse/lib/register-topic-footer-dropdown",function(){return(0,i.A)(n(30945))}),r("discourse/lib/render-tag",function(){return(0,i.A)(n(95733))}),r("discourse/lib/render-tags",function(){return(0,i.A)(n(40928))}),r("discourse/lib/render-topic-featured-link",function(){return(0,i.A)(n(55950))}),r("discourse/lib/reports-loader",function(){return(0,i.A)(n(6065))}),r("discourse/lib/reviewable-types-manager",function(){return(0,i.A)(n(90602))}),r("discourse/lib/reviewable-types/base",function(){return(0,i.A)(n(56474))}),r("discourse/lib/reviewable-types/flagged-post",function(){return(0,i.A)(n(81876))}),r("discourse/lib/reviewable-types/queued-post",function(){return(0,i.A)(n(33805))}),r("discourse/lib/reviewable-types/user",function(){return(0,i.A)(n(75788))}),r("discourse/lib/round",function(){return(0,i.A)(n(56974))}),r("discourse/lib/safari-hacks",function(){return(0,i.A)(n(52051))}),r("discourse/lib/scroll-lock",function(){return(0,i.A)(n(79361))}),r("discourse/lib/search",function(){return(0,i.A)(n(84188))}),r("discourse/lib/settings",function(){return(0,i.A)(n(59621))}),r("discourse/lib/sharing",function(){return(0,i.A)(n(53674))}),r("discourse/lib/show-modal",function(){return(0,i.A)(n(75585))}),r("discourse/lib/sidebar/admin-nav-map",function(){return(0,i.A)(n(67245))}),r("discourse/lib/sidebar/admin-sidebar",function(){return(0,i.A)(n(20991))}),r("discourse/lib/sidebar/base-community-section-link",function(){return(0,i.A)(n(24551))}),r("discourse/lib/sidebar/base-custom-sidebar-panel",function(){return(0,i.A)(n(63168))}),r("discourse/lib/sidebar/base-custom-sidebar-section-link",function(){return(0,i.A)(n(24270))}),r("discourse/lib/sidebar/base-custom-sidebar-section",function(){return(0,i.A)(n(46681))}),r("discourse/lib/sidebar/common/community-section/about-section-link",function(){return(0,i.A)(n(59565))}),r("discourse/lib/sidebar/common/community-section/badges-section-link",function(){return(0,i.A)(n(42742))}),r("discourse/lib/sidebar/common/community-section/everything-section-link",function(){return(0,i.A)(n(36937))}),r("discourse/lib/sidebar/common/community-section/faq-section-link",function(){return(0,i.A)(n(92854))}),r("discourse/lib/sidebar/common/community-section/groups-section-link",function(){return(0,i.A)(n(63294))}),r("discourse/lib/sidebar/common/community-section/section",function(){return(0,i.A)(n(11272))}),r("discourse/lib/sidebar/common/community-section/users-section-link",function(){return(0,i.A)(n(76030))}),r("discourse/lib/sidebar/custom-community-section-links",function(){return(0,i.A)(n(26080))}),r("discourse/lib/sidebar/custom-sections",function(){return(0,i.A)(n(43071))}),r("discourse/lib/sidebar/helpers",function(){return(0,i.A)(n(59636))}),r("discourse/lib/sidebar/panels",function(){return(0,i.A)(n(24962))}),r("discourse/lib/sidebar/section-link",function(){return(0,i.A)(n(64159))}),r("discourse/lib/sidebar/section",function(){return(0,i.A)(n(65694))}),r("discourse/lib/sidebar/user/categories-section/category-section-link",function(){return(0,i.A)(n(17621))}),r("discourse/lib/sidebar/user/community-section/admin-section-link",function(){return(0,i.A)(n(21385))}),r("discourse/lib/sidebar/user/community-section/admin-section",function(){return(0,i.A)(n(15804))}),r("discourse/lib/sidebar/user/community-section/invite-section-link",function(){return(0,i.A)(n(21819))}),r("discourse/lib/sidebar/user/community-section/my-posts-section-link",function(){return(0,i.A)(n(59936))}),r("discourse/lib/sidebar/user/community-section/review-section-link",function(){return(0,i.A)(n(54424))}),r("discourse/lib/sidebar/user/messages-section/group-message-section-link",function(){return(0,i.A)(n(88176))}),r("discourse/lib/sidebar/user/messages-section/message-section-link",function(){return(0,i.A)(n(40170))}),r("discourse/lib/sidebar/user/messages-section/personal-message-section-link",function(){return(0,i.A)(n(15863))}),r("discourse/lib/sidebar/user/tags-section/base-tag-section-link",function(){return(0,i.A)(n(82384))}),r("discourse/lib/sidebar/user/tags-section/pm-tag-section-link",function(){return(0,i.A)(n(14646))}),r("discourse/lib/sidebar/user/tags-section/tag-section-link",function(){return(0,i.A)(n(48380))}),r("discourse/lib/site-setting-filter",function(){return(0,i.A)(n(58089))}),r("discourse/lib/source-identifier",function(){return(0,i.A)(n(55481))}),r("discourse/lib/svg-sprite-loader",function(){return(0,i.A)(n(71358))}),r("discourse/lib/swipe-events",function(){return(0,i.A)(n(13600))}),r("discourse/lib/tag-hashtags",function(){return(0,i.A)(n(9146))}),r("discourse/lib/text-direction",function(){return(0,i.A)(n(64055))}),r("discourse/lib/text",function(){return(0,i.A)(n(62167))}),r("discourse/lib/textarea-text-manipulation",function(){return(0,i.A)(n(47876))}),r("discourse/lib/theme-selector",function(){return(0,i.A)(n(94113))}),r("discourse/lib/theme-settings-store",function(){return(0,i.A)(n(71905))}),r("discourse/lib/time-shortcut",function(){return(0,i.A)(n(32644))}),r("discourse/lib/time-utils",function(){return(0,i.A)(n(90069))}),r("discourse/lib/to-markdown",function(){return(0,i.A)(n(91699))}),r("discourse/lib/topic-bookmark-manager",function(){return(0,i.A)(n(66736))}),r("discourse/lib/topic-fancy-title",function(){return(0,i.A)(n(34606))}),r("discourse/lib/topic-list-tracked-filter",function(){return(0,i.A)(n(14764))}),r("discourse/lib/topic-list-tracker",function(){return(0,i.A)(n(38231))}),r("discourse/lib/tracked-tools",function(){return(0,i.A)(n(31570))}),r("discourse/lib/transform-post",function(){return(0,i.A)(n(10577))}),r("discourse/lib/transformer",function(){return(0,i.A)(n(83357))}),r("discourse/lib/transformer/registry",function(){return(0,i.A)(n(86463))}),r("discourse/lib/update-tab-count",function(){return(0,i.A)(n(29497))}),r("discourse/lib/update-user-status-on-mention",function(){return(0,i.A)(n(54515))}),r("discourse/lib/uploads",function(){return(0,i.A)(n(67816))}),r("discourse/lib/uppy-checksum-plugin",function(){return(0,i.A)(n(7110))}),r("discourse/lib/uppy-chunked-upload",function(){return(0,i.A)(n(88441))}),r("discourse/lib/uppy-chunked-uploader-plugin",function(){return(0,i.A)(n(15524))}),r("discourse/lib/uppy-media-optimization-plugin",function(){return(0,i.A)(n(47445))}),r("discourse/lib/uppy-plugin-base",function(){return(0,i.A)(n(91252))}),r("discourse/lib/uppy/composer-upload",function(){return(0,i.A)(n(77433))}),r("discourse/lib/uppy/s3-multipart",function(){return(0,i.A)(n(72666))}),r("discourse/lib/uppy/upload-debugging",function(){return(0,i.A)(n(26693))}),r("discourse/lib/uppy/uppy-upload",function(){return(0,i.A)(n(21765))}),r("discourse/lib/uppy/wrapper",function(){return(0,i.A)(n(22634))}),r("discourse/lib/url",function(){return(0,i.A)(n(56839))}),r("discourse/lib/user-activation",function(){return(0,i.A)(n(48400))}),r("discourse/lib/user-list-attrs",function(){return(0,i.A)(n(86369))}),r("discourse/lib/user-menu/base-item",function(){return(0,i.A)(n(71747))}),r("discourse/lib/user-menu/bookmark-item",function(){return(0,i.A)(n(63444))}),r("discourse/lib/user-menu/message-item",function(){return(0,i.A)(n(86559))}),r("discourse/lib/user-menu/notification-item",function(){return(0,i.A)(n(20665))}),r("discourse/lib/user-menu/reviewable-item",function(){return(0,i.A)(n(51004))}),r("discourse/lib/user-menu/tab",function(){return(0,i.A)(n(82975))}),r("discourse/lib/user-presence",function(){return(0,i.A)(n(33837))}),r("discourse/lib/user-search",function(){return(0,i.A)(n(52864))}),r("discourse/lib/user-status-message",function(){return(0,i.A)(n(20292))}),r("discourse/lib/user-status-on-autocomplete",function(){return(0,i.A)(n(68695))}),r("discourse/lib/utilities",function(){return(0,i.A)(n(20802))}),r("discourse/lib/virtual-element-from-text-range",function(){return(0,i.A)(n(68817))}),r("discourse/lib/wait-for-keyboard",function(){return(0,i.A)(n(60765))}),r("discourse/lib/waving-hand-url",function(){return(0,i.A)(n(14850))}),r("discourse/lib/webauthn",function(){return(0,i.A)(n(2262))}),r("discourse/lib/zoom-check",function(){return(0,i.A)(n(14210))}),r("discourse/loader-shims",function(){return(0,i.A)(n(78980))}),r("discourse/mapping-router",function(){return(0,i.A)(n(82940))}),r("discourse/mixins/buffered-content",function(){return(0,i.A)(n(26038))}),r("discourse/mixins/load-more",function(){return(0,i.A)(n(69863))}),r("discourse/mixins/name-validation",function(){return(0,i.A)(n(66380))}),r("discourse/mixins/password-validation",function(){return(0,i.A)(n(68358))}),r("discourse/mixins/scroll-top",function(){return(0,i.A)(n(91502))}),r("discourse/mixins/scrolling",function(){return(0,i.A)(n(58774))}),r("discourse/mixins/singleton",function(){return(0,i.A)(n(82176))}),r("discourse/mixins/uppy-upload",function(){return(0,i.A)(n(49105))}),r("discourse/mixins/user-fields-validation",function(){return(0,i.A)(n(60568))}),r("discourse/mixins/username-validation",function(){return(0,i.A)(n(35217))}),r("discourse/mixins/viewing-action-type",function(){return(0,i.A)(n(59662))}),r("discourse/models/action-summary",function(){return(0,i.A)(n(43314))}),r("discourse/models/archetype",function(){return(0,i.A)(n(83334))}),r("discourse/models/associated-group",function(){return(0,i.A)(n(51781))}),r("discourse/models/badge-grouping",function(){return(0,i.A)(n(8218))}),r("discourse/models/badge",function(){return(0,i.A)(n(79298))}),r("discourse/models/bookmark",function(){return(0,i.A)(n(10157))}),r("discourse/models/category-list",function(){return(0,i.A)(n(47946))}),r("discourse/models/category",function(){return(0,i.A)(n(88253))}),r("discourse/models/composer",function(){return(0,i.A)(n(2151))}),r("discourse/models/draft",function(){return(0,i.A)(n(82154))}),r("discourse/models/form-template",function(){return(0,i.A)(n(33338))}),r("discourse/models/group-history",function(){return(0,i.A)(n(7447))}),r("discourse/models/group",function(){return(0,i.A)(n(27174))}),r("discourse/models/invite",function(){return(0,i.A)(n(59928))}),r("discourse/models/live-post-counts",function(){return(0,i.A)(n(88351))}),r("discourse/models/login-method",function(){return(0,i.A)(n(93512))}),r("discourse/models/nav-item",function(){return(0,i.A)(n(22850))}),r("discourse/models/notification",function(){return(0,i.A)(n(99602))}),r("discourse/models/pending-post",function(){return(0,i.A)(n(1397))}),r("discourse/models/permission-type",function(){return(0,i.A)(n(30975))}),r("discourse/models/post-action-type",function(){return(0,i.A)(n(70243))}),r("discourse/models/post-stream",function(){return(0,i.A)(n(97264))}),r("discourse/models/post",function(){return(0,i.A)(n(69883))}),r("discourse/models/published-page",function(){return(0,i.A)(n(84475))}),r("discourse/models/rest",function(){return(0,i.A)(n(40639))}),r("discourse/models/result-set",function(){return(0,i.A)(n(91389))}),r("discourse/models/reviewable-history",function(){return(0,i.A)(n(16136))}),r("discourse/models/reviewable",function(){return(0,i.A)(n(217))}),r("discourse/models/session",function(){return(0,i.A)(n(20177))}),r("discourse/models/site",function(){return(0,i.A)(n(89882))}),r("discourse/models/static-page",function(){return(0,i.A)(n(24563))}),r("discourse/models/store",function(){return(0,i.A)(n(936))}),r("discourse/models/tag-group",function(){return(0,i.A)(n(47851))}),r("discourse/models/tag",function(){return(0,i.A)(n(93253))}),r("discourse/models/topic-details",function(){return(0,i.A)(n(41433))}),r("discourse/models/topic-list",function(){return(0,i.A)(n(66247))}),r("discourse/models/topic-timer",function(){return(0,i.A)(n(91450))}),r("discourse/models/topic-tracking-state",function(){return(0,i.A)(n(47866))}),r("discourse/models/topic",function(){return(0,i.A)(n(46606))}),r("discourse/models/trust-level",function(){return(0,i.A)(n(44212))}),r("discourse/models/user-action-group",function(){return(0,i.A)(n(16771))}),r("discourse/models/user-action-stat",function(){return(0,i.A)(n(94676))}),r("discourse/models/user-action",function(){return(0,i.A)(n(13757))}),r("discourse/models/user-badge",function(){return(0,i.A)(n(12696))}),r("discourse/models/user-draft",function(){return(0,i.A)(n(53104))}),r("discourse/models/user-drafts-stream",function(){return(0,i.A)(n(25900))}),r("discourse/models/user-menu-reviewable",function(){return(0,i.A)(n(60885))}),r("discourse/models/user-posts-stream",function(){return(0,i.A)(n(20309))}),r("discourse/models/user-stream",function(){return(0,i.A)(n(16143))}),r("discourse/models/user",function(){return(0,i.A)(n(41958))}),r("discourse/raw-templates/badge-selector-autocomplete",function(){return(0,i.A)(n(65475))}),r("discourse/raw-templates/category-selector-autocomplete",function(){return(0,i.A)(n(1144))}),r("discourse/raw-templates/category-tag-autocomplete",function(){return(0,i.A)(n(79601))}),r("discourse/raw-templates/emoji-selector-autocomplete",function(){return(0,i.A)(n(98994))}),r("discourse/raw-templates/flat-button",function(){return(0,i.A)(n(80671))}),r("discourse/raw-templates/group-selector-autocomplete",function(){return(0,i.A)(n(37831))}),r("discourse/raw-templates/hashtag-autocomplete",function(){return(0,i.A)(n(75414))}),r("discourse/raw-templates/list/action-list",function(){return(0,i.A)(n(10991))}),r("discourse/raw-templates/list/activity-column",function(){return(0,i.A)(n(51808))}),r("discourse/raw-templates/list/category-column",function(){return(0,i.A)(n(68775))}),r("discourse/raw-templates/list/new-list-header-controls",function(){return(0,i.A)(n(61322))}),r("discourse/raw-templates/list/participant-groups",function(){return(0,i.A)(n(2900))}),r("discourse/raw-templates/list/post-count-or-badges",function(){return(0,i.A)(n(74909))}),r("discourse/raw-templates/list/posters-column",function(){return(0,i.A)(n(68351))}),r("discourse/raw-templates/list/posts-count-column",function(){return(0,i.A)(n(47150))}),r("discourse/raw-templates/list/topic-excerpt",function(){return(0,i.A)(n(66001))}),r("discourse/raw-templates/list/topic-list-item",function(){return(0,i.A)(n(62816))}),r("discourse/raw-templates/list/unread-indicator",function(){return(0,i.A)(n(47023))}),r("discourse/raw-templates/list/visited-line",function(){return(0,i.A)(n(50047))}),r("discourse/raw-templates/mobile/list/topic-list-item",function(){return(0,i.A)(n(24983))}),r("discourse/raw-templates/topic-bulk-select-dropdown",function(){return(0,i.A)(n(58372))}),r("discourse/raw-templates/topic-list-header-column",function(){return(0,i.A)(n(85940))}),r("discourse/raw-templates/topic-list-header",function(){return(0,i.A)(n(12565))}),r("discourse/raw-templates/topic-post-badges",function(){return(0,i.A)(n(91358))}),r("discourse/raw-templates/topic-status",function(){return(0,i.A)(n(14793))}),r("discourse/raw-templates/user-selector-autocomplete",function(){return(0,i.A)(n(67415))}),r("discourse/raw-views/list/new-list-header-controls",function(){return(0,i.A)(n(42411))}),r("discourse/raw-views/list/post-count-or-badges",function(){return(0,i.A)(n(336))}),r("discourse/raw-views/list/posts-count-column",function(){return(0,i.A)(n(67803))}),r("discourse/raw-views/list/visited-line",function(){return(0,i.A)(n(92030))}),r("discourse/raw-views/topic-bulk-select-dropdown",function(){return(0,i.A)(n(45484))}),r("discourse/raw-views/topic-list-header-column",function(){return(0,i.A)(n(85087))}),r("discourse/raw-views/topic-status",function(){return(0,i.A)(n(30750))}),r("discourse/services/admin-custom-user-fields",function(){return(0,i.A)(n(98876))}),r("discourse/services/admin-post-menu-buttons",function(){return(0,i.A)(n(69275))}),r("discourse/services/admin-topic-menu-buttons",function(){return(0,i.A)(n(23840))}),r("discourse/services/app-events",function(){return(0,i.A)(n(53636))}),r("discourse/services/bookmark-api",function(){return(0,i.A)(n(24126))}),r("discourse/services/breadcrumbs",function(){return(0,i.A)(n(91353))}),r("discourse/services/capabilities",function(){return(0,i.A)(n(32073))}),r("discourse/services/client-error-handler",function(){return(0,i.A)(n(1226))}),r("discourse/services/composer",function(){return(0,i.A)(n(66861))}),r("discourse/services/deprecation-warning-handler",function(){return(0,i.A)(n(6165))}),r("discourse/services/desktop-notifications",function(){return(0,i.A)(n(80234))}),r("discourse/services/discovery",function(){return(0,i.A)(n(14317))}),r("discourse/services/document-title",function(){return(0,i.A)(n(13933))}),r("discourse/services/element-classes",function(){return(0,i.A)(n(61478))}),r("discourse/services/emoji-store",function(){return(0,i.A)(n(51365))}),r("discourse/services/footer",function(){return(0,i.A)(n(78048))}),r("discourse/services/header",function(){return(0,i.A)(n(41262))}),r("discourse/services/history-store",function(){return(0,i.A)(n(7583))}),r("discourse/services/key-value-store",function(){return(0,i.A)(n(22532))}),r("discourse/services/lightbox",function(){return(0,i.A)(n(23342))}),r("discourse/services/loading-slider",function(){return(0,i.A)(n(34637))}),r("discourse/services/login",function(){return(0,i.A)(n(84486))}),r("discourse/services/logs-notice",function(){return(0,i.A)(n(83013))}),r("discourse/services/map-cache",function(){return(0,i.A)(n(68810))}),r("discourse/services/media-optimization-worker",function(){return(0,i.A)(n(53388))}),r("discourse/services/message-bus",function(){return(0,i.A)(n(91175))}),r("discourse/services/modal",function(){return(0,i.A)(n(42170))}),r("discourse/services/navigation-menu",function(){return(0,i.A)(n(47381))}),r("discourse/services/network-connectivity",function(){return(0,i.A)(n(46649))}),r("discourse/services/notifications",function(){return(0,i.A)(n(76203))}),r("discourse/services/pm-topic-tracking-state",function(){return(0,i.A)(n(32310))}),r("discourse/services/presence",function(){return(0,i.A)(n(6126))}),r("discourse/services/render-glimmer",function(){return(0,i.A)(n(13605))}),r("discourse/services/restricted-routing",function(){return(0,i.A)(n(45533))}),r("discourse/services/route-scroll-manager",function(){return(0,i.A)(n(17576))}),r("discourse/services/screen-track",function(){return(0,i.A)(n(41173))}),r("discourse/services/scroll-direction",function(){return(0,i.A)(n(62718))}),r("discourse/services/search-preferences-manager",function(){return(0,i.A)(n(28686))}),r("discourse/services/search",function(){return(0,i.A)(n(11867))}),r("discourse/services/sidebar-state",function(){return(0,i.A)(n(32523))}),r("discourse/services/site-settings",function(){return(0,i.A)(n(56716))}),r("discourse/services/store",function(){return(0,i.A)(n(12634))}),r("discourse/services/user-status",function(){return(0,i.A)(n(29139))}),r("discourse/services/user-tips",function(){return(0,i.A)(n(72095))}),r("discourse/widgets/actions-summary",function(){return(0,i.A)(n(93526))}),r("discourse/widgets/avatar-flair",function(){return(0,i.A)(n(61800))}),r("discourse/widgets/bookmark-menu",function(){return(0,i.A)(n(56624))}),r("discourse/widgets/button",function(){return(0,i.A)(n(69954))}),r("discourse/widgets/category-link",function(){return(0,i.A)(n(49755))}),r("discourse/widgets/component-connector",function(){return(0,i.A)(n(46533))}),r("discourse/widgets/connector",function(){return(0,i.A)(n(38663))}),r("discourse/widgets/decorator-helper",function(){return(0,i.A)(n(37226))}),r("discourse/widgets/discourse-tags",function(){return(0,i.A)(n(29663))}),r("discourse/widgets/embedded-post",function(){return(0,i.A)(n(65903))}),r("discourse/widgets/emoji",function(){return(0,i.A)(n(86190))}),r("discourse/widgets/glue",function(){return(0,i.A)(n(53955))}),r("discourse/widgets/hbs-compiler",function(){return(0,i.A)(n(92257))}),r("discourse/widgets/hooks",function(){return(0,i.A)(n(34312))}),r("discourse/widgets/link",function(){return(0,i.A)(n(46242))}),r("discourse/widgets/menu-panel",function(){return(0,i.A)(n(61942))}),r("discourse/widgets/post-cooked",function(){return(0,i.A)(n(93008))}),r("discourse/widgets/post-edits-indicator",function(){return(0,i.A)(n(93028))}),r("discourse/widgets/post-gap",function(){return(0,i.A)(n(27933))}),r("discourse/widgets/post-links",function(){return(0,i.A)(n(87956))}),r("discourse/widgets/post-menu",function(){return(0,i.A)(n(54314))}),r("discourse/widgets/post-placeholder",function(){return(0,i.A)(n(29464))}),r("discourse/widgets/post-small-action",function(){return(0,i.A)(n(75957))}),r("discourse/widgets/post-stream",function(){return(0,i.A)(n(29329))}),r("discourse/widgets/post-user-status",function(){return(0,i.A)(n(99233))}),r("discourse/widgets/post-user-tip-shim",function(){return(0,i.A)(n(48046))}),r("discourse/widgets/post",function(){return(0,i.A)(n(93396))}),r("discourse/widgets/poster-name",function(){return(0,i.A)(n(91639))}),r("discourse/widgets/raw-html",function(){return(0,i.A)(n(73922))}),r("discourse/widgets/render-glimmer",function(){return(0,i.A)(n(59560))}),r("discourse/widgets/topic-post-visited-line",function(){return(0,i.A)(n(98812))}),r("discourse/widgets/topic-status",function(){return(0,i.A)(n(37934))}),r("discourse/widgets/widget-dropdown",function(){return(0,i.A)(n(33022))}),r("discourse/widgets/widget",function(){return(0,i.A)(n(95854))}),r("discourse/component-managers/glimmer",function(){return(0,i.A)(n(51656))}),r("discourse/services/dialog",function(){return(0,i.A)(n(25507))}),r("discourse/initializers/app-version",function(){return(0,i.A)(n(86869))}),r("discourse/services/resize-observer",function(){return(0,i.A)(n(74655))}),r("discourse/lib/d-menu-instance",function(){return(0,i.A)(n(12023))}),r("discourse/lib/d-tooltip-instance",function(){return(0,i.A)(n(35453))}),r("discourse/services/internal-tooltip",function(){return(0,i.A)(n(10953))}),r("discourse/services/menu",function(){return(0,i.A)(n(57501))}),r("discourse/services/toasts",function(){return(0,i.A)(n(98554))}),r("discourse/services/tooltip",function(){return(0,i.A)(n(51407))}),r("discourse/components/about-page-user",function(){return(0,i.A)(n(22694))}),r("discourse/components/about-page-users",function(){return(0,i.A)(n(32429))}),r("discourse/components/about-page",function(){return(0,i.A)(n(18080))}),r("discourse/components/ace-editor",function(){return(0,i.A)(n(25852))}),r("discourse/components/actions-summary",function(){return(0,i.A)(n(57969))}),r("discourse/components/activation-controls",function(){return(0,i.A)(n(62034))}),r("discourse/components/activation-email-form",function(){return(0,i.A)(n(16513))}),r("discourse/components/add-category-tag-classes",function(){return(0,i.A)(n(54213))}),r("discourse/components/add-topic-status-classes",function(){return(0,i.A)(n(63476))}),r("discourse/components/admin-post-menu",function(){return(0,i.A)(n(60783))}),r("discourse/components/anonymous-topic-footer-buttons",function(){return(0,i.A)(n(23605))}),r("discourse/components/auth-token-dropdown",function(){return(0,i.A)(n(95955))}),r("discourse/components/avatar-flair",function(){return(0,i.A)(n(47253))}),r("discourse/components/avatar-uploader",function(){return(0,i.A)(n(3661))}),r("discourse/components/back-button",function(){return(0,i.A)(n(66557))}),r("discourse/components/backup-codes",function(){return(0,i.A)(n(31330))}),r("discourse/components/badge-button",function(){return(0,i.A)(n(78141))}),r("discourse/components/badge-card",function(){return(0,i.A)(n(64871))}),r("discourse/components/badge-title",function(){return(0,i.A)(n(19908))}),r("discourse/components/basic-topic-list",function(){return(0,i.A)(n(26647))}),r("discourse/components/bookmark-actions-dropdown",function(){return(0,i.A)(n(95511))}),r("discourse/components/bookmark-icon",function(){return(0,i.A)(n(48049))}),r("discourse/components/bookmark-list",function(){return(0,i.A)(n(53809))}),r("discourse/components/bookmark-menu",function(){return(0,i.A)(n(19015))}),r("discourse/components/bootstrap-mode-notice",function(){return(0,i.A)(n(78054))}),r("discourse/components/bread-crumbs",function(){return(0,i.A)(n(9832))}),r("discourse/components/bulk-actions/append-tags",function(){return(0,i.A)(n(63257))}),r("discourse/components/bulk-actions/change-category",function(){return(0,i.A)(n(50893))}),r("discourse/components/bulk-actions/change-tags",function(){return(0,i.A)(n(72309))}),r("discourse/components/bulk-actions/notification-level",function(){return(0,i.A)(n(39580))}),r("discourse/components/bulk-group-member-dropdown",function(){return(0,i.A)(n(85320))}),r("discourse/components/bulk-select-toggle",function(){return(0,i.A)(n(55341))}),r("discourse/components/bulk-select-topics-dropdown",function(){return(0,i.A)(n(3791))}),r("discourse/components/calendar-date-time-input",function(){return(0,i.A)(n(34258))}),r("discourse/components/card-container",function(){return(0,i.A)(n(14307))}),r("discourse/components/card-contents-base",function(){return(0,i.A)(n(82048))}),r("discourse/components/categories-and-latest-topics",function(){return(0,i.A)(n(80515))}),r("discourse/components/categories-and-top-topics",function(){return(0,i.A)(n(41077))}),r("discourse/components/categories-boxes-topic",function(){return(0,i.A)(n(7657))}),r("discourse/components/categories-boxes-with-topics",function(){return(0,i.A)(n(10311))}),r("discourse/components/categories-boxes",function(){return(0,i.A)(n(6410))}),r("discourse/components/categories-only",function(){return(0,i.A)(n(3113))}),r("discourse/components/categories-topic-list",function(){return(0,i.A)(n(5896))}),r("discourse/components/categories-with-featured-topics",function(){return(0,i.A)(n(29764))}),r("discourse/components/category-list-item",function(){return(0,i.A)(n(17870))}),r("discourse/components/category-logo",function(){return(0,i.A)(n(81047))}),r("discourse/components/category-name-fields",function(){return(0,i.A)(n(4200))}),r("discourse/components/category-notifications-tracking",function(){return(0,i.A)(n(24326))}),r("discourse/components/category-permission-row",function(){return(0,i.A)(n(12246))}),r("discourse/components/category-read-only-banner",function(){return(0,i.A)(n(852))}),r("discourse/components/category-title-before",function(){return(0,i.A)(n(60393))}),r("discourse/components/category-title-link",function(){return(0,i.A)(n(21189))}),r("discourse/components/category-unread",function(){return(0,i.A)(n(53130))}),r("discourse/components/cdn-img",function(){return(0,i.A)(n(60362))}),r("discourse/components/char-counter",function(){return(0,i.A)(n(9968))}),r("discourse/components/choose-message",function(){return(0,i.A)(n(15004))}),r("discourse/components/choose-topic",function(){return(0,i.A)(n(5778))}),r("discourse/components/color-picker-choice",function(){return(0,i.A)(n(4852))}),r("discourse/components/color-picker",function(){return(0,i.A)(n(96431))}),r("discourse/components/composer-action-title",function(){return(0,i.A)(n(4208))}),r("discourse/components/composer-body",function(){return(0,i.A)(n(42446))}),r("discourse/components/composer-container",function(){return(0,i.A)(n(80568))}),r("discourse/components/composer-editor",function(){return(0,i.A)(n(31753))}),r("discourse/components/composer-fullscreen-prompt",function(){return(0,i.A)(n(47849))}),r("discourse/components/composer-message",function(){return(0,i.A)(n(78955))}),r("discourse/components/composer-messages",function(){return(0,i.A)(n(56199))}),r("discourse/components/composer-save-button",function(){return(0,i.A)(n(65916))}),r("discourse/components/composer-tip-close-button",function(){return(0,i.A)(n(83343))}),r("discourse/components/composer-title",function(){return(0,i.A)(n(22317))}),r("discourse/components/composer-toggles",function(){return(0,i.A)(n(92175))}),r("discourse/components/composer-user-selector",function(){return(0,i.A)(n(44001))}),r("discourse/components/composer/textarea-editor",function(){return(0,i.A)(n(38166))}),r("discourse/components/conditional-in-element",function(){return(0,i.A)(n(72713))}),r("discourse/components/conditional-loading-section",function(){return(0,i.A)(n(35384))}),r("discourse/components/conditional-loading-spinner",function(){return(0,i.A)(n(59602))}),r("discourse/components/connector-container",function(){return(0,i.A)(n(54810))}),r("discourse/components/cook-text",function(){return(0,i.A)(n(15219))}),r("discourse/components/copy-button",function(){return(0,i.A)(n(8650))}),r("discourse/components/count-i18n",function(){return(0,i.A)(n(60289))}),r("discourse/components/create-invite-uploader",function(){return(0,i.A)(n(95101))}),r("discourse/components/create-topic-button",function(){return(0,i.A)(n(19799))}),r("discourse/components/custom-html",function(){return(0,i.A)(n(40780))}),r("discourse/components/d-breadcrumbs-container",function(){return(0,i.A)(n(37254))}),r("discourse/components/d-breadcrumbs-item",function(){return(0,i.A)(n(67774))}),r("discourse/components/d-button",function(){return(0,i.A)(n(92976))}),r("discourse/components/d-document",function(){return(0,i.A)(n(88481))}),r("discourse/components/d-editor",function(){return(0,i.A)(n(85984))}),r("discourse/components/d-lightbox",function(){return(0,i.A)(n(61684))}),r("discourse/components/d-lightbox/backdrop",function(){return(0,i.A)(n(95265))}),r("discourse/components/d-lightbox/body",function(){return(0,i.A)(n(17781))}),r("discourse/components/d-lightbox/carousel",function(){return(0,i.A)(n(74624))}),r("discourse/components/d-lightbox/footer",function(){return(0,i.A)(n(65371))}),r("discourse/components/d-lightbox/header",function(){return(0,i.A)(n(72855))}),r("discourse/components/d-lightbox/screen-reader-announcer",function(){return(0,i.A)(n(36692))}),r("discourse/components/d-modal-cancel",function(){return(0,i.A)(n(48491))}),r("discourse/components/d-modal",function(){return(0,i.A)(n(72491))}),r("discourse/components/d-navigation-item",function(){return(0,i.A)(n(54162))}),r("discourse/components/d-navigation",function(){return(0,i.A)(n(35590))}),r("discourse/components/d-page-action-button",function(){return(0,i.A)(n(86283))}),r("discourse/components/d-page-header",function(){return(0,i.A)(n(41345))}),r("discourse/components/d-page-subheader",function(){return(0,i.A)(n(61253))}),r("discourse/components/d-section",function(){return(0,i.A)(n(77825))}),r("discourse/components/d-select",function(){return(0,i.A)(n(36992))}),r("discourse/components/d-stat-tiles",function(){return(0,i.A)(n(82802))}),r("discourse/components/d-styles",function(){return(0,i.A)(n(34694))}),r("discourse/components/d-textarea",function(){return(0,i.A)(n(69390))}),r("discourse/components/d-toggle-switch",function(){return(0,i.A)(n(75433))}),r("discourse/components/d-virtual-height",function(){return(0,i.A)(n(52297))}),r("discourse/components/date-input",function(){return(0,i.A)(n(31820))}),r("discourse/components/date-picker-future",function(){return(0,i.A)(n(21448))}),r("discourse/components/date-picker-past",function(){return(0,i.A)(n(39535))}),r("discourse/components/date-picker",function(){return(0,i.A)(n(41844))}),r("discourse/components/date-time-input-range",function(){return(0,i.A)(n(85526))}),r("discourse/components/date-time-input",function(){return(0,i.A)(n(25486))}),r("discourse/components/deferred-render",function(){return(0,i.A)(n(49577))}),r("discourse/components/desktop-notification-config",function(){return(0,i.A)(n(71230))}),r("discourse/components/dialog-messages/confirm-session",function(){return(0,i.A)(n(86170))}),r("discourse/components/dialog-messages/group-delete",function(){return(0,i.A)(n(68166))}),r("discourse/components/dialog-messages/second-factor-confirm-phrase",function(){return(0,i.A)(n(37159))}),r("discourse/components/directory-item-user-field-value",function(){return(0,i.A)(n(30901))}),r("discourse/components/directory-item",function(){return(0,i.A)(n(56332))}),r("discourse/components/directory-table",function(){return(0,i.A)(n(56123))}),r("discourse/components/discourse-banner",function(){return(0,i.A)(n(62695))}),r("discourse/components/discourse-linked-text",function(){return(0,i.A)(n(82896))}),r("discourse/components/discourse-root",function(){return(0,i.A)(n(86179))}),r("discourse/components/discourse-tag-bound",function(){return(0,i.A)(n(2123))}),r("discourse/components/discourse-topic",function(){return(0,i.A)(n(59944))}),r("discourse/components/discovery-topics-list",function(){return(0,i.A)(n(55143))}),r("discourse/components/discovery/categories-display",function(){return(0,i.A)(n(98807))}),r("discourse/components/discovery/filter-navigation",function(){return(0,i.A)(n(46414))}),r("discourse/components/discovery/layout",function(){return(0,i.A)(n(42048))}),r("discourse/components/discovery/navigation",function(){return(0,i.A)(n(60593))}),r("discourse/components/discovery/topics",function(){return(0,i.A)(n(57638))}),r("discourse/components/dropdown-menu",function(){return(0,i.A)(n(85052))}),r("discourse/components/edit-category-general",function(){return(0,i.A)(n(74685))}),r("discourse/components/edit-category-images",function(){return(0,i.A)(n(96945))}),r("discourse/components/edit-category-panel",function(){return(0,i.A)(n(87220))}),r("discourse/components/edit-category-security",function(){return(0,i.A)(n(56418))}),r("discourse/components/edit-category-settings",function(){return(0,i.A)(n(55934))}),r("discourse/components/edit-category-tab",function(){return(0,i.A)(n(74024))}),r("discourse/components/edit-category-tags",function(){return(0,i.A)(n(35882))}),r("discourse/components/edit-category-topic-template",function(){return(0,i.A)(n(70389))}),r("discourse/components/edit-topic-timer-form",function(){return(0,i.A)(n(1874))}),r("discourse/components/email-dropdown",function(){return(0,i.A)(n(63585))}),r("discourse/components/emoji-group-buttons",function(){return(0,i.A)(n(35380))}),r("discourse/components/emoji-group-sections",function(){return(0,i.A)(n(17421))}),r("discourse/components/emoji-picker",function(){return(0,i.A)(n(63334))}),r("discourse/components/empty-state",function(){return(0,i.A)(n(7306))}),r("discourse/components/expand-post",function(){return(0,i.A)(n(31914))}),r("discourse/components/expanding-text-area",function(){return(0,i.A)(n(48075))}),r("discourse/components/fast-edit",function(){return(0,i.A)(n(27806))}),r("discourse/components/featured-topic",function(){return(0,i.A)(n(59920))}),r("discourse/components/flag-action-type",function(){return(0,i.A)(n(27807))}),r("discourse/components/flag-selection",function(){return(0,i.A)(n(20915))}),r("discourse/components/flash-message",function(){return(0,i.A)(n(89011))}),r("discourse/components/flat-button",function(){return(0,i.A)(n(23405))}),r("discourse/components/footer-message",function(){return(0,i.A)(n(26817))}),r("discourse/components/footer-nav",function(){return(0,i.A)(n(30723))}),r("discourse/components/form-template-field/checkbox",function(){return(0,i.A)(n(96984))}),r("discourse/components/form-template-field/dropdown",function(){return(0,i.A)(n(53773))}),r("discourse/components/form-template-field/input",function(){return(0,i.A)(n(55446))}),r("discourse/components/form-template-field/multi-select",function(){return(0,i.A)(n(49420))}),r("discourse/components/form-template-field/textarea",function(){return(0,i.A)(n(62746))}),r("discourse/components/form-template-field/upload",function(){return(0,i.A)(n(55693))}),r("discourse/components/form-template-field/wrapper",function(){return(0,i.A)(n(32277))}),r("discourse/components/form",function(){return(0,i.A)(n(7665))}),r("discourse/components/fullname-input",function(){return(0,i.A)(n(66724))}),r("discourse/components/future-date-input",function(){return(0,i.A)(n(8992))}),r("discourse/components/generated-invite-link",function(){return(0,i.A)(n(65751))}),r("discourse/components/glimmer-component-with-deprecated-parent-view",function(){return(0,i.A)(n(87338))}),r("discourse/components/glimmer-site-header",function(){return(0,i.A)(n(27138))}),r("discourse/components/global-notice",function(){return(0,i.A)(n(95709))}),r("discourse/components/google-icon",function(){return(0,i.A)(n(86643))}),r("discourse/components/google-search",function(){return(0,i.A)(n(11197))}),r("discourse/components/group-activity-filter",function(){return(0,i.A)(n(359))}),r("discourse/components/group-card-contents",function(){return(0,i.A)(n(59914))}),r("discourse/components/group-flair-inputs",function(){return(0,i.A)(n(19926))}),r("discourse/components/group-imap-email-settings",function(){return(0,i.A)(n(3723))}),r("discourse/components/group-manage-email-settings",function(){return(0,i.A)(n(66734))}),r("discourse/components/group-manage-logs-filter",function(){return(0,i.A)(n(74811))}),r("discourse/components/group-manage-logs-row",function(){return(0,i.A)(n(3026))}),r("discourse/components/group-manage-save-button",function(){return(0,i.A)(n(58360))}),r("discourse/components/group-member-dropdown",function(){return(0,i.A)(n(19125))}),r("discourse/components/group-member",function(){return(0,i.A)(n(88363))}),r("discourse/components/group-membership-button",function(){return(0,i.A)(n(80322))}),r("discourse/components/group-navigation",function(){return(0,i.A)(n(85223))}),r("discourse/components/group-notifications-tracking",function(){return(0,i.A)(n(439))}),r("discourse/components/group-post",function(){return(0,i.A)(n(1741))}),r("discourse/components/group-selector",function(){return(0,i.A)(n(738))}),r("discourse/components/group-smtp-email-settings",function(){return(0,i.A)(n(94316))}),r("discourse/components/groups-form-interaction-fields",function(){return(0,i.A)(n(27308))}),r("discourse/components/groups-form-membership-fields",function(){return(0,i.A)(n(59307))}),r("discourse/components/groups-form-profile-fields",function(){return(0,i.A)(n(58884))}),r("discourse/components/groups-info",function(){return(0,i.A)(n(35472))}),r("discourse/components/header-extra-info",function(){return(0,i.A)(n(95706))}),r("discourse/components/header",function(){return(0,i.A)(n(40646))}),r("discourse/components/header/auth-buttons",function(){return(0,i.A)(n(97679))}),r("discourse/components/header/contents",function(){return(0,i.A)(n(49707))}),r("discourse/components/header/dropdown",function(){return(0,i.A)(n(99452))}),r("discourse/components/header/hamburger-dropdown-wrapper",function(){return(0,i.A)(n(99068))}),r("discourse/components/header/home-logo-contents",function(){return(0,i.A)(n(21199))}),r("discourse/components/header/home-logo",function(){return(0,i.A)(n(34744))}),r("discourse/components/header/icons",function(){return(0,i.A)(n(33935))}),r("discourse/components/header/logo",function(){return(0,i.A)(n(33130))}),r("discourse/components/header/search-menu-wrapper",function(){return(0,i.A)(n(39823))}),r("discourse/components/header/sidebar-toggle",function(){return(0,i.A)(n(88374))}),r("discourse/components/header/topic/featured-link",function(){return(0,i.A)(n(61176))}),r("discourse/components/header/topic/info",function(){return(0,i.A)(n(29885))}),r("discourse/components/header/topic/participant",function(){return(0,i.A)(n(36700))}),r("discourse/components/header/topic/status",function(){return(0,i.A)(n(81587))}),r("discourse/components/header/user-dropdown",function(){return(0,i.A)(n(34250))}),r("discourse/components/header/user-dropdown/notifications",function(){return(0,i.A)(n(92121))}),r("discourse/components/header/user-dropdown/user-status-bubble",function(){return(0,i.A)(n(76356))}),r("discourse/components/header/user-menu-wrapper",function(){return(0,i.A)(n(18286))}),r("discourse/components/highlight-search",function(){return(0,i.A)(n(80956))}),r("discourse/components/honeypot-input",function(){return(0,i.A)(n(46340))}),r("discourse/components/horizontal-overflow-nav",function(){return(0,i.A)(n(88572))}),r("discourse/components/html-with-links",function(){return(0,i.A)(n(50591))}),r("discourse/components/iframed-html",function(){return(0,i.A)(n(11889))}),r("discourse/components/ignored-user-list-item",function(){return(0,i.A)(n(82049))}),r("discourse/components/ignored-user-list",function(){return(0,i.A)(n(93346))}),r("discourse/components/input-tip",function(){return(0,i.A)(n(79683))}),r("discourse/components/invite-panel",function(){return(0,i.A)(n(29260))}),r("discourse/components/latest-topic-list-item",function(){return(0,i.A)(n(59390))}),r("discourse/components/legacy-about-page-users",function(){return(0,i.A)(n(89975))}),r("discourse/components/light-dark-img",function(){return(0,i.A)(n(53898))}),r("discourse/components/link-to-input",function(){return(0,i.A)(n(5833))}),r("discourse/components/links-redirect",function(){return(0,i.A)(n(82219))}),r("discourse/components/load-more",function(){return(0,i.A)(n(90265))}),r("discourse/components/loading-slider-fallback-spinner",function(){return(0,i.A)(n(79040))}),r("discourse/components/local-login-form",function(){return(0,i.A)(n(15817))}),r("discourse/components/login-buttons",function(){return(0,i.A)(n(38801))}),r("discourse/components/login-page-cta",function(){return(0,i.A)(n(61891))}),r("discourse/components/menu-panel",function(){return(0,i.A)(n(46749))}),r("discourse/components/mobile-category-topic",function(){return(0,i.A)(n(81100))}),r("discourse/components/mobile-nav",function(){return(0,i.A)(n(9759))}),r("discourse/components/modal-container",function(){return(0,i.A)(n(25928))}),r("discourse/components/modal/activation-edit",function(){return(0,i.A)(n(88754))}),r("discourse/components/modal/activation-resent",function(){return(0,i.A)(n(92e3))}),r("discourse/components/modal/add-pm-participants",function(){return(0,i.A)(n(1349))}),r("discourse/components/modal/associate-account-confirm",function(){return(0,i.A)(n(87603))}),r("discourse/components/modal/auth-token",function(){return(0,i.A)(n(95694))}),r("discourse/components/modal/avatar-selector",function(){return(0,i.A)(n(54130))}),r("discourse/components/modal/bookmark",function(){return(0,i.A)(n(18430))}),r("discourse/components/modal/bulk-topic-actions",function(){return(0,i.A)(n(41069))}),r("discourse/components/modal/change-owner",function(){return(0,i.A)(n(2995))}),r("discourse/components/modal/change-post-notice",function(){return(0,i.A)(n(41919))}),r("discourse/components/modal/change-timestamp",function(){return(0,i.A)(n(70774))}),r("discourse/components/modal/convert-to-public-topic",function(){return(0,i.A)(n(29978))}),r("discourse/components/modal/create-account",function(){return(0,i.A)(n(45744))}),r("discourse/components/modal/create-invite-bulk",function(){return(0,i.A)(n(71370))}),r("discourse/components/modal/create-invite",function(){return(0,i.A)(n(27659))}),r("discourse/components/modal/customize-form-template-view",function(){return(0,i.A)(n(8695))}),r("discourse/components/modal/delete-themes-confirm",function(){return(0,i.A)(n(28298))}),r("discourse/components/modal/delete-topic-confirm",function(){return(0,i.A)(n(38111))}),r("discourse/components/modal/delete-topic-disallowed",function(){return(0,i.A)(n(68196))}),r("discourse/components/modal/discard-draft",function(){return(0,i.A)(n(85913))}),r("discourse/components/modal/dismiss-new",function(){return(0,i.A)(n(78662))}),r("discourse/components/modal/dismiss-notification-confirmation",function(){return(0,i.A)(n(99208))}),r("discourse/components/modal/dismiss-read",function(){return(0,i.A)(n(19362))}),r("discourse/components/modal/do-not-disturb",function(){return(0,i.A)(n(59202))}),r("discourse/components/modal/download-calendar",function(){return(0,i.A)(n(19301))}),r("discourse/components/modal/edit-slow-mode",function(){return(0,i.A)(n(55540))}),r("discourse/components/modal/edit-topic-timer",function(){return(0,i.A)(n(37436))}),r("discourse/components/modal/edit-user-directory-columns",function(){return(0,i.A)(n(6285))}),r("discourse/components/modal/explain-reviewable",function(){return(0,i.A)(n(17533))}),r("discourse/components/modal/fast-edit",function(){return(0,i.A)(n(72842))}),r("discourse/components/modal/feature-topic-on-profile",function(){return(0,i.A)(n(74298))}),r("discourse/components/modal/feature-topic",function(){return(0,i.A)(n(65806))}),r("discourse/components/modal/flag",function(){return(0,i.A)(n(30884))}),r("discourse/components/modal/forgot-password",function(){return(0,i.A)(n(39203))}),r("discourse/components/modal/form-template-form-preview",function(){return(0,i.A)(n(1399))}),r("discourse/components/modal/fullscreen-code",function(){return(0,i.A)(n(8304))}),r("discourse/components/modal/fullscreen-table",function(){return(0,i.A)(n(18469))}),r("discourse/components/modal/grant-badge",function(){return(0,i.A)(n(63009))}),r("discourse/components/modal/group-add-members",function(){return(0,i.A)(n(87766))}),r("discourse/components/modal/group-default-notifications",function(){return(0,i.A)(n(19678))}),r("discourse/components/modal/history",function(){return(0,i.A)(n(1177))}),r("discourse/components/modal/history/revision",function(){return(0,i.A)(n(16396))}),r("discourse/components/modal/history/revisions",function(){return(0,i.A)(n(26511))}),r("discourse/components/modal/history/topic-footer",function(){return(0,i.A)(n(86185))}),r("discourse/components/modal/ignore-duration-with-username",function(){return(0,i.A)(n(67883))}),r("discourse/components/modal/insert-hyperlink",function(){return(0,i.A)(n(59731))}),r("discourse/components/modal/json-schema-editor",function(){return(0,i.A)(n(97729))}),r("discourse/components/modal/jump-to-post",function(){return(0,i.A)(n(96350))}),r("discourse/components/modal/keyboard-shortcuts-help",function(){return(0,i.A)(n(3924))}),r("discourse/components/modal/login",function(){return(0,i.A)(n(7607))}),r("discourse/components/modal/move-to-topic",function(){return(0,i.A)(n(71020))}),r("discourse/components/modal/not-activated",function(){return(0,i.A)(n(29296))}),r("discourse/components/modal/post-enqueued",function(){return(0,i.A)(n(70854))}),r("discourse/components/modal/publish-page",function(){return(0,i.A)(n(48183))}),r("discourse/components/modal/raw-email",function(){return(0,i.A)(n(48945))}),r("discourse/components/modal/reject-reason-reviewable",function(){return(0,i.A)(n(69553))}),r("discourse/components/modal/reorder-categories",function(){return(0,i.A)(n(35525))}),r("discourse/components/modal/request-group-membership-form",function(){return(0,i.A)(n(61826))}),r("discourse/components/modal/revise-and-reject-post-reviewable",function(){return(0,i.A)(n(54355))}),r("discourse/components/modal/second-factor-add-security-key",function(){return(0,i.A)(n(31544))}),r("discourse/components/modal/second-factor-add-totp",function(){return(0,i.A)(n(4888))}),r("discourse/components/modal/second-factor-backup-edit",function(){return(0,i.A)(n(98039))}),r("discourse/components/modal/second-factor-edit-security-key",function(){return(0,i.A)(n(34428))}),r("discourse/components/modal/second-factor-edit",function(){return(0,i.A)(n(26418))}),r("discourse/components/modal/share-topic",function(){return(0,i.A)(n(33462))}),r("discourse/components/modal/sidebar-section-form",function(){return(0,i.A)(n(85796))}),r("discourse/components/modal/spreadsheet-editor",function(){return(0,i.A)(n(91825))}),r("discourse/components/modal/tag-upload",function(){return(0,i.A)(n(9773))}),r("discourse/components/modal/user-status",function(){return(0,i.A)(n(13157))}),r("discourse/components/more-topics",function(){return(0,i.A)(n(80519))}),r("discourse/components/more-topics/browse-more",function(){return(0,i.A)(n(12060))}),r("discourse/components/mount-widget",function(){return(0,i.A)(n(25710))}),r("discourse/components/nav-item",function(){return(0,i.A)(n(27164))}),r("discourse/components/navigation-bar",function(){return(0,i.A)(n(66405))}),r("discourse/components/navigation-item",function(){return(0,i.A)(n(55576))}),r("discourse/components/new-list-header-controls-wrapper",function(){return(0,i.A)(n(13571))}),r("discourse/components/notification-consent-banner",function(){return(0,i.A)(n(99898))}),r("discourse/components/notifications-tracking",function(){return(0,i.A)(n(49409))}),r("discourse/components/number-field",function(){return(0,i.A)(n(4087))}),r("discourse/components/offline-indicator",function(){return(0,i.A)(n(75400))}),r("discourse/components/page-loading-slider",function(){return(0,i.A)(n(18111))}),r("discourse/components/parent-category-row",function(){return(0,i.A)(n(29593))}),r("discourse/components/passkey-login-button",function(){return(0,i.A)(n(13512))}),r("discourse/components/password-field",function(){return(0,i.A)(n(60615))}),r("discourse/components/pending-post",function(){return(0,i.A)(n(45560))}),r("discourse/components/pick-files-button",function(){return(0,i.A)(n(68322))}),r("discourse/components/plugin-connector",function(){return(0,i.A)(n(35766))}),r("discourse/components/plugin-outlet",function(){return(0,i.A)(n(59874))}),r("discourse/components/popup-input-tip",function(){return(0,i.A)(n(73253))}),r("discourse/components/popup-menu",function(){return(0,i.A)(n(67731))}),r("discourse/components/post-text-selection-toolbar",function(){return(0,i.A)(n(92084))}),r("discourse/components/post-text-selection",function(){return(0,i.A)(n(69586))}),r("discourse/components/post/menu",function(){return(0,i.A)(n(59767))}),r("discourse/components/post/menu/button-config",function(){return(0,i.A)(n(71341))}),r("discourse/components/post/menu/button-wrapper",function(){return(0,i.A)(n(91236))}),r("discourse/components/post/menu/buttons/admin",function(){return(0,i.A)(n(44989))}),r("discourse/components/post/menu/buttons/bookmark",function(){return(0,i.A)(n(95932))}),r("discourse/components/post/menu/buttons/copy-link",function(){return(0,i.A)(n(58322))}),r("discourse/components/post/menu/buttons/delete",function(){return(0,i.A)(n(30359))}),r("discourse/components/post/menu/buttons/edit",function(){return(0,i.A)(n(47004))}),r("discourse/components/post/menu/buttons/flag",function(){return(0,i.A)(n(206))}),r("discourse/components/post/menu/buttons/like",function(){return(0,i.A)(n(80599))}),r("discourse/components/post/menu/buttons/read",function(){return(0,i.A)(n(45372))}),r("discourse/components/post/menu/buttons/replies",function(){return(0,i.A)(n(62346))}),r("discourse/components/post/menu/buttons/reply",function(){return(0,i.A)(n(87878))}),r("discourse/components/post/menu/buttons/share",function(){return(0,i.A)(n(17989))}),r("discourse/components/post/menu/buttons/show-more",function(){return(0,i.A)(n(38459))}),r("discourse/components/powered-by-discourse",function(){return(0,i.A)(n(34077))}),r("discourse/components/preference-checkbox",function(){return(0,i.A)(n(56226))}),r("discourse/components/private-message-glyph",function(){return(0,i.A)(n(79885))}),r("discourse/components/pwa-install-banner",function(){return(0,i.A)(n(99724))}),r("discourse/components/radio-button",function(){return(0,i.A)(n(25581))}),r("discourse/components/related-messages",function(){return(0,i.A)(n(86561))}),r("discourse/components/relative-date",function(){return(0,i.A)(n(32184))}),r("discourse/components/relative-time-picker",function(){return(0,i.A)(n(52320))}),r("discourse/components/render-glimmer-container",function(){return(0,i.A)(n(80535))}),r("discourse/components/responsive-table",function(){return(0,i.A)(n(60195))}),r("discourse/components/reviewable-bundled-action",function(){return(0,i.A)(n(12781))}),r("discourse/components/reviewable-claimed-topic",function(){return(0,i.A)(n(21321))}),r("discourse/components/reviewable-conversation-post",function(){return(0,i.A)(n(28583))}),r("discourse/components/reviewable-created-by-name",function(){return(0,i.A)(n(7976))}),r("discourse/components/reviewable-created-by",function(){return(0,i.A)(n(12217))}),r("discourse/components/reviewable-field-category",function(){return(0,i.A)(n(72584))}),r("discourse/components/reviewable-field-editor",function(){return(0,i.A)(n(21014))}),r("discourse/components/reviewable-field-tags",function(){return(0,i.A)(n(96453))}),r("discourse/components/reviewable-field-text",function(){return(0,i.A)(n(377))}),r("discourse/components/reviewable-field-textarea",function(){return(0,i.A)(n(36076))}),r("discourse/components/reviewable-field",function(){return(0,i.A)(n(23623))}),r("discourse/components/reviewable-flagged-post",function(){return(0,i.A)(n(22792))}),r("discourse/components/reviewable-histories",function(){return(0,i.A)(n(35647))}),r("discourse/components/reviewable-item",function(){return(0,i.A)(n(19821))}),r("discourse/components/reviewable-post-edits",function(){return(0,i.A)(n(7639))}),r("discourse/components/reviewable-post-header",function(){return(0,i.A)(n(91484))}),r("discourse/components/reviewable-post",function(){return(0,i.A)(n(11819))}),r("discourse/components/reviewable-queued-post",function(){return(0,i.A)(n(72642))}),r("discourse/components/reviewable-score",function(){return(0,i.A)(n(90560))}),r("discourse/components/reviewable-scores",function(){return(0,i.A)(n(73806))}),r("discourse/components/reviewable-tags",function(){return(0,i.A)(n(79902))}),r("discourse/components/reviewable-topic-link",function(){return(0,i.A)(n(80751))}),r("discourse/components/reviewable-user",function(){return(0,i.A)(n(63531))}),r("discourse/components/save-controls",function(){return(0,i.A)(n(28180))}),r("discourse/components/score-value",function(){return(0,i.A)(n(90045))}),r("discourse/components/scrolling-post-stream",function(){return(0,i.A)(n(51676))}),r("discourse/components/search-advanced-options",function(){return(0,i.A)(n(55622))}),r("discourse/components/search-menu-panel",function(){return(0,i.A)(n(59990))}),r("discourse/components/search-menu",function(){return(0,i.A)(n(68556))}),r("discourse/components/search-menu/advanced-button",function(){return(0,i.A)(n(99609))}),r("discourse/components/search-menu/browser-search-tip",function(){return(0,i.A)(n(22133))}),r("discourse/components/search-menu/clear-button",function(){return(0,i.A)(n(99107))}),r("discourse/components/search-menu/highlighted-search",function(){return(0,i.A)(n(86153))}),r("discourse/components/search-menu/results",function(){return(0,i.A)(n(6360))}),r("discourse/components/search-menu/results/assistant-item",function(){return(0,i.A)(n(43423))}),r("discourse/components/search-menu/results/assistant",function(){return(0,i.A)(n(81637))}),r("discourse/components/search-menu/results/blurb",function(){return(0,i.A)(n(67205))}),r("discourse/components/search-menu/results/initial-options",function(){return(0,i.A)(n(31265))}),r("discourse/components/search-menu/results/more-link",function(){return(0,i.A)(n(41726))}),r("discourse/components/search-menu/results/random-quick-tip",function(){return(0,i.A)(n(10968))}),r("discourse/components/search-menu/results/recent-searches",function(){return(0,i.A)(n(2495))}),r("discourse/components/search-menu/results/type/category",function(){return(0,i.A)(n(24063))}),r("discourse/components/search-menu/results/type/group",function(){return(0,i.A)(n(23694))}),r("discourse/components/search-menu/results/type/post",function(){return(0,i.A)(n(85409))}),r("discourse/components/search-menu/results/type/tag",function(){return(0,i.A)(n(49927))}),r("discourse/components/search-menu/results/type/topic",function(){return(0,i.A)(n(42536))}),r("discourse/components/search-menu/results/type/user",function(){return(0,i.A)(n(54276))}),r("discourse/components/search-menu/results/types",function(){return(0,i.A)(n(30353))}),r("discourse/components/search-menu/search-term",function(){return(0,i.A)(n(93345))}),r("discourse/components/search-result-entries",function(){return(0,i.A)(n(13685))}),r("discourse/components/search-result-entry",function(){return(0,i.A)(n(17775))}),r("discourse/components/search-text-field",function(){return(0,i.A)(n(42614))}),r("discourse/components/second-factor-form",function(){return(0,i.A)(n(80458))}),r("discourse/components/second-factor-input",function(){return(0,i.A)(n(23162))}),r("discourse/components/security-key-dropdown",function(){return(0,i.A)(n(95625))}),r("discourse/components/security-key-form",function(){return(0,i.A)(n(47118))}),r("discourse/components/selected-posts",function(){return(0,i.A)(n(23335))}),r("discourse/components/share-panel",function(){return(0,i.A)(n(50472))}),r("discourse/components/share-source",function(){return(0,i.A)(n(55260))}),r("discourse/components/shared-draft-controls",function(){return(0,i.A)(n(93945))}),r("discourse/components/sidebar",function(){return(0,i.A)(n(6762))}),r("discourse/components/sidebar/anonymous/categories-section",function(){return(0,i.A)(n(51814))}),r("discourse/components/sidebar/anonymous/custom-sections",function(){return(0,i.A)(n(50236))}),r("discourse/components/sidebar/anonymous/sections",function(){return(0,i.A)(n(94624))}),r("discourse/components/sidebar/anonymous/tags-section",function(){return(0,i.A)(n(58691))}),r("discourse/components/sidebar/api-panels",function(){return(0,i.A)(n(91666))}),r("discourse/components/sidebar/api-section",function(){return(0,i.A)(n(79534))}),r("discourse/components/sidebar/api-sections",function(){return(0,i.A)(n(51013))}),r("discourse/components/sidebar/back-to-forum",function(){return(0,i.A)(n(63111))}),r("discourse/components/sidebar/common/all-categories-section-link",function(){return(0,i.A)(n(45611))}),r("discourse/components/sidebar/common/all-tags-section-link",function(){return(0,i.A)(n(25568))}),r("discourse/components/sidebar/common/categories-section",function(){return(0,i.A)(n(98956))}),r("discourse/components/sidebar/common/custom-section",function(){return(0,i.A)(n(16903))}),r("discourse/components/sidebar/common/custom-sections",function(){return(0,i.A)(n(9330))}),r("discourse/components/sidebar/edit-navigation-menu/categories-modal",function(){return(0,i.A)(n(25760))}),r("discourse/components/sidebar/edit-navigation-menu/modal",function(){return(0,i.A)(n(6407))}),r("discourse/components/sidebar/edit-navigation-menu/tags-modal",function(){return(0,i.A)(n(47793))}),r("discourse/components/sidebar/filter-no-results",function(){return(0,i.A)(n(11341))}),r("discourse/components/sidebar/filter",function(){return(0,i.A)(n(62184))}),r("discourse/components/sidebar/footer",function(){return(0,i.A)(n(75209))}),r("discourse/components/sidebar/hamburger-dropdown",function(){return(0,i.A)(n(7181))}),r("discourse/components/sidebar/more-section-link",function(){return(0,i.A)(n(1662))}),r("discourse/components/sidebar/more-section-links",function(){return(0,i.A)(n(49909))}),r("discourse/components/sidebar/panel-header",function(){return(0,i.A)(n(44018))}),r("discourse/components/sidebar/section-form-link",function(){return(0,i.A)(n(89775))}),r("discourse/components/sidebar/section-header",function(){return(0,i.A)(n(30409))}),r("discourse/components/sidebar/section-link-button",function(){return(0,i.A)(n(58061))}),r("discourse/components/sidebar/section-link-prefix",function(){return(0,i.A)(n(17625))}),r("discourse/components/sidebar/section-link",function(){return(0,i.A)(n(92872))}),r("discourse/components/sidebar/section-message",function(){return(0,i.A)(n(37553))}),r("discourse/components/sidebar/section",function(){return(0,i.A)(n(54247))}),r("discourse/components/sidebar/sections",function(){return(0,i.A)(n(80562))}),r("discourse/components/sidebar/switch-panel-buttons",function(){return(0,i.A)(n(32077))}),r("discourse/components/sidebar/toggle-all-sections",function(){return(0,i.A)(n(87969))}),r("discourse/components/sidebar/user/categories-section",function(){return(0,i.A)(n(93522))}),r("discourse/components/sidebar/user/custom-sections",function(){return(0,i.A)(n(808))}),r("discourse/components/sidebar/user/messages-section",function(){return(0,i.A)(n(14470))}),r("discourse/components/sidebar/user/sections",function(){return(0,i.A)(n(56156))}),r("discourse/components/sidebar/user/tags-section",function(){return(0,i.A)(n(24215))}),r("discourse/components/signup-cta",function(){return(0,i.A)(n(34121))}),r("discourse/components/signup-page-cta",function(){return(0,i.A)(n(58224))}),r("discourse/components/signup-progress-bar",function(){return(0,i.A)(n(20283))}),r("discourse/components/slow-mode-info",function(){return(0,i.A)(n(49326))}),r("discourse/components/small-user-list",function(){return(0,i.A)(n(92907))}),r("discourse/components/software-update-prompt",function(){return(0,i.A)(n(82117))}),r("discourse/components/sub-category-item",function(){return(0,i.A)(n(28892))}),r("discourse/components/sub-category-row",function(){return(0,i.A)(n(61372))}),r("discourse/components/subcategories-with-featured-topics",function(){return(0,i.A)(n(84737))}),r("discourse/components/suggested-topics",function(){return(0,i.A)(n(66221))}),r("discourse/components/table-header-toggle",function(){return(0,i.A)(n(5846))}),r("discourse/components/tag-drop-link",function(){return(0,i.A)(n(98432))}),r("discourse/components/tag-groups-form",function(){return(0,i.A)(n(58595))}),r("discourse/components/tag-info",function(){return(0,i.A)(n(86490))}),r("discourse/components/tag-list",function(){return(0,i.A)(n(16691))}),r("discourse/components/tag-notifications-tracking",function(){return(0,i.A)(n(22518))}),r("discourse/components/tags-admin-dropdown",function(){return(0,i.A)(n(91752))}),r("discourse/components/tap-tile-grid",function(){return(0,i.A)(n(75276))}),r("discourse/components/tap-tile",function(){return(0,i.A)(n(24033))}),r("discourse/components/text-field",function(){return(0,i.A)(n(46213))}),r("discourse/components/time-gap",function(){return(0,i.A)(n(65615))}),r("discourse/components/time-input",function(){return(0,i.A)(n(43666))}),r("discourse/components/time-shortcut-picker",function(){return(0,i.A)(n(17332))}),r("discourse/components/toggle-password-mask",function(){return(0,i.A)(n(93107))}),r("discourse/components/token-based-auth-dropdown",function(){return(0,i.A)(n(25073))}),r("discourse/components/top-period-buttons",function(){return(0,i.A)(n(70816))}),r("discourse/components/topic-admin-menu",function(){return(0,i.A)(n(9164))}),r("discourse/components/topic-category",function(){return(0,i.A)(n(54965))}),r("discourse/components/topic-dismiss-buttons",function(){return(0,i.A)(n(36430))}),r("discourse/components/topic-entrance",function(){return(0,i.A)(n(87472))}),r("discourse/components/topic-footer-buttons",function(){return(0,i.A)(n(58894))}),r("discourse/components/topic-list-item",function(){return(0,i.A)(n(82237))}),r("discourse/components/topic-list",function(){return(0,i.A)(n(99125))}),r("discourse/components/topic-list/action-list",function(){return(0,i.A)(n(81535))}),r("discourse/components/topic-list/featured-topic",function(){return(0,i.A)(n(93220))}),r("discourse/components/topic-list/header",function(){return(0,i.A)(n(90961))}),r("discourse/components/topic-list/header/activity-cell",function(){return(0,i.A)(n(75886))}),r("discourse/components/topic-list/header/bulk-select-cell",function(){return(0,i.A)(n(85438))}),r("discourse/components/topic-list/header/likes-cell",function(){return(0,i.A)(n(99623))}),r("discourse/components/topic-list/header/op-likes-cell",function(){return(0,i.A)(n(36655))}),r("discourse/components/topic-list/header/posters-cell",function(){return(0,i.A)(n(76185))}),r("discourse/components/topic-list/header/replies-cell",function(){return(0,i.A)(n(30383))}),r("discourse/components/topic-list/header/sortable-column",function(){return(0,i.A)(n(70299))}),r("discourse/components/topic-list/header/topic-cell",function(){return(0,i.A)(n(4546))}),r("discourse/components/topic-list/header/views-cell",function(){return(0,i.A)(n(12889))}),r("discourse/components/topic-list/item",function(){return(0,i.A)(n(12167))}),r("discourse/components/topic-list/item/activity-cell",function(){return(0,i.A)(n(13423))}),r("discourse/components/topic-list/item/bulk-select-cell",function(){return(0,i.A)(n(51200))}),r("discourse/components/topic-list/item/likes-cell",function(){return(0,i.A)(n(90841))}),r("discourse/components/topic-list/item/op-likes-cell",function(){return(0,i.A)(n(50097))}),r("discourse/components/topic-list/item/posters-cell",function(){return(0,i.A)(n(56683))}),r("discourse/components/topic-list/item/replies-cell",function(){return(0,i.A)(n(21169))}),r("discourse/components/topic-list/item/topic-cell",function(){return(0,i.A)(n(85956))}),r("discourse/components/topic-list/item/views-cell",function(){return(0,i.A)(n(63855))}),r("discourse/components/topic-list/latest-topic-list-item",function(){return(0,i.A)(n(92572))}),r("discourse/components/topic-list/list",function(){return(0,i.A)(n(59260))}),r("discourse/components/topic-list/new-list-header-controls",function(){return(0,i.A)(n(64602))}),r("discourse/components/topic-list/participant-groups",function(){return(0,i.A)(n(16375))}),r("discourse/components/topic-list/post-count-or-badges",function(){return(0,i.A)(n(74541))}),r("discourse/components/topic-list/topic-bulk-select-dropdown",function(){return(0,i.A)(n(92673))}),r("discourse/components/topic-list/topic-excerpt",function(){return(0,i.A)(n(14657))}),r("discourse/components/topic-list/topic-link",function(){return(0,i.A)(n(62426))}),r("discourse/components/topic-list/unread-indicator",function(){return(0,i.A)(n(88543))}),r("discourse/components/topic-map/index",function(){return(0,i.A)(n(93992))}),r("discourse/components/topic-map/private-message-map",function(){return(0,i.A)(n(99546))}),r("discourse/components/topic-map/topic-map-link",function(){return(0,i.A)(n(25373))}),r("discourse/components/topic-map/topic-map-summary",function(){return(0,i.A)(n(35545))}),r("discourse/components/topic-map/topic-participant",function(){return(0,i.A)(n(62979))}),r("discourse/components/topic-map/topic-participants",function(){return(0,i.A)(n(28902))}),r("discourse/components/topic-map/topic-views-chart",function(){return(0,i.A)(n(53685))}),r("discourse/components/topic-map/topic-views",function(){return(0,i.A)(n(10868))}),r("discourse/components/topic-navigation-popup",function(){return(0,i.A)(n(18504))}),r("discourse/components/topic-navigation",function(){return(0,i.A)(n(95632))}),r("discourse/components/topic-notifications-tracking",function(){return(0,i.A)(n(50843))}),r("discourse/components/topic-post-badges",function(){return(0,i.A)(n(65868))}),r("discourse/components/topic-progress",function(){return(0,i.A)(n(83262))}),r("discourse/components/topic-status",function(){return(0,i.A)(n(59567))}),r("discourse/components/topic-timeline",function(){return(0,i.A)(n(97278))}),r("discourse/components/topic-timeline/back-button",function(){return(0,i.A)(n(17243))}),r("discourse/components/topic-timeline/container",function(){return(0,i.A)(n(54150))}),r("discourse/components/topic-timeline/scroller",function(){return(0,i.A)(n(22227))}),r("discourse/components/topic-timer-info",function(){return(0,i.A)(n(28420))}),r("discourse/components/topic-title",function(){return(0,i.A)(n(96487))}),r("discourse/components/track-selected",function(){return(0,i.A)(n(87564))}),r("discourse/components/two-factor-backup-dropdown",function(){return(0,i.A)(n(91416))}),r("discourse/components/uppy-image-uploader",function(){return(0,i.A)(n(5960))}),r("discourse/components/user-avatar-flair",function(){return(0,i.A)(n(13593))}),r("discourse/components/user-badge",function(){return(0,i.A)(n(2674))}),r("discourse/components/user-card-contents",function(){return(0,i.A)(n(43349))}),r("discourse/components/user-field",function(){return(0,i.A)(n(47929))}),r("discourse/components/user-fields/base",function(){return(0,i.A)(n(55790))}),r("discourse/components/user-fields/confirm",function(){return(0,i.A)(n(80374))}),r("discourse/components/user-fields/dropdown",function(){return(0,i.A)(n(63936))}),r("discourse/components/user-fields/multiselect",function(){return(0,i.A)(n(55812))}),r("discourse/components/user-fields/text",function(){return(0,i.A)(n(98086))}),r("discourse/components/user-flag-percentage",function(){return(0,i.A)(n(91689))}),r("discourse/components/user-info",function(){return(0,i.A)(n(38200))}),r("discourse/components/user-link",function(){return(0,i.A)(n(14541))}),r("discourse/components/user-menu/bookmarks-list-empty-state",function(){return(0,i.A)(n(78332))}),r("discourse/components/user-menu/bookmarks-list",function(){return(0,i.A)(n(54309))}),r("discourse/components/user-menu/icon-avatar",function(){return(0,i.A)(n(70600))}),r("discourse/components/user-menu/items-list-empty-state",function(){return(0,i.A)(n(91595))}),r("discourse/components/user-menu/items-list",function(){return(0,i.A)(n(63283))}),r("discourse/components/user-menu/likes-list-empty-state",function(){return(0,i.A)(n(64926))}),r("discourse/components/user-menu/likes-notifications-list",function(){return(0,i.A)(n(65349))}),r("discourse/components/user-menu/menu-item",function(){return(0,i.A)(n(8451))}),r("discourse/components/user-menu/menu-tab",function(){return(0,i.A)(n(96156))}),r("discourse/components/user-menu/menu",function(){return(0,i.A)(n(95119))}),r("discourse/components/user-menu/messages-list-empty-state",function(){return(0,i.A)(n(69664))}),r("discourse/components/user-menu/messages-list",function(){return(0,i.A)(n(6074))}),r("discourse/components/user-menu/notifications-list-empty-state",function(){return(0,i.A)(n(1036))}),r("discourse/components/user-menu/notifications-list",function(){return(0,i.A)(n(40530))}),r("discourse/components/user-menu/other-notifications-list-empty-state",function(){return(0,i.A)(n(56566))}),r("discourse/components/user-menu/other-notifications-list",function(){return(0,i.A)(n(67015))}),r("discourse/components/user-menu/profile-tab-content",function(){return(0,i.A)(n(2034))}),r("discourse/components/user-menu/replies-notifications-list",function(){return(0,i.A)(n(7917))}),r("discourse/components/user-menu/reviewables-list",function(){return(0,i.A)(n(67985))}),r("discourse/components/user-nav",function(){return(0,i.A)(n(2703))}),r("discourse/components/user-nav/messages-dropdown",function(){return(0,i.A)(n(59345))}),r("discourse/components/user-nav/messages-secondary-nav",function(){return(0,i.A)(n(85864))}),r("discourse/components/user-notification-schedule-day",function(){return(0,i.A)(n(15114))}),r("discourse/components/user-notification-schedule",function(){return(0,i.A)(n(89997))}),r("discourse/components/user-preferences/categories",function(){return(0,i.A)(n(53573))}),r("discourse/components/user-preferences/passkey-options-dropdown",function(){return(0,i.A)(n(53497))}),r("discourse/components/user-preferences/rename-passkey",function(){return(0,i.A)(n(95461))}),r("discourse/components/user-preferences/tags",function(){return(0,i.A)(n(9088))}),r("discourse/components/user-preferences/topic-tracking",function(){return(0,i.A)(n(88150))}),r("discourse/components/user-preferences/user-api-keys",function(){return(0,i.A)(n(2518))}),r("discourse/components/user-preferences/user-passkeys",function(){return(0,i.A)(n(69187))}),r("discourse/components/user-profile-avatar",function(){return(0,i.A)(n(31841))}),r("discourse/components/user-stat",function(){return(0,i.A)(n(23527))}),r("discourse/components/user-status-message",function(){return(0,i.A)(n(61325))}),r("discourse/components/user-status-picker",function(){return(0,i.A)(n(57322))}),r("discourse/components/user-stream-item",function(){return(0,i.A)(n(95646))}),r("discourse/components/user-stream",function(){return(0,i.A)(n(97267))}),r("discourse/components/user-summary-category-search",function(){return(0,i.A)(n(13304))}),r("discourse/components/user-summary-section",function(){return(0,i.A)(n(83727))}),r("discourse/components/user-summary-topic",function(){return(0,i.A)(n(91487))}),r("discourse/components/user-summary-topics-list",function(){return(0,i.A)(n(35788))}),r("discourse/components/user-summary-user",function(){return(0,i.A)(n(6991))}),r("discourse/components/user-summary-users-list",function(){return(0,i.A)(n(417))}),r("discourse/components/user-tip-container",function(){return(0,i.A)(n(65634))}),r("discourse/components/user-tip",function(){return(0,i.A)(n(30280))}),r("discourse/components/username-preference",function(){return(0,i.A)(n(82357))}),r("discourse/components/watch-read",function(){return(0,i.A)(n(14173))}),r("discourse/components/welcome-header",function(){return(0,i.A)(n(88021))}),r("discourse/components/dialog-holder",function(){return(0,i.A)(n(42686))}),r("discourse/components/d-button-tooltip",function(){return(0,i.A)(n(50899))}),r("discourse/components/d-default-toast",function(){return(0,i.A)(n(61254))}),r("discourse/components/d-headless-menu",function(){return(0,i.A)(n(25104))}),r("discourse/components/d-headless-tooltip",function(){return(0,i.A)(n(364))}),r("discourse/components/d-menu",function(){return(0,i.A)(n(79754))}),r("discourse/components/d-menus",function(){return(0,i.A)(n(68121))}),r("discourse/components/d-popover",function(){return(0,i.A)(n(38844))}),r("discourse/components/d-toasts",function(){return(0,i.A)(n(26441))}),r("discourse/components/d-tooltip",function(){return(0,i.A)(n(2982))}),r("discourse/components/d-tooltips",function(){return(0,i.A)(n(55789))}),r("discourse/helpers/age-with-tooltip",function(){return(0,i.A)(n(98358))}),r("discourse/helpers/avatar",function(){return(0,i.A)(n(41087))}),r("discourse/helpers/body-class",function(){return(0,i.A)(n(77315))}),r("discourse/helpers/border-color",function(){return(0,i.A)(n(74766))}),r("discourse/helpers/bound-avatar-template",function(){return(0,i.A)(n(15767))}),r("discourse/helpers/bound-avatar",function(){return(0,i.A)(n(56220))}),r("discourse/helpers/bound-category-link",function(){return(0,i.A)(n(68838))}),r("discourse/helpers/bound-date",function(){return(0,i.A)(n(73093))}),r("discourse/helpers/capitalize-string",function(){return(0,i.A)(n(90924))}),r("discourse/helpers/category-badge",function(){return(0,i.A)(n(5152))}),r("discourse/helpers/category-color-variable",function(){return(0,i.A)(n(15205))}),r("discourse/helpers/category-link",function(){return(0,i.A)(n(12223))}),r("discourse/helpers/category-variables",function(){return(0,i.A)(n(22994))}),r("discourse/helpers/cold-age-class",function(){return(0,i.A)(n(93743))}),r("discourse/helpers/concat-class",function(){return(0,i.A)(n(27147))}),r("discourse/helpers/custom-html",function(){return(0,i.A)(n(97367))}),r("discourse/helpers/dash-if-empty",function(){return(0,i.A)(n(64100))}),r("discourse/helpers/dasherize",function(){return(0,i.A)(n(82083))}),r("discourse/helpers/decorate-username-selector",function(){return(0,i.A)(n(85578))}),r("discourse/helpers/deprecated-outlet-argument",function(){return(0,i.A)(n(96029))}),r("discourse/helpers/dir-span",function(){return(0,i.A)(n(70800))}),r("discourse/helpers/directory-column-is-automatic",function(){return(0,i.A)(n(34209))}),r("discourse/helpers/directory-column-is-user-field",function(){return(0,i.A)(n(40738))}),r("discourse/helpers/directory-item-label",function(){return(0,i.A)(n(13912))}),r("discourse/helpers/directory-item-value",function(){return(0,i.A)(n(19743))}),r("discourse/helpers/directory-table-header-title",function(){return(0,i.A)(n(19193))}),r("discourse/helpers/discourse-tag",function(){return(0,i.A)(n(71540))}),r("discourse/helpers/discourse-tags",function(){return(0,i.A)(n(17307))}),r("discourse/helpers/editable-value",function(){return(0,i.A)(n(47042))}),r("discourse/helpers/element",function(){return(0,i.A)(n(31496))}),r("discourse/helpers/emoji",function(){return(0,i.A)(n(70530))}),r("discourse/helpers/fa-icon-node",function(){return(0,i.A)(n(95038))}),r("discourse/helpers/float",function(){return(0,i.A)(n(98122))}),r("discourse/helpers/format-age",function(){return(0,i.A)(n(58143))}),r("discourse/helpers/format-date",function(){return(0,i.A)(n(25614))}),r("discourse/helpers/format-duration",function(){return(0,i.A)(n(31594))}),r("discourse/helpers/format-username",function(){return(0,i.A)(n(99278))}),r("discourse/helpers/helper-fn",function(){return(0,i.A)(n(90687))}),r("discourse/helpers/hide-application-footer",function(){return(0,i.A)(n(41949))}),r("discourse/helpers/hide-application-header-buttons",function(){return(0,i.A)(n(15611))}),r("discourse/helpers/hide-application-sidebar",function(){return(0,i.A)(n(96652))}),r("discourse/helpers/html-class",function(){return(0,i.A)(n(75718))}),r("discourse/helpers/icon-or-image",function(){return(0,i.A)(n(14749))}),r("discourse/helpers/inline-date",function(){return(0,i.A)(n(68784))}),r("discourse/helpers/loading-spinner",function(){return(0,i.A)(n(70264))}),r("discourse/helpers/node",function(){return(0,i.A)(n(36642))}),r("discourse/helpers/noop",function(){return(0,i.A)(n(9426))}),r("discourse/helpers/number",function(){return(0,i.A)(n(15523))}),r("discourse/helpers/page-reloader",function(){return(0,i.A)(n(72400))}),r("discourse/helpers/period-title",function(){return(0,i.A)(n(62052))}),r("discourse/helpers/plugin-outlet",function(){return(0,i.A)(n(74323))}),r("discourse/helpers/raw-date",function(){return(0,i.A)(n(23139))}),r("discourse/helpers/raw-hash",function(){return(0,i.A)(n(72767))}),r("discourse/helpers/raw-plugin-outlet",function(){return(0,i.A)(n(42308))}),r("discourse/helpers/raw",function(){return(0,i.A)(n(58830))}),r("discourse/helpers/replace-emoji",function(){return(0,i.A)(n(34991))}),r("discourse/helpers/reviewable-history-description",function(){return(0,i.A)(n(36320))}),r("discourse/helpers/reviewable-status",function(){return(0,i.A)(n(97869))}),r("discourse/helpers/route-action",function(){return(0,i.A)(n(40516))}),r("discourse/helpers/share-url",function(){return(0,i.A)(n(61963))}),r("discourse/helpers/shorten-url",function(){return(0,i.A)(n(84557))}),r("discourse/helpers/slice",function(){return(0,i.A)(n(58798))}),r("discourse/helpers/slow-mode",function(){return(0,i.A)(n(63019))}),r("discourse/helpers/theme-i18n",function(){return(0,i.A)(n(14374))}),r("discourse/helpers/theme-prefix",function(){return(0,i.A)(n(44974))}),r("discourse/helpers/theme-setting",function(){return(0,i.A)(n(16268))}),r("discourse/helpers/topic-featured-link",function(){return(0,i.A)(n(38303))}),r("discourse/helpers/topic-link",function(){return(0,i.A)(n(70320))}),r("discourse/helpers/topic-status-icons",function(){return(0,i.A)(n(83189))}),r("discourse/helpers/unique-id",function(){return(0,i.A)(n(14063))}),r("discourse/helpers/user-avatar",function(){return(0,i.A)(n(87239))}),r("discourse/helpers/user-status",function(){return(0,i.A)(n(34376))}),r("discourse/helpers/value-entered",function(){return(0,i.A)(n(50575))}),r("discourse/helpers/with-event-value",function(){return(0,i.A)(n(20171))}),r("discourse/helpers/and",function(){return(0,i.A)(n(25422))}),r("discourse/helpers/eq",function(){return(0,i.A)(n(31369))}),r("discourse/helpers/gt",function(){return(0,i.A)(n(2932))}),r("discourse/helpers/gte",function(){return(0,i.A)(n(59569))}),r("discourse/helpers/includes",function(){return(0,i.A)(n(17666))}),r("discourse/helpers/lt",function(){return(0,i.A)(n(8571))}),r("discourse/helpers/lte",function(){return(0,i.A)(n(61288))}),r("discourse/helpers/not-eq",function(){return(0,i.A)(n(85693))}),r("discourse/helpers/not",function(){return(0,i.A)(n(6214))}),r("discourse/helpers/or",function(){return(0,i.A)(n(74682))}),r("discourse/helpers/app-version",function(){return(0,i.A)(n(81946))}),r("discourse/modifiers/auto-focus",function(){return(0,i.A)(n(59481))}),r("discourse/modifiers/close-on-click-outside",function(){return(0,i.A)(n(71674))}),r("discourse/modifiers/draggable",function(){return(0,i.A)(n(37492))}),r("discourse/modifiers/observe-intersection",function(){return(0,i.A)(n(8381))}),r("discourse/modifiers/sticky-avatars",function(){return(0,i.A)(n(48179))}),r("discourse/modifiers/swipe",function(){return(0,i.A)(n(31009))}),r("discourse/modifiers/trap-tab",function(){return(0,i.A)(n(51126))}),r("discourse/modifiers/did-insert",function(){return(0,i.A)(n(3427))}),r("discourse/modifiers/did-update",function(){return(0,i.A)(n(21703))}),r("discourse/modifiers/will-destroy",function(){return(0,i.A)(n(63061))}),r("discourse/modifiers/on-resize",function(){return(0,i.A)(n(44550))}),r("discourse/templates/about",function(){return(0,i.A)(n(74803))}),r("discourse/controllers/about",function(){return(0,i.A)(n(16069))}),r("discourse/routes/about",function(){return(0,i.A)(n(37768))}),r("discourse/controllers/account-created-edit-email",function(){return(0,i.A)(n(74294))}),r("discourse/routes/account-created-edit-email",function(){return(0,i.A)(n(54569))}),r("discourse/controllers/account-created-index",function(){return(0,i.A)(n(80615))}),r("discourse/routes/account-created-index",function(){return(0,i.A)(n(69062))}),r("discourse/templates/application",function(){return(0,i.A)(n(91586))}),r("discourse/controllers/application",function(){return(0,i.A)(n(3842))}),r("discourse/routes/application",function(){return(0,i.A)(n(80431))}),r("discourse/templates/badges/index",function(){return(0,i.A)(n(7851))}),r("discourse/controllers/badges/index",function(){return(0,i.A)(n(68597))}),r("discourse/templates/badges/show",function(){return(0,i.A)(n(18596))}),r("discourse/controllers/badges/show",function(){return(0,i.A)(n(4968))}),r("discourse/controllers/composer",function(){return(0,i.A)(n(1156))}),r("discourse/templates/composer/dominating-topic",function(){return(0,i.A)(n(23845))}),r("discourse/templates/composer/education",function(){return(0,i.A)(n(44911))}),r("discourse/templates/composer/get-a-room",function(){return(0,i.A)(n(54095))}),r("discourse/templates/composer/group-mentioned",function(){return(0,i.A)(n(1430))}),r("discourse/templates/composer/similar-topics",function(){return(0,i.A)(n(45685))}),r("discourse/templates/confirm-new-email",function(){return(0,i.A)(n(73906))}),r("discourse/controllers/confirm-new-email",function(){return(0,i.A)(n(38738))}),r("discourse/routes/confirm-new-email",function(){return(0,i.A)(n(5875))}),r("discourse/templates/confirm-old-email",function(){return(0,i.A)(n(17811))}),r("discourse/controllers/confirm-old-email",function(){return(0,i.A)(n(49709))}),r("discourse/routes/confirm-old-email",function(){return(0,i.A)(n(77688))}),r("discourse/routes/discovery",function(){return(0,i.A)(n(16411))}),r("discourse/templates/discovery/categories",function(){return(0,i.A)(n(52243))}),r("discourse/controllers/discovery/categories",function(){return(0,i.A)(n(22741))}),r("discourse/templates/discovery/filter",function(){return(0,i.A)(n(22537))}),r("discourse/controllers/discovery/filter",function(){return(0,i.A)(n(33075))}),r("discourse/templates/discovery/list",function(){return(0,i.A)(n(72031))}),r("discourse/controllers/discovery/list",function(){return(0,i.A)(n(15385))}),r("discourse/templates/discovery/custom",function(){return(0,i.A)(n(26902))}),r("discourse/templates/edit-category-tabs",function(){return(0,i.A)(n(28232))}),r("discourse/controllers/edit-category-tabs",function(){return(0,i.A)(n(82207))}),r("discourse/routes/edit-category-tabs",function(){return(0,i.A)(n(55195))}),r("discourse/templates/email-login",function(){return(0,i.A)(n(60784))}),r("discourse/controllers/email-login",function(){return(0,i.A)(n(19772))}),r("discourse/routes/email-login",function(){return(0,i.A)(n(86265))}),r("discourse/templates/exception",function(){return(0,i.A)(n(62879))}),r("discourse/controllers/exception",function(){return(0,i.A)(n(76061))}),r("discourse/routes/exception",function(){return(0,i.A)(n(93816))}),r("discourse/templates/full-page-search",function(){return(0,i.A)(n(87824))}),r("discourse/controllers/full-page-search",function(){return(0,i.A)(n(78872))}),r("discourse/routes/full-page-search",function(){return(0,i.A)(n(92559))}),r("discourse/templates/group-activity-posts",function(){return(0,i.A)(n(7829))}),r("discourse/controllers/group-activity-posts",function(){return(0,i.A)(n(22431))}),r("discourse/routes/group-activity-posts",function(){return(0,i.A)(n(60432))}),r("discourse/templates/group-activity-topics",function(){return(0,i.A)(n(96710))}),r("discourse/controllers/group-activity-topics",function(){return(0,i.A)(n(18930))}),r("discourse/routes/group-activity-topics",function(){return(0,i.A)(n(35107))}),r("discourse/controllers/group-activity",function(){return(0,i.A)(n(32265))}),r("discourse/templates/group-index",function(){return(0,i.A)(n(66546))}),r("discourse/controllers/group-index",function(){return(0,i.A)(n(926))}),r("discourse/routes/group-index",function(){return(0,i.A)(n(28915))}),r("discourse/controllers/group-manage-categories",function(){return(0,i.A)(n(90656))}),r("discourse/routes/group-manage-categories",function(){return(0,i.A)(n(26177))}),r("discourse/controllers/group-manage-logs",function(){return(0,i.A)(n(62851))}),r("discourse/routes/group-manage-logs",function(){return(0,i.A)(n(86542))}),r("discourse/controllers/group-manage-profile",function(){return(0,i.A)(n(60087))}),r("discourse/routes/group-manage-profile",function(){return(0,i.A)(n(63280))}),r("discourse/controllers/group-manage-tags",function(){return(0,i.A)(n(67109))}),r("discourse/routes/group-manage-tags",function(){return(0,i.A)(n(54740))}),r("discourse/controllers/group-manage",function(){return(0,i.A)(n(52487))}),r("discourse/routes/group-manage",function(){return(0,i.A)(n(78532))}),r("discourse/controllers/group-messages",function(){return(0,i.A)(n(32156))}),r("discourse/routes/group-messages",function(){return(0,i.A)(n(57715))}),r("discourse/controllers/group-permissions",function(){return(0,i.A)(n(75522))}),r("discourse/routes/group-permissions",function(){return(0,i.A)(n(90091))}),r("discourse/templates/group-requests",function(){return(0,i.A)(n(76266))}),r("discourse/controllers/group-requests",function(){return(0,i.A)(n(21802))}),r("discourse/routes/group-requests",function(){return(0,i.A)(n(47409))}),r("discourse/templates/group",function(){return(0,i.A)(n(52989))}),r("discourse/controllers/group",function(){return(0,i.A)(n(53455))}),r("discourse/routes/group",function(){return(0,i.A)(n(11326))}),r("discourse/templates/group/activity",function(){return(0,i.A)(n(81705))}),r("discourse/templates/group/manage",function(){return(0,i.A)(n(11747))}),r("discourse/templates/group/manage/categories",function(){return(0,i.A)(n(95100))}),r("discourse/templates/group/manage/email",function(){return(0,i.A)(n(22326))}),r("discourse/templates/group/manage/interaction",function(){return(0,i.A)(n(95202))}),r("discourse/templates/group/manage/logs",function(){return(0,i.A)(n(28329))}),r("discourse/templates/group/manage/membership",function(){return(0,i.A)(n(58896))}),r("discourse/templates/group/manage/profile",function(){return(0,i.A)(n(12001))}),r("discourse/templates/group/manage/tags",function(){return(0,i.A)(n(34475))}),r("discourse/templates/group/messages",function(){return(0,i.A)(n(83390))}),r("discourse/templates/group/permissions",function(){return(0,i.A)(n(37504))}),r("discourse/controllers/groups-index",function(){return(0,i.A)(n(17407))}),r("discourse/routes/groups-index",function(){return(0,i.A)(n(62760))}),r("discourse/controllers/groups-new",function(){return(0,i.A)(n(92965))}),r("discourse/routes/groups-new",function(){return(0,i.A)(n(78594))}),r("discourse/controllers/invites-show",function(){return(0,i.A)(n(41522))}),r("discourse/routes/invites-show",function(){return(0,i.A)(n(669))}),r("discourse/templates/login",function(){return(0,i.A)(n(299))}),r("discourse/controllers/login",function(){return(0,i.A)(n(59601))}),r("discourse/routes/login",function(){return(0,i.A)(n(55556))}),r("discourse/templates/password-reset",function(){return(0,i.A)(n(98099))}),r("discourse/controllers/password-reset",function(){return(0,i.A)(n(17317))}),r("discourse/routes/password-reset",function(){return(0,i.A)(n(33986))}),r("discourse/templates/preferences",function(){return(0,i.A)(n(38910))}),r("discourse/controllers/preferences",function(){return(0,i.A)(n(16378))}),r("discourse/routes/preferences",function(){return(0,i.A)(n(76767))}),r("discourse/templates/preferences/account",function(){return(0,i.A)(n(68822))}),r("discourse/controllers/preferences/account",function(){return(0,i.A)(n(83486))}),r("discourse/controllers/preferences/email",function(){return(0,i.A)(n(53473))}),r("discourse/templates/preferences/emails",function(){return(0,i.A)(n(30192))}),r("discourse/controllers/preferences/emails",function(){return(0,i.A)(n(21556))}),r("discourse/templates/preferences/interface",function(){return(0,i.A)(n(67666))}),r("discourse/controllers/preferences/interface",function(){return(0,i.A)(n(67610))}),r("discourse/templates/preferences/navigation-menu",function(){return(0,i.A)(n(14397))}),r("discourse/controllers/preferences/navigation-menu",function(){return(0,i.A)(n(43223))}),r("discourse/templates/preferences/notifications",function(){return(0,i.A)(n(53823))}),r("discourse/controllers/preferences/notifications",function(){return(0,i.A)(n(31561))}),r("discourse/templates/preferences/profile",function(){return(0,i.A)(n(66996))}),r("discourse/controllers/preferences/profile",function(){return(0,i.A)(n(63980))}),r("discourse/controllers/preferences/second-factor",function(){return(0,i.A)(n(8117))}),r("discourse/templates/preferences/security",function(){return(0,i.A)(n(72969))}),r("discourse/controllers/preferences/security",function(){return(0,i.A)(n(11411))}),r("discourse/templates/preferences/tags",function(){return(0,i.A)(n(42272))}),r("discourse/controllers/preferences/tags",function(){return(0,i.A)(n(53608))}),r("discourse/templates/preferences/tracking",function(){return(0,i.A)(n(63216))}),r("discourse/controllers/preferences/tracking",function(){return(0,i.A)(n(43148))}),r("discourse/templates/preferences/users",function(){return(0,i.A)(n(66323))}),r("discourse/controllers/preferences/users",function(){return(0,i.A)(n(32949))}),r("discourse/templates/preferences/apps",function(){return(0,i.A)(n(57795))}),r("discourse/templates/preferences/categories",function(){return(0,i.A)(n(27791))}),r("discourse/templates/review-index",function(){return(0,i.A)(n(53625))}),r("discourse/controllers/review-index",function(){return(0,i.A)(n(54219))}),r("discourse/routes/review-index",function(){return(0,i.A)(n(82872))}),r("discourse/templates/review-settings",function(){return(0,i.A)(n(37286))}),r("discourse/controllers/review-settings",function(){return(0,i.A)(n(48062))}),r("discourse/routes/review-settings",function(){return(0,i.A)(n(10583))}),r("discourse/templates/second-factor-auth",function(){return(0,i.A)(n(39473))}),r("discourse/controllers/second-factor-auth",function(){return(0,i.A)(n(3483))}),r("discourse/routes/second-factor-auth",function(){return(0,i.A)(n(91012))}),r("discourse/templates/signup",function(){return(0,i.A)(n(6114))}),r("discourse/controllers/signup",function(){return(0,i.A)(n(6398))}),r("discourse/routes/signup",function(){return(0,i.A)(n(31357))}),r("discourse/templates/tag-groups-edit",function(){return(0,i.A)(n(47550))}),r("discourse/controllers/tag-groups-edit",function(){return(0,i.A)(n(16662))}),r("discourse/routes/tag-groups-edit",function(){return(0,i.A)(n(26955))}),r("discourse/templates/tag-groups-new",function(){return(0,i.A)(n(99706))}),r("discourse/controllers/tag-groups-new",function(){return(0,i.A)(n(53718))}),r("discourse/routes/tag-groups-new",function(){return(0,i.A)(n(1313))}),r("discourse/templates/tag-groups",function(){return(0,i.A)(n(7039))}),r("discourse/controllers/tag-groups",function(){return(0,i.A)(n(50265))}),r("discourse/routes/tag-groups",function(){return(0,i.A)(n(46774))}),r("discourse/controllers/tags-index",function(){return(0,i.A)(n(52570))}),r("discourse/routes/tags-index",function(){return(0,i.A)(n(23401))}),r("discourse/controllers/tags-intersection",function(){return(0,i.A)(n(79465))}),r("discourse/routes/tags-intersection",function(){return(0,i.A)(n(88588))}),r("discourse/templates/topic",function(){return(0,i.A)(n(51769))}),r("discourse/controllers/topic",function(){return(0,i.A)(n(86183))}),r("discourse/routes/topic",function(){return(0,i.A)(n(74710))}),r("discourse/controllers/user-activity-bookmarks",function(){return(0,i.A)(n(99327))}),r("discourse/routes/user-activity-bookmarks",function(){return(0,i.A)(n(56106))}),r("discourse/controllers/user-activity",function(){return(0,i.A)(n(68455))}),r("discourse/routes/user-activity",function(){return(0,i.A)(n(69222))}),r("discourse/controllers/user-badges",function(){return(0,i.A)(n(49198))}),r("discourse/routes/user-badges",function(){return(0,i.A)(n(92895))}),r("discourse/templates/user-invited-show",function(){return(0,i.A)(n(51639))}),r("discourse/controllers/user-invited-show",function(){return(0,i.A)(n(40677))}),r("discourse/routes/user-invited-show",function(){return(0,i.A)(n(73528))}),r("discourse/templates/user-invited",function(){return(0,i.A)(n(12101))}),r("discourse/controllers/user-invited",function(){return(0,i.A)(n(4327))}),r("discourse/routes/user-invited",function(){return(0,i.A)(n(44148))}),r("discourse/controllers/user-notifications",function(){return(0,i.A)(n(83792))}),r("discourse/routes/user-notifications",function(){return(0,i.A)(n(1195))}),r("discourse/controllers/user-posts",function(){return(0,i.A)(n(18759))}),r("discourse/templates/user-private-messages-group",function(){return(0,i.A)(n(94042))}),r("discourse/controllers/user-private-messages-group",function(){return(0,i.A)(n(58522))}),r("discourse/routes/user-private-messages-group",function(){return(0,i.A)(n(36591))}),r("discourse/templates/user-private-messages-tags-index",function(){return(0,i.A)(n(62843))}),r("discourse/controllers/user-private-messages-tags-index",function(){return(0,i.A)(n(52501))}),r("discourse/routes/user-private-messages-tags-index",function(){return(0,i.A)(n(45338))}),r("discourse/templates/user-private-messages-tags",function(){return(0,i.A)(n(20264))}),r("discourse/controllers/user-private-messages-tags",function(){return(0,i.A)(n(68964))}),r("discourse/routes/user-private-messages-tags",function(){return(0,i.A)(n(49291))}),r("discourse/templates/user-private-messages-user",function(){return(0,i.A)(n(26506))}),r("discourse/controllers/user-private-messages-user",function(){return(0,i.A)(n(41706))}),r("discourse/routes/user-private-messages-user",function(){return(0,i.A)(n(24177))}),r("discourse/controllers/user-private-messages",function(){return(0,i.A)(n(93172))}),r("discourse/routes/user-private-messages",function(){return(0,i.A)(n(52201))}),r("discourse/controllers/user-summary",function(){return(0,i.A)(n(1740))}),r("discourse/routes/user-summary",function(){return(0,i.A)(n(81175))}),r("discourse/templates/user-topics-list",function(){return(0,i.A)(n(39377))}),r("discourse/controllers/user-topics-list",function(){return(0,i.A)(n(40099))}),r("discourse/templates/user",function(){return(0,i.A)(n(67635))}),r("discourse/controllers/user",function(){return(0,i.A)(n(42558))}),r("discourse/routes/user",function(){return(0,i.A)(n(46174))}),r("discourse/templates/user/activity",function(){return(0,i.A)(n(47007))}),r("discourse/templates/user/badges",function(){return(0,i.A)(n(81152))}),r("discourse/templates/user/bookmarks",function(){return(0,i.A)(n(68201))}),r("discourse/templates/user/messages",function(){return(0,i.A)(n(74108))}),r("discourse/templates/user/notifications-index",function(){return(0,i.A)(n(61685))}),r("discourse/templates/user/notifications",function(){return(0,i.A)(n(90590))}),r("discourse/templates/user/posts",function(){return(0,i.A)(n(72047))}),r("discourse/templates/user/profile-hidden",function(){return(0,i.A)(n(21084))}),r("discourse/templates/user/stream",function(){return(0,i.A)(n(8756))}),r("discourse/templates/user/summary",function(){return(0,i.A)(n(42882))}),r("discourse/templates/users",function(){return(0,i.A)(n(30512))}),r("discourse/controllers/users",function(){return(0,i.A)(n(32740))}),r("discourse/routes/users",function(){return(0,i.A)(n(32917))}),r("discourse/routes/account-created-resent",function(){return(0,i.A)(n(58115))}),r("discourse/templates/account-created",function(){return(0,i.A)(n(70473))}),r("discourse/routes/account-created",function(){return(0,i.A)(n(40535))}),r("discourse/templates/account-created/edit-email",function(){return(0,i.A)(n(3408))}),r("discourse/templates/account-created/index",function(){return(0,i.A)(n(98639))}),r("discourse/templates/account-created/resent",function(){return(0,i.A)(n(44786))}),r("discourse/templates/activate-account",function(){return(0,i.A)(n(98583))}),r("discourse/routes/activate-account",function(){return(0,i.A)(n(52198))}),r("discourse/routes/app-route-map",function(){return(0,i.A)(n(16557))}),r("discourse/routes/associate-account",function(){return(0,i.A)(n(9437))}),r("discourse/routes/badges-index",function(){return(0,i.A)(n(5228))}),r("discourse/routes/badges-show",function(){return(0,i.A)(n(65135))}),r("discourse/routes/build-category-route",function(){return(0,i.A)(n(38770))}),r("discourse/routes/build-group-messages-route",function(){return(0,i.A)(n(14456))}),r("discourse/routes/build-private-messages-group-route",function(){return(0,i.A)(n(51974))}),r("discourse/routes/build-private-messages-route",function(){return(0,i.A)(n(5979))}),r("discourse/routes/build-topic-route",function(){return(0,i.A)(n(76591))}),r("discourse/routes/conduct",function(){return(0,i.A)(n(96697))}),r("discourse/routes/discourse",function(){return(0,i.A)(n(44192))}),r("discourse/routes/discovery-categories",function(){return(0,i.A)(n(36492))}),r("discourse/routes/discovery-filter",function(){return(0,i.A)(n(61206))}),r("discourse/routes/discovery-index",function(){return(0,i.A)(n(37866))}),r("discourse/routes/discovery-subcategories",function(){return(0,i.A)(n(30016))}),r("discourse/routes/edit-category-index",function(){return(0,i.A)(n(8603))}),r("discourse/routes/edit-category",function(){return(0,i.A)(n(78278))}),r("discourse/routes/exception-unknown",function(){return(0,i.A)(n(43007))}),r("discourse/templates/faq",function(){return(0,i.A)(n(36144))}),r("discourse/routes/faq",function(){return(0,i.A)(n(43933))}),r("discourse/routes/forgot-password",function(){return(0,i.A)(n(87542))}),r("discourse/routes/group-activity-index",function(){return(0,i.A)(n(19771))}),r("discourse/routes/group-activity-mentions",function(){return(0,i.A)(n(49008))}),r("discourse/routes/group-manage-email",function(){return(0,i.A)(n(52717))}),r("discourse/routes/group-manage-index",function(){return(0,i.A)(n(64565))}),r("discourse/routes/group-manage-interaction",function(){return(0,i.A)(n(52601))}),r("discourse/routes/group-manage-membership",function(){return(0,i.A)(n(61701))}),r("discourse/routes/group-members",function(){return(0,i.A)(n(14224))}),r("discourse/routes/group-messages-archive",function(){return(0,i.A)(n(1096))}),r("discourse/routes/group-messages-inbox",function(){return(0,i.A)(n(86794))}),r("discourse/routes/group-messages-index",function(){return(0,i.A)(n(99042))}),r("discourse/routes/guidelines",function(){return(0,i.A)(n(41570))}),r("discourse/routes/new-category",function(){return(0,i.A)(n(38396))}),r("discourse/routes/new-invite",function(){return(0,i.A)(n(62561))}),r("discourse/routes/new-message",function(){return(0,i.A)(n(96093))}),r("discourse/routes/new-topic",function(){return(0,i.A)(n(50345))}),r("discourse/routes/post",function(){return(0,i.A)(n(94723))}),r("discourse/routes/preferences-account",function(){return(0,i.A)(n(16429))}),r("discourse/routes/preferences-apps",function(){return(0,i.A)(n(39768))}),r("discourse/templates/preferences-email",function(){return(0,i.A)(n(5533))}),r("discourse/routes/preferences-email",function(){return(0,i.A)(n(99190))}),r("discourse/routes/preferences-emails",function(){return(0,i.A)(n(83146))}),r("discourse/routes/preferences-index",function(){return(0,i.A)(n(64238))}),r("discourse/routes/preferences-interface",function(){return(0,i.A)(n(46289))}),r("discourse/routes/preferences-navigation-menu",function(){return(0,i.A)(n(55832))}),r("discourse/routes/preferences-notifications",function(){return(0,i.A)(n(35482))}),r("discourse/routes/preferences-profile",function(){return(0,i.A)(n(13359))}),r("discourse/templates/preferences-second-factor",function(){return(0,i.A)(n(6257))}),r("discourse/routes/preferences-second-factor",function(){return(0,i.A)(n(75474))}),r("discourse/routes/preferences-security",function(){return(0,i.A)(n(89250))}),r("discourse/routes/preferences-tags",function(){return(0,i.A)(n(80701))}),r("discourse/routes/preferences-tracking",function(){return(0,i.A)(n(48594))}),r("discourse/routes/preferences-users",function(){return(0,i.A)(n(62494))}),r("discourse/templates/privacy",function(){return(0,i.A)(n(29772))}),r("discourse/routes/privacy",function(){return(0,i.A)(n(43509))}),r("discourse/routes/restricted-user",function(){return(0,i.A)(n(41910))}),r("discourse/templates/review-show",function(){return(0,i.A)(n(55662))}),r("discourse/routes/review-show",function(){return(0,i.A)(n(16859))}),r("discourse/templates/review-topics",function(){return(0,i.A)(n(26149))}),r("discourse/routes/review-topics",function(){return(0,i.A)(n(22366))}),r("discourse/templates/review",function(){return(0,i.A)(n(36978))}),r("discourse/routes/review",function(){return(0,i.A)(n(93477))}),r("discourse/routes/rules",function(){return(0,i.A)(n(16782))}),r("discourse/routes/tag-show",function(){return(0,i.A)(n(42627))}),r("discourse/routes/tags-legacy-redirect",function(){return(0,i.A)(n(93691))}),r("discourse/routes/topic-by-slug-or-id",function(){return(0,i.A)(n(59360))}),r("discourse/routes/topic-from-params-near",function(){return(0,i.A)(n(57925))}),r("discourse/routes/topic-from-params",function(){return(0,i.A)(n(72078))}),r("discourse/templates/tos",function(){return(0,i.A)(n(614))}),r("discourse/routes/tos",function(){return(0,i.A)(n(54387))}),r("discourse/templates/unknown",function(){return(0,i.A)(n(818))}),r("discourse/routes/unknown",function(){return(0,i.A)(n(47519))}),r("discourse/routes/user-activity-bookmarks-with-reminders",function(){return(0,i.A)(n(95057))}),r("discourse/routes/user-activity-drafts",function(){return(0,i.A)(n(31919))}),r("discourse/routes/user-activity-index",function(){return(0,i.A)(n(58555))}),r("discourse/routes/user-activity-likes-given",function(){return(0,i.A)(n(66015))}),r("discourse/templates/user-activity-pending",function(){return(0,i.A)(n(29219))}),r("discourse/routes/user-activity-pending",function(){return(0,i.A)(n(1016))}),r("discourse/routes/user-activity-read",function(){return(0,i.A)(n(24339))}),r("discourse/routes/user-activity-replies",function(){return(0,i.A)(n(79879))}),r("discourse/routes/user-activity-stream",function(){return(0,i.A)(n(22639))}),r("discourse/routes/user-activity-topics",function(){return(0,i.A)(n(39395))}),r("discourse/routes/user-deleted-posts",function(){return(0,i.A)(n(18712))}),r("discourse/routes/user-index",function(){return(0,i.A)(n(37107))}),r("discourse/routes/user-invited-index",function(){return(0,i.A)(n(36581))}),r("discourse/routes/user-notifications-edits",function(){return(0,i.A)(n(67779))}),r("discourse/routes/user-notifications-index",function(){return(0,i.A)(n(24506))}),r("discourse/routes/user-notifications-likes-received",function(){return(0,i.A)(n(4900))}),r("discourse/routes/user-notifications-links",function(){return(0,i.A)(n(18835))}),r("discourse/routes/user-notifications-mentions",function(){return(0,i.A)(n(89591))}),r("discourse/routes/user-notifications-responses",function(){return(0,i.A)(n(93394))}),r("discourse/routes/user-private-messages-group-archive",function(){return(0,i.A)(n(94812))}),r("discourse/routes/user-private-messages-group-index",function(){return(0,i.A)(n(78878))}),r("discourse/routes/user-private-messages-group-new",function(){return(0,i.A)(n(96020))}),r("discourse/routes/user-private-messages-group-unread",function(){return(0,i.A)(n(99219))}),r("discourse/routes/user-private-messages-tags-show",function(){return(0,i.A)(n(57129))}),r("discourse/routes/user-private-messages-user-archive",function(){return(0,i.A)(n(34618))}),r("discourse/routes/user-private-messages-user-index",function(){return(0,i.A)(n(25188))}),r("discourse/routes/user-private-messages-user-new",function(){return(0,i.A)(n(11150))}),r("discourse/routes/user-private-messages-user-sent",function(){return(0,i.A)(n(11792))}),r("discourse/routes/user-private-messages-user-unread",function(){return(0,i.A)(n(55417))}),r("discourse/routes/user-private-messages-user-warnings",function(){return(0,i.A)(n(33295))}),r("discourse/routes/user-topic-list",function(){return(0,i.A)(n(44973))}),r("discourse/templates/groups/index",function(){return(0,i.A)(n(55811))}),r("discourse/templates/groups/new",function(){return(0,i.A)(n(56645))}),r("discourse/templates/hide-modal",function(){return(0,i.A)(n(42626))}),r("discourse/templates/invites",function(){return(0,i.A)(n(65510))}),r("discourse/templates/invites/show",function(){return(0,i.A)(n(42136))}),r("discourse/templates/loading",function(){return(0,i.A)(n(12788))}),r("discourse/templates/login-preferences",function(){return(0,i.A)(n(72242))}),r("discourse/templates/selected-posts",function(){return(0,i.A)(n(31247))}),r("discourse/templates/tag-groups-index",function(){return(0,i.A)(n(69752))}),r("discourse/templates/tags",function(){return(0,i.A)(n(4937))}),r("discourse/templates/tags/index",function(){return(0,i.A)(n(47760))}),s._embroiderRouteBundles_=[{names:["wizard","wizard.index","wizard.step"],load:function(){return n.e(91).then(n.bind(n,12091))}}]},22694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(41087),s=n(59621),r=n(56839),o=n(51969),a=n(76417),l=n(82739),u=n(88606);let c=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"vuo5hdSl",block:'[[[1,"\\n "],[10,0],[15,"data-username",[30,1,["username"]]],[14,0,"user-info small"],[12],[1,"\\n "],[10,0],[14,0,"user-image"],[12],[1,"\\n "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[30,1,["username"]]],null]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1]],[["imageSize"],["large"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"user-detail"],[12],[1,"\\n "],[10,0],[14,0,"name-line"],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[30,1,["username"]]],null]],[15,"data-user-card",[30,1,["username"]]],[15,"aria-label",[28,[32,2],["user.profile_possessive"],[["username"],[[30,1,["username"]]]]]],[12],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[28,[32,3],[[30,1,["name"]]],null],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["username"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,"\\n"],[41,[28,[32,3],[[30,1,["name"]]],null],[[[1," "],[1,[30,1,["username"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-user.js",scope:()=>[r.userPath,i.default,o.i18n,s.prioritizeNameInUx],isStrictMode:!0}),(0,u.default)(void 0,"about-page-user:AboutPageUser"))},32429:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(22694),a=n(92976),l=n(51969),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"expanded",[s.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();get users(){let e=this.args.users;return this.showViewMoreButton&&!this.expanded&&(e=e.slice(0,this.args.truncateAt)),e}get showViewMoreButton(){return this.args.truncateAt>0&&this.args.users.length>this.args.truncateAt}toggleExpanded(){this.expanded=!this.expanded}static #n=(()=>dt7948.n(this.prototype,"toggleExpanded",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"JEDXNCIF",block:'[[[1,"\\n "],[10,0],[14,0,"about-page-users-list"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["users"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showViewMoreButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat about-page-users-list__expand-button"]],[["@action","@icon","@translatedLabel"],[[30,0,["toggleExpanded"]],[52,[30,0,["expanded"]],"chevron-up","chevron-down"],[52,[30,0,["expanded"]],[28,[32,2],["about.view_less"],null],[28,[32,2],["about.view_more"],null]]]],null],[1,"\\n"]],[]],null],[1," "]],["user"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-users.js",scope:()=>[o.default,a.default,l.i18n],isStrictMode:!0}),this))()}},18080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAboutPageActivity:()=>_,clearAboutPageActivities:()=>y,default:()=>b});var i=n(37138),s=n(39882),r=n(69836),o=n(54729),a=n(35804),l=n(32429),u=n(59874),c=n(38536),d=n(21237),p=n(29166),h=n(51969),m=n(76417),g=n(82739);let f=[];function _(e,t){f.push({name:e,func:t})}function y(){f.clear()}class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get moderatorsCount(){return this.args.model.moderators.length}get adminsCount(){return this.args.model.admins.length}get stats(){return[{class:"members",icon:"users",text:(0,h.i18n)("about.member_count",{count:this.args.model.stats.users_count,formatted_number:h.default.toNumber(this.args.model.stats.users_count,{precision:0})})},{class:"admins",icon:"shield-halved",text:(0,h.i18n)("about.admin_count",{count:this.adminsCount,formatted_number:h.default.toNumber(this.adminsCount,{precision:0})})},{class:"moderators",icon:"shield-halved",text:(0,h.i18n)("about.moderator_count",{count:this.moderatorsCount,formatted_number:h.default.toNumber(this.moderatorsCount,{precision:0})})},{class:"site-creation-date",icon:"calendar-days",text:this.siteAgeString}]}get siteActivities(){let e=[{icon:"scroll",class:"topics",activityText:(0,h.i18n)("about.activities.topics",{count:this.args.model.stats.topics_7_days,formatted_number:(0,c.number)(this.args.model.stats.topics_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"pencil",class:"posts",activityText:(0,h.i18n)("about.activities.posts",{count:this.args.model.stats.posts_last_day,formatted_number:(0,c.number)(this.args.model.stats.posts_last_day)}),period:(0,h.i18n)("about.activities.periods.today")},{icon:"user-group",class:"active-users",activityText:(0,h.i18n)("about.activities.active_users",{count:this.args.model.stats.active_users_7_days,formatted_number:(0,c.number)(this.args.model.stats.active_users_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"user-plus",class:"sign-ups",activityText:(0,h.i18n)("about.activities.sign_ups",{count:this.args.model.stats.users_7_days,formatted_number:(0,c.number)(this.args.model.stats.users_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")},{icon:"heart",class:"likes",activityText:(0,h.i18n)("about.activities.likes",{count:this.args.model.stats.likes_count,formatted_number:(0,c.number)(this.args.model.stats.likes_count)}),period:(0,h.i18n)("about.activities.periods.all_time")}];return this.displayVisitorStats&&e.splice(2,0,{icon:"user-secret",class:"visitors",activityText:h.default.messageFormat("about.activities.visitors_MF",{total_count:this.args.model.stats.visitors_7_days,eu_count:this.args.model.stats.eu_visitors_7_days,total_formatted_number:(0,c.number)(this.args.model.stats.visitors_7_days),eu_formatted_number:(0,c.number)(this.args.model.stats.eu_visitors_7_days)}),period:(0,h.i18n)("about.activities.periods.last_7_days")}),e.concat(this.siteActivitiesFromPlugins())}get displayVisitorStats(){return this.siteSettings.display_eu_visitor_stats&&"number"==typeof this.args.model.stats.eu_visitors_7_days&&"number"==typeof this.args.model.stats.visitors_7_days}get contactInfo(){let e=(0,p.default)(this.args.model.contact_url||""),t=(0,p.default)(this.args.model.contact_email||"");return e?(0,h.i18n)("about.contact_info",{contact_info:`${e}`}):t?(0,h.i18n)("about.contact_info",{contact_info:`${t}`}):null}get siteAgeString(){let e=new Date(this.args.model.site_creation_date),t=new Date-e;return(t/=2592e6)<1?(0,h.i18n)("about.site_age.less_than_one_month"):t<12?(0,h.i18n)("about.site_age.month",{count:Math.round(t)}):(t/=12,(0,h.i18n)("about.site_age.year",{count:Math.round(t)}))}get trafficInfoFooter(){return h.default.messageFormat("about.traffic_info_footer_MF",{total_visitors:this.args.model.stats.visitors_30_days,eu_visitors:this.args.model.stats.eu_visitors_30_days})}siteActivitiesFromPlugins(){let e=this.args.model.stats,t=Object.keys(e),n=[];for(let{name:i,func:s}of f){let r=!1,o={};for(let n of t){let t=`${i}_`;n.startsWith(t)&&(r=!0,o[n.replace(t,"")]=e[n])}if(!r)continue;let a=s(o);a&&n.push(a)}return n}static #i=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"JqBsTNi+",block:'[[[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,0],[[24,0,"edit-about-page"]],[["@route"],["adminConfig.about"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,2],["about.edit"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"about__header"],[12],[1,"\\n"],[41,[30,1,["banner_image"]],[[[1," "],[10,0],[14,0,"about__banner"],[12],[1,"\\n "],[10,"img"],[14,0,"about__banner-img"],[15,"src",[30,1,["banner_image"]]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"h3"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[10,2],[14,0,"short-description"],[12],[1,[30,1,["description"]]],[13],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-description","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"about__main-content"],[12],[1,"\\n "],[10,0],[14,0,"about__left-side"],[12],[1,"\\n "],[10,0],[14,0,"about__stats"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["stats"]]],null]],null],null,[[[1," "],[10,1],[15,0,[29,["about__stats-item ",[30,2,["class"]]]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,2,["icon"]]],null]],[1,"\\n "],[10,1],[12],[1,[30,2,["text"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["extended_site_description"]],[[[1," "],[10,"h3"],[12],[1,[28,[32,2],["about.simple_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[32,5],[[30,1,["extended_site_description"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["admins","length"]],[[[1," "],[10,"section"],[14,0,"about__admins"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.our_admins"],null]],[13],[1,"\\n "],[8,[32,6],null,[["@users","@truncateAt"],[[30,1,["admins"]],6]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-admins","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["moderators","length"]],[[[1," "],[10,"section"],[14,0,"about__moderators"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.our_moderators"],null]],[13],[1,"\\n "],[8,[32,6],null,[["@users","@truncateAt"],[[30,1,["moderators"]],6]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["about-after-moderators","section",[28,[32,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"about__right-side"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.contact"],null]],[13],[1,"\\n"],[41,[30,0,["contactInfo"]],[[[1," "],[10,2],[12],[1,[28,[32,5],[[30,0,["contactInfo"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,[28,[32,2],["about.report_inappropriate_content"],null]],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,2],["about.site_activity"],null]],[13],[1,"\\n "],[10,0],[14,0,"about__activities"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["siteActivities"]]],null]],null],null,[[[1," "],[10,0],[15,0,[29,["about__activities-item ",[30,3,["class"]]]]],[12],[1,"\\n "],[10,1],[14,0,"about__activities-item-icon"],[12],[1,[28,[32,1],[[30,3,["icon"]]],null]],[13],[1,"\\n "],[10,1],[14,0,"about__activities-item-type"],[12],[1,"\\n "],[10,0],[14,0,"about__activities-item-count"],[12],[1,[30,3,["activityText"]]],[13],[1,"\\n "],[10,0],[14,0,"about__activities-item-period"],[12],[1,[30,3,["period"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["displayVisitorStats"]],[[[1," "],[10,2],[14,0,"about traffic-info-footer"],[12],[10,"small"],[12],[1,[30,0,["trafficInfoFooter"]]],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@model","stat","activity"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page.js",scope:()=>[r.LinkTo,d.default,h.i18n,u.default,s.hash,a.htmlSafe,l.default],isStrictMode:!0}),this))()}},25852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(28564),r=n(68741),o=n(48605),a=n(54729),l=n(21959),u=n(79635),c=n(59602),d=n(88274),p=n(45929),h=n(62797),m=n(51969),g=n(76417),f=n(82739);let _=(0,l.lQ)("ace-editor"),y=/\$(primary|secondary|tertiary|quaternary|header_background|header_primary|highlight|danger|success|love)(\s|;|-(low|medium|high))/g;class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"isLoading",[s.tracked],function(){return!0}))();#a=(()=>void dt7948.i(this,"isLoading"))();editor=null;ace=null;skipChangePropagation=!1;setContent=(()=>(0,u.modifier)(()=>{if(this.args.content===this.editor.getSession().getValue())return;this.skipChangePropagation=!0,this.editor.getSession().setValue(this.args.content||""),this.skipChangePropagation=!1;let e=_.beginAsync();return this.editor.renderer.once("afterRender",()=>_.endAsync(e)),()=>_.endAsync(e)}))();constructor(){super(...arguments),(0,d.default)().then(e=>{this.isDestroying||this.isDestroyed||(this.ace=e,this.isLoading=!1)}),this.appEvents.on("ace:resize",this.resize),window.addEventListener("resize",this.resize),this._darkModeListener=window.matchMedia("(prefers-color-scheme: dark)"),this._darkModeListener.addEventListener("change",this.setAceTheme)}willDestroy(){super.willDestroy(...arguments),this.editor?.destroy(),this._darkModeListener?.removeEventListener("change",this.setAceTheme),window.removeEventListener("resize",this.resize),this.appEvents.off("ace:resize",this.resize)}setupAce(e){this.args.htmlPlaceholder&&function(e){let t=e.config.$defaultOptions.editor.placeholder.set;e.config.$defaultOptions.editor.placeholder.set=function(){if(!this.$updatePlaceholder){let e=this.renderer.on;this.renderer.on=function(){},t.call(this,...arguments),this.renderer.on=e;let n=this.$updatePlaceholder;this.$updatePlaceholder=(function(){n.call(this,...arguments),this.renderer.placeholderNode&&(this.renderer.placeholderNode.innerHTML=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)}this.$updatePlaceholder()}}(this.ace),this.ace.config.set("useWorker",!1),this.editor=this.ace.edit(e),this.editor.setShowPrintMargin(!1),this.editor.setOptions({fontSize:"14px",placeholder:this.args.placeholder});let t=this.editor.getSession();t.setMode(`ace/mode/${this.mode}`),this.editor.on("change",()=>{this.skipChangePropagation||this.args.onChange?.(t.getValue())}),this.args.save&&this.editor.commands.addCommand({name:"save",exec:()=>this.args.save(),bindKey:{mac:"cmd-s",win:"ctrl-s"}}),this.args.submit&&this.editor.commands.addCommand({name:"submit",exec:()=>this.args.submit(),bindKey:{mac:"cmd-enter",win:"ctrl-enter"}}),this.editor.on("blur",()=>this.warnSCSSDeprecations()),this.editor.$blockScrolling=1/0,this.editor.renderer.setScrollMargin(10,10),(0,p.isTesting)()&&(e.aceEditor=this.editor),this.changeDisabledState(),this.warnSCSSDeprecations(),this.autofocus&&this.focus(),this.setAceTheme()}static #i=(()=>dt7948.n(this.prototype,"setupAce",[h.bind]))();get mode(){return this.args.mode||"css"}editorIdChanged(){this.autofocus&&this.focus()}static #l=(()=>dt7948.n(this.prototype,"editorIdChanged",[h.bind]))();modeChanged(){this.editor?.getSession().setMode(`ace/mode/${this.mode}`)}static #u=(()=>dt7948.n(this.prototype,"modeChanged",[h.bind]))();placeholderChanged(){this.editor?.setOptions({placeholder:this.args.placeholder})}static #c=(()=>dt7948.n(this.prototype,"placeholderChanged",[h.bind]))();changeDisabledState(){this.editor?.setOptions({readOnly:this.args.disabled,highlightActiveLine:!this.args.disabled,highlightGutterLine:!this.args.disabled}),this.editor?.container.parentNode.parentNode.setAttribute("data-disabled",!!this.args.disabled)}static #d=(()=>dt7948.n(this.prototype,"changeDisabledState",[h.bind]))();warnSCSSDeprecations(){if("scss"!==this.mode||this.args.editorId.startsWith("color_definitions")||!this.editor)return;let e=this.args.content.split("\n").map((e,t)=>{if(e.match(y))return{row:t,column:0,text:(0,m.i18n)("admin.customize.theme.scss_warning_inline"),type:"warning"}}).filter(Boolean);this.editor.getSession().setAnnotations(e),this.args.setWarning?.(!!e.length&&m.i18n("admin.customize.theme.scss_color_variables_warning"))}setAceTheme(){let e=getComputedStyle(document.body).getPropertyValue("--scheme-type").trim();this.editor.setTheme(`ace/theme/${"dark"===e?"chaos":"chrome"}`)}static #p=(()=>dt7948.n(this.prototype,"setAceTheme",[h.bind]))();resize(){this.editor?.resize()}static #h=(()=>dt7948.n(this.prototype,"resize",[h.bind]))();focus(){this.editor&&(this.editor.focus(),this.editor.navigateFileEnd())}static #m=(()=>dt7948.n(this.prototype,"focus",[h.bind]))();static #g=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"eqDUhW76",block:'[[[1,"\\n "],[10,0],[14,0,"ace-wrapper"],[12],[1,"\\n "],[8,[32,0],null,[["@condition","@size"],[[30,0,["isLoading"]],"small"]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"ace"],[17,1],[4,[32,1],[[30,0,["setupAce"]]],null],[4,[30,0,["setContent"]],null,null],[4,[32,2],[[30,0,["editorIdChanged"]],[30,2]],null],[4,[32,2],[[30,0,["modeChanged"]],[30,3]],null],[4,[32,2],[[30,0,["placeholderChanged"]],[30,4]],null],[4,[32,2],[[30,0,["changeDisabledState"]],[30,5]],null],[12],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@editorId","@mode","@placeholder","@disabled"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/ace-editor.js",scope:()=>[c.default,r.default,o.default],isStrictMode:!0}),this))()}},57969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(15767),s=n(25614),r=n(21237),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"r/C5i3JK",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["actionsSummary"]]],null]],null],null,[[[1," "],[10,0],[14,0,"post-action"],[12],[1,[30,2,["description"]]],[13],[1,"\\n "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n"]],[2]],null],[41,[30,1,["deleted_at"]],[[[1," "],[10,0],[14,0,"post-action deleted-post"],[12],[1,"\\n "],[1,[28,[32,0],["trash-can"],null]],[1,"\\n "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,1,["deletedByUsername"]]],[15,"title",[30,1,["deletedByUsername"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["deletedByAvatarTemplate"]],"tiny"],[["title"],[[30,1,["deletedByUsername"]]]]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,2],[[30,1,["deleted_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@data","as"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/actions-summary.js",scope:()=>[r.default,i.default,s.default],isStrictMode:!0}),(0,l.default)(void 0,"actions-summary:ActionsSummary"))},62034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(92976),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get canEditEmail(){return this.siteSettings.enable_local_logins||this.siteSettings.email_editable}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"rcsdsfzu",block:'[[[1,"\\n "],[10,0],[14,0,"activation-controls"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","must_approve_users"]]],[[[1," "],[8,[32,0],[[24,0,"btn-primary resend"]],[["@action","@label","@icon"],[[30,1],"login.resend_title","envelope"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditEmail"]],[[[1," "],[8,[32,0],[[24,0,"edit-email"]],[["@action","@label","@icon"],[[30,2],"login.change_email","pencil"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@sendActivationEmail","@editActivationEmail"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-controls.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},16513:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(87075),r=n(70001),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{newEmailChanged(e){this.args.updateNewEmail(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"newEmailChanged",[r.action]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"OVNeBgY3",block:'[[[1,"\\n "],[10,2],[12],[1,[28,[32,0],["login.provide_new_email"],null]],[13],[1,"\\n "],[11,"input"],[16,2,[30,1]],[24,0,"activate-new-email"],[24,4,"text"],[4,[32,1],["input",[30,0,["newEmailChanged"]]],null],[12],[13],[1,"\\n "]],["@email"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-email-form.js",scope:()=>[o.i18n,s.on],isStrictMode:!0}),this))()}},54213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(77315),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"LqKq7IaI",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],["category",[28,[32,1],["category-",[30,1,["fullSlug"]]],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[1,[28,[32,0],[[28,[32,1],["tag-",[30,3]],null]],null]],[1,"\\n"]],[3]],null]],["@category","@tags","tag"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-category-tag-classes.js",scope:()=>[s.default,i.concat],isStrictMode:!0}),(0,a.default)(void 0,"add-category-tag-classes:AddCategoryTagClasses"))},63476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(77315),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"PXuBpbxV",block:'[[[1,"\\n"],[41,[30,1,["invisible"]],[[[1," "],[1,[28,[32,0],["topic-status-unlisted"],null]],[1,"\\n"]],[]],null],[41,[30,1,["pinned"]],[[[1," "],[1,[28,[32,0],["topic-status-pinned"],null]],[1,"\\n"]],[]],null],[41,[30,1,["unpinned"]],[[[1," "],[1,[28,[32,0],["topic-status-unpinned"],null]],[1,"\\n"]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-topic-status-classes.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"add-topic-status-classes:AddTopicStatusClasses"))},60783:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(64151),l=n(92976),u=n(85052),c=n(27147),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"adminPostMenuButtons",[o.service]))();#_=(()=>void dt7948.i(this,"adminPostMenuButtons"))();get reviewUrl(){return`/review?topic_id=${this.args.data.post.id}&status=all`}get extraButtons(){return this.adminPostMenuButtons.callbacks.map(e=>e(this.args.data.post)).filter(Boolean)}async topicAction(e){await this.args.close();try{await this.args.data[e]?.()}catch(t){console.error(`Unknown error while attempting \`${e}\`:`,t)}await this.args.data.scheduleRerender?.()}static #u=(()=>dt7948.n(this.prototype,"topicAction",[r.action]))();async extraAction(e){await this.args.close(),await e.action(this.args.data.post),await this.args.data.scheduleRerender?.()}static #c=(()=>dt7948.n(this.prototype,"extraAction",[r.action]))();static #d=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"MTujYt8P",block:'[[[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent moderation-history"]],[["@label","@icon","@href"],["review.moderation_history","list",[30,0,["reviewUrl"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,0,["currentUser","staff"]],[28,[32,3],[[30,2,["post","isWhisper"]]],null]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent toggle-post-type",[52,[30,2,["post","isModeratorAction"]],"btn-success"]],null]]],[["@label","@icon","@action"],[[52,[30,2,["post","isModeratorAction"]],"post.controls.revert_to_regular","post.controls.convert_to_moderator"],"shield-halved",[28,[32,5],[[30,0,["topicAction"]],"togglePostType"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","canEditStaffNotes"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent",[52,[30,2,["post","notice"]],"change-notice","add-notice"],[52,[30,2,["post","notice"]],"btn-success"]],null]]],[["@icon","@label","@title","@action"],["user-shield",[52,[30,2,["post","notice"]],"post.controls.change_post_notice","post.controls.add_post_notice"],"post.controls.unhide",[28,[32,5],[[30,0,["topicAction"]],"changeNotice"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,0,["currentUser","staff"]],[30,2,["post","hidden"]]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent unhide-post"]],[["@label","@icon","@action"],["post.controls.unhide","far-eye",[28,[32,5],[[30,0,["topicAction"]],"unhidePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["currentUser","admin"]],[28,[32,2],[[30,0,["siteSettings","moderators_change_post_ownership"]],[30,0,["currentUser","staff"]]],null]],null],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent change-owner"]],[["@label","@icon","@title","@action"],["post.controls.change_owner","user","post.controls.lock_post_description",[28,[32,5],[[30,0,["topicAction"]],"changePostOwner"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,2,["post","user_id"]],[30,0,["currentUser","staff"]]],null],[[[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent grant-badge"]],[["@label","@icon","@action"],["post.controls.grant_badge","certificate",[28,[32,5],[[30,0,["topicAction"]],"grantBadge"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","locked"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent unlock-post",[52,[30,2,["post","locked"]],"btn-success"]],null]]],[["@label","@icon","@title","@action"],["post.controls.unlock_post","unlock","post.controls.unlock_post_description",[28,[32,5],[[30,0,["topicAction"]],"unlockPost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent lock-post"]],[["@label","@icon","@title","@action"],["post.controls.lock_post","lock","post.controls.lock_post_description",[28,[32,5],[[30,0,["topicAction"]],"lockPost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,2,["post","canPermanentlyDelete"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent permanently-delete"]],[["@label","@icon","@action"],["post.controls.permanently_delete","trash-can",[28,[32,5],[[30,0,["topicAction"]],"permanentlyDeletePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,2,["post","canManage"]],[30,2,["post","can_wiki"]]],null],[[[41,[30,2,["post","wiki"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent wiki wikied",[52,[30,2,["post","wiki"]],"btn-success"]],null]]],[["@label","@icon","@action"],["post.controls.unwiki","far-pen-to-square",[28,[32,5],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent wiki"]],[["@label","@icon","@action"],["post.controls.wiki","far-pen-to-square",[28,[32,5],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,2,["post","canPublishPage"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent publish-page"]],[["@label","@icon","@action"],["post.controls.publish_page","file",[28,[32,5],[[30,0,["topicAction"]],"showPagePublish"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["post","canManage"]],[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"btn btn-transparent rebuild-html"]],[["@label","@icon","@action"],["post.controls.rebake","rotate",[28,[32,5],[[30,0,["topicAction"]],"rebakePost"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraButtons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,1],[[16,0,[28,[32,4],["btn btn-transparent",[30,3,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,3,["label"]],[30,3,["translatedLabel"]],[30,3,["icon"]],[28,[32,5],[[30,0,["extraAction"]],[30,3]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "]],[1]]]]],[1,"\\n "]],["dropdown","@data","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/admin-post-menu.js",scope:()=>[u.default,l.default,a.and,a.not,c.default,s.fn,a.or],isStrictMode:!0}),this))()}},23605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(70001),r=n(93223),o=n(98860);let a=(0,n(82739).createTemplateFactory)({id:"NtfoVG+g",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[8,[39,3],[[16,1,[28,[37,4],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,5],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[1]],null],[1," "],[8,[39,3],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["reply",[28,[37,6],["showLogin"],null],"topic.reply.title"]],null],[1,"\\n"],[13]],["button"],false,["div","each","-track-array","d-button","concat","concatClass","route-action"]]',moduleName:"discourse/components/anonymous-topic-footer-buttons.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{elementId="topic-footer-buttons";role="region";static #e=(()=>dt7948.g(this.prototype,"allButtons",[(0,o.getTopicFooterButtons)()]))();#y=(()=>void dt7948.i(this,"allButtons"))();get buttons(){return this.allButtons.filterBy("anonymousOnly",!0).sortBy("priority").reverse()}static #n=(()=>dt7948.n(this.prototype,"buttons",[(0,s.computed)("allButtons.[]")]))()},[(0,r.attributeBindings)("role")]),u=(0,i.setComponentTemplate)(a,l)},95955:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){return[{id:"notYou",icon:"user-xmark",name:(0,r.i18n)("user.auth_tokens.not_you"),description:""},{id:"logOut",icon:"right-from-bracket",name:(0,r.i18n)("user.log_out"),description:""}]}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){switch(e){case"notYou":this.showToken(this.token);break;case"logOut":this.revokeAuthToken(this.token)}}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("auth-token-dropdown")])},47253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(9630),s=n(25710);class r extends s.default{widget="avatar-flair";_rerender(){this.queueRerender()}static #e=(()=>dt7948.n(this.prototype,"_rerender",[(0,i.observes)("flairName","flairUrl","flairBgColor","flairColor")]))();buildArgs(){return{flair_name:this.flairName,flair_url:this.flairUrl,flair_bg_color:this.flairBgColor,flair_color:this.flairColor}}}},3661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(71597),o=n(97355),a=n(93223),l=n(21765),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"6J5Z/bbV",block:'[[[11,"input"],[24,0,"hidden-upload-field"],[16,"disabled",[30,0,["uploading"]]],[24,"accept","image/*"],[24,"aria-hidden","true"],[24,4,"file"],[4,[38,1],[[30,0,["uppyUpload","setup"]]],null],[12],[13],[1,"\\n"],[8,[39,2],[[24,0,"btn-default avatar-uploader__button"],[16,"data-uploaded",[30,0,["customAvatarUploaded"]]],[16,"data-avatar-upload-id",[30,0,["uploadedAvatarId"]]]],[["@translatedLabel","@icon","@disabled","@action","@title"],[[30,0,["uploadLabel"]],"far-image",[30,0,["uploading"]],[30,0,["chooseImage"]],"user.change_avatar.upload_title"]],null],[1,"\\n\\n"],[41,[30,0,["imageIsNotASquare"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,[28,[35,5],["user.change_avatar.image_is_not_a_square"],null]],[13],[1,"\\n"]],[]],null]],[],false,["input","did-insert","d-button","if","div","i18n"]]',moduleName:"discourse/components/avatar-uploader.hbs",isStrictMode:!1}),p=dt7948.c(class extends i.default{uppyUpload=(()=>new l.default((0,r.getOwner)(this),{id:"avatar-uploader",type:"avatar",validateUploadedFilesOptions:{imagesOnly:!0},uploadDone:e=>{this.setProperties({imageIsNotASquare:e.width!==e.height,uploadedAvatarTemplate:e.url,uploadedAvatarId:e.id}),this.done()},additionalParams:()=>({user_id:this.user_id})}))();imageIsNotASquare=!1;customAvatarUploaded(){return!this.uppyUpload.uploading&&!(0,o.isBlank)(this.uploadedAvatarId)}static #e=(()=>dt7948.n(this.prototype,"customAvatarUploaded",[(0,u.default)("uppyUpload.uploading","uploadedAvatarId")]))();uploadLabel(){return this.uppyUpload.uploading?`${(0,c.i18n)("uploading")} ${this.uppyUpload.uploadProgress}%`:(0,c.i18n)("upload")}static #n=(()=>dt7948.n(this.prototype,"uploadLabel",[(0,u.default)("uppyUpload.uploading","uppyUpload.uploadProgress")]))();chooseImage(){this.uppyUpload.openPicker()}static #i=(()=>dt7948.n(this.prototype,"chooseImage",[s.action]))()},[(0,a.tagName)("span")]),h=(0,i.setComponentTemplate)(d,p)},66557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(69836),s=n(64151),r=n(21237),o=n(51969),a=n(76417),l=n(82739),u=n(88606);let c=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"iAmIOSf5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn btn-flat back-button"]],[["@route"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["chevron-left"],null]],[1,"\\n "],[1,[28,[32,2],[[28,[32,3],[[30,2],"back_button"],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],["@route","@label"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/back-button.js",scope:()=>[i.LinkTo,r.default,o.i18n,s.or],isStrictMode:!0}),(0,u.default)(void 0,"back-button"))},31330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(87075),r=n(70001),o=n(68741),a=n(54729),l=n(92976),u=n(73077),c=n(20802),d=n(51969),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get siteTitleSlug(){let e=this.siteSettings.title,t=(0,c.toAsciiPrintable)(e,"discourse");return(0,c.slugify)(t)}get base64BackupCode(){return function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}(this.formattedBackupCodes)}get formattedBackupCodes(){return this.args.backupCodes?this.args.backupCodes.join("\n").trim():null}copyToClipboard(){this._selectAllBackupCodes();let e=(0,u.default)("",this.backupCodesArea);this.args.copyBackupCode(e)}static #n=(()=>dt7948.n(this.prototype,"copyToClipboard",[r.action]))();registerBackupCodesArea(e){this.backupCodesArea=e,e.style.height=e.scrollHeight}static #i=(()=>dt7948.n(this.prototype,"registerBackupCodesArea",[r.action]))();_selectAllBackupCodes(){this.backupCodesArea.focus(),this.backupCodesArea.setSelectionRange(0,this.formattedBackupCodes.length)}static #l=(()=>dt7948.n(this.prototype,"_selectAllBackupCodes",[r.action]))();static #u=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"rcvm3HRP",block:'[[[1,"\\n "],[10,0],[14,0,"backup-codes"],[12],[1,"\\n "],[10,0],[14,0,"wrapper"],[12],[1,"\\n "],[11,"textarea"],[24,1,"backupCodes"],[24,0,"backup-codes-area"],[24,"rows","10"],[24,"readonly",""],[4,[32,0],[[30,0,["registerBackupCodesArea"]]],null],[4,[32,1],["click",[30,0,["_selectAllBackupCodes"]]],null],[12],[1,[30,0,["formattedBackupCodes"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,2],[[24,0,"backup-codes-copy-btn"]],[["@action","@icon","@ariaLabel","@title"],[[30,0,["copyToClipboard"]],"copy","user.second_factor_backup.copy_to_clipboard","user.second_factor_backup.copy_to_clipboard"]],null],[1,"\\n\\n "],[8,[32,2],[[16,"download",[29,[[30,0,["siteTitleSlug"]],"-backup-codes.txt"]]],[24,0,"backup-codes-download-btn"],[16,"aria-label",[28,[32,3],["user.second_factor_backup.download_backup_codes"],null]],[16,"title",[28,[32,3],["user.second_factor_backup.download_backup_codes"],null]],[24,"rel","noopener noreferrer"],[24,"target","_blank"]],[["@href","@icon"],[[29,["data:application/octet-stream;charset=utf-8;base64,",[30,0,["base64BackupCode"]]]],"download"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/backup-codes.js",scope:()=>[o.default,s.on,l.default,d.i18n],isStrictMode:!0}),this))()}},78141:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(14749),r=n(19726),o=n(76417),a=n(82739);class l extends i.default{get title(){let e=this.args.badge?.description;if(e)return(0,r.default)(`
${e}
`)[0].innerText}get showName(){return this.args.showName??!0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"YmgWTQpp",block:'[[[1,"\\n "],[11,1],[16,"title",[30,0,["title"]]],[16,"data-badge-name",[30,1,["name"]]],[16,0,[29,["user-badge\\n ",[30,1,["badgeTypeClassName"]],"\\n ",[52,[51,[30,1,["enabled"]]],"disabled"]]]],[17,2],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],null]],[1,"\\n"],[41,[30,0,["showName"]],[[[1," "],[10,1],[14,0,"badge-display-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[18,3,null],[1,"\\n "],[13],[1,"\\n "]],["@badge","&attrs","&default"],false,["unless","if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-button.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},64871:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138),s=n(28564),r=n(39882),o=n(35804),a=n(97355),l=n(64151),u=n(92976),c=n(14749),d=n(15523),p=n(62167),h=n(21237),m=n(51969),g=n(59874),f=n(76417),_=n(82739);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"size",[s.tracked],function(){return this.args.size||"medium"}))();#b=(()=>void dt7948.i(this,"size"))();get url(){let{badge:e,filterUser:t,username:n}=this.args;return t?`${e.url}?username=${n}`:e.url}get displayCount(){let{count:e,badge:t}=this.args;return null==e?t.grant_count:e>1?e:void 0}get summary(){let{size:e,badge:t}=this.args;return"large"!==e||(0,a.isEmpty)(t.long_description)?(0,p.sanitize)(t.description):(0,p.emojiUnescape)((0,p.sanitize)(t.long_description))}get showFavorite(){let{badge:e}=this.args;return![1,2,3,4].includes(e.id)}static #n=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"dxYAyXoo",block:'[[[1,"\\n "],[10,0],[15,0,[29,["badge-card --badge-",[30,0,["size"]]]]],[15,"data-badge-slug",[30,1,["slug"]]],[12],[1,"\\n "],[10,0],[14,0,"badge-contents"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["badge-contents-top",[28,[32,1],null,[["badge","url"],[[30,1],[30,0,["url"]]]]]]],null],[1,"\\n "],[10,1],[15,0,[29,["badge-icon ",[30,1,["badgeTypeClassName"]]]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,2],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"badge-info"],[12],[1,"\\n "],[10,0],[14,0,"badge-info-item"],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n"],[41,[28,[32,3],[[30,0,["size"]],"large"],null],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,0,["url"]]],[14,0,"badge-link"],[15,"aria-describedby",[29,["badge-summary-",[30,1,["slug"]]," badge-granted-",[30,1,["slug"]]," badge-awarded-",[30,1,["slug"]]]]],[12],[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[15,1,[29,["badge-summary-",[30,1,["slug"]]]]],[14,0,"badge-summary"],[12],[1,"\\n "],[1,[28,[32,4],[[30,0,["summary"]]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["displayCount"]],[[[1," "],[10,0],[15,1,[29,["badge-granted-",[30,1,["slug"]]]]],[14,0,"badge-granted"],[12],[1,"\\n "],[1,[28,[32,4],[[28,[32,5],["badges.awarded"],[["count","number"],[[30,0,["displayCount"]],[28,[32,6],[[30,0,["displayCount"]]],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["has_badge"]],[[[1," "],[10,0],[15,1,[29,["badge-awarded-",[30,1,["slug"]]]]],[14,0,"check-display status-checked"],[15,"aria-label",[28,[32,5],["notifications.titles.granted_badge"],null]],[12],[1,"\\n "],[1,[28,[32,7],["check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[41,[30,3],[[[1," "],[8,[32,8],[[24,0,"favorite-btn"]],[["@icon","@action"],["star",[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,8],[[24,0,"favorite-btn"]],[["@icon","@action","@title","@disabled"],["far-star",[30,4],[52,[30,5],"badges.favorite_max_not_reached","badges.favorite_max_reached"],[28,[32,9],[[30,5]],null]]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "]],["@badge","@canFavorite","@isFavorite","@onFavoriteClick","@canFavoriteMoreBadges"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-card.js",scope:()=>[g.default,r.hash,c.default,l.eq,o.htmlSafe,m.i18n,d.default,h.default,u.default,l.not],isStrictMode:!0}),this))()}},19908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(70001),r=n(54729),o=n(93223),a=n(6610),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"usffQdd6",block:'[[[10,0],[14,0,"badge-title"],[12],[1,"\\n "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n\\n "],[10,"h3"],[12],[1,[28,[35,3],["badges.select_badge_for_title"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,4],null,[["@value","@nameProperty","@content","@onChange"],[[30,0,["_selectedUserBadgeId"]],"badge.name",[30,0,["selectableUserBadges"]],[28,[37,5],[[28,[37,6],[[30,0,["_selectedUserBadgeId"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveBadgeTitle"]],[30,0,["_isSaving"]],[52,[30,0,["_isSaving"]],"saving","save"]]],null],[1,"\\n"],[41,[30,0,["closeAction"]],[[[1," "],[8,[39,7],[[24,0,"btn-default close-btn"]],[["@action","@label"],[[30,0,["closeAction"]],"close"]],null],[1,"\\n"]],[]],null],[41,[30,0,["_isSaved"]],[[[1," "],[10,1],[14,"role","status"],[14,0,"badge-title__saved"],[12],[1,[28,[35,3],["saved"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","form","h3","i18n","combo-box","fn","mut","d-button","if","span"]]',moduleName:"discourse/components/badge-title.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();selectableUserBadges=null;_selectedUserBadgeId=null;_isSaved=!1;_isSaving=!1;init(){super.init(...arguments);let e=this._findBadgeByTitle(this.selectableUserBadges,this.currentUser.title);this.set("_selectedUserBadgeId",e?.id||0)}saveBadgeTitle(){this.setProperties({_isSaved:!1,_isSaving:!0});let e=this._findBadgeById(this.selectableUserBadges,this._selectedUserBadgeId);return(0,a.ajax)(`${this.currentUser.path}/preferences/badge_title`,{type:"PUT",data:{user_badge_id:e?.id||0}}).then(()=>{this.set("_isSaved",!0),this.currentUser.set("title",e?.badge?.name||"")},()=>{this.dialog.alert((0,l.i18n)("generic_error"))}).finally(()=>this.set("_isSaving",!1))}static #n=(()=>dt7948.n(this.prototype,"saveBadgeTitle",[s.action]))();_findBadgeById(e,t){return(e||[]).findBy("id",t)}_findBadgeByTitle(e,t){return(e||[]).findBy("badge.name",t)}},[(0,o.tagName)("")]),d=(0,i.setComponentTemplate)(u,c)},26647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(5938),r=n(9630),o=n(14682),a=n.n(o),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"y61/RaC1",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["topics"]],[[[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[8,[39,2],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectHelper","@canBulkSelect","@tagsForUser","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectHelper"]],[30,0,["canBulkSelect"]],[30,0,["tagsForUser"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["focusLastVisitedTopic"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectHelper","@canBulkSelect","@tagsForUser","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectHelper"]],[30,0,["canBulkSelect"]],[30,0,["tagsForUser"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["focusLastVisitedTopic"]]]],null],[1,"\\n"]],[]]]],[]],[[[41,[51,[30,0,["loadingMore"]]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,"\\n "],[1,[28,[35,6],["choose_topic.none_found"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]]]],[],false,["conditional-loading-spinner","if","topic-list/list","topic-list","unless","div","i18n"]]',moduleName:"discourse/components/basic-topic-list.hbs",isStrictMode:!1});class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"loadingMore",[(0,s.alias)("topicList.loadingMore")]))();#w=(()=>void dt7948.i(this,"loadingMore"))();static #n=(()=>dt7948.g(this.prototype,"loading",[(0,s.not)("loaded")]))();#k=(()=>void dt7948.i(this,"loading"))();init(){super.init(...arguments);let e=this.topicList;e&&this._initFromTopicList(e)}loaded(){let e=this.topicList;return!e||e.get("loaded")}static #i=(()=>dt7948.n(this.prototype,"loaded",[(0,l.default)("topicList.loaded")]))();_topicListChanged(){this._initFromTopicList(this.topicList)}static #l=(()=>dt7948.n(this.prototype,"_topicListChanged",[(0,r.observes)("topicList.[]")]))();_initFromTopicList(e){null!==e&&(this.set("topics",e.get("topics")),this.rerender())}didInsertElement(){super.didInsertElement(...arguments),this.topics.forEach(e=>{void 0!==e.unread_by_group_member&&this.messageBus.subscribe(`/private-messages/unread-indicator/${e.id}`,this.onMessage)})}willDestroyElement(){super.willDestroyElement(...arguments),this.messageBus.unsubscribe("/private-messages/unread-indicator/*",this.onMessage)}onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)}static #u=(()=>dt7948.n(this.prototype,"onMessage",[l.bind]))();showUnreadIndicator(e){return e.some(e=>void 0!==e.unread_by_group_member)}static #c=(()=>dt7948.n(this.prototype,"showUnreadIndicator",[(0,l.default)("topics")]))();click(e){if(this.site.desktopView)return;let t=a()(e.target);if(t.closest(".posts-map").length){let e=t.closest("tr").attr("data-topic-id");if(e){if("A"!==t.prop("tagName")){let e=t.find("a");if(e.length)t=e;else{if(!(e=t.closest("a")).length)return!1;t=e}}let n=this.topics.findBy("id",parseInt(e,10));this.appEvents.trigger("topic-entrance:show",{topic:n,position:t.offset()})}return!1}}}(0,i.setComponentTemplate)(u,c)},95511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(70001),s=n(93223),r=n(62797),o=n(51969),a=n(25318),l=n(53349);let u="remove",c="edit",d="clear_reminder",p=dt7948.c(class extends a.default{content(e){let t=[];return t.push({id:u,icon:"trash-can",name:(0,o.i18n)("post.bookmarks.actions.delete_bookmark.name"),description:(0,o.i18n)("post.bookmarks.actions.delete_bookmark.description")}),t.push({id:c,icon:"pencil",name:(0,o.i18n)("post.bookmarks.actions.edit_bookmark.name"),description:(0,o.i18n)("post.bookmarks.actions.edit_bookmark.description")}),e.reminder_at&&t.push({id:d,icon:"clock-rotate-left",name:(0,o.i18n)("post.bookmarks.actions.clear_bookmark_reminder.name"),description:(0,o.i18n)("post.bookmarks.actions.clear_bookmark_reminder.description")}),t.push({id:"pin",icon:"thumbtack",name:(0,o.i18n)(`post.bookmarks.actions.${e.pinAction()}_bookmark.name`),description:(0,o.i18n)(`post.bookmarks.actions.${e.pinAction()}_bookmark.description`)}),t}static #e=(()=>dt7948.n(this.prototype,"content",[(0,r.default)("bookmark")]))();onChange(e){e===u?this.removeBookmark(this.bookmark):e===c?this.editBookmark(this.bookmark):e===d?this.clearBookmarkReminder(this.bookmark):"pin"===e&&this.togglePinBookmark(this.bookmark)}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,l.pluginApiIdentifiers)("bookmark-actions-dropdown"),(0,l.selectKitOptions)({icon:null,translatedNone:"...",showFullTitle:!0}),(0,s.classNames)("bookmark-actions-dropdown")])},48049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(10157),r=n(21237),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{get icon(){return this.args.bookmark?.get("reminder_at")?s.WITH_REMINDER_ICON:s.NO_REMINDER_ICON}get cssClasses(){return this.args.bookmark?"bookmark-icon bookmark-icon__bookmarked":"bookmark-icon"}get title(){return this.args.bookmark?this.args.bookmark.get("reminderTitle"):(0,o.i18n)("bookmarks.create")}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"P6s4+vdY",block:'[[[1,"\\n "],[1,[28,[32,0],[[30,0,["icon"]]],[["translatedTitle","class"],[[30,0,["title"]],[30,0,["cssClasses"]]]]]],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bookmark-icon.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},53809:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(76417),s=n(70001),r=n(53067),o=n(54729),a=n(93223),l=n(35223),u=n(18430),c=n(6610),d=n(84568),p=n(31800),h=n(51969);let m=(0,n(82739).createTemplateFactory)({id:"JB3nkSBH",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@selector","@action"],[".bookmark-list .bookmark-list-item",[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"topic-list bookmark-list"],[12],[1,"\\n "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,5],null,[["@name"],["bookmark-list-table-header"]],[["default"],[[[[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,"th"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n "],[8,[39,7],null,[["@action","@class","@icon","@title"],[[30,0,["toggleBulkSelect"]],"bulk-select","list-check","bookmarks.bulk.toggle"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"th"],[14,0,"topic-list-data"],[12],[1,"\\n\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,1],[14,0,"bulk-select-topics"],[12],[41,[30,0,["canDoBulkActions"]],[[[1," "],[10,0],[14,0,"bulk-select-bookmarks-dropdown"],[12],[1,"\\n "],[10,1],[14,0,"bulk-select-bookmark-dropdown__count"],[12],[1,"\\n "],[1,[28,[35,10],["bookmarks.bulk.selected_count"],[["count"],[[30,0,["selectedCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,11],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"]],[]],null],[8,[39,12],[[24,0,"btn btn-default bulk-select-all"]],[["@action","@label"],[[30,0,["selectAll"]],"bookmarks.bulk.select_all"]],null],[1,"\\n "],[8,[39,12],[[24,0,"btn btn-default bulk-clear-all"]],[["@action","@label"],[[30,0,["clearAll"]],"bookmarks.bulk.clear_all"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@action","@class","@icon","@title"],[[30,0,["toggleBulkSelect"]],"bulk-select","list-check","bookmarks.bulk.toggle"]],null],[1,"\\n "],[1,[28,[35,10],["topic.title"],null]],[1,"\\n"]],[]]],[13],[1,"\\n "],[10,"th"],[14,0,"topic-list-data"],[12],[1," "],[13],[1,"\\n "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,10],["post.bookmarks.updated"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,10],["activity"],null]],[13],[1,"\\n "],[10,"th"],[12],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["content"]]],null]],null],null,[[[1," "],[10,"tr"],[14,0,"topic-list-item bookmark-list-item"],[12],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[10,"td"],[14,0,"bulk-select bookmark-list-data"],[12],[1,"\\n "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[10,"input"],[14,0,"bulk-select"],[15,1,[29,["bulk-select-",[30,1,["id"]]]]],[15,"data-id",[30,1,["id"]]],[14,4,"checkbox"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"td"],[14,0,"main-link topic-list-data"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["bookmark-list-before-link",[28,[37,20],null,[["bookmark"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,1],[14,0,"link-top-line"],[12],[1,"\\n "],[10,0],[14,0,"bookmark-metadata"],[12],[1,"\\n"],[41,[30,1,["reminder_at"]],[[[1," "],[10,1],[15,0,[29,["bookmark-metadata-item bookmark-reminder\\n ",[52,[30,1,["reminderAtExpired"]],"bookmark-expired-reminder"]]]],[12],[1,"\\n "],[1,[28,[35,21],["far-clock"],null]],[1,[30,1,["formattedReminder"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["name"]],[[[1," "],[10,1],[14,0,"bookmark-metadata-item"],[12],[1,"\\n "],[1,[28,[35,21],["circle-info"],null]],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"bookmark-status-with-link"],[12],[1,"\\n"],[41,[30,1,["pinned"]],[[[1," "],[1,[28,[35,21],["thumbtack"],[["class"],["bookmark-pinned"]]]],[1,"\\n"]],[]],null],[41,[30,1,["bookmarkableTopicAlike"]],[[[1," "],[8,[39,22],null,[["@topic"],[[30,1,["topicStatus"]]]],null],[1,"\\n "],[1,[28,[35,23],[[30,1,["topicForList"]]],null]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,1,["bookmarkable_url"]]],[14,"role","heading"],[14,"aria-level","2"],[14,0,"title"],[14,"data-topic-id","${topic.id}"],[12],[1,"\\n "],[1,[30,1,["fancy_title"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["bookmarkableTopicAlike"]],[[[1," "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n "],[1,[28,[35,25],[[30,1,["category"]]],null]],[1,"\\n "],[1,[28,[35,26],[[30,1]],[["mode","tagsForUser"],["list",[30,0,["tagsForUser"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,27],[[30,0,["site","mobileView"]],[30,1,["excerpt"]],[30,1,["user","avatar_template"]]],null],[[[1," "],[10,3],[15,6,[30,1,["bookmarkableUser","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n "],[1,[28,[35,28],[[30,1,["bookmarkableUser"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1," "],[11,2],[24,0,"post-excerpt"],[4,[38,30],["click",[30,0,["screenExcerptForExternalLink"]]],null],[12],[1,[28,[35,31],[[30,1,["excerpt"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,"td"],[14,0,"author-avatar topic-list-data"],[12],[1,"\\n"],[41,[30,1,["user","avatar_template"]],[[[1," "],[10,3],[15,6,[30,1,["user","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n "],[1,[28,[35,28],[[30,1,["user"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"td"],[14,0,"post-metadata topic-list-data updated-at"],[12],[1,[28,[35,32],[[30,1,["updated_at"]]],[["format"],["tiny"]]]],[13],[1,"\\n "],[1,[28,[35,33],["list/activity-column"],[["topic","class","tagName"],[[30,1],"num post-metadata","td"]]]],[1,"\\n"]],[]],null],[1," "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n "],[8,[39,34],null,[["@bookmark","@removeBookmark","@editBookmark","@clearBookmarkReminder","@togglePinBookmark"],[[30,1],[28,[37,35],[[30,0],"removeBookmark"],null],[28,[37,35],[[30,0],"editBookmark"],null],[28,[37,35],[[30,0],"clearBookmarkReminder"],null],[28,[37,35],[[30,0],"togglePinBookmark"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,0],null,[["@condition"],[[30,0,["loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]]]],["bookmark"],false,["conditional-loading-spinner","load-more","table","thead","if","plugin-outlet","th","flat-button","span","div","i18n","bulk-select-bookmarks-dropdown","d-button","tbody","each","-track-array","tr","td","label","input","hash","d-icon","topic-status","topic-link","a","category-link","discourse-tags","and","avatar","p","on","html-safe","format-date","raw","bookmark-actions-dropdown","action"]]',moduleName:"discourse/components/bookmark-list.hbs",isStrictMode:!1}),g=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();get canDoBulkActions(){return this.bulkSelectHelper?.selected.length}get selected(){return this.bulkSelectHelper?.selected}get selectedCount(){return this.selected?.length||0}removeBookmark(e){return new l.Promise((t,n)=>{let i=()=>{e.destroy().then(()=>{this.appEvents.trigger("bookmarks:changed",null,e.attachedTo()),this._removeBookmarkFromList(e),t(!0)}).catch(e=>{n(e)})};if(!e.reminder_at)return i();this.dialog.deleteConfirm({message:(0,h.i18n)("bookmarks.confirm_delete"),didConfirm:()=>i(),didCancel:()=>t(!1)})})}static #i=(()=>dt7948.n(this.prototype,"removeBookmark",[s.action]))();screenExcerptForExternalLink(e){e?.target?.tagName==="A"&&(0,p.shouldOpenInNewTab)(e.target.href)&&(0,p.openLinkInNewTab)(e,e.target)}static #l=(()=>dt7948.n(this.prototype,"screenExcerptForExternalLink",[s.action]))();editBookmark(e){this.modal.show(u.default,{model:{bookmark:new d.BookmarkFormData(e),afterSave:t=>{this.appEvents.trigger("bookmarks:changed",t,e.attachedTo()),this.reload()},afterDelete:()=>{this.reload()}}})}static #u=(()=>dt7948.n(this.prototype,"editBookmark",[s.action]))();clearBookmarkReminder(e){return(0,c.ajax)(`/bookmarks/${e.id}`,{type:"PUT",data:{reminder_at:null}}).then(()=>{e.set("reminder_at",null)})}static #c=(()=>dt7948.n(this.prototype,"clearBookmarkReminder",[s.action]))();togglePinBookmark(e){e.togglePin().then(this.reload)}static #d=(()=>dt7948.n(this.prototype,"togglePinBookmark",[s.action]))();toggleBulkSelect(){this.bulkSelectHelper?.toggleBulkSelect(),this.rerender()}static #p=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[s.action]))();selectAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}static #h=(()=>dt7948.n(this.prototype,"selectAll",[s.action]))();clearAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}static #m=(()=>dt7948.n(this.prototype,"clearAll",[s.action]))();get bulkSelectEnabled(){return this.bulkSelectHelper?.bulkSelectEnabled}static #g=(()=>dt7948.n(this.prototype,"bulkSelectEnabled",[r.dependentKeyCompat]))();_removeBookmarkFromList(e){this.content.removeObject(e)}_toggleSelection(e,t,n){let i=this.selected;if(e.checked){if(i.addObject(t),n){let t=Array.from(document.querySelectorAll("input.bulk-select")),n=t.indexOf(e),i=t.findIndex(e=>e.id===this.lastChecked.id),s=Math.min(n,i),r=Math.max(n,i);t.slice(s,r).filter(e=>!0!==e.checked).forEach(e=>{e.click()})}this.set("lastChecked",e)}else i.removeObject(t),this.set("lastChecked",null)}click(e){((t,n)=>{let i=e.target.closest(t);i&&n(i)})("input.bulk-select",()=>{let t=e.target,n=t.dataset.id,i=this.content.find(e=>e.id.toString()===n);this._toggleSelection(t,i,this.lastChecked&&e.shiftKey)})}},[(0,a.classNames)("bookmark-list-wrapper")]),f=(0,i.setComponentTemplate)(m,g)},19015:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(68741),l=n(54729),u=n(92976),c=n(85052),d=n(18430),p=n(64149),h=n(32644),m=n(21237),g=n(51969),f=n(99676),_=n(76417),y=n(82739);class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[l.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #l=(()=>dt7948.g(this.prototype,"site",[l.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"quicksaved",[s.tracked],function(){return!1}))();#C=(()=>void dt7948.i(this,"quicksaved"))();bookmarkManager=this.args.bookmarkManager;timezone=(()=>this.currentUser?.user_option?.timezone||moment.tz.guess())();timeShortcuts=(()=>(0,h.timeShortcuts)(this.timezone))();bookmarkCreatePromise=null;setReminderShortcuts(){this.reminderAtOptions=[this.timeShortcuts.twoHours(),this.timeShortcuts.tomorrow(),this.timeShortcuts.threeDays()];let e=this.timeShortcuts.custom();e.label="time_shortcut.more_options",this.reminderAtOptions.push(e)}static #c=(()=>dt7948.n(this.prototype,"setReminderShortcuts",[o.action]))();get existingBookmark(){return this.bookmarkManager.trackedBookmark?.id?this.bookmarkManager.trackedBookmark:null}get showEditDeleteMenu(){return this.existingBookmark&&!this.quicksaved}get buttonTitle(){return this.existingBookmark?this.existingBookmark.reminderAt?(0,g.i18n)("bookmarks.created_with_reminder_generic",{date:this.existingBookmark.formattedReminder(this.timezone),name:this.existingBookmark.name||""}):(0,g.i18n)("bookmarks.created_generic",{name:this.existingBookmark.name||""}):(0,g.i18n)("bookmarks.not_bookmarked")}get buttonClasses(){let e=["bookmark widget-button bookmark-menu__trigger"];return this.args.showLabel?e.push("btn-icon-text"):e.push("btn-icon no-text"),this.args.buttonClasses&&e.push(this.args.buttonClasses),this.existingBookmark&&(e.push("bookmarked"),this.existingBookmark.reminderAt&&e.push("with-reminder")),e.join(" ")}get buttonIcon(){return this.existingBookmark?.reminderAt?"discourse-bookmark-clock":"bookmark"}get buttonLabel(){return this.args.showLabel?this.existingBookmark?(0,g.i18n)("bookmarked.edit_bookmark"):(0,g.i18n)("bookmarked.title"):void 0}reminderShortcutTimeTitle(e){return e.time?e.time.format((0,g.i18n)(e.timeFormatKey)):""}static #d=(()=>dt7948.n(this.prototype,"reminderShortcutTimeTitle",[o.action]))();onBookmark(){this.bookmarkCreatePromise=this.bookmarkManager.create(),this.bookmarkCreatePromise.then(()=>{this.quicksaved=!0,this.toasts.success({duration:1500,views:["mobile"],data:{message:(0,g.i18n)("bookmarks.bookmarked_success")}})}).catch(e=>(0,p.popupAjaxError)(e)).finally(()=>{this.bookmarkCreatePromise=null})}static #p=(()=>dt7948.n(this.prototype,"onBookmark",[o.action]))();onShowMenu(){this.existingBookmark||this.onBookmark()}static #h=(()=>dt7948.n(this.prototype,"onShowMenu",[o.action]))();onRegisterApi(e){this.dMenu=e}static #m=(()=>dt7948.n(this.prototype,"onRegisterApi",[o.action]))();onEditBookmark(){this._openBookmarkModal()}static #g=(()=>dt7948.n(this.prototype,"onEditBookmark",[o.action]))();onCloseMenu(){this.quicksaved=!1}static #E=(()=>dt7948.n(this.prototype,"onCloseMenu",[o.action]))();async onRemoveBookmark(){try{let e=await this.bookmarkManager.delete();this.bookmarkManager.afterDelete(e,this.existingBookmark.id),this.toasts.success({duration:1500,data:{icon:"trash-can",message:(0,g.i18n)("bookmarks.deleted_bookmark_success")}})}catch(e){(0,p.popupAjaxError)(e)}finally{this.dMenu.close()}}static #A=(()=>dt7948.n(this.prototype,"onRemoveBookmark",[o.action]))();async onChooseReminderOption(e){if(this.bookmarkCreatePromise&&await this.bookmarkCreatePromise,e.id===h.TIME_SHORTCUT_TYPES.CUSTOM)this._openBookmarkModal();else{this.existingBookmark.selectedReminderType=e.id,this.existingBookmark.selectedDatetime=e.time,this.existingBookmark.reminderAt=e.time;try{await this.bookmarkManager.save(),this.toasts.success({duration:1500,views:["mobile"],data:{message:(0,g.i18n)("bookmarks.reminder_set_success")}})}catch(e){(0,p.popupAjaxError)(e)}finally{this.dMenu.close()}}}static #D=(()=>dt7948.n(this.prototype,"onChooseReminderOption",[o.action]))();async _openBookmarkModal(){this.dMenu.close();try{let e=await this.modal.show(d.default,{model:{bookmark:this.existingBookmark,afterSave:e=>this.bookmarkManager.afterSave(e),afterDelete:(e,t)=>{this.bookmarkManager.afterDelete(e,t)}}});this.bookmarkManager.afterModalClose(e)}catch(e){(0,p.popupAjaxError)(e)}}static #I=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"WJiXoXNj",block:'[[[1,"\\n "],[8,[32,0],[[17,1],[16,0,[30,0,["buttonClasses"]]],[4,[32,2],[[30,0,["setReminderShortcuts"]]],null]],[["@identifier","@triggers","@title","@label","@icon","@onClose","@onShow","@onRegisterApi","@arrow"],["bookmark-menu",[28,[32,1],["click"],null],[30,0,["buttonTitle"]],[30,0,["buttonLabel"]],[30,0,["buttonIcon"]],[30,0,["onCloseMenu"]],[30,0,["onShowMenu"]],[30,0,["onRegisterApi"]],false]],[["content"],[[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[41,[51,[30,0,["showEditDeleteMenu"]]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__title"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,4],["circle-check"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["bookmarks.bookmarked_success"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEditDeleteMenu"]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row -edit"],[24,"data-menu-option-id","edit"]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent"]],[["@icon","@label","@action"],["pencil","edit",[30,0,["onEditBookmark"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row --remove"],[24,"role","button"],[24,"tabindex","0"],[24,"data-menu-option-id","delete"]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent btn-danger"]],[["@icon","@label","@action"],["trash-can","delete",[30,0,["onRemoveBookmark"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"]],[]],[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row-title"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,5],["bookmarks.also_set_reminder"],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["divider"]],null,null,null],[1,"\\n\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["reminderAtOptions"]]],null]],null],null,[[[1," "],[8,[30,2,["item"]],[[24,0,"bookmark-menu__row"],[16,"data-menu-option-id",[30,3,["id"]]]],null,[["default"],[[[[1,"\\n "],[8,[32,6],[[24,0,"bookmark-menu__row-btn btn-transparent"]],[["@label","@translatedTitle","@action"],[[30,3,["label"]],[28,[30,0,["reminderShortcutTimeTitle"]],[[30,3]],null],[28,[32,7],[[30,0,["onChooseReminderOption"]],[30,3]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null]],[]]],[1," "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","dropdown","option"],false,["unless","if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bookmark-menu.js",scope:()=>[f.default,r.array,a.default,c.default,m.default,g.i18n,u.default,r.fn],isStrictMode:!0}),this))()}},78054:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(56839),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();routeToAdminGuide(){a.default.routeTo(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}static #n=(()=>dt7948.n(this.prototype,"routeToAdminGuide",[s.action]))();static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"HNaVdZ+o",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default bootstrap-mode"]],[["@action","@label"],[[30,0,["routeToAdminGuide"]],"bootstrap_mode"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bootstrap-mode-notice.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},9832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(5938),r=n(93223),o=n(54216),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"Vz1skePn",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-left","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoryBreadcrumbs"]]],null]],null],null,[[[41,[30,1,["hasOptions"]],[[[1," "],[10,"li"],[15,5,[52,[30,1,["category"]],[28,[37,6],[[30,1,["category"]]],null]]],[12],[1,"\\n "],[8,[39,7],null,[["@category","@categories","@tagId","@editingCategory","@editingCategoryTab","@options"],[[30,1,["category"]],[30,1,["options"]],[30,0,["tag","id"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]],[28,[37,1],null,[["parentCategory","subCategory","noSubcategories","autoFilterable"],[[30,1,["parentCategory"]],[30,1,["isSubcategory"]],[30,1,["noSubcategories"]],true]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n"],[41,[30,0,["showTagsSection"]],[[[41,[30,0,["additionalTags"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,8],null,[["@currentCategory","@mainTag","@additionalTags","@options"],[[30,0,["category"]],[30,0,["tag","id"]],[30,0,["additionalTags"]],[28,[37,1],null,[["categoryId"],[[30,0,["category","id"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,9],null,[["@currentCategory","@noSubcategories","@tagId"],[[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag","id"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-right","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null]],["breadcrumb"],false,["plugin-outlet","hash","each","-track-array","if","li","category-variables","category-drop","tags-intersection-chooser","tag-drop"]]',moduleName:"discourse/components/bread-crumbs.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{editingCategory=!1;editingCategoryTab=null;static #e=(()=>dt7948.g(this.prototype,"parentCategories",[(0,s.filter)("categories",function(e){return(0,o.default)("The parentCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategories"}),(e.id!==this.site.get("uncategorized_category_id")||!!this.siteSettings.allow_uncategorized_topics)&&!e.get("parentCategory")})]))();#P=(()=>void dt7948.i(this,"parentCategories"))();categoryBreadcrumbs(e,t,n){let i=e?.ancestors||[],s=[void 0,...i],r=[...i,void 0];return s.map((e,t)=>[e,r[t]]).map(e=>{let[i,s]=e,r=t.filter(e=>e.get("parentCategory.id")===(i&&i.id));return{category:s,parentCategory:i,options:r,isSubcategory:!!i,noSubcategories:!s&&n,hasOptions:!i||i.has_children}})}static #n=(()=>dt7948.n(this.prototype,"categoryBreadcrumbs",[(0,a.default)("category","categories","noSubcategories")]))();showTagsSection(e,t){return e&&!t}static #i=(()=>dt7948.n(this.prototype,"showTagsSection",[(0,a.default)("siteSettings.tagging_enabled","editingCategory")]))();parentCategory(e){return(0,o.default)("The parentCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategory"}),e&&e.parentCategory}static #l=(()=>dt7948.n(this.prototype,"parentCategory",[(0,a.default)("category")]))();parentCategoriesSorted(e){return((0,o.default)("The parentCategoriesSorted property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategoriesSorted"}),this.siteSettings.fixed_category_positions)?e:e.sortBy("totalTopicCount").reverse()}static #u=(()=>dt7948.n(this.prototype,"parentCategoriesSorted",[(0,a.default)("parentCategories")]))();hidden(e){return this.site.mobileView&&!e}static #c=(()=>dt7948.n(this.prototype,"hidden",[(0,a.default)("category")]))();firstCategory(e,t){return(0,o.default)("The firstCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.firstCategory"}),t||e}static #d=(()=>dt7948.n(this.prototype,"firstCategory",[(0,a.default)("category","parentCategory")]))();secondCategory(e,t){return(0,o.default)("The secondCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.secondCategory"}),t&&e}static #p=(()=>dt7948.n(this.prototype,"secondCategory",[(0,a.default)("category","parentCategory")]))();childCategories(e,t){return((0,o.default)("The childCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.childCategories"}),t||!e)?[]:this.categories.filter(t=>t.get("parentCategory")===e)}static #h=(()=>dt7948.n(this.prototype,"childCategories",[(0,a.default)("firstCategory","hideSubcategories")]))()},[(0,r.classNameBindings)("hidden:hidden",":category-breadcrumb"),(0,r.tagName)("ol")]),c=(0,i.setComponentTemplate)(l,u)},63257:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(28564);let r=(0,n(82739).createTemplateFactory)({id:"+xvOX6CR",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_append_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,2],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,3],[[24,0,"topic-bulk-actions__append-tags"]],[["@action","@disabled","@label"],[[28,[37,4],[[30,2],[28,[37,5],null,[["type","tags"],["append_tags",[30,0,["tags"]]]]]],null],[28,[37,6],[[30,0,["tags"]]],null],"topics.bulk.append_tags"]],null]],["@categoryId","@performAndRefresh"],false,["p","i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/append-tags.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"tags",[s.tracked],function(){return[]}))();#M=(()=>void dt7948.i(this,"tags"))()}(0,o.setComponentTemplate)(r,a)},50893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"kFw9w5kH",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_new_category"],null]],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,3],[[28,[37,4],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@condition"],[[30,1]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@action","@label"],[[30,0,["changeCategory"]],"topics.bulk.change_category"]],null],[1,"\\n"]],[]]]]]],["@loading"],false,["p","i18n","category-chooser","fn","mut","conditional-loading-spinner","d-button"]]',moduleName:"discourse/components/bulk-actions/change-category.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{categoryId=0;async changeCategory(){await this.args.forEachPerformed({type:"change_category",category_id:this.categoryId},e=>e.set("category_id",this.categoryId))}static #e=(()=>dt7948.n(this.prototype,"changeCategory",[s.action]))()}(0,o.setComponentTemplate)(r,a)},72309:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(28564);let r=(0,n(82739).createTemplateFactory)({id:"8Xtgecm8",block:'[[[10,2],[12],[1,[28,[35,1],["topics.bulk.choose_new_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,2],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,3],null,[["@action","@disabled","@label"],[[28,[37,4],[[30,2],[28,[37,5],null,[["type","tags"],["change_tags",[30,0,["tags"]]]]]],null],[28,[37,6],[[30,0,["tags"]]],null],"topics.bulk.change_tags"]],null]],["@categoryId","@performAndRefresh"],false,["p","i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/change-tags.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"tags",[s.tracked],function(){return[]}))();#M=(()=>void dt7948.i(this,"tags"))()}(0,o.setComponentTemplate)(r,a)},39580:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(5938),o=n(18523),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"4kr6PTub",block:'[[[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["notificationLevels"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio notification-level-radio checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@value","@name","@selection"],[[30,1,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n "],[10,"strong"],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[35,6],[[30,1,["description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13],[1,"\\n\\n"],[8,[39,7],null,[["@disabled","@action","@label"],[[30,0,["disabled"]],[30,0,["changeNotificationLevel"]],"topics.bulk.change_notification_level"]],null]],["level"],false,["div","each","-track-array","label","radio-button","strong","html-safe","d-button"]]',moduleName:"discourse/components/bulk-actions/notification-level.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{notificationLevelId=null;static #e=(()=>dt7948.g(this.prototype,"disabled",[(0,r.empty)("notificationLevelId")]))();#F=(()=>void dt7948.i(this,"disabled"))();get notificationLevels(){return o.topicLevels.map(e=>({id:e.id.toString(),name:(0,a.i18n)(`topic.notifications.${e.key}.title`),description:(0,a.i18n)(`topic.notifications.${e.key}.description`)}))}changeNotificationLevel(){this.args.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId})}static #n=(()=>dt7948.n(this.prototype,"changeNotificationLevel",[s.action]))()}(0,u.setComponentTemplate)(l,c)},85320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"removeMembers",name:(0,r.i18n)("groups.members.remove_members"),description:(0,r.i18n)("groups.members.remove_members_description"),icon:"user-xmark"}),this.bulkSelection.some(e=>!e.owner)&&e.push({id:"makeOwners",name:(0,r.i18n)("groups.members.make_owners"),description:(0,r.i18n)("groups.members.make_owners_description"),icon:"shield-halved"}),this.bulkSelection.some(e=>e.owner)&&e.push({id:"removeOwners",name:(0,r.i18n)("groups.members.remove_owners"),description:(0,r.i18n)("groups.members.remove_owners_description"),icon:"shield-halved"}),this.currentUser.staff&&(this.bulkSelection.some(e=>!e.primary)&&e.push({id:"setPrimary",name:(0,r.i18n)("groups.members.make_all_primary"),description:(0,r.i18n)("groups.members.make_all_primary_description"),icon:"id-card"}),this.bulkSelection.some(e=>e.primary)&&e.push({id:"unsetPrimary",name:(0,r.i18n)("groups.members.remove_all_primary"),description:(0,r.i18n)("groups.members.remove_all_primary_description"),icon:"id-card"})),e}static #e=(()=>dt7948.n(this.prototype,"content",[(0,i.computed)("bulkSelection.[]")]))()},[(0,a.pluginApiIdentifiers)("bulk-group-member-dropdown"),(0,a.selectKitOptions)({icon:"gear",showFullTitle:!1}),(0,s.classNames)("bulk-group-member-dropdown")])},55341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"6Ud0W5uz",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"bulk-select"]],[["@action","@icon"],[[30,1,["toggleBulkSelect"]],"list"]],null],[1,"\\n"]],["@bulkSelectHelper"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-select-toggle.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"bulk-select-toggle:BulkSelectToggle"))},3791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBulkDropdownButton:()=>w,default:()=>k});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(92976),l=n(85052),u=n(41069),c=n(78662),d=n(19362),p=n(27147),h=n(21237),m=n(51969),g=n(99676),f=n(76417),_=n(82739);let y=[],b={};function w(e){y.push({id:e.id,icon:e.icon,name:(0,m.i18n)(e.label),visible:e.visible,class:e.class}),(0,u.addBulkDropdownAction)(e.id,e.action);let t={label:e.label,setComponent:!0};"performAndRefresh"===e.actionType&&(t.setComponent=!1),b[e.id]=t}class k extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get buttons(){return[{id:"dismiss-unread",icon:"check",name:(0,m.i18n)("topic_bulk_actions.dismiss.name"),visible:e=>{let{router:t}=e;return"discovery.unread"===t.currentRouteName}},{id:"dismiss-new",icon:"check",name:(0,m.i18n)("topic_bulk_actions.dismiss.name"),visible:e=>{let{router:t}=e;return"discovery.new"===t.currentRouteName}},{id:"update-category",icon:"pencil",name:(0,m.i18n)("topic_bulk_actions.update_category.name"),visible:e=>{let{topics:t}=e;return!t.some(e=>e.isPrivateMessage)}},{id:"update-notifications",icon:"d-regular",name:(0,m.i18n)("topic_bulk_actions.update_notifications.name")},{id:"reset-bump-dates",icon:"anchor",name:(0,m.i18n)("topic_bulk_actions.reset_bump_dates.name")},{id:"defer",icon:"circle",name:(0,m.i18n)("topic_bulk_actions.defer.name"),visible:e=>{let{currentUser:t}=e;return t.user_option.enable_defer}},{id:"close-topics",icon:"lock",name:(0,m.i18n)("topic_bulk_actions.close_topics.name")},{id:"archive-topics",icon:"folder",name:(0,m.i18n)("topic_bulk_actions.archive_topics.name"),visible:e=>{let{topics:t}=e;return!t.some(e=>e.isPrivateMessage)}},{id:"archive-messages",icon:"box-archive",name:(0,m.i18n)("topic_bulk_actions.archive_messages.name"),visible:e=>{let{topics:t}=e;return t.every(e=>e.isPrivateMessage)}},{id:"move-messages-to-inbox",icon:"envelope",name:(0,m.i18n)("topic_bulk_actions.move_messages_to_inbox.name"),visible:e=>{let{topics:t}=e;return t.every(e=>e.isPrivateMessage)}},{id:"unlist-topics",icon:"far-eye-slash",name:(0,m.i18n)("topic_bulk_actions.unlist_topics.name"),visible:e=>{let{topics:t}=e;return t.some(e=>e.visible)&&!t.some(e=>e.isPrivateMessage)}},{id:"relist-topics",icon:"far-eye",name:(0,m.i18n)("topic_bulk_actions.relist_topics.name"),visible:e=>{let{topics:t}=e;return t.some(e=>!e.visible)&&!t.some(e=>e.isPrivateMessage)}},{id:"append-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.append_tags.name"),visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic}},{id:"replace-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.replace_tags.name"),visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic}},{id:"remove-tags",icon:"tag",name:(0,m.i18n)("topic_bulk_actions.remove_tags.name"),visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic}},{id:"delete-topics",icon:"trash-can",name:(0,m.i18n)("topic_bulk_actions.delete_topics.name"),visible:e=>{let{currentUser:t}=e;return t.staff}},...y].filter(e=>{let{visible:t}=e;return!t||t({topics:this.args.bulkSelectHelper.selected,currentUser:this.currentUser,siteSettings:this.siteSettings,router:this.router})})}showBulkTopicActionsModal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!1,s=null,r=null,o=null;!0===n.allowSilent&&(i=!0),!0===n.custom?(t=(0,m.i18n)(b[e].label),r=e,!0===n.setComponent&&(s="set-component")):t=(0,m.i18n)(`topics.bulk.${t}`),n.description&&(o=n.description),this.modal.show(u.default,{model:{action:e,title:t,description:o,bulkSelectHelper:this.args.bulkSelectHelper,refreshClosure:()=>this.args.afterBulkActionComplete(),allowSilent:i,initialAction:s,initialActionLabel:r}})}async onSelect(e){switch(await this.dMenu.close(),e){case"dismiss-unread":this.modal.show(d.default,{model:{title:"topics.bulk.dismiss_read_with_selected",count:this.args.bulkSelectHelper.selected.length,dismissRead:e=>this.dismissRead(e)}});break;case"dismiss-new":this.modal.show(c.default,{model:{selectedTopics:this.args.bulkSelectHelper.selected,dismissCallback:e=>this.dismissRead(e)}});break;case"update-category":this.showBulkTopicActionsModal(e,"change_category",{description:(0,m.i18n)("topic_bulk_actions.update_category.description")});break;case"update-notifications":this.showBulkTopicActionsModal(e,"notification_level",{description:(0,m.i18n)("topic_bulk_actions.update_notifications.description")});break;case"close-topics":this.showBulkTopicActionsModal("close","close_topics",{allowSilent:!0});break;case"archive-topics":this.showBulkTopicActionsModal("archive","archive_topics");break;case"archive-messages":this.showBulkTopicActionsModal("archive_messages","archive_messages");break;case"move-messages-to-inbox":this.showBulkTopicActionsModal("move_messages_to_inbox","move_messages_to_inbox");break;case"unlist-topics":this.showBulkTopicActionsModal("unlist","unlist_topics");break;case"relist-topics":this.showBulkTopicActionsModal("relist","relist_topics");break;case"append-tags":this.showBulkTopicActionsModal(e,"choose_append_tags");break;case"replace-tags":this.showBulkTopicActionsModal(e,"change_tags");break;case"remove-tags":this.showBulkTopicActionsModal(e,"remove_tags");break;case"delete-topics":this.showBulkTopicActionsModal("delete","delete");break;case"reset-bump-dates":this.showBulkTopicActionsModal(e,"reset_bump_dates",{description:(0,m.i18n)("topic_bulk_actions.reset_bump_dates.description")});break;case"defer":this.showBulkTopicActionsModal(e,"defer",{description:(0,m.i18n)("topic_bulk_actions.defer.description")});break;default:b[e]&&this.showBulkTopicActionsModal(e,b[e].label,{custom:!0,setComponent:b[e].setComponent})}}static #u=(()=>dt7948.n(this.prototype,"onSelect",[r.action]))();dismissRead(e){this.args.bulkSelectHelper.dismissRead(e?"topics":"posts")}onRegisterApi(e){this.dMenu=e}static #c=(()=>dt7948.n(this.prototype,"onRegisterApi",[r.action]))();static #d=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"y5cIm15k",block:'[[[1,"\\n "],[8,[32,0],null,[["@modalForMobile","@autofocus","@identifier","@onRegisterApi"],[true,true,"bulk-select-topics-dropdown",[30,0,["onRegisterApi"]]]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[28,[32,1],["select_kit.components.bulk_select_topics_dropdown.title"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,2],["angle-down"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,5],["btn-transparent",[30,2,["id"]],[30,2,["class"]]],null]]],[["@translatedLabel","@icon","@action"],[[30,2,["name"]],[30,2,["icon"]],[28,[32,6],[[30,0,["onSelect"]],[30,2,["id"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]],null],[1," "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["dropdown","button"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-select-topics-dropdown.js",scope:()=>[g.default,m.i18n,h.default,l.default,a.default,p.default,s.fn],isStrictMode:!0}),this))()}},34258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(97355),a=n(35223),l=n(2406),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"5qvf64t2",block:'[[[11,0],[24,0,"calendar-date-time-input"],[4,[38,1],[[30,0,["setupInternalDateTime"]]],null],[4,[38,1],[[30,0,["setupPikaday"]]],null],[4,[38,2],[[30,0,["changeMinDate"]],[30,1]],null],[4,[38,2],[[30,0,["changeDate"]],[30,2]],null],[4,[38,2],[[30,0,["changeTime"]],[30,3]],null],[12],[1,"\\n "],[8,[39,3],[[24,0,"fake-input"]],null,null],[1,"\\n\\n "],[10,0],[14,0,"date-picker"],[15,1,[29,["picker-container-",[30,4]]]],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"time-pickers"],[12],[1,"\\n "],[1,[28,[35,4],["far-clock"],null]],[1,"\\n "],[8,[39,3],[[16,"maxlength",5],[24,"placeholder","hh:mm"],[24,0,"time-picker"],[4,[38,5],["input",[28,[37,6],[[30,0],[30,0,["onChangeTime"]]],null]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@minDate","@date","@time","@datePickerId"],false,["div","did-insert","did-update","input","d-icon","on","action"]]',moduleName:"discourse/components/calendar-date-time-input.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{_timeFormat=(()=>this.args.timeFormat||"HH:mm:ss")();_dateFormat=(()=>this.args.dateFormat||"YYYY-MM-DD")();_dateTimeFormat=(()=>this.args.dateTimeFormat||"YYYY-MM-DD HH:mm:ss")();_picker=null;static #e=(()=>dt7948.g(this.prototype,"_time",[s.tracked]))();#O=(()=>void dt7948.i(this,"_time"))();static #n=(()=>dt7948.g(this.prototype,"_date",[s.tracked]))();#L=(()=>void dt7948.i(this,"_date"))();setupInternalDateTime(){this._time=this.args.time,this._date=this.args.date}static #i=(()=>dt7948.n(this.prototype,"setupInternalDateTime",[r.action]))();setupPikaday(e){this.#R(e).then(e=>{this._picker=e})}static #l=(()=>dt7948.n(this.prototype,"setupPikaday",[r.action]))();onChangeTime(e){this._time=e.target.value,this.args.onChangeTime(this._time)}static #u=(()=>dt7948.n(this.prototype,"onChangeTime",[r.action]))();changeDate(){moment(this.args.date,this._dateFormat).isValid()?(this._date=this.args.date,this._picker.setDate(moment.utc(this._date).format("YYYY/MM/DD"),!0)):(this._date=null,this._picker.setDate(null))}static #c=(()=>dt7948.n(this.prototype,"changeDate",[r.action]))();changeTime(){if((0,o.isEmpty)(this.args.time)){this._time=null;return}/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.args.time)&&(this._time=this.args.time)}static #d=(()=>dt7948.n(this.prototype,"changeTime",[r.action]))();changeMinDate(){this.args.minDate&&moment(this.args.minDate,this._dateFormat).isValid()?this._picker.setMinDate(moment(this.args.minDate,this._dateFormat).toDate()):this._picker.setMinDate(null)}static #p=(()=>dt7948.n(this.prototype,"changeMinDate",[r.action]))();#R(e){return new a.Promise(t=>{(0,l.default)("/javascripts/pikaday.js").then(()=>{t(new Pikaday({field:e.querySelector(".fake-input"),container:e.querySelector(`#picker-container-${this.args.datePickerId}`),bound:!1,format:"YYYY-MM-DD",reposition:!1,firstDay:1,setDefaultDate:!0,keyboardInput:!1,i18n:{previousMonth:(0,u.i18n)("dates.previous_month"),nextMonth:(0,u.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>{let t=moment(e).format("YYYY-MM-DD");this.args.onChangeDate(t)}}))})})}}(0,d.setComponentTemplate)(c,p)},14307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(82806),r=n(70001),o=n(54729),a=n(59914),l=n(43349),u=n(40516),c=n(56839),d=n(59874),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"topic",[s.inject]))();#U=(()=>void dt7948.i(this,"topic"))();filterPosts(e){this.topic.send("filterParticipant",e)}static #i=(()=>dt7948.n(this.prototype,"filterPosts",[r.action]))();showUser(e){c.default.routeTo((0,c.userPath)(e.username_lower))}static #l=(()=>dt7948.n(this.prototype,"showUser",[r.action]))();showGroup(e){c.default.routeTo((0,c.groupPath)(e.name))}static #u=(()=>dt7948.n(this.prototype,"showGroup",[r.action]))();static #c=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"LJSOFGKD",block:'[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"card-cloak hidden"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,0],null,[["@name"],["user-card-content-container"]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,"role","dialog"]],[["@topic","@showUser","@filterPosts","@composePrivateMessage"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["filterPosts"]],[28,[32,2],["composePrivateMessage"],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],null,[["@topic","@showUser","@showGroup"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["showGroup"]]]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/card-container.js",scope:()=>[d.default,l.default,u.default,a.default],isStrictMode:!0}),this))()}},82048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addCardClickListenerSelector:()=>f,default:()=>y,resetCardClickListenerSelector:()=>_});var i=n(76417),s=n(5938),r=n(42433),o=n(54729),a=n(3737),l=n(8032),u=n(56839),c=n(20802),d=n(86211),p=n(62797);let h="#main-outlet",m="scroll.mobile-card-cloak",g=[h];function f(e){g.push(e)}function _(){g=[h]}class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"menu",[o.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #u=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();elementId=null;visible=!1;username=null;loading=null;cardTarget=null;post=null;isDocked=!1;static #d=(()=>dt7948.g(this.prototype,"postStream",[(0,s.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #p=(()=>dt7948.g(this.prototype,"viewingTopic",[(0,s.match)("router.currentRouteName",/^topic\./)]))();#z=(()=>void dt7948.i(this,"viewingTopic"))();_menuInstance=null;_show(e,t,n){if(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser)return!0;if(e=(0,c.escapeExpression)(e.toString()),t.closest(".card-content"))return this._close(),u.default.routeTo(t.href),!1;this.appEvents.trigger("card:show",e,t,n);let i=t.closest("article")?.dataset?.postId||null;if(this.visible&&(this._close(),t===this.cardTarget))return;let s=this.viewingTopic&&i?this.postStream.findLoadedPost(i):null;return this.setProperties({username:e,loading:e,cardTarget:t,post:s}),document.querySelector(".card-cloak")?.classList.remove("hidden"),this.appEvents.trigger("user-card:show",{username:e}),(0,r.next)(()=>{this._positionCard(t,n),this._showCallback(e).then(e=>{this.appEvents.trigger("user-card:after-show",{user:e})})}),this.site.mobileView&&this._bindMobileScroll(),!1}didInsertElement(){super.didInsertElement(...arguments),document.addEventListener("mousedown",this._clickOutsideHandler),document.addEventListener("keyup",this._escListener),g.forEach(e=>{document.querySelector(e).addEventListener("click",this._cardClickHandler)}),this.appEvents.on(`d-editor:preview-click-${this.elementId}`,this,"_previewClick"),this.appEvents.on(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.on("card:close",this,"_close")}_cardClickHandler(e){this.avatarSelector&&this._showCardOnClick(e,this.avatarSelector,e=>e.dataset[this.avatarDataAttrKey])||this._showCardOnClick(e,this.mentionSelector,e=>e.innerText.replace(/^@/,""))}static #h=(()=>dt7948.n(this.prototype,"_cardClickHandler",[p.bind]))();_showCardOnClick(e,t,n){let i=e.target.closest(t);if(i){if((0,a.wantsNewWindow)(e))return!0;this._show(n(i),i,e)||(e.preventDefault(),e.stopPropagation())}return!1}_topicHeaderTrigger(e,t,n){return this.set("isDocked",!0),this._show(e,t,n)}_onScroll(){(0,r.throttle)(this,this._close,1e3)}static #m=(()=>dt7948.n(this.prototype,"_onScroll",[p.bind]))();_bindMobileScroll(){window.addEventListener(m,this._onScroll)}_unbindMobileScroll(){window.removeEventListener(m,this._onScroll)}_previewClick(e,t){return this._show(e.innerText.replace(/^@/,""),e,t)}_positionCard(e){(0,r.schedule)("afterRender",async()=>{this.site.desktopView?this._menuInstance=await this.menu.show(e,{content:this.element,autoUpdate:!1,identifier:"usercard",padding:{top:54+(0,l.headerOffset)(),right:10,bottom:10,left:10},maxWidth:"unset"}):this._menuInstance=await this.menu.show(e,{content:this.element,strategy:"fixed",identifier:"usercard",computePosition:e=>{e.style.left="10px",e.style.right="10px",e.style.top="54px"}}),this.element.classList.toggle("docked-card",this.isDocked),(0,d.default)(()=>{this.element.querySelector("a.user-profile-link")?.focus()},350)})}_hide(){!this.visible&&this.site.mobileView&&document.querySelector(".card-cloak")?.classList.add("hidden"),this._menuInstance?.destroy()}static #g=(()=>dt7948.n(this.prototype,"_hide",[p.bind]))();_close(){this.setProperties({visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1}),this.site.mobileView&&this._unbindMobileScroll(),this._hide(),this.appEvents.trigger("card:hide")}willDestroyElement(){super.willDestroyElement(...arguments),document.removeEventListener("mousedown",this._clickOutsideHandler),document.removeEventListener("keyup",this._escListener),g.forEach(e=>{document.querySelector(e).removeEventListener("click",this._cardClickHandler)}),this.appEvents.off(`d-editor:preview-click-${this.elementId}`,this,"_previewClick"),this.appEvents.off(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.off("card:close",this,"_close"),this._hide()}_clickOutsideHandler(e){!this.visible||e.target.closest(`[data-${this.elementId}]`)?.getAttribute(`data-${this.elementId}`)||e.target.closest(`a.${this.triggeringLinkClass}`)||e.target.closest(`#${this.elementId}`)||this._close()}static #E=(()=>dt7948.n(this.prototype,"_clickOutsideHandler",[p.bind]))();_escListener(e){this.visible&&"Escape"===e.key&&(this.cardTarget?.focus(),this._close())}static #A=(()=>dt7948.n(this.prototype,"_escListener",[p.bind]))()}},80515:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"QwJVlBVM",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n "],[8,[39,1],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n "],[8,[39,2],[[24,0,"latest-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"latest"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["div","categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-latest-topics.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.classNames)("categories-and-latest")]),a=(0,i.setComponentTemplate)(r,o)},41077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"p3ux30M9",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n "],[8,[39,1],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n "],[8,[39,2],[[24,0,"top-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"top"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["div","categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-top-topics.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.classNames)("categories-and-top")]),a=(0,i.setComponentTemplate)(r,o)},7657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"mOfHitzq",block:'[[[1,[28,[35,0],[[30,0,["topicStatusIcon"]]],null]],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["topic","fancyTitle"]]],null]],[1,"\\n"],[13]],[],false,["d-icon","a","html-safe"]]',moduleName:"discourse/components/categories-boxes-topic.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{topicStatusIcon(e,t,n){return e?"thumbtack":t||n?"lock":"far-file-lines"}static #e=(()=>dt7948.n(this.prototype,"topicStatusIcon",[(0,r.default)("topic.pinned","topic.closed","topic.archived")]))()},[(0,s.attributeBindings)("topic.id:data-topic-id"),(0,s.tagName)("li")]),l=(0,i.setComponentTemplate)(o,a)},10311:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(97355),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"s9iPRapd",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1," "],[10,0],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,5,[28,[37,3],[[30,1,["color"]]],null]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,7],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[8,[39,9],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1," "],[1,[28,[35,10],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,1,["displayName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"featured-topics"],[12],[1,"\\n"],[41,[30,1,["topics"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["topics"]]],null]],null],null,[[[1," "],[8,[39,12],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,13],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,14],null,[["category"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],["c","topic"],false,["each","-track-array","div","category-color-variable","if","a","unless","category-logo","h3","category-title-before","d-icon","ul","categories-boxes-topic","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-boxes-with-topics.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{lockIcon="lock";anyLogos(){return this.categories.any(e=>!(0,s.isEmpty)(e.get("uploaded_logo.url")))}static #e=(()=>dt7948.n(this.prototype,"anyLogos",[(0,o.default)("categories.[].uploaded_logo.url")]))()},[(0,r.classNameBindings)(":category-boxes-with-topics","anyLogos:with-logos:no-logos"),(0,r.tagName)("section")]),u=(0,i.setComponentTemplate)(a,l)},6410:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(97355),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"2RyB3VJ2",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["categories-boxes-wrapper",[28,[37,1],null,[["categories"],[[30,0,["categories"]]]]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-before-each-box",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[15,5,[28,[37,5],[[30,1,["color"]]],null]],[15,"data-category-id",[30,1,["id"]]],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,"data-url",[30,1,["url"]]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"category-logo"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,8],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"category-details"],[12],[1,"\\n "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[8,[39,11],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1," "],[1,[28,[35,12],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,1,["displayName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1," "],[10,0],[14,0,"description"],[12],[1,"\\n "],[1,[28,[35,13],[[30,1,["description_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["isGrandParent"]],[[[42,[28,[37,3],[[28,[37,3],[[30,1,["subcategories"]]],null]],null],null,[[[1," "],[10,0],[15,"data-category-id",[30,2,["id"]]],[15,"data-notification-level",[30,2,["notificationLevelString"]]],[15,5,[28,[37,14],[[30,2,["color"]]],null]],[15,0,[29,["subcategory with-subcategories\\n ",[52,[30,2,["uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n "],[10,0],[14,0,"subcategory-box-inner"],[12],[1,"\\n "],[8,[39,15],null,[["@tagName","@category"],["h4",[30,2]]],null],[1,"\\n"],[41,[30,2,["subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["subcategories"]]],null]],null],null,[[[41,[51,[30,3,["isMuted"]]],[[[1," "],[10,1],[14,0,"subcategory"],[12],[1,"\\n "],[8,[39,11],null,[["@category"],[[30,3]]],null],[1,"\\n "],[1,[28,[35,17],[[30,3]],[["hideParent"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null]],[]],[[[41,[30,1,["subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["subcategories"]]],null]],null],null,[[[1," "],[10,3],[14,0,"subcategory"],[15,6,[30,4,["url"]]],[12],[1,"\\n "],[10,1],[14,0,"subcategory-image-placeholder"],[12],[1,"\\n"],[41,[30,4,["uploaded_logo","url"]],[[[1," "],[8,[39,8],null,[["@category"],[[30,4]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[1,[28,[35,17],[[30,4]],[["hideParent"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["category-box-after-each-box",[28,[37,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],[1]],null]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@outletArgs"],["category-boxes-after-boxes",[28,[37,1],null,[["category"],[[30,0,["c"]]]]]]],null]],["c","subcategory","subsubcategory","sc"],false,["plugin-outlet","hash","each","-track-array","div","category-color-variable","if","unless","category-logo","a","h3","category-title-before","d-icon","html-safe","border-color","category-title-link","span","category-link"]]',moduleName:"discourse/components/categories-boxes.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{lockIcon="lock";anyLogos(){return this.categories.any(e=>!(0,s.isEmpty)(e.get("uploaded_logo.url")))}static #e=(()=>dt7948.n(this.prototype,"anyLogos",[(0,o.default)("categories.[].uploaded_logo.url")]))();hasSubcategories(){return this.categories.any(e=>!(0,s.isEmpty)(e.get("subcategories")))}static #n=(()=>dt7948.n(this.prototype,"hasSubcategories",[(0,o.default)("categories.[].subcategories")]))()},[(0,r.classNameBindings)(":category-boxes","anyLogos:with-logos:no-logos","hasSubcategories:with-subcategories"),(0,r.tagName)("section")]),u=(0,i.setComponentTemplate)(a,l)},3113:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(70001),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"ERIfrH0W",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["categories-only-wrapper",[28,[37,1],null,[["categories"],[[30,0,["categories"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["mobile-categories",[28,[37,1],null,[["categories"],[[30,0,["filteredCategories"]]]]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["filteredCategories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category"],[12],[1,[28,[35,12],["categories.category"],null]],[13],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,12],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1," "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,12],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics"],[[30,2],[30,0,["showTopics"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1," "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,15],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,12],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1," "],[1,[28,[35,17],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[15,0,[29,["category-list\\n ",[52,[30,0,["showTopics"]],"with-topics"],"\\n ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["mutedCategories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics","@listType"],[[30,3],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[15,0,[29,["category-list\\n ",[52,[30,0,["showTopics"]],"with-topics"],"\\n ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category-muted"],[12],[1,[28,[35,12],["categories.category"],null]],[13],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,12],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1," "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,12],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category-muted"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["categories"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@category","@showTopics","@listType"],[[30,4],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]]]],[1,"\\n\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["below-categories-only","div",[28,[37,1],null,[["categories","showTopics"],[[30,0,["categories"]],[30,0,["showTopics"]]]]]]],null]],["c","category","c","category"],false,["plugin-outlet","hash","if","div","each","-track-array","parent-category-row","table","thead","tr","th","span","i18n","tbody","a","on","h3","d-icon","unless"]]',moduleName:"discourse/components/categories-only.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{showMuted=!1;mutedToggleIcon(e,t){return 0===t?void 0:e?"minus":"plus"}static #e=(()=>dt7948.n(this.prototype,"mutedToggleIcon",[(0,o.default)("showMutedCategories","filteredCategories.length")]))();showMutedCategories(e,t){return e||0===t}static #n=(()=>dt7948.n(this.prototype,"showMutedCategories",[(0,o.default)("showMuted","filteredCategories.length")]))();filteredCategories(e,t){return e&&0!==t?e.filter(e=>!e.isHidden):[]}static #i=(()=>dt7948.n(this.prototype,"filteredCategories",[(0,o.default)("categories","categories.length")]))();mutedCategories(e,t){return!e||0===t||e.firstObject.parent_category_id?[]:e.filterBy("hasMuted")}static #l=(()=>dt7948.n(this.prototype,"mutedCategories",[(0,o.default)("categories","categories.length")]))();toggleShowMuted(e){e?.preventDefault(),this.toggleProperty("showMuted")}static #u=(()=>dt7948.n(this.prototype,"toggleShowMuted",[s.action]))()},[(0,r.tagName)("")]),u=(0,i.setComponentTemplate)(a,l)},5896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"iLg6+yMT",block:'[[[10,0],[14,"role","heading"],[14,"aria-level","2"],[14,0,"table-heading"],[12],[1,"\\n "],[1,[28,[35,1],[[28,[37,2],["filters.",[30,0,["filter"]],".title"],null]],null]],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["categories-topics-table-heading","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["topics"]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,["topics"]]],null]],null],null,[[[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[8,[39,7],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n "],[10,0],[14,0,"more-topics"],[12],[1,"\\n"],[41,[28,[37,9],[[30,0,["siteSettings","desktop_category_page_style"]],"categories_and_latest_topics_created_date"],null],[[[1," "],[10,3],[15,6,[28,[37,11],[[28,[37,2],["/",[30,0,["filter"]],"?order=created"],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,1],["more"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[37,11],[[28,[37,2],["/",[30,0,["filter"]]],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,1],["more"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-topics"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],[[28,[37,2],["topics.none.",[30,0,["filter"]]],null]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],["t"],false,["div","i18n","concat","plugin-outlet","if","each","-track-array","topic-list/latest-topic-list-item","latest-topic-list-item","eq","a","get-url","h3"]]',moduleName:"discourse/components/categories-topic-list.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},29764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"Ee+adfCO",block:'[[[8,[39,0],null,[["@categories","@showTopics"],[[30,0,["categories"]],"true"]],null]],[],false,["categories-only"]]',moduleName:"discourse/components/categories-with-featured-topics.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},17870:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(83357),o=n(62797);let a={NORMAL:"normal",MUTED:"muted"},l=dt7948.c(class extends i.default{category=null;listType=(()=>a.NORMAL)();isHidden(e,t,n){return e&&n===a.NORMAL||!t&&n===a.MUTED}static #e=(()=>dt7948.n(this.prototype,"isHidden",[(0,o.default)("category.isHidden","category.hasMuted","listType")]))();isMuted(e,t){return e&&t===a.NORMAL||!e&&t===a.MUTED}static #n=(()=>dt7948.n(this.prototype,"isMuted",[(0,o.default)("category.isMuted","listType")]))();get unreadTopicsCount(){return this.category.unreadTopicsCount}get newTopicsCount(){return this.category.newTopicsCount}slugPath(e){return e.substring(3)}static #i=(()=>dt7948.n(this.prototype,"slugPath",[(0,o.default)("category.path")]))();applyValueTransformer(e,t,n){return(0,r.applyValueTransformer)(e,t,n)}},[(0,s.tagName)("")])},81047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(53898),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"z+CHxD7Q",block:'[[[1,"\\n "],[10,0],[14,0,"category-logo aspect-image"],[12],[1,"\\n "],[8,[32,0],null,[["@lightImg","@darkImg"],[[30,1,["uploaded_logo"]],[30,1,["uploaded_logo_dark"]]]],null],[1,"\\n "],[13],[1,"\\n"]],["@category"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-logo.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"category-logo:CategoryLogo"))},4200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"ou1POVtQ",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["category-name-fields-details",[28,[37,1],null,[["category"],[[30,0,["category"]]]]]]],[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"field category-name-fields"],[12],[1,"\\n"],[41,[51,[30,0,["category","isUncategorizedCategory"]]],[[[1," "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,5],["category.name"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"category-name"]],[["@value","@placeholderKey","@maxlength"],[[30,0,["category","name"]],"category.name_placeholder","50"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,5],["category.slug"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@value","@placeholderKey","@maxlength"],[[30,0,["category","slug"]],"category.slug_placeholder","255"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],[],false,["plugin-outlet","hash","section","unless","label","i18n","text-field"]]',moduleName:"discourse/components/category-name-fields.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},24326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(49409),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"S+mvTCGS",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"category-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix","@title"],[[30,1],[30,2],[30,3],[30,4],"category.notifications",[28,[32,1],["category.notifications.title"],null]]],null],[1,"\\n"]],["@onChange","@levelId","@showCaret","@showFullTitle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-notifications-tracking.js",scope:()=>[i.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"category-notifications-tracking:CategoryNotificationsTracking"))},12246:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(27147),l=n(30975),u=n(87389),c=n(51969),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get everyonePermissionType(){return this.args.everyonePermission?.permission_type}get canReply(){return this.args.type===l.default.CREATE_POST||this.args.type===l.default.FULL}get canCreate(){return this.args.type===l.default.FULL}get canCreateIcon(){return this.canCreate?"square-check":"far-square"}get canReplyIcon(){return this.canReply?"square-check":"far-square"}get replyGrantedClass(){return this.args.type<=l.default.CREATE_POST?"reply-granted":""}get createGrantedClass(){return this.args.type===l.default.FULL?"create-granted":""}get isEveryoneGroup(){return"everyone"===this.args.groupName}get replyDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&this.everyonePermissionType<=l.default.CREATE_POST}get replyTooltip(){return this.replyDisabled?(0,c.i18n)("category.permissions.inherited"):(0,c.i18n)("category.permissions.toggle_reply")}get createDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&this.everyonePermissionType===l.default.FULL}get createTooltip(){return this.createDisabled?(0,c.i18n)("category.permissions.inherited"):(0,c.i18n)("category.permissions.toggle_full")}get groupLink(){return(0,u.default)(`/g/${this.args.groupName}`)}removeRow(e){e?.preventDefault(),this.args.category.removePermission(this.args.groupName)}static #n=(()=>dt7948.n(this.prototype,"removeRow",[s.action]))();setPermissionReply(){this.args.type<=l.default.CREATE_POST?this.#$(l.default.READONLY):this.#$(l.default.CREATE_POST)}static #i=(()=>dt7948.n(this.prototype,"setPermissionReply",[s.action]))();setPermissionFull(){(this.isEveryoneGroup||this.everyonePermissionType!==l.default.FULL)&&(this.args.type===l.default.FULL?this.#$(l.default.CREATE_POST):this.#$(l.default.FULL))}static #l=(()=>dt7948.n(this.prototype,"setPermissionFull",[s.action]))();#$(e){this.args.category.updatePermission(this.args.groupName,e),this.isEveryoneGroup&&this.args.onChangeEveryonePermission(e)}static #u=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"N1S2cY6F",block:'[[[1,"\\n "],[10,0],[14,0,"permission-row row-body"],[15,"data-group-name",[30,1]],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,"\\n"],[41,[30,0,["isEveryoneGroup"]],[[[1," "],[10,1],[14,0,"group-name-label"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[14,0,"group-name-link"],[15,6,[30,0,["groupLink"]]],[12],[1,[30,1]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"options actionable"],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat see"]],[["@icon","@disabled"],["square-check",true]],null],[1,"\\n\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn btn-flat reply-toggle",[30,0,["replyGrantedClass"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canReplyIcon"]],[30,0,["setPermissionReply"]],[30,0,["replyTooltip"]],[30,0,["replyDisabled"]]]],null],[1,"\\n\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn-flat create-toggle",[30,0,["createGrantedClass"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canCreateIcon"]],[30,0,["setPermissionFull"]],[30,0,["createTooltip"]],[30,0,["createDisabled"]]]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"remove-permission btn-flat"]],[["@action","@icon"],[[30,0,["removeRow"]],"trash-can"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@groupName"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-permission-row.js",scope:()=>[o.default,a.default],isStrictMode:!0}),this))()}},852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(5938),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"tNrr7+6g",block:'[[[41,[30,0,["shouldShow"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-info category-read-only-banner"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["category","read_only_banner"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","html-safe"]]',moduleName:"discourse/components/category-read-only-banner.hbs",isStrictMode:!1});class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"shouldShow",[(0,s.and)("category.read_only_banner","readOnly","user")]))();#q=(()=>void dt7948.i(this,"shouldShow"))();user(){return this.currentUser}static #n=(()=>dt7948.n(this.prototype,"user",[r.default]))()}(0,i.setComponentTemplate)(o,a)},60393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"xN5FMwDU",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["category-title-before",[28,[37,1],null,[["category"],[[30,0,["category"]]]]]]],null]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/category-title-before.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("")]),a=(0,i.setComponentTemplate)(r,o)},21189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"ltyGIunA",block:'[[[10,3],[14,0,"category-title-link"],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[10,0],[14,0,"category-text-title"],[12],[1,"\\n "],[8,[39,2],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","read_restricted"]],[[[1," "],[1,[28,[35,4],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"category-name"],[12],[1,[28,[35,6],[[30,0,["category","displayName"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["category","uploaded_logo","url"]],[[[1," "],[8,[39,7],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[13]],[],false,["a","div","category-title-before","if","d-icon","span","dir-span","category-logo"]]',moduleName:"discourse/components/category-title-link.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("h3")]),a=(0,i.setComponentTemplate)(r,o);o.prototype.lockIcon="lock"},53130:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"LrkNZZVB",block:'[[[41,[30,0,["unreadTopicsCount"]],[[[1," "],[10,3],[15,6,[30,0,["category","unreadUrl"]]],[15,"title",[28,[37,2],["topic.unread_topics"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,2],["filters.unread.lower_title_with_count"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["newTopicsCount"]],[[[1," "],[10,3],[15,6,[30,0,["category","newUrl"]]],[15,"title",[28,[37,2],["topic.new_topics"],[["count"],[[30,0,["newTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,2],["filters.new.lower_title_with_count"],[["count"],[[30,0,["newTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["if","a","i18n"]]',moduleName:"discourse/components/category-unread.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.classNames)("category__badges"),(0,s.tagName)("span")]),a=(0,i.setComponentTemplate)(r,o)},60362:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(35804),r=n(87389),o=n(76417),a=n(82739);class l extends i.default{get cdnSrc(){return(0,r.getURLWithCDN)(this.args.src)}get style(){if(this.args.width&&this.args.height)return(0,s.htmlSafe)(`--aspect-ratio: ${this.args.width/this.args.height};`)}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"NED4BHCL",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,"img"],[17,2],[16,"src",[30,0,["cdnSrc"]]],[16,"width",[30,3]],[16,"height",[30,4]],[16,5,[30,0,["style"]]],[24,"alt",""],[12],[13],[1,"\\n"]],[]],null],[1," "]],["@src","&attrs","@width","@height"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/cdn-img.js",isStrictMode:!0}),this))()}},9968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"dgnS0dsy",block:'[[[11,0],[16,0,[28,[37,1],["char-counter",[52,[28,[37,3],[[30,1,["length"]],[30,2]],null],"exceeded"]],null]],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[10,"small"],[14,0,"char-counter__ratio"],[12],[1,"\\n "],[1,[30,1,["length"]]],[1,"/"],[1,[30,2]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,"aria-live","polite"],[14,0,"sr-only"],[12],[1,"\\n "],[1,[52,[28,[37,3],[[30,1,["length"]],[30,2]],null],[28,[37,7],["char_counter.exceeded"],null]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@value","@max","&attrs","&default"],false,["div","concat-class","if","gt","yield","small","span","i18n"]]',moduleName:"discourse/components/char-counter.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"char-counter"))},15004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(42433),o=n(97355),a=n(9630),l=n(14682),u=n.n(l),c=n(84188),d=n(62797);let p=(0,n(82739).createTemplateFactory)({id:"ch3fWJnu",block:'[[[10,"label"],[14,"for","choose-message-title"],[12],[1,[28,[35,1],["choose_message.title.search"],null]],[13],[1,"\\n\\n"],[8,[39,2],null,[["@value","@placeholderKey","@id"],[[30,0,["messageTitle"]],"choose_message.title.placeholder","choose-message-title"]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,2],[12],[1,[28,[35,1],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noResults"]],[[[1," "],[10,2],[12],[1,[28,[35,1],["choose_message.none_found"],null]],[13],[1,"\\n"]],[]],[[[42,[28,[37,6],[[28,[37,6],[[30,0,["messages"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls existing-message"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[12],[1,"\\n "],[11,"input"],[16,1,[29,["choose-message-",[30,1,["id"]]]]],[24,3,"choose_message_id"],[24,4,"radio"],[4,[38,9],["click",[28,[37,10],[[30,0,["chooseMessage"]],[30,1]],null]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"message-title"],[12],[1,"\\n "],[1,[30,1,["title"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],[]]]],[]]]],["m"],false,["label","i18n","text-field","if","p","each","-track-array","div","input","on","fn","span"]]',moduleName:"discourse/components/choose-message.hbs",isStrictMode:!1});class h extends i.default{loading=null;noResults=null;messages=null;messageTitleChanged(){this.setProperties({loading:!0,noResults:!0,selectedTopicId:null}),this.search(this.messageTitle)}static #e=(()=>dt7948.n(this.prototype,"messageTitleChanged",[(0,a.observes)("messageTitle")]))();messagesChanged(){let e=this.messages;e&&this.set("noResults",0===e.length),this.set("loading",!1)}static #n=(()=>dt7948.n(this.prototype,"messagesChanged",[(0,a.observes)("messages")]))();search(e){if((0,o.isEmpty)(e)){this.setProperties({messages:null,loading:!1});return}(0,c.searchForTerm)(e,{typeFilter:"private_messages",searchForId:!0,restrictToArchetype:"private_message"}).then(e=>{e?.posts?.length?this.set("messages",e.posts.mapBy("topic").filter(e=>e.get("id")!==this.currentTopicId)):this.setProperties({messages:null,loading:!1})})}static #i=(()=>dt7948.n(this.prototype,"search",[(0,d.debounce)(300)]))();chooseMessage(e,t){t?.preventDefault();let n=(0,s.get)(e,"id");this.set("selectedTopicId",n),(0,r.next)(()=>u()(`#choose-message-${n}`).prop("checked","true"))}static #l=(()=>dt7948.n(this.prototype,"chooseMessage",[s.action]))()}(0,i.setComponentTemplate)(p,h)},5778:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(97355),a=n(64149),l=n(84188),u=n(45929),c=n(62797);let d=(0,n(82739).createTemplateFactory)({id:"E14dI1+M",block:'[[[10,0],[12],[1,"\\n "],[10,"label"],[14,"for","choose-topic-title"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],[[28,[37,4],[[30,1],"choose_topic.title.search"],null]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,"input"],[16,"placeholder",[28,[37,3],["choose_topic.title.placeholder"],null]],[24,1,"choose-topic-title"],[24,4,"text"],[4,[38,6],["keydown",[30,0,["ignoreEnter"]]],null],[4,[38,6],["input",[30,0,["onTopicTitleChange"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,2],[12],[1,[28,[35,3],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[28,[37,9],[[30,0,["topics","length"]]],null],[[[1," "],[10,2],[12],[1,[28,[35,3],["choose_topic.none_found"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"choose-topic-list"],[14,"role","radiogroup"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["topics"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls existing-topic"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[12],[1,"\\n "],[8,[39,5],[[24,3,"choose_topic_id"],[16,1,[28,[37,12],["choose-topic-",[30,2,["id"]]],null]],[4,[38,6],["click",[28,[37,14],[[30,0,["chooseTopic"]],[30,2]],null]],null]],[["@checked","@type"],[[28,[37,13],[[30,2,["id"]],[30,0,["selectedTopicId"]]],null],"radio"]],null],[1,"\\n "],[8,[39,15],null,[["@topic","@disableActions"],[[30,2],true]],null],[1,"\\n "],[10,1],[14,0,"topic-title"],[12],[1,"\\n "],[1,[28,[35,16],[[30,2,["title"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"topic-categories"],[12],[1,"\\n "],[1,[28,[35,17],[[30,2,["category"]]],[["ancestors","hideParent","link"],[[30,2,["category","predecessors"]],true,false]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "]],[]]]],[]]],[13]],["@label","t"],false,["div","label","span","i18n","or","input","on","if","p","not","each","-track-array","concat","eq","fn","topic-status","replace-emoji","bound-category-link"]]',moduleName:"discourse/components/choose-topic.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"topics",[s.tracked]))();#H=(()=>void dt7948.i(this,"topics"))();topicTitle;constructor(){super(...arguments),this.args.loadOnInit&&(0,o.isPresent)(this.args.additionalFilters)&&this.initialSearch()}async initialSearch(){try{let e=await (0,l.searchForTerm)(this.args.additionalFilters);if(!e?.posts?.length)return;this.topics=e.posts.mapBy("topic").filter(e=>e.id!==this.args.currentTopicId)}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}async search(e){let t;if(this.isDestroying||this.isDestroyed)return;if((0,o.isEmpty)(e)&&(0,o.isEmpty)(this.args.additionalFilters)){this.topics=null,this.loading=!1;return}let n=[e,this.args.additionalFilters].filter(Boolean).join(" ");(0,o.isPresent)(e)&&(t={typeFilter:"topic",restrictToArchetype:"regular",searchForId:!0});try{let i=await (0,l.searchForTerm)(n,t);if(e!==this.topicTitle)return;if(!i?.posts?.length){this.topics=null;return}this.topics=i.posts.mapBy("topic").filter(e=>e.id!==this.args.currentTopicId),1===this.topics.length&&this.chooseTopic(this.topics[0])}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}static #i=(()=>dt7948.n(this.prototype,"search",[(0,c.debounce)(u.INPUT_DELAY)]))();async onTopicTitleChange(e){this.topicTitle=e.target.value,this.loading=!0,await this.search(this.topicTitle)}static #l=(()=>dt7948.n(this.prototype,"onTopicTitleChange",[r.action]))();ignoreEnter(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}static #u=(()=>dt7948.n(this.prototype,"ignoreEnter",[r.action]))();chooseTopic(e){this.args.topicChangedCallback(e)}static #c=(()=>dt7948.n(this.prototype,"chooseTopic",[r.action]))()}(0,p.setComponentTemplate)(d,h)},4852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(35804),r=n(93223),o=n(62797),a=n(51969);let l=dt7948.c(class extends i.default{isUsed(e,t){return(t||[]).includes(e.toUpperCase())}static #e=(()=>dt7948.n(this.prototype,"isUsed",[(0,o.default)("color","usedColors")]))();title(e){return e?(0,a.i18n)("category.already_used"):null}static #n=(()=>dt7948.n(this.prototype,"title",[(0,o.default)("isUsed")]))();style(e){return(0,s.htmlSafe)(`background-color: #${e};`)}static #i=(()=>dt7948.n(this.prototype,"style",[(0,o.default)("color")]))();click(e){e.preventDefault(),this.selectColor(this.color)}},[(0,r.classNameBindings)(":colorpicker","isUsed:used-color:unused-color"),(0,r.attributeBindings)("style","title","ariaLabel:aria-label"),(0,r.tagName)("button")])},96431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(70001),r=n(93223),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"qMChWhMk",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["colors"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@color","@usedColors","@selectColor","@ariaLabel"],[[30,1],[30,0,["usedColors"]],[28,[37,3],[[30,0],"selectColor"],null],[28,[30,0,["getColorLabel"]],[[30,1]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["check"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null]],["c"],false,["each","-track-array","color-picker-choice","action","d-icon"]]',moduleName:"discourse/components/color-picker.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{role="group";selectColor(e){this.set("value",e)}static #e=(()=>dt7948.n(this.prototype,"selectColor",[s.action]))();getColorLabel(e){let t=this.usedColors?.includes(e.toUpperCase())?(0,o.i18n)("category.color_used"):"";return`#${e} ${t}`}static #n=(()=>dt7948.n(this.prototype,"getColorLabel",[s.action]))()},[(0,r.attributeBindings)("role","ariaLabel:aria-label"),(0,r.classNames)("colors-container")]),u=(0,i.setComponentTemplate)(a,l)},4208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(76417),s=n(5938),r=n(35804),o=n(93223),a=n(2151),l=n(29166),u=n(20762),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"puPlMiRq",block:'[[[8,[39,0],null,[["@composerModel","@replyOptions","@canWhisper","@action","@tabindex","@topic","@post","@whisper","@noBump","@options"],[[30,0,["model"]],[30,0,["model","replyOptions"]],[30,0,["canWhisper"]],[30,0,["model","action"]],[30,0,["tabindex"]],[30,0,["model","topic"]],[30,0,["model","post"]],[30,0,["model","whisper"]],[30,0,["model","noBump"]],[28,[37,1],null,[["mobilePlacementStrategy"],["fixed"]]]]],null],[1,"\\n\\n"],[10,1],[14,0,"action-title"],[14,"role","heading"],[14,"aria-level","1"],[12],[1,"\\n "],[1,[30,0,["actionTitle"]]],[1,"\\n"],[13]],[],false,["composer-actions","hash","span"]]',moduleName:"discourse/components/composer-action-title.hbs",isStrictMode:!1}),h={[a.PRIVATE_MESSAGE]:"topic.private_message",[a.CREATE_TOPIC]:"topic.create_long",[a.CREATE_SHARED_DRAFT]:"composer.create_shared_draft",[a.EDIT_SHARED_DRAFT]:"composer.edit_shared_draft"},m=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"options",[(0,s.alias)("model.replyOptions")]))();#V=(()=>void dt7948.i(this,"options"))();static #n=(()=>dt7948.g(this.prototype,"action",[(0,s.alias)("model.action")]))();#W=(()=>void dt7948.i(this,"action"))();actionTitle(e,t){let n=this.model.customizationFor("actionTitle");if(n)return n;if(h[t])return(0,d.i18n)(h[t]);if(t===a.REPLY){if(e.userAvatar&&e.userLink)return this._formatReplyToUserPost(e.userAvatar,e.userLink);if(e.topicLink)return this._formatReplyToTopic(e.topicLink)}if(t===a.EDIT&&e.userAvatar&&e.userLink&&e.postLink)return this._formatEditUserPost(e.userAvatar,e.userLink,e.postLink,e.originalUser)}static #i=(()=>dt7948.n(this.prototype,"actionTitle",[(0,c.default)("options","action","model.tags","model.category")]))();_formatEditUserPost(e,t,n,i){let s=` ${n.anchor} ${e} ${t.anchor} `;return i&&(s+=` ${(0,u.iconHTML)("share",{class:"reply-to-glyph"})} ${i.avatar} ${i.username} `),(0,r.htmlSafe)(s)}_formatReplyToTopic(e){return(0,r.htmlSafe)(`${e.anchor}`)}_formatReplyToUserPost(e,t){let n=`${(0,l.default)(t.anchor)}`;return(0,r.htmlSafe)(`${e}${n}`)}},[(0,o.classNames)("composer-action-title")]),g=(0,i.setComponentTemplate)(p,m)},42446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(76417),s=n(42433),r=n(93223),o=n(9630),a=n(8032),l=n(52051),u=n(20802),c=n(2151),d=n(84262),p=n(86211),h=n(62797);let m=["touchstart","mousedown"],g=["touchmove","mousemove"],f=["touchend","mouseup"];function _(e){return e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY}let y=dt7948.c(class extends i.default{elementId="reply-control";prefixedComposerAction(e){return e?`composer-action-${e}`:""}static #e=(()=>dt7948.n(this.prototype,"prefixedComposerAction",[(0,h.default)("composer.action")]))();currentUserPrimaryGroupClass(e){return e&&`group-${e}`}static #n=(()=>dt7948.n(this.prototype,"currentUserPrimaryGroupClass",[(0,h.default)("currentUser.primary_group_name")]))();composeState(e){return e||c.default.CLOSED}static #i=(()=>dt7948.n(this.prototype,"composeState",[(0,h.default)("composer.composeState")]))();keyUp(){this.typed();let e=new Date;this._lastKeyUp=e,(0,s.cancel)(this._lastKeyTimeout),this._lastKeyTimeout=(0,p.default)(()=>{e===this._lastKeyUp&&this.appEvents.trigger("composer:find-similar")},1e3)}disableFullscreen(){this.composeState!==c.default.OPEN&&l.default.blur&&l.default.blur()}static #l=(()=>dt7948.n(this.prototype,"disableFullscreen",[(0,o.observes)("composeState")]))();setupComposerResizeEvents(){this.origComposerSize=0,this.lastMousePos=0,m.forEach(e=>{this.element.querySelector(".grippie")?.addEventListener(e,this.startDragHandler,{passive:!1})})}performDragHandler(){this.appEvents.trigger("composer:div-resizing"),this.element.classList.add("clear-transitions");let e=_(event),t=this.origComposerSize+(this.lastMousePos-e);t=Math.min(t,window.innerHeight-(0,a.headerOffset)()),t=Math.max(parseInt(getComputedStyle(this.element).minHeight,10),t),this.set("composer.composerHeight",`${t}px`),this.keyValueStore.set({key:"composerHeight",value:this.get("composer.composerHeight")}),document.documentElement.style.setProperty("--composer-height",t?`${t}px`:""),this._triggerComposerResized()}static #u=(()=>dt7948.n(this.prototype,"performDragHandler",[h.bind]))();_triggerComposerResized(){(0,s.schedule)("afterRender",()=>{(0,d.default)(this,this.composerResized,300)})}static #c=(()=>dt7948.n(this.prototype,"_triggerComposerResized",[(0,o.observes)("composeState","composer.{action,canEditTopicFeaturedLink}")]))();composerResized(){!this.element||this.isDestroying||this.isDestroyed||this.appEvents.trigger("composer:resized")}startDragHandler(e){e.preventDefault(),this.origComposerSize=this.element.offsetHeight,this.lastMousePos=_(e),g.forEach(e=>{document.addEventListener(e,this.throttledPerformDrag)}),f.forEach(e=>{document.addEventListener(e,this.endDragHandler)}),this.appEvents.trigger("composer:resize-started")}static #d=(()=>dt7948.n(this.prototype,"startDragHandler",[h.bind]))();endDragHandler(){this.appEvents.trigger("composer:resize-ended"),g.forEach(e=>{document.removeEventListener(e,this.throttledPerformDrag)}),f.forEach(e=>{document.removeEventListener(e,this.endDragHandler)}),this.element.classList.remove("clear-transitions"),this.element.focus()}static #p=(()=>dt7948.n(this.prototype,"endDragHandler",[h.bind]))();throttledPerformDrag(e){e.preventDefault(),(0,s.throttle)(this,this.performDragHandler,e,20)}static #h=(()=>dt7948.n(this.prototype,"throttledPerformDrag",[h.bind]))();didInsertElement(){super.didInsertElement(...arguments),this.setupComposerResizeEvents();let e=()=>{this.get("composer.composeState")===c.default.OPEN&&this.appEvents.trigger("composer:opened")};e(),this.element.addEventListener("transitionend",t=>{"height"===t.propertyName&&e()}),(0,l.default)(this.element)}willDestroyElement(){super.willDestroyElement(...arguments),m.forEach(e=>{this.element.querySelector(".grippie")?.removeEventListener(e,this.startDragHandler)}),(0,s.cancel)(this._lastKeyTimeout)}click(){this.openIfDraft()}keyDown(e){"Escape"===e.key?(e.preventDefault(),this.cancelled()):"Enter"===e.key&&(e.ctrlKey||e.metaKey||(0,u.isiPad)()&&e.altKey)&&(e.preventDefault(),this.save(void 0,e))}},[(0,r.classNameBindings)("composer.creatingPrivateMessage:private-message","composeState","composer.loading","prefixedComposerAction","composer.canEditTitle:edit-title","composer.createdPost:created-post","composer.creatingTopic:topic","composer.whisper:composing-whisper","composer.sharedDraft:composing-shared-draft","showPreview:show-preview:hide-preview","currentUserPrimaryGroupClass")])},80568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"+6dBjM3B",block:'[[[8,[39,0],null,[["@composer","@showPreview","@openIfDraft","@typed","@cancelled","@save"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","typed"]],[30,0,["composer","cancelled"]],[30,0,["composer","saveAction"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"grippie"],[12],[13],[1,"\\n"],[41,[30,0,["composer","visible"]],[[[1," "],[8,[39,3],null,[["@composer","@messageCount","@addLinkLookup"],[[30,0,["composer","model"]],[30,0,["composer","messageCount"]],[30,0,["composer","addLinkLookup"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","showFullScreenPrompt"]],[[[1," "],[8,[39,4],null,[["@removeFullScreenExitPrompt"],[[30,0,["composer","removeFullScreenExitPrompt"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","viewOpenOrFullscreen"]],[[[1," "],[10,0],[14,"role","dialog"],[15,"aria-label",[30,0,["composer","ariaLabel"]]],[15,0,[29,["reply-area\\n ",[52,[30,0,["composer","canEditTags"]],"with-tags","without-tags"],"\\n ",[52,[30,0,["composer","hasFormTemplate"]],"with-form-template","without-form-template"],"\\n ",[52,[30,0,["composer","model","showCategoryChooser"]],"with-category","without-category"]]]],[12],[1,"\\n "],[10,1],[14,0,"composer-open-plugin-outlet-container"],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-open","div",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reply-to"],[12],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[1," "],[10,0],[14,0,"reply-details"],[12],[1,"\\n "],[8,[39,9],null,[["@model","@canWhisper"],[[30,0,["composer","model"]],[30,0,["composer","canWhisper"]]]],null],[1,"\\n\\n "],[8,[39,6],null,[["@name","@outletArgs"],["composer-action-after",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[41,[30,0,["composer","model","unlistTopic"]],[[[1," "],[10,1],[14,0,"unlist"],[12],[1,"("],[1,[28,[35,10],["composer.unlist"],null]],[1,")"],[13],[1,"\\n"]],[]],null],[41,[30,0,["composer","isWhispering"]],[[[41,[30,0,["composer","model","noBump"]],[[[1," "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,11],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1," "],[8,[39,12],[[24,0,"display-edit-reason"]],[["@onClick","@showInput","@icon"],[[30,0,["composer","displayEditReason"]],[30,0,["composer","showEditReason"]],"circle-info"]],[["default"],[[[[1,"\\n "],[8,[39,13],null,[["@value","@id","@maxlength","@placeholderKey"],[[30,0,["composer","editReason"]],"edit-reason","255","composer.edit_reason_placeholder"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["before-composer-controls",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n "],[8,[39,14],null,[["@composeState","@showToolbar","@toggleComposer","@toggleToolbar","@toggleFullscreen","@disableTextarea"],[[30,0,["composer","model","composeState"]],[30,0,["composer","showToolbar"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]],[30,0,["composer","fullscreenComposer"]],[30,0,["composer","disableTextarea"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,15],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"composer-fields"],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["before-composer-fields",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[41,[30,0,["composer","model","canEditTitle"]],[[[41,[30,0,["composer","model","creatingPrivateMessage"]],[[[1," "],[10,0],[14,0,"user-selector"],[12],[1,"\\n "],[8,[39,16],[[16,0,[28,[37,17],["users-input",[52,[30,0,["composer","showWarning"]],"can-warn"]],null]]],[["@topicId","@recipients","@hasGroups","@focusTarget"],[[30,0,["composer","topicModel","id"]],[30,0,["composer","model","targetRecipients"]],[30,0,["composer","model","hasTargetGroups"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n"],[41,[30,0,["composer","showWarning"]],[[[1," "],[10,"label"],[14,0,"add-warning"],[12],[1,"\\n "],[8,[39,19],null,[["@type","@checked"],["checkbox",[30,0,["composer","model","isWarning"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,10],["composer.add_warning"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[29,["title-and-category\\n ",[52,[30,0,["composer","showPreview"]],"with-preview"]]]],[12],[1,"\\n "],[8,[39,20],null,[["@composer","@lastValidatedAt","@focusTarget"],[[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","model","showCategoryChooser"]],[[[1," "],[10,0],[14,0,"category-input"],[12],[1,"\\n "],[8,[39,21],null,[["@value","@onChange","@options"],[[30,0,["composer","model","categoryId"]],[30,0,["composer","updateCategory"]],[28,[37,7],null,[["disabled","scopedCategoryId","prioritizedCategoryId"],[[30,0,["composer","disableCategoryChooser"]],[30,0,["composer","scopedCategoryId"]],[30,0,["composer","prioritizedCategoryId"]]]]]]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["after-composer-category-input",[28,[37,7],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[39,22],null,[["@validation"],[[30,0,["composer","categoryValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEditTags"]],[[[1," "],[10,0],[14,0,"tags-input"],[12],[1,"\\n "],[8,[39,23],null,[["@value","@onChange","@options"],[[30,0,["composer","model","tags"]],[28,[37,24],[[28,[37,25],[[30,0,["composer","model","tags"]]],null]],null],[28,[37,7],null,[["disabled","categoryId","minimum"],[[30,0,["composer","disableTagsChooser"]],[30,0,["composer","model","categoryId"]],[30,0,["composer","model","minimumRequiredTags"]]]]]]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["after-composer-tag-input",[28,[37,7],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[39,22],null,[["@validation"],[[30,0,["composer","tagValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["after-title-and-category",[28,[37,7],null,[["model","tagValidation","canEditTags","disabled"],[[30,0,["composer","model"]],[30,0,["composer","tagValidation"]],[30,0,["composer","canEditTags"]],[30,0,["composer","disableTagsChooser"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields","div",[28,[37,7],null,[["model","showPreview"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["composer-after-composer-editor",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"submit-panel"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields-below","div",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"save-or-cancel"],[12],[1,"\\n "],[8,[39,26],null,[["@action","@icon","@label","@forwardEvent","@disableSubmit"],[[30,0,["composer","saveAction"]],[30,0,["composer","saveIcon"]],[30,0,["composer","saveLabel"]],true,[30,0,["composer","disableSubmit"]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[11,3],[24,6,""],[16,"title",[28,[37,10],["cancel"],null]],[24,0,"cancel"],[4,[38,28],["click",[30,0,["composer","cancel"]]],null],[12],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1," "],[1,[28,[35,11],["xmark"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],["trash-can"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[24,6,""],[24,0,"cancel"],[24,"role","button"],[4,[38,28],["click",[30,0,["composer","cancel"]]],null],[12],[1,[28,[35,10],["close"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["composer","whisperOrUnlistTopic"]],[[[1," "],[10,1],[14,0,"whisper"],[12],[1,"\\n "],[1,[28,[35,11],["far-eye-slash"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","noBump"]],[[[1," "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,11],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["composer-after-save-or-cancel",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,1],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["composer-mobile-buttons-bottom",[28,[37,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["composer","allowUpload"]],[[[1," "],[10,3],[14,1,"mobile-file-upload"],[15,0,[29,["btn btn-default no-text mobile-file-upload\\n ",[52,[30,0,["composer","isUploading"]],"hidden"]]]],[15,"aria-label",[28,[37,10],["composer.upload_title"],null]],[12],[1,"\\n "],[1,[28,[35,11],[[30,0,["composer","uploadIcon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[24,6,""],[24,0,"btn btn-default no-text mobile-preview"],[16,"title",[28,[37,10],["composer.show_preview"],null]],[16,"aria-label",[28,[37,10],["composer.show_preview"],null]],[4,[38,28],["click",[30,0,["composer","togglePreview"]]],null],[12],[1,"\\n "],[1,[28,[35,11],["desktop"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["composer","showPreview"]],[[[1," "],[8,[39,29],[[24,0,"hide-preview"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["composer","togglePreview"]],"composer.hide_preview","composer.hide_preview","pencil"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,30],[[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]]],null],[[[1," "],[10,0],[14,1,"file-uploading"],[12],[1,"\\n"],[41,[30,0,["composer","isProcessingUpload"]],[[[1," "],[1,[28,[35,31],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,10],["upload_selector.processing"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,31],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,10],["upload_selector.uploading"],null]],[1,"\\n "],[1,[30,0,["composer","uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","isCancellable"]],[[[1," "],[11,3],[24,6,""],[24,1,"cancel-file-upload"],[4,[38,28],["click",[30,0,["composer","cancelUpload"]]],null],[12],[1,[28,[35,11],["xmark"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[52,[30,0,["composer","isUploading"]],"hidden"]],[14,1,"draft-status"],[12],[1,"\\n"],[41,[30,0,["composer","model","draftStatus"]],[[[1," "],[10,1],[14,0,"draft-error"],[15,"title",[30,0,["composer","model","draftStatus"]]],[12],[1,"\\n"],[41,[30,0,["composer","model","draftConflictUser"]],[[[1," "],[1,[28,[35,32],[[30,0,["composer","model","draftConflictUser"]]],[["imageSize"],["small"]]]],[1,"\\n "],[1,[28,[35,11],["user-pen"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],["triangle-exclamation"],null]],[1,"\\n"]],[]]],[41,[30,0,["site","desktopView"]],[[[1," "],[1,[30,0,["composer","model","draftStatus"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,29],[[16,0,[28,[37,17],["btn-transparent btn-mini-toggle toggle-preview",[52,[51,[30,0,["composer","showPreview"]]],"active"]],null]]],[["@action","@translatedTitle","@icon"],[[30,0,["composer","togglePreview"]],[30,0,["composer","toggleText"]],"angles-left"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"saving-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","createdPost"]],[[[1," "],[1,[28,[35,10],["composer.saved"],null]],[1,"\\n "],[11,3],[16,6,[30,0,["composer","createdPost","url"]]],[24,0,"permalink"],[4,[38,28],["click",[30,0,["composer","viewNewReply"]]],null],[12],[1,[28,[35,10],["composer.view_new_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["composer.saving"],null]],[1,"\\n "],[1,[28,[35,31],null,[["size"],["small"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"draft-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","topic"]],[[[1," "],[1,[28,[35,11],["share"],null]],[1,"\\n "],[1,[28,[35,33],[[30,0,["composer","draftTitle"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["composer.saved_draft"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,14],null,[["@composeState","@toggleFullscreen","@toggleComposer","@toggleToolbar"],[[30,0,["composer","model","composeState"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[]]]]]],[],false,["composer-body","div","if","composer-messages","composer-fullscreen-prompt","span","plugin-outlet","hash","unless","composer-action-title","i18n","d-icon","link-to-input","text-field","composer-toggles","composer-editor","composer-user-selector","concat-class","label","input","composer-title","category-chooser","popup-input-tip","mini-tag-chooser","fn","mut","composer-save-button","a","on","d-button","or","loading-spinner","avatar","html-safe"]]',moduleName:"discourse/components/composer-container.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"composer",[s.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},31753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addApiImageWrapperButtonClickEvent:()=>B,addComposerUploadHandler:()=>P,addComposerUploadMarkdownResolver:()=>R,addComposerUploadPreProcessor:()=>N,cleanUpComposerUploadHandler:()=>M,cleanUpComposerUploadMarkdownResolver:()=>U,cleanUpComposerUploadPreProcessor:()=>O,default:()=>$});var i=n(76417),s=n(70001),r=n(71597),o=n(42433),a=n(54729),l=n(93223),u=n(9630),c=n(50603),d=n(14682),p=n.n(d),h=n(15058),m=n(6610),g=n(50110),f=n(87342),_=n(40224),y=n(67816),b=n(77433),w=n(20802),k=n(2151),x=n(45929),T=n(79356),S=n(20762),C=n(86211),E=n(62797),A=n(51969);let D=(0,n(82739).createTemplateFactory)({id:"7NT5Nb2m",block:'[[[41,[30,0,["showFormTemplateForm"]],[[[1," "],[10,0],[14,0,"d-editor"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-container"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n "],[18,1,null],[1,"\\n\\n"],[41,[28,[37,3],[[30,0,["composer","formTemplateIds","length"]],1],null],[[[1," "],[8,[39,4],[[24,0,"composer-select-form-template"]],[["@filteredIds","@value","@onChange","@options"],[[30,0,["composer","formTemplateIds"]],[30,0,["selectedFormTemplateId"]],[30,0,["updateSelectedFormTemplateId"]],[28,[37,5],null,[["maximum"],[1]]]]],null],[1,"\\n"]],[]],null],[1," "],[10,"form"],[14,1,"form-template-form"],[12],[1,"\\n "],[8,[39,7],null,[["@id","@initialValues","@onSelectFormTemplate"],[[30,0,["selectedFormTemplateId"]],[30,0,["composer","formTemplateInitialValues"]],[30,0,["composer","onSelectFormTemplate"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@value","@placeholder","@previewUpdated","@markdownOptions","@extraButtons","@importQuote","@processPreview","@validation","@loading","@forcePreview","@showLink","@composerEvents","@onPopupMenuAction","@popupMenuOptions","@disabled","@outletArgs","@topicId","@categoryId","@onSetup"],[[30,0,["composer","model","reply"]],[30,0,["replyPlaceholder"]],[28,[37,9],[[30,0],"previewUpdated"],null],[30,0,["markdownOptions"]],[28,[37,9],[[30,0],"extraButtons"],null],[30,0,["composer","importQuote"]],[30,0,["composer","showPreview"]],[30,0,["validation"]],[30,0,["composer","loading"]],[30,0,["forcePreview"]],[30,0,["showLink"]],true,[30,0,["composer","onPopupMenuAction"]],[30,0,["composer","popupMenuOptions"]],[30,0,["composer","disableTextarea"]],[28,[37,5],null,[["composer","editorType"],[[30,0,["composer","model"]],"composer"]]],[30,0,["composer","model","topic","id"]],[30,0,["composer","model","category","id"]],[30,0,["setupEditor"]]]],[["default"],[[[[1,"\\n "],[18,1,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","allowUpload"]],[[[1," "],[8,[39,10],[[24,3,"file-uploader"]],[["@fileInputId","@allowMultiple"],[[30,0,["fileUploadElementId"]],true]],null],[1,"\\n"]],[]],null]],["&default"],false,["if","div","yield","gt","form-template-chooser","hash","form","form-template-field/wrapper","d-editor","action","pick-files-button"]]',moduleName:"discourse/components/composer-editor.hbs",isStrictMode:!1}),I=[];function P(e,t){I.push({extensions:e,method:t})}function M(){I.length=0}let F=[];function N(e,t){if(!(e.prototype instanceof c.A))throw Error("Composer upload preprocessors must inherit from the Uppy BasePlugin class.");F.push({pluginClass:e,optionsResolverFn:t})}function O(){F=[]}let L=[];function R(e){L.push(e)}function U(){L=[]}let j=[];function B(e){j.push(e)}let z=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#K=(()=>void dt7948.i(this,"composer"))();composerEventPrefix="composer";shouldBuildScrollMap=!0;scrollMap=null;fileUploadElementId="file-uploader";init(){super.init(...arguments),this.warnedCannotSeeMentions=[],this.warnedGroupMentions=[],this.uppyComposerUpload=new b.default((0,r.getOwner)(this),{composerEventPrefix:this.composerEventPrefix,composerModel:this.composer.model,uploadMarkdownResolvers:L,uploadPreProcessors:F,uploadHandlers:I,fileUploadElementId:this.fileUploadElementId})}get topic(){return this.composer.get("model.topic")}replyPlaceholder(e){if(e)return"composer.reply_placeholder_choose_category";{let e=(0,y.authorizesOneOrMoreImageExtensions)(this.currentUser.staff,this.siteSettings)?"reply_placeholder":"reply_placeholder_no_images";return`composer.${e}`}}static #n=(()=>dt7948.n(this.prototype,"replyPlaceholder",[(0,E.default)("composer.model.requiredCategoryMissing")]))();showLink(){return this.currentUser&&"none"!==this.currentUser.link_posting_access}static #i=(()=>dt7948.n(this.prototype,"showLink",[E.default]))();setFocus(){"editor"===this.composer.focusTarget&&this.textManipulation.putCursorAtEnd()}static #l=(()=>dt7948.n(this.prototype,"setFocus",[(0,u.observes)("composer.focusTarget")]))();markdownOptions(){return{previewing:!0,formatUsername:w.formatUsername,lookupAvatarByPostNumber:(e,t)=>{let n=this.topic;if(!n)return;let i=n.get("postStream.posts");if(i&&t===n.get("id")){let t=i.findBy("post_number",e);if(t)return(0,T.tinyAvatar)(t.get("avatar_template"))}},lookupPrimaryUserGroupByPostNumber:(e,t)=>{let n=this.topic;if(!n)return;let i=n.get("postStream.posts");if(i&&t===n.get("id")){let t=i.findBy("post_number",e);if(t)return t.primary_group_name}},hashtagTypesInPriorityOrder:this.site.hashtag_configurations["topic-composer"],hashtagIcons:this.site.hashtag_icons}}static #u=(()=>dt7948.n(this.prototype,"markdownOptions",[E.default]))();_composerEditorInit(){let e=this.element.querySelector(".d-editor-preview-wrapper");this._registerImageAltTextButtonClick(e),this.composer.allowUpload&&this.uppyComposerUpload.setup(this.element),this.appEvents.trigger(`${this.composerEventPrefix}:will-open`)}static #c=(()=>dt7948.n(this.prototype,"_composerEditorInit",[(0,u.on)("didInsertElement")]))();setupEditor(e){this.textManipulation=e,this.uppyComposerUpload.textManipulation=e;let t=this.element.querySelector(".d-editor-input");return t?.addEventListener("scroll",this._throttledSyncEditorAndPreviewScroll),this.get("composer.model.canEditTitle")||this.textManipulation.putCursorAtEnd(),()=>{t?.removeEventListener("scroll",this._throttledSyncEditorAndPreviewScroll)}}static #d=(()=>dt7948.n(this.prototype,"setupEditor",[E.bind]))();validation(e,t,n,i,r){let o;if(this.get("composer.post.post_type")!==this.site.get("post_types.small_action")){if(t<1)o=(0,A.i18n)("composer.error.post_missing");else if(n>0){o=(0,A.i18n)("composer.error.post_length",{count:i});let e=this.get("currentUser.trust_level");0!==e&&1!==e||this._isNewTopic||(o+="
"+(0,A.i18n)("composer.error.try_like",{heart:(0,S.iconHTML)("heart",{label:(0,A.i18n)("likes_lowercase",{count:1})})}))}if(o)return s.default.create({failed:!0,reason:o,lastShownAt:r})}}static #p=(()=>dt7948.n(this.prototype,"validation",[(0,E.default)("composer.model.reply","composer.model.replyLength","composer.model.missingReplyCharacters","composer.model.minimumPostLength","composer.lastValidatedAt")]))();get _isNewTopic(){return this.composer.model.creatingTopic||this.composer.model.editingFirstPost||this.composer.model.creatingSharedDraft}static #h=(()=>dt7948.n(this.prototype,"_isNewTopic",[(0,s.computed)("composer.{creatingTopic,editingFirstPost,creatingSharedDraft}")]))();_resetShouldBuildScrollMap(){this.set("shouldBuildScrollMap",!0)}_handleInputInteraction(e){let t=this.element.querySelector(".d-editor-preview-wrapper");p()(t).is(":visible")&&(t.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target.addEventListener("scroll",this._handleInputOrPreviewScroll))}static #m=(()=>dt7948.n(this.prototype,"_handleInputInteraction",[E.bind]))();_handleInputOrPreviewScroll(e){this._syncScroll(this._syncEditorAndPreviewScroll,p()(e.target),p()(this.element.querySelector(".d-editor-preview-wrapper")))}static #g=(()=>dt7948.n(this.prototype,"_handleInputOrPreviewScroll",[E.bind]))();_handlePreviewInteraction(e){this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target?.addEventListener("scroll",this._handleInputOrPreviewScroll)}static #E=(()=>dt7948.n(this.prototype,"_handlePreviewInteraction",[E.bind]))();_syncScroll(e,t,n){(!this.scrollMap||this.shouldBuildScrollMap)&&(this.set("scrollMap",this._buildScrollMap(t,n)),this.set("shouldBuildScrollMap",!1)),(0,o.throttle)(this,e,t,n,this.scrollMap,20)}_buildScrollMap(e,t){let n=p()("
").css({position:"absolute",height:"auto",visibility:"hidden",width:e[0].clientWidth,"font-size":e.css("font-size"),"font-family":e.css("font-family"),"line-height":e.css("line-height"),"white-space":e.css("white-space")}).appendTo("body"),i=[],s=0;e.val().split("\n").forEach(e=>{if(i.push(s),0===e.length)s++;else{let t,i;n.text(e),t=parseFloat(n.css("height")),i=parseFloat(n.css("line-height")),s+=Math.round(t/i)}}),i.push(s),n.remove();let r=t.offset().top,o=t.scrollTop()-r-(e.offset().top-r),a=[],l=[];for(let e=0;e{let n=p()(t),s=i[n.data("line-number")];0!==s&&a.push(s),l[s]=Math.round(n.offset().top+o)}),a.push(s),l[s]=t[0].scrollHeight;let u=0;for(let e=1;edt7948.n(this.prototype,"_throttledSyncEditorAndPreviewScroll",[E.bind]))();_syncEditorAndPreviewScroll(e,t){if(!e)return;if(0===e.scrollTop()){t.scrollTop(0);return}let n=e[0].scrollHeight,i=t[0].scrollHeight;if(e.height()+e.scrollTop()+100>n){t.scrollTop(i);return}let s=e.scrollTop(),r=i/n;t.scrollTop(s*r+50)}_renderMentions(e,t){(t||=(0,f.linkSeenMentions)(e,this.siteSettings)).length>0?this._renderUnseenMentions(e,t):(this._warnMentionedGroups(e),this._warnCannotSeeMention(e))}_renderUnseenMentions(e,t){(0,f.fetchUnseenMentions)({names:t,topicId:this.get("composer.model.topic.id"),allowedNames:this.get("composer.model.targetRecipients")?.split(",")}).then(t=>{(0,f.linkSeenMentions)(e,this.siteSettings),this._warnMentionedGroups(e),this._warnCannotSeeMention(e),this._warnHereMention(t.here_count)})}static #D=(()=>dt7948.n(this.prototype,"_renderUnseenMentions",[(0,E.debounce)(450)]))();_renderHashtags(e,t){let n=this.site.hashtag_configurations["topic-composer"];(t||=(0,g.linkSeenHashtagsInContext)(n,e)).length>0&&this._renderUnseenHashtags(e,t,n)}_renderUnseenHashtags(e,t,n){(0,g.fetchUnseenHashtagsInContext)(n,t).then(()=>(0,g.linkSeenHashtagsInContext)(n,e))}static #I=(()=>dt7948.n(this.prototype,"_renderUnseenHashtags",[(0,E.debounce)(450)]))();_refreshOneboxes(e){let t=this.get("composer.post"),n=t&&!t.get("refreshedPost"),i=(0,_.loadOneboxes)(e,m.ajax,this.get("composer.topic.id"),this.get("composer.category.id"),this.siteSettings.max_oneboxes_per_post,n);n&&i>0&&t.set("refreshedPost",!0)}static #G=(()=>dt7948.n(this.prototype,"_refreshOneboxes",[(0,E.debounce)(450)]))();_expandShortUrls(e){(0,h.resolveAllShortUrls)(m.ajax,this.siteSettings,e)}_decorateCookedElement(e){this.appEvents.trigger("decorate-non-stream-cooked-element",e)}_warnMentionedGroups(e){(0,o.schedule)("afterRender",()=>{e.querySelectorAll(".mention-group[data-mentionable-user-count]").forEach(e=>{let{name:t}=e.dataset;this.warnedGroupMentions.includes(t)||this._isInQuote(e)||(this.warnedGroupMentions.push(t),this.composer.groupsMentioned({name:t,userCount:e.dataset.mentionableUserCount,maxMentions:e.dataset.maxMentions}))})})}static #Y=(()=>dt7948.n(this.prototype,"_warnMentionedGroups",[(0,E.debounce)(2e3)]))();_warnCannotSeeMention(e){this.composer.model?.draftKey!==k.default.NEW_PRIVATE_MESSAGE_KEY&&(e.querySelectorAll(".mention[data-reason]").forEach(e=>{let{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.composer.cannotSeeMention({name:t,reason:e.dataset.reason}))}),e.querySelectorAll(".mention-group[data-reason]").forEach(e=>{let{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.composer.cannotSeeMention({name:t,reason:e.dataset.reason,notifiedCount:e.dataset.notifiedUserCount,isGroup:!0}))}))}static #Q=(()=>dt7948.n(this.prototype,"_warnCannotSeeMention",[(0,E.debounce)(2e3)]))();_warnHereMention(e){e&&0!==e&&this.composer.hereMention(e)}_handleImageScaleButtonClick(e){if(!e.target.classList.contains("scale-btn"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=e.target.dataset.scale,i=this.get("composer.model.reply").match(y.IMAGE_MARKDOWN_REGEX);if(i){let e=i[t];if(e){let s=e.replace(y.IMAGE_MARKDOWN_REGEX,`![$1|$2, ${n}%$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i[t],s,{regex:y.IMAGE_MARKDOWN_REGEX,index:t})}}e.preventDefault()}static #J=(()=>dt7948.n(this.prototype,"_handleImageScaleButtonClick",[E.bind]))();resetImageControls(e){let t=e.querySelector(".scale-btn-container"),n=e.querySelector(".delete-image-button"),i=e.querySelector(".alt-text-readonly-container"),s=e.querySelector(".alt-text-edit-container");t.removeAttribute("hidden"),n.removeAttribute("hidden"),i.removeAttribute("hidden"),e.removeAttribute("editing"),s.setAttribute("hidden","true")}commitAltText(e){let t=parseInt(e.getAttribute("data-image-index"),10),n=this.get("composer.model.reply").match(y.IMAGE_MARKDOWN_REGEX)[t],i=e.querySelector("input.alt-text-input"),s=n.replace(y.IMAGE_MARKDOWN_REGEX,`![${i.value}|$2$3$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,n,s),this.resetImageControls(e)}_handleAltTextInputKeypress(e){if(e.target.classList.contains("alt-text-input")&&(("["===e.key||"]"===e.key)&&e.preventDefault(),"Enter"===e.key)){let t=e.target.closest(".button-wrapper");this.commitAltText(t)}}static #X=(()=>dt7948.n(this.prototype,"_handleAltTextInputKeypress",[E.bind]))();_handleAltTextEditButtonClick(e){if(!e.target.classList.contains("alt-text-edit-btn"))return;let t=e.target.closest(".button-wrapper"),n=t.querySelector(".scale-btn-container"),i=t.querySelector(".delete-image-button"),s=t.querySelector(".alt-text-readonly-container"),r=s.querySelector(".alt-text"),o=t.querySelector(".alt-text-edit-container"),a=o.querySelector(".alt-text-input");t.setAttribute("editing","true"),n.setAttribute("hidden","true"),i.setAttribute("hidden","true"),s.setAttribute("hidden","true"),a.value=r.textContent,o.removeAttribute("hidden"),a.focus(),e.preventDefault()}static #Z=(()=>dt7948.n(this.prototype,"_handleAltTextEditButtonClick",[E.bind]))();_handleAltTextOkButtonClick(e){if(!e.target.classList.contains("alt-text-edit-ok"))return;let t=e.target.closest(".button-wrapper");this.commitAltText(t)}static #ee=(()=>dt7948.n(this.prototype,"_handleAltTextOkButtonClick",[E.bind]))();_handleAltTextCancelButtonClick(e){if(!e.target.classList.contains("alt-text-edit-cancel"))return;let t=e.target.closest(".button-wrapper");this.resetImageControls(t)}static #et=(()=>dt7948.n(this.prototype,"_handleAltTextCancelButtonClick",[E.bind]))();_handleImageDeleteButtonClick(e){if(!e.target.classList.contains("delete-image-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=this.get("composer.model.reply").match(y.IMAGE_MARKDOWN_REGEX);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,n[t],"",{regex:y.IMAGE_MARKDOWN_REGEX,index:t})}static #en=(()=>dt7948.n(this.prototype,"_handleImageDeleteButtonClick",[E.bind]))();_handleImageGridButtonClick(e){if(!e.target.classList.contains("wrap-image-grid-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=this.get("composer.model.reply"),i=n.match(y.IMAGE_MARKDOWN_REGEX),s=t+parseInt(e.target.dataset.imageCount,10)-1,r=this.element.querySelector(".d-editor-input");r.selectionStart=n.indexOf(i[t]),r.selectionEnd=n.indexOf(i[s])+i[s].length,this.appEvents.trigger(`${this.composerEventPrefix}:apply-surround`,"[grid]","[/grid]","grid_surround",{useBlockMode:!0})}static #ei=(()=>dt7948.n(this.prototype,"_handleImageGridButtonClick",[E.bind]))();_registerImageAltTextButtonClick(e){e&&(e.addEventListener("click",this._handleAltTextCancelButtonClick),e.addEventListener("click",this._handleAltTextEditButtonClick),e.addEventListener("click",this._handleAltTextOkButtonClick),e.addEventListener("click",this._handleImageDeleteButtonClick),e.addEventListener("click",this._handleImageGridButtonClick),e.addEventListener("click",this._handleImageScaleButtonClick),e.addEventListener("keypress",this._handleAltTextInputKeypress),j.forEach(t=>e.addEventListener("click",t)))}_composerClosed(){let e=this.element.querySelector(".d-editor-preview-wrapper");this.composer.allowUpload&&this.uppyComposerUpload.teardown(),this.appEvents.trigger(`${this.composerEventPrefix}:will-close`),(0,o.next)(()=>{(0,C.default)(()=>this.appEvents.trigger(`${this.composerEventPrefix}:closed`),(0,x.isTesting)()?0:400)}),e?.removeEventListener("click",this._handleAltTextCancelButtonClick),e?.removeEventListener("click",this._handleAltTextEditButtonClick),e?.removeEventListener("click",this._handleAltTextOkButtonClick),e?.removeEventListener("click",this._handleImageDeleteButtonClick),e?.removeEventListener("click",this._handleImageGridButtonClick),e?.removeEventListener("click",this._handleImageScaleButtonClick),e?.removeEventListener("keypress",this._handleAltTextInputKeypress),j.forEach(t=>e?.removeEventListener("click",t))}static #es=(()=>dt7948.n(this.prototype,"_composerClosed",[(0,u.on)("willDestroyElement")]))();onExpandPopupMenuOptions(e){let t=e.selected;e.selectText(t.start,t.end-t.start),this.composer.storeToolbarState(e)}static #er=(()=>dt7948.n(this.prototype,"onExpandPopupMenuOptions",[s.action]))();showPreview(){this.composer.togglePreview()}_isInQuote(e){let t=e.parentElement;for(;t&&!this._isPreviewRoot(t);){if(this._isQuote(t))return!0;t=t.parentElement}return!1}_isPreviewRoot(e){return"DIV"===e.tagName&&e.classList.contains("d-editor-preview")}_isQuote(e){return"ASIDE"===e.tagName&&e.classList.contains("quote")}extraButtons(e){e.addButton({id:"quote",group:"fontStyles",icon:"far-comment",sendAction:this.composer.importQuote,title:"composer.quote_post_title",unshift:!0}),this.composer.allowUpload&&this.composer.uploadIcon&&this.site.desktopView&&e.addButton({id:"upload",group:"insertions",icon:this.composer.uploadIcon,title:"upload",sendAction:this.showUploadModal}),e.addButton({id:"options",group:"extras",icon:"gear",title:"composer.options",sendAction:this.onExpandPopupMenuOptions.bind(this),popupMenu:!0})}static #eo=(()=>dt7948.n(this.prototype,"extraButtons",[s.action]))();previewUpdated(e,t,n){this._renderMentions(e,t),this._renderHashtags(e,n),this._refreshOneboxes(e),this._expandShortUrls(e),this.siteSettings.enable_diffhtml_preview||this._decorateCookedElement(e),this.composer.afterRefresh(e)}static #ea=(()=>dt7948.n(this.prototype,"previewUpdated",[s.action]))();get selectedFormTemplateId(){return this._selectedFormTemplateId?this._selectedFormTemplateId:this.composer.model.formTemplateId||this.composer.formTemplateIds?.[0]}static #el=(()=>dt7948.n(this.prototype,"selectedFormTemplateId",[(0,s.computed)("composer.formTemplateIds")]))();set selectedFormTemplateId(e){this._selectedFormTemplateId=e}updateSelectedFormTemplateId(e){this.selectedFormTemplateId=e}static #eu=(()=>dt7948.n(this.prototype,"updateSelectedFormTemplateId",[s.action]))();showFormTemplateForm(e,t,n){return e?.length>0&&!t&&!n}static #ec=(()=>dt7948.n(this.prototype,"showFormTemplateForm",[(0,E.default)("composer.formTemplateIds","composer.model.replyingToTopic","composer.model.editingPost")]))();showUploadModal(){document.getElementById(this.fileUploadElementId).click()}static #ed=(()=>dt7948.n(this.prototype,"showUploadModal",[s.action]))()},[(0,l.classNameBindings)("composer.showToolbar:toolbar-visible",":wmd-controls")]),$=(0,i.setComponentTemplate)(D,z)},47849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"z9QSuQH1",block:'[[[11,0],[24,0,"composer-fullscreen-prompt"],[4,[38,1],["animationend",[30,1]],null],[12],[1,"\\n "],[1,[28,[35,2],[[28,[37,3],["composer.exit_fullscreen_prompt"],null]],null]],[1,"\\n"],[13]],["@removeFullScreenExitPrompt"],false,["div","on","html-safe","i18n"]]',moduleName:"discourse/components/composer-fullscreen-prompt.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"composer-fullscreen-prompt"))},78955:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(71597),r=n(93223),o=n(62797);let a=dt7948.c(class extends i.default{layout(e){return(0,s.getOwner)(this).lookup(`template:composer/${e}`)}static #e=(()=>dt7948.n(this.prototype,"layout",[(0,o.default)("message.templateName")]))()},[(0,r.classNameBindings)(":composer-popup","message.extraClass")])},56199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(28564),s=n(76417),r=n(70001),o=n(5938),a=n(54729),l=n(93223),u=n(6610),c=n(28427),d=n(45929),p=n(62797),h=n(51969);let m=(0,n(82739).createTemplateFactory)({id:"ATeamNJW",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["messages"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@message","@closeMessage","@shareModal","@switchPM"],[[30,1],[30,0,["closeMessage"]],[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],true],null],[30,0,["switchPM"]]]],null],[1,"\\n"],[41,[30,0,["showShareModal"]],[[[1," "],[8,[39,6],null,[["@closeModal","@model"],[[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],false],null],[30,0,["shareModalData"]]]],null],[1,"\\n"]],[]],null]],[1]],null]],["message"],false,["each","-track-array","composer-message","fn","mut","if","modal/share-topic"]]',moduleName:"discourse/components/composer-messages.hbs",isStrictMode:!1}),g={},f=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"showShareModal",[i.tracked]))();#ep=(()=>void dt7948.i(this,"showShareModal"))();checkedMessages=!1;messages=null;messagesByTemplate=null;queuedForTyping=null;similarTopics=null;usersNotSeen=null;recipientNames=[];static #i=(()=>dt7948.g(this.prototype,"hidden",[(0,o.not)("composer.viewOpenOrFullscreen")]))();#eh=(()=>void dt7948.i(this,"hidden"))();_lastSimilaritySearch=null;_similarTopicsMessage=null;didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("composer:typed-reply",this,this._typedReply),this.appEvents.on("composer:opened",this,this._findMessages),this.appEvents.on("composer:find-similar",this,this._findSimilar),this.appEvents.on("composer-messages:close",this,this._closeTop),this.appEvents.on("composer-messages:create",this,this._create),this.reset()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("composer:typed-reply",this,this._typedReply),this.appEvents.off("composer:opened",this,this._findMessages),this.appEvents.off("composer:find-similar",this,this._findSimilar),this.appEvents.off("composer-messages:close",this,this._closeTop),this.appEvents.off("composer-messages:create",this,this._create)}_closeTop(){this.isDestroying||this.isDestroyed||(this.messages.popObject(),this.set("messageCount",this.messages.length))}_removeMessage(e){this.messages.removeObject(e),this.set("messageCount",this.messages.length)}_create(e){this.isDestroying||this.isDestroyed||(this.reset(),this.popup(r.default.create(e)))}reset(){this.setProperties({messages:[],messagesByTemplate:{},queuedForTyping:[],checkedMessages:!1,similarTopics:[]})}async _typedReply(){if(!this.isDestroying&&!this.isDestroyed){for(let e of this.queuedForTyping){if(this.composer.whisper&&e.hide_if_whisper)return;this.popup(e)}if(this.composer.privateMessage){if(this.composer.targetRecipientsArray.length>0&&this.composer.targetRecipientsArray.every(e=>e.name===this.currentUser.username)){let e=this.composer.store.createRecord("composer-message",{id:"yourself_confirm",templateName:"education",title:(0,h.i18n)("composer.yourself_confirm.title"),body:(0,h.i18n)("composer.yourself_confirm.body")});this.popup(e)}let e=this.composer.targetRecipientsArray.filter(e=>"user"===e.type).map(e=>{let{name:t}=e;return t});if(e.length>0&&e.length!==this.recipientNames.length&&!e.every((e,t)=>e===this.recipientNames[t])){this.recipientNames=e;let t=await (0,u.ajax)("/composer_messages/user_not_seen_in_a_while",{type:"GET",data:{usernames:e}});if(this.isDestroying||this.isDestroyed)return;if(t.user_count>0&&this.usersNotSeen!==t.usernames.join("-")){let e;this.set("usersNotSeen",t.usernames.join("-")),this.messagesByTemplate.education=void 0;let n=[];t.usernames.forEach((e,t)=>{n[t]=`@${e}`}),e=1===t.user_count?"composer.user_not_seen_in_a_while.single":"composer.user_not_seen_in_a_while.multiple";let i=this.composer.store.createRecord("composer-message",{id:"user-not-seen",templateName:"education",body:(0,h.i18n)(e,{usernames:n.join(", "),time_ago:t.time_ago})});this.popup(i)}}}}}static #l=(()=>dt7948.n(this.prototype,"_typedReply",[(0,p.debounce)(d.INPUT_DELAY)]))();async _findSimilar(){if(this.isDestroying||this.isDestroyed||!this.composer.creatingTopic||this.composer?.category?.form_template_ids.length>0)return;let e=(this.composer.reply||"").slice(0,200),t=this.composer.title||"";if(t.length0?(this._similarTopicsMessage.set("similarTopics",this.similarTopics),this.popup(this._similarTopicsMessage)):this._similarTopicsMessage&&this.hideMessage(this._similarTopicsMessage))}async _findMessages(){let e;if(this.isDestroying||this.isDestroyed||this.checkedMessages)return;let t={composer_action:this.composer.action},n=this.composer.topic?.id,i=this.composer.post?.id;n&&(t.topic_id=n),i&&(t.post_id=i);let s=`${t.composer_action}${t.topic_id}${t.post_id}`;if(g.cacheKey===s)e=g.messages;else{if(e=await this.composer.store.find("composer-message",t),this.isDestroying||this.isDestroyed)return;g={messages:e,cacheKey:s}}e.extras?.duplicate_lookup&&this.addLinkLookup(new c.default(e.extras.duplicate_lookup)),this.set("checkedMessages",!0),e.forEach(e=>{e.wait_for_typing?this.queuedForTyping.addObject(e):this.popup(e)})}closeMessage(e,t){t?.preventDefault(),this._removeMessage(e)}static #u=(()=>dt7948.n(this.prototype,"closeMessage",[r.action]))();hideMessage(e){this._removeMessage(e),this.messagesByTemplate[e.templateName]=void 0}static #c=(()=>dt7948.n(this.prototype,"hideMessage",[r.action]))();popup(e){this.messagesByTemplate[e.templateName]||(this.messages.pushObject(e),this.set("messageCount",this.messages.length),this.messagesByTemplate[e.templateName]=e)}static #d=(()=>dt7948.n(this.prototype,"popup",[r.action]))();get shareModalData(){let{topic:e}=this.composer;return{topic:e,category:e.category,allowInvites:e.details.can_invite_to&&!e.archived&&!e.closed&&!e.deleted}}switchPM(e){this.composer.set("action","privateMessage"),this.composer.set("targetRecipients",e.reply_username),this._removeMessage(e)}static #p=(()=>dt7948.n(this.prototype,"switchPM",[r.action]))()},[(0,l.classNameBindings)(":composer-popup-container","hidden")]),_=(0,s.setComponentTemplate)(m,f)},65916:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(92976),r=n(27147),o=n(20802),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{get translatedTitle(){return(0,a.i18n)("composer.title",{modifier:(0,o.translateModKey)("Meta+")})}static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"14dcz4HJ",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn-primary create",[52,[30,1],"disabled"]],null]],[17,2]],[["@action","@label","@icon","@translatedTitle","@forwardEvent"],[[30,3],[30,4],[30,5],[30,0,["translatedTitle"]],[30,6]]],null],[1,"\\n "]],["@disabledSubmit","&attrs","@action","@label","@icon","@forwardEvent"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-save-button.js",scope:()=>[s.default,r.default],isStrictMode:!0}),this))()}},83343:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"S8AdQgjN",block:'[[[8,[39,0],[[24,0,"btn-transparent close"]],[["@action","@icon","@label","@ariaLabel"],[[30,1],"xmark","composer.esc","composer.esc_label"]],null]],["@action"],false,["d-button"]]',moduleName:"discourse/components/composer-tip-close-button.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"composer-tip-close-button"))},22317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(76417),s=n(70001),r=n(5938),o=n(42433),a=n(93223),l=n(9630),u=n(6302),c=n(56301),d=n(6610),p=n(4354),h=n(45929),m=n(84262),g=n(62797),f=n(51969);let _=(0,n(82739).createTemplateFactory)({id:"IetttjVL",block:'[[[8,[39,0],null,[["@value","@id","@maxLength","@placeholderKey","@aria-label","@disabled","@autocomplete"],[[30,0,["composer","title"]],"reply-title",[30,0,["titleMaxLength"]],[30,0,["composer","titlePlaceholder"]],[28,[37,1],[[30,0,["composer","titlePlaceholder"]]],null],[30,0,["disabled"]],"off"]],null],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["after-composer-title-input","div",[28,[37,3],null,[["composer"],[[30,0,["composer"]]]]]]],null],[1,"\\n\\n"],[8,[39,4],null,[["@validation"],[[30,0,["validation"]]]],null]],[],false,["text-field","i18n","plugin-outlet","hash","popup-input-tip"]]',moduleName:"discourse/components/composer-title.hbs",isStrictMode:!1}),y=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"watchForLink",[(0,r.alias)("composer.canEditTopicFeaturedLink")]))();#em=(()=>void dt7948.i(this,"watchForLink"))();static #n=(()=>dt7948.g(this.prototype,"disabled",[(0,r.or)("composer.loading","composer.disableTitleInput")]))();#F=(()=>void dt7948.i(this,"disabled"))();isTitleFocused=!1;didInsertElement(){super.didInsertElement(...arguments);let e=this.element.querySelector("input");this._focusHandler=()=>this.set("isTitleFocused",!0),this._blurHandler=()=>this.set("isTitleFocused",!1),e.addEventListener("focus",this._focusHandler),e.addEventListener("blur",this._blurHandler),"title"===this.focusTarget&&(0,p.default)(e),this.get("composer.titleLength")>0&&(0,m.default)(this,this._titleChanged,10)}willDestroyElement(){super.willDestroyElement(...arguments);let e=this.element.querySelector("input");e&&(e.removeEventListener("focus",this._focusHandler),e.removeEventListener("blur",this._blurHandler))}validation(e,t,n,i,r){let o;if(!r&&(e<1?o=(0,f.i18n)("composer.error.title_missing"):t>0?o=(0,f.i18n)("composer.error.title_too_short",{count:n}):e>this.siteSettings.max_topic_title_length&&(o=(0,f.i18n)("composer.error.title_too_long",{count:this.siteSettings.max_topic_title_length})),o))return s.default.create({failed:!0,reason:o,lastShownAt:i})}static #i=(()=>dt7948.n(this.prototype,"validation",[(0,g.default)("composer.titleLength","composer.missingTitleCharacters","composer.minimumTitleLength","lastValidatedAt","isTitleFocused")]))();titleMaxLength(e){return e?null:this.siteSettings.max_topic_title_length}static #l=(()=>dt7948.n(this.prototype,"titleMaxLength",[(0,g.default)("watchForLink")]))();_titleChanged(){0===this.get("composer.titleLength")&&this.set("autoPosted",!1),!this.autoPosted&&this.watchForLink&&((0,h.isTesting)()?(0,o.next)(()=>this._checkForUrl()):(0,m.default)(this,this._checkForUrl,500))}static #u=(()=>dt7948.n(this.prototype,"_titleChanged",[(0,l.observes)("composer.titleLength","watchForLink")]))();_clearFeaturedLink(){this.watchForLink&&this.bodyIsDefault()&&this.set("composer.featuredLink",null)}static #c=(()=>dt7948.n(this.prototype,"_clearFeaturedLink",[(0,l.observes)("composer.replyLength")]))();_checkForUrl(){if(this.element&&!this.isDestroying&&!this.isDestroyed&&this.isAbsoluteUrl&&this.bodyIsDefault()){if(this.get("composer.title").match(RegExp("^https?:\\/\\/"+window.location.hostname,"i")))return;this.set("composer.loading",!0);let e=document.createElement("a");e.href=this.get("composer.title");let t=(0,u.load)({elem:e,refresh:!1,ajax:d.ajax,synchronous:!0,categoryId:this.get("composer.category.id"),topicId:this.get("composer.topic.id")});t&&t.then?t.then(()=>{let t=(0,c.lookupCache)(this.get("composer.title"));this._updatePost(t||e)}).finally(()=>{this.set("composer.loading",!1),(0,o.schedule)("afterRender",()=>{(0,p.default)(this.element.querySelector("input"))})}):(this._updatePost(t),this.set("composer.loading",!1),(0,o.schedule)("afterRender",()=>{(0,p.default)(this.element.querySelector("input"))}))}}_updatePost(e){if(e){let t=document.createRange().createContextualFragment(e),n=this.composer;if(this.set("autoPosted",!0),this.set("composer.featuredLink",this.get("composer.title")),n.appendText(this.get("composer.title"),null,{block:!0}),t.querySelector(".twitterstatus")){this.set("composer.title","");return}let i=t.querySelector("h3, h4"),s=i&&i.textContent||t.firstElementChild&&t.firstElementChild.title;if(s)this.changeTitle(s);else{let e=t.firstChild&&t.firstChild.attributes&&t.firstChild.attributes.title||t.querySelector("[title]")&&t.querySelector("[title]").attributes.title;e&&this.changeTitle(e)}}}changeTitle(e){e&&e.length>0&&this.set("composer.title",e.trim())}isAbsoluteUrl(e,t){return t>0&&/^(https?:)?\/\/[\w\.\-]+/i.test(e)&&!/\s/.test(e)}static #d=(()=>dt7948.n(this.prototype,"isAbsoluteUrl",[(0,g.default)("composer.title","composer.titleLength")]))();bodyIsDefault(){let e=this.get("composer.reply")||"";return 0===e.length||e===(this.get("composer.category.topic_template")||"")}},[(0,a.classNames)("title-input")]),b=(0,i.setComponentTemplate)(_,y)},92175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"MjSJkmY0",block:'[[[10,0],[14,0,"composer-controls"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,2],null,[["@name","@connectorTagName"],["before-composer-toggles","div"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,4],[[24,0,"btn-flat toggle-toolbar btn-mini-toggle"]],[["@icon","@action","@title","@preventFocus"],["bars",[30,0,["toggleToolbar"]],[30,0,["toggleToolbarTitle"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFullScreenButton"]],[[[1," "],[8,[39,4],[[24,0,"btn-transparent toggle-fullscreen btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["fullscreenIcon"]],[30,0,["toggleFullscreen"]],[30,0,["fullscreenTitle"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],[[24,0,"btn-transparent toggler toggle-minimize btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["toggleIcon"]],[30,0,["toggleComposer"]],[30,0,["toggleTitle"]]]],null],[1,"\\n"],[13]],[],false,["div","span","plugin-outlet","if","d-button"]]',moduleName:"discourse/components/composer-toggles.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{toggleTitle(e){return"draft"===e||"saving"===e?"composer.abandon":"composer.collapse"}static #e=(()=>dt7948.n(this.prototype,"toggleTitle",[(0,r.default)("composeState")]))();toggleToolbarTitle(e){return e?"composer.hide_toolbar":"composer.show_toolbar"}static #n=(()=>dt7948.n(this.prototype,"toggleToolbarTitle",[(0,r.default)("showToolbar")]))();fullscreenTitle(e){return"draft"===e?"composer.open":"fullscreen"===e?"composer.exit_fullscreen":"composer.enter_fullscreen"}static #i=(()=>dt7948.n(this.prototype,"fullscreenTitle",[(0,r.default)("composeState")]))();toggleIcon(e){return"draft"===e||"saving"===e?"xmark":"angles-down"}static #l=(()=>dt7948.n(this.prototype,"toggleIcon",[(0,r.default)("composeState")]))();fullscreenIcon(e){return"draft"===e?"angles-up":"fullscreen"===e?"discourse-compress":"discourse-expand"}static #u=(()=>dt7948.n(this.prototype,"fullscreenIcon",[(0,r.default)("composeState")]))();showFullScreenButton(e){return!this.site.mobileView&&!e}static #c=(()=>dt7948.n(this.prototype,"showFullScreenButton",[(0,r.default)("disableTextarea")]))()},[(0,s.tagName)("")]),l=(0,i.setComponentTemplate)(o,a)},44001:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(70001),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"KhWwI0hr",block:'[[[8,[39,0],null,[["@id","@value","@onChange","@options"],["private-message-users",[30,0,["splitRecipients"]],[28,[37,1],[[30,0],"updateRecipients"],null],[28,[37,2],null,[["topicId","none","includeMessageableGroups","allowEmails","autoWrap"],[[30,0,["topicId"]],"composer.users_placeholder",true,[30,0,["currentUser","can_send_private_email_messages"]],true]]]]],null]],[],false,["email-group-user-chooser","action","hash"]]',moduleName:"discourse/components/composer-user-selector.hbs",isStrictMode:!1});class a extends i.default{_groups=[];didInsertElement(){super.didInsertElement(...arguments),"usernames"===this.focusTarget&&this.element.querySelector(".select-kit .select-kit-header").focus()}splitRecipients(e){return Array.isArray(e)?e:e?e.split(",").filter(Boolean):[]}static #e=(()=>dt7948.n(this.prototype,"splitRecipients",[(0,r.default)("recipients")]))();_updateGroups(e,t){let n=[];this._groups.forEach(t=>{e.includes(t)&&n.addObject(t)}),t.forEach(e=>{n.includes(e)||n.addObject(e)}),this.setProperties({_groups:n,hasGroups:n.length>0})}updateRecipients(e,t){let n=t.filterBy("isGroup").mapBy("id");this._updateGroups(e,n),this.set("recipients",e.join(","))}static #n=(()=>dt7948.n(this.prototype,"updateRecipients",[s.action]))()}(0,i.setComponentTemplate)(o,a)},38166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(71597),r=n(54729),o=n(90945),a=n.n(o),l=n(79635),u=n(69390),c=n(47876),d=n(62797),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();textarea;registerTextarea=(()=>(0,l.modifier)(e=>{for(let[t,n]of(this.textarea=e,this.#eg=new(a())(e),this.textManipulation=new c.default((0,s.getOwner)(this),{markdownOptions:this.args.markdownOptions,textarea:e}),Object.entries(this.args.keymap)))this.#eg.bind(t,n);let t=this.args.onSetup(this.textManipulation);return this.setupSmartList(),()=>{this.destroySmartList(),t?.(),this.#eg?.destroy(),this.#eg=null}}))();#eg;#ef=!1;#e_=!1;onInputSmartList(){this.#ef&&this.textManipulation.maybeContinueList(),this.#ef=!1}static #n=(()=>dt7948.n(this.prototype,"onInputSmartList",[d.bind]))();onBeforeInputSmartListShiftDetect(e){this.#e_=e.shiftKey}static #i=(()=>dt7948.n(this.prototype,"onBeforeInputSmartListShiftDetect",[d.bind]))();onBeforeInputSmartList(e){this.#e_||(this.#ef="insertLineBreak"===e.inputType)}static #l=(()=>dt7948.n(this.prototype,"onBeforeInputSmartList",[d.bind]))();setupSmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.addEventListener("beforeinput",this.onBeforeInputSmartList),this.textarea.addEventListener("keydown",this.onBeforeInputSmartListShiftDetect),this.textarea.addEventListener("input",this.onInputSmartList))}destroySmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.removeEventListener("beforeinput",this.onBeforeInputSmartList),this.textarea.removeEventListener("keydown",this.onBeforeInputSmartListShiftDetect),this.textarea.removeEventListener("input",this.onInputSmartList))}static #u=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"oY2ufwEb",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"d-editor-input"],[4,[30,0,["registerTextarea"]],null,null]],[["@autocomplete","@value","@placeholder","@aria-label","@disabled","@input","@focusIn","@focusOut","@id"],["off",[30,1],[30,2],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n "]],["@value","@placeholder","@disabled","@change","@focusIn","@focusOut","@id"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer/textarea-editor.js",scope:()=>[u.default],isStrictMode:!0}),this))()}},72713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"qfxJbZN7",block:'[[[41,[30,1],[[[1," "],[18,4,null],[1,"\\n"]],[]],[[[41,[30,2],[[[41,[30,3],[[[1," "],[40,[[[18,4,null]],[]],"%cursor:0%",[28,[37,3],[[30,2]],null],null],[1,"\\n"]],[]],[[[1," "],[40,[[[18,4,null]],[]],"%cursor:1%",[28,[37,3],[[30,2]],null]],[1,"\\n"]],[]]]],[]],null]],[]]]],["@inline","@element","@append","&default"],false,["if","yield","in-element","-in-el-null"]]',moduleName:"discourse/components/conditional-in-element.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"conditional-in-element"))},35384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(51969);let o=(0,n(82739).createTemplateFactory)({id:"HUV4wwBt",block:'[[[41,[30,0,["isLoading"]],[[[1," "],[10,1],[14,0,"title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n "],[10,0],[15,0,[29,["spinner ",[30,0,["size"]]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","span","div","yield"]]',moduleName:"discourse/components/conditional-loading-section.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{isLoading=!1;title=(()=>(0,r.i18n)("conditional_loading_section.loading"))()},[(0,s.classNameBindings)("isLoading"),(0,s.classNames)("conditional-loading-section")]),l=(0,i.setComponentTemplate)(o,a)},59602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(39882),s=n(64151),r=n(27147),o=n(59874),a=n(76417),l=n(82739),u=n(88606);let c=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2tOpFTGI",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@defaultGlimmer","@outletArgs"],["conditional-loading-spinner",true,[28,[32,1],null,[["condition","size"],[[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[28,[32,2],["loading-container",[52,[30,1],"visible"],[52,[28,[32,3],[[30,2],"small"],null],"inline-spinner"]],null]],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[15,0,[29,["spinner ",[30,2]]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[18,3,null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],["@condition","@size","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/conditional-loading-spinner.js",scope:()=>[o.default,i.hash,r.default,s.eq],isStrictMode:!0}),(0,u.default)(void 0,"conditional-loading-spinner:ConditionalLoadingSpinner"))},54810:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(76417);class s extends i.default{}},15219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(70001),o=n(48605),a=n(54729),l=n(15058),u=n(6610),c=n(40224),d=n(62167),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"cooked",[s.tracked],function(){return null}))();#ey=(()=>void dt7948.i(this,"cooked"))();constructor(e,t){super(e,t),this.loadCookedText()}async loadCookedText(){let e=await (0,d.cook)(this.args.rawText);this.cooked=e}static #i=(()=>dt7948.n(this.prototype,"loadCookedText",[r.action]))();calculateOffsetHeight(e){if(this.args.onOffsetHeightCalculated)return this.args.onOffsetHeightCalculated(e?.offsetHeight)}static #l=(()=>dt7948.n(this.prototype,"calculateOffsetHeight",[r.action]))();buildOneboxes(e){this.args.paintOneboxes&&null!==this.cooked&&(0,c.loadOneboxes)(e,u.ajax,this.args.topicId,this.args.categoryId,this.siteSettings.max_oneboxes_per_post,!1)}static #u=(()=>dt7948.n(this.prototype,"buildOneboxes",[r.action]))();resolveShortUrls(e){(0,l.resolveAllShortUrls)(u.ajax,this.siteSettings,e,this.args.opts)}static #c=(()=>dt7948.n(this.prototype,"resolveShortUrls",[r.action]))();static #d=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"Gnx6a88S",block:'[[[1,"\\n "],[11,0],[17,1],[4,[32,0],[[30,0,["buildOneboxes"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["resolveShortUrls"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["calculateOffsetHeight"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["loadCookedText"]],[30,2]],null],[12],[1,"\\n "],[1,[30,0,["cooked"]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@rawText"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/cook-text.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},8650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(70001),r=n(93223),o=n(84262),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"A6464iIk",block:'[[[8,[39,0],[[16,0,[29,["copy-button ",[30,0,["copyClass"]]]]]],[["@icon","@action","@ariaLabel","@translatedLabel"],[[30,0,["copyIcon"]],[30,0,["copy"]],[30,0,["ariaLabel"]],[30,0,["copyTranslatedLabel"]]]],null]],[],false,["d-button"]]',moduleName:"discourse/components/copy-button.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{copyIcon="copy";copyClass="btn-primary";init(){super.init(...arguments),this.copyTranslatedLabel=this.translatedLabel}_restoreButton(){this.isDestroying||this.isDestroyed||(this.set("copyIcon","copy"),this.set("copyClass","btn-primary"),this.set("copyTranslatedLabel",this.translatedLabel))}static #e=(()=>dt7948.n(this.prototype,"_restoreButton",[a.bind]))();copy(){let e=document.querySelector(this.selector);e.select(),e.setSelectionRange(0,e.value.length);try{document.execCommand("copy"),this.copied&&this.copied(),this.set("copyIcon","check"),this.set("copyClass","btn-primary ok"),this.set("copyTranslatedLabel",this.translatedLabelAfterCopy),(0,o.default)(this._restoreButton,3e3)}catch{}}static #n=(()=>dt7948.n(this.prototype,"copy",[s.action]))()},[(0,r.tagName)("")]),c=(0,i.setComponentTemplate)(l,u)},60289:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(54729),r=n(35804),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get fullKey(){let e=this.args.key;return this.args.suffix&&(e+=this.args.suffix),this.currentUser?.new_new_view_enabled&&"topic_count_new"===e&&(e="topic_count_latest"),e}static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"lROKUEwj",block:'[[[1,"\\n "],[10,1],[12],[1,[28,[32,0],[[28,[32,1],[[30,0,["fullKey"]]],[["count"],[[30,1]]]]],null]],[13],[1,"\\n "]],["@count"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/count-i18n.js",scope:()=>[r.htmlSafe,o.i18n],isStrictMode:!0}),this))()}},95101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(70001),r=n(71597),o=n(93223),a=n(21765),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"IcCkJGvV",block:'[[[18,1,[[28,[37,1],null,[["data","uploading","uploadProgress","uploaded","submitDisabled","startUpload"],[[30,0,["data"]],[30,0,["uploading"]],[30,0,["uploadProgress"]],[30,0,["uploaded"]],[30,0,["submitDisabled"]],[30,0,["startUpload"]]]]],[30,0,["uppyUpload","setup"]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/create-invite-uploader.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{uppyUpload=(()=>new a.default((0,r.getOwner)(this),{id:"create-invite-uploader",type:"csv",autoStartUploads:!1,uploadUrl:"/invites/upload_csv",preventDirectS3Uploads:!0,validateUploadedFilesOptions:{bypassNewUserRestriction:!0,csvOnly:!0},uploadDone:()=>{this.set("uploaded",!0)}}))();submitDisabled(e,t){return!e||t}static #e=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,l.default)("uppyUpload.filesAwaitingUpload","uppyUpload.uploading")]))();startUpload(){this.uppyUpload.startUpload()}static #n=(()=>dt7948.n(this.prototype,"startUpload",[s.action]))()},[(0,o.tagName)("div")]),d=(0,i.setComponentTemplate)(u,c)},19799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"F8SNxWIn",block:'[[[41,[30,0,["canCreateTopic"]],[[[1," "],[8,[39,1],null,null,[["button","tooltip"],[[[[1,"\\n "],[8,[39,3],[[24,1,"create-topic"],[16,0,[30,0,["btnClass"]]]],[["@action","@icon","@disabled","@label"],[[30,0,["action"]],"plus",[30,0,["disabled"]],[30,0,["label"]]]],null],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[39,5],null,[["@icon","@content"],["circle-info",[28,[37,6],[[30,0,["disallowedReason"]]],null]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null]],["@disabled"],false,["if","d-button-tooltip",":button","d-button",":tooltip","d-tooltip","i18n"]]',moduleName:"discourse/components/create-topic-button.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{label="topic.create";btnClass="btn-default";get disallowedReason(){return!1===this.canCreateTopicOnTag?"topic.create_disabled_tag":this.disabled?"topic.create_disabled_category":void 0}},[(0,s.tagName)("")]),a=(0,i.setComponentTemplate)(r,o)},40780:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(71597),r=n(97367),o=n(54216),a=n(82739);class l extends i.default{triggerAppEvent=null;init(){super.init(...arguments);let e=this.name,t=(0,r.getCustomHTML)(e);if(t)this.set("html",t),this.set("layout",(0,a.createTemplateFactory)({id:"BAiCigqH",block:'[[[1,[30,0,["html"]]]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/custom-html.js",isStrictMode:!1}));else{let t=(0,s.getOwner)(this).lookup(`template:${e}`);t&&((0,o.default)("Defining an hbs template for CustomHTML rendering is deprecated. Use plugin outlets instead.",{id:"discourse.custom_html_template"}),this.set("layout",t))}}didInsertElement(){super.didInsertElement(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`inserted-custom-html:${this.name}`)}willDestroyElement(){super.willDestroyElement(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`destroyed-custom-html:${this.name}`)}}},37254:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(79635),o=n(64151),a=n(27147),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"breadcrumbs",[s.service]))();#eb=(()=>void dt7948.i(this,"breadcrumbs"))();registerContainer=(()=>(0,r.modifier)(e=>{let t={element:e};return this.breadcrumbs.containers.add(t),()=>this.breadcrumbs.containers.delete(t)}))();get lastItemIndex(){return this.breadcrumbs.items.size-1}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"wkZlLMUk",block:'[[[1,"\\n "],[11,"ul"],[24,0,"d-breadcrumbs"],[17,1],[4,[30,0,["registerContainer"]],null,null],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["breadcrumbs","items"]]],null]],null],null,[[[44,[[30,2,["templateForContainer"]]],[[[1," "],[8,[30,4],[[16,"aria-current",[52,[28,[32,0],[[30,3],[30,0,["lastItemIndex"]]],null],"page"]],[16,0,[28,[32,1],["d-breadcrumbs__item",[30,5]],null]]],[["@linkClass"],[[28,[32,1],["d-breadcrumbs__link",[30,6]],null]]],null],[1,"\\n"]],[4]]]],[2,3]],null],[1," "],[13],[1,"\\n "]],["&attrs","item","index","Template","@additionalItemClasses","@additionalLinkClasses"],false,["each","-track-array","let","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-breadcrumbs-container.js",scope:()=>[o.eq,a.default],isStrictMode:!0}),this))()}},67774:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(21237),o=n(87389),a=n(76417),l=n(82739),u=n(88606);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"breadcrumbs",[s.service]))();#eb=(()=>void dt7948.i(this,"breadcrumbs"))();static #n=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(){super(...arguments),this.breadcrumbs.items.add(this)}willDestroy(){super.willDestroy(...arguments),this.breadcrumbs.items.delete(this)}get templateForContainer(){let{label:e,path:t}=this.args;return(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"BSB99eLu",block:'[[[1,"\\n "],[11,"li"],[17,1],[12],[1,"\\n "],[10,3],[15,6,[28,[32,0],[[32,1]],null]],[15,0,[30,2]],[12],[1,"\\n "],[1,[32,2]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"separator"],[12],[1,[28,[32,3],["angle-right"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@linkClass"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-breadcrumbs-item.js",scope:()=>[o.default,t,e,r.default],isStrictMode:!0}),(0,u.default)(void 0,void 0))}}},92976:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(87075),s=n(70001),r=n(5938),o=n(42433),a=n(54729),l=n(35804),u=n(64151),c=n(87338),d=n(27147),p=n(31496),h=n(21237),m=n(54216),g=n(51969),f=n(76417),_=n(82739);let y=["DButton no longer supports @action as a string. Please refactor to use an closure action instead.",{id:"discourse.d-button-action-string"}];class b extends c.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"btnIcon",[(0,r.notEmpty)("args.icon")]))();#ew=(()=>void dt7948.i(this,"btnIcon"))();static #l=(()=>dt7948.g(this.prototype,"btnLink",[(0,r.equal)("args.display","link")]))();#ek=(()=>void dt7948.i(this,"btnLink"))();static #u=(()=>dt7948.g(this.prototype,"noText",[(0,r.empty)("computedLabel")]))();#ex=(()=>void dt7948.i(this,"noText"))();constructor(){super(...arguments),"string"==typeof this.args.action&&(0,m.default)(...y)}get forceDisabled(){return!!this.args.isLoading}get isDisabled(){return this.forceDisabled||this.args.disabled}get btnType(){return this.args.icon?this.computedLabel?"btn-icon-text":"btn-icon":this.computedLabel?"btn-text":void 0}get computedTitle(){return this.args.title?(0,g.i18n)(this.args.title):this.args.translatedTitle}get computedLabel(){return this.args.label?(0,g.i18n)(this.args.label):this.args.translatedLabel}get computedAriaLabel(){return this.args.ariaLabel?(0,g.i18n)(this.args.ariaLabel):this.args.translatedAriaLabel?this.args.translatedAriaLabel:void 0}get computedAriaExpanded(){return!0===this.args.ariaExpanded?"true":!1===this.args.ariaExpanded?"false":void 0}get computedAriaPressed(){return!0===this.args.ariaPressed?"true":!1===this.args.ariaPressed?"false":void 0}keyDown(e){this.args.onKeyDown?(e.stopPropagation(),this.args.onKeyDown(e)):"Enter"===e.key&&this._triggerAction(e)}static #c=(()=>dt7948.n(this.prototype,"keyDown",[s.action]))();click(e){return this._triggerAction(e)}static #d=(()=>dt7948.n(this.prototype,"click",[s.action]))();mouseDown(e){this.args.preventFocus&&e.preventDefault()}static #p=(()=>dt7948.n(this.prototype,"mouseDown",[s.action]))();_triggerAction(e){let{action:t,route:n,routeModels:i}=this.args,s=this.capabilities?.isIOS;if(t||n){if(t){let{actionParam:n,forwardEvent:i}=this.args;if("string"==typeof t){if((0,m.default)(...y),this._target?.send)this._target.send(t,n);else throw Error("DButton could not find a target for the action. Use a closure action instead")}else"object"==typeof t&&t.value?s?i?t.value(n,e):t.value(n):(0,o.next)(()=>i?t.value(n,e):t.value(n)):"function"==typeof t&&(s?i?t(n,e):t(n):(0,o.next)(()=>i?t(n,e):t(n)))}else if(n){if(i){let e=Array.isArray(i)?i:[i];this.router.transitionTo(n,...e)}else this.router.transitionTo(n)}return e.preventDefault(),e.stopPropagation(),!1}}get wrapperElement(){return(0,p.default)(this.args.href?"a":"button")}static #h=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"Lrv7dk+6",block:'[[[1,"\\n"],[1," "],[8,[30,0,["wrapperElement"]],[[16,6,[30,1]],[16,4,[52,[51,[30,1]],[28,[32,0],[[30,2],"button"],null]]],[16,0,[28,[32,1],[[30,3],[52,[30,4],"is-loading"],[52,[30,0,["btnLink"]],"btn-link","btn"],[52,[30,0,["noText"]],"no-text"],[30,0,["btnType"]]],null]],[16,1,[30,5]],[16,"form",[30,6]],[16,"aria-controls",[30,7]],[16,"aria-expanded",[30,0,["computedAriaExpanded"]]],[16,"aria-pressed",[30,0,["computedAriaPressed"]]],[16,"tabindex",[30,8]],[16,"disabled",[30,0,["isDisabled"]]],[16,"title",[30,0,["computedTitle"]]],[16,"aria-label",[30,0,["computedAriaLabel"]]],[17,9],[4,[32,2],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],["click",[30,0,["click"]]],null],[4,[32,2],["mousedown",[30,0,["mouseDown"]]],null]],null,[["default"],[[[[1,"\\n"],[41,[30,4],[[[1,[28,[32,3],["spinner"],[["class"],["loading-icon"]]]]],[]],[[[41,[30,10],[[[41,[30,11],[[[1," "],[10,1],[14,"aria-hidden","true"],[12],[1,[28,[32,3],[[30,10]],null]],[13],[1,"\\n"]],[]],[[[1,[28,[32,3],[[30,10]],null]]],[]]],[1," "]],[]],null]],[]]],[41,[30,0,["computedLabel"]],[[[10,1],[14,0,"d-button-label"],[12],[1,[28,[32,4],[[30,0,["computedLabel"]]],null]],[41,[30,12],[[[1,"…"]],[]],null],[13]],[]],[[[41,[28,[32,0],[[30,10],[30,4]],null],[[[1,"​\\n"]],[]],null]],[]]],[18,13,null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@href","@type","@class","@isLoading","@id","@form","@ariaControls","@tabindex","&attrs","@icon","@ariaHidden","@ellipsis","&default"],false,["unless","if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-button.js",scope:()=>[u.or,d.default,i.on,h.default,l.htmlSafe],isStrictMode:!0}),this))()}},88481:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginDocumentTitleCounter:()=>p,default:()=>h});var i=n(76417),s=n(54729),r=n(93223),o=n(6610),a=n(47050),l=n(71554),u=n(62797),c=n(51969);let d=[];function p(e){d.push(e)}let h=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"documentTitle",[s.service]))();#eT=(()=>void dt7948.i(this,"documentTitle"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[s.service]))();#v=(()=>void dt7948.i(this,"dialog"))();_showingLogout=!1;didInsertElement(){super.didInsertElement(...arguments),this.documentTitle.setTitle(document.title),document.addEventListener("visibilitychange",this._focusChanged),document.addEventListener("resume",this._focusChanged),document.addEventListener("freeze",this._focusChanged),this.session.hasFocus=!0,this.appEvents.on("notifications:changed",this,this._updateNotifications),(0,o.setLogoffCallback)(()=>this.displayLogoff())}willDestroyElement(){super.willDestroyElement(...arguments),(0,o.setLogoffCallback)(null),document.removeEventListener("visibilitychange",this._focusChanged),document.removeEventListener("resume",this._focusChanged),document.removeEventListener("freeze",this._focusChanged),this.appEvents.off("notifications:changed",this,this._updateNotifications)}_updateNotifications(e){if(!this.currentUser)return;let t=d.reduce((e,t)=>e+t(),0);t+=this.currentUser.all_unread_notifications_count,this.currentUser.unseen_reviewable_count&&(t+=this.currentUser.unseen_reviewable_count),this.documentTitle.updateNotificationCount(t,{forced:e?.forced})}_focusChanged(){(0,a.clearAllBodyScrollLocks)(),"hidden"===document.visibilityState?this.session.hasFocus&&this.documentTitle.setFocus(!1):this.hasFocus||this.documentTitle.setFocus(!0)}static #i=(()=>dt7948.n(this.prototype,"_focusChanged",[u.bind]))();displayLogoff(){this._showingLogout||(this._showingLogout=!0,this.messageBus.stop(),this.dialog.alert({message:(0,c.i18n)("logout"),confirmButtonLabel:"refresh",didConfirm:()=>(0,l.default)(),didCancel:()=>(0,l.default)()}))}},[(0,r.tagName)("")])},85984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addToolbarCallback:()=>U,clearToolbarCallbacks:()=>j,default:()=>$,onToolbarCreate:()=>B});var i=n(76417),s=n(70001),r=n(71597),o=n(42433),a=n(54729),l=n(93223),u=n(9630),c=n(96768),d=n(1131),p=n(15058),h=n(35223),m=n(38166),g=n(59731),f=n(6610),_=n(21640),y=n(9762),b=n(15963),w=n(50110),k=n(3737),x=n(56907),T=n(87342),S=n(40224),C=n(62167),E=n(52864),A=n(68695),D=n(45929),I=n(84262),P=n(54216),M=n(26399),F=n(37441),N=n(62797),O=n(51969);let L=(0,n(82739).createTemplateFactory)({id:"/mRs+B1L",block:'[[[10,0],[14,0,"d-editor-container"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n "],[18,3,null],[1,"\\n\\n "],[10,0],[15,0,[29,["d-editor-textarea-wrapper\\n ",[52,[30,0,["disabled"]],"disabled"],"\\n ",[52,[30,0,["isEditorFocused"]],"in-focus"]]]],[12],[1,"\\n "],[10,0],[14,0,"d-editor-button-bar"],[14,"role","toolbar"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["toolbar","groups"]]],null]],null],null,[[[42,[28,[37,4],[[28,[37,4],[[30,1,["buttons"]]],null]],null],null,[[[41,[28,[30,2,["condition"]],[[30,0]],null],[[[41,[30,2,["popupMenu"]],[[[1," "],[8,[39,5],[[16,0,[30,2,["className"]]]],[["@content","@onChange","@onOpen","@tabindex","@onKeydown","@options"],[[30,0,["popupMenuOptions"]],[30,0,["onPopupMenuAction"]],[28,[37,6],[[30,0],[30,2,["action"]],[30,2]],null],-1,[30,0,["rovingButtonBar"]],[28,[37,7],null,[["icon","focusAfterOnChange"],[[30,2,["icon"]],false]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[16,"tabindex",[30,2,["tabindex"]]],[16,0,[30,2,["className"]]]],[["@action","@translatedTitle","@label","@icon","@preventFocus","@onKeyDown"],[[28,[37,9],[[28,[37,6],[[30,0],[30,2,["action"]]],null],[30,2]],null],[30,2,["title"]],[30,2,["label"]],[30,2,["icon"]],[30,2,["preventFocus"]],[30,0,["rovingButtonBar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[2]],null]],[1]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "],[8,[30,0,["editorComponent"]],null,[["@onSetup","@markdownOptions","@keymap","@value","@placeholder","@disabled","@change","@focusIn","@focusOut","@id"],[[30,0,["setupEditor"]],[30,0,["markdownOptions"]],[30,0,["keymap"]],[30,0,["value"]],[30,0,["placeholderTranslated"]],[30,0,["disabled"]],[30,0,["change"]],[30,0,["handleFocusIn"]],[30,0,["handleFocusOut"]],[30,0,["textAreaId"]]]],null],[1,"\\n "],[8,[39,11],null,[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["after-d-editor","div",[30,0,["outletArgs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[15,0,[29,["d-editor-preview-wrapper ",[52,[30,0,["forcePreview"]],"force-preview"]]]],[12],[1,"\\n "],[10,0],[14,0,"d-editor-preview"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","enable_diffhtml_preview"]]],[[[1," "],[1,[28,[35,14],[[30,0,["preview"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,1],[14,0,"d-editor-plugin"],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["editor-preview","div",[30,0,["outletArgs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,16],null,[["@isActive","@isEditorFocused","@initialFilter","@emojiSelected","@onEmojiPickerClose"],[[30,0,["emojiPickerIsActive"]],[30,0,["isEditorFocused"]],[30,0,["emojiFilter"]],[30,0,["textManipulation","emojiSelected"]],[30,0,["onEmojiPickerClose"]]]],null]],["group","b","&default"],false,["div","yield","if","each","-track-array","toolbar-popup-menu-options","action","hash","d-button","fn","conditional-loading-spinner","popup-input-tip","plugin-outlet","unless","html-safe","span","emoji-picker"]]',moduleName:"discourse/components/d-editor.hbs",isStrictMode:!1}),R=[];function U(e){R.push(e)}function j(){R=[]}function B(e){(0,P.default)("`onToolbarCreate` is deprecated, use the plugin api instead.",{id:"discourse.d-editor.on-toolbar-create"}),U(e)}let z=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[(0,a.service)("emoji-store")]))();#eS=(()=>void dt7948.i(this,"emojiStore"))();static #n=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();editorComponent=(()=>m.default)();textManipulation;ready=!1;lastSel=null;showLink=!0;emojiPickerIsActive=!1;emojiFilter="";isEditorFocused=!1;processPreview=!0;morphingOptions={beforeAttributeUpdated:(e,t)=>!("DETAILS"===e.tagName&&"open"===t)};init(){super.init(...arguments),this.register=(0,M.getRegister)(this)}placeholderTranslated(e){return e?(0,O.i18n)(e):null}static #i=(()=>dt7948.n(this.prototype,"placeholderTranslated",[(0,N.default)("placeholder")]))();_readyNow(){this.set("ready",!0),this.autofocus&&this.textManipulation.focus()}didInsertElement(){super.didInsertElement(...arguments),this._previewMutationObserver=this._disablePreviewTabIndex(),this.element.querySelector(".d-editor-preview").addEventListener("click",this._handlePreviewLinkClick)}get keymap(){let e={},t=this.get("toolbar.shortcuts");return Object.keys(t).forEach(n=>{let i=t[n];e[n]=()=>{let e=t[n].shortcutAction;return e?e(this.newToolbarEvent()):i.action(i),!1}}),this.popupMenuOptions&&this.onPopupMenuAction&&this.popupMenuOptions.forEach(t=>{t.shortcut&&t.condition&&(e[`${x.PLATFORM_KEY_MODIFIER}+${t.shortcut}`.toLowerCase()]=()=>(this.onPopupMenuAction(t,this.newToolbarEvent()),!1))}),e.tab=()=>this.textManipulation.indentSelection("right"),e["shift+tab"]=()=>this.textManipulation.indentSelection("left"),e}_handlePreviewLinkClick(e){if(!(0,k.wantsNewWindow)(e)&&"A"===e.target.tagName)return e.target.classList.contains("mention")&&this.appEvents.trigger("d-editor:preview-click-user-card",e.target,e),e.target.classList.contains("mention-group")&&this.appEvents.trigger("d-editor:preview-click-group-card",e.target,e),e.preventDefault(),!1}static #l=(()=>dt7948.n(this.prototype,"_handlePreviewLinkClick",[N.bind]))();_shutDown(){this.element.querySelector(".d-editor-preview")?.removeEventListener("click",this._handlePreviewLinkClick),this._previewMutationObserver?.disconnect(),this._cachedCookFunction=null}static #u=(()=>dt7948.n(this.prototype,"_shutDown",[(0,u.on)("willDestroyElement")]))();toolbar(){let e=new y.default(this.getProperties("site","siteSettings","showLink","capabilities"));e.context=this,R.forEach(t=>t(e)),this.extraButtons&&this.extraButtons(e);let t=e.groups.mapBy("buttons").flat().firstObject;return t&&(t.tabindex=0),e}static #c=(()=>dt7948.n(this.prototype,"toolbar",[(0,N.default)()]))();async cachedCookAsync(e,t){return this._cachedCookFunction||=await (0,C.generateCookFunction)(t||{}),await this._cachedCookFunction(e)}async _updatePreview(){let e,t;if("inDOM"!==this._state||!this.processPreview||this.isDestroying||this.isDestroyed)return;let i=await this.cachedCookAsync(this.value,this.markdownOptions);if(this.preview!==i&&!this.isDestroying&&!this.isDestroyed){if(this.set("preview",i),this.siteSettings.enable_diffhtml_preview){let s=this.element.querySelector(".d-editor-preview"),r=s.cloneNode(!1);r.innerHTML=i,e=(0,T.linkSeenMentions)(r,this.siteSettings),t=(0,w.linkSeenHashtagsInContext)(this.site.hashtag_configurations["topic-composer"],r),(0,S.loadOneboxes)(r,f.ajax,this.topicId,this.categoryId,this.siteSettings.max_oneboxes_per_post,!1,!0),(0,p.resolveCachedShortUrls)(this.siteSettings,r),this.appEvents.trigger("decorate-non-stream-cooked-element",r),(await n.e(634).then(n.bind(n,98634))).morph(s,r,this.morphingOptions)}(0,o.schedule)("afterRender",()=>{if("inDOM"!==this._state||!this.element||this.isDestroying||this.isDestroyed)return;let n=this.element.querySelector(".d-editor-preview");n&&this.previewUpdated&&this.previewUpdated(n,e,t)})}}async _watchForChanges(){this.ready&&((0,D.isTesting)()?await this._updatePreview():(0,I.default)(this,this._updatePreview,30))}static #d=(()=>dt7948.n(this.prototype,"_watchForChanges",[(0,u.observes)("ready","value","processPreview")]))();_applyHashtagAutocomplete(){this.textManipulation.autocomplete((0,b.hashtagAutocompleteOptions)(this.site.hashtag_configurations["topic-composer"],this.siteSettings,{afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)}}))}_applyEmojiAutocomplete(){this.siteSettings.enable_emoji&&this.textManipulation.autocomplete({template:(0,F.findRawTemplate)("emoji-selector-autocomplete"),key:":",afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)},onKeyUp:(e,t)=>{let n=/(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(e.substring(0,t));if(n&&n[1])return[n[1]]},transformComplete:e=>e.code?(this.emojiStore.track(e.code),`${e.code}:`):(this.textManipulation.autocomplete({cancel:!0}),this.set("emojiPickerIsActive",!0),this.set("emojiFilter",e.term),""),dataSource:e=>new h.Promise(t=>{let n=`:${e}`;if((e=e.toLowerCase()).length!this.site.denied_emojis?.includes(e)).slice(0,5):["slight_smile","smile","wink","sunny","blush"]);let i=this.get("site.custom_emoji_translation")||{},s=Object.assign({},d.translations,i);if(s[n])return t([s[n]]);let r=this.get("site.denied_emojis")||[],o=e.match(/^:?(.*?):t([2-6])?$/);if(o){let e=o[1],n=o[2];if((0,c.isSkinTonableEmoji)(e)&&!r.includes(e))return t(n?[`${e}:t${n}`]:[2,3,4,5,6].map(t=>`${e}:t${t}`))}return t((0,c.emojiSearch)(e,{maxResults:5,diversity:this.emojiStore.diversity,exclude:r}))}).then(e=>e===_.SKIP?[]:e.map(e=>({code:e,src:(0,C.emojiUrlFor)(e)}))).then(t=>(t.length&&t.push({label:(0,O.i18n)("composer.more_emoji"),term:e}),t)),triggerRule:async()=>!await this.textManipulation.inCodeBlock()})}_applyMentionAutocomplete(){this.siteSettings.enable_mentions&&this.textManipulation.autocomplete({template:(0,F.findRawTemplate)("user-selector-autocomplete"),dataSource:e=>((0,A.destroyUserStatuses)(),(0,E.default)({term:e,topicId:this.topicId,categoryId:this.categoryId,includeGroups:!0}).then(e=>((0,A.initUserStatusHtml)((0,r.getOwner)(this),e.users),e))),onRender:e=>(0,A.renderUserStatusHtml)(e),key:"@",transformComplete:e=>e.username||e.name,afterComplete:()=>{(0,o.schedule)("afterRender",this.textManipulation,this.textManipulation.blurAndFocus)},triggerRule:async()=>!await this.textManipulation.inCodeBlock(),onClose:A.destroyUserStatuses})}rovingButtonBar(e){let t,n=e.target;if("ArrowRight"===e.code)t="nextElementSibling";else{if("ArrowLeft"!==e.code)return!0;t="previousElementSibling"}for(;n.parentNode&&!n.parentNode.classList.contains("d-editor-button-bar");)n=n.parentNode;let i=n[t];if(i){for(;"BUTTON"!==i.tagName&&!i.classList.contains("select-kit")||i.classList.contains("hidden");)i=i[t];i?.tagName==="DETAILS"&&(i=i.querySelector("summary")),i?.focus()}return!0}static #p=(()=>dt7948.n(this.prototype,"rovingButtonBar",[s.action]))();onEmojiPickerClose(){this.isDestroyed||this.isDestroying||this.set("emojiPickerIsActive",!1)}static #h=(()=>dt7948.n(this.prototype,"onEmojiPickerClose",[s.action]))();newToolbarEvent(e){let t=this.textManipulation.getSelected(e);return{selected:t,selectText:(e,t)=>this.textManipulation.selectText(e,t,{scroll:!1}),applySurround:(e,n,i,s)=>this.textManipulation.applySurround(t,e,n,i,s),applyList:(e,n,i)=>this.textManipulation.applyList(t,e,n,i),formatCode:()=>this.textManipulation.formatCode(),addText:e=>this.textManipulation.addText(t,e),getText:()=>this.value,toggleDirection:()=>this.textManipulation.toggleDirection(),replaceText:(e,t,n)=>this.textManipulation.replaceText(e,t,n)}}emoji(){this.disabled||this.set("emojiPickerIsActive",!this.emojiPickerIsActive)}static #m=(()=>dt7948.n(this.prototype,"emoji",[s.action]))();toolbarButton(e){if(this.disabled)return;let t=this.newToolbarEvent(e.trimLeading);if(e.sendAction)return e.sendAction(t);e.perform(t)}static #g=(()=>dt7948.n(this.prototype,"toolbarButton",[s.action]))();showLinkModal(e){if(this.disabled)return;let t="";this._lastSel=e.selected,this._lastSel&&(t=this._lastSel.value),this.modal.show(g.default,{model:{linkText:t,toolbarEvent:e}})}static #E=(()=>dt7948.n(this.prototype,"showLinkModal",[s.action]))();handleFocusIn(){this.set("isEditorFocused",!0)}static #A=(()=>dt7948.n(this.prototype,"handleFocusIn",[s.action]))();handleFocusOut(){this.set("isEditorFocused",!1)}static #D=(()=>dt7948.n(this.prototype,"handleFocusOut",[s.action]))();setupEditor(e){this.set("textManipulation",e);let t=this.setupEvents();this.element.addEventListener("paste",e.paste),this._applyEmojiAutocomplete(),this._applyHashtagAutocomplete(),this._applyMentionAutocomplete();let n=this.onSetup?.(e);return(0,o.scheduleOnce)("afterRender",this,this._readyNow),()=>{t?.(),this.element?.removeEventListener("paste",e.paste),e.autocomplete("destroy"),n?.()}}static #I=(()=>dt7948.n(this.prototype,"setupEditor",[s.action]))();setupEvents(){let e=this.textManipulation;if(this.composerEvents)return this.appEvents.on("composer:insert-block",e,"insertBlock"),this.appEvents.on("composer:insert-text",e,"insertText"),this.appEvents.on("composer:replace-text",e,"replaceText"),this.appEvents.on("composer:apply-surround",e,"applySurroundSelection"),this.appEvents.on("composer:indent-selected-text",e,"indentSelection"),()=>{this.appEvents.off("composer:insert-block",e,"insertBlock"),this.appEvents.off("composer:insert-text",e,"insertText"),this.appEvents.off("composer:replace-text",e,"replaceText"),this.appEvents.off("composer:apply-surround",e,"applySurroundSelection"),this.appEvents.off("composer:indent-selected-text",e,"indentSelection")}}_disablePreviewTabIndex(){let e=new MutationObserver(function(){document.querySelectorAll(".d-editor-preview a").forEach(e=>{e.setAttribute("tabindex","-1")})});return e.observe(document.querySelector(".d-editor-preview"),{childList:!0,subtree:!0,attributes:!1,characterData:!0}),e}},[(0,l.classNames)("d-editor")]),$=(0,i.setComponentTemplate)(L,z)},61684:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(54729),o=n(35804),a=n(13603),l=n(11635),u=n(86211),c=n(62797);let d=(0,n(82739).createTemplateFactory)({id:"lNODtY5S",block:'[[[11,"section"],[24,"tabindex","-1"],[16,1,[30,0,["elementId"]]],[16,"aria-hidden",[28,[37,1],[[30,0,["isVisible"]]],null]],[16,0,[30,0,["HTMLClassList"]]],[4,[38,2],[[30,0,["registerAppEventListeners"]]],null],[4,[38,3],[[30,0,["deregisterAppEventListeners"]]],null],[12],[1,"\\n"],[41,[30,0,["isVisible"]],[[[1," "],[11,0],[24,"aria-hidden","false"],[24,"tabindex","0"],[24,"role","document"],[24,0,"d-lightbox__content"],[16,5,[30,0,["CSSVars"]]],[16,"aria-labelledby",[30,0,["titleElementId"]]],[4,[38,6],["keydown",[30,0,["onKeydown"]]],[["passive","capture"],[false,true]]],[4,[38,6],["keyup",[30,0,["onKeyup"]]],[["passive","capture"],[true,true]]],[12],[1,"\\n "],[10,0],[14,0,"d-lightbox__focus-trap"],[14,"tabindex","0"],[12],[13],[1,"\\n "],[8,[39,7],null,[["@canDownload","@canFullscreen","@canNavigate","@close","@openInNewTab","@toggleCarousel","@toggleFullScreen","@totalItemCount","@counterIndex"],[[30,0,["canDownload"]],[30,0,["canFullscreen"]],[30,0,["canNavigate"]],[30,0,["close"]],[30,0,["openInNewTab"]],[30,0,["toggleCarousel"]],[30,0,["toggleFullScreen"]],[30,0,["totalItemCount"]],[30,0,["counterIndex"]]]],null],[1,"\\n "],[8,[39,8],null,[["@close","@centerZoomedBackgroundPosition","@currentItem","@hasLoadingError","@isLoading","@isZoomed","@nextButtonIcon","@onTouchend","@onTouchstart","@previousButtonIcon","@reloadImage","@shouldDisplayMainImageArrows","@showNextItem","@showPreviousItem","@toggleZoom","@zoomOnMouseover"],[[30,0,["close"]],[30,0,["centerZoomedBackgroundPosition"]],[30,0,["currentItem"]],[30,0,["hasLoadingError"]],[30,0,["isLoading"]],[30,0,["isZoomed"]],[30,0,["nextButtonIcon"]],[30,0,["onTouchend"]],[30,0,["onTouchstart"]],[30,0,["previousButtonIcon"]],[30,0,["reloadImage"]],[30,0,["shouldDisplayMainImageArrows"]],[30,0,["showNextItem"]],[30,0,["showPreviousItem"]],[30,0,["toggleZoom"]],[30,0,["zoomOnMouseover"]]]],null],[1,"\\n"],[41,[30,0,["shouldDisplayCarousel"]],[[[1," "],[8,[39,9],null,[["@currentIndex","@items","@nextButtonIcon","@previousButtonIcon","@showNextItem","@showPreviousItem","@showSelectedImage","@shouldDisplayCarouselArrows"],[[30,0,["currentIndex"]],[30,0,["items"]],[30,0,["nextButtonIcon"]],[30,0,["previousButtonIcon"]],[30,0,["showNextItem"]],[30,0,["showPreviousItem"]],[30,0,["showSelectedImage"]],[30,0,["shouldDisplayCarouselArrows"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],null,[["@canDownload","@canRotate","@canZoom","@currentItem","@downloadImage","@rotateImage","@shouldDisplayTitle","@toggleExpandTitle","@toggleZoom","@zoomButtonIcon"],[[30,0,["canDownload"]],[30,0,["canRotate"]],[30,0,["canZoom"]],[30,0,["currentItem"]],[30,0,["downloadImage"]],[30,0,["rotateImage"]],[30,0,["shouldDisplayTitle"]],[30,0,["toggleExpandTitle"]],[30,0,["toggleZoom"]],[30,0,["zoomButtonIcon"]]]],null],[1,"\\n\\n "],[8,[39,11],null,[["@currentItem","@counterIndex","@totalItemCount","@titleElementId"],[[30,0,["currentItem"]],[30,0,["counterIndex"]],[30,0,["totalItemCount"]],[30,0,["titleElementId"]]]],null],[1,"\\n "],[10,0],[14,0,"d-lightbox__focus-trap"],[14,"tabindex","0"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["section","not","did-insert","will-destroy","if","div","on","d-lightbox/header","d-lightbox/body","d-lightbox/carousel","d-lightbox/footer","d-lightbox/screen-reader-announcer"]]',moduleName:"discourse/components/d-lightbox.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"items",[s.tracked],function(){return[]}))();#eC=(()=>void dt7948.i(this,"items"))();static #i=(()=>dt7948.g(this.prototype,"isVisible",[s.tracked],function(){return!1}))();#eE=(()=>void dt7948.i(this,"isVisible"))();static #l=(()=>dt7948.g(this.prototype,"isLoading",[s.tracked],function(){return!1}))();#a=(()=>void dt7948.i(this,"isLoading"))();static #u=(()=>dt7948.g(this.prototype,"currentIndex",[s.tracked],function(){return 0}))();#eA=(()=>void dt7948.i(this,"currentIndex"))();static #c=(()=>dt7948.g(this.prototype,"currentItem",[s.tracked],function(){return{}}))();#eD=(()=>void dt7948.i(this,"currentItem"))();static #d=(()=>dt7948.g(this.prototype,"isZoomed",[s.tracked],function(){return!1}))();#eI=(()=>void dt7948.i(this,"isZoomed"))();static #p=(()=>dt7948.g(this.prototype,"isRotated",[s.tracked],function(){return!1}))();#eP=(()=>void dt7948.i(this,"isRotated"))();static #h=(()=>dt7948.g(this.prototype,"isFullScreen",[s.tracked],function(){return!1}))();#eM=(()=>void dt7948.i(this,"isFullScreen"))();static #m=(()=>dt7948.g(this.prototype,"rotationAmount",[s.tracked],function(){return 0}))();#eF=(()=>void dt7948.i(this,"rotationAmount"))();static #g=(()=>dt7948.g(this.prototype,"hasCarousel",[s.tracked],function(){return!0}))();#eN=(()=>void dt7948.i(this,"hasCarousel"))();static #E=(()=>dt7948.g(this.prototype,"hasExpandedTitle",[s.tracked],function(){return!1}))();#eO=(()=>void dt7948.i(this,"hasExpandedTitle"))();options={};callbacks={};willClose=!1;elementId=(()=>a.LIGHTBOX_ELEMENT_ID)();titleElementId=(()=>a.TITLE_ELEMENT_ID)();animationDuration=(()=>a.ANIMATION_DURATION)();scrollPosition=0;willDestroy(){super.willDestroy(...arguments),this.cleanup()}get layoutType(){return window.innerWidth>window.innerHeight?a.LAYOUT_TYPES.HORIZONTAL:a.LAYOUT_TYPES.VERTICAL}get CSSVars(){let e="--d-lightbox-image",t=[`${e}-animation-duration: ${this.animationDuration}ms;`];if(!this.currentItem)return(0,o.htmlSafe)(t.join(""));let{width:n,height:i,aspectRatio:s,dominantColor:r,fullsizeURL:a}=this.currentItem;return t.push(`${e}-rotation: ${this.rotationAmount}deg`,`${e}-width: ${n}px`,`${e}-height: ${i}px`,`${e}-aspect-ratio: ${s}`,`${e}-dominant-color: #${r}`,`${e}-full-size-url: url(${encodeURI(a)})`),(0,o.htmlSafe)(t.filter(Boolean).join(";"))}get HTMLClassList(){let e=["d-lightbox"];return this.isVisible?(e.push(this.layoutType&&`is-${this.layoutType}`,this.isVisible&&"is-visible",this.isLoading?"is-loading":"is-finished-loading",this.isFullScreen&&"is-fullscreen",this.isZoomed&&"is-zoomed",this.isRotated&&"is-rotated",this.canZoom&&"can-zoom",this.hasExpandedTitle&&"has-expanded-title",this.hasCarousel&&"has-carousel",this.hasLoadingError&&"has-loading-error",this.willClose&&"will-close",this.isRotated&&this.rotationAmount&&`is-rotated-${this.rotationAmount}`),e.filter(Boolean).join(" ")):e.join("")}get shouldDisplayMainImageArrows(){return!this.options.isMobile&&this.canNavigate&&!this.hasCarousel&&!this.isZoomed&&!this.isRotated}get shouldDisplayCarousel(){return this.hasCarousel&&this.totalItemCount>=this.options.minCarouselItemCount&&!this.isZoomed&&!this.isRotated}get shouldDisplayCarouselArrows(){return!this.options.isMobile&&this.totalItemCount>=this.options.minCarouselArrowItemCount}get shouldDisplayTitle(){return!this.hasLoadingError&&!this.isZoomed&&!this.isRotated}get totalItemCount(){return this.items?.length||0}get counterIndex(){return this.currentIndex?this.currentIndex+1:1}get canNavigate(){return this.items?.length>1}get canZoom(){return!this.hasLoadingError&&this.currentItem?.canZoom}get canRotate(){return!this.hasLoadingError}get canDownload(){return!this.hasLoadingError&&this.options.canDownload}get canFullscreen(){return!this.hasLoadingError}get hasLoadingError(){return this.currentItem?.hasLoadingError}get nextButtonIcon(){return this.options.isRTL?"chevron-left":"chevron-right"}get previousButtonIcon(){return this.options.isRTL?"chevron-right":"chevron-left"}get zoomButtonIcon(){return this.isZoomed?"magnifying-glass-minus":"magnifying-glass-plus"}registerAppEventListeners(){this.appEvents.on(a.LIGHTBOX_APP_EVENT_NAMES.OPEN,this.open),this.appEvents.on(a.LIGHTBOX_APP_EVENT_NAMES.CLOSE,this.close)}static #A=(()=>dt7948.n(this.prototype,"registerAppEventListeners",[c.bind]))();deregisterAppEventListeners(){this.appEvents.off(a.LIGHTBOX_APP_EVENT_NAMES.OPEN,this.open),this.appEvents.off(a.LIGHTBOX_APP_EVENT_NAMES.CLOSE,this.close)}static #D=(()=>dt7948.n(this.prototype,"deregisterAppEventListeners",[c.bind]))();open(e){let{items:t,startingIndex:n,callbacks:i,options:s}=e;this.options=s,this.items=t,this.currentIndex=n,this.callbacks=i,this.isLoading=!0,this.isVisible=!0,this.scrollPosition=window.scrollY,this.#eL(this.currentIndex),this.options.zoomOnOpen&&this.currentItem?.canZoom&&!this.currentItem?.isZoomed&&this.toggleZoom(),this.callbacks.onOpen?.({items:this.items,currentItem:this.currentItem})}static #I=(()=>dt7948.n(this.prototype,"open",[c.bind]))();close(){this.willClose=!0,(0,u.default)(this.cleanup,this.animationDuration),this.callbacks.onClose?.()}static #G=(()=>dt7948.n(this.prototype,"close",[c.bind]))();async #eL(e){this.#eR(),this.currentIndex=(e+this.totalItemCount)%this.totalItemCount,this.currentItem=await (0,l.preloadItemImages)(this.items[this.currentIndex]),this.#eU()}#eR(){this.callbacks.onItemWillChange?.({currentItem:this.currentItem}),this.isLoading=!0,this.isZoomed=!1,this.isRotated=!1}#eU(){this.isLoading=!1,this.currentItem.dominantColor&&(0,l.setSiteThemeColor)(this.currentItem.dominantColor),(0,l.setCarouselScrollPosition)({behavior:"smooth"}),this.callbacks.onItemDidChange?.({currentItem:this.currentItem});let e=this.items[this.currentIndex+1];return!!e&&(0,l.preloadItemImages)(e)}centerZoomedBackgroundPosition(e){return!!this.options.isMobile&&(0,l.scrollParentToElementCenter)({element:e,isRTL:this.options.isRTL})}static #Y=(()=>dt7948.n(this.prototype,"centerZoomedBackgroundPosition",[c.bind]))();zoomOnMouseover(e){let t=e.target,n=e.offsetX,i=e.offsetY,s=n/t.offsetWidth*100,r=i/t.offsetHeight*100;t.style.backgroundPosition=s+"% "+r+"%"}toggleZoom(){!this.isLoading&&this.canZoom&&(this.isZoomed=!this.isZoomed,document.querySelector(".d-lightbox__close-button")?.focus())}static #Q=(()=>dt7948.n(this.prototype,"toggleZoom",[c.bind]))();rotateImage(){this.rotationAmount=(this.rotationAmount+90)%360,this.isRotated=0!==this.rotationAmount}static #J=(()=>dt7948.n(this.prototype,"rotateImage",[c.bind]))();toggleFullScreen(){return this.isFullScreen=!this.isFullScreen,this.isFullScreen?document.documentElement.requestFullscreen():document.exitFullscreen()}static #X=(()=>dt7948.n(this.prototype,"toggleFullScreen",[c.bind]))();downloadImage(){return(0,l.createDownloadLink)(this.currentItem)}static #Z=(()=>dt7948.n(this.prototype,"downloadImage",[c.bind]))();openInNewTab(){return(0,l.openImageInNewTab)(this.currentItem)}static #ee=(()=>dt7948.n(this.prototype,"openInNewTab",[c.bind]))();reloadImage(){this.#eL(this.currentIndex)}static #et=(()=>dt7948.n(this.prototype,"reloadImage",[c.bind]))();toggleCarousel(){this.hasCarousel=!this.hasCarousel,requestAnimationFrame(l.setCarouselScrollPosition)}static #en=(()=>dt7948.n(this.prototype,"toggleCarousel",[c.bind]))();showNextItem(){this.#eL(this.currentIndex+1)}static #ei=(()=>dt7948.n(this.prototype,"showNextItem",[c.bind]))();showPreviousItem(){this.#eL(this.currentIndex-1)}static #es=(()=>dt7948.n(this.prototype,"showPreviousItem",[c.bind]))();showSelectedImage(e){let t=e.target.dataset?.lightboxItemIndex;return!!t&&this.#eL(Number(t))}static #er=(()=>dt7948.n(this.prototype,"showSelectedImage",[c.bind]))();toggleExpandTitle(){this.hasExpandedTitle=!this.hasExpandedTitle}static #eo=(()=>dt7948.n(this.prototype,"toggleExpandTitle",[c.bind]))();onKeydown(e){if(e.key===a.KEYBOARD_SHORTCUTS.CLOSE)return e.preventDefault(),e.stopPropagation(),this.close()}static #ea=(()=>dt7948.n(this.prototype,"onKeydown",[c.bind]))();onKeyup(e){let{key:t}=e;return a.KEYBOARD_SHORTCUTS.PREVIOUS.includes(t)?this.showPreviousItem():a.KEYBOARD_SHORTCUTS.NEXT.includes(t)?this.showNextItem():t===a.KEYBOARD_SHORTCUTS.ZOOM?this.toggleZoom():t===a.KEYBOARD_SHORTCUTS.FULLSCREEN?this.toggleFullScreen():t===a.KEYBOARD_SHORTCUTS.ROTATE?this.rotateImage():t===a.KEYBOARD_SHORTCUTS.DOWNLOAD?this.downloadImage():t===a.KEYBOARD_SHORTCUTS.CAROUSEL?this.toggleCarousel():t===a.KEYBOARD_SHORTCUTS.TITLE?this.toggleExpandTitle():t===a.KEYBOARD_SHORTCUTS.NEWTAB?this.openInNewTab():void 0}static #el=(()=>dt7948.n(this.prototype,"onKeyup",[c.bind]))();onTouchstart(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Event;if(this.isZoomed)return!1;this.touchstartX=e.changedTouches[0].screenX,this.touchstartY=e.changedTouches[0].screenY}static #eu=(()=>dt7948.n(this.prototype,"onTouchstart",[c.bind]))();async onTouchend(e){if(this.isZoomed)return!1;e.stopPropagation();let t=e.changedTouches[0].screenY,n=e.changedTouches[0].screenX;switch(await (0,l.getSwipeDirection)({touchstartX:this.touchstartX,touchstartY:this.touchstartY,touchendX:n,touchendY:t})){case a.SWIPE_DIRECTIONS.LEFT:this.options.isRTL?this.showNextItem():this.showPreviousItem();break;case a.SWIPE_DIRECTIONS.RIGHT:this.options.isRTL?this.showPreviousItem():this.showNextItem();break;case a.SWIPE_DIRECTIONS.DOWN:this.close()}}static #ec=(()=>dt7948.n(this.prototype,"onTouchend",[c.bind]))();cleanup(){this.isVisible&&(this.hasCarousel=!0,this.hasExpandedTitle=!1,this.isLoading=!1,this.items=[],this.currentIndex=0,this.isZoomed=!1,this.isRotated=!1,this.rotationAmount=0,this.isFullScreen&&(this.toggleFullScreen(),this.isFullScreen=!1),this.isVisible=!1,this.willClose=!1,this.resetScrollPosition(),this.callbacks.onCleanup?.(),this.callbacks={},this.options={})}static #ed=(()=>dt7948.n(this.prototype,"cleanup",[c.bind]))();resetScrollPosition(){window.scrollY!==this.scrollPosition&&window.scrollTo({left:0,top:parseInt(this.scrollPosition,10),behavior:"instant"})}}(0,p.setComponentTemplate)(d,h)},95265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"23rBkU6S",block:'[[[11,0],[24,"aria-hidden","true"],[24,0,"d-lightbox__backdrop"],[24,"tabindex","-1"],[4,[38,1],["click",[30,1]],[["passive","capture"],[true,true]]],[12],[13]],["@close"],false,["div","on"]]',moduleName:"discourse/components/d-lightbox/backdrop.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"backdrop"))},17781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"OdnLwQnY",block:'[[[11,0],[24,0,"d-lightbox__body"],[24,"tabindex","-1"],[4,[38,1],["touchstart",[30,1]],[["passive","capture"],[true,true]]],[4,[38,1],["touchend",[30,2]],[["passive","capture"],[true,true]]],[4,[38,1],["click",[30,3]],[["passive"],[true]]],[12],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,3],[[24,0,"d-lightbox__previous-button btn-transparent"],[4,[38,1],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.previous",[30,5],"true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1," "],[10,1],[14,0,"d-lightbox__loading-spinner"],[12],[1,"\\n "],[1,[28,[35,5],null,[["size"],["large"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,8],[[[1," "],[10,1],[14,0,"d-lightbox__error-message"],[12],[1,"\\n "],[8,[39,3],[[24,0,"d-lightbox__retry-button btn-flat"],[4,[38,1],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon"],["experimental_lightbox.buttons.redo","arrow-rotate-right"]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["experimental_lightbox.image_load_error"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,10],[[[1," "],[11,0],[24,0,"d-lightbox__zoomed-image-container"],[24,"tabindex","-1"],[4,[38,7],[[30,11]],null],[4,[38,1],["mousemove",[30,12]],[["passive","capture"],[true,true]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@close"],[[30,13]]],null],[1,"\\n "],[10,"img"],[14,"aria-hidden","true"],[14,"draggable","false"],[14,"fetchPriority","high"],[14,"decoding","async"],[14,"tabindex","-1"],[14,0,"d-lightbox__main-image"],[15,"src",[30,14,["fullsizeURL"]]],[12],[13],[1,"\\n "]],[]]]],[]]]],[]]],[41,[30,4],[[[1," "],[8,[39,3],[[24,0,"d-lightbox__next-button btn-flat"],[4,[38,1],["click",[30,16]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.next",[30,15],"true"]],null],[1,"\\n"]],[]],null],[13]],["@onTouchstart","@onTouchend","@toggleZoom","@shouldDisplayMainImageArrows","@previousButtonIcon","@showPreviousItem","@isLoading","@hasLoadingError","@reloadImage","@isZoomed","@centerZoomedBackgroundPosition","@zoomOnMouseover","@close","@currentItem","@nextButtonIcon","@showNextItem"],false,["div","on","if","d-button","span","loading-spinner","i18n","did-insert","d-lightbox/backdrop","img"]]',moduleName:"discourse/components/d-lightbox/body.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"body"))},74624:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"XGp63XrW",block:'[[[10,0],[14,0,"d-lightbox__carousel"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[39,2],[[24,0,"d-lightbox__carousel-previous-button btn-flat"],[4,[38,3],["click",[30,3]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.previous",[30,2],"true"]],null],[1,"\\n"]],[]],null],[1," "],[11,0],[24,0,"d-lightbox__carousel-items"],[24,"tabindex","-1"],[24,"role","list"],[24,"aria-hidden","true"],[4,[38,3],["click",[30,4]],[["passive","capture"],[true,true]]],[4,[38,3],["focus",[30,4]],[["passive","capture"],[true,true]]],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,5]],null]],null],null,[[[1," "],[10,"img"],[15,"data-lightbox-carousel-item",[52,[28,[37,7],[[30,6,["index"]],[30,7]],null],"current",""]],[14,"fetchPriority","low"],[14,"decoding","async"],[14,"loading","lazy"],[14,"tabindex","-1"],[15,"src",[30,6,["smallURL"]]],[15,"data-lightbox-item-index",[30,6,["index"]]],[15,5,[30,6,["cssVars"]]],[15,0,[28,[37,8],["d-lightbox__carousel-item",[52,[28,[37,7],[[30,6,["index"]],[30,7]],null]," is-current"]],null]],[12],[13],[1,"\\n"]],[6]],null],[1," "],[13],[1,"\\n"],[41,[30,1],[[[1," "],[8,[39,2],[[24,0,"d-lightbox__carousel-next-button btn-flat"],[4,[38,3],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.next",[30,8],"true"]],null],[1,"\\n"]],[]],null],[13]],["@shouldDisplayCarouselArrows","@previousButtonIcon","@showPreviousItem","@showSelectedImage","@items","item","@currentIndex","@nextButtonIcon","@showNextItem"],false,["div","if","d-button","on","each","-track-array","img","eq","concat"]]',moduleName:"discourse/components/d-lightbox/carousel.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"carousel"))},65371:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"JiEUYKAD",block:'[[[10,0],[14,0,"d-lightbox__footer"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[24,"aria-hidden","true"],[24,0,"d-lightbox__main-title"],[24,"tabindex","0"],[4,[38,2],["click",[30,2]],[["passive","capture"],[true,true]]],[12],[1,"\\n "],[10,1],[14,0,"d-lightbox__item-title"],[12],[1,[30,3,["title"]]],[13],[1,"\\n "],[10,1],[14,0,"d-lightbox__item-file-details"],[12],[1,[30,3,["fileDetails"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"d-lightbox__footer-buttons"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,4],[[24,"aria-hidden","true"],[24,0,"d-lightbox__zoom-button btn-flat"],[4,[38,2],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.zoom",[30,5],"true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1," "],[8,[39,4],[[24,"aria-hidden","true"],[24,0,"d-lightbox__rotate-button btn-flat"],[4,[38,2],["click",[30,8]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.rotate","arrow-rotate-right","true"]],null],[1,"\\n"]],[]],null],[41,[30,9],[[[1," "],[8,[39,4],[[24,0,"d-lightbox__download-button btn-flat"],[4,[38,2],["click",[30,10]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.download","download","true"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@shouldDisplayTitle","@toggleExpandTitle","@currentItem","@canZoom","@zoomButtonIcon","@toggleZoom","@canRotate","@rotateImage","@canDownload","@downloadImage"],false,["div","if","on","span","d-button"]]',moduleName:"discourse/components/d-lightbox/footer.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"footer"))},72855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"ogh+eX4y",block:'[[[10,0],[14,0,"d-lightbox__header"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,"aria-hidden","true"],[14,0,"d-lightbox__multi-item-controls"],[12],[1,"\\n "],[8,[39,2],[[24,"aria-hidden","true"],[24,0,"d-lightbox__carousel-button btn-flat"],[4,[38,3],["click",[30,2]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.carousel","images","true"]],null],[1,"\\n "],[10,0],[14,0,"d-lightbox__counters"],[12],[1,"\\n "],[10,1],[14,0,"d-lightbox__counter-current"],[12],[1,[30,3]],[13],[1,"\\n "],[10,1],[14,0,"d-lightbox__counter-separator"],[12],[1,"\\n "],[10,1],[12],[1,"/"],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"d-lightbox__counter-total"],[12],[1,[30,4]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"d-lightbox__header-buttons"],[12],[1,"\\n"],[41,[30,5],[[[1," "],[8,[39,2],[[24,"aria-hidden","true"],[24,0,"d-lightbox__new-tab-button btn-flat"],[4,[38,3],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.newtab","up-right-from-square","true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1," "],[8,[39,2],[[24,"aria-hidden","true"],[24,0,"d-lightbox__full-screen-button btn-flat"],[4,[38,3],["click",[30,8]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.fullscreen","discourse-expand","true"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,2],[[24,0,"d-lightbox__close-button btn-flat"],[4,[38,3],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.close","xmark","true"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@canNavigate","@toggleCarousel","@counterIndex","@totalItemCount","@canDownload","@openInNewTab","@canFullscreen","@toggleFullScreen","@close"],false,["div","if","d-button","on","span"]]',moduleName:"discourse/components/d-lightbox/header.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"header"))},36692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Mthb0Dl8",block:'[[[10,0],[14,0,"d-lightbox__screen-reader-announcer"],[14,"tabindex","-1"],[12],[1,"\\n "],[10,"h2"],[14,"aria-live","polite"],[14,"aria-level","2"],[14,"aria-atomic","true"],[14,0,"d-lightbox__screen-reader-title"],[15,1,[30,1]],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1," "],[1,[28,[35,3],["experimental_lightbox.screen_reader_image_title"],[["current","total","title"],[[30,3],[30,4],[30,2,["title"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@titleElementId","@currentItem","@counterIndex","@totalItemCount"],false,["div","h2","if","i18n"]]',moduleName:"discourse/components/d-lightbox/screen-reader-announcer.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"screen-reader-announcer"))},48491:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"/jbbeH0V",block:'[[[8,[39,0],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@translatedLabel"],[[30,1],[28,[37,1],["cancel"],null]]],null]],["@close"],false,["d-button","i18n"]]',moduleName:"discourse/components/d-modal-cancel.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"d-modal-cancel"))},72491:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLOSE_INITIATED_BY_BUTTON:()=>E,CLOSE_INITIATED_BY_CLICK_OUTSIDE:()=>D,CLOSE_INITIATED_BY_ESC:()=>A,CLOSE_INITIATED_BY_MODAL_SHOW:()=>I,CLOSE_INITIATED_BY_SWIPE_DOWN:()=>P,default:()=>M});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(68741),l=n(77843),u=n(54729),c=n(79635),d=n(64151),p=n(72713),h=n(92976),m=n(89011),g=n(27147),f=n(31496),_=n(75718),y=n(47050),b=n(13600),w=n(31009),k=n(51126),x=n(62797),T=n(76417),S=n(82739);let C=(0,n(41664).A)(n(28564)).cached,E="initiatedByCloseButton",A="initiatedByESC",D="initiatedByClickOut",I="initiatedByModalShow",P="initiatedBySwipeDown";class M extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[u.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"capabilities",[u.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #u=(()=>dt7948.g(this.prototype,"wrapperElement",[s.tracked]))();#ej=(()=>void dt7948.i(this,"wrapperElement"))();static #c=(()=>dt7948.g(this.prototype,"animating",[s.tracked],function(){return!1}))();#eB=(()=>void dt7948.i(this,"animating"))();registerModalContainer=(()=>(0,c.modifier)(e=>{this.modalContainer=e}))();setupModalBody=(()=>(0,c.modifier)(e=>{if(this.site.mobileView)return(0,y.disableBodyScroll)(e),()=>{(0,y.enableBodyScroll)(e)}}))();async setupModal(e){document.documentElement.addEventListener("keydown",this.handleDocumentKeydown),this.appEvents.on("keyboard-visibility-change",this.handleKeyboardVisibilityChange),this.site.mobileView&&(this.animating=!0,await e.animate([{transform:"translateY(100%)"},{transform:"translateY(0)"}],{duration:(0,b.getMaxAnimationTimeMs)(),easing:"ease",fill:"forwards"}).finished,this.animating=!1),this.wrapperElement=e}static #d=(()=>dt7948.n(this.prototype,"setupModal",[o.action]))();cleanupModal(){document.documentElement.removeEventListener("keydown",this.handleDocumentKeydown),this.appEvents.off("keyboard-visibility-change",this.handleKeyboardVisibilityChange)}static #p=(()=>dt7948.n(this.prototype,"cleanupModal",[o.action]))();get dismissable(){return!!this.args.closeModal&&(!("dismissable"in this.args)||this.args.dismissable)}get autofocus(){return this.args.autofocus??!0}shouldTriggerClickOnEnter(e){return!(!1===this.args.submitOnEnter||e.target.closest("form")||document.activeElement?.nodeName==="TEXTAREA")}async handleSwipe(e){if(!this.animating&&e.deltaY>=0)return await this.#ez(e.deltaY)}static #h=(()=>dt7948.n(this.prototype,"handleSwipe",[o.action]))();async handleSwipeEnded(e){if(!this.animating){if(e.goingUp()||e.velocityY<.4)return await this.#ez(0);this.modalContainer.style.transform=`translateY(${e.deltaY}px)`,this.closeModal(P)}}static #m=(()=>dt7948.n(this.prototype,"handleSwipeEnded",[o.action]))();handleWrapperClick(e){if(0===e.button&&this.dismissable)return this.closeModal(D)}static #g=(()=>dt7948.n(this.prototype,"handleWrapperClick",[o.action]))();async closeModal(e){this.args.closeModal&&(this.site.mobileView&&(this.animating=!0,this.#e$(window.innerHeight),await this.#ez(this.modalContainer.clientHeight),this.animating=!1),this.args.closeModal({initiatedBy:e}))}static #E=(()=>dt7948.n(this.prototype,"closeModal",[o.action]))();handleDocumentKeydown(e){!this.args.hidden&&("Escape"===e.key&&this.dismissable&&(e.stopPropagation(),this.closeModal(A)),"Enter"===e.key&&this.shouldTriggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".d-modal__footer .btn-primary")?.click(),e.preventDefault()))}static #A=(()=>dt7948.n(this.prototype,"handleDocumentKeydown",[o.action]))();handleCloseButton(){this.closeModal(E)}static #D=(()=>dt7948.n(this.prototype,"handleCloseButton",[o.action]))();get dynamicElement(){let e=this.args.tagName||"div";if(!["div","form"].includes(e))throw"@tagName must be form or div";return(0,f.default)(e)}static #I=(()=>dt7948.n(this.prototype,"dynamicElement",[C]))();handleKeyboardVisibilityChange(e){e&&this.capabilities.isIOS&&!this.capabilities.isIpadOS&&window.scrollTo(0,0)}static #G=(()=>dt7948.n(this.prototype,"handleKeyboardVisibilityChange",[x.bind]))();#e$(e){let t=this.wrapperElement.nextElementSibling;if(!t)return;let n=1-e/this.modalContainer.clientHeight;t.animate([{opacity:Math.max(0,Math.min(n,.6))}],{fill:"forwards"})}async #ez(e){this.#e$(e),await this.modalContainer.animate([{transform:`translateY(${e}px)`}],{fill:"forwards",duration:(0,b.getMaxAnimationTimeMs)()}).finished}static #Y=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"jCq83Q5S",block:'[[[1,"\\n"],[1,"\\n "],[8,[32,0],null,[["@element","@inline","@append"],[[30,0,["modal","containerElement"]],[30,1],true]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["modal-open"],null]],[1,"\\n "],[8,[30,0,["dynamicElement"]],[[16,0,[28,[32,2],["modal","d-modal",[52,[30,1],"-inline"],[52,[30,0,["animating"]],"is-animating"]],null]],[24,"data-keyboard","false"],[24,"aria-modal","true"],[24,"role","dialog"],[16,"aria-labelledby",[52,[30,2],"discourse-modal-title"]],[17,3],[4,[32,3],[[30,0,["setupModal"]]],null],[4,[32,4],[[30,0,["cleanupModal"]]],null],[4,[32,5],null,[["preventScroll","autofocus"],[false,[30,0,["autofocus"]]]]]],null,[["default"],[[[[1,"\\n "],[11,0],[24,0,"d-modal__container"],[4,[30,0,["registerModalContainer"]],null,null],[12],[1,"\\n "],[18,11,null],[1,"\\n\\n"],[41,[28,[32,6],[[28,[32,7],[[30,4]],null],[28,[32,8],[[30,0,["dismissable"]],[30,2],[48,[30,12]],[48,[30,13]]],null]],null],[[[1," "],[11,0],[16,0,[28,[32,2],["d-modal__header",[30,5]],null]],[4,[32,9],null,[["onDidSwipe","onDidEndSwipe","enabled"],[[30,0,["handleSwipe"]],[30,0,["handleSwipeEnded"]],[30,0,["dismissable"]]]]],[12],[1,"\\n "],[18,13,null],[1,"\\n\\n"],[41,[28,[32,6],[[30,0,["site","mobileView"]],[30,0,["dismissable"]],[48,[30,14]]],null],[[[1," "],[10,0],[14,0,"d-modal__dismiss-action"],[12],[1,"\\n "],[8,[32,10],[[24,0,"btn-transparent btn-primary d-modal__dismiss-action-button"]],[["@label","@action","@title"],["cancel",[30,0,["handleCloseButton"]],"modal.close"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"d-modal__title"],[12],[1,"\\n "],[10,"h1"],[14,1,"discourse-modal-title"],[14,0,"d-modal__title-text"],[12],[1,[30,2]],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[10,2],[14,0,"d-modal__subtitle-text"],[12],[1,[30,6]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,15,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[18,12,null],[1,"\\n\\n"],[41,[28,[32,6],[[30,0,["site","mobileView"]],[48,[30,14]]],null],[[[1," "],[10,0],[14,0,"d-modal__primary-action"],[12],[1,"\\n "],[18,14,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["dismissable"]],[[[1," "],[8,[32,10],[[24,0,"btn-transparent modal-close"]],[["@icon","@action","@title"],["xmark",[30,0,["handleCloseButton"]],"modal.close"]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,16,null],[1,"\\n\\n "],[8,[32,11],[[24,1,"modal-alert"],[24,"role","alert"]],[["@flash","@type"],[[30,7],[30,8]]],null],[1,"\\n\\n "],[11,0],[16,0,[28,[32,2],["d-modal__body",[30,9]],null]],[24,"tabindex","-1"],[4,[30,0,["setupModalBody"]],null,null],[12],[1,"\\n"],[41,[48,[30,17]],[[[1," "],[18,17,null],[1,"\\n"]],[]],[[[1," "],[18,18,null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,6],[[48,[30,19]],[28,[32,7],[[30,10]],null]],null],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[18,19,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,20,null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[51,[30,1]],[[[1," "],[11,0],[24,0,"d-modal__backdrop"],[4,[32,9],null,[["onDidSwipe","onDidEndSwipe","enabled"],[[30,0,["handleSwipe"]],[30,0,["handleSwipeEnded"]],[30,0,["dismissable"]]]]],[4,[32,12],["click",[30,0,["handleWrapperClick"]]],null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@inline","@title","&attrs","@hideHeader","@headerClass","@subtitle","@flash","@flashType","@bodyClass","@hideFooter","&aboveHeader","&headerBelowTitle","&headerAboveTitle","&headerPrimaryAction","&belowModalTitle","&belowHeader","&body","&default","&footer","&belowFooter"],false,["if","yield","has-block","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-modal.js",scope:()=>[p.default,_.default,g.default,a.default,l.default,k.default,d.and,d.not,d.or,w.default,h.default,m.default,r.on],isStrictMode:!0}),this))()}},54162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(11508);let o=(0,n(82739).createTemplateFactory)({id:"f6I+VGPA",block:'[[[11,"li"],[16,"aria-current",[30,0,["ariaCurrent"]]],[16,"title",[30,1]],[16,0,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,0,["models"]],[[[1," "],[8,[39,2],null,[["@route","@models"],[[30,4],[30,0,["models"]]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,2],null,[["@route"],[[30,4]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[13]],["@title","@class","&attrs","@route","&default"],false,["li","if","link-to","yield"]]',moduleName:"discourse/components/d-navigation-item.hbs",isStrictMode:!1});var a=n(76417);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();get ariaCurrent(){return"parentNav"===this.args.ariaCurrentContext&&this.router.currentRouteName!==this.args.route&&this.router.currentRoute.parent.name.includes(this.args.route)?"page":this.router.currentRouteName!==this.args.route?null:"subNav"===this.args.ariaCurrentContext?"location":"page"}get models(){return(0,r.makeArray)(this.args.models||this.args.model)}}(0,a.setComponentTemplate)(o,l)},35590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(28564),s=n(76417),r=n(70001),o=n(53067),a=n(54729),l=n(35804),u=n(93223),c=n(28147),d=n(63252),p=n(18523),h=n(22850),m=n(62797);let g=(0,n(82739).createTemplateFactory)({id:"/2p1Okd5",block:'[[[8,[39,0],null,[["@categories","@category","@noSubcategories","@tag","@additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag"]],[30,0,["additionalTags"]]]],null],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["after-breadcrumbs",[28,[37,2],null,[["categories","category","tag","additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["tag"]],[30,0,["additionalTags"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["additionalTags"]]],[[[1," "],[8,[39,4],null,[["@navItems","@filterMode","@category","@tag"],[[30,0,["navItems"]],[30,0,["filterMode"]],[30,0,["category"]],[30,0,["tag"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["notCategoriesRoute"]],[30,0,["site","mobileView"]],[30,1]],null],[[[1," "],[8,[39,8],null,[["@bulkSelectHelper"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,9],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,2,["selected"]],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n\\n"],[41,[30,0,["showCategoryAdmin"]],[[[41,[30,0,["fixedCategoryPositions"]],[[[1," "],[8,[39,10],null,[["@onChange","@options"],[[28,[37,11],[[30,0],"selectCategoryAdminDropdownAction"],null],[28,[37,2],null,[["triggerOnChangeOnTab"],[false]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,12],[[24,0,"btn-default"],[24,1,"create-category"]],[["@action","@icon","@label"],[[30,0,["createCategory"]],"plus",[52,[30,0,["site","mobileView"]],"categories.category","category.create"]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[28,[37,7],[[30,0,["category"]],[30,0,["showCategoryEdit"]]],null],[[[1," "],[8,[39,12],[[24,0,"btn-default edit-category"]],[["@action","@icon","@title"],[[30,0,["editCategory"]],"wrench","category.edit_title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[30,0,["showToggleInfo"]],[[[1," "],[8,[39,12],[[24,1,"show-tag-info"],[24,0,"btn-default"]],[["@icon","@ariaLabel","@action"],[[52,[30,0,["currentUser","staff"]],"wrench","circle-info"],"tagging.info",[30,0,["toggleInfo"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["before-create-topic-button",[28,[37,2],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","additionalTags","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["additionalTags"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n "],[8,[39,13],null,[["@canCreateTopic","@action","@disabled","@label","@btnClass","@canCreateTopicOnTag"],[[30,0,["canCreateTopic"]],[28,[37,11],[[30,0],"clickCreateTopicButton"],null],[30,0,["createTopicButtonDisabled"]],[30,0,["createTopicLabel"]],[30,0,["createTopicClass"]],[30,0,["canCreateTopicOnTag"]]]],null],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["after-create-topic-button",[28,[37,2],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category"]],[[[41,[51,[30,0,["tag"]]],[[[41,[30,0,["showCategoryNotifications"]],[[[41,[51,[30,0,["category","deleted"]]],[[[1," "],[8,[39,14],null,[["@levelId","@showFullTitle","@showCaret","@onChange"],[[30,0,["categoryNotificationLevel"]],false,false,[30,0,["changeCategoryNotificationLevel"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[51,[30,0,["category"]]],[[[41,[30,0,["showTagNotifications"]],[[[1," "],[8,[39,15],null,[["@onChange","@levelId"],[[30,0,["changeTagNotificationLevel"]],[30,0,["tagNotification","notification_level"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[13]],["@canBulkSelect","@bulkSelectHelper","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],false,["bread-crumbs","plugin-outlet","hash","unless","navigation-bar","div","if","and","bulk-select-toggle","topic-dismiss-buttons","categories-admin-dropdown","action","d-button","create-topic-button","category-notifications-tracking","tag-notifications-tracking"]]',moduleName:"discourse/components/d-navigation.hbs",isStrictMode:!1}),f=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"filterMode",[i.tracked]))();#eq=(()=>void dt7948.i(this,"filterMode"))();static #l=(()=>dt7948.g(this.prototype,"fixedCategoryPositions",[(0,c.setting)("fixed_category_positions")]))();#eH=(()=>void dt7948.i(this,"fixedCategoryPositions"))();get filterType(){return(0,d.filterTypeForMode)(this.filterMode)}static #u=(()=>dt7948.n(this.prototype,"filterType",[o.dependentKeyCompat]))();categories(){let e=this.site.categoriesList;return this.siteSettings.allow_uncategorized_topics||(e=e.filter(e=>e.id!==this.site.uncategorized_category_id)),this.currentUser?.indirectly_muted_category_ids&&(e=e.filter(e=>!this.currentUser.indirectly_muted_category_ids.includes(e.id))),e}static #c=(()=>dt7948.n(this.prototype,"categories",[(0,m.default)()]))();showCategoryNotifications(e){return e&&this.currentUser}static #d=(()=>dt7948.n(this.prototype,"showCategoryNotifications",[(0,m.default)("category")]))();categoryNotificationLevel(e){return this.currentUser?.indirectly_muted_category_ids?.includes(this.category.id)?p.NotificationLevels.MUTED:e}static #p=(()=>dt7948.n(this.prototype,"categoryNotificationLevel",[(0,m.default)("category.notification_level")]))();showTagNotifications(e,t){return e&&!t}static #h=(()=>dt7948.n(this.prototype,"showTagNotifications",[(0,m.default)("tagNotification","additionalTags")]))();categoryReadOnlyBanner(e,t){if(e&&this.currentUser&&t)return e.read_only_banner}static #m=(()=>dt7948.n(this.prototype,"categoryReadOnlyBanner",[(0,m.default)("category","createTopicDisabled")]))();createTopicButtonDisabled(e,t,n,i,s){return!!s&&!i||(!n||!!t)&&e}static #g=(()=>dt7948.n(this.prototype,"createTopicButtonDisabled",[(0,m.default)("createTopicDisabled","hasDraft","categoryReadOnlyBanner","canCreateTopicOnTag","tag.id")]))();createTopicClass(e,t){let n=["btn-default"];return t?n.push("open-draft"):e&&n.push("disabled"),n.join(" ")}static #E=(()=>dt7948.n(this.prototype,"createTopicClass",[(0,m.default)("categoryReadOnlyBanner","hasDraft")]))();createTopicLabel(e){return e?"topic.open_draft":"topic.create"}static #A=(()=>dt7948.n(this.prototype,"createTopicLabel",[(0,m.default)("hasDraft")]))();showCategoryEdit(e){return e}static #D=(()=>dt7948.n(this.prototype,"showCategoryEdit",[(0,m.default)("category.can_edit")]))();showToggleInfo(e,t,n){return!e&&!t&&"none"!==n}static #I=(()=>dt7948.n(this.prototype,"showToggleInfo",[(0,m.default)("additionalTags","category","tag.id")]))();navItems(e,t,n,i,s,r){return h.default.buildList(t,{filterType:e,noSubcategories:n,currentRouteQueryParams:s,tagId:i,siteSettings:this.siteSettings,skipCategoriesNavItem:r})}static #G=(()=>dt7948.n(this.prototype,"navItems",[(0,m.default)("filterType","category","noSubcategories","tag.id","router.currentRoute.queryParams","skipCategoriesNavItem")]))();notCategoriesRoute(e){return"categories"!==e}static #Y=(()=>dt7948.n(this.prototype,"notCategoriesRoute",[(0,m.default)("filterType")]))();async changeTagNotificationLevel(e){let t=(await this.tagNotification.update({notification_level:e})).responseJson;this.tagNotification.set("notification_level",e),this.currentUser.setProperties({watched_tags:t.watched_tags,watching_first_post_tags:t.watching_first_post_tags,tracked_tags:t.tracked_tags,muted_tags:t.muted_tags,regular_tags:t.regular_tags})}static #Q=(()=>dt7948.n(this.prototype,"changeTagNotificationLevel",[r.action]))();changeCategoryNotificationLevel(e){this.category.setNotification(e)}static #J=(()=>dt7948.n(this.prototype,"changeCategoryNotificationLevel",[r.action]))();selectCategoryAdminDropdownAction(e){switch(e){case"create":this.createCategory();break;case"reorder":this.reorderCategories()}}static #X=(()=>dt7948.n(this.prototype,"selectCategoryAdminDropdownAction",[r.action]))();clickCreateTopicButton(){this.categoryReadOnlyBanner&&!this.hasDraft?this.dialog.alert({message:(0,l.htmlSafe)(this.categoryReadOnlyBanner)}):this.createTopic()}static #Z=(()=>dt7948.n(this.prototype,"clickCreateTopicButton",[r.action]))()},[(0,u.tagName)("")]),_=(0,s.setComponentTemplate)(g,f)},86283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DPageActionButton:()=>l,DPageActionListItem:()=>h,DangerActionListItem:()=>f,DangerButton:()=>d,DefaultActionListItem:()=>g,DefaultButton:()=>p,PrimaryButton:()=>c,WrappedActionListItem:()=>m,WrappedButton:()=>u});var i=n(39882),s=n(92976),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"m9INvKqm",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"d-page-action-button btn-small"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DPageActionButton")),u=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"1Vzs3Q5J",block:'[[[1,"\\n "],[10,1],[14,0,"d-page-action-wrapped-button"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:WrappedButton")),c=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"PlNK2NOo",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:PrimaryButton")),d=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"Uqpir9Xa",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-danger"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DangerButton")),p=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"5Yj/bn9D",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DefaultButton")),h=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"tuyCr8F6",block:'[[[1,"\\n "],[10,"li"],[14,0,"dropdown-menu__item d-page-action-list-item"],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-transparent"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[l],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DPageActionListItem")),m=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"sodHwkFk",block:'[[[1,"\\n "],[10,"li"],[14,0,"dropdown-menu__item d-page-action-list-item d-page-action-wrapped-list-item"],[12],[1,"\\n "],[18,1,[[28,[32,0],null,[["buttonClass"],["btn-transparent"]]]]],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[i.hash],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:WrappedActionListItem")),g=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"yPZEiglo",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[h],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DefaultActionListItem")),f=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"b1Qq+GKI",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-danger"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[h],isStrictMode:!0}),(0,a.default)(void 0,"d-page-action-button:DangerActionListItem"))},41345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138),s=n(28564),r=n(39882),o=n(54729),a=n(35804),l=n(64151),u=n(37254),c=n(86283),d=n(85052),p=n(88572);n(62797);var h=n(51969),m=n(99676),g=n(76417),f=n(82739);let _=["new","edit"];class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"shouldDisplay",[s.tracked],function(){return!0}))();#eV=(()=>void dt7948.i(this,"shouldDisplay"))();constructor(){super(...arguments),this.router.on("routeDidChange",this,this.#eW),this.#eW()}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this,this.#eW)}#eW(){if(void 0!==this.args.shouldDisplay)return this.shouldDisplay=this.args.shouldDisplay;let e=this.router._router.currentPath;if(!e)return this.shouldDisplay=!0;let t=e.split(".");this.shouldDisplay=!t.includes("admin")||!_.find(e=>t.includes(e))}static #l=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"GQCIJlA3",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"d-page-header"],[12],[1,"\\n "],[10,0],[14,0,"d-page-header__breadcrumbs"],[12],[1,"\\n "],[8,[32,0],null,null,null],[1,"\\n "],[18,8,null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"d-page-header__title-row"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,"h1"],[14,0,"d-page-header__title"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[48,[30,9]],[30,2]],null],[[[1," "],[10,0],[14,0,"d-page-header__actions"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,2],[[24,0,"btn-small"]],[["@identifier","@title","@icon"],["d-page-header-mobile-actions",[28,[32,3],["more_options"],null],"ellipsis-vertical"]],[["content"],[[[[1,"\\n "],[8,[32,4],[[24,0,"d-page-header__mobile-actions"]],null,[["default"],[[[[1,"\\n"],[44,[[28,[32,5],null,[["Primary","Default","Danger","Wrapped"],[[32,6],[32,6],[32,7],[32,8]]]]],[[[41,[48,[30,9]],[[[1," "],[18,9,[[30,3]]],[1,"\\n"]],[]],[[[1," "],[8,[30,2],null,[["@actions"],[[30,3]]],null],[1,"\\n"]],[]]]],[3]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[44,[[28,[32,5],null,[["Primary","Default","Danger","Wrapped"],[[32,9],[32,10],[32,11],[32,12]]]]],[[[41,[48,[30,9]],[[[1," "],[18,9,[[30,4]]],[1,"\\n"]],[]],[[[1," "],[8,[30,2],null,[["@actions"],[[30,4]]],null],[1,"\\n"]],[]]]],[4]]]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,5],[[[1," "],[10,2],[14,0,"d-page-header__description"],[12],[1,"\\n "],[1,[28,[32,13],[[30,5]],null]],[1,"\\n"],[41,[30,6],[[[1," "],[10,1],[14,0,"d-page-header__learn-more"],[12],[1,[28,[32,13],[[28,[32,3],["learn_more_with_link"],[["url"],[[30,6]]]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,7]],[[[1," "],[10,0],[14,0,"d-nav-submenu"],[12],[1,"\\n "],[8,[32,14],[[24,0,"d-nav-submenu__tabs"]],null,[["default"],[[[[1,"\\n "],[18,10,null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@titleLabel","@headerActionComponent","actions","actions","@descriptionLabel","@learnMoreUrl","@hideTabs","&breadcrumbs","&actions","&tabs"],false,["if","yield","has-block","let","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-header.js",scope:()=>[u.default,l.or,m.default,h.i18n,d.default,r.hash,c.DefaultActionListItem,c.DangerActionListItem,c.WrappedActionListItem,c.PrimaryButton,c.DefaultButton,c.DangerButton,c.WrappedButton,a.htmlSafe,p.default],isStrictMode:!0}),this))()}},61253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(39882),r=n(54729),o=n(35804),a=n(86283),l=n(85052),u=n(51969),c=n(99676),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"Zo4ubC49",block:'[[[1,"\\n "],[10,0],[14,0,"d-page-subheader"],[12],[1,"\\n "],[10,0],[14,0,"d-page-subheader__title-row"],[12],[1,"\\n "],[10,"h2"],[14,0,"d-page-subheader__title"],[12],[1,[30,1]],[13],[1,"\\n"],[41,[48,[30,4]],[[[1," "],[10,0],[14,0,"d-page-subheader__actions"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,0],[[24,0,"btn-small"]],[["@identifier","@title","@icon"],["d-page-subheader-mobile-actions",[28,[32,1],["more_options"],null],"ellipsis-vertical"]],[["content"],[[[[1,"\\n "],[8,[32,2],[[24,0,"d-page-subheader__mobile-actions"]],null,[["default"],[[[[1,"\\n "],[18,4,[[28,[32,3],null,[["Primary","Default","Danger","Wrapped"],[[32,4],[32,4],[32,5],[32,6]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[18,4,[[28,[32,3],null,[["Primary","Default","Danger","Wrapped"],[[32,7],[32,8],[32,9],[32,10]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[10,2],[14,0,"d-page-subheader__description"],[12],[1,"\\n "],[1,[28,[32,11],[[30,2]],null]],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"d-page-subheader__learn-more"],[12],[1,"\\n "],[1,[28,[32,11],[[28,[32,1],["learn_more_with_link"],[["url"],[[30,3]]]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@titleLabel","@descriptionLabel","@learnMoreUrl","&actions"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-subheader.js",scope:()=>[c.default,u.i18n,l.default,s.hash,a.DefaultActionListItem,a.DangerActionListItem,a.WrappedActionListItem,a.PrimaryButton,a.DefaultButton,a.DangerButton,a.WrappedButton,o.htmlSafe],isStrictMode:!0}),this))()}},77825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(39882),r=n(64151),o=n(77315),a=n(54216),l=n(76417),u=n(82739);class c extends i.default{constructor(){super(...arguments),(0,a.default)(' is deprecated. Use {{body-class "foo-page" "bar"}} and/or
instead.',{since:"3.2.0.beta1",dropFrom:"3.3.0.beta1",id:"discourse.d-section"})}static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"DzxK1IWm",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],[[28,[32,1],[[30,1],"-page"],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,3],""],null],[[[1," "],[11,"section"],[16,1,[30,4]],[16,0,[30,5]],[17,6],[12],[18,7,null],[13],[1,"\\n"]],[]],[[[1," "],[18,7,null],[1,"\\n"]],[]]],[1," "]],["@pageClass","@bodyClass","@tagName","@id","@class","&attrs","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-section.js",scope:()=>[o.default,s.concat,r.notEq],isStrictMode:!0}),this))()}},36992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DSelectOption:()=>h,NO_VALUE_OPTION:()=>p,default:()=>m});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(97355),l=n(64151),u=n(51969),c=n(76417),d=n(82739);let p="__NONE__";class h extends i.default{get value(){return(0,a.isNone)(this.args.value)?p:this.args.value}static #e=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"Gd19FDlZ",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[30,2]],null],[[[1," "],[11,"option"],[24,0,"d-select__option --selected"],[16,2,[30,0,["value"]]],[24,"selected",""],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"option"],[24,0,"d-select__option"],[16,2,[30,0,["value"]]],[17,3],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@selected","@value","&attrs","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-select.js",scope:()=>[l.eq],isStrictMode:!0}),this))()}class m extends i.default{handleInput(e){this.args.onChange(e.target.value===p?void 0:e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[o.action]))();get hasSelectedValue(){return this.args.value&&this.args.value!==p}get includeNone(){return this.args.includeNone??!0}static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"wT05FrDo",block:'[[[1,"\\n "],[11,"select"],[16,2,[30,1]],[17,2],[24,0,"d-select"],[4,[32,0],["input",[30,0,["handleInput"]]],null],[12],[1,"\\n"],[41,[30,0,["includeNone"]],[[[1," "],[8,[32,1],null,[["@value"],[[32,2]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasSelectedValue"]],[[[1," "],[1,[28,[32,3],["none_placeholder"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["select_placeholder"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[18,3,[[28,[32,4],null,[["Option"],[[50,[32,1],0,null,[["selected"],[[30,1]]]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["@value","&attrs","&default"],false,["if","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-select.js",scope:()=>[r.on,h,p,u.i18n,s.hash],isStrictMode:!0}),this))()}},82802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(39882),s=n(38536),r=n(92296),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"6YxNJ5kl",block:'[[[1,"\\n "],[10,0],[14,0,"d-stat-tile"],[14,"role","group"],[12],[1,"\\n "],[10,0],[14,0,"d-stat-tile__top"],[12],[1,"\\n "],[10,1],[14,0,"d-stat-tile__label"],[12],[1,[30,1]],[13],[1,"\\n"],[41,[30,2],[[[1," "],[8,[32,0],[[24,0,"d-stat-tile__tooltip"]],[["@icon","@content"],["circle-question",[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,3],[[[1," "],[10,3],[15,6,[30,3]],[14,0,"d-stat-tile__value"],[15,"title",[30,4]],[12],[1,"\\n "],[1,[28,[32,1],[[30,4]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"d-stat-tile__value"],[15,"title",[30,4]],[12],[1,[28,[32,1],[[30,4]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],["@label","@tooltip","@url","@value"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-stat-tiles.js",scope:()=>[r.default,s.number],isStrictMode:!0}),(0,l.default)(void 0,"d-stat-tiles:DStatTile")),c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"s+uRsT/M",block:'[[[1,"\\n "],[11,0],[24,0,"d-stat-tiles"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["Tile"],[[32,1]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-stat-tiles.js",scope:()=>[i.hash,u],isStrictMode:!0}),(0,l.default)(void 0,"d-stat-tiles:DStatTiles"))},34694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(87389),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"session",[s.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();get categoryColors(){return[":root {",...this.site.categories.map(e=>`--category-${e.id}-color: #${e.color};`),"}"].join("\n")}get categoryBackgrounds(){let e=[],t=[];return this.site.categories.forEach(n=>{let i=n.uploaded_background?.url,s=this.session.defaultColorSchemeIsDark||this.session.darkModeAvailable?n.uploaded_background_dark?.url:null,o=s&&this.session.defaultColorSchemeIsDark?s:i;if(o){let t=(0,r.getURLWithCDN)(o);e.push(`body.category-${n.fullSlug} { background-image: url(${t}); }`)}if(s&&o!==s){let e=(0,r.getURLWithCDN)(s);t.push(`body.category-${n.fullSlug} { background-image: url(${e}); }`)}}),t.length>0&&e.push("@media (prefers-color-scheme: dark) {",...t,"}"),e.join("\n")}get categoryBadges(){let e=[];return this.site.categories.forEach(t=>{e.push(`.badge-category[data-category-id="${t.id}"] { --category-badge-color: var(--category-${t.id}-color); --category-badge-text-color: #${t.text_color}; }`),t.isParent&&e.push(`.badge-category[data-parent-category-id="${t.id}"] { --parent-category-badge-color: var(--category-${t.id}-color); }`)}),e.join("\n")}static #i=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ubSv2iSd",block:'[[[1,"\\n"],[1," "],[10,"style"],[14,1,"d-styles"],[12],[1,"\\n"],[41,[30,0,["site","categories"]],[[[1," "],[1,[30,0,["categoryColors"]]],[1,"\\n "],[1,[30,0,["categoryBackgrounds"]]],[1,"\\n "],[1,[30,0,["categoryBadges"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-styles.js",isStrictMode:!0}),this))()}},69390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38861),s=n(93223);let r=dt7948.c(class extends i.TextArea{},[(0,s.attributeBindings)("aria-label")])},75433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(21237),r=n(51969),o=n(76417),a=n(82739);class l extends i.default{get computedLabel(){return this.args.label?(0,r.i18n)(this.args.label):this.args.translatedLabel}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Ch8X/gs6",block:'[[[1,"\\n "],[10,0],[14,0,"d-toggle-switch"],[12],[1,"\\n "],[10,"label"],[14,0,"d-toggle-switch__label"],[12],[1,"\\n "],[11,"button"],[24,0,"d-toggle-switch__checkbox"],[24,4,"button"],[24,"role","switch"],[16,"aria-checked",[52,[30,1],"true","false"]],[17,2],[12],[13],[1,"\\n\\n "],[10,1],[14,0,"d-toggle-switch__checkbox-slider"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[1,[28,[32,0],["check"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["computedLabel"]],[[[1," "],[10,1],[14,0,"d-toggle-switch__checkbox-label"],[12],[1,"\\n "],[1,[30,0,["computedLabel"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@state","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-toggle-switch.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},52297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(42433),r=n(54729),o=n(47050),a=n(14210),l=n(84262),u=n(62797);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();constructor(){if(super(...arguments),!window.visualViewport||!this.capabilities.isIpadOS&&this.site.desktopView)return;this.windowInnerHeight=window.innerHeight,(0,s.scheduleOnce)("afterRender",this,this.debouncedOnViewportResize),window.visualViewport.addEventListener("resize",this.debouncedOnViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",this.debouncedOnViewportResize))}willDestroy(){super.willDestroy(...arguments),(0,s.cancel)(this.debouncedHandler),window.visualViewport.removeEventListener("resize",this.debouncedOnViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!1,navigator.virtualKeyboard.removeEventListener("geometrychange",this.debouncedOnViewportResize))}setVH(){let e;if(!(0,a.default)()){if("virtualKeyboard"in navigator)e=window.visualViewport.height-navigator.virtualKeyboard.boundingRect.height;else{let t=window.visualViewport||window;e=t?.height||window.innerHeight}this.previousHeight&&1>=Math.abs(this.previousHeight-e)||(this.previousHeight=e,document.documentElement.style.setProperty("--composer-vh",`${e/100}px`))}}debouncedOnViewportResize(){this.debouncedHandler=(0,l.default)(this,this.onViewportResize,50)}static #l=(()=>dt7948.n(this.prototype,"debouncedOnViewportResize",[u.bind]))();onViewportResize(){this.setVH();let e=!1;if("virtualKeyboard"in navigator)navigator.virtualKeyboard.boundingRect.height>0&&(e=!0);else if(this.capabilities.isFirefox&&this.capabilities.isAndroid)Math.abs(this.windowInnerHeight-Math.min(window.innerHeight,window.visualViewport.height))>150&&(e=!0);else{let t=this.windowInnerHeight-window.visualViewport.height;t>71.5&&(e=!0),this.capabilities.isIpadOS&&document.documentElement.style.setProperty("--composer-ipad-padding",`${t<75?t:0}px`)}this.appEvents.trigger("keyboard-visibility-change",e),e?document.documentElement.classList.add("keyboard-visible"):document.documentElement.classList.remove("keyboard-visible"),e||(0,o.clearAllBodyScrollLocks)()}static #u=(()=>dt7948.n(this.prototype,"onViewportResize",[u.bind]))()}},31820:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(42433),o=n(93223),a=n(9630),l=n(35223),u=n(2406),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"6mnpW9Ug",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[16,1,[30,0,["inputId"]]],[4,[38,2],["input",[28,[37,3],[[30,0],"onChangeDate"],null]],null]],[["@type","@value"],[[30,0,["inputType"]],[28,[37,1],[[30,0,["value"]]],null]]],null],[1,"\\n\\n"],[41,[51,[30,0,["useGlobalPickerContainer"]]],[[[1," "],[10,0],[14,0,"picker-container"],[12],[13],[1,"\\n"]],[]],null]],[],false,["input","readonly","on","action","unless","div"]]',moduleName:"discourse/components/date-input.hbs",isStrictMode:!1}),h=dt7948.c(class extends i.default{date=null;useNativePicker=(()=>(function(){let e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value})())();_picker=null;inputType(){return this.useNativePicker?"date":"text"}static #e=(()=>dt7948.n(this.prototype,"inputType",[(0,c.default)("site.mobileView")]))();click(e){e.stopPropagation()}didInsertElement(){super.didInsertElement(...arguments),(0,r.schedule)("afterRender",()=>{if(!this.element||this.isDestroying||this.isDestroying)return;let e=document.getElementById(this.containerId);(this.useNativePicker?this._loadNativePicker(e):this._loadPikadayPicker(e)).then(e=>{if(this._picker=e,this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}})})}didUpdateAttrs(){if(super.didUpdateAttrs(...arguments),this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}if(this._picker&&this.relativeDate){let e=this.relativeDate instanceof moment?this.relativeDate:moment(this.relativeDate);this._picker.setMinDate(e,!0)}this._picker&&!this.date&&this._picker.setDate(null)}_loadPikadayPicker(e){return(0,u.default)("/javascripts/pikaday.js").then(()=>{let t={field:this.element.querySelector(".date-picker"),container:e||this.element.querySelector(".picker-container"),bound:null===e,format:"LL",firstDay:1,i18n:{previousMonth:(0,d.i18n)("dates.previous_month"),nextMonth:(0,d.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()},onSelect:e=>this._handleSelection(e)};return this.relativeDate&&(t.minDate=moment(this.relativeDate).toDate()),new Pikaday({...t,...this._opts()})})}_loadNativePicker(e){let t=(e||this.element).querySelector("input.date-picker");return t.onchange=()=>this._handleSelection(t.value),t.hide=()=>{},t.destroy=()=>{},t.setDate=e=>{t.value=e?moment(e).format("YYYY-MM-DD"):null},t.setMinDate=e=>{t.min=e},this.date&&t.setDate(this.date),l.Promise.resolve(t)}_handleSelection(e){this.element&&!this.isDestroying&&!this.isDestroyed&&this.onChange&&this.onChange(e?moment(e):null)}_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)}static #n=(()=>dt7948.n(this.prototype,"_destroy",[(0,a.on)("willDestroyElement")]))();get placeholder(){return this._placeholder||(0,d.i18n)("dates.placeholder")}static #i=(()=>dt7948.n(this.prototype,"placeholder",[(0,s.computed)("_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}_opts(){return null}onChangeDate(e){this._handleSelection(e.target.value)}static #l=(()=>dt7948.n(this.prototype,"onChangeDate",[s.action]))()},[(0,o.classNames)("d-date-input")]),m=(0,i.setComponentTemplate)(p,h)},21448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(41844);class s extends i.default{_opts(){return{defaultDate:this.defaultDate||moment().add(1,"day").toDate(),setDefaultDate:!!this.defaultDate,minDate:this.minDate||moment().toDate()}}}},39535:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(41844);class s extends i.default{_opts(){return{defaultDate:moment(this.defaultDate,"YYYY-MM-DD").toDate()||new Date,setDefaultDate:!!this.defaultDate,maxDate:new Date}}}},41844:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(42433),o=n(93223),a=n(9630),l=n(2406),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"kT0NJodg",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"]],[["@type","@value"],[[30,0,["inputType"]],[30,0,["value"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/date-picker.hbs",isStrictMode:!1}),p="YYYY-MM-DD",h=dt7948.c(class extends i.default{value=null;_picker=null;inputType(e){return e?"date":"text"}static #e=(()=>dt7948.n(this.prototype,"inputType",[(0,u.default)("site.mobileView")]))();_loadDatePicker(){if(this.site.mobileView)this._loadNativePicker();else{let e=document.getElementById(this.containerId);this._loadPikadayPicker(e)}}static #n=(()=>dt7948.n(this.prototype,"_loadDatePicker",[(0,a.on)("didInsertElement")]))();_loadPikadayPicker(e){(0,l.default)("/javascripts/pikaday.js").then(()=>{(0,r.schedule)("afterRender",()=>{let t={field:this.element.querySelector(".date-picker"),container:e||null,bound:null===e,format:p,firstDay:1,i18n:{previousMonth:(0,c.i18n)("dates.previous_month"),nextMonth:(0,c.i18n)("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>this._handleSelection(e)};this._picker=new Pikaday(Object.assign(t,this._opts()))})})}_loadNativePicker(){let e=this.element.querySelector("input.date-picker");e.onchange=()=>this._handleSelection(e.value),e.hide=()=>{},e.destroy=()=>{},this._picker=e}_handleSelection(e){let t=moment(e).format(p);this.element&&!this.isDestroying&&!this.isDestroyed&&this.onSelect&&this.onSelect(t)}_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)}static #i=(()=>dt7948.n(this.prototype,"_destroy",[(0,a.on)("willDestroyElement")]))();get placeholder(){return this._placeholder||(0,c.i18n)("dates.placeholder")}static #l=(()=>dt7948.n(this.prototype,"placeholder",[(0,s.computed)("_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}_opts(){return null}},[(0,o.classNames)("date-picker-wrapper")]),m=(0,i.setComponentTemplate)(d,h)},85526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"wBVuhpzf",block:'[[[8,[39,0],[[24,0,"from"]],[["@date","@onChange","@showTime","@placeholder","@timezone"],[[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["from"]]]],null],[30,0,["showFromTime"]],[28,[37,3],["dates.from_placeholder"],null],[30,1]]],null],[1,"\\n\\n"],[8,[39,0],[[24,0,"to"]],[["@date","@relativeDate","@onChange","@timeFirst","@showTime","@clearable","@placeholder","@timezone"],[[30,0,["to"]],[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["to"]]]],null],[30,0,["toTimeFirst"]],[30,0,["showToTime"]],[30,0,["clearable"]],[28,[37,3],["dates.to_placeholder"],null],[30,1]]],null]],["@timezone"],false,["date-time-input","action","hash","i18n"]]',moduleName:"discourse/components/date-time-input-range.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{from=null;to=null;onChangeTo=null;onChangeFrom=null;toTimeFirst=!1;showToTime=!0;showFromTime=!0;clearable=!1;onChangeRanges(e,t){if(this.onChange){let n={from:this.from,to:this.to},i={};"from"===e.prop&&(this.to&&t?.isAfter(this.to)?(i[e.prop]=t,i.to=t.clone().add(1,"hour")):i[e.prop]=t),"to"===e.prop&&(t&&t.isBefore(this.from)?i[e.prop]=this.from.clone().add(1,"hour"):i[e.prop]=t);let s={...n,...i};this.onChange(s)}}static #e=(()=>dt7948.n(this.prototype,"onChangeRanges",[s.action]))()},[(0,r.classNames)("d-date-time-input-range")]),l=(0,i.setComponentTemplate)(o,a)},25486:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"JEY1fEoP",block:'[[[41,[51,[30,0,["timeFirst"]]],[[[1," "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTime"]],[[[1," "],[8,[39,4],null,[["@date","@relativeDate","@onChange"],[[30,0,["date"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeTime"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["timeFirst"]],[[[1," "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["clearable"]],[[[1," "],[8,[39,5],[[24,0,"btn-default clear-date-time"]],[["@icon","@action"],["xmark",[30,0,["onClear"]]]],null],[1,"\\n"]],[]],null]],[],false,["unless","date-input","action","if","time-input","d-button"]]',moduleName:"discourse/components/date-time-input.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{date=null;relativeDate=null;showTime=!0;clearable=!1;get hours(){return this.date&&this.get("showTime")?this.date.hours():null}static #e=(()=>dt7948.n(this.prototype,"hours",[(0,s.computed)("date","showTime")]))();get minutes(){return this.date&&this.get("showTime")?this.date.minutes():null}static #n=(()=>dt7948.n(this.prototype,"minutes",[(0,s.computed)("date","showTime")]))();onClear(){this.onChange(null)}static #i=(()=>dt7948.n(this.prototype,"onClear",[s.action]))();onChangeTime(e){if(this.onChange){let t=this.date?this.date:this.relativeDate?this.relativeDate:moment.tz(this.resolvedTimezone);this.onChange(moment.tz({year:t.year(),month:t.month(),day:t.date(),hours:e.hours,minutes:e.minutes},this.resolvedTimezone))}}static #l=(()=>dt7948.n(this.prototype,"onChangeTime",[s.action]))();onChangeDate(e){if(!e){this.onClear();return}this.onChange?.(moment.tz({year:e.year(),month:e.month(),day:e.date(),hours:this.hours||0,minutes:this.minutes||0},this.resolvedTimezone))}static #u=(()=>dt7948.n(this.prototype,"onChangeDate",[s.action]))();get resolvedTimezone(){return this.timezone||moment.tz.guess()}static #c=(()=>dt7948.n(this.prototype,"resolvedTimezone",[(0,s.computed)("timezone")]))()},[(0,r.classNames)("d-date-time-input")]),l=(0,i.setComponentTemplate)(o,a)},49577:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(28564),r=n(38557),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"shouldRender",[s.tracked],function(){return!1}))();#eG=(()=>void dt7948.i(this,"shouldRender"))();constructor(){super(...arguments),(0,r.default)(()=>this.shouldRender=!0)}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Ze/rFA8f",block:'[[[1,"\\n"],[41,[30,0,["shouldRender"]],[[[1," "],[18,1,null],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/deferred-render.js",isStrictMode:!0}),this))()}},71230:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(54729),r=n(92976),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"desktopNotifications",[s.service]))();#eY=(()=>void dt7948.i(this,"desktopNotifications"))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"T2UfeX3k",block:'[[[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["desktopNotifications","isNotSupported"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.not_supported","true"]],null],[1,"\\n"]],[]],null],[41,[30,0,["desktopNotifications","isDeniedPermission"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.perm_denied_btn","true"]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["user.desktop_notifications.perm_denied_expl"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["desktopNotifications","isSubscribed"]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell-slash","user.desktop_notifications.disable",[30,0,["desktopNotifications","disable"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell","user.desktop_notifications.enable",[30,0,["desktopNotifications","enable"]]]],null],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/desktop-notification-config.js",scope:()=>[r.default,o.i18n],isStrictMode:!0}),this))()}},86170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(76417),o=n(70001),a=n(54729),l=n(92976),u=n(14541),c=n(6610),d=n(64149),p=n(2262),h=n(51969),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked]))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();static #u=(()=>dt7948.g(this.prototype,"resetEmailSent",[s.tracked],function(){return null}))();#eJ=(()=>void dt7948.i(this,"resetEmailSent"))();passwordLabel=(()=>(0,h.i18n)("user.password.title"))();instructions=(()=>(0,h.i18n)("user.confirm_access.instructions"))();loggedInAs=(()=>(0,h.i18n)("user.confirm_access.logged_in_as"))();finePrint=(()=>(0,h.i18n)("user.confirm_access.fine_print"))();get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&this.currentUser.user_passkeys?.length>0&&(0,p.isWebauthnSupported)()}async confirmWithPasskey(){try{let e=await (0,p.getPasskeyCredential)(e=>this.dialog.alert(e));if(!e)return;(await (0,c.ajax)("/u/confirm-session.json",{type:"POST",data:{publicKeyCredential:e}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=(0,h.i18n)("user.confirm_access.incorrect_passkey")}catch(e){(0,d.popupAjaxError)(e)}}static #c=(()=>dt7948.n(this.prototype,"confirmWithPasskey",[o.action]))();async submit(){this.errorMessage=this.password?null:(0,h.i18n)("user.confirm_access.incorrect_password"),(await (0,c.ajax)("/u/confirm-session.json",{type:"POST",data:{password:this.password}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=(0,h.i18n)("user.confirm_access.incorrect_password")}static #d=(()=>dt7948.n(this.prototype,"submit",[o.action]))();async sendPasswordResetEmail(){try{(await (0,c.ajax)("/session/forgot_password.json",{data:{login:this.currentUser.username},type:"POST"})).success?(this.errorMessage=null,this.resetEmailSent=(0,h.i18n)("user.confirm_access.password_reset_email_sent")):this.errorMessage=(0,h.i18n)("user.confirm_access.cannot_send_password_reset_email")}catch(e){this.errorMessage=(0,d.extractError)(e,(0,h.i18n)("user.confirm_access.cannot_send_password_reset_email"))}}static #p=(()=>dt7948.n(this.prototype,"sendPasswordResetEmail",[o.action]))();static #h=(()=>(0,r.setComponentTemplate)((0,m.createTemplateFactory)({id:"TRSpITyD",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group confirm-session"],[12],[1,"\\n "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n "],[1,[30,0,["instructions"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n "],[10,1],[12],[1,[30,0,["loggedInAs"]]],[13],[1,"\\n "],[8,[32,0],null,[["@user"],[[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[30,0,["currentUser","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["passwordLabel"]]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"inline-form"],[12],[1,"\\n "],[8,[32,1],[[24,1,"password"],[24,0,"input-large"],[24,"autofocus","autofocus"]],[["@value","@type"],[[30,0,["password"]],"password"]],null],[1,"\\n "],[8,[32,2],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["submit"]],"user.password.confirm"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"confirm-session__reset"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-link btn-flat confirm-session__reset-btn"]],[["@label","@action"],["user.confirm_access.forgot_password",[30,0,["sendPasswordResetEmail"]]]],null],[1,"\\n"],[41,[30,0,["resetEmailSent"]],[[[1," "],[10,1],[14,0,"confirm-session__reset-email-sent"],[12],[1,"\\n "],[1,[30,0,["resetEmailSent"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["canUsePasskeys"]],[[[1," "],[10,0],[14,0,"confirm-session__passkey"],[12],[1,"\\n "],[8,[32,2],null,[["@action","@label","@icon"],[[30,0,["confirmWithPasskey"]],"user.passkeys.confirm_button","user"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"confirm-session__fine-print"],[12],[1,"\\n "],[1,[30,0,["finePrint"]]],[1,"\\n "],[13],[1,"\\n\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dialog-messages/confirm-session.js",scope:()=>[u.default,r.Input,l.default],isStrictMode:!0}),this))()}},68166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"gu9uDxQy",block:'[[[41,[30,1,["members","length"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["users"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_details"],[["count"],[[30,1,["members","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message_count"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["envelope"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_with_messages_confirm"],[["count"],[[30,1,["message_count"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,2],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,3],["admin.groups.delete_warning"],null]],[1,"\\n"],[13]],["@model"],false,["if","p","d-icon","i18n"]]',moduleName:"discourse/components/dialog-messages/group-delete.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"group-delete"))},37159:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"mWt/b6Ta",block:'[[[1,[28,[35,0],["user.second_factor.delete_confirm_header"],null]],[1,"\\n\\n"],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["totps"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,2,["name"]]],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["security_keys"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["currentUser","second_factor_backup_enabled"]],[[[1," "],[10,"li"],[12],[1,[28,[35,0],["user.second_factor_backup.title"],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,0],["user.second_factor.delete_confirm_instruction"],[["confirm"],[[30,0,["disabledString"]]]]]],null]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,8],[[4,[38,9],["input",[30,0,["onConfirmPhraseInput"]]],null]],[["@value","@id","@autocorrect","@autocapitalize"],[[30,0,["confirmPhraseInput"]],"confirm-phrase","off","off"]],null]],["@model","totp","sk"],false,["i18n","ul","each","-track-array","li","if","p","html-safe","text-field","on"]]',moduleName:"discourse/components/dialog-messages/second-factor-confirm-phrase.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"confirmPhraseInput",[s.tracked],function(){return""}))();#eX=(()=>void dt7948.i(this,"confirmPhraseInput"))();disabledString=(()=>(0,a.i18n)("user.second_factor.disable"))();onConfirmPhraseInput(){this.confirmPhraseInput===this.disabledString?this.dialog.set("confirmButtonDisabled",!1):this.dialog.set("confirmButtonDisabled",!0)}static #l=(()=>dt7948.n(this.prototype,"onConfirmPhraseInput",[r.action]))()}(0,u.setComponentTemplate)(l,c)},30901:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(69836),l=n(54729),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();get fieldData(){let{item:e,column:t}=this.args;return e?.user?.user_fields?.[t.user_field_id]}get values(){let e=this.fieldData;return e&&e.value?e.value.toString().split(",").map(e=>e.replace(/-/g," ")).map(e=>e.trim()):null}get isSearchable(){return this.fieldData?.searchable}refreshRoute(e){this.router.transitionTo({queryParams:{name:e}})}static #n=(()=>dt7948.n(this.prototype,"refreshRoute",[o.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"m4/JK1bj",block:'[[[1,"\\n "],[10,1],[14,0,"directory-table__value--user-field"],[12],[1,"\\n"],[41,[30,0,["values"]],[[[41,[30,0,["isSearchable"]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["values"]]],null]],null],null,[[[1," "],[8,[32,0],[[24,0,"directory-value-list-item"],[4,[32,2],["click",[28,[32,3],[[30,0,["refreshRoute"]],[30,1]],null]],null]],[["@route","@query"],["users",[28,[32,1],null,[["name"],[[30,1]]]]]],[["default"],[[[[1,[30,1]]],[]]]]],[1,"\\n"]],[1]],null]],[]],[[[1," "],[1,[30,0,["values"]]],[1,"\\n"]],[]]]],[]],[[[1," -\\n"]],[]]],[1," "],[13],[1,"\\n "]],["value"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/directory-item-user-field-value.js",scope:()=>[a.LinkTo,s.hash,r.on,s.fn],isStrictMode:!0}),this))()}},56332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(28147);let o=(0,n(82739).createTemplateFactory)({id:"tKxsizmm",block:'[[[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n "],[8,[39,1],null,[["@user"],[[30,0,["item","user"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["columns"]]],null]],null],null,[[[41,[28,[37,5],null,[["column"],[[30,1]]]],[[[1," "],[10,0],[14,0,"directory-table__cell--user-field"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,7],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1," "],[1,[28,[35,8],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,9],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,10],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1," "],[10,0],[14,0,"directory-table__cell time-read"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,11],["directory.time_read"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["item","time_read"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["column"],false,["div","user-info","each","-track-array","if","directory-column-is-user-field","span","directory-item-user-field-value","d-icon","directory-item-label","directory-item-value","i18n","format-duration"]]',moduleName:"discourse/components/directory-item.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"me",[(0,r.propertyEqual)("item.user.id","currentUser.id")]))();#eZ=(()=>void dt7948.i(this,"me"))();columns=null},[(0,s.classNameBindings)("me"),(0,s.classNames)("directory-table__row"),(0,s.tagName)("div")]),l=(0,i.setComponentTemplate)(o,a)},56123:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"QnvTeRDN",block:'[[[8,[39,0],null,null,[["header","body"],[[[[1,"\\n "],[8,[39,2],null,[["@field","@order","@asc"],["username",[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["columns"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@onToggle","@field","@icon","@order","@asc","@automatic","@translated","@onActiveRender"],[[30,0,["updateOrder"]],[30,1,["name"]],[30,1,["icon"]],[30,0,["order"]],[30,0,["asc"]],[28,[37,5],null,[["column"],[[30,1]]]],[30,1,["user_field_id"]],[30,0,["setActiveHeader"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1," "],[10,0],[14,0,"directory-table__column-header"],[12],[1,"\\n "],[10,0],[14,0,"header-contents"],[12],[1,"\\n "],[1,[28,[35,8],["directory.time_read"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["items"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@item","@columns","@showTimeRead"],[[30,2],[30,0,["columns"]],[30,0,["showTimeRead"]]]],null],[1,"\\n"]],[2]],null],[1," "]],[]]]]]],["column","item"],false,["responsive-table",":header","table-header-toggle","each","-track-array","directory-column-is-automatic","if","div","i18n",":body","directory-item"]]',moduleName:"discourse/components/directory-table.hbs",isStrictMode:!1});class o extends i.default{_table=null;didInsertElement(){super.didInsertElement(...arguments),this.setProperties({_table:this.element.querySelector(".directory-table"),_columnCount:this.showTimeRead?this.columns.length+1:this.columns.length}),this._table.style.gridTemplateColumns=`minmax(15em, 3fr) repeat(${this._columnCount}, minmax(max-content, 1fr))`}setActiveHeader(e){this._table||this.set("_table",document.querySelector(".directory-table"));let t=e.offsetLeft+e.offsetWidth+10-this._table.offsetWidth;t>0&&(this._table.scrollLeft=t)}static #e=(()=>dt7948.n(this.prototype,"setActiveHeader",[s.action]))();updateOrder(e,t){this.setProperties({order:e,asc:t})}static #n=(()=>dt7948.n(this.prototype,"updateOrder",[s.action]))()}(0,i.setComponentTemplate)(r,o)},62695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(5938),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"Yeoy7n0c",block:'[[[41,[30,0,["visible"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,1,"banner"],[15,0,[30,0,["overlay"]]],[12],[1,"\\n "],[10,0],[14,0,"floated-buttons"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[10,3],[15,6,[30,0,["banner","url"]]],[14,0,"btn btn-transparent edit-banner"],[12],[1,"\\n "],[1,[28,[35,3],["pencil"],null]],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[1,[28,[35,4],[[28,[37,5],["banner.edit"],null]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["xmark",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"banner-content"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["content"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","a","d-icon","html-safe","i18n","d-button"]]',moduleName:"discourse/components/discourse-banner.hbs",isStrictMode:!1});class l extends i.default{hide=!1;static #e=(()=>dt7948.g(this.prototype,"banner",[(0,r.readOnly)("site.banner")]))();#e1=(()=>void dt7948.i(this,"banner"))();content(e){let t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("[id^='heading--']").forEach(e=>{e.removeAttribute("id")}),t.innerHTML}static #n=(()=>dt7948.n(this.prototype,"content",[(0,o.default)("banner.html")]))();visible(e,t,n){return e=e||this.keyValueStore.get("dismissed_banner_key"),t&&(t=parseInt(t,10)),e&&(e=parseInt(e,10)),!n&&t&&e!==t}static #i=(()=>dt7948.n(this.prototype,"visible",[(0,o.default)("currentUser.dismissed_banner_key","banner.key","hide")]))();dismiss(){this.currentUser?this.currentUser.dismissBanner(this.get("banner.key")):(this.set("hide",!0),this.keyValueStore.set({key:"dismissed_banner_key",value:this.get("banner.key")}))}static #l=(()=>dt7948.n(this.prototype,"dismiss",[s.action]))();didInsertElement(){super.didInsertElement(...arguments),this.appEvents.trigger("decorate-non-stream-cooked-element",this.element)}}(0,i.setComponentTemplate)(a,l)},82896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(62797),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"DQBQg4Aa",block:'[[[1,[28,[35,0],[[30,0,["translatedText"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/discourse-linked-text.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{translatedText(e){if(e)return(0,o.i18n)(...arguments)}static #e=(()=>dt7948.n(this.prototype,"translatedText",[(0,r.default)("text","textParams")]))();click(e){return"A"===e.target.tagName.toUpperCase()&&this.action(this.actionParam),!1}},[(0,s.tagName)("span")]),u=(0,i.setComponentTemplate)(a,l)},86179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417),s=n(93223);let r=dt7948.c(class extends i.default{},[(0,s.classNames)("discourse-root"),(0,s.tagName)("div")])},2123:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(87389),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"MDll+Ehk",block:'[[[1,[30,0,["tagRecord","id"]]]],[],false,[]]',moduleName:"discourse/components/discourse-tag-bound.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{tagClass(e){return"tag-"+e}static #e=(()=>dt7948.n(this.prototype,"tagClass",[(0,o.default)("tagRecord.id")]))();href(e){return(0,r.default)("/tag/"+e)}static #n=(()=>dt7948.n(this.prototype,"href",[(0,o.default)("tagRecord.id")]))()},[(0,s.attributeBindings)("href"),(0,s.classNameBindings)(":discourse-tag","style","tagClass"),(0,s.tagName)("a")]),u=(0,i.setComponentTemplate)(a,l)},59944:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(76417),s=n(5938),r=n(71597),o=n(42433),a=n(97355),l=n(93223),u=n(9630),c=n(14682),d=n.n(c),p=n(31800),h=n(20802),m=n(58774),g=n(62797);let f=dt7948.c(class extends i.default.extend(m.default){static #e=(()=>dt7948.g(this.prototype,"userFilters",[(0,s.alias)("topic.userFilters")]))();#e0=(()=>void dt7948.i(this,"userFilters"))();static #n=(()=>dt7948.g(this.prototype,"postStream",[(0,s.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();menuVisible=!0;SHORT_POST=1200;dockAt=0;init(){super.init(...arguments),this.appEvents.on("discourse:focus-changed",this,"gotFocus"),this.appEvents.on("post:highlight",this,"_highlightPost")}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("discourse:focus-changed",this,"gotFocus"),this.appEvents.off("post:highlight",this,"_highlightPost")}_enteredTopic(){this.enteredAt&&this.lastEnteredAt!==this.enteredAt&&((0,o.schedule)("afterRender",this.scrolled),this.set("lastEnteredAt",this.enteredAt))}static #i=(()=>dt7948.n(this.prototype,"_enteredTopic",[(0,u.observes)("enteredAt")]))();_highlightPost(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};((0,a.isBlank)(t.jump)||!1!==t.jump)&&(0,o.scheduleOnce)("afterRender",null,h.highlightPost,e)}didInsertElement(){super.didInsertElement(...arguments),this.bindScrolling(),window.addEventListener("resize",this.scrolled),d()(this.element).on("click.discourse-redirect",".cooked a, a.track-link",e=>p.default.trackClick(e,(0,r.getOwner)(this)))}willDestroyElement(){super.willDestroyElement(...arguments),this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),d()(this.element).off("click.discourse-redirect",".cooked a, a.track-link")}gotFocus(e){e&&this.scrolled()}scrolled(){if(this.isDestroyed||this.isDestroying||"inDOM"!==this._state)return;let e=window.pageYOffset||document.documentElement.scrollTop;this.set("hasScrolled",e>0),this.appEvents.trigger("topic:scrolled",e)}static #l=(()=>dt7948.n(this.prototype,"scrolled",[g.bind]))()},[(0,l.classNameBindings)("multiSelect","topic.archetype","topic.is_warning","topic.category.read_restricted:read_restricted","topic.deleted:deleted-topic")])},55143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(76417),s=n(70001),r=n(54729),o=n(93223),a=n(9630),l=n(14682),u=n.n(l),c=n(83357),d=n(69863);let p=dt7948.c(class extends i.default.extend(d.default){static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"documentTitle",[r.service]))();#eT=(()=>void dt7948.i(this,"documentTitle"))();eyelineSelector=".topic-list-item";_monitorTrackingState(){this.stateChangeCallbackId=this.topicTrackingState.onStateChange(()=>this._updateTrackingTopics())}static #i=(()=>dt7948.n(this.prototype,"_monitorTrackingState",[(0,a.on)("didInsertElement")]))();_removeTrackingStateChangeMonitor(){this.stateChangeCallbackId&&this.topicTrackingState.offStateChange(this.stateChangeCallbackId)}static #l=(()=>dt7948.n(this.prototype,"_removeTrackingStateChangeMonitor",[(0,a.on)("willDestroyElement")]))();_updateTrackingTopics(){this.topicTrackingState.updateTopics(this.model.topics)}_updateTitle(){this.documentTitle.updateContextCount(this.incomingCount)}static #u=(()=>dt7948.n(this.prototype,"_updateTitle",[(0,a.observes)("incomingCount")]))();loadMore(){var e=this;(0,c.applyBehaviorTransformer)("discovery-topic-list-load-more",()=>(this.documentTitle.updateContextCount(0),this.model.loadMore().then(function(){let{moreTopicsUrl:t,newTopics:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&n.length&&e.bulkSelectHelper?.bulkSelectEnabled&&e.bulkSelectHelper.addTopics(n),t&&u()(window).height()>=u()(document).height()&&e.send("loadMore")})),{model:this.model})}static #c=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()},[(0,o.classNames)("contents")])},98807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(37138),s=n(39882),r=n(54729),o=n(80515),a=n(41077),l=n(6410),u=n(10311),c=n(3113),d=n(29764),p=n(59602),h=n(90265),m=n(59874),g=n(84737),f=n(69391),_=n(76417),y=n(82739);let b=["categories_with_featured_topics","subcategories_with_featured_topics"],w={boxes_with_featured_topics:u.default,boxes:l.default,rows_with_featured_topics:d.default,rows:c.default},k={categories_and_latest_topics_created_date:o.default,categories_and_latest_topics:o.default,categories_and_top_topics:a.default,categories_boxes_with_topics:u.default,categories_boxes:l.default,categories_only:c.default,categories_with_featured_topics:d.default,subcategories_with_featured_topics:g.default};class x extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();get #e3(){let e=this.args.parentCategory.subcategory_list_style;return w[e]||(console.error("Unknown subcategory list style: "+e),c.default)}get style(){let e=this.siteSettings.desktop_category_page_style;return this.site.mobileView&&!b.includes(e)&&(e=b[0]),this.site.categories.length>f.MAX_UNOPTIMIZED_CATEGORIES&&(e="categories_only"),e}get #e2(){return k[this.style]||(console.error("Unknown category list style: "+this.style),c.default)}get categoriesComponent(){return this.args.parentCategory&&"discovery.subcategories"!==this.router.currentRouteName?this.#e3:this.#e2}get canLoadMore(){return this.args.loadMore&&(this.site.lazy_load_categories||this.site.categories.length>f.MAX_UNOPTIMIZED_CATEGORIES)}static #l=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"kcdr7TWA",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["above-discovery-categories","div",[28,[32,1],null,[["categories","topics"],[[30,1],[30,2]]]]]],null],[1,"\\n"],[41,[30,0,["canLoadMore"]],[[[1," "],[8,[32,2],null,[["@selector","@action"],[".category:not(.muted-categories *)",[30,3]]],[["default"],[[[[1,"\\n "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,4]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n"]],[]]],[1," "]],["@categories","@topics","@loadMore","@loadingMore"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/categories-display.js",scope:()=>[m.default,s.hash,h.default,p.default],isStrictMode:!0}),this))()}},46414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(31570),l=n(84262),u=n(62797);let c=(0,n(82739).createTemplateFactory)({id:"iIZDxI8r",block:'[[[1,[28,[35,0],["navigation-filter"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"navigation-container"],[12],[1,"\\n "],[10,0],[14,0,"topic-query-filter"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["site","mobileView"]],[30,1]],null],[[[1," "],[10,0],[14,0,"topic-query-filter__bulk-action-btn"],[12],[1,"\\n "],[8,[39,5],null,[["@bulkSelectHelper"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"topic-query-filter__input"],[12],[1,"\\n "],[1,[28,[35,6],["filter"],[["class"],["topic-query-filter__icon"]]]],[1,"\\n "],[8,[39,7],[[24,0,"topic-query-filter__filter-term"],[24,1,"queryStringInput"],[24,"autocomplete","off"]],[["@value","@enter","@type"],[[30,0,["newQueryString"]],[28,[37,8],[[30,0],[30,3],[30,0,["newQueryString"]]],null],"text"]],null],[1,"\\n"],[1," "],[8,[39,9],null,[["@name","@outletArgs"],["below-filter-input",[28,[37,10],null,[["updateQueryString","newQueryString"],[[30,0,["updateQueryString"]],[30,0,["newQueryString"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["newQueryString"]],[[[1," "],[10,0],[14,0,"topic-query-filter__controls"],[12],[1,"\\n "],[8,[39,11],null,[["@icon","@action","@disabled"],["xmark",[30,0,["clearInput"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n\\n"],[41,[30,0,["discoveryFilter","q"]],[[[1," "],[8,[39,11],[[16,0,[30,0,["copyClass"]]]],[["@icon","@action","@disabled"],[[30,0,["copyIcon"]],[30,0,["copyQueryString"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@canBulkSelect","@bulkSelectHelper","@updateTopicsListQueryParams"],false,["body-class","section","div","if","and","bulk-select-toggle","d-icon","input","action","plugin-outlet","hash","d-button","unless"]]',moduleName:"discourse/components/discovery/filter-navigation.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"copyIcon",[s.tracked],function(){return"link"}))();#e8=(()=>void dt7948.i(this,"copyIcon"))();static #i=(()=>dt7948.g(this.prototype,"copyClass",[s.tracked],function(){return"btn-default"}))();#e4=(()=>void dt7948.i(this,"copyClass"))();static #l=(()=>dt7948.g(this.prototype,"newQueryString",[a.resettableTracked],function(){return this.args.queryString}))();#e7=(()=>void dt7948.i(this,"newQueryString"))();updateQueryString(e){this.newQueryString=e}static #u=(()=>dt7948.n(this.prototype,"updateQueryString",[u.bind]))();clearInput(){this.newQueryString="",this.args.updateTopicsListQueryParams(this.newQueryString)}static #c=(()=>dt7948.n(this.prototype,"clearInput",[r.action]))();copyQueryString(){this.copyIcon="check",this.copyClass="btn-default ok",navigator.clipboard.writeText(window.location),(0,l.default)(this._restoreButton,3e3)}static #d=(()=>dt7948.n(this.prototype,"copyQueryString",[r.action]))();_restoreButton(){this.isDestroying||this.isDestroyed||(this.copyIcon="link",this.copyClass="btn-default")}static #p=(()=>dt7948.n(this.prototype,"_restoreButton",[u.bind]))()}(0,d.setComponentTemplate)(c,p)},42048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"MWHIba8T",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n "],[8,[39,1],null,null,null],[1,"\\n"],[41,[30,1,["category"]],[[[1," "],[8,[39,3],null,[["@category","@readOnly"],[[30,1,["category"]],[30,2]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-controls-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"list-controls"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-navigation-bar-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"container"],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-above","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"container list-container"],[12],[1,"\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"full-width"],[12],[1,"\\n "],[10,0],[14,1,"header-list-area"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["header-list-container-bottom",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"full-width"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["before-list-area",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[10,0],[14,1,"list-area"],[12],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs","@defaultGlimmer"],["discovery-list-area",[28,[37,6],null,[["category","tag","model"],[[30,1,["category"]],[30,1,["tag"]],[30,1]]]],true]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-container-top","span",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["discovery-below","div",[28,[37,6],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13]],["@model","@createTopicDisabled","&navigation","&header","&list"],false,["div","discourse-banner","if","category-read-only-banner","span","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/discovery/layout.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"layout"))},60593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(70001),r=n(54729),o=n(35525),a=n(63252),l=n(14764),u=n(56839),c=n(88253);let d=(0,n(82739).createTemplateFactory)({id:"yDLcEeBe",block:'[[[8,[39,0],null,[["@category","@tags"],[[30,1],[52,[30,2],[28,[37,2],[[30,2,["id"]]],null]]]],null],[1,"\\n\\n"],[41,[30,1],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["above-category-heading",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n\\n "],[10,"section"],[14,0,"category-heading"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1," "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,2],[12],[1,[28,[35,8],[[30,1,["description"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-heading","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,10],[[30,0,["bodyClass"]]],null]],[1,"\\n\\n"],[10,"section"],[15,0,[28,[37,11],["navigation-container",[52,[30,1],"category-navigation"]],null]],[12],[1,"\\n "],[8,[39,12],null,[["@category","@tag","@additionalTags","@filterMode","@noSubcategories","@canCreateTopic","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@hasDraft","@editCategory","@showCategoryAdmin","@createCategory","@reorderCategories","@canBulkSelect","@bulkSelectHelper","@skipCategoriesNavItem","@toggleInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],[[30,1],[30,2],[30,3],[30,0,["filterMode"]],[30,4],[30,0,["canCreateTopic"]],[30,5],[30,6],[30,7],[30,0,["currentUser","has_topic_draft"]],[30,0,["editCategory"]],[30,8],[30,0,["createCategory"]],[30,0,["reorderCategories"]],[30,9],[30,10],[30,0,["skipCategoriesNavItem"]],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17]]],null],[1,"\\n\\n"],[41,[30,1],[[[1," "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["tag-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[13]],["@category","@tag","@additionalTags","@noSubcategories","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@showCategoryAdmin","@canBulkSelect","@bulkSelectHelper","@toggleTagInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],false,["add-category-tag-classes","if","array","plugin-outlet","hash","section","category-logo","p","dir-span","span","body-class","concat-class","d-navigation"]]',moduleName:"discourse/components/discovery/navigation.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();get filterMode(){return(0,a.calculateFilterMode)({category:this.args.category,filterType:this.args.filterType,noSubcategories:this.args.noSubcategories})}get skipCategoriesNavItem(){return this.router.currentRoute.queryParams.f===l.TRACKED_QUERY_PARAM_VALUE}get canCreateTopic(){return this.currentUser?.can_create_topic}get bodyClass(){return this.args.tag?["tags-page",this.args.additionalTags?"tags-intersection":null].filter(Boolean).join(" "):"categories"===this.filterMode?"navigation-categories":this.args.category?"navigation-category":"navigation-topics"}editCategory(){u.default.routeTo(`/c/${c.default.slugFor(this.args.category)}/edit`)}static #l=(()=>dt7948.n(this.prototype,"editCategory",[s.action]))();createCategory(){this.router.transitionTo("newCategory")}static #u=(()=>dt7948.n(this.prototype,"createCategory",[s.action]))();reorderCategories(){this.modal.show(o.default)}static #c=(()=>dt7948.n(this.prototype,"reorderCategories",[s.action]))()}(0,p.setComponentTemplate)(d,h)},57638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(64149),l=n(63252),u=n(56839),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"obQfcc8U",block:'[[[41,[30,1,["canLoadMore"]],[[[1," "],[1,[35,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["redirectedReason"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[30,0,["redirectedReason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["sharedDrafts"]],[[[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[8,[39,3],[[24,0,"shared-drafts"]],[["@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared_drafts.title",[30,0,["top"]],"true",[30,2],[30,1,["sharedDrafts"]],true]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],[[24,0,"shared-drafts"]],[["@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared_drafts.title",[30,0,["top"]],"true",[30,2],[30,1,["sharedDrafts"]],true]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,5],null,[["@model","@incomingCount","@bulkSelectHelper","@class"],[[30,1],[30,0,["topicTrackingState","incomingCount"]],[30,3],[52,[30,0,["footerEducation"]],"--no-topics-education"]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1," "],[10,0],[14,0,"top-lists"],[12],[1,"\\n "],[8,[39,6],null,[["@period","@action","@fullDay"],[[30,4],[30,5],false]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,7],[[30,0,["topicTrackingState","hasIncoming"]],[30,1,["loadingBefore"]]],null],[[[1," "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n "],[11,3],[24,"tabindex","0"],[24,6,""],[16,0,[29,["alert alert-info clickable\\n ",[52,[30,1,["loadingBefore"]],"loading"]]]],[4,[38,9],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n "],[8,[39,10],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[28,[37,7],[[30,1,["loadingBefore"]],[30,0,["topicTrackingState","incomingCount"]]],null]]],null],[1,"\\n"],[41,[30,1,["loadingBefore"]],[[[1," "],[1,[28,[35,11],null,[["size"],["small"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["renderNewListHeaderControls"]],[[[1," "],[8,[39,12],null,[["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,1,["params","subset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-list","div",[28,[37,15],null,[["category","tag"],[[30,2],[30,7]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasTopics"]],[[[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[8,[39,3],null,[["@highlightLastVisited","@top","@hot","@showTopicPostBadges","@showPosters","@canBulkSelect","@bulkSelectHelper","@changeSort","@hideCategory","@order","@ascending","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@focusLastVisitedTopic","@showTopicsAndRepliesToggle","@newListSubset","@changeNewListSubset","@newRepliesCount","@newTopicsCount"],[true,[30,0,["top"]],[30,0,["hot"]],[30,0,["showTopicPostBadges"]],true,[30,8],[30,3],[30,9],[30,1,["hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,2],[30,1,["topics"]],true,true,[30,0,["showTopicsAndRepliesToggle"]],[30,1,["params","subset"]],[30,6],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@highlightLastVisited","@top","@hot","@showTopicPostBadges","@showPosters","@canBulkSelect","@bulkSelectHelper","@changeSort","@hideCategory","@order","@ascending","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@focusLastVisitedTopic","@showTopicsAndRepliesToggle","@newListSubset","@changeNewListSubset","@newRepliesCount","@newTopicsCount"],[true,[30,0,["top"]],[30,0,["hot"]],[30,0,["showTopicPostBadges"]],true,[30,8],[30,3],[30,9],[30,1,["hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,2],[30,1,["topics"]],true,true,[30,0,["showTopicsAndRepliesToggle"]],[30,1,["params","subset"]],[30,6],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n "],[10,1],[14,0,"after-topic-list-plugin-outlet-wrapper"],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-list","div",[28,[37,15],null,[["category","tag","loadingMore","canLoadMore"],[[30,2],[30,7],[30,1,["loadingMore"]],[30,1,["canLoadMore"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n "],[8,[39,17],null,[["@condition"],[[30,1,["loadingMore"]]]],null],[1,"\\n"],[41,[30,0,["allLoaded"]],[[[1," "],[8,[39,14],null,[["@name","@outletArgs"],["topic-list-bottom",[28,[37,15],null,[["category","tag","allLoaded","model"],[[30,2],[30,7],[30,0,["allLoaded"]],[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[39,18],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,3,["selected"]],[30,1],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n\\n "],[8,[39,19],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n"],[41,[30,7],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_tags_or_latest"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["latest"]],[[[41,[30,2,["canCreateTopic"]],[[[1," "],[8,[39,23],null,[["@action","@text"],[[28,[37,24],[[30,0,["composer","openNewTopic"]],[28,[37,15],null,[["category","preferDraft"],[[30,2],true]]]],null],"topic.suggest_create_topic"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["top"]],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_categories_latest_or_top"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n "],[8,[39,25],null,[["@period","@action"],[[30,4],[30,5]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,20],[[28,[37,21],["topic.browse_all_categories_latest"],[["basePath"],[[28,[37,22],null,null]]]]],null]],[1,"\\n "]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[13]],["@model","@category","@bulkSelectHelper","@period","@changePeriod","@changeNewListSubset","@tag","@canBulkSelect","@changeSort","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],false,["if","hide-application-footer","div","topic-list/list","topic-list","discovery-topics-list","period-chooser","or","a","on","count-i18n","loading-spinner","new-list-header-controls-wrapper","span","plugin-outlet","hash","footer","conditional-loading-spinner","topic-dismiss-buttons","footer-message","html-safe","i18n","base-path","discourse-linked-text","fn","top-period-buttons"]]',moduleName:"discourse/components/discovery/topics.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();static #c=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"loadingNew",[s.tracked]))();#e5=(()=>void dt7948.i(this,"loadingNew"))();get redirectedReason(){return this.currentUser?.user_option.redirected_to_top?.reason}get order(){return this.args.model.get("params.order")}get ascending(){return"true"===this.args.model.get("params.ascending")}get hasTopics(){return this.args.model.get("topics.length")>0}get allLoaded(){return!this.args.model.get("more_topics_url")}get latest(){return"latest"===(0,l.filterTypeForMode)(this.args.model.filter)}get top(){return"top"===(0,l.filterTypeForMode)(this.args.model.filter)}get hot(){return"hot"===(0,l.filterTypeForMode)(this.args.model.filter)}get new(){return"new"===(0,l.filterTypeForMode)(this.args.model.filter)}async showInserted(e){if(e?.preventDefault(),this.args.model.loadingBefore)return;let{topicTrackingState:t}=this;try{let e=[...t.newIncoming];await this.args.model.loadBefore(e,!0),t.clearIncoming(e)}catch(e){(0,a.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"showInserted",[r.action]))();get showTopicsAndRepliesToggle(){return this.new&&this.currentUser?.new_new_view_enabled}get newRepliesCount(){return(this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled)?this.topicTrackingState.countUnread({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get newTopicsCount(){return(this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled)?this.topicTrackingState.countNew({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get showTopicPostBadges(){return!this.new||this.currentUser?.new_new_view_enabled}get footerMessage(){let e=this.args.model.get("topics.length");if(!this.allLoaded)return;let{category:t,tag:n}=this.args;if(t)return(0,c.i18n)("topics.bottom.category",{category:t.get("name")});if(n)return(0,c.i18n)("topics.bottom.tag",{tag:n.id});{let t=(this.args.model.get("filter")||"").split("/");return 0===e?(0,c.i18n)("topics.none."+t[0],{category:t[1]}):(0,c.i18n)("topics.bottom."+t[0],{category:t[1]})}}get footerEducation(){let e=this.args.model.get("topics.length");if(!this.allLoaded||e>0||!this.currentUser)return;let t=(this.args.model.get("filter")||"").split("/"),n=t[t.length-1];if("new"===n||"unread"===n)return"new"===n&&this.currentUser.new_new_view_enabled&&(n="new_new"),(0,c.i18n)("topics.none.educate."+n,{userPrefsUrl:(0,u.userPath)(`${this.currentUser.get("username_lower")}/preferences/tracking`)})}get renderNewListHeaderControls(){return this.site.mobileView&&this.showTopicsAndRepliesToggle&&!this.args.bulkSelectEnabled}get expandGloballyPinned(){return!this.expandAllPinned}get expandAllPinned(){return this.args.tag||this.args.category}}(0,p.setComponentTemplate)(d,h)},85052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39882),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"mi9+L+so",block:'[[[1,"\\n "],[11,"li"],[24,0,"dropdown-menu__item"],[17,1],[12],[18,2,null],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownItem")),l=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"ly8SkaXR",block:'[[[1,"\\n "],[11,"li"],[17,1],[12],[10,"hr"],[14,0,"dropdown-menu__divider"],[12],[13],[13],[1,"\\n"]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownDivider")),u=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"31kQoA3l",block:'[[[1,"\\n "],[11,"ul"],[24,0,"dropdown-menu"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["item","divider"],[[32,1],[32,2]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dropdown-menu.js",scope:()=>[i.hash,a,l],isStrictMode:!0}),(0,o.default)(void 0,"dropdown-menu:DropdownMenu"))},74685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(70001),s=n(5938),r=n(42433),o=n(97355),a=n(87220),l=n(12223),u=n(88253),c=n(87389),d=n(86211),p=n(62797);let h=(0,n(82739).createTemplateFactory)({id:"X8PwVHa8",block:'[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,"\\n "],[1,[28,[35,2],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,3],[[28,[37,4],["category.uncategorized_general_warning"],[["settingLink","customizeLink"],[[30,0,["uncategorizedSiteSettingLink"]],[30,0,["customizeTextContentLink"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"form"],[12],[1,"\\n "],[8,[39,6],null,[["@category","@tagName"],[[30,0,["category"]],""]],null],[1,"\\n\\n"],[41,[30,0,["canSelectParentCategory"]],[[[1," "],[10,"section"],[14,0,"field parent-category"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.parent"],null]],[13],[1,"\\n "],[8,[39,9],null,[["@value","@allowSubCategories","@allowRestrictedCategories","@onChange","@options"],[[30,0,["category","parent_category_id"]],true,true,[28,[37,10],[[28,[37,11],[[30,0,["category","parent_category_id"]]],null]],null],[28,[37,12],null,[["allowUncategorized","excludeCategoryId","autoInsertNoneItem","none"],[false,[30,0,["category","id"]],true,true]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["subCategories"]],[[[1," "],[10,"section"],[14,0,"field subcategories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["categories.subcategories"],null]],[13],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["subCategories"]]],null]],null],null,[[[1," "],[1,[28,[35,15],[[30,1]],[["hideParent"],["true"]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1," "],[10,"section"],[14,0,"field description"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.description"],null]],[13],[1,"\\n"],[41,[30,0,["category","description"]],[[[1," "],[1,[28,[35,3],[[30,0,["category","description"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],["category.no_description"],null]],[1,"\\n"]],[]]],[41,[30,0,["category","topic_url"]],[[[1," "],[10,"br"],[12],[13],[1,"\\n "],[8,[39,17],[[24,0,"btn-default edit-category-description"]],[["@action","@icon","@label"],[[30,0,["showCategoryTopic"]],"pencil","category.change_in_category_topic"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field category-colors"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["category.badge_colors"],null]],[13],[1,"\\n "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n "],[1,[28,[35,3],[[30,0,["categoryBadgePreview"]]],null]],[1,"\\n\\n "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,1],[14,1,"background-color-label"],[14,0,"color-title"],[12],[1,[28,[35,4],["category.background_color"],null]],[1,":"],[13],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper"],[12],[1,"\\n "],[8,[39,20],null,[["@hexValue","@valid","@ariaLabelledby"],[[30,0,["category","color"]],[30,0,["category","colorValid"]],"background-color-label"]],null],[1,"\\n "],[8,[39,21],null,[["@colors","@usedColors","@value","@ariaLabel"],[[30,0,["backgroundColors"]],[30,0,["usedBackgroundColors"]],[30,0,["category","color"]],[28,[37,4],["category.predefined_colors"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,1],[14,1,"foreground-color-label"],[14,0,"color-title"],[12],[1,[28,[35,4],["category.foreground_color"],null]],[1,":"],[13],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper edit-text-color"],[12],[1,"\\n "],[8,[39,20],null,[["@hexValue","@ariaLabelledby"],[[30,0,["category","text_color"]],"foreground-color-label"]],null],[1,"\\n "],[8,[39,21],null,[["@colors","@value","@id","@ariaLabel"],[[30,0,["foregroundColors"]],[30,0,["category","text_color"]],"edit-text-color",[28,[37,4],["category.predefined_colors"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["s"],false,["if","p","d-icon","html-safe","i18n","form","category-name-fields","section","label","category-chooser","fn","mut","hash","each","-track-array","category-badge","br","d-button","div","span","color-input","color-picker"]]',moduleName:"discourse/components/edit-category-general.hbs",isStrictMode:!1});var m=n(76417);class g extends(0,a.buildCategoryPanel)("general"){static #e=(()=>dt7948.g(this.prototype,"canSelectParentCategory",[(0,s.not)("category.isUncategorizedCategory")]))();#e6=(()=>void dt7948.i(this,"canSelectParentCategory"))();uncategorizedSiteSettingLink=(()=>(0,c.default)("/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"))();customizeTextContentLink=(()=>(0,c.default)("/admin/customize/site_texts?q=uncategorized"))();foregroundColors=["FFFFFF","000000"];didInsertElement(){super.didInsertElement(...arguments),this._focusCategoryName()}willDestroyElement(){super.willDestroyElement(...arguments),this._laterFocus&&(0,r.cancel)(this._laterFocus)}backgroundColors(){let e=this.site.get("categoriesList");return this.siteSettings.category_colors.split("|").map(function(e){return e.toUpperCase()}).concat(e.map(function(e){return e.color.toUpperCase()})).uniq()}static #n=(()=>dt7948.n(this.prototype,"backgroundColors",[p.default]))();usedBackgroundColors(e,t){return this.site.get("categoriesList").map(function(n){return e&&t.toUpperCase()===n.color.toUpperCase()?null:n.color.toUpperCase()},this).compact()}static #i=(()=>dt7948.n(this.prototype,"usedBackgroundColors",[(0,p.default)("category.id","category.color")]))();parentCategories(){return this.site.get("categoriesList").filter(e=>e.level+1dt7948.n(this.prototype,"parentCategories",[p.default]))();categoryBadgePreview(e,t,n,i){let s=this.category,r=u.default.create({name:t,color:n,id:s.id,text_color:i,parent_category_id:parseInt(e,10),read_restricted:s.get("read_restricted")});return(0,l.categoryBadgeHTML)(r,{link:!1,previewColor:!0})}static #u=(()=>dt7948.n(this.prototype,"categoryBadgePreview",[(0,p.default)("category.parent_category_id","category.name","category.color","category.text_color")]))();subCategories(e){return(0,o.isEmpty)(e)?null:u.default.list().filterBy("parent_category_id",e)}static #c=(()=>dt7948.n(this.prototype,"subCategories",[(0,p.default)("category.id")]))();showDescription(e,t,n){return!e&&t&&n}static #d=(()=>dt7948.n(this.prototype,"showDescription",[(0,p.default)("category.isUncategorizedCategory","category.id","category.topic_url")]))();showCategoryTopic(){return window.open(this.get("category.topic_url"),"_blank").focus(),!1}static #p=(()=>dt7948.n(this.prototype,"showCategoryTopic",[i.action]))();_focusCategoryName(){this._laterFocus=(0,d.default)(()=>{let e=this.element.querySelector(".category-name");e&&e.focus()},25)}}(0,m.setComponentTemplate)(h,g)},96945:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(87220),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"ALAzfS5k",block:'[[[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.logo"],null]],[13],[1,"\\n "],[8,[39,3],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageUrl"]],[28,[37,4],[[30,0],"logoUploadDone"],null],[28,[37,4],[[30,0],"logoUploadDeleted"],null],"category_logo","category-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.logo_dark"],null]],[13],[1,"\\n "],[8,[39,3],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageDarkUrl"]],[28,[37,4],[[30,0],"logoDarkUploadDone"],null],[28,[37,4],[[30,0],"logoDarkUploadDeleted"],null],"category_logo_dark","category-dark-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.background_image"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundImageUrl"]],[28,[37,4],[[30,0],"backgroundUploadDone"],null],[28,[37,4],[[30,0],"backgroundUploadDeleted"],null],"category_background","category-background-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.background_image_dark"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundDarkImageUrl"]],[28,[37,4],[[30,0],"backgroundDarkUploadDone"],null],[28,[37,4],[[30,0],"backgroundDarkUploadDeleted"],null],"category_background_dark","category-dark-background-uploader"]],null],[1,"\\n"],[13]],[],false,["section","label","i18n","uppy-image-uploader","action"]]',moduleName:"discourse/components/edit-category-images.hbs",isStrictMode:!1});var a=n(76417);class l extends(0,s.buildCategoryPanel)("images"){backgroundImageUrl(e){return e||""}static #e=(()=>dt7948.n(this.prototype,"backgroundImageUrl",[(0,r.default)("category.uploaded_background.url")]))();backgroundDarkImageUrl(e){return e||""}static #n=(()=>dt7948.n(this.prototype,"backgroundDarkImageUrl",[(0,r.default)("category.uploaded_background_dark.url")]))();logoImageUrl(e){return e||""}static #i=(()=>dt7948.n(this.prototype,"logoImageUrl",[(0,r.default)("category.uploaded_logo.url")]))();logoImageDarkUrl(e){return e||""}static #l=(()=>dt7948.n(this.prototype,"logoImageDarkUrl",[(0,r.default)("category.uploaded_logo_dark.url")]))();logoUploadDone(e){this._setFromUpload("category.uploaded_logo",e)}static #u=(()=>dt7948.n(this.prototype,"logoUploadDone",[i.action]))();logoUploadDeleted(){this._deleteUpload("category.uploaded_logo")}static #c=(()=>dt7948.n(this.prototype,"logoUploadDeleted",[i.action]))();logoDarkUploadDone(e){this._setFromUpload("category.uploaded_logo_dark",e)}static #d=(()=>dt7948.n(this.prototype,"logoDarkUploadDone",[i.action]))();logoDarkUploadDeleted(){this._deleteUpload("category.uploaded_logo_dark")}static #p=(()=>dt7948.n(this.prototype,"logoDarkUploadDeleted",[i.action]))();backgroundUploadDone(e){this._setFromUpload("category.uploaded_background",e)}static #h=(()=>dt7948.n(this.prototype,"backgroundUploadDone",[i.action]))();backgroundUploadDeleted(){this._deleteUpload("category.uploaded_background")}static #m=(()=>dt7948.n(this.prototype,"backgroundUploadDeleted",[i.action]))();backgroundDarkUploadDone(e){this._setFromUpload("category.uploaded_background_dark",e)}static #g=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDone",[i.action]))();backgroundDarkUploadDeleted(){this._deleteUpload("category.uploaded_background_dark")}static #E=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDeleted",[i.action]))();_deleteUpload(e){this.set(e,i.default.create({id:null,url:null}))}_setFromUpload(e,t){this.set(e,i.default.create({url:t.url,id:t.id}))}}(0,a.setComponentTemplate)(o,l)},87220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildCategoryPanel:()=>l,default:()=>a});var i=n(76417),s=n(5938),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"j67r9u89",block:'[[[46,[30,0,["customComponent"]],null,[["tab","selectedTab","category"],[[30,0,["tab"]],[30,0,["selectedTab"]],[30,0,["category"]]]],null]],[],false,["component"]]',moduleName:"discourse/components/edit-category-panel.hbs",isStrictMode:!1});class a extends i.default{}function l(e){return dt7948.c(class extends a{static #e=(()=>dt7948.g(this.prototype,"activeTab",[(0,s.equal)("selectedTab",e)]))();#te=(()=>void dt7948.i(this,"activeTab"))()},[(0,r.classNameBindings)(":edit-category-tab","activeTab::hide",`:edit-category-tab-${e}`)])}(0,i.setComponentTemplate)(o,a)},56418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(70001),s=n(5938),r=n(87220),o=n(30975),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"KAHkFKWL",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[30,0,["category","is_special"]],[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.uncategorized_security_warning"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.special_warning"],null]],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[51,[30,0,["category","is_special"]]],[[[1," "],[10,0],[14,0,"category-permissions-table"],[12],[1,"\\n "],[10,0],[14,0,"permission-row row-header"],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,[28,[35,3],["category.permissions.group"],null]],[13],[1,"\\n "],[10,1],[14,0,"options"],[12],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.see"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.reply"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[1,[28,[35,3],["category.permissions.create"],null]],[13],[1,"\\n "],[10,1],[14,0,"cell"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","permissions"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@groupName","@type","@category","@everyonePermission","@onChangeEveryonePermission"],[[30,1,["group_name"]],[30,1,["permission_type"]],[30,0,["category"]],[30,0,["everyonePermission"]],[28,[37,10],[[30,0],"onChangeEveryonePermission"],null]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[51,[30,0,["category","permissions"]]],[[[1," "],[10,0],[14,0,"permission-row row-empty"],[12],[1,"\\n "],[1,[28,[35,3],["category.permissions.no_groups_selected"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","availableGroups"]],[[[1," "],[10,0],[14,0,"add-group"],[12],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,"\\n "],[8,[39,11],[[24,0,"available-groups"]],[["@content","@onChange","@value","@valueProperty","@nameProperty","@options"],[[30,0,["category","availableGroups"]],[28,[37,10],[[30,0],"onSelectGroup"],null],null,null,null,[28,[37,12],null,[["none"],["category.security_add_group"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["everyoneGrantedFull"]],[[[1," "],[10,2],[14,0,"warning"],[12],[1,[28,[35,3],["category.permissions.everyone_has_access"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,13],null,[["@name","@outletArgs"],["category-custom-security",[28,[37,12],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],["p"],false,["section","if","p","i18n","unless","div","span","each","-track-array","category-permission-row","action","combo-box","hash","plugin-outlet"]]',moduleName:"discourse/components/edit-category-security.hbs",isStrictMode:!1});var u=n(76417);class c extends(0,r.buildCategoryPanel)("security"){selectedGroup=null;static #e=(()=>dt7948.g(this.prototype,"noGroupSelected",[(0,s.not)("selectedGroup")]))();#tt=(()=>void dt7948.i(this,"noGroupSelected"))();everyonePermission(e){return e.findBy("group_name","everyone")}static #n=(()=>dt7948.n(this.prototype,"everyonePermission",[(0,a.default)("category.permissions.@each.permission_type")]))();everyoneGrantedFull(){return this.everyonePermission&&this.everyonePermission.permission_type===o.default.FULL}static #i=(()=>dt7948.n(this.prototype,"everyoneGrantedFull",[(0,a.default)("category.permissions.@each.permission_type")]))();minimumPermission(e){return e?e.permission_type:o.default.READONLY}static #l=(()=>dt7948.n(this.prototype,"minimumPermission",[(0,a.default)("everyonePermission")]))();onSelectGroup(e){this.category.addPermission({group_name:e,permission_type:this.minimumPermission})}static #u=(()=>dt7948.n(this.prototype,"onSelectGroup",[i.action]))();onChangeEveryonePermission(e){this.category.permissions.forEach((t,n)=>{"everyone"!==t.group_name&&edt7948.n(this.prototype,"onChangeEveryonePermission",[i.action]))()}(0,u.setComponentTemplate)(l,c)},55934:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addCategorySortCriteria:()=>h,default:()=>m});var i=n(70001),s=n(5938),r=n(87220),o=n(28147),a=n(69391),l=n(62797),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"ihwWKEd8",block:'[[[10,"section"],[12],[1,"\\n"],[41,[30,0,["showPositionInput"]],[[[1," "],[10,"section"],[14,0,"field position-fields"],[12],[1,"\\n "],[10,"label"],[14,"for","category-position"],[12],[1,"\\n "],[1,[28,[35,3],["category.position"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","position"]]],[24,"min","0"],[24,1,"category-position"],[24,0,"position-input"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","position"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showPositionInput"]]],[[[1," "],[10,"section"],[14,0,"field position-disabled"],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,3],["category.position_disabled"],[["url"],[[28,[37,11],["/admin/site_settings/category/all_results?filter=fixed_category_positions"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field num-featured-topics"],[12],[1,"\\n "],[10,"label"],[14,"for","category-number-featured-topics"],[12],[1,"\\n"],[41,[30,0,["category","parent_category_id"]],[[[1," "],[1,[28,[35,3],["category.subcategory_num_featured_topics"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["category.num_featured_topics"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","num_featured_topics"]]],[24,"min","1"],[24,1,"category-number-featured-topics"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","num_featured_topics"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field search-priority"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.search_priority.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@onChange","@options"],["value","category-search-priority",[30,0,["searchPrioritiesOptions"]],[30,0,["category","search_priority"]],[28,[37,7],[[28,[37,8],[[30,0,["category","search_priority"]]],null]],null],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1," "],[10,"section"],[14,0,"field allow-badges"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_badges"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.allow_badges_label"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[10,"section"],[14,0,"field topic-featured-link-allowed"],[12],[1,"\\n "],[10,0],[14,0,"allowed-topic-featured-link-category"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","topic_featured_link_allowed"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.topic_featured_link_allowed"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field navigate-to-first-post-after-read"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","navigate_to_first_post_after_read"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.navigate_to_first_post_after_read"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field all-topics-wiki"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","all_topics_wiki"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.all_topics_wiki"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field allow-unlimited-owner-edits-on-first-post"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_unlimited_owner_edits_on_first_post"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.allow_unlimited_owner_edits_on_first_post"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.moderation"],null]],[13],[1,"\\n"],[41,[30,0,["siteSettings","enable_category_group_moderation"]],[[[1," "],[10,"section"],[14,0,"field reviewable-by-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["category.reviewable_by_group"],null]],[13],[1,"\\n "],[8,[39,16],null,[["@content","@value","@onChange"],[[30,0,["site","groups"]],[30,0,["category","moderating_group_ids"]],[30,0,["onCategoryModeratingGroupsChange"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field require-topic-approval"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_topic_approval"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.require_topic_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field require-reply-approval"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_reply_approval"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.require_reply_approval"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-slow-mode"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","category-default-slow-mode"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_slow_mode"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-default-slow-mode-seconds"],[12],[1,"\\n "],[8,[39,17],null,[["@id","@durationMinutes","@onChange"],["category-default-slow-mode",[30,0,["category","defaultSlowModeMinutes"]],[28,[37,18],[[30,0],"onDefaultSlowModeDurationChange"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field auto-close"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","topic-auto-close"],[12],[1,"\\n "],[1,[28,[35,3],["topic.auto_close.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category-topic-auto-close-hours"],[12],[1,"\\n "],[8,[39,17],null,[["@id","@durationHours","@hiddenIntervals","@onChange"],["topic-auto-close",[30,0,["category","auto_close_hours"]],[30,0,["hiddenRelativeIntervals"]],[28,[37,18],[[30,0],"onAutoCloseDurationChange"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","auto_close_based_on_last_post"]]]],null],[1,"\\n "],[1,[28,[35,3],["topic.auto_close.based_on_last_post"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field num-auto-bump-daily"],[12],[1,"\\n "],[10,"label"],[14,"for","category-number-daily-bump"],[12],[1,"\\n "],[1,[28,[35,3],["category.num_auto_bump_daily"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","category_setting","num_auto_bump_daily"]]],[24,"min","0"],[24,1,"category-number-daily-bump"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","category_setting","num_auto_bump_daily"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field auto-bump-cooldown-days"],[12],[1,"\\n "],[10,"label"],[14,"for","category-auto-bump-cooldown-days"],[12],[1,"\\n "],[1,[28,[35,3],["category.auto_bump_cooldown_days"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["category","category_setting","auto_bump_cooldown_days"]]],[24,"min","0"],[24,1,"category-auto-bump-cooldown-days"],[24,4,"number"],[4,[38,5],["input",[28,[37,6],[[28,[37,7],[[28,[37,8],[[30,0,["category","category_setting","auto_bump_cooldown_days"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.appearance"],null]],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-view-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_view"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-view",[30,0,["availableViews"]],[30,0,["category","default_view"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-top-period-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_top_period"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-period",[30,0,["availableTopPeriods"]],[30,0,["category","default_top_period"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field sort-order"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.sort_order"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["availableSorts"]],[30,0,["category","sort_order"]],[28,[37,14],null,[["none"],["category.sort_options.default"]]],[28,[37,7],[[28,[37,8],[[30,0,["category","sort_order"]]],null]],null]]],null],[1,"\\n"],[41,[51,[30,0,["isDefaultSortOrder"]]],[[[1," "],[8,[39,13],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["sortAscendingOptions"]],[30,0,["sortAscendingOption"]],[28,[37,14],null,[["none","placementStrategy"],["category.sort_options.default","absolute"]]],[28,[37,7],[[28,[37,8],[[30,0,["category","sort_ascending"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field default-filter"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.default_list_filter"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,13],null,[["@id","@valueProperty","@content","@value"],["category-default-filter","value",[30,0,["availableListFilters"]],[30,0,["category","default_list_filter"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["isParentCategory"]],[[[1," "],[10,"section"],[14,0,"field show-subcategory-list-field"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","show_subcategory_list"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.show_subcategory_list"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSubcategoryListStyle"]],[[[1," "],[10,"section"],[14,0,"field subcategory-list-style-field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["category.subcategory_list_style"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,13],null,[["@valueProperty","@id","@content","@value","@options"],["value","subcategory-list-style",[30,0,["availableSubcategoryListStyles"]],[30,0,["category","subcategory_list_style"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"field category-read-only-banner"],[12],[1,"\\n "],[10,"label"],[14,"for","read-only-message"],[12],[1,[28,[35,3],["category.read_only_banner"],null]],[13],[1,"\\n "],[8,[39,19],null,[["@valueProperty","@id","@value","@options"],["value","read-only-message",[30,0,["category","read_only_banner"]],[28,[37,14],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,3],["category.settings_sections.email"],null]],[13],[1,"\\n\\n"],[41,[30,0,["emailInEnabled"]],[[[1," "],[10,"section"],[14,0,"field category-email-in"],[12],[1,"\\n "],[10,"label"],[14,"for","category-email-in"],[12],[1,"\\n "],[1,[28,[35,20],["envelope"],null]],[1,"\\n "],[1,[28,[35,3],["category.email_in"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,19],[[24,0,"email-in"]],[["@id","@value"],["category-email-in",[30,0,["category","email_in"]]]],null],[1,"\\n\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field email-in-allow-strangers"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","email_in_allow_strangers"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.email_in_allow_strangers"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field mailinglist-mirror"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["category","mailinglist_mirror"]]]],null],[1,"\\n "],[1,[28,[35,3],["category.mailinglist_mirror"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,22],null,[["@name","@connectorTagName","@outletArgs"],["category-email-in","div",[28,[37,14],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["emailInEnabled"]]],[[[1," "],[10,"section"],[14,0,"field email-in-disabled"],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,3],["category.email_in_disabled"],[["setting_url"],[[28,[37,11],["/admin/site_settings/category/all_results?filter=email_in"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n "],[8,[39,22],null,[["@name","@outletArgs"],["category-custom-settings",[28,[37,14],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],[],false,["section","if","label","i18n","input","on","with-event-value","fn","mut","unless","html-safe","get-url","div","combo-box","hash","h3","group-chooser","relative-time-picker","action","text-field","d-icon","span","plugin-outlet"]]',moduleName:"discourse/components/edit-category-settings.hbs",isStrictMode:!1});var d=n(76417);let p=[];function h(e){p.push(e)}class m extends(0,r.buildCategoryPanel)("settings"){static #e=(()=>dt7948.g(this.prototype,"emailInEnabled",[(0,o.setting)("email_in")]))();#tn=(()=>void dt7948.i(this,"emailInEnabled"))();static #n=(()=>dt7948.g(this.prototype,"showPositionInput",[(0,o.setting)("fixed_category_positions")]))();#ti=(()=>void dt7948.i(this,"showPositionInput"))();static #i=(()=>dt7948.g(this.prototype,"showSubcategoryListStyle",[(0,s.and)("category.show_subcategory_list","isParentCategory")]))();#ts=(()=>void dt7948.i(this,"showSubcategoryListStyle"))();static #l=(()=>dt7948.g(this.prototype,"isDefaultSortOrder",[(0,s.empty)("category.sort_order")]))();#tr=(()=>void dt7948.i(this,"isDefaultSortOrder"))();isParentCategory(e,t){return e||!t}static #u=(()=>dt7948.n(this.prototype,"isParentCategory",[(0,l.default)("category.isParent","category.parent_category_id")]))();availableSubcategoryListStyles(){return[{name:(0,u.i18n)("category.subcategory_list_styles.rows"),value:"rows"},{name:(0,u.i18n)("category.subcategory_list_styles.rows_with_featured_topics"),value:"rows_with_featured_topics"},{name:(0,u.i18n)("category.subcategory_list_styles.boxes"),value:"boxes"},{name:(0,u.i18n)("category.subcategory_list_styles.boxes_with_featured_topics"),value:"boxes_with_featured_topics"}]}static #c=(()=>dt7948.n(this.prototype,"availableSubcategoryListStyles",[l.default]))();availableViews(){return[{name:(0,u.i18n)("filters.latest.title"),value:"latest"},{name:(0,u.i18n)("filters.top.title"),value:"top"}]}static #d=(()=>dt7948.n(this.prototype,"availableViews",[l.default]))();availableTopPeriods(){return["all","yearly","quarterly","monthly","weekly","daily"].map(e=>({name:(0,u.i18n)(`filters.top.${e}.title`),value:e}))}static #p=(()=>dt7948.n(this.prototype,"availableTopPeriods",[l.default]))();availableListFilters(){return["all","none"].map(e=>({name:(0,u.i18n)(`category.list_filters.${e}`),value:e}))}static #h=(()=>dt7948.n(this.prototype,"availableListFilters",[l.default]))();searchPrioritiesOptions(){let e=[];return Object.entries(a.SEARCH_PRIORITIES).forEach(t=>{let[n,i]=t;e.push({name:(0,u.i18n)(`category.search_priority.options.${n}`),value:i})}),e}static #m=(()=>dt7948.n(this.prototype,"searchPrioritiesOptions",[l.default]))();availableSorts(){return["likes","op_likes","views","posts","activity","posters","category","created"].concat(p).map(e=>({name:(0,u.i18n)("category.sort_options."+e),value:e})).sort((e,t)=>e.name.localeCompare(t.name))}static #g=(()=>dt7948.n(this.prototype,"availableSorts",[l.default]))();sortAscendingOption(e){return"false"!==e&&("true"===e||e)}static #E=(()=>dt7948.n(this.prototype,"sortAscendingOption",[(0,l.default)("category.sort_ascending")]))();sortAscendingOptions(){return[{name:(0,u.i18n)("category.sort_ascending"),value:!0},{name:(0,u.i18n)("category.sort_descending"),value:!1}]}static #A=(()=>dt7948.n(this.prototype,"sortAscendingOptions",[l.default]))();hiddenRelativeIntervals(){return["mins"]}static #D=(()=>dt7948.n(this.prototype,"hiddenRelativeIntervals",[l.default]))();onAutoCloseDurationChange(e){this.set("category.auto_close_hours",e?e/60:null)}static #I=(()=>dt7948.n(this.prototype,"onAutoCloseDurationChange",[i.action]))();onDefaultSlowModeDurationChange(e){this.set("category.default_slow_mode_seconds",e?60*e:null)}static #G=(()=>dt7948.n(this.prototype,"onDefaultSlowModeDurationChange",[i.action]))();onCategoryModeratingGroupsChange(e){this.set("category.moderating_group_ids",e)}static #Y=(()=>dt7948.n(this.prototype,"onCategoryModeratingGroupsChange",[i.action]))()}(0,d.setComponentTemplate)(c,m)},74024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(76417),s=n(70001),r=n(5938),o=n(42433),a=n(54836),l=n(93223),u=n(28147),c=n(56839),d=n(87389),p=n(62797),h=n(51969);let m=(0,n(82739).createTemplateFactory)({id:"0WZ1aO2c",block:'[[[11,3],[24,6,""],[16,0,[52,[30,0,["active"]],"active"]],[4,[38,2],["click",[30,0,["select"]]],null],[12],[1,[30,0,["title"]]],[13]],[],false,["a","if","on"]]',moduleName:"discourse/components/edit-category-tab.hbs",isStrictMode:!1}),g=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"newCategory",[(0,r.empty)("params.slug")]))();#to=(()=>void dt7948.i(this,"newCategory"))();static #n=(()=>dt7948.g(this.prototype,"active",[(0,u.propertyEqual)("selectedTab","tab")]))();#ta=(()=>void dt7948.i(this,"active"))();tabClassName(e){return"edit-category-"+e}static #i=(()=>dt7948.n(this.prototype,"tabClassName",[(0,p.default)("tab")]))();title(e){return(0,h.i18n)(`category.${(0,a.underscore)(e)}`)}static #l=(()=>dt7948.n(this.prototype,"title",[(0,p.default)("tab")]))();didInsertElement(){super.didInsertElement(...arguments),(0,o.scheduleOnce)("afterRender",this,this._addToCollection)}willDestroyElement(){super.willDestroyElement(...arguments),this.setProperties({selectedTab:"general",params:{}})}_addToCollection(){this.panels.addObject(this.tabClassName)}fullSlug(e,t){let n=t&&e?`${t}/${e}`:e;return(0,d.default)(`/c/${n}/edit/${this.tab}`)}static #u=(()=>dt7948.n(this.prototype,"fullSlug",[(0,p.default)("params.slug","params.parentSlug")]))();select(e){e?.preventDefault(),this.set("selectedTab",this.tab),this.newCategory||c.default.routeTo(this.fullSlug)}static #c=(()=>dt7948.n(this.prototype,"select",[s.action]))()},[(0,l.classNameBindings)("active","tabClassName"),(0,l.tagName)("li")]),f=(0,i.setComponentTemplate)(m,g)},35882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(5938),r=n(87220);let o=(0,n(82739).createTemplateFactory)({id:"NzX7aOnt",block:'[[[10,"section"],[14,0,"field minimum-required-tags"],[12],[1,"\\n "],[10,"label"],[14,"for","category-minimum-tags"],[12],[1,"\\n "],[1,[28,[35,2],["category.minimum_required_tags"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,3],null,[["@value","@id","@type","@min"],[[30,0,["category","minimum_required_tags"]],"category-minimum-tags","number","0"]],null],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"field allowed-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.tags_allowed_tags"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@id","@tags","@everyTag","@excludeSynonyms","@unlimitedTagCount","@onChange","@options"],["category-allowed-tags",[30,0,["category","allowed_tags"]],true,true,true,[28,[37,5],[[28,[37,6],[[30,0,["category","allowed_tags"]]],null]],null],[28,[37,7],null,[["filterPlaceholder"],["category.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allowed-tag-groups"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["category.tags_allowed_tag_groups"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@id","@tagGroups","@onChange"],["category-allowed-tag-groups",[30,0,["category","allowed_tag_groups"]],[28,[37,5],[[28,[37,6],[[30,0,["category","allowed_tag_groups"]]],null]],null]]],null],[1,"\\n "],[8,[39,9],[[24,0,"manage-tag-groups"]],[["@route"],["tagGroups"]],[["default"],[[[[1,[28,[35,2],["category.manage_tag_groups_link"],null]]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allow-global-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[24,1,"allow_global_tags"],[16,"disabled",[30,0,["disableAllowGlobalTags"]]]],[["@type","@checked"],["checkbox",[30,0,["category","allow_global_tags"]]]],null],[1,"\\n "],[1,[28,[35,2],["category.allow_global_tags_label"],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field tags-tab-description"],[12],[1,"\\n "],[1,[28,[35,2],["category.tags_tab_description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field required-tag-group-description"],[12],[1,"\\n "],[1,[28,[35,2],["category.required_tag_group.description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field with-items"],[12],[1,"\\n "],[10,"section"],[14,0,"field-item required-tag-groups"],[12],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["category","required_tag_groups"]]],null]],null],null,[[[1," "],[10,0],[14,0,"required-tag-group-row"],[12],[1,"\\n "],[8,[39,3],null,[["@value","@type","@min"],[[30,1,["min_count"]],"number","1"]],null],[1,"\\n "],[8,[39,8],null,[["@tagGroups","@onChange","@options"],[[52,[30,1,["name"]],[28,[37,15],[[30,1,["name"]]],null],[28,[37,15],null,null]],[28,[37,16],[[30,0],"onTagGroupChange",[30,1]],null],[28,[37,7],null,[["maximum","filterPlaceholder"],[1,"category.required_tag_group.placeholder"]]]]],null],[1,"\\n "],[8,[39,17],[[24,0,"delete-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.delete",[28,[37,5],[[30,0,["deleteRequiredTagGroup"]],[30,1]],null],"trash-can"]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,17],[[24,0,"add-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.add",[30,0,["addRequiredTagGroup"]],"plus"]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["rtg"],false,["section","label","i18n","text-field","tag-chooser","fn","mut","hash","tag-group-chooser","link-to","input","each","-track-array","div","if","array","action","d-button"]]',moduleName:"discourse/components/edit-category-tags.hbs",isStrictMode:!1});var a=n(76417);class l extends(0,r.buildCategoryPanel)("tags"){static #e=(()=>dt7948.g(this.prototype,"allowedTagsEmpty",[(0,s.empty)("category.allowed_tags")]))();#tl=(()=>void dt7948.i(this,"allowedTagsEmpty"))();static #n=(()=>dt7948.g(this.prototype,"allowedTagGroupsEmpty",[(0,s.empty)("category.allowed_tag_groups")]))();#tu=(()=>void dt7948.i(this,"allowedTagGroupsEmpty"))();static #i=(()=>dt7948.g(this.prototype,"disableAllowGlobalTags",[(0,s.and)("allowedTagsEmpty","allowedTagGroupsEmpty")]))();#tc=(()=>void dt7948.i(this,"disableAllowGlobalTags"))();onTagGroupChange(e,t){(0,i.set)(e,"name",t[0])}static #l=(()=>dt7948.n(this.prototype,"onTagGroupChange",[i.action]))();addRequiredTagGroup(){this.category.required_tag_groups.pushObject({min_count:1})}static #u=(()=>dt7948.n(this.prototype,"addRequiredTagGroup",[i.action]))();deleteRequiredTagGroup(e){this.category.required_tag_groups.removeObject(e)}static #c=(()=>dt7948.n(this.prototype,"deleteRequiredTagGroup",[i.action]))()}(0,a.setComponentTemplate)(o,l)},70389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(28564),s=n(70001),r=n(42433),o=n(9630),a=n(87220),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"z7ZEoVer",block:'[[[41,[30,0,["siteSettings","experimental_form_templates"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,2],[[24,0,"toggle-template-type"],[4,[38,3],["click",[30,0,["toggleTemplateType"]]],null]],[["@state","@label"],[[30,0,["showFormTemplate"]],[30,0,["templateTypeToggleLabel"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFormTemplate"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,4],[[24,0,"select-category-template"]],[["@value","@onChange"],[[30,0,["category","form_template_ids"]],[28,[37,5],[[28,[37,6],[[30,0,["category","form_template_ids"]]],null]],null]]],null],[1,"\\n\\n "],[10,2],[14,0,"select-category-template__info desc"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[39,8],null,[["@route"],["adminCustomizeFormTemplates"]],[["default"],[[[[1,"\\n "],[1,[28,[35,9],["admin.form_templates.edit_category.select_template_help"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[39,10],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[],false,["if","div","d-toggle-switch","on","form-template-chooser","fn","mut","p","link-to","i18n","d-editor"]]',moduleName:"discourse/components/edit-category-topic-template.hbs",isStrictMode:!1});var c=n(76417);class d extends(0,a.buildCategoryPanel)("topic-template"){static #e=(()=>dt7948.g(this.prototype,"_showFormTemplateOverride",[i.tracked]))();#td=(()=>void dt7948.i(this,"_showFormTemplateOverride"))();get showFormTemplate(){return this._showFormTemplateOverride??!!this.category.get("form_template_ids.length")}set showFormTemplate(e){this._showFormTemplateOverride=e}templateTypeToggleLabel(e){return e?"admin.form_templates.edit_category.toggle_form_template":"admin.form_templates.edit_category.toggle_freeform"}static #n=(()=>dt7948.n(this.prototype,"templateTypeToggleLabel",[(0,l.default)("showFormTemplate")]))();toggleTemplateType(){this.toggleProperty("showFormTemplate"),this.showFormTemplate||this.set("category.form_template_ids",[])}static #i=(()=>dt7948.n(this.prototype,"toggleTemplateType",[s.action]))();_activeTabChanged(){this.activeTab&&!this.showFormTemplate&&(0,r.schedule)("afterRender",()=>this.element.querySelector(".d-editor-input").focus())}static #l=(()=>dt7948.n(this.prototype,"_activeTabChanged",[(0,o.observes)("activeTab","showFormTemplate")]))()}(0,c.setComponentTemplate)(u,d)},1874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(97355),l=n(90945),u=n.n(l),c=n(37436),d=n(56907),p=n(32644),h=n(51969),m=n(83183);let g=(0,n(82739).createTemplateFactory)({id:"aXwMZMYs",block:'[[[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,2],[[24,0,"timer-type"]],[["@value","@onChange"],[[30,0,["statusType"]],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,3]],null]],null],null,[[[1," "],[8,[30,2,["Option"]],null,[["@value"],[[30,4,["id"]]]],[["default"],[[[[1,[30,4,["name"]]]],[]]]]],[1,"\\n"]],[4]],null],[1," "]],[2]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["publishToCategory"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.publish_to"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,8],null,[["@value","@onChange","@options"],[[30,5,["category_id"]],[28,[37,9],[[28,[37,10],[[30,5,["category_id"]]],null]],null],[28,[37,11],null,[["excludeCategoryId"],[[30,0,["excludeCategoryId"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFutureDateInput"]],[[[1," "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.when"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,12],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@_itsatrap"],[[30,0,["timeOptions"]],[30,5,["execute_at"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["useDuration"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["topic.topic_status_update.duration"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,13],null,[["@onChange","@durationMinutes"],[[30,0,["changeDuration"]],[30,5,["duration_minutes"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["willCloseImmediately"]],[[[1," "],[10,0],[14,0,"warning"],[12],[1,"\\n "],[1,[28,[35,14],["triangle-exclamation"],null]],[1,"\\n "],[1,[30,0,["willCloseI18n"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTopicTimerInfo"]],[[[1," "],[10,0],[14,0,"alert alert-info modal-topic-timer-info"],[12],[1,"\\n "],[8,[39,15],null,[["@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId"],[[30,0,["statusType"]],[30,0,["executeAt"]],[30,5,["based_on_last_post"]],[30,5,["duration_minutes"]],[30,5,["category_id"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@onChangeStatusType","select","@timerTypes","timer","@topicTimer"],false,["form","div","d-select","each","-track-array","if","label","i18n","category-chooser","fn","mut","hash","time-shortcut-picker","relative-time-picker","d-icon","topic-timer-info"]]',moduleName:"discourse/components/edit-topic-timer-form.hbs",isStrictMode:!1});var f=n(76417);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"timerType",[s.tracked]))();#tp=(()=>void dt7948.i(this,"timerType"))();constructor(){super(...arguments),d.default.pause(),this._itsatrap=new(u())}willDestroy(){super.willDestroy(...arguments),this._itsatrap.destroy(),d.default.unpause()}get showTimeOnly(){return this.statusType===c.OPEN_STATUS_TYPE||this.statusType===c.DELETE_STATUS_TYPE||this.statusType===c.BUMP_TYPE}get showFutureDateInput(){return this.showTimeOnly||this.publishToCategory||this.statusType===c.CLOSE_STATUS_TYPE}get useDuration(){return this.autoCloseAfterLastPost||this.autoDeleteReplies}get autoCloseAfterLastPost(){return this.statusType===c.CLOSE_AFTER_LAST_POST_STATUS_TYPE}get publishToCategory(){return this.statusType===c.PUBLISH_TO_CATEGORY_STATUS_TYPE}get autoDeleteReplies(){return this.statusType===c.DELETE_REPLIES_TYPE}get statusType(){return this.args.topicTimer.status_type}get excludeCategoryId(){if(this.args.topic.visible)return this.args.topic.category_id}get timeOptions(){let e=this.currentUser.user_option.timezone,t=(0,p.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.sixMonths()]}get hiddenTimeShortcutOptions(){return[p.TIME_SHORTCUT_TYPES.NONE,p.TIME_SHORTCUT_TYPES.LATER_TODAY,p.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]}get executeAt(){return this.useDuration?moment().add(parseFloat(this.args.topicTimer.duration_minutes),"minutes").format(m.FORMAT):this.args.topicTimer.updateTime}get willCloseImmediately(){if(this.autoCloseAfterLastPost&&this.args.topicTimer.duration_minutes)return moment(this.args.topic.last_posted_at).add(this.args.topicTimer.duration_minutes,"minutes")dt7948.n(this.prototype,"onTimeSelected",[r.action]))();changeDuration(e){this.args.topicTimer.duration_minutes=e}static #l=(()=>dt7948.n(this.prototype,"changeDuration",[r.action]))()}(0,f.setComponentTemplate)(g,_)},63585:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(70001),s=n(54729),r=n(93223),o=n(51969),a=n(25318),l=n(53349);let u=dt7948.c(class extends a.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();get content(){let e=[];return this.email.primary&&e.push({id:"updateEmail",icon:"pencil",name:(0,o.i18n)("user.email.update_email"),description:""}),!this.email.primary&&this.email.confirmed&&e.push({id:"setPrimaryEmail",icon:"star",name:(0,o.i18n)("user.email.set_primary"),description:""}),this.email.primary||e.push({id:"destroyEmail",icon:"xmark",name:(0,o.i18n)("user.email.destroy"),description:""}),e}static #n=(()=>dt7948.n(this.prototype,"content",[(0,i.computed)("email")]))();onChange(e){switch(e){case"updateEmail":this.router.transitionTo("preferences.email");break;case"setPrimaryEmail":this.setPrimaryEmail(this.email.email);break;case"destroyEmail":this.destroyEmail(this.email.email)}}static #i=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,l.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,r.classNames)("email-dropdown")])},35380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"0ttHkmnN",block:'[[[1,"\\n"],[11,"button"],[24,"data-section","smileys_&_emotion"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"smileys_&_emotion"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":grinning:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","people_&_body"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"people_&_body"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":wave:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","animals_&_nature"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"animals_&_nature"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":evergreen_tree:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","food_&_drink"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"food_&_drink"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":hamburger:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","travel_&_places"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"travel_&_places"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":airplane:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","activities"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"activities"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":soccer:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","objects"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"objects"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":eyeglasses:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","symbols"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"symbols"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":white_check_mark:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","flags"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["onCategorySelection"]],"flags"],null]],null],[12],[1,"\\n "],[1,[28,[35,3],[":checkered_flag:"],null]],[1,"\\n"],[13]],[],false,["button","on","fn","replace-emoji"]]',moduleName:"discourse/components/emoji-group-buttons.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},17421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"6m40oCuu",block:'[[[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","smileys_&_emotion"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.smileys_&_emotion"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":grinning:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiley:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smile:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":grin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":laughing:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sweat_smile:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rofl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":joy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":slightly_smiling_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":upside_down_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":melting_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wink:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blush:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":innocent:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiling_face_with_three_hearts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":star_struck:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kissing_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kissing:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiling_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kissing_closed_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kissing_smiling_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiling_face_with_tear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yum:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stuck_out_tongue:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stuck_out_tongue_winking_eye:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crazy_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stuck_out_tongue_closed_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":money_mouth_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hugs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_hand_over_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_open_eyes_and_hand_over_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_peeking_eye:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shushing_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thinking:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":saluting_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zipper_mouth_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_raised_eyebrow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":neutral_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":expressionless:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dotted_line_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_in_clouds:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smirk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":unamused:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":roll_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":grimacing:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_exhaling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lying_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":relieved:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pensive:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sleepy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":drooling_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sleeping:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mask:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_thermometer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_head_bandage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nauseated_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_vomiting:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sneezing_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hot_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cold_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woozy_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dizzy_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_spiral_eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":exploding_head:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cowboy_hat_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":partying_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":disguised_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sunglasses:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nerd_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_monocle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":confused:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_diagonal_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":worried:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":slightly_frowning_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":frowning_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":open_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hushed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":astonished:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flushed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pleading_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_holding_back_tears:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":frowning_with_open_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":anguished:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fearful:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cold_sweat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":disappointed_relieved:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sob:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scream:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":confounded:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":persevere:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":disappointed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sweat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":weary:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tired_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yawning_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":triumph:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":angry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":face_with_symbols_over_mouth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiling_imp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":imp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":skull:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":skull_and_crossbones:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":poop:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clown_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":japanese_ogre:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":japanese_goblin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ghost:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":alien:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":space_invader:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":robot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smiley_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smile_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":joy_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart_eyes_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smirk_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kissing_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scream_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crying_cat_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pouting_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":see_no_evil:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hear_no_evil:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":speak_no_evil:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kiss:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":love_letter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cupid:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gift_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sparkling_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heartpulse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heartbeat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":revolving_hearts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":two_hearts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart_decoration:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_heart_exclamation:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":broken_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart_on_fire:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mending_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orange_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yellow_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blue_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":purple_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brown_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":100:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":anger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dizzy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sweat_drops:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dash:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hole:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bomb:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":speech_balloon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eye_in_speech_bubble:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":left_speech_bubble:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":right_anger_bubble:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thought_balloon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zzz:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","people_&_body"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.people_&_body"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":wave:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raised_back_of_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raised_hand_with_fingers_splayed:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raised_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vulcan_salute:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rightwards_hand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leftwards_hand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palm_down_hand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palm_up_hand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ok_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pinched_fingers:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pinching_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":v:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crossed_fingers:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hand_with_index_finger_and_thumb_crossed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":love_you_gesture:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":metal:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":call_me_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":point_left:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":point_right:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":point_up_2:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fu:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":point_down:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":point_up:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":index_pointing_at_the_viewer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":+1:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":-1:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":facepunch:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fist_left:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fist_right:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clap:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raised_hands:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heart_hands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":open_hands:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palms_up_together:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":handshake:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pray:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":writing_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nail_care:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":selfie:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":muscle:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mechanical_arm:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mechanical_leg:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leg:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":foot:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ear:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hear_with_hearing_aid:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nose:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":anatomical_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lungs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tooth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eyes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eye:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tongue:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lips:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":biting_lip:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baby:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":child:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boy:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":girl:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":adult:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blonde_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bearded_person:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_beard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_beard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_red_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_curly_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_white_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_bald:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_red_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_red_hair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_curly_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_curly_hair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_white_haired:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_white_hair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_bald:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_bald:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blonde_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_blond_hair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":older_adult:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":older_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":older_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_frowning:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":frowning_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":frowning_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_pouting:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pouting_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pouting_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_gesturing_no:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_good_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_good_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_gesturing_ok:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ok_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ok_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_tipping_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tipping_hand_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tipping_hand_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_raising_hand:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raising_hand_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raising_hand_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":deaf_person:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":deaf_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":deaf_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bowing_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_bowing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bowing_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_facepalming:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_facepalming:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_facepalming:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_shrugging:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_shrugging:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_shrugging:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":health_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_health_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_health_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":student:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_student:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_student:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":teacher:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_teacher:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_teacher:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":judge:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_judge:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_judge:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":farmer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_farmer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_farmer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cook:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_cook:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_cook:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mechanic:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_mechanic:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_mechanic:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":factory_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_factory_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_factory_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":office_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_office_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_office_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scientist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_scientist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_scientist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":technologist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_technologist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_technologist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":singer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_singer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_singer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":artist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_artist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_artist:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pilot:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_pilot:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_pilot:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":astronaut:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_astronaut:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_astronaut:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":firefighter:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_firefighter:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_firefighter:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":policeman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_police_officer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":policewoman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":male_detective:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_detective:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":female_detective:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guardsman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_guard:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guardswoman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ninja:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":construction_worker_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_construction_worker:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":construction_worker_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_with_crown:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":prince:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":princess:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_with_turban:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_wearing_turban:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_with_turban:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_with_gua_pi_mao:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_with_headscarf:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_in_tuxedo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_in_tuxedo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_in_tuxedo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bride_with_veil:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_with_veil:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_with_veil:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pregnant_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pregnant_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pregnant_person:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":breast_feeding:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_feeding_baby:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_feeding_baby:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_feeding_baby:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":angel:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":santa:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mrs_claus:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mx_claus:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":superhero:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_superhero:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_superhero:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":supervillain:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_supervillain:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_supervillain:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mage:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_mage:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_mage:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fairy:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_fairy:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_fairy:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vampire:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_vampire:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_vampire:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":merperson:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":merman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mermaid:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":elf:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_elf:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_elf:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":genie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_genie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_genie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zombie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_zombie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_zombie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":troll:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_getting_massage:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":massage_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":massage_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_getting_haircut:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":haircut_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":haircut_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":walking_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_walking:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":walking_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_standing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_standing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_standing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_kneeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_kneeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_kneeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_with_white_cane:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_with_probing_cane:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_with_probing_cane:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_in_motorized_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_in_motorized_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_in_motorized_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_in_manual_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_in_manual_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_in_manual_wheelchair:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":running_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_running:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":running_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dancer:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_dancing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":business_suit_levitating:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dancing_women:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dancing_men:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":women_with_bunny_ears:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_in_steamy_room:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_in_steamy_room:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_in_steamy_room:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_climbing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_climbing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_climbing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_fencing:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":horse_racing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":skier:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snowboarder:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":golfing_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_golfing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":golfing_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":surfing_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_surfing:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":surfing_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rowing_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_rowing_boat:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rowing_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":swimming_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_swimming:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":swimming_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":basketball_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_bouncing_ball:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":basketball_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":weight_lifting_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_lifting_weights:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":weight_lifting_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":biking_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_biking:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":biking_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain_biking_man:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_mountain_biking:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain_biking_woman:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_cartwheeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_cartwheeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_cartwheeling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":people_wrestling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":men_wrestling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":women_wrestling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_playing_water_polo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_playing_water_polo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_playing_water_polo:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_playing_handball:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_playing_handball:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_playing_handball:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_juggling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_juggling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_juggling:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":person_in_lotus_position:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":man_in_lotus_position:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":woman_in_lotus_position:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bath:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sleeping_bed:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":people_holding_hands:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":two_women_holding_hands:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couple:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":two_men_holding_hands:",[28,[37,4],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couplekiss_man_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kiss_woman_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couplekiss_man_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couplekiss_woman_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couple_with_heart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couple_with_heart_woman_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couple_with_heart_man_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couple_with_heart_woman_woman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_woman_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_woman_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_woman_girl_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_woman_boy_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_woman_girl_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_man_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_man_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_man_girl_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_man_boy_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_man_girl_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_woman_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_woman_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_woman_girl_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_woman_boy_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_woman_girl_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_boy_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_girl_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_man_girl_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_boy_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_girl_boy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":family_woman_girl_girl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":speaking_head:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bust_in_silhouette:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":busts_in_silhouette:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":people_hugging:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":footprints:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","animals_&_nature"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.animals_&_nature"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":monkey_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":monkey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gorilla:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orangutan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dog2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guide_dog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":service_dog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":poodle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wolf:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fox_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":raccoon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cat2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_cat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lion:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tiger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tiger2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leopard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":horse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":racehorse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":unicorn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zebra:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":deer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bison:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ox:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":water_buffalo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cow2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pig:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pig2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pig_nose:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ram:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sheep:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":goat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dromedary_camel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":camel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":llama:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":giraffe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":elephant:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mammoth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rhinoceros:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hippopotamus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mouse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mouse2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hamster:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rabbit:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rabbit2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chipmunk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beaver:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hedgehog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":polar_bear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":koala:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":panda_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sloth:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":otter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":skunk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kangaroo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":badger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":paw_prints:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":turkey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chicken:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rooster:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hatching_chick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baby_chick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hatched_chick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bird:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":penguin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dove:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eagle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":duck:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":swan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":owl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dodo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":feather:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flamingo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":peacock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":parrot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":frog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crocodile:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":turtle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lizard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dragon_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dragon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sauropod:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":t_rex:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":whale:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":whale2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dolphin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":seal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fish:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tropical_fish:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blowfish:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":octopus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shell:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coral:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":butterfly:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bug:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ant:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":honeybee:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beetle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lady_beetle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cricket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cockroach:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spider:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spider_web:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scorpion:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mosquito:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fly:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":worm:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":microbe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bouquet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cherry_blossom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_flower:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lotus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rosette:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rose:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wilted_flower:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hibiscus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sunflower:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blossom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tulip:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":seedling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":potted_plant:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":evergreen_tree:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":deciduous_tree:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palm_tree:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cactus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ear_of_rice:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":herb:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shamrock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":four_leaf_clover:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":maple_leaf:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fallen_leaf:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leaves:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":empty_nest:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nest_with_eggs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","food_&_drink"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.food_&_drink"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":grapes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":melon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":watermelon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tangerine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lemon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":banana:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pineapple:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mango:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":apple:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_apple:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":peach:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cherries:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":strawberry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blueberries:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kiwi_fruit:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tomato:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":olive:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coconut:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":avocado:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eggplant:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":potato:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":carrot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":corn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hot_pepper:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bell_pepper:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cucumber:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leafy_green:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":broccoli:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":garlic:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":onion:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mushroom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":peanuts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beans:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chestnut:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bread:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":croissant:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baguette_bread:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flatbread:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pretzel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bagel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pancakes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":waffle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cheese:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":meat_on_bone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":poultry_leg:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cut_of_meat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bacon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hamburger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fries:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pizza:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hotdog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sandwich:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":taco:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":burrito:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tamale:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stuffed_flatbread:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":falafel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":egg:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fried_egg:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shallow_pan_of_food:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stew:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fondue:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bowl_with_spoon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_salad:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":popcorn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":butter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":salt:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":canned_food:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bento:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rice_cracker:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rice_ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rice:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":curry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ramen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spaghetti:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sweet_potato:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oden:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sushi:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fried_shrimp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fish_cake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":moon_cake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dango:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dumpling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fortune_cookie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":takeout_box:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crab:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lobster:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shrimp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":squid:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oyster:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":icecream:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shaved_ice:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ice_cream:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":doughnut:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cookie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":birthday:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cupcake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chocolate_bar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":candy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lollipop:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":custard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":honey_pot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baby_bottle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":milk_glass:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coffee:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":teapot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":champagne:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wine_glass:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cocktail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tropical_drink:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beers:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clinking_glasses:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tumbler_glass:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pouring_liquid:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cup_with_straw:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bubble_tea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beverage_box:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":maté:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ice_cube:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chopsticks:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":plate_with_cutlery:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fork_and_knife:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spoon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hocho:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":amphora:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","travel_&_places"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.travel_&_places"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":earth_africa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":earth_americas:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":earth_asia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":globe_with_meridians:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":world_map:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":japan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":compass:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain_snow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":volcano:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mount_fuji:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":camping:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beach_umbrella:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":desert:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":desert_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":national_park:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stadium:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":classical_building:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":building_construction:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wood:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hut:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":houses:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":derelict_house:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":house:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":house_with_garden:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":office:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":post_office:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":european_post_office:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hospital:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bank:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hotel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":love_hotel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":convenience_store:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":school:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":department_store:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":factory:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":japanese_castle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":european_castle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wedding:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tokyo_tower:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":statue_of_liberty:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":church:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mosque:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hindu_temple:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":synagogue:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shinto_shrine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kaaba:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fountain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tent:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":foggy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":night_with_stars:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cityscape:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sunrise_over_mountains:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sunrise:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":city_sunset:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":city_sunrise:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bridge_at_night:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hotsprings:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":carousel_horse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":playground_slide:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ferris_wheel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":roller_coaster:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":barber:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":circus_tent:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":steam_locomotive:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":railway_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bullettrain_side:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bullettrain_front:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":train2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":metro:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":light_rail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":station:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tram:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":monorail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain_railway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":train:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oncoming_bus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trolleybus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":minibus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ambulance:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fire_engine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":police_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oncoming_police_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":taxi:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oncoming_taxi:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":red_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oncoming_automobile:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blue_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pickup_truck:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":truck:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":articulated_lorry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tractor:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":racing_car:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":motorcycle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":motor_scooter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":manual_wheelchair:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":motorized_wheelchair:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":auto_rickshaw:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bike:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kick_scooter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":skateboard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":roller_skate:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":busstop:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":motorway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":railway_track:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oil_drum:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fuelpump:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wheel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rotating_light:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":traffic_light:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vertical_traffic_light:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stop_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":construction:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":anchor:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ring_buoy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sailboat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":canoe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":speedboat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":passenger_ship:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ferry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":motor_boat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ship:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":airplane:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":small_airplane:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flight_departure:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flight_arrival:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":parachute:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":seat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":helicopter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":suspension_railway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mountain_cableway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":aerial_tramway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":artificial_satellite:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rocket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flying_saucer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bellhop_bell:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":luggage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hourglass:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hourglass_flowing_sand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":watch:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":alarm_clock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stopwatch:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":timer_clock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mantelpiece_clock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock12:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock1230:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock1:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock130:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock230:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock3:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock330:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock4:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock430:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock5:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock530:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock6:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock630:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock7:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock730:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock8:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock830:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock9:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock930:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock10:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock1030:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock11:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clock1130:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":new_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":waxing_crescent_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":first_quarter_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":waxing_gibbous_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":full_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":waning_gibbous_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":last_quarter_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":waning_crescent_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crescent_moon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":new_moon_with_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":first_quarter_moon_with_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":last_quarter_moon_with_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thermometer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sunny:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":full_moon_with_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sun_with_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ringer_planet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":star:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":star2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stars:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":milky_way:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cloud:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":partly_sunny:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cloud_with_lightning_and_rain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sun_behind_small_cloud:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sun_behind_large_cloud:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sun_behind_rain_cloud:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cloud_with_rain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cloud_with_snow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cloud_with_lightning:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tornado:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fog:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wind_face:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cyclone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rainbow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":closed_umbrella:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":open_umbrella:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":umbrella:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":parasol_on_ground:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zap:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snowflake:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snowman_with_snow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":snowman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":comet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fire:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":droplet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ocean:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","activities"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.activities"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":jack_o_lantern:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":christmas_tree:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fireworks:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sparkler:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":firecracker:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sparkles:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":balloon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tada:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":confetti_ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tanabata_tree:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bamboo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dolls:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flags:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wind_chime:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rice_scene:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":red_gift_envelope:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ribbon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gift:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":reminder_ribbon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tickets:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ticket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":medal_military:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trophy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":medal_sports:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":1st_place_medal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":2nd_place_medal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":3rd_place_medal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":soccer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baseball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":softball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":basketball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":volleyball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":football:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rugby_football:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tennis:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flying_disc:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bowling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cricket_bat_and_ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":field_hockey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ice_hockey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lacrosse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ping_pong:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":badminton:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boxing_glove:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":martial_arts_uniform:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":goal_net:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":golf:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ice_skate:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fishing_pole_and_fish:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":diving_mask:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":running_shirt_with_sash:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ski:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sled:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":curling_stone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yo-yo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kite:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":8ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crystal_ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":magic_wand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nazar_amulet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hamsa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":video_game:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":joystick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":slot_machine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":game_die:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jigsaw:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":teddy_bear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":piñata:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mirror_ball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nesting_dolls:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spades:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hearts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":diamonds:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clubs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chess_pawn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_joker:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mahjong:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flower_playing_cards:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":performing_arts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":framed_picture:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":art:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thread:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sewing_needle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yarn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":knot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","objects"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.objects"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":eyeglasses:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dark_sunglasses:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":goggles:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lab_coat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":safety_vest:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":necktie:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tshirt:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jeans:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scarf:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gloves:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":socks:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dress:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kimono:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sari:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":one_piece_swimsuit:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":briefs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shorts:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bikini:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":womans_clothes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":purse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":handbag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pouch:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shopping:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":school_satchel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thong_sandal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mans_shoe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":athletic_shoe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hiking_boot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flat_shoe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":high_heel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sandal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ballet_shoes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boot:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crown:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":womans_hat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tophat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mortar_board:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":billed_cap:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":military_helmet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rescue_worker_helmet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":prayer_beads:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lipstick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ring:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gem:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mute:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":speaker:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sound:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":loud_sound:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":loudspeaker:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mega:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":postal_horn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bell:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_bell:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":musical_score:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":musical_note:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":notes:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":studio_microphone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":level_slider:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":control_knobs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":microphone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":headphones:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":radio:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":saxophone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":accordion:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guitar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":musical_keyboard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trumpet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":violin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":banjo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":drum:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":long_drum:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":iphone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":calling:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":phone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":telephone_receiver:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pager:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fax:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":battery:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":low_battery:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":electric_plug:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":computer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":desktop_computer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":printer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":keyboard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":computer_mouse:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trackball:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":minidisc:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":floppy_disk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cd:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dvd:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":abacus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":movie_camera:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":film_strip:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":film_projector:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clapper:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tv:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":camera:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":camera_flash:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":video_camera:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vhs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mag_right:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":candle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bulb:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":flashlight:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":izakaya_lantern:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":diya_lamp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":notebook_with_decorative_cover:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":closed_book:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":open_book:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_book:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blue_book:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orange_book:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":books:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":notebook:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ledger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":page_with_curl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scroll:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":page_facing_up:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":newspaper:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":newspaper_roll:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bookmark_tabs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bookmark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":label:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":moneybag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dollar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":euro:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pound:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":money_with_wings:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":credit_card:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":receipt:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":email:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":e-mail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":incoming_envelope:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":envelope_with_arrow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":outbox_tray:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":inbox_tray:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":package:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mailbox:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mailbox_closed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mailbox_with_mail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mailbox_with_no_mail:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":postbox:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ballot_box:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pencil2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_nib:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fountain_pen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":paintbrush:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crayon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":memo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":briefcase:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":file_folder:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":open_file_folder:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":card_index_dividers:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":date:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":calendar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spiral_notepad:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":spiral_calendar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":card_index:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chart_with_upwards_trend:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chart_with_downwards_trend:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bar_chart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clipboard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pushpin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":round_pushpin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":paperclip:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":paperclips:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":straight_ruler:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":triangular_ruler:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scissors:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":card_file_box:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":file_cabinet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wastebasket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":unlock:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lock_with_ink_pen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":closed_lock_with_key:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":key:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":old_key:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hammer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":axe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hammer_and_pick:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hammer_and_wrench:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dagger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crossed_swords:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gun:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":boomerang:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bow_and_arrow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shield:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":carpentry_saw:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wrench:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":screwdriver:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nut_and_bolt:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gear:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clamp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":balance_scale:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":probing_cane:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":link:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chains:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hook:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":toolbox:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":magnet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ladder:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":alembic:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":test_tube:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":petri_dish:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dna:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":microscope:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":telescope:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":satellite:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":syringe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":drop_of_blood:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pill:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":adhesive_bandage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crutch:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stethoscope:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":xray:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":door:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":elevator:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mirror:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":window:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bed:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":couch_and_lamp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chair:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":toilet:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":plunger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shower:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bathtub:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mouse_trap:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":razor:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lotion_bottle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":safety_pin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":broom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":basket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":roll_of_toilet_paper:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bucket:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":soap:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bubbles:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":toothbrush:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sponge:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fire_extinguisher:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":shopping_cart:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":smoking:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":coffin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":headstone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":funeral_urn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":moyai:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":placard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":identification_card:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","symbols"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.symbols"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":atm:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":put_litter_in_its_place:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":potable_water:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wheelchair:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mens:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":womens:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":restroom:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baby_symbol:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wc:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":passport_control:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":customs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":baggage_claim:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":left_luggage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":warning:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":children_crossing:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_entry:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_entry_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_bicycles:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_smoking:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":do_not_litter:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":non-potable_water:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_pedestrians:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":no_mobile_phones:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":underage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":radioactive:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":biohazard:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_up:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_upper_right:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_right:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_lower_right:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_down:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_lower_left:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_left:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_upper_left:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_up_down:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":left_right_arrow:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leftwards_arrow_with_hook:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_right_hook:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_heading_up:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_heading_down:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrows_clockwise:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrows_counterclockwise:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":back:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":end:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":on:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":soon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":top:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":place_of_worship:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":atom_symbol:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":om:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":star_of_david:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wheel_of_dharma:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yin_yang:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":latin_cross:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orthodox_cross:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":star_and_crescent:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":peace_symbol:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":menorah:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":six_pointed_star:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":aries:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":taurus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gemini:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cancer:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":leo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":virgo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":libra:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scorpius:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sagittarius:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":capricorn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":aquarius:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pisces:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ophiuchus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":twisted_rightwards_arrows:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":repeat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":repeat_one:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_forward:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fast_forward:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":next_track_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":play_or_pause_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_backward:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rewind:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":previous_track_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_up_small:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_double_up:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_down_small:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":arrow_double_down:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pause_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":stop_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":record_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eject_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cinema:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":low_brightness:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":high_brightness:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":signal_strength:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vibration_mode:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mobile_phone_off:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":female_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":male_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":transgender_symbol:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_multiplication_x:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_plus_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_minus_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_division_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_equals_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":infinity:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bangbang:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":interrobang:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":question:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":grey_question:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":grey_exclamation:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":exclamation:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wavy_dash:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":currency_exchange:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_dollar_sign:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":medical_symbol:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":recycle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fleur_de_lis:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trident:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":name_badge:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":beginner:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":o:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_check_mark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ballot_box_with_check:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heavy_check_mark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":x:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":negative_squared_cross_mark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":curly_loop:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":loop:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":part_alternation_mark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eight_spoked_asterisk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eight_pointed_black_star:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sparkle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":copyright:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":registered:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tm:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hash:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":asterisk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zero:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":one:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":two:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":three:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":four:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":five:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":six:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":seven:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eight:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":keycap_ten:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":capital_abcd:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":abcd:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":1234:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":symbols:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":abc:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":a:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ab:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":b:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cl:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cool:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":free:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":information_source:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":id:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":m:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":new:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ng:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":o2:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ok:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":parking:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sos:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":up:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vs:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":koko:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u6708:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u6709:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u6307:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ideograph_advantage:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u5272:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u7121:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u7981:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":accept:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u7533:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u5408:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u7a7a:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":congratulations:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":secret:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u55b6:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":u6e80:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":red_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orange_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yellow_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":large_blue_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":purple_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brown_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_circle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":red_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":orange_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yellow_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":green_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":blue_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":purple_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brown_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_large_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_large_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_medium_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_medium_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_medium_small_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_medium_small_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_small_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_small_square:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":large_orange_diamond:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":large_blue_diamond:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":small_orange_diamond:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":small_blue_diamond:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":small_red_triangle:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":small_red_triangle_down:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":diamond_shape_with_a_dot_inside:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":radio_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_square_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_square_button:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","flags"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,2],["emoji_picker.flags"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n "],[1,[28,[35,3],[":checkered_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":triangular_flag_on_post:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":crossed_flags:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":black_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":white_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rainbow_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":transgender_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pirate_flag:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ascension_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":andorra:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":united_arab_emirates:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":afghanistan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":antigua_barbuda:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":anguilla:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":albania:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":armenia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":angola:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":antarctica:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":argentina:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":american_samoa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":austria:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":australia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":aruba:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":aland_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":azerbaijan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bosnia_herzegovina:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":barbados:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bangladesh:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":belgium:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":burkina_faso:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bulgaria:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bahrain:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":burundi:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":benin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_barthelemy:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bermuda:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brunei:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bolivia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":caribbean_netherlands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":brazil:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bahamas:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bhutan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":bouvet_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":botswana:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":belarus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":belize:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":canada:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cocos_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":congo_kinshasa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":central_african_republic:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":congo_brazzaville:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":switzerland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cote_divoire:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cook_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chile:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cameroon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cn:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":colombia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":clipperton_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":costa_rica:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cuba:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cape_verde:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":curacao:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":christmas_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cyprus:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":czech_republic:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":de:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":diego_garcia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":djibouti:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":denmark:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dominica:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":dominican_republic:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":algeria:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ceuta_and_melilla:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ecuador:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":estonia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":egypt:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":western_sahara:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eritrea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":es:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ethiopia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":eu:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":finland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fiji:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":falkland_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":micronesia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":faroe_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":fr:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gabon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":uk:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":grenada:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":georgia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":french_guiana:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guernsey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ghana:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gibraltar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":greenland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":gambia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guinea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guadeloupe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":equatorial_guinea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":greece:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":south_georgia_south_sandwich_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guatemala:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guam:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guinea_bissau:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":guyana:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hong_kong:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":heard_and_mc_donald_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":honduras:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":croatia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":haiti:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":hungary:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":canary_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":indonesia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ireland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":israel:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":isle_of_man:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":india:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":british_indian_ocean_territory:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":iraq:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":iran:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":iceland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":it:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jersey:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jamaica:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jordan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":jp:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kenya:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kyrgyzstan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cambodia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kiribati:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":comoros:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_kitts_nevis:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":north_korea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kr:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kuwait:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":cayman_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kazakhstan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":laos:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lebanon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_lucia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":liechtenstein:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sri_lanka:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":liberia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lesotho:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":lithuania:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":luxembourg:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":latvia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":libya:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":morocco:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":monaco:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":moldova:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":montenegro:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_martin:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":madagascar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":marshall_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":macedonia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mali:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":myanmar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mongolia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":macau:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":northern_mariana_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":martinique:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mauritania:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":montserrat:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":malta:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mauritius:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":maldives:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":malawi:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mexico:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":malaysia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mozambique:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":namibia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":new_caledonia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":niger:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":norfolk_island:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nigeria:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nicaragua:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":netherlands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":norway:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nepal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":nauru:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":niue:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":new_zealand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":oman:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":panama:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":peru:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":french_polynesia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":papua_new_guinea:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":philippines:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pakistan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":poland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_pierre_miquelon:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":pitcairn_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":puerto_rico:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palestinian_territories:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":portugal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":palau:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":paraguay:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":qatar:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":reunion:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":romania:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":serbia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ru:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":rwanda:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":saudi_arabia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":solomon_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":seychelles:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sudan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sweden:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":singapore:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_helena:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":slovenia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":svalbard_and_jan_mayen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":slovakia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sierra_leone:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":san_marino:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":senegal:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":somalia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":suriname:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":south_sudan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sao_tome_principe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":el_salvador:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":sint_maarten:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":syria:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":swaziland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tristan_da_cunha:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":turks_caicos_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":chad:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":french_southern_territories:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":togo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":thailand:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tajikistan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tokelau:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":timor_leste:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":turkmenistan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tunisia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tonga:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tr:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":trinidad_tobago:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tuvalu:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":taiwan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":tanzania:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":ukraine:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":uganda:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":us_outlying_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":united_nations:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":us:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":uruguay:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":uzbekistan:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vatican_city:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":st_vincent_grenadines:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":venezuela:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":british_virgin_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":us_virgin_islands:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vietnam:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":vanuatu:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wallis_futuna:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":samoa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":kosovo:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":yemen:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":mayotte:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":south_africa:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zambia:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":zimbabwe:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":england:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":scotland:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[1,[28,[35,3],[":wales:",[28,[37,4],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","replace-emoji","hash"]]',moduleName:"discourse/components/emoji-group-sections.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},63334:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(76417),s=n(70001),r=n(42433),o=n(54729),a=n(54836),l=n(35804),u=n(93223),c=n(9630),d=n(60984),p=n(96768),h=n(62167),m=n(20802),g=n(86211),f=n(62797);let _=(0,n(82739).createTemplateFactory)({id:"ghwIveGs",block:'[[[41,[30,0,["isActive"]],[[[1," "],[11,0],[16,0,[29,["emoji-picker ",[52,[30,0,["isActive"]],"opened"]]]],[4,[38,2],["keydown",[28,[37,3],[[30,0],"keydown"],null]],null],[12],[1,"\\n"],[1," "],[10,0],[14,0,"emoji-picker-category-buttons"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1," "],[11,"button"],[24,"data-section","recent"],[24,0,"btn btn-flat category-button emoji"],[24,4,"button"],[4,[38,2],["click",[28,[37,5],[[30,0,["onCategorySelection"]],"recent"],null]],null],[12],[1,"\\n "],[1,[28,[35,6],[":star:"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,7],null,[["@onCategorySelection","@tagName"],[[30,0,["onCategorySelection"]],""]],null],[1,"\\n\\n"],[42,[28,[37,9],[[30,0,["customEmojis"]]],null],null,[[[1," "],[11,"button"],[16,"data-section",[28,[37,10],["custom-",[30,2]],null]],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,2],["click",[28,[37,5],[[30,0,["onCategorySelection"]],[28,[37,10],["custom-",[30,2]],null]],null]],null],[12],[1,"\\n "],[1,[28,[35,6],[[28,[37,10],[":",[28,[37,11],[[30,1],"0.code"],null],":"],null]],null]],[1,"\\n "],[13],[1,"\\n"]],[1,2]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"emoji-picker-content"],[12],[1,"\\n "],[10,0],[14,0,"emoji-picker-search-container"],[12],[1,"\\n "],[8,[39,12],[[24,0,"filter"],[24,3,"filter"],[16,"placeholder",[28,[37,13],["emoji_picker.filter_placeholder"],null]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[4,[38,2],["input",[28,[37,3],[[30,0],"onFilterChange"],null]],null]],[["@value","@type"],[[30,3],"search"]],null],[1,"\\n\\n "],[1,[28,[35,14],["magnifying-glass"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[11,0],[24,0,"emoji-picker-emoji-area"],[24,"role","button"],[4,[38,2],["click",[30,0,["onEmojiSelection"]]],null],[4,[38,2],["mouseover",[30,0,["onEmojiHover"]]],null],[12],[1,"\\n "],[10,0],[14,0,"results"],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"emojis-container"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1," "],[10,0],[14,0,"section recent"],[14,"data-section","recent"],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,[28,[35,13],["emoji_picker.recent"],null]],[13],[1,"\\n "],[8,[39,16],[[24,0,"trash-recent"]],[["@icon","@action"],["trash-can",[30,0,["onClearRecent"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["recentEmojis"]]],null]],null],null,[[[1," "],[1,[28,[35,6],[[28,[37,10],[":",[30,4],":"],null],[28,[37,18],null,[["lazy","tabIndex","class"],[true,"0","recent-emoji"]]]],null]],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,19],null,null,null],[1,"\\n\\n"],[42,[28,[37,9],[[30,0,["customEmojis"]]],null],null,[[[1," "],[10,0],[14,0,"section"],[15,"data-section",[29,["custom-",[30,6]]]],[12],[1,"\\n "],[10,0],[14,0,"section-header"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,"\\n "],[1,[28,[35,13],[[28,[37,10],["emoji_picker.",[30,6]],null]],[["translatedFallback"],[[30,6]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,5,["length"]],[[[1," "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,5]],null]],null],null,[[[1," "],[10,1],[12],[1,"\\n "],[10,"img"],[15,"title",[30,7,["code"]]],[14,"width","20"],[14,"height","20"],[14,"loading","lazy"],[14,0,"emoji"],[15,"src",[30,7,["src"]]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[7]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[5,6]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"emoji-picker-footer"],[12],[1,"\\n "],[8,[39,21],null,[["@name","@outletArgs"],["emoji-picker-footer",[28,[37,18],null,[["diversityScales","hoveredEmoji","onDiversitySelection"],[[30,0,["diversityScales"]],[30,0,["hoveredEmoji"]],[30,0,["onDiversitySelection"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"emoji-picker-emoji-info"],[12],[1,"\\n"],[41,[30,0,["hoveredEmoji"]],[[[1," "],[1,[28,[35,6],[[28,[37,10],[":",[30,0,["hoveredEmoji"]],":"],null]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"emoji-picker-diversity-picker"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["diversityScales"]]],null]],null],null,[[[1," "],[8,[39,16],[[16,0,[28,[37,22],["diversity-scale",[30,8,["name"]]],null]]],[["@icon","@title","@action"],[[30,8,["icon"]],[30,8,["title"]],[28,[37,5],[[30,0,["onDiversitySelection"]],[30,9]],null]]],null],[1,"\\n"]],[8,9]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[11,0],[24,"role","button"],[24,0,"emoji-picker-modal-overlay"],[4,[38,2],["click",[30,0,["onClose"]]],null],[12],[13],[1,"\\n"]],[]],null]],[]],null]],["emojis","group","@initialFilter","emoji","emojis","group","emoji","diversityScale","index"],false,["if","div","on","action","button","fn","replace-emoji","emoji-group-buttons","each","-each-in","concat","get","input","i18n","d-icon","span","d-button","-track-array","hash","emoji-group-sections","img","plugin-outlet","concat-class"]]',moduleName:"discourse/components/emoji-picker.hbs",isStrictMode:!1}),y=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[o.service]))();#eS=(()=>void dt7948.i(this,"emojiStore"))();customEmojis=(()=>(function(){let e=[];for(let[t,n]of(0,p.extendedEmojiList)())e[n.group]||=[],e[n.group].push({code:t,src:(0,h.emojiUrlFor)(t)});return e})())();recentEmojis=null;hoveredEmoji=null;isActive=!1;usePopper=!0;placement="auto";initialFilter="";elements={searchInput:".emoji-picker-search-container input",picker:".emoji-picker-emoji-area"};didInsertElement(){super.didInsertElement(...arguments),this._sectionObserver=this._setupSectionObserver(),this.appEvents.on("emoji-picker:close",this,"onClose")}selectedDiversity(e){return e}static #n=(()=>dt7948.n(this.prototype,"selectedDiversity",[(0,f.default)("emojiStore.diversity")]))();_setup(){this.isActive?this.onShow():this.onClose()}static #i=(()=>dt7948.n(this.prototype,"_setup",[(0,c.observes)("isActive")]))();willDestroyElement(){super.willDestroyElement(...arguments),this._sectionObserver?.disconnect(),this.appEvents.off("emoji-picker:close",this,"onClose")}onShow(){this.set("recentEmojis",this.emojiStore.favorites),(0,r.schedule)("afterRender",()=>{this._applyFilter(this.initialFilter);let e=document.querySelector(".emoji-picker");if(!e)return;document.addEventListener("click",this.handleOutsideClick);let t=this._getPopperAnchor();!this.site.isMobileDevice&&this.usePopper&&t&&("auto"===this.placement&&window.innerWidth<2*t.clientWidth&&[{name:"preventOverflow"},{name:"offset",options:{offset:[5,5]}}].push({name:"computeStyles",enabled:!0,fn(e){let{state:t}=e;return t.styles.popper={...t.styles.popper,position:"fixed",left:`${(window.innerWidth-t.rects.popper.width)/2}px`,top:"50%",transform:"translateY(-50%)"},t}}),this._popper=(0,d.n4)(t,e,{placement:this.placement})),(0,g.default)(()=>{(0,r.schedule)("afterRender",()=>{(!this.site.isMobileDevice||this.isEditorFocused)&&(e.querySelector("input.filter")?.focus(),this._sectionObserver&&e.querySelectorAll(".emojis-container .section .section-header").forEach(e=>this._sectionObserver.observe(e))),0!==this.selectedDiversity&&this._applyDiversity(this.selectedDiversity)})},50)})}static #l=(()=>dt7948.n(this.prototype,"onShow",[s.action]))();onClose(e){e?.stopPropagation(),document.removeEventListener("click",this.handleOutsideClick),this.onEmojiPickerClose?.(e)}static #u=(()=>dt7948.n(this.prototype,"onClose",[s.action]))();get diversityScales(){return["default","light","medium-light","medium","medium-dark","dark"].map((e,t)=>({name:e,title:`emoji_picker.${(0,a.underscore)(e)}_tone`,icon:t+1===this.selectedDiversity?"check":""}))}static #c=(()=>dt7948.n(this.prototype,"diversityScales",[(0,s.computed)("selectedDiversity")]))();onClearRecent(){this.emojiStore.favorites=[],this.set("recentEmojis",[])}static #d=(()=>dt7948.n(this.prototype,"onClearRecent",[s.action]))();onDiversitySelection(e){let t=e+1;this.emojiStore.diversity=t,this._applyDiversity(t)}static #p=(()=>dt7948.n(this.prototype,"onDiversitySelection",[s.action]))();onEmojiHover(e){let t=e.target;if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1;this._updateEmojiPreview(e.target.title)}static #h=(()=>dt7948.n(this.prototype,"onEmojiHover",[s.action]))();onEmojiSelection(e){let t=e.target;if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1;let n=e.target.title;n=this._codeWithDiversity(n,this.selectedDiversity),this.emojiSelected(n),this._trackEmojiUsage(n,{refresh:!t.parentNode.parentNode.classList.contains("recent")}),this.site.isMobileDevice&&this.onClose(e)}static #m=(()=>dt7948.n(this.prototype,"onEmojiSelection",[s.action]))();onCategorySelection(e,t){t?.preventDefault(),document.querySelector(`.emoji-picker-emoji-area .section[data-section="${e}"]`)?.scrollIntoView()}static #g=(()=>dt7948.n(this.prototype,"onCategorySelection",[s.action]))();keydown(e){let t;let n=document.querySelectorAll(".emoji-picker-emoji-area .emoji");if("ArrowDown"===e.key&&this._focusedOn(this.elements.searchInput))return this._updateEmojiPreview(n[0].title),n[0].focus(),e.preventDefault(),!1;if("Escape"===e.key){this.onClose(e);let t=e.path||e.composedPath?.(),n=t.find(e=>e?.classList?.contains("chat-composer-container"));return t.find(e=>e?.classList?.contains("d-editor"))?document.querySelector(".d-editor-input")?.focus():n?document.querySelector(".chat-composer__input")?.focus():document.querySelector("textarea")?.focus(),!1}if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)){if(!this._focusedOn(this.elements.picker))return;if(Array.from(n).find((n,i)=>(t=i,n.isEqualNode(e.target))),"ArrowRight"===e.key){let e=t+1;e=n.length&&(this._updateEmojiPreview(n[0].title),n[0].focus())}if("ArrowLeft"===e.key){let e=t-1;t>0&&(this._updateEmojiPreview(n[e].title),n[e].focus())}let i=n[t];if("ArrowDown"===e.key){let e=[...n].filter(e=>e.offsetTop>i.offsetTop).find(e=>e.offsetLeft===i.offsetLeft);e&&(this._updateEmojiPreview(e.title),e.focus())}if("ArrowUp"===e.key){let e=[...n].reverse().filter(e=>e.offsetTope.offsetLeft===i.offsetLeft);e?(this._updateEmojiPreview(e.title),e.focus()):(this.set("hoveredEmoji",null),document.querySelector(this.elements.searchInput).focus())}return e.preventDefault(),!1}if("Enter"===e.key){if(!this._focusedOn(".emoji"))return;return this.onEmojiSelection(e),this.onClose(e),e.preventDefault(),!1}}static #E=(()=>dt7948.n(this.prototype,"keydown",[s.action]))();onFilterChange(e){this._applyFilter(e.target.value)}static #A=(()=>dt7948.n(this.prototype,"onFilterChange",[s.action]))();_focusedOn(e){return document.activeElement.closest(e)?document.activeElement:null}_applyFilter(e){let t=document.querySelector(".emoji-picker"),n=document.querySelector(".emoji-picker-emoji-area .results");n.innerHTML="",e?(n.innerHTML=(0,p.emojiSearch)(e.toLowerCase(),{diversity:this.emojiStore.diversity,exclude:this.site.denied_emojis}).map(this._replaceEmoji).join(""),t.classList.add("has-filter"),n.scrollIntoView()):t.classList.remove("has-filter")}_trackEmojiUsage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emojiStore.track(e),t.refresh&&this.set("recentEmojis",[...this.emojiStore.favorites])}_replaceEmoji(e){let t=(0,h.emojiUnescape)(`:${(0,m.escapeExpression)(e)}:`,{lazy:!0,tabIndex:"0"});return(0,l.htmlSafe)(t)}_codeWithDiversity(e,t){return/:t\d/.test(e)?e:t>1&&(0,p.isSkinTonableEmoji)(e)?`${e}:t${t}`:e}_applyDiversity(e){let t=document.querySelector(".emoji-picker-emoji-area");t?.querySelectorAll(".emoji.diversity").forEach(t=>{t.src=h.emojiUrlFor(this._codeWithDiversity(t.title,e))})}_setupSectionObserver(){return new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=e.target.parentNode.dataset.section,n=document.querySelector(".emoji-picker .emoji-picker-category-buttons");n&&(n.querySelectorAll(".category-button").forEach(e=>e.classList.remove("current")),n.querySelector(`.category-button[data-section="${t}"]`)?.classList?.add("current"))}})},{threshold:1})}_getPopperAnchor(){return document.querySelector(".emoji-picker-anchor")??document.querySelector(".d-editor-textarea-wrapper")}_updateEmojiPreview(e){return this.set("hoveredEmoji",this._codeWithDiversity(e,this.selectedDiversity))}handleOutsideClick(e){e.target.closest(".emoji-picker")||this.onClose(e)}static #D=(()=>dt7948.n(this.prototype,"handleOutsideClick",[f.bind]))()},[(0,u.tagName)("")]),b=(0,i.setComponentTemplate)(_,y)},7306:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"GyNqhby7",block:'[[[1,"\\n "],[10,0],[14,0,"empty-state-container"],[12],[1,"\\n "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,[30,1]],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,[30,2]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@title","@body"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/empty-state.js",isStrictMode:!0}),(0,r.default)(void 0,"empty-state:EmptyState"))},31914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(92976),a=n(27147),l=n(6610),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"expanded",[s.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();loading=!1;async toggleItem(){if(!this.loading){if(this.expanded){this.expanded=!1,this.args.item.set("expandedExcerpt",null);return}this.loading=!0;try{let e=await (0,l.ajax)(`/posts/by_number/${this.args.item.topic_id}/${this.args.item.post_number}.json`);this.expanded=!0,this.args.item.set("expandedExcerpt",e.cooked)}finally{this.loading=!1}}}static #n=(()=>dt7948.n(this.prototype,"toggleItem",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"m1wRDXPI",block:'[[[1,"\\n"],[41,[30,1,["truncated"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["btn-transparent",[52,[30,0,["expanded"]],"collapse-item","expand-item"]],null]]],[["@action","@icon","@title"],[[30,0,["toggleItem"]],[52,[30,0,["expanded"]],"chevron-up","chevron-down"],"post.expand_collapse"]],null],[1,"\\n"]],[]],null],[1," "]],["@item"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/expand-post.js",scope:()=>[o.default,a.default],isStrictMode:!0}),this))()}},48075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(87075),s=new Map;function r(e){var t=s.get(e);t&&t.destroy()}function o(e){var t=s.get(e);t&&t.update()}var a=null;"undefined"==typeof window?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=(function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",l),e.removeEventListener("input",r),window.removeEventListener("resize",l),Object.keys(t).forEach(function(n){return e.style[n]=t[n]}),s.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",l),e.addEventListener("input",r),window.addEventListener("resize",l),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:o,update:l}),l()}function a(t){var s,r,o=t.restoreTextAlign,l=void 0===o?null:o,u=t.testForHeightReduction,c=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),(void 0===u||u)&&(s=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null})}}(e),e.style.height=""),r="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&r>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),r=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=r+"px",l&&(e.style.textAlign=l),s&&s(),n!==r&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=r),c!==i.overflow&&!l)){var d=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===d?"end":"start"),a({restoreTextAlign:d,testForHeightReduction:!0})}}function l(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],r),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e});var l=a,u=n(79635),c=n(59481),d=n(76417),p=n(82739),h=n(88606);let m=(0,u.modifier)(e=>(l(e),()=>l.destroy(e))),g=(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"k3lthKwc",block:'[[[1,"\\n "],[11,"textarea"],[16,"autocorrect",[30,1]],[16,0,[30,2]],[16,"maxlength",[30,3]],[16,3,[30,4]],[16,"rows",[30,5]],[16,2,[30,6]],[17,7],[4,[32,0],null,null],[4,[32,1],null,null],[4,[52,[30,8],[50,[32,2],2,["input",[30,8]],null]],null,null],[12],[13],[1,"\\n"]],["@autocorrect","@class","@maxlength","@name","@rows","@value","&attrs","@input"],false,["if","modifier"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/expanding-text-area.js",scope:()=>[c.default,m,i.on],isStrictMode:!0}),(0,h.default)(void 0,"expanding-text-area:ExpandingTextArea"))},27806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(92976),u=n(59874),c=n(6610),d=n(64149),p=n(20802),h=n(59481),m=n(51969),g=n(76417),f=n(82739);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"isSaving",[s.tracked],function(){return!1}))();#th=(()=>void dt7948.i(this,"isSaving"))();static #n=(()=>dt7948.g(this.prototype,"value",[s.tracked],function(){return this.args.newValue||this.args.initialValue}))();#tm=(()=>void dt7948.i(this,"value"))();buttonTitle=(()=>(0,m.i18n)("composer.title",{modifier:(0,p.translateModKey)("Meta+")}))();get disabled(){return this.value===this.args.initialValue}onKeydown(e){"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&!this.disabled&&this.save()}static #i=(()=>dt7948.n(this.prototype,"onKeydown",[a.action]))();updateValue(e){e.preventDefault(),this.value=e.target.value}static #l=(()=>dt7948.n(this.prototype,"updateValue",[a.action]))();updateValueProperty(e){this.value=e}static #u=(()=>dt7948.n(this.prototype,"updateValueProperty",[a.action]))();async save(){this.isSaving=!0;try{let e=await (0,c.ajax)(`/posts/${this.args.post.id}`),t=e.raw.replace(this.args.initialValue,this.value);if(t===e.raw)throw Error("Failed to update the post. Did your fast edit include a special character?");await this.args.post.save({raw:t})}catch(e){(0,d.popupAjaxError)(e)}finally{this.isSaving=!1,this.args.close()}}static #c=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #d=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"LYn4DRiS",block:'[[[1,"\\n"],[1," "],[11,0],[24,0,"fast-edit-container"],[4,[32,0],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n "],[11,"textarea"],[24,1,"fast-edit-input"],[4,[32,0],["input",[30,0,["updateValue"]]],null],[4,[32,1],null,null],[12],[1,[30,0,["value"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"fast-edit-container__footer"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-small btn-primary save-fast-edit"]],[["@action","@icon","@label","@translatedTitle","@isLoading","@disabled"],[[30,0,["save"]],"pencil","composer.save_edit",[30,0,["buttonTitle"]],[30,0,["isSaving"]],[30,0,["disabled"]]]],null],[1,"\\n\\n "],[8,[32,3],null,[["@name","@defaultGlimmer","@outletArgs"],["fast-edit-footer-after",true,[28,[32,4],null,[["initialValue","newValue","updateValue"],[[30,1],[30,2],[30,0,["updateValueProperty"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@initialValue","@newValue"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/fast-edit.js",scope:()=>[o.on,h.default,l.default,u.default,r.hash],isStrictMode:!0}),this))()}},59920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(14682),o=n.n(r);let a=(0,n(82739).createTemplateFactory)({id:"BhaMd7lX",block:'[[[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[35,2],[[30,0,["topic","fancyTitle"]]],null]],[13],[1,"\\n"],[8,[39,3],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[14,0,"last-posted-at"],[12],[1,[28,[35,4],[[30,0,["topic","last_posted_at"]]],null]],[13]],[],false,["raw","a","html-safe","topic-post-badges","format-age"]]',moduleName:"discourse/components/featured-topic.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{click(e){if(e.target.closest(".last-posted-at"))return this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:o()(e.target).offset()}),!1}},[(0,s.attributeBindings)("topic.id:data-topic-id"),(0,s.classNameBindings)(":featured-topic")]),u=(0,i.setComponentTemplate)(a,l)},27807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(5938),r=n(93223),o=n(70243),a=n(62797),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"nzVSALR7",block:'[[[10,0],[15,0,[30,0,["wrapperClassNames"]]],[12],[1,"\\n"],[41,[30,0,["isNotifyUser"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["changePostActionType"]],[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n "],[10,1],[14,0,"description"],[12],[1,[28,[35,8],[[30,0,["flag","description"]]],null]],[13],[1,"\\n"],[41,[30,0,["showMessageInput"]],[[[1," "],[8,[39,9],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,10],["flagging.notify_user_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1," "],[10,0],[15,0,[28,[37,11],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n "],[1,[30,0,["customMessageLength"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["staffFlagsAvailable"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,10],["flagging.notify_staff"],null]],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[15,0,[29,["controls ",[30,0,["flag","name_key"]]]]],[12],[1,"\\n "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["changePostActionType"]],[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n "],[10,"strong"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1," "],[10,0],[14,0,"description"],[12],[1,[28,[35,8],[[30,0,["description"]]],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showMessageInput"]],[[[1," "],[8,[39,9],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,10],["flagging.notify_moderators_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1," "],[10,0],[15,0,[28,[37,11],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n "],[1,[30,0,["customMessageLength"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showConfirmation"]],[[[1," "],[10,"label"],[14,0,"checkbox-label flag-confirmation"],[12],[1,"\\n "],[8,[39,4],[[24,3,"confirmation"]],[["@type","@checked"],["checkbox",[30,0,["isConfirmed"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,10],["flagging.confirmation_illegal"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","h3","label","input","on","fn","span","html-safe","textarea","i18n","concat-class","hr","strong"]]',moduleName:"discourse/components/flag-action-type.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"showMessageInput",[(0,s.and)("flag.require_message","selected")]))();#tg=(()=>void dt7948.i(this,"showMessageInput"))();static #n=(()=>dt7948.g(this.prototype,"showConfirmation",[(0,s.and)("flag.isIllegal","selected")]))();#tf=(()=>void dt7948.i(this,"showConfirmation"))();static #i=(()=>dt7948.g(this.prototype,"showDescription",[(0,s.not)("showMessageInput")]))();#t_=(()=>void dt7948.i(this,"showDescription"))();static #l=(()=>dt7948.g(this.prototype,"isNotifyUser",[(0,s.equal)("flag.name_key","notify_user")]))();#ty=(()=>void dt7948.i(this,"isNotifyUser"))();wrapperClassNames(e){return`flag-action-type ${e}`}static #u=(()=>dt7948.n(this.prototype,"wrapperClassNames",[(0,a.default)("flag.name_key")]))();customPlaceholder(e){return(0,l.i18n)("flagging.custom_placeholder_"+e,{defaultValue:(0,l.i18n)("flagging.custom_placeholder_notify_moderators")})}static #c=(()=>dt7948.n(this.prototype,"customPlaceholder",[(0,a.default)("flag.name_key")]))();formattedName(e,t,n){return["notify_user","notify_moderators"].includes(t)?e.replace(/{{username}}|%{username}/,n):(0,l.i18n)("flagging.formatted_name."+t,{defaultValue:e})}static #d=(()=>dt7948.n(this.prototype,"formattedName",[(0,a.default)("flag.name","flag.name_key","username")]))();selected(e,t){return e===t}static #p=(()=>dt7948.n(this.prototype,"selected",[(0,a.default)("flag","selectedFlag")]))();description(e,t){return this.site.mobileView?t:e}static #h=(()=>dt7948.n(this.prototype,"description",[(0,a.default)("flag.description","flag.short_description")]))();customMessageLengthClasses(e){return edt7948.n(this.prototype,"customMessageLengthClasses",[(0,a.default)("message.length")]))();customMessageLength(e){let t=e||0,n=this.siteSettings.min_personal_message_post_length;return 0===t?(0,l.i18n)("flagging.custom_message.at_least",{count:n}):tdt7948.n(this.prototype,"customMessageLength",[(0,a.default)("message.length")]))()},[(0,r.tagName)("")]),d=(0,i.setComponentTemplate)(u,c)},20915:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(42433),r=n(9630);let o=(0,n(82739).createTemplateFactory)({id:"US7eVXzz",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["flags"]]],null]],null],null,[[[1," "],[18,2,[[30,1]]],[1,"\\n"]],[1]],[[[1," "],[1,[28,[35,3],["flagging.cant"],null]],[1,"\\n"]],[]]]],["f","&default"],false,["each","-track-array","yield","i18n"]]',moduleName:"discourse/components/flag-selection.hbs",isStrictMode:!1});class a extends i.default{_selectRadio(){this.element.querySelector("input[type='radio']").checked=!1;let e=this.nameKey;if(!e)return;let t=this.element.querySelector("#radio_"+e);t&&(t.checked="true")}selectedChanged(){(0,s.next)(this,this._selectRadio)}static #e=(()=>dt7948.n(this.prototype,"selectedChanged",[(0,r.observes)("nameKey")]))()}(0,i.setComponentTemplate)(o,a)},89011:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(27147),r=n(76417),o=n(82739);let a=["success","error","warning","info"];class l extends i.default{get flashClass(){if(this.args.type&&!a.includes(this.args.type))throw`@type must be one of ${a.join(", ")}`;return this.args.type?`alert-${this.args.type}`:null}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ZYOewSyP",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[16,0,[28,[32,0],["alert",[30,0,["flashClass"]]],null]],[17,2],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1," "]],["@flash","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/flash-message.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},23405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(62797),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"Y4OXmcyw",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/flat-button.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{resolvedTitle(e,t){return e?(0,o.i18n)(e):t||void 0}static #e=(()=>dt7948.n(this.prototype,"resolvedTitle",[(0,r.default)("title","translatedTitle")]))();keyDown(e){if("Enter"===e.key)return this.action?.(),!1}click(){return this.action?.(),!1}},[(0,s.attributeBindings)("disabled","resolvedTitle:title"),(0,s.classNames)("btn-flat"),(0,s.tagName)("button")]),u=(0,i.setComponentTemplate)(a,l)},26817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"kKbO7+SV",block:'[[[10,"h3"],[12],[1,"\\n "],[1,[30,0,["message"]]],[1,"\\n "],[18,1,null],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["education"]],[[[1," "],[10,0],[14,0,"education"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["education"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["&default"],false,["h3","yield","if","div","html-safe"]]',moduleName:"discourse/components/footer-message.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.classNames)("footer-message")]),a=(0,i.setComponentTemplate)(r,o)},30723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(27147),l=n(75718),u=n(20802),c=n(62718),d=n(7083),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"scrollDirection",[r.service]))();#tb=(()=>void dt7948.i(this,"scrollDirection"))();static #l=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #u=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #c=(()=>dt7948.g(this.prototype,"historyStore",[r.service]))();#tv=(()=>void dt7948.i(this,"historyStore"))();_modalOn(){(0,u.postRNWebviewMessage)("headerBg","rgb(0, 0, 0)")}_modalOff(){let e=document.querySelector(".d-header-wrap .d-header");e&&(0,u.postRNWebviewMessage)("headerBg",window.getComputedStyle(e).backgroundColor)}setDiscourseHubHeaderBg(e){this.capabilities.isAppWebview&&(e?this._modalOn():this._modalOff())}static #d=(()=>dt7948.n(this.prototype,"setDiscourseHubHeaderBg",[s.action]))();dismiss(){(0,u.postRNWebviewMessage)("dismiss",!0)}static #p=(()=>dt7948.n(this.prototype,"dismiss",[s.action]))();share(){(0,u.postRNWebviewMessage)("shareUrl",window.location.href)}static #h=(()=>dt7948.n(this.prototype,"share",[s.action]))();goBack(e,t){window.history.back(),t.preventDefault()}static #m=(()=>dt7948.n(this.prototype,"goBack",[s.action]))();goForward(e,t){window.history.forward(),t.preventDefault()}static #g=(()=>dt7948.n(this.prototype,"goForward",[s.action]))();get isVisible(){return[c.UNSCROLLED,c.SCROLLED_UP].includes(this.scrollDirection.lastScrollDirection)&&!this.composer.isOpen&&(this.capabilities.isAppWebview||this.canGoBack||this.canGoForward)}get canGoBack(){return this.historyStore.hasPastEntries||!!document.referrer}get canGoForward(){return this.historyStore.hasFutureEntries}static #E=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"TYy7X6/M",block:'[[[1,"\\n "],[1,[28,[30,0,["setDiscourseHubHeaderBg"]],[[30,0,["modal","activeModal"]]],null]],[1,"\\n\\n"],[41,[30,0,["capabilities","isIpadOS"]],[[[1," "],[1,[28,[32,0],["footer-nav-ipad"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isVisible"]],[[[1," "],[1,[28,[32,0],["footer-nav-visible"],null]],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[10,0],[15,0,[28,[32,1],["footer-nav",[52,[30,0,["isVisible"]],"visible"]],null]],[12],[1,"\\n "],[10,0],[14,0,"footer-nav-widget"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@disabled","@title","@forwardEvent"],[[30,0,["goBack"]],"chevron-left",[28,[32,3],[[30,0,["canGoBack"]]],null],"footer_nav.back",true]],null],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@disabled","@title","@forwardEvent"],[[30,0,["goForward"]],"chevron-right",[28,[32,3],[[30,0,["canGoForward"]]],null],"footer_nav.forward",true]],null],[1,"\\n\\n"],[41,[30,0,["capabilities","isAppWebview"]],[[[1," "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@title"],[[30,0,["share"]],"link","footer_nav.share"]],null],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-flat btn-large"]],[["@action","@icon","@title"],[[30,0,["dismiss"]],"chevron-down","footer_nav.dismiss"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/footer-nav.js",scope:()=>[l.default,a.default,o.default,d.default],isStrictMode:!0}),this))()}},96984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"ZLvtHLvj",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","checkbox"],[12],[1,"\\n "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[8,[39,2],[[16,3,[30,1]],[24,0,"form-template-field__checkbox"],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@checked","@type"],[[30,3],"checkbox"]],null],[1,"\\n "],[1,[30,4,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,4],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,4,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,6],[[30,4,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@id","@validations","@value","@attributes"],false,["div","label","input","if","d-icon","span","html-safe"]]',moduleName:"discourse/components/form-template-field/checkbox.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"checkbox"))},53773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"SIKfWK+H",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","dropdown"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1," "],[10,"select"],[15,3,[30,3]],[14,0,"form-template-field__dropdown"],[15,"required",[52,[30,2,["required"]],"required",""]],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1," "],[10,"option"],[14,0,"form-template-field__dropdown-placeholder"],[14,2,""],[14,"disabled",""],[14,"selected",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,9],[[28,[37,9],[[30,4]],null]],null],null,[[[1," "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[37,10],[[30,6],[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n"],[13]],["@attributes","@validations","@id","@choices","choice","@value"],false,["div","if","label","d-icon","span","html-safe","select","option","each","-track-array","eq"]]',moduleName:"discourse/components/form-template-field/dropdown.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"dropdown"))},55446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"2hv0vv8S",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","input"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],[[16,3,[30,3]],[24,0,"form-template-field__input"],[16,"placeholder",[30,1,["placeholder"]]],[16,"required",[52,[30,2,["required"]],"required",""]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]],[16,"disabled",[30,1,["disabled"]]]],[["@value","@type"],[[30,4],[52,[30,2,["type"]],[30,2,["type"]],"text"]]],null],[1,"\\n"],[13]],["@attributes","@validations","@id","@value"],false,["div","if","label","d-icon","span","html-safe","input"]]',moduleName:"discourse/components/form-template-field/input.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"input"))},49420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(70001),r=n(35804),o=n(21237),a=n(76417),l=n(82739);class u extends i.default{isSelected(e){return this.args.value?.includes(e)}static #e=(()=>dt7948.n(this.prototype,"isSelected",[s.action]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2zc7iWEa",block:'[[[1,"\\n "],[10,0],[14,"data-field-type","multi-select"],[14,0,"control-group form-template-field"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[32,0],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1," "],[10,"select"],[15,3,[30,3]],[15,"required",[52,[30,2,["required"]],"required",""]],[14,"multiple","multiple"],[14,0,"form-template-field__multi-select"],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1," "],[10,"option"],[14,0,"form-template-field__multi-select-placeholder"],[14,2,""],[14,"disabled",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[31,2],[[28,[31,2],[[30,4]],null]],null],null,[[[1," "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[30,0,["isSelected"]],[[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@attributes","@validations","@id","@choices","choice"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/multi-select.js",scope:()=>[o.default,r.htmlSafe],isStrictMode:!0}),this))()}},62746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"gSFL/4b7",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","textarea"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[35,3],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],[[16,3,[30,3]],[24,0,"form-template-field__textarea"],[16,"placeholder",[30,1,["placeholder"]]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@value"],[[30,4]]],null],[1,""],[13]],["@attributes","@validations","@id","@value"],false,["div","if","label","d-icon","span","html-safe","textarea"]]',moduleName:"discourse/components/form-template-field/textarea.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"textarea"))},55693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(71597),o=n(54836),a=n(35804),l=n(68322),u=n(67816),c=n(21765),d=n(21237),p=n(62797),h=n(76417),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"uploadValue",[s.tracked]))();#tw=(()=>void dt7948.i(this,"uploadValue"))();static #n=(()=>dt7948.g(this.prototype,"uploadedFiles",[s.tracked],function(){return[]}))();#tk=(()=>void dt7948.i(this,"uploadedFiles"))();static #i=(()=>dt7948.g(this.prototype,"fileUploadElementId",[s.tracked],function(){return`${(0,o.dasherize)(this.args.id)}-uploader`}))();#tx=(()=>void dt7948.i(this,"fileUploadElementId"))();static #l=(()=>dt7948.g(this.prototype,"fileInputSelector",[s.tracked],function(){return`#${this.fileUploadElementId}`}))();#tT=(()=>void dt7948.i(this,"fileInputSelector"))();uppyUpload=(()=>new c.default((0,r.getOwner)(this),{id:this.args.id,type:"composer",uploadDone:this.uploadDone}))();get uploadStatusLabel(){return this.uppyUpload.uploading||this.uppyUpload.processing?"form_templates.upload_field.uploading":"form_templates.upload_field.upload"}get disabled(){return this.uppyUpload.uploading||this.uppyUpload.processing}isUploadedFileAllowed(e){let t=this.args.attributes.file_types,n=e.name.split(".").pop();return!t||t.includes(`.${n}`)||t.includes(e.type)}uploadDone(e){!this.args.attributes.allow_multiple&&this.uploadValue&&(this.uploadedFiles=[],this.uploadValue=""),this.uploadedFiles.pushObject(e);let t=this.buildMarkdown(e);this.uploadValue&&this.uppyUpload.allowMultipleFiles?this.uploadValue=`${this.uploadValue} ${t}`:this.uploadValue=t}static #u=(()=>dt7948.n(this.prototype,"uploadDone",[p.bind]))();buildMarkdown(e){return(0,u.isImage)(e.url)?`![${e.file_name}|${e.width}x${e.height}](${e.short_url})`:(0,u.isAudio)(e.url)?`![${e.file_name}|audio](${e.short_url})`:(0,u.isVideo)(e.url)?`![${e.file_name}|video](${e.short_url})`:`[${e.file_name}|attachment](${e.short_url}) (${e.human_filesize})`}static #c=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"YUs/J29j",block:'[[[1,"\\n "],[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","upload"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1," "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1," "],[1,[28,[32,0],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["description"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"input"],[15,3,[30,3]],[15,2,[30,0,["uploadValue"]]],[14,4,"hidden"],[12],[13],[1,"\\n\\n "],[8,[32,2],null,[["@registerFileInput","@fileInputClass","@fileInputId","@allowMultiple","@showButton","@onFilesPicked","@icon","@label","@fileInputDisabled","@acceptedFormatsOverride","@acceptedFileTypesString"],[[30,0,["uppyUpload","setup"]],"form-template-field__upload",[30,0,["fileUploadElementId"]],[30,1,["allow_multiple"]],true,true,"upload",[30,0,["uploadStatusLabel"]],[30,0,["disabled"]],[30,1,["file_types"]],[30,1,["file_types"]]]],null],[1,"\\n\\n"],[41,[30,0,["uploadedFiles"]],[[[1," "],[10,"ul"],[14,0,"form-template-field__uploaded-files"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["uploadedFiles"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[1,[28,[32,0],["file"],null]],[1,"\\n "],[10,3],[15,6,[30,4,["url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,4,["file_name"]]],[13],[1,"\\n "],[10,1],[12],[1,[30,4,["human_filesize"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@attributes","@validations","@id","file"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/upload.js",scope:()=>[d.default,a.htmlSafe,l.default],isStrictMode:!0}),this))()}},32277:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eJ});var i=n(37138),s=n(28564),r=n(70001),o=n(48605),a={isObject:function(e){return"object"==typeof e&&null!==e},repeat:function(e,t){var n,i="";for(n=0;na&&(t=i-a+(r=" ... ").length),n-i>a&&(n=i+a-(o=" ...").length),{str:r+e.slice(t,n).replace(/\t/g,"→")+o,pos:i-t+r.length}}function d(e,t){return a.repeat(" ",t-e.length)+e}u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=function(e){return this.name+": "+l(this,e)};var p=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],s=[],r=-1;o=n.exec(e.buffer);)s.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&r<0&&(r=i.length-2);r<0&&(r=i.length-1);var o,l,u,p="",h=Math.min(e.line+t.linesAfter,s.length).toString().length,m=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(r-l<0);l++)u=c(e.buffer,i[r-l],s[r-l],e.position-(i[r]-i[r-l]),m),p=a.repeat(" ",t.indent)+d((e.line-l+1).toString(),h)+" | "+u.str+"\n"+p;for(u=c(e.buffer,i[r],s[r],e.position,m),p+=a.repeat(" ",t.indent)+d((e.line+1).toString(),h)+" | "+u.str+"\n"+a.repeat("-",t.indent+h+3+u.pos)+"^\n",l=1;l<=t.linesAfter&&!(r+l>=s.length);l++)u=c(e.buffer,i[r+l],s[r+l],e.position-(i[r]-i[r+l]),m),p+=a.repeat(" ",t.indent)+d((e.line+l+1).toString(),h)+" | "+u.str+"\n";return p.replace(/\n$/,"")},h=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"],g=function(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===h.indexOf(t))throw new u('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)}),n[t]=e}),n}function _(e){return this.extend(e)}_.prototype.extend=function(e){var t=[],n=[];if(e instanceof g)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof g))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof g))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(_.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),T=/^[-+]?[0-9]+e/,S=new g("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&x.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||a.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(e))return"-0.0";return n=e.toString(10),T.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),C=y.extend({implicit:[b,w,k,S]}),E=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),A=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),D=new g("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==E.exec(e)||null!==A.exec(e))},construct:function(e){var t,n,i,s,r,o,a,l,u=0,c=null;if(null===(t=E.exec(e))&&(t=A.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],i=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,i,s));if(r=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),l=new Date(Date.UTC(n,i,s,r,o,a,u)),c&&l.setTime(l.getTime()-c),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),I=new g("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",M=new g("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,s=e.length;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),s=i.length,r=0,o=[];for(t=0;t>16&255),o.push(r>>8&255),o.push(255&r)),r=r<<6|P.indexOf(i.charAt(t));return 0==(n=s%4*6)?(o.push(r>>16&255),o.push(r>>8&255),o.push(255&r)):18===n?(o.push(r>>10&255),o.push(r>>2&255)):12===n&&o.push(r>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",s=0,r=e.length;for(t=0;t>18&63],i+=P[s>>12&63],i+=P[s>>6&63],i+=P[63&s]),s=(s<<8)+e[t];return 0==(n=r%3)?(i+=P[s>>18&63],i+=P[s>>12&63],i+=P[s>>6&63],i+=P[63&s]):2===n?(i+=P[s>>10&63],i+=P[s>>4&63],i+=P[s<<2&63],i+=P[64]):1===n&&(i+=P[s>>2&63],i+=P[s<<4&63],i+=P[64],i+=P[64]),i}}),F=Object.prototype.hasOwnProperty,N=Object.prototype.toString,O=new g("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,s,r,o=[];for(t=0,n=e.length;t1&&(e.result+=a.repeat("\n",t-1))}function em(e,t){var n,i,s=e.tag,r=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,es(e,"tab characters must not be used in indentation")),45===i&&Q(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,ed(e,!0,-1)&&e.lineIndent<=t){o.push(null),i=e.input.charCodeAt(e.position);continue}if(n=e.line,eg(e,t,3,!1,!0),o.push(e.result),ed(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)es(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(_&&(o=e.line,a=e.lineStart,l=e.position),eg(e,t,4,!0,s)&&(_?g=e.result:f=e.result),_||(eu(e,p,h,m,g,f,o,a,l),m=g=f=null),ed(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===r||e.lineIndent>t)&&0!==u)es(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===s?es(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?es(e,"repeat of an indentation width identifier"):(c=t+s-1,u=!0);else break;if(Y(r)){do r=e.input.charCodeAt(++e.position);while(Y(r))if(35===r)do r=e.input.charCodeAt(++e.position);while(!G(r)&&0!==r)}for(;0!==r;){for(ec(e),e.lineIndent=0,r=e.input.charCodeAt(e.position);(!u||e.lineIndentc&&(c=e.lineIndent),G(r)){d++;continue}if(e.lineIndent0){for(s=o,r=0;s>0;s--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(a=e.input.charCodeAt(++e.position)))>=0?r=(r<<4)+o:es(e,"expected hexadecimal character");e.result+=function(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}(r),e.position++}else es(e,"unknown escape sequence");n=i=e.position}else G(a)?(ea(e,n,i,!0),eh(e,ed(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ep(e)?es(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}es(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?_=!0:function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!Q(i)&&!J(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&es(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),z.call(e.anchorMap,n)||es(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ed(e,!0,-1),!0}(e)?(_=!0,(null!==e.tag||null!==e.anchor)&&es(e,"alias node should not have any properties")):function(e,t,n){var i,s,r,o,a,l,u,c,d=e.kind,p=e.result;if(Q(c=e.input.charCodeAt(e.position))||J(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(Q(i=e.input.charCodeAt(e.position+1))||n&&J(i)))return!1;for(e.kind="scalar",e.result="",s=r=e.position,o=!1;0!==c;){if(58===c){if(Q(i=e.input.charCodeAt(e.position+1))||n&&J(i))break}else if(35===c){if(Q(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&ep(e)||n&&J(c))break;else if(G(c)){if(a=e.line,l=e.lineStart,u=e.lineIndent,ed(e,!1,-1),e.lineIndent>=t){o=!0,c=e.input.charCodeAt(e.position);continue}e.position=r,e.line=a,e.lineStart=l,e.lineIndent=u;break}o&&(ea(e,s,r,!1),eh(e,e.line-a),s=r=e.position,o=!1),Y(c)||(r=e.position+1),c=e.input.charCodeAt(++e.position)}return ea(e,s,r,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,h,1===n)&&(_=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(_=l&&em(e,m))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&es(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),u=0,c=e.implicitTypes.length;u"),null!==e.result&&p.kind!==e.kind&&es(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):es(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||_}function ef(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new en(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,es(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===s);){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Q(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&es(e,"directive name must not be less than one character in length");0!==s;){for(;Y(s);)s=e.input.charCodeAt(++e.position);if(35===s){do s=e.input.charCodeAt(++e.position);while(0!==s&&!G(s))break}if(G(s))break;for(t=e.position;0!==s&&!Q(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==s&&ec(e),z.call(eo,n)?eo[n](e,n,i):er(e,'unknown document directive "'+n+'"')}if(ed(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ed(e,!0,-1)):o&&es(e,"directives end mark is expected"),eg(e,e.lineIndent-1,4,!1,!0),ed(e,!0,-1),e.checkLineBreaks&&q.test(e.input.slice(r,e.position))&&er(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ep(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,ed(e,!0,-1));return}e.position=55296&&i<=56319&&t+1=56320&&n<=57343?(i-55296)*1024+n-56320+65536:i}function eI(e){return/^\n* /.test(e)}function eP(e,t){var n=eI(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function eM(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eF(e,t){if(""===e||" "===e[0])return e;for(var n,i,s=/ [^ ]/g,r=0,o=0,a=0,l="";n=s.exec(e);)(a=n.index)-r>t&&(i=o>r?o:a,l+="\n"+e.slice(r,i),r=i+1),o=a;return l+="\n",e.length-r>t&&o>r?l+=e.slice(r,o)+"\n"+e.slice(o+1):l+=e.slice(r),l.slice(1)}function eN(e,t,n,i){var s,r,o,a="",l=e.tag;for(s=0,r=n.length;s tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}function eL(e,t,n,i,s,r,o){e.tag=null,e.dump=n,eO(e,n,!1)||eO(e,n,!0);var l=ey.call(e.dump),c=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var d,p,h,m="[object Object]"===l||"[object Array]"===l;if(m&&(h=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(s=!1),h&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(m&&h&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===l)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var s,r,o,a,l,c,d="",p=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new u("sortKeys must be a boolean or a function");for(s=0,r=h.length;s1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=eT(e,t)),eL(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,d+=c));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,s),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,s,r,o,a,l="",u=e.tag,c=Object.keys(n);for(i=0,s=c.length;i1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eL(e,t,o,!1,!1)&&(a+=e.dump,l+=a));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),h&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===l)i&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?eN(e,t-1,e.dump,s):eN(e,t,e.dump,s),h&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,s,r,o="",a=e.tag;for(i=0,s=n.length;i=65536?l+=2:l++){if(!eC(u=eD(e,l)))return 5;g=g&&eA(u,c,a),c=u}else{for(l=0;l=65536?l+=2:l++){if(10===(u=eD(e,l)))d=!0,h&&(p=p||l-m-1>i&&" "!==e[m+1],m=l);else if(!eC(u))return 5;g=g&&eA(u,c,a),c=u}p=p||h&&l-m-1>i&&" "!==e[m+1]}return d||p?n>9&&eI(e)?5:o?2===r?5:2:p?4:3:!g||o||s(e)?2===r?5:2:1}(t,i||e.flowLevel>-1&&n>=e.flowLevel,e.indent,o,function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+eP(t,e.indent)+eM(ex(function(e,t){for(var n,i,s=/(\n+)([^\n]*)/g,r=function(){var n=e.indexOf("\n");return n=-1!==n?n:e.length,s.lastIndex=n,eF(e.slice(0,n),t)}(),o="\n"===e[0]||" "===e[0];i=s.exec(e);){var a=i[1],l=i[2];n=" "===l[0],r+=a+(o||n||""===l?"":"\n")+eF(l,t),o=n}return r}(t,o),r));case 5:return'"'+function(e){for(var t,n="",i=0,s=0;s=65536?s+=2:s++)!(t=ev[i=eD(e,s)])&&eC(i)?(n+=e[s],i>=65536&&(n+=e[s+1])):n+=t||function(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=0xffffffff)n="U",i=8;else throw new u("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+a.repeat("0",i-t.length)+t}(i);return n}(t)+'"';default:throw new u("impossible error: invalid scalar style")}}()}(e,e.dump,t,r,c);else{if("[object Undefined]"===l||e.skipInvalid)return!1;throw new u("unacceptable kind of an object to dump "+l)}null!==e.tag&&"?"!==e.tag&&(d=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),d="!"===e.tag[0]?"!"+d:"tag:yaml.org,2002:"===d.slice(0,18)?"!!"+d.slice(18):"!<"+d+">",e.dump=d+" "+e.dump)}return!0}function eR(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var eU=e_.load;e_.loadAll,eR("safeLoad","load"),eR("safeLoadAll","loadAll"),eR("safeDump","dump");let ej={load:eU};var eB=n(33338),ez=n(96984),e$=n(53773),eq=n(55446),eH=n(49420),eV=n(62746),eW=n(55693),eK=n(76417),eG=n(82739),eY=n(88606);let eQ=(0,eK.setComponentTemplate)((0,eG.createTemplateFactory)({id:"XB8p01N8",block:'[[[1,"\\n "],[8,[30,1],null,[["@id","@attributes","@choices","@validations","@value"],[[30,2,["id"]],[30,2,["attributes"]],[30,2,["choices"]],[30,2,["validations"]],[30,3]]],null],[1,"\\n"]],["@component","@content","@initialValue"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",isStrictMode:!0}),(0,eY.default)(void 0,"wrapper:FormTemplateField"));class eJ extends i.default{static #e=(()=>dt7948.g(this.prototype,"error",[s.tracked],function(){return null}))();#tS=(()=>void dt7948.i(this,"error"))();static #n=(()=>dt7948.g(this.prototype,"parsedTemplate",[s.tracked],function(){return null}))();#tC=(()=>void dt7948.i(this,"parsedTemplate"))();initialValues=(()=>this.args.initialValues??{})();fieldTypes=(()=>({checkbox:ez.default,input:eq.default,dropdown:e$.default,"multi-select":eH.default,textarea:eV.default,upload:eW.default}))();constructor(){super(...arguments),this.args.content?this._loadTemplate(this.args.content):this.args.id&&this._fetchTemplate(this.args.id)}_loadTemplate(e){try{this.parsedTemplate=ej.load(e),this.args.onSelectFormTemplate?.(this.parsedTemplate)}catch(e){this.error=e}}refreshTemplate(){if(!Array.isArray(this.args?.id)||this.args?.id.length!==0)return this._fetchTemplate(this.args.id)}static #i=(()=>dt7948.n(this.prototype,"refreshTemplate",[r.action]))();async _fetchTemplate(e){let t=await eB.default.findById(e),n=await t.form_template.template;return this._loadTemplate(n)}static #l=(()=>(0,eK.setComponentTemplate)((0,eG.createTemplateFactory)({id:"DSB1XEt6",block:'[[[1,"\\n"],[41,[30,0,["parsedTemplate"]],[[[1," "],[11,0],[24,0,"form-template-form__wrapper"],[4,[32,0],[[30,0,["refreshTemplate"]],[30,1]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["parsedTemplate"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@component","@content","@initialValue"],[[28,[32,2],[[30,0,["fieldTypes"]],[30,2,["type"]]],null],[30,2],[28,[32,2],[[30,0,["initialValues"]],[30,2,["id"]]],null]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["error"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "]],["@id","content"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",scope:()=>[o.default,eQ,r.get],isStrictMode:!0}),this))()}},7665:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(47919).default},66724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(87075),r=n(54729),o=n(79683),a=n(46213),l=n(50575),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get showFullname(){return this.siteSettings.full_name_required||this.siteSettings.enable_names}get showFullnameInstructions(){return this.siteSettings.show_signup_form_full_name_instructions&&!this.args.nameValidation.reason}static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"z35U5rFG",block:'[[[1,"\\n "],[11,0],[17,1],[12],[1,"\\n "],[8,[32,0],[[24,"aria-describedby","fullname-validation fullname-validation-more-info"],[16,"aria-invalid",[30,2,["failed"]]],[16,0,[28,[32,1],[[30,3]],null]],[24,3,"name"],[4,[32,2],["focusin",[30,5]],null]],[["@disabled","@value","@id"],[[30,4],[30,3],"new-account-name"]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n "],[1,[30,6]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showFullnameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"fullname-validation-more-info"],[12],[1,"\\n "],[1,[28,[32,3],["user.name.instructions_required"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[24,1,"fullname-validation"]],[["@validation"],[[30,2]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["&attrs","@nameValidation","@accountName","@nameDisabled","@onFocusIn","@nameTitle"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/fullname-input.js",scope:()=>[a.default,l.default,s.on,u.i18n,o.default],isStrictMode:!0}),this))()}},8992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(70001),r=n(5938),o=n(32644),a=n(62797),l=n(51969),u=n(83183);let c=(0,n(82739).createTemplateFactory)({id:"PGZOu0ho",block:'[[[10,0],[14,0,"future-date-input"],[12],[1,"\\n"],[41,[51,[30,0,["noRelativeOptions"]]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[15,0,[30,0,["labelClasses"]]],[12],[1,"\\n "],[41,[30,0,["displayLabelIcon"]],[[[1,[28,[35,4],[[30,0,["displayLabelIcon"]]],null]]],[]],null],[1,[30,0,["displayLabel"]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],null,[["@value","@content","@clearable","@onChangeInput","@onChange","@options"],[[28,[37,6],[[30,0,["selection"]]],null],[30,0,["shortcuts"]],[30,0,["clearable"]],[30,0,["onChangeInput"]],[28,[37,7],[[28,[37,8],[[30,0,["selection"]]],null]],null],[28,[37,9],null,[["none"],["time_shortcut.select_timeframe"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayDateAndTimePicker"]],[[[1," "],[10,0],[14,0,"control-group future-date-input-date-picker"],[12],[1,"\\n "],[1,[28,[35,4],["calendar-days"],null]],[1,"\\n "],[8,[39,10],null,[["@value","@defaultDate","@onSelect"],[[30,0,["_date"]],[30,0,["_date"]],[28,[37,11],[[30,0],"onChangeDate"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group future-date-input-time-picker"],[12],[1,"\\n "],[1,[28,[35,4],["far-clock"],null]],[1,"\\n "],[8,[39,12],[[24,"placeholder","--:--"],[24,0,"time-input"],[16,"disabled",[30,0,["timeInputDisabled"]]],[4,[38,13],["input",[28,[37,14],[[30,0,["onChangeTime"]]],null]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","unless","label","if","d-icon","future-date-input-selector","readonly","fn","mut","hash","date-picker-future","action","input","on","with-event-value"]]',moduleName:"discourse/components/future-date-input.hbs",isStrictMode:!1});class d extends i.default{selection=null;includeDateTime=!0;static #e=(()=>dt7948.g(this.prototype,"isCustom",[(0,r.equal)("selection","custom")]))();#tE=(()=>void dt7948.i(this,"isCustom"))();static #n=(()=>dt7948.g(this.prototype,"displayDateAndTimePicker",[(0,r.and)("includeDateTime","isCustom")]))();#tA=(()=>void dt7948.i(this,"displayDateAndTimePicker"))();static #i=(()=>dt7948.g(this.prototype,"timeInputDisabled",[(0,r.empty)("_date")]))();#tD=(()=>void dt7948.i(this,"timeInputDisabled"))();displayLabel=null;labelClasses=null;userTimezone=null;onChangeInput=null;_date=null;_time=null;init(){super.init(...arguments),this.userTimezone=this.currentUser.user_option.timezone}didReceiveAttrs(){if(super.didReceiveAttrs(...arguments),this.label&&this.set("displayLabel",(0,l.i18n)(this.label)),this.input){let e=moment(this.input),t=this._findClosestShortcut(e);!this.noRelativeOptions&&t?this.set("selection",t.id):this.setProperties({selection:o.TIME_SHORTCUT_TYPES.CUSTOM,_date:e.format("YYYY-MM-DD"),_time:e.format("HH:mm")})}}shortcuts(e){let t;t=e&&e.length?e:(0,o.extendedDefaultTimeShortcuts)(this.userTimezone);let n=(0,o.timeShortcuts)(this.userTimezone);return this.includeDateTime&&t.push(n.custom()),this.includeNow&&t.push(n.now()),(t=(0,o.hideDynamicTimeShortcuts)(t,this.userTimezone,this.siteSettings)).map(e=>({id:e.id,name:(0,l.i18n)(e.label),time:e.time,timeFormatted:(0,o.formatTime)(e),icon:e.icon}))}static #l=(()=>dt7948.n(this.prototype,"shortcuts",[(0,a.default)("customShortcuts")]))();onChangeDate(e){e||this.set("_time",null),this._dateTimeChanged(e,this._time)}static #u=(()=>dt7948.n(this.prototype,"onChangeDate",[s.action]))();onChangeTime(e){this._date&&this._dateTimeChanged(this._date,e)}static #c=(()=>dt7948.n(this.prototype,"onChangeTime",[s.action]))();_dateTimeChanged(e,t){t=t?` ${t}`:"";let n=moment(`${e}${t}`);n.isValid()?this.onChangeInput?.(n.format(u.FORMAT)):this.onChangeInput?.(null)}_findClosestShortcut(e){return this.shortcuts.find(t=>{if(t.time){let n=t.time.diff(e);return 0<=n&&n<6e4}})}}(0,i.setComponentTemplate)(c,d)},65751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(51969),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"ebu5JPrm",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,2],[12],[1,[28,[32,0],["user.invited.link_generated"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"input"],[15,2,[30,1]],[14,0,"invite-link-input"],[14,"autofocus","autofocus"],[14,4,"text"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,2],[12],[1,[28,[32,0],["user.invited.valid_for"],[["email"],[[30,2]]]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@link","@email"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/generated-invite-link.js",scope:()=>[i.i18n],isStrictMode:!0}),(0,o.default)(void 0,"generated-invite-link:GeneratedInviteLink"))},87338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(650),r=n(60465),o=n(29067);class a extends r.CustomComponentManager{create(e,t,n,i,s,r){let a=super.create(...arguments);return a.component.parentView=s.view,s.view=a.component,a.component._target=(0,o.valueForRef)(r),a}getCapabilities(){return{...super.getCapabilities(),createCaller:!0}}}class l extends i.default{}(0,r.setInternalComponentManager)(new a(e=>new s.default(e)),l)},27138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T,forceDropdownForMenuPanels:()=>S});var i=n(37138),s=n(70001),r=n(68741),o=n(42433),a=n(54729),l=n(21959),u=n(90945),c=n.n(u),d=n(27147),p=n(79361),h=n(13600),m=n(64055),g=n(31009),f=n(45929),_=n(86211),y=n(62797),b=n(40646),w=n(76417),k=n(82739);let x=[];class T extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"header",[a.service]))();#tI=(()=>void dt7948.i(this,"header"))();pxClosed;headerElement;_animate=!1;_headerWrap;_mainOutletWrapper;_swipeMenuOrigin;_applicationElement;_resizeObserver;constructor(){super(...arguments),this.currentUser?.staff&&document.body.classList.add("staff"),(0,o.schedule)("afterRender",()=>this.animateMenu())}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("user-menu:rendered",this,this.animateMenu),this.dropDownHeaderEnabled&&this.appEvents.off("sidebar-hamburger-dropdown:rendered",this,this.animateMenu),this._itsatrap?.destroy(),this._itsatrap=null,window.removeEventListener("scroll",this._recalculateHeaderOffset),this._resizeObserver.disconnect()}get dropDownHeaderEnabled(){return!this.sidebarEnabled||this.site.narrowDesktopView}get slideInMode(){return this.site.mobileView||this.site.narrowDesktopView}get leftMenuClass(){return(0,m.isDocumentRTL)()?"user-menu":"hamburger-panel"}_recalculateHeaderOffset(){if(this.isDestroying||this.isDestroyed)return;let e=Math.max(0,Math.floor(this._headerWrap.getBoundingClientRect().bottom)),t=Math.max(0,Math.floor(this._mainOutletWrapper.getBoundingClientRect().top)-e),n=document.documentElement.style;(parseInt(n.getPropertyValue("--header-offset"),10)||0)!==e&&n.setProperty("--header-offset",`${e}px`);let i=parseInt(n.getPropertyValue("--main-outlet-offset"),10)||0,s=e+t;i!==s&&n.setProperty("--main-outlet-offset",`${s}px`)}static #u=(()=>dt7948.n(this.prototype,"_recalculateHeaderOffset",[(0,y.debounce)(10)]))();setupHeader(){this.appEvents.on("user-menu:rendered",this,this.animateMenu),this.dropDownHeaderEnabled&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,this.animateMenu),this._headerWrap=document.querySelector(".d-header-wrap"),this._mainOutletWrapper=document.querySelector("#main-outlet-wrapper"),this._headerWrap&&((0,o.schedule)("afterRender",()=>{this.headerElement=this._headerWrap.querySelector("header.d-header")}),window.addEventListener("scroll",this._recalculateHeaderOffset,{passive:!0}),this._itsatrap=new(c())(this.headerElement),this._itsatrap.bind(["up","down"],e=>this._handleArrowKeysNav(e)),this._resizeObserver=new ResizeObserver(this._recalculateHeaderOffset),this._resizeObserver.observe(document.querySelector(".discourse-root")))}static #c=(()=>dt7948.n(this.prototype,"setupHeader",[s.action]))();_handleArrowKeysNav(e){let t=document.querySelector(".menu-tabs-container .btn.active");if(t){let n=Number(document.activeElement.dataset.tabNumber||t.dataset.tabNumber),i=document.querySelectorAll(".menu-tabs-container .btn").length-1,s="ArrowDown"===e.key,r=s?n+1:n-1;s&&r>i&&(r=0),!s&&r<0&&(r=i),e.preventDefault(),document.querySelector(`.menu-tabs-container .btn[data-tab-number='${r}']`).focus()}}animateMenu(){let e=document.querySelectorAll(".menu-panel");if(0===e.length){this._animate=this.slideInMode;return}let t=this.slideInMode?"slide-in":"drop-down";e.forEach(e=>{(function(e){if(!x)return!1;for(let t of x)if(e.classList.contains(t))return!0;return!1})(e)&&(t="drop-down",this._animate=!1);let n=document.querySelector(".header-cloak");if(e.classList.remove("drop-down"),e.classList.remove("slide-in"),e.classList.add(t),this._animate){let t=null,i=340;this._swipeMenuOrigin="right",this.slideInMode&&e.parentElement.classList.contains(this.leftMenuClass)&&(this._swipeMenuOrigin="left",i=-340),t=e.animate([{transform:`translate3d(${i}px, 0, 0)`}],{fill:"forwards"}).finished,(0,l.YZ)(t),n.animate([{opacity:0}],{fill:"forwards"}),n.style.display="block",t.then(()=>{(0,f.isTesting)()?this._animateOpening(e):(0,_.default)(()=>this._animateOpening(e))})}this._animate=!1})}static #d=(()=>dt7948.n(this.prototype,"animateMenu",[s.action]))();_animateOpening(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.querySelector(".header-cloak"),i=(0,h.getMaxAnimationTimeMs)();t&&this.pxClosed>0&&(i=(0,h.getMaxAnimationTimeMs)(this.pxClosed/Math.abs(t.velocityX)));let s={duration:i>0?i:0,fill:"forwards",easing:"ease-out"};e.animate([{transform:"translate3d(0, 0, 0)"}],s),n?.animate?.([{opacity:1}],s),this.pxClosed=null}static #p=(()=>dt7948.n(this.prototype,"_animateOpening",[y.bind]))();_animateClosing(e,t,n){this._animate=!0;let i=document.querySelector(".header-cloak"),s=(0,h.getMaxAnimationTimeMs)();if(e&&this.pxClosed>0){let t=340-this.pxClosed;s=(0,h.getMaxAnimationTimeMs)(t/Math.abs(e.velocityX))}let r={duration:s>0?s:0,fill:"forwards"},o=-340;"right"===n&&(o=340),t.animate([{transform:`translate3d(${o}px, 0, 0)`}],r),i&&(i.animate([{opacity:0}],r),i.style.display="none",(this.header.hamburgerVisible||this.header.userVisible)&&(this.header.hamburgerVisible=!1,this.header.userVisible=!1)),this.pxClosed=null}static #h=(()=>dt7948.n(this.prototype,"_animateClosing",[y.bind]))();onSwipeStart(e){let t=e.center;document.elementsFromPoint(t.x,t.y).some(e=>e.classList.contains("panel-body")||e.classList.contains("header-cloak"))&&("left"===e.direction||"right"===e.direction)?(0,p.default)(!0,document.querySelector(".panel-body")):event.preventDefault()}static #m=(()=>dt7948.n(this.prototype,"onSwipeStart",[y.bind]))();onSwipeEnd(e){let t=document.querySelectorAll(".menu-panel");(0,p.default)(!1,document.querySelector(".panel-body")),t.forEach(t=>{(0,h.shouldCloseMenu)(e,this._swipeMenuOrigin)?(this._animateClosing(e,t,this._swipeMenuOrigin),(0,p.default)(!1)):this._animateOpening(t,e)})}static #g=(()=>dt7948.n(this.prototype,"onSwipeEnd",[y.bind]))();onSwipeCancel(){let e=document.querySelectorAll(".menu-panel");(0,p.default)(!1,document.querySelector(".panel-body")),e.forEach(e=>{this._animateOpening(e)})}static #E=(()=>dt7948.n(this.prototype,"onSwipeCancel",[y.bind]))();onSwipe(e){let t=document.querySelector(".menu-panel"),n=document.querySelector(".header-cloak");this.pxClosed=Math.max(0,-e.deltaX);let i=-this.pxClosed;"right"===this._swipeMenuOrigin&&(this.pxClosed=Math.max(0,e.deltaX),i=this.pxClosed),t.animate([{transform:`translate3d(${i}px, 0, 0)`}],{fill:"forwards"}),n?.animate?.([{opacity:(340-this.pxClosed)/340}],{fill:"forwards"})}static #A=(()=>dt7948.n(this.prototype,"onSwipe",[y.bind]))();static #D=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"CPSAZtYM",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],[[52,[51,[30,0,["slideInMode"]]],"drop-down-mode"],"d-header-wrap"],null]],[4,[32,1],[[30,0,["setupHeader"]]],null],[4,[32,2],null,[["onDidStartSwipe","onDidEndSwipe","onDidCancelSwipe","onDidSwipe","lockBody"],[[30,0,["onSwipeStart"]],[30,0,["onSwipeEnd"]],[30,0,["onSwipeCancel"]],[30,0,["onSwipe"]],false]]],[12],[1,"\\n "],[8,[32,3],null,[["@canSignUp","@showSidebar","@sidebarEnabled","@toggleSidebar","@showCreateAccount","@showLogin","@animateMenu","@topicInfo","@topicInfoVisible"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,0,["animateMenu"]],[30,0,["header","topicInfo"]],[30,0,["header","topicInfoVisible"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@canSignUp","@showSidebar","@sidebarEnabled","@toggleSidebar","@showCreateAccount","@showLogin"],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/glimmer-site-header.js",scope:()=>[d.default,r.default,g.default,b.default],isStrictMode:!0}),this))()}function S(e){return"string"==typeof e&&(e=[e]),x.push(...e)}},95709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGlobalNotice:()=>m,default:()=>y});var i=n(76417),s=n(70001),r=n(54729),o=n(35804),a=n(93223),l=n(84266),u=n(31570),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"m6AOwdKd",block:'[[[10,0],[14,0,"global-notice"],[12],[1,"\\n"],[41,[30,0,["visible"]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["notices"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[15,1,[29,["global-notice-",[30,1,["id"]]]]],[15,0,[29,["alert alert-",[30,1,["options","level"]]," ",[30,1,["id"]]]]],[12],[1,"\\n"],[41,[30,1,["options","html"]],[[[1," "],[1,[28,[35,4],[[30,1,["options","html"]]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,[28,[35,4],[[30,1,["text"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["options","dismissable"]],[[[1," "],[8,[39,6],[[24,0,"btn-transparent close"]],[["@icon","@action"],["xmark",[28,[37,7],[[30,0,["dismissNotice"]],[30,1]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],[]],null],[13]],["notice"],false,["div","if","each","-track-array","html-safe","span","d-button","fn"]]',moduleName:"discourse/components/global-notice.hbs",isStrictMode:!1}),h=new u.DeferredTrackedSet;function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};h.add(f.create({text:e,id:t,options:n}))}let g="dismissed-global-notice-v2";class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"logsNoticeService",[(0,r.service)("logsNotice")]))();#tP=(()=>void dt7948.i(this,"logsNoticeService"))();text=null;id=null;options=null;init(){super.init(...arguments),this.options=this.set("options",Object.assign({dismissable:!1,html:null,level:"info",persistentDismiss:!0,onDismiss:null,visibility:null,dismissDuration:null},this.options||{}))}}let _=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[r.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #n=(()=>dt7948.g(this.prototype,"logsNoticeService",[(0,r.service)("logsNotice")]))();#tP=(()=>void dt7948.i(this,"logsNoticeService"))();static #i=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();logNotice=null;constructor(){super(...arguments),this.logsNoticeService.addObserver("hidden",this._handleLogsNoticeUpdate),this.logsNoticeService.addObserver("text",this._handleLogsNoticeUpdate)}willDestroyElement(){super.willDestroyElement(...arguments),this.logsNoticeService.removeObserver("text",this._handleLogsNoticeUpdate),this.logsNoticeService.removeObserver("hidden",this._handleLogsNoticeUpdate)}get visible(){return!this.router.currentRouteName.startsWith("wizard.")}get notices(){let e=[];return"1"===(0,l.default)("dosp")&&((0,l.removeCookie)("dosp",{path:"/"}),e.push(f.create({text:this.siteSettings.login_required?(0,d.i18n)("forced_anonymous_login_required"):(0,d.i18n)("forced_anonymous"),id:"forced-anonymous"}))),this.session.get("safe_mode")&&e.push(f.create({text:(0,d.i18n)("safe_mode.enabled"),id:"safe-mode"})),this.site.get("isStaffWritesOnly")?e.push(f.create({text:(0,d.i18n)("staff_writes_only_mode.enabled"),id:"alert-staff-writes-only"})):this.site.get("isReadOnly")&&e.push(f.create({text:(0,d.i18n)("read_only_mode.enabled"),id:"alert-read-only"})),this.router.currentRoute?.queryParams?.preview_theme_id&&e.push(f.create({text:(0,d.i18n)("theme_preview_notice"),id:"theme-preview"})),"yes"===this.siteSettings.disable_emails?e.push(f.create({text:(0,d.i18n)("emails_are_disabled"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})):"non-staff"===this.siteSettings.disable_emails&&e.push(f.create({text:(0,d.i18n)("emails_are_disabled_non_staff"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})),this.siteSettings.global_notice?.length>0&&e.push(f.create({text:this.siteSettings.global_notice,id:"alert-global-notice"})),this.get("logNotice")&&e.push(this.get("logNotice")),e.concat(Array.from(h)).filter(e=>{if(e.options.visibility)return e.options.visibility(e);let t=`${g}-${e.id}`,n=this.keyValueStore.get(t);if(!n||!e.options.persistentDismiss)return!0;if(!e.options.dismissDuration)return!1;{let t=moment(n).add(e.options.dismissDuration);return moment().isAfter(t)}})}dismissNotice(e){e.options.onDismiss?.(e),e.options.persistentDismiss&&this.keyValueStore.set({key:`${g}-${e.id}`,value:moment().toISOString(!0)});let t=document.getElementById(`global-notice-${e.id}`);t&&(t.style.display="none")}static #l=(()=>dt7948.n(this.prototype,"dismissNotice",[s.action]))();_handleLogsNoticeUpdate(){let e=f.create({text:(0,o.htmlSafe)(this.logsNoticeService.message),id:"alert-logs-notice",options:{dismissable:!0,persistentDismiss:!1,visibility:()=>!this.logsNoticeService.hidden,onDismiss:()=>this.logsNoticeService.set("text","")}});this.set("logNotice",e)}static #u=(()=>dt7948.n(this.prototype,"_handleLogsNoticeUpdate",[c.bind]))()},[(0,a.tagName)("")]),y=(0,i.setComponentTemplate)(p,_)},86643:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"TiRkyhg9",block:'[[[10,"svg"],[14,0,"fa d-icon d-icon-custom-google-oauth2 svg-icon"],[14,"viewBox","0 0 48 48"],[12],[10,"defs"],[12],[10,"path"],[14,1,"google-icon-a"],[14,"d","M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"],[12],[13],[13],[10,"clipPath"],[14,1,"google-icon-b"],[12],[10,"use"],[14,6,"#google-icon-a"],[14,"overflow","visible"],[12],[13],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#FBBC05"],[14,"d","M0 37V11l17 13z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#EA4335"],[14,"d","M0 11l17 13 7-6.1L48 14V0H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#34A853"],[14,"d","M0 37l30-23 7.9 1L48 0v48H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#4285F4"],[14,"d","M48 48L17 24l-4-3 35-10z"],[12],[13],[13]],[],false,["svg","defs","path","clipPath","use"]]',moduleName:"discourse/components/google-icon.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"google-icon"))},11197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(5938),r=n(93223),o=n(87389),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"N1J+U3zK",block:'[[[10,"form"],[14,"action","//google.com/search"],[14,1,"google-search"],[14,0,"inline-form"],[12],[1,"\\n "],[10,"input"],[14,3,"q"],[15,"aria-label",[28,[37,2],["search.search_google"],null]],[15,2,[30,0,["searchTerm"]]],[14,4,"text"],[12],[13],[1,"\\n "],[10,"input"],[14,3,"as_sitesearch"],[15,2,[30,0,["siteUrl"]]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,"button"],[14,0,"btn btn-primary"],[14,4,"submit"],[12],[1,[28,[35,2],["search.search_google_button"],null]],[13],[1,"\\n"],[13]],[],false,["form","input","i18n","button"]]',moduleName:"discourse/components/google-search.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"hidden",[(0,s.alias)("siteSettings.login_required")]))();#eh=(()=>void dt7948.i(this,"hidden"))();siteUrl(){return`${location.protocol}//${location.host}${(0,o.default)("/")}`}static #n=(()=>dt7948.n(this.prototype,"siteUrl",[a.default]))()},[(0,r.classNameBindings)("hidden:hidden"),(0,r.classNames)("google-search-form")]),c=(0,i.setComponentTemplate)(l,u)},359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39882),s=n(69836),r=n(51969),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"dWNaiuNL",block:'[[[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,0],null,[["@route","@query"],[[28,[32,1],["group.activity.",[30,1]],null],[28,[32,2],null,[["category_id"],[[30,2]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,1],["groups.",[30,1]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],["@filter","@categoryId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-activity-filter.js",scope:()=>[s.LinkTo,i.concat,i.hash,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,"group-activity-filter:GroupActivityFilter"))},59914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(70001),s=n(5938),r=n(54729),o=n(93223),a=n(9630),l=n(82048),u=n(28147),c=n(3737),d=n(56839),p=n(62797);let h=(0,n(82739).createTemplateFactory)({id:"Uto7jXk8",block:'[[[41,[30,0,["visible"]],[[[1," "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"card-huge-avatar"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,"\\n "],[8,[39,4],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["group","name"]],[30,0,["group","flair_url"]],[30,0,["group","flair_bg_color"]],[30,0,["group","flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[10,0],[15,0,[29,["names__primary ",[30,0,["group","name"]]]]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"group-page-link"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["group","full_name"]],[[[1," "],[10,0],[14,0,"names__secondary full-name"],[12],[1,"\\n "],[1,[30,0,["group","full_name"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"names__secondary username"],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"ul"],[14,0,"usercard-controls group-details-button"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[39,8],null,[["@model","@showLogin"],[[30,0,["group"]],[28,[37,9],["showLogin"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["group","messageable"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,10],[[24,0,"btn-primary group-message-button inline"]],[["@action","@icon","@label"],[[28,[37,11],[[30,0],"messageGroup"],null],"envelope","groups.message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","bio_excerpt"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"bio"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["group","bio_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["group","members"]],[[[1," "],[10,0],[14,0,"card-row third-row"],[12],[1,"\\n "],[10,0],[14,0,"members metadata"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["highlightedMembers"]]],null]],null],null,[[[1," "],[11,3],[16,6,[30,1,["path"]]],[24,0,"card-tiny-avatar"],[4,[38,3],["click",[30,0,["close"]]],null],[12],[1,[28,[35,15],[[30,1],"tiny"],null]],[13],[1,"\\n"]],[1]],null],[41,[30,0,["showMoreMembers"]],[[[1," "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"more-members-link"],[4,[38,3],["click",[30,0,["handleShowGroup"]]],null],[12],[1,"\\n "],[10,1],[14,0,"more-members-count"],[12],[1,"+"],[1,[30,0,["moreMembersCount"]]],[1,"\\n "],[1,[28,[35,16],["more"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],["user"],false,["if","div","a","on","avatar-flair","span","ul","li","group-membership-button","route-action","d-button","action","html-safe","each","-track-array","bound-avatar","i18n"]]',moduleName:"discourse/components/group-card-contents.hbs",isStrictMode:!1});var m=n(76417);let g=dt7948.c(class extends l.default{static #e=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"allowBackgrounds",[(0,u.setting)("allow_profile_backgrounds")]))();#tF=(()=>void dt7948.i(this,"allowBackgrounds"))();static #i=(()=>dt7948.g(this.prototype,"showBadges",[(0,u.setting)("enable_badges")]))();#tN=(()=>void dt7948.i(this,"showBadges"))();static #l=(()=>dt7948.g(this.prototype,"postStream",[(0,s.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #u=(()=>dt7948.g(this.prototype,"showMoreMembers",[(0,s.gt)("moreMembersCount",0)]))();#tO=(()=>void dt7948.i(this,"showMoreMembers"))();elementId="group-card";mentionSelector="a.mention-group";group=null;highlightedMembers(e){return e.slice(0,10)}static #c=(()=>dt7948.n(this.prototype,"highlightedMembers",[(0,p.default)("group.members.[]")]))();moreMembersCount(e){return Math.max(e-10,0)}static #d=(()=>dt7948.n(this.prototype,"moreMembersCount",[(0,p.default)("group.user_count","group.members.[]")]))();groupClass(e){return e?`group-card-${e}`:""}static #p=(()=>dt7948.n(this.prototype,"groupClass",[(0,p.default)("group.name")]))();groupPath(e){return(0,d.groupPath)(e.name)}static #h=(()=>dt7948.n(this.prototype,"groupPath",[(0,p.default)("group")]))();_inserted(){this.appEvents.on("dom:clean",this,this._close)}static #m=(()=>dt7948.n(this.prototype,"_inserted",[(0,a.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this._close)}static #g=(()=>dt7948.n(this.prototype,"_destroyed",[(0,a.on)("didDestroyElement")]))();async _showCallback(e){this.setProperties({visible:!0,loading:!0});try{let t=await this.store.find("group",e);if(this.setProperties({group:t}),t.flair_url||t.flair_bg_color||t.set("flair_url","users"),t.can_see_members&&t.members.length<10)return t.reloadMembers({limit:10},!0)}catch{this._close()}finally{this.set("loading",null)}}_close(){this.set("group",null),super._close(...arguments)}close(e){e?.preventDefault(),this._close()}static #E=(()=>dt7948.n(this.prototype,"close",[i.action]))();handleShowGroup(e){(0,c.wantsNewWindow)(e)||(e.preventDefault(),this.showGroup(this.group),this._close())}static #A=(()=>dt7948.n(this.prototype,"handleShowGroup",[i.action]))();cancelFilter(){this.postStream.cancelFilter(),this.postStream.refresh(),this._close()}static #D=(()=>dt7948.n(this.prototype,"cancelFilter",[i.action]))();messageGroup(){this.composer.openNewMessage({recipients:this.get("group.name"),hasGroups:!0})}static #I=(()=>dt7948.n(this.prototype,"messageGroup",[i.action]))()},[(0,o.classNameBindings)("visible:show","showBadges","hasCardBadgeImage","isFixed:fixed","groupClass"),(0,o.classNames)("no-bg","group-card")]),f=(0,m.setComponentTemplate)(h,g)},19926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(76417),s=n(70001),r=n(93223),o=n(9630),a=n(14682),l=n.n(a),u=n(6610),c=n(84262),d=n(87389),p=n(20762),h=n(62797),m=n(51969);let g=(0,n(82739).createTemplateFactory)({id:"+PWkGt7R",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_url"],[12],[1,[28,[35,2],["groups.flair_url"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"radios"],[12],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-icon"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@id","@value","@selection"],["avatar-flair-icon","avatar-flair-icon","icon",[30,0,["model","flair_type"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.flair_type.icon"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-image"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@id","@value","@selection"],["avatar-flair-image","avatar-flair-image","image",[30,0,["model","flair_type"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.flair_type.image"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1," "],[8,[39,5],null,[["@name","@value","@options","@onChange"],["icon",[30,0,["model","flair_icon"]],[28,[37,6],null,[["maximum"],[1]]],[28,[37,7],[[28,[37,8],[[30,0,["model","flair_icon"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["flairPreviewImage"]],[[[1," "],[8,[39,9],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["flairImageUrl"]],[28,[37,10],[[30,0],"setFlairImage"],null],[28,[37,10],[[30,0],"removeFlairImage"],null],"group_flair","group-flair-uploader"]],null],[1,"\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,2],["groups.flair_upload_description"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_bg_color"],[12],[1,[28,[35,2],["groups.flair_bg_color"],null]],[13],[1,"\\n\\n "],[8,[39,11],[[24,0,"group-flair-bg-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_bg_color",[30,0,["model","flair_bg_color"]],"groups.flair_bg_color_placeholder"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","flair_color"],[12],[1,[28,[35,2],["groups.flair_color"],null]],[13],[1,"\\n\\n "],[8,[39,11],[[24,0,"group-flair-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_color",[30,0,["model","flair_color"]],"groups.flair_color_placeholder"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["flairPreviewLabel"]]],[13],[1,"\\n\\n "],[10,0],[14,0,"avatar-flair-preview"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[10,"img"],[14,"width","45"],[14,"height","45"],[15,"src",[30,0,["demoAvatarUrl"]]],[14,0,"avatar actor"],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[37,13],[[30,0,["model","flair_icon"]],[30,0,["flairImageUrl"]],[30,0,["model","flairBackgroundHexColor"]]],null],[[[1," "],[8,[39,14],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[52,[30,0,["flairPreviewIcon"]],[30,0,["model","flair_icon"]],[52,[30,0,["flairPreviewImage"]],[30,0,["flairImageUrl"]],""]],[30,0,["model","flairBackgroundHexColor"]],[30,0,["model","flairHexColor"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],[],false,["div","label","i18n","radio-button","if","icon-picker","hash","fn","mut","uppy-image-uploader","action","text-field","img","or","avatar-flair"]]',moduleName:"discourse/components/group-flair-inputs.hbs",isStrictMode:!1}),f=dt7948.c(class extends i.default{demoAvatarUrl(){return(0,d.default)("/images/avatar.png")}static #e=(()=>dt7948.n(this.prototype,"demoAvatarUrl",[h.default]))();flairPreviewIcon(e){return e&&"icon"===e}static #n=(()=>dt7948.n(this.prototype,"flairPreviewIcon",[(0,h.default)("model.flair_type")]))();flairPreviewIconUrl(e){return e?(0,p.convertIconClass)(e):""}static #i=(()=>dt7948.n(this.prototype,"flairPreviewIconUrl",[(0,h.default)("model.flair_icon")]))();_loadSVGIcon(e){e&&(0,c.default)(this,this._loadIcon,1e3)}static #l=(()=>dt7948.n(this.prototype,"_loadSVGIcon",[(0,o.observes)("model.flair_icon"),(0,o.on)("didInsertElement")]))();_loadIcon(){if(!this.model.flair_icon)return;let e=(0,p.convertIconClass)(this.model.flair_icon),t="#svg-sprites",n="ajax-icon-holder",i=`${t} .${n}`;e&&(l()(`${t} symbol#${e}`).length||(0,u.ajax)(`/svg-sprite/search/${e}`).then(function(e){0===l()(i).length&&l()(t).append(`
`),l()(i).html(`${e}`)}))}flairPreviewImage(e){return e&&"image"===e}static #u=(()=>dt7948.n(this.prototype,"flairPreviewImage",[(0,h.default)("model.flair_type")]))();flairImageUrl(e){return e&&e.includes("/")?e:null}static #c=(()=>dt7948.n(this.prototype,"flairImageUrl",[(0,h.default)("model.flair_url")]))();flairPreviewLabel(e){return(0,m.i18n)(`groups.flair_preview_${e?"image":"icon"}`)}static #d=(()=>dt7948.n(this.prototype,"flairPreviewLabel",[(0,h.default)("flairPreviewImage")]))();setFlairImage(e){this.model.setProperties({flair_url:(0,d.default)(e.url),flair_upload_id:e.id})}static #p=(()=>dt7948.n(this.prototype,"setFlairImage",[s.action]))();removeFlairImage(){this.model.setProperties({flair_url:null,flair_upload_id:null})}static #h=(()=>dt7948.n(this.prototype,"removeFlairImage",[s.action]))()},[(0,r.classNames)("group-flair-inputs")]),_=(0,i.setComponentTemplate)(g,f)},3723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(97355),o=n(93223),a=n(9630),l=n(6610),u=n(64149),c=n(10742),d=n(62797);let p=(0,n(82739).createTemplateFactory)({id:"/+qxK1a3",block:'[[[10,0],[14,0,"group-imap-email-settings"],[12],[1,"\\n "],[10,"form"],[14,0,"groups-form form-horizontal groups-form-imap"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","imap_server"],[12],[1,[28,[35,3],["groups.manage.email.credentials.imap_server"],null]],[13],[1,"\\n "],[8,[39,4],[[24,3,"imap_server"],[24,"tabindex","8"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_server"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_ssl_imap"],[14,0,"groups-form__enable-ssl"],[12],[1,"\\n "],[8,[39,4],[[24,1,"enable_ssl_imap"],[24,"tabindex","11"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","imap_ssl"]]]],null],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.credentials.imap_ssl"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","imap_port"],[12],[1,[28,[35,3],["groups.manage.email.credentials.imap_port"],null]],[13],[1,"\\n "],[8,[39,4],[[24,3,"imap_port"],[24,"tabindex","9"],[4,[38,5],["change",[28,[37,6],[[30,0],"resetSettingsValid",[30,0,["form","imap_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_port"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"control-group group-imap-mailboxes"],[12],[1,"\\n"],[41,[30,0,["mailboxes"]],[[[1," "],[10,"label"],[14,"for","imap_mailbox_name"],[12],[1,[28,[35,3],["groups.manage.email.mailboxes.synchronized"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@name","@id","@value","@valueProperty","@content","@tabindex","@onChange","@options"],["imap_mailbox_name","imap_mailbox",[30,0,["group","imap_mailbox_name"]],"value",[30,0,["mailboxes"]],"10",[28,[37,9],[[28,[37,10],[[30,0,["group","imap_mailbox_name"]]],null]],null],[28,[37,11],null,[["none"],["groups.manage.email.mailboxes.disabled"]]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"group-imap-prefill-options"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.prefill.title"],null]],[1,"\\n "],[11,3],[24,1,"prefill_imap_gmail"],[24,6,""],[4,[38,5],["click",[28,[37,9],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,3],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,0,["mailboxSelected"]]],[[[1," "],[10,0],[14,0,"alert alert-error imap-no-mailbox-selected"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.imap_mailbox_not_selected"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n "],[8,[39,14],[[24,"tabindex","12"],[24,0,"btn-primary test-imap-settings"]],[["@disabled","@action","@icon","@label","@title"],[[28,[37,15],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],[30,0,["testImapSettings"]],"gear","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n "],[8,[39,16],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["imapSettingsValid"]],[[[1," "],[10,1],[14,0,"imap-settings-ok"],[12],[1,"\\n "],[1,[28,[35,18],["circle-check"],null]],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.imap_settings_valid"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_updated_at"]],[[[1," "],[10,0],[14,0,"group-email-last-updated-details for-imap"],[12],[1,"\\n "],[10,"small"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.last_updated"],null]],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,21],[[30,0,["group","imap_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n "],[1,[28,[35,3],["groups.manage.email.last_updated_by"],null]],[1,"\\n "],[8,[39,22],null,[["@route","@model"],["user",[30,0,["group","imap_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","imap_updated_by","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","form","label","i18n","input","on","action","if","combo-box","fn","mut","hash","a","unless","d-button","or","conditional-loading-spinner","span","d-icon","small","strong","format-date","link-to"]]',moduleName:"discourse/components/group-imap-email-settings.hbs",isStrictMode:!1}),h=dt7948.c(class extends i.default{form=null;missingSettings(e,t,n,i){return[e,t,n,i].some(e=>(0,r.isEmpty)(e))}static #e=(()=>dt7948.n(this.prototype,"missingSettings",[(0,d.default)("group.email_username","group.email_password","form.imap_server","form.imap_port")]))();mailboxes(e){return e?e.map(e=>({name:e,value:e})):[]}static #n=(()=>dt7948.n(this.prototype,"mailboxes",[(0,d.default)("group.imap_mailboxes")]))();mailboxSelected(e,t){return 0===t||!(0,r.isEmpty)(e)}static #i=(()=>dt7948.n(this.prototype,"mailboxSelected",[(0,d.default)("group.imap_mailbox_name","mailboxes.length")]))();resetSettingsValid(){this.set("imapSettingsValid",!1)}static #l=(()=>dt7948.n(this.prototype,"resetSettingsValid",[s.action]))();_fillForm(){this.set("form",s.default.create({imap_server:this.group.imap_server,imap_port:(this.group.imap_port||"").toString(),imap_ssl:this.group.imap_ssl}))}static #u=(()=>dt7948.n(this.prototype,"_fillForm",[(0,a.on)("init")]))();prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,c.default)(e,"imap"))}static #c=(()=>dt7948.n(this.prototype,"prefillSettings",[s.action]))();testImapSettings(){let e={host:this.form.imap_server,port:this.form.imap_port,ssl:this.form.imap_ssl,username:this.group.email_username,password:this.group.email_password};return this.set("testingSettings",!0),this.set("imapSettingsValid",!1),(0,l.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"imap"})}).then(()=>{this.set("imapSettingsValid",!0),this.group.setProperties({imap_server:this.form.imap_server,imap_port:this.form.imap_port,imap_ssl:this.form.imap_ssl})}).catch(u.popupAjaxError).finally(()=>this.set("testingSettings",!1))}static #d=(()=>dt7948.n(this.prototype,"testImapSettings",[s.action]))()},[(0,o.tagName)("")]),m=(0,i.setComponentTemplate)(p,h)},66734:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(54729),o=n(97355),a=n(93223),l=n(9630),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"1ARDPepw",block:'[[[10,0],[14,0,"group-manage-email-settings"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.smtp_title"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,2],["groups.manage.email.smtp_instructions"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_smtp"],[12],[1,"\\n "],[8,[39,5],[[24,1,"enable_smtp"],[24,"tabindex","1"],[4,[38,6],["input",[30,0,["smtpEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","smtp_enabled"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.manage.email.enable_smtp"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_enabled"]],[[[1," "],[8,[39,8],null,[["@group","@smtpSettingsValid","@onChangeSmtpSettingsValid"],[[30,0,["group"]],[30,0,["smtpSettingsValid"]],[30,0,["onChangeSmtpSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_imap"]],[[[1," "],[10,0],[14,0,"group-manage-email-imap-wrapper"],[12],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.imap_title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,10],[[28,[37,2],["groups.manage.email.imap_instructions"],null]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,2],["groups.manage.email.imap_alpha_warning"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","enable_imap"],[12],[1,"\\n "],[8,[39,5],[[16,"disabled",[28,[37,11],[[30,0,["enableImapSettings"]]],null]],[24,1,"enable_imap"],[24,"tabindex","8"],[4,[38,6],["input",[30,0,["imapEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","imap_enabled"]]]],null],[1,"\\n "],[1,[28,[35,2],["groups.manage.email.enable_imap"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_enabled"]],[[[1," "],[8,[39,12],null,[["@group","@imapSettingsValid"],[[30,0,["group"]],[30,0,["imapSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-manage-email-additional-settings-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,2],["groups.manage.email.imap_additional_settings"],null]],[13],[1,"\\n "],[10,"label"],[14,0,"control-group-inline"],[14,"for","allow_unknown_sender_topic_replies"],[12],[1,"\\n "],[8,[39,5],[[24,3,"allow_unknown_sender_topic_replies"],[24,1,"allow_unknown_sender_topic_replies"],[24,"tabindex","13"]],[["@type","@checked"],["checkbox",[30,0,["group","allow_unknown_sender_topic_replies"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,2],["groups.manage.email.settings.allow_unknown_sender_topic_replies"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,2],["groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n "],[8,[39,14],null,[["@model","@disabled","@beforeSave","@afterSave","@tabindex"],[[30,0,["group"]],[28,[37,11],[[30,0,["emailSettingsValid"]]],null],[30,0,["beforeSave"]],[30,0,["afterSave"]],"15"]],null],[1,"\\n"],[13]],[],false,["div","h3","i18n","p","label","input","on","if","group-smtp-email-settings","br","html-safe","not","group-imap-email-settings","span","group-manage-save-button"]]',moduleName:"discourse/components/group-manage-email-settings.hbs",isStrictMode:!1}),p=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();imapSettingsValid=!1;smtpSettingsValid=!1;_determineSettingsValid(){this.set("imapSettingsValid",this.group.imap_enabled&&this.group.imap_server),this.set("smtpSettingsValid",this.group.smtp_enabled&&this.group.smtp_server)}static #n=(()=>dt7948.n(this.prototype,"_determineSettingsValid",[(0,l.on)("init")]))();enableImapSettings(e,t,n){return t&&(e||n)}static #i=(()=>dt7948.n(this.prototype,"enableImapSettings",[(0,u.default)("emailSettingsValid","group.smtp_enabled","group.imap_enabled")]))();emailSettingsValid(e,t,n,i){return(!n||e)&&(!i||t)}static #l=(()=>dt7948.n(this.prototype,"emailSettingsValid",[(0,u.default)("smtpSettingsValid","imapSettingsValid","group.smtp_enabled","group.imap_enabled")]))();_anySmtpFieldsFilled(){return[this.group.smtp_server,this.group.smtp_port,this.group.email_username,this.group.email_password].some(e=>!(0,o.isEmpty)(e))}_anyImapFieldsFilled(){return[this.group.imap_server,this.group.imap_port].some(e=>!(0,o.isEmpty)(e))}onChangeSmtpSettingsValid(e){this.set("smtpSettingsValid",e)}static #u=(()=>dt7948.n(this.prototype,"onChangeSmtpSettingsValid",[s.action]))();smtpEnabledChange(e){!e.target.checked&&this.group.smtp_enabled&&this._anySmtpFieldsFilled()&&this.dialog.confirm({message:(0,c.i18n)("groups.manage.email.smtp_disable_confirm"),didConfirm:()=>this.group.set("smtp_enabled",!0),didCancel:()=>this.group.set("imap_enabled",!1)}),this.group.set("smtp_enabled",e.target.checked)}static #c=(()=>dt7948.n(this.prototype,"smtpEnabledChange",[s.action]))();imapEnabledChange(e){!e.target.checked&&this.group.imap_enabled&&this._anyImapFieldsFilled()&&this.dialog.confirm({message:(0,c.i18n)("groups.manage.email.imap_disable_confirm"),didConfirm:()=>this.group.set("imap_enabled",!0)}),this.group.set("imap_enabled",e.target.checked)}static #d=(()=>dt7948.n(this.prototype,"imapEnabledChange",[s.action]))();afterSave(){this.store.find("group",this.group.name).then(()=>{this._determineSettingsValid()})}static #p=(()=>dt7948.n(this.prototype,"afterSave",[s.action]))()},[(0,a.tagName)("")]),h=(0,i.setComponentTemplate)(d,p)},74811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(62797),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"RDMA0X5G",block:'[[[41,[30,0,["value"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-manage-logs-filter"]],[["@action","@icon","@translatedLabel"],[[28,[37,2],[[30,0,["clearFilter"]],[30,0,["type"]]],null],"circle-xmark",[28,[37,3],[[30,0,["label"]],": ",[30,0,["filterText"]]],null]]],null],[1,"\\n"]],[]],null]],[],false,["if","d-button","fn","concat"]]',moduleName:"discourse/components/group-manage-logs-filter.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{label(e){return(0,o.i18n)(`groups.manage.logs.${e}`)}static #e=(()=>dt7948.n(this.prototype,"label",[(0,r.default)("type")]))();filterText(e,t){return"action"===t?(0,o.i18n)(`group_histories.actions.${e}`):e}static #n=(()=>dt7948.n(this.prototype,"filterText",[(0,r.default)("value","type")]))()},[(0,s.tagName)("")]),u=(0,i.setComponentTemplate)(a,l)},3026:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"7MQ5LOAQ",block:'[[[10,"tr"],[14,0,"group-manage-logs-row"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","action"]],"action"]]]],null],[30,0,["log","actionTitle"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,6],[[30,0,["log","acting_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","acting_user","username"]],"acting_user"]]]],null],[30,0,["log","acting_user","username"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","target_user"]],[[[1," "],[10,1],[12],[1,[28,[35,6],[[30,0,["log","target_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","target_user","username"]],"target_user"]]]],null],[30,0,["log","target_user","username"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","subject"]],[[[1," "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["filter"]],[28,[37,4],null,[["value","key"],[[30,0,["log","subject"]],"subject"]]]],null],[30,0,["log","subject"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,[28,[35,8],[[30,0,["log","created_at"]]],null]],[13],[1,"\\n\\n "],[10,"td"],[14,0,"group-manage-logs-expand-details"],[12],[1,"\\n"],[41,[30,0,["log","prev_value"]],[[[1," "],[8,[39,2],null,[["@action","@icon"],[[30,0,["toggleDetails"]],[52,[30,0,["expandDetails"]],"angle-up","angle-down"]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["expandDetails"]],[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[14,"colspan","6"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,11],["groups.manage.logs.from"],null]],[13],[1,":\\n "],[10,"code"],[12],[1,[30,0,["log","prev_value"]]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[12],[1,"\\n "],[10,"strong"],[12],[1,[28,[35,11],["groups.manage.logs.to"],null]],[13],[1,":\\n "],[10,"code"],[12],[1,[30,0,["log","new_value"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["tr","td","d-button","fn","hash","span","avatar","if","bound-date","p","strong","i18n","code"]]',moduleName:"discourse/components/group-manage-logs-row.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{expandDetails=!1;toggleDetails(){this.toggleProperty("expandDetails")}static #e=(()=>dt7948.n(this.prototype,"toggleDetails",[s.action]))();filter(e){this.set(`filters.${e.key}`,e.value)}static #n=(()=>dt7948.n(this.prototype,"filter",[s.action]))()},[(0,r.tagName)("")]),l=(0,i.setComponentTemplate)(o,a)},58360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(5938),o=n(54729),a=n(19678),l=n(92965),u=n(64149),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"u7wAEI2x",block:'[[[41,[30,0,["privateGroupNameNotice"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-warning alert-private-group-name"],[12],[1,"\\n "],[1,[30,0,["privateGroupNameNotice"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"control-group buttons group-manage-save-button"],[12],[1,"\\n "],[8,[39,2],[[24,0,"btn-primary group-manage-save"]],[["@action","@disabled","@translatedLabel"],[[30,0,["save"]],[28,[37,3],[[30,0,["disabled"]],[30,0,["saving"]]],null],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[12],[1,[28,[35,5],["saved"],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","div","d-button","or","span","i18n"]]',moduleName:"discourse/components/group-manage-save-button.hbs",isStrictMode:!1});class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();saving=null;disabled=!1;updateExistingUsers=null;static #n=(()=>dt7948.g(this.prototype,"hasFlair",[(0,r.or)("model.flair_icon","model.flair_upload_id")]))();#tL=(()=>void dt7948.i(this,"hasFlair"))();savingText(e){return e?(0,d.i18n)("saving"):(0,d.i18n)("save")}static #i=(()=>dt7948.n(this.prototype,"savingText",[(0,c.default)("saving")]))();privateGroupNameNotice(e,t,n){return 0===e?void 0:t?(0,d.i18n)("admin.groups.manage.alert.primary_group",{group_name:this.model.name}):n?(0,d.i18n)("admin.groups.manage.alert.flair_group",{group_name:this.model.name}):void 0}static #l=(()=>dt7948.n(this.prototype,"privateGroupNameNotice",[(0,c.default)("model.visibility_level","model.primary_group","hasFlair")]))();setUpdateExistingUsers(e){this.updateExistingUsers=e}static #u=(()=>dt7948.n(this.prototype,"setUpdateExistingUsers",[s.action]))();save(){this.beforeSave&&this.beforeSave(),this.set("saving",!0);let e=this.model;(0,l.popupAutomaticMembershipAlert)(e.id,e.automatic_membership_email_domains);let t={};return null!==this.updateExistingUsers&&(t.update_existing_users=this.updateExistingUsers),e.save(t).then(()=>{this.setProperties({saved:!0,updateExistingUsers:null}),this.afterSave&&this.afterSave()}).catch(e=>{let t=e.jqXHR.responseJSON;422===e.jqXHR.status&&t.user_count?this.editGroupNotifications(t):(0,u.popupAjaxError)(e)}).finally(()=>this.set("saving",!1))}static #c=(()=>dt7948.n(this.prototype,"save",[s.action]))();async editGroupNotifications(e){await this.modal.show(a.default,{model:{count:e.user_count,setUpdateExistingUsers:this.setUpdateExistingUsers}}),this.save()}static #d=(()=>dt7948.n(this.prototype,"editGroupNotifications",[s.action]))()}(0,i.setComponentTemplate)(p,h)},19125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){let e=[{id:"removeMember",name:(0,r.i18n)("groups.members.remove_member"),description:(0,r.i18n)("groups.members.remove_member_description",{username:this.get("member.username")}),icon:"user-xmark"}];return this.canAdminGroup?this.member.owner?e.push({id:"removeOwner",name:(0,r.i18n)("groups.members.remove_owner"),description:(0,r.i18n)("groups.members.remove_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}):e.push({id:"makeOwner",name:(0,r.i18n)("groups.members.make_owner"),description:(0,r.i18n)("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}):this.canEditGroup&&!this.member.owner&&e.push({id:"makeOwner",name:(0,r.i18n)("groups.members.make_owner"),description:(0,r.i18n)("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-halved"}),this.currentUser.staff&&(this.member.primary?e.push({id:"removePrimary",name:(0,r.i18n)("groups.members.remove_primary"),description:(0,r.i18n)("groups.members.remove_primary_description",{username:this.get("member.username")}),icon:"id-card"}):e.push({id:"makePrimary",name:(0,r.i18n)("groups.members.make_primary"),description:(0,r.i18n)("groups.members.make_primary_description",{username:this.get("member.username")}),icon:"id-card"})),e}static #e=(()=>dt7948.n(this.prototype,"content",[(0,i.computed)("member.owner","member.primary")]))()},[(0,a.pluginApiIdentifiers)("group-member-dropdown"),(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("group-member-dropdown")])},88363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"++b6J6cv",block:'[[[10,3],[15,6,[30,0,["member","adminPath"]]],[12],[1,"\\n "],[1,[28,[35,1],[[30,0,["member"]]],[["imageSize"],["small"]]]],[1,"\\n"],[13],[1,"\\n"],[10,1],[12],[1,[30,0,["member","username"]]],[13],[1,"\\n"],[41,[51,[30,0,["automatic"]]],[[[1," "],[11,3],[24,6,""],[24,0,"remove"],[4,[38,4],["click",[30,0,["remove"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["xmark"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["a","avatar","span","unless","on","d-icon"]]',moduleName:"discourse/components/group-member.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{remove(e){e?.preventDefault(),this.removeAction(this.member)}static #e=(()=>dt7948.n(this.prototype,"remove",[s.action]))()},[(0,r.classNames)("item")]),l=(0,i.setComponentTemplate)(o,a)},80322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(54729),o=n(93223),a=n(64149),l=n(84266),u=n(62797),c=n(51969),d=n(61826);let p=(0,n(82739).createTemplateFactory)({id:"QND6VZq1",block:'[[[41,[30,0,["canJoinGroup"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-index-join"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"joinGroup"],null],"user-plus","groups.join",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canLeaveGroup"]],[[[1," "],[8,[39,1],[[24,0,"btn-danger group-index-leave"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"leaveGroup"],null],"user-xmark","groups.leave",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canRequestMembership"]],[[[1," "],[8,[39,1],[[24,0,"btn-default group-index-request"]],[["@action","@disabled","@icon","@label"],[[28,[37,2],[[30,0],"showRequestMembershipForm"],null],[30,0,["loading"]],"user-plus","groups.request"]],null],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],[]]]],[]]]],["&default"],false,["if","d-button","action","yield"]]',moduleName:"discourse/components/group-membership-button.hbs",isStrictMode:!1}),h=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();canJoinGroup(e,t){return e&&!t}static #u=(()=>dt7948.n(this.prototype,"canJoinGroup",[(0,u.default)("model.public_admission","userIsGroupUser")]))();canLeaveGroup(e,t){return e&&t}static #c=(()=>dt7948.n(this.prototype,"canLeaveGroup",[(0,u.default)("model.public_exit","userIsGroupUser")]))();canRequestMembership(e,t){return e&&!t}static #d=(()=>dt7948.n(this.prototype,"canRequestMembership",[(0,u.default)("model.allow_membership_requests","userIsGroupUser")]))();userIsGroupUser(e){return!!e}static #p=(()=>dt7948.n(this.prototype,"userIsGroupUser",[(0,u.default)("model.is_group_user")]))();_showLoginModal(){this.showLogin(),(0,l.default)("destination_url",window.location.href)}removeFromGroup(){let e=this.model;e.leave().then(()=>{e.set("is_group_user",!1),this.appEvents.trigger("group:leave",e)}).catch(a.popupAjaxError).finally(()=>this.set("updatingMembership",!1))}joinGroup(){if(this.currentUser){this.set("updatingMembership",!0);let e=this.model;e.join().then(()=>{e.set("is_group_user",!0),this.appEvents.trigger("group:join",e)}).catch(a.popupAjaxError).finally(()=>{this.set("updatingMembership",!1)})}else this._showLoginModal()}static #h=(()=>dt7948.n(this.prototype,"joinGroup",[s.action]))();leaveGroup(){if(this.set("updatingMembership",!0),!this.model.public_admission)return this.dialog.yesNoConfirm({message:(0,c.i18n)("groups.confirm_leave"),didConfirm:()=>this.removeFromGroup(),didCancel:()=>this.set("updatingMembership",!1)});this.removeFromGroup()}static #m=(()=>dt7948.n(this.prototype,"leaveGroup",[s.action]))();showRequestMembershipForm(){this.currentUser?this.modal.show(d.default,{model:{group:this.model}}):this._showLoginModal()}static #g=(()=>dt7948.n(this.prototype,"showRequestMembershipForm",[s.action]))()},[(0,o.classNames)("group-membership-button")]),m=(0,i.setComponentTemplate)(p,h)},85223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"VeHiyDk0",block:'[[[8,[39,0],[[24,0,"group-nav"]],[["@desktopClass"],["nav nav-pills"]],[["default"],[[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,3],null,[["@route"],["groups.index"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["groups.index.all"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,5],null,[["@groups","@value"],[[30,0,["group","extras","visible_group_names"]],[30,0,["group","name"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,3],[[16,"title",[30,1,["message"]]],[16,0,[30,1,["name"]]]],[["@route","@model"],[[30,1,["route"]],[30,0,["group"]]]],[["default"],[[[[1,"\\n "],[41,[30,1,["icon"]],[[[1,[28,[35,8],[[30,1,["icon"]]],null]]],[]],null],[1,"\\n "],[1,[30,1,["message"]]],[1,"\\n "],[41,[30,1,["count"]],[[[10,1],[14,0,"count"],[12],[1,"("],[1,[30,1,["count"]]],[1,")"],[13]],[]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[8,[39,10],null,[["@name","@outletArgs","@connectorTagName"],["group-reports-nav-item",[28,[37,11],null,[["group"],[[30,0,["group"]]]]],"li"]],null],[1,"\\n"]],[]]]]]],["tab"],false,["mobile-nav","if","li","link-to","i18n","group-dropdown","each","-track-array","d-icon","span","plugin-outlet","hash"]]',moduleName:"discourse/components/group-navigation.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("")]),a=(0,i.setComponentTemplate)(r,o)},439:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(49409),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"YvH6hSJz",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"group-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix"],[[30,1],[30,2],false,false,"groups.notifications"]],null],[1,"\\n"]],["@onChange","@levelId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-notifications-tracking.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"group-notifications-tracking:GroupNotificationsTracking"))},1741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(93223),r=n(28147),o=n(59621),a=n(56839),l=n(87389),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"nHBl6BFm",block:'[[[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[30,0,["post","user","username"]]],[14,0,"avatar-link"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["post","user"]]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["postUrl"]]],[15,"aria-label",[30,0,["titleAriaLabel"]]],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"group-post-category"],[12],[1,[28,[35,5],[[30,0,["post","category"]]],null]],[13],[1,"\\n"],[41,[30,0,["post","user"]],[[[1," "],[10,0],[14,0,"group-member-info names"],[12],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n "],[41,[30,0,["post","user","title"]],[[[10,1],[14,0,"user-title"],[12],[1,[30,0,["post","user","title"]]],[13]],[]],null],[1,"\\n "],[8,[39,7],null,[["@name","@outletArgs"],["group-post-additional-member-info",[28,[37,8],null,[["user"],[[30,0,["post","user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,9],null,[["@item"],[[30,0,["post"]]]],null],[1,"\\n "],[10,1],[14,0,"time"],[12],[1,[28,[35,10],[[30,0,["post","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"excerpt"],[12],[1,"\\n"],[41,[30,0,["post","expandedExcerpt"]],[[[1," "],[1,[28,[35,4],[[30,0,["post","expandedExcerpt"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],[[30,0,["post","excerpt"]]],null]],[1,"\\n"]],[]]],[13]],[],false,["div","a","avatar","span","html-safe","category-link","if","plugin-outlet","hash","expand-post","format-date"]]',moduleName:"discourse/components/group-post.hbs",isStrictMode:!1}),p=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"moderatorAction",[(0,r.propertyEqual)("post.post_type","site.post_types.moderator_action")]))();#tR=(()=>void dt7948.i(this,"moderatorAction"))();postUrl(e){return(0,l.default)(e)}static #n=(()=>dt7948.n(this.prototype,"postUrl",[(0,u.default)("post.url")]))();name(e){return(0,o.prioritizeNameInUx)(e.name)?e.name:e.username}static #i=(()=>dt7948.n(this.prototype,"name",[(0,u.default)("post.user")]))();primaryGroup(e){if(e.primary_group_name)return`group-${e.primary_group_name}`}static #l=(()=>dt7948.n(this.prototype,"primaryGroup",[(0,u.default)("post.user")]))();userUrl(e){return(0,a.userPath)(e.toLowerCase())}static #u=(()=>dt7948.n(this.prototype,"userUrl",[(0,u.default)("post.user.username")]))();titleAriaLabel(e,t){return(0,c.i18n)("groups.aria_post_number",{postNumber:t,title:e})}static #c=(()=>dt7948.n(this.prototype,"titleAriaLabel",[(0,u.default)("post.title","post.post_number")]))()},[(0,s.classNameBindings)(":user-stream-item",":item","moderatorAction","primaryGroup")]),h=(0,i.setComponentTemplate)(d,p)},738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(76417),s=n(97355),r=n(9630),o=n(14682),a=n.n(o),l=n(37441),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"HT731gUy",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,0,"group-selector"],[14,3,"groups"],[14,4,"text"],[12],[13]],[],false,["input"]]',moduleName:"discourse/components/group-selector.hbs",isStrictMode:!1});class p extends i.default{placeholder(e){return e?(0,c.i18n)(e):""}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,u.default)("placeholderKey")]))();_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})}static #n=(()=>dt7948.n(this.prototype,"_update",[(0,r.observes)("groupNames")]))();_initializeAutocomplete(e){let t;let n=this.groupNames;a()(this.element.querySelector("input")).autocomplete({debounced:!0,allowAny:!1,items:Array.isArray(n)?n:(0,s.isEmpty)(n)?[]:[n],single:this.single,fullWidthWrap:this.fullWidthWrap,updateData:!!e&&!!e.updateData&&e.updateData,onChangeItems:e=>{t=e,this.onChangeCallback?this.onChangeCallback(this.groupNames,t):this.set("groupNames",e.join(","))},transformComplete:e=>e.name,dataSource:e=>this.groupFinder(e).then(e=>t?e.filter(e=>!t.any(t=>t===e.name)):e),template:(0,l.findRawTemplate)("group-selector-autocomplete")})}static #i=(()=>dt7948.n(this.prototype,"_initializeAutocomplete",[(0,r.on)("didInsertElement")]))()}(0,i.setComponentTemplate)(d,p)},94316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(69836),u=n(54729),c=n(64151),d=n(7665),p=n(25614),h=n(6610),m=n(64149),g=n(69391),f=n(10742),_=n(51969),y=n(76417),b=n(82739);let w=(0,n(41664).A)(n(28564)).cached;class k extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"toasts",[u.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #i=(()=>dt7948.g(this.prototype,"smtpSettingsValid",[s.tracked],function(){return!1}))();#tU=(()=>void dt7948.i(this,"smtpSettingsValid"))();static #l=(()=>dt7948.g(this.prototype,"testingSettings",[s.tracked],function(){return!1}))();#tj=(()=>void dt7948.i(this,"testingSettings"))();get sslModes(){return Object.keys(g.GROUP_SMTP_SSL_MODES).map(e=>({value:g.GROUP_SMTP_SSL_MODES[e],name:(0,_.i18n)(`groups.manage.email.ssl_modes.${e}`)}))}get formData(){let e=(0,a.getProperties)(this.args.group,"email_username","email_password","email_from_alias","smtp_server","smtp_port","smtp_ssl_mode");return e.smtp_ssl_mode??=g.GROUP_SMTP_SSL_MODES.none,e}static #u=(()=>dt7948.n(this.prototype,"formData",[w]))();changeSmtpSettingsValid(e){this.smtpSettingsValid=e,this.args.onChangeSmtpSettingsValid(e)}static #c=(()=>dt7948.n(this.prototype,"changeSmtpSettingsValid",[a.action]))();prefillSettings(e,t,n){n?.preventDefault();let i=(0,f.default)(e,"smtp");Object.keys(i).forEach(e=>{t(e,i[e])})}static #d=(()=>dt7948.n(this.prototype,"prefillSettings",[a.action]))();testSmtpSettings(e){let t={host:e.smtp_server,port:e.smtp_port,ssl_mode:e.smtp_ssl_mode,username:e.email_username,password:e.email_password};return this.testingSettings=!0,this.changeSmtpSettingsValid(!1),(0,h.ajax)(`/groups/${this.args.group.id}/test_email_settings`,{type:"POST",data:Object.assign(t,{protocol:"smtp"})}).then(()=>{this.changeSmtpSettingsValid(!0),this.args.group.setProperties({smtp_server:e.smtp_server,smtp_port:e.smtp_port,smtp_ssl_mode:e.smtp_ssl_mode,email_username:e.email_username,email_from_alias:e.email_from_alias||"",email_password:e.email_password}),this.toasts.success({duration:3e3,data:{message:(0,_.i18n)("groups.manage.email.smtp_settings_valid")}})}).catch(m.popupAjaxError).finally(()=>this.testingSettings=!1)}static #p=(()=>dt7948.n(this.prototype,"testSmtpSettings",[a.action]))();resetTestingSettings(e,t,n){let{set:i}=n;this.changeSmtpSettingsValid(!1),i(e,t)}static #h=(()=>dt7948.n(this.prototype,"resetTestingSettings",[a.action]))();static #m=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"gEnDujX1",block:'[[[1,"\\n "],[10,0],[14,0,"group-smtp-email-settings"],[12],[1,"\\n "],[8,[32,0],null,[["@data","@onSubmit"],[[30,0,["formData"]],[30,0,["testSmtpSettings"]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["Row"]],null,null,[["default"],[[[[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_server",[28,[32,1],["groups.manage.email.credentials.smtp_server"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_server"],null]]],[["default"],[[[[1,"\\n "],[8,[30,3,["Input"]],null,null,null],[1,"\\n "]],[3]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["email_username",[28,[32,1],["groups.manage.email.credentials.username"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"email_username"],null]]],[["default"],[[[[1,"\\n "],[8,[30,4,["Input"]],null,null,null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_port",[28,[32,1],["groups.manage.email.credentials.smtp_port"],null],"required|integer",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_port"],null]]],[["default"],[[[[1,"\\n "],[8,[30,5,["Input"]],null,[["@type"],["number"]],null],[1,"\\n "]],[5]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["email_password",[28,[32,1],["groups.manage.email.credentials.password"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"email_password"],null]]],[["default"],[[[[1,"\\n "],[8,[30,6,["Password"]],null,null,null],[1,"\\n "]],[6]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@validation","@onSet"],["smtp_ssl_mode",[28,[32,1],["groups.manage.email.credentials.smtp_ssl_mode"],null],"required",[28,[32,2],[[30,0,["resetTestingSettings"]],"smtp_ssl_mode"],null]]],[["default"],[[[[1,"\\n "],[8,[30,7,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sslModes"]]],null]],null],null,[[[1," "],[8,[30,8,["Option"]],null,[["@value"],[[30,9,["value"]]]],[["default"],[[[[1,[30,9,["name"]]]],[]]]]],[1,"\\n"]],[9]],null],[1," "]],[8]]]]],[1,"\\n "]],[7]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[30,2,["Col"]],null,[["@size"],[6]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@description"],["email_from_alias",[28,[32,1],["groups.manage.email.settings.from_alias"],null],[28,[32,1],["groups.manage.email.settings.from_alias_hint"],null]]],[["default"],[[[[1,"\\n "],[8,[30,10,["Input"]],null,null,null],[1,"\\n "]],[10]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[8,[30,1,["Submit"]],[[24,"tabindex","7"],[24,0,"btn-primary group-smtp-form__test-smtp-settings"]],[["@disabled","@icon","@label","@title"],[[28,[32,3],[[30,0,["testingSettings"]]],null],"gear","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n "],[8,[30,1,["Container"]],[[24,0,"group-smtp-prefill-options"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,1],["groups.manage.email.prefill.title"],null]],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_gmail"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"gmail",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_outlook"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"outlook",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.outlook"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,1,"prefill_smtp_office365"],[24,6,""],[4,[32,4],["click",[28,[32,2],[[30,0,["prefillSettings"]],"office365",[30,1,["set"]]],null]],null],[12],[1,[28,[32,1],["groups.manage.email.prefill.office365"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n\\n"],[41,[30,11,["smtp_updated_at"]],[[[1," "],[10,0],[14,0,".group-smtp-form__last-updated-details"],[12],[1,"\\n "],[10,"small"],[12],[1,"\\n "],[1,[28,[32,1],["groups.manage.email.last_updated"],null]],[1,"\\n "],[10,"strong"],[12],[1,[28,[32,5],[[30,11,["smtp_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n "],[1,[28,[32,1],["groups.manage.email.last_updated_by"],null]],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["user",[30,11,["smtp_updated_by","username"]]]],[["default"],[[[[1,[30,11,["smtp_updated_by","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["form","row","field","field","field","field","field","select","sslMode","field","@group"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-smtp-email-settings.js",scope:()=>[d.default,_.i18n,r.fn,c.or,o.on,p.default,l.LinkTo],isStrictMode:!0}),this))()}},27308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(5938),r=n(18523),o=n(62797),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"XbRIykBW",block:'[[[41,[30,0,["canAdminGroup"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility_levels.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange","@options"],["alias","value",[30,0,["model","visibility_level"]],[30,0,["visibilityLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","visibility_level"]]],null]],null],[28,[37,7],null,[["castInteger"],[true]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.visibility_levels.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.members_visibility_levels.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-members-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["membersVisibilityLevel"]],[30,0,["visibilityLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","members_visibility_level"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["membersVisibilityPrivate"]],[[[1," "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.members_visibility_levels.description"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.interaction.posting"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,3],["groups.alias_levels.mentionable"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-mentionable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["mentionableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","mentionable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,3],["groups.alias_levels.messageable"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"groups-form-messageable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["messageableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,5],[[28,[37,6],[[30,0,["model","messageable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canAdminGroup"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,8],[[24,0,"groups-form-publish-read-state"]],[["@type","@checked"],["checkbox",[30,0,["model","publish_read_state"]]]],null],[1,"\\n\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.publish_read_state"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEmailSettings"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.email"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"label"],[14,"for","incoming_email"],[12],[1,"\\n "],[1,[28,[35,3],["admin.groups.manage.interaction.incoming_email"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,9],[[24,0,"input-xxlarge groups-form-incoming-email"]],[["@name","@value","@placeholderKey"],["incoming_email",[30,0,["model","incoming_email"]],"admin.groups.manage.interaction.incoming_email_placeholder"]],null],[1,"\\n\\n "],[8,[39,10],null,[["@icon","@content"],["circle-info",[28,[37,3],["admin.groups.manage.interaction.incoming_email_tooltip"],null]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["group-email-in","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,3],["groups.manage.interaction.notification"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["groups.notification_level"],null]],[13],[1,"\\n\\n "],[8,[39,13],[[24,0,"groups-form-default-notification-level"]],[["@value","@options","@onChange"],[[30,0,["defaultNotificationLevel"]],[28,[37,7],null,[["i18nPrefix"],["groups.notifications"]]],[28,[37,5],[[28,[37,6],[[30,0,["model","default_notification_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["groups-interaction-custom-options","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","div","label","i18n","combo-box","fn","mut","hash","input","text-field","d-tooltip","span","plugin-outlet","notifications-button"]]',moduleName:"discourse/components/groups-form-interaction-fields.hbs",isStrictMode:!1});class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"membersVisibilityLevel",[(0,s.or)("model.members_visibility_level","visibilityLevelOptions.firstObject.value")]))();#tB=(()=>void dt7948.i(this,"membersVisibilityLevel"))();static #n=(()=>dt7948.g(this.prototype,"messageableLevel",[(0,s.or)("model.messageable_level","aliasLevelOptions.firstObject.value")]))();#tz=(()=>void dt7948.i(this,"messageableLevel"))();static #i=(()=>dt7948.g(this.prototype,"mentionableLevel",[(0,s.or)("model.mentionable_level","aliasLevelOptions.firstObject.value")]))();#t$=(()=>void dt7948.i(this,"mentionableLevel"))();visibilityLevelOptions=(()=>[{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.public"),value:0},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.logged_on_users"),value:1},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.members"),value:2},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.staff"),value:3},{name:(0,a.i18n)("admin.groups.manage.interaction.visibility_levels.owners"),value:4}])();aliasLevelOptions=(()=>[{name:(0,a.i18n)("groups.alias_levels.nobody"),value:0},{name:(0,a.i18n)("groups.alias_levels.only_admins"),value:1},{name:(0,a.i18n)("groups.alias_levels.mods_and_admins"),value:2},{name:(0,a.i18n)("groups.alias_levels.members_mods_and_admins"),value:3},{name:(0,a.i18n)("groups.alias_levels.owners_mods_and_admins"),value:4},{name:(0,a.i18n)("groups.alias_levels.everyone"),value:99}])();watchingNotificationLevel=(()=>r.NotificationLevels.WATCHING)();defaultNotificationLevel(e,t){return Object.values(r.NotificationLevels).includes(e)?e:t}static #l=(()=>dt7948.n(this.prototype,"defaultNotificationLevel",[(0,o.default)("model.default_notification_level","watchingNotificationLevel")]))();showEmailSettings(e,t,n){return e&&n&&!t}static #u=(()=>dt7948.n(this.prototype,"showEmailSettings",[(0,o.default)("siteSettings.email_in","model.automatic","currentUser.admin")]))();canAdminGroup(e,t,n){return!e&&n||e&&t}static #c=(()=>dt7948.n(this.prototype,"canAdminGroup",[(0,o.default)("model.isCreated","model.can_admin_group","currentUser.can_create_group")]))();membersVisibilityPrivate(e){return e!==this.visibilityLevelOptions.firstObject.value}static #d=(()=>dt7948.n(this.prototype,"membersVisibilityPrivate",[(0,o.default)("membersVisibilityLevel")]))()}(0,i.setComponentTemplate)(l,u)},59307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(70001),r=n(5938),o=n(51781),a=n(62797),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"cvYorSfn",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["groups.manage.membership.access"],null]],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-public-admission"],[16,"disabled",[30,0,["disablePublicSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","public_admission"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.public_admission"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-public-exit"]],[["@type","@checked"],["checkbox",[30,0,["model","public_exit"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.public_exit"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"group-form-allow-membership-requests"],[16,"disabled",[30,0,["disableMembershipRequestSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","allow_membership_requests"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["groups.allow_membership_requests"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["model","allow_membership_requests"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"label"],[14,"for","membership-request-template"],[12],[1,"\\n "],[1,[28,[35,2],["groups.membership_request_template"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,5],[[16,2,[30,0,["model","membership_request_template"]]],[24,3,"membership-request-template"],[24,0,"group-form-membership-request-template input-xxlarge"],[4,[38,6],["input",[28,[37,7],[[28,[37,8],[[28,[37,9],[[30,0,["model","membership_request_template"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["model","can_admin_group"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["admin.groups.manage.membership.automatic"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","automatic_membership"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.manage.membership.automatic_membership_email_domains"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],[[24,0,"group-form-automatic-membership-automatic"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange","@options"],["automatic_membership",[30,0,["emailDomains"]],[30,0,["emailDomains"]],"name",null,null,[28,[37,11],[[30,0],"onChangeEmailDomainsSetting"],null],[28,[37,12],null,[["allowAny"],[true]]]]],null],[1,"\\n\\n"],[41,[30,0,["showAssociatedGroups"]],[[[1," "],[10,"label"],[14,"for","automatic_membership_associated_groups"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.manage.membership.automatic_membership_associated_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,10],[[24,0,"group-form-automatic-membership-associated-groups"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange"],["automatic_membership_associated_groups",[30,0,["model","associatedGroupIds"]],[30,0,["associatedGroups"]],"name","label","id",[28,[37,8],[[28,[37,9],[[30,0,["model","associated_group_ids"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["groups-form-membership-below-automatic","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["admin.groups.manage.membership.effects"],null]],[13],[1,"\\n "],[10,"label"],[14,"for","grant_trust_level"],[12],[1,[28,[35,2],["admin.groups.manage.membership.trust_levels_title"],null]],[13],[1,"\\n\\n "],[8,[39,15],[[24,0,"groups-form-grant-trust-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["grant_trust_level","value",[30,0,["groupTrustLevel"]],[30,0,["trustLevelOptions"]],[28,[37,8],[[28,[37,9],[[30,0,["model","grant_trust_level"]]],null]],null]]],null],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,3],[[24,0,"groups-form-primary-group"]],[["@type","@checked"],["checkbox",[30,0,["model","primary_group"]]]],null],[1,"\\n\\n "],[1,[28,[35,2],["admin.groups.manage.membership.primary_group"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","title"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.default_title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],[[24,3,"title"],[24,0,"input-xxlarge"]],[["@value"],[[30,0,["model","title"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[35,2],["admin.groups.default_title_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,16],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["div","label","i18n","input","if","expanding-text-area","on","with-event-value","fn","mut","list-setting","action","hash","span","plugin-outlet","combo-box","group-flair-inputs"]]',moduleName:"discourse/components/groups-form-membership-fields.hbs",isStrictMode:!1});class c extends i.default{tokenSeparator="|";static #e=(()=>dt7948.g(this.prototype,"showAssociatedGroups",[(0,r.readOnly)("site.can_associate_groups")]))();#tq=(()=>void dt7948.i(this,"showAssociatedGroups"))();static #n=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.not)("model.automatic")]))();#tH=(()=>void dt7948.i(this,"canEdit"))();trustLevelOptions=(()=>[{name:(0,l.i18n)("admin.groups.manage.membership.trust_levels_none"),value:0},{name:1,value:1},{name:2,value:2},{name:3,value:3},{name:4,value:4}])();init(){super.init(...arguments),this.showAssociatedGroups&&this.loadAssociatedGroups()}get groupTrustLevel(){return this.model.get("grant_trust_level")||this.trustLevelOptions.firstObject.value}static #i=(()=>dt7948.n(this.prototype,"groupTrustLevel",[(0,s.computed)("model.grant_trust_level","trustLevelOptions")]))();disableMembershipRequestSetting(e,t){return e=parseInt(e,10),t||e>1}static #l=(()=>dt7948.n(this.prototype,"disableMembershipRequestSetting",[(0,a.default)("model.visibility_level","model.public_admission")]))();disablePublicSetting(e,t){return e=parseInt(e,10),t||e>1}static #u=(()=>dt7948.n(this.prototype,"disablePublicSetting",[(0,a.default)("model.visibility_level","model.allow_membership_requests")]))();get emailDomains(){return this.model.emailDomains.split(this.tokenSeparator).filter(Boolean)}static #c=(()=>dt7948.n(this.prototype,"emailDomains",[(0,s.computed)("model.emailDomains")]))();loadAssociatedGroups(){o.default.list().then(e=>this.set("associatedGroups",e))}onChangeEmailDomainsSetting(e){this.set("model.automatic_membership_email_domains",e.join(this.tokenSeparator))}static #d=(()=>dt7948.n(this.prototype,"onChangeEmailDomainsSetting",[s.action]))()}(0,i.setComponentTemplate)(u,c)},58884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(5938),o=n(97355),a=n(9630),l=n(64149),u=n(27174),c=n(84262),d=n(62797),p=n(51969);let h=(0,n(82739).createTemplateFactory)({id:"Vc2mCVJ6",block:'[[[41,[30,0,["canEdit"]],[[[41,[30,0,["currentUser","can_create_group"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","name"],[12],[1,[28,[35,3],["groups.name"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"input-xxlarge group-form-name"]],[["@name","@value","@placeholderKey"],["name",[30,0,["nameInput"]],"admin.groups.name_placeholder"]],null],[1,"\\n\\n "],[8,[39,5],null,[["@validation"],[[30,0,["nameValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","full_name"],[12],[1,[28,[35,3],["groups.manage.full_name"],null]],[13],[1,"\\n\\n "],[8,[39,4],[[24,0,"input-xxlarge group-form-full-name"]],[["@name","@value"],["full_name",[30,0,["model","full_name"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bio"],[12],[1,[28,[35,3],["groups.bio"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"group-form-bio input-xxlarge"]],[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","automatic"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,7],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1," "],[18,1,null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["group-edit","div",[28,[37,11],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["&default"],false,["if","div","label","i18n","text-field","input-tip","d-editor","group-flair-inputs","yield","span","plugin-outlet","hash"]]',moduleName:"discourse/components/groups-form-profile-fields.hbs",isStrictMode:!1});class m extends i.default{disableSave=null;nameInput=null;static #e=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.not)("model.automatic")]))();#tH=(()=>void dt7948.i(this,"canEdit"))();didInsertElement(){super.didInsertElement(...arguments);let e=this.get("model.name");e?this.set("nameInput",e):this.set("disableSave",!0)}nameValidation(e,t){return t||e}static #n=(()=>dt7948.n(this.prototype,"nameValidation",[(0,d.default)("basicNameValidation","uniqueNameValidation")]))();_validateName(){return this.nameInput===this.get("model.name")?void 0:void 0===this.nameInput?this._failedInputValidation():""===this.nameInput?(this.set("uniqueNameValidation",null),this._failedInputValidation((0,p.i18n)("admin.groups.new.name.blank"))):this.nameInput.lengththis.siteSettings.max_username_length?this._failedInputValidation((0,p.i18n)("admin.groups.new.name.too_long")):(this.checkGroupNameDebounced(),this._failedInputValidation((0,p.i18n)("admin.groups.new.name.checking")))}static #i=(()=>dt7948.n(this.prototype,"_validateName",[(0,a.observes)("nameInput")]))();checkGroupNameDebounced(){(0,c.default)(this,this._checkGroupName,500)}_checkGroupName(){(0,o.isEmpty)(this.nameInput)||u.default.checkName(this.nameInput).then(e=>{let t="uniqueNameValidation";if(e.available)this.set(t,s.default.create({ok:!0,reason:(0,p.i18n)("admin.groups.new.name.available")})),this.set("disableSave",!1),this.set("model.name",this.nameInput);else{let n;n=e.errors?e.errors.join(" "):(0,p.i18n)("admin.groups.new.name.not_available"),this.set(t,this._failedInputValidation(n))}}).catch(l.popupAjaxError)}_failedInputValidation(e){this.set("disableSave",!0);let t={failed:!0};e&&(t.reason=e),this.set("basicNameValidation",s.default.create(t))}}(0,i.setComponentTemplate)(h,m)},35472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39882),s=n(64151),r=n(59874),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"bwhRWZ2W",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@defaultGlimmer"],["group-info-details",[28,[32,1],null,[["group"],[[30,1]]]],true]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"group-info-details"],[12],[1,"\\n "],[10,1],[14,0,"groups-info-name"],[12],[1,"\\n "],[1,[28,[32,2],[[30,1,["full_name"]],[30,1,["displayName"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],["@group"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/groups-info.js",scope:()=>[r.default,i.hash,s.or],isStrictMode:!0}),(0,l.default)(void 0,"groups-info:GroupsInfo"))},95706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{needsSecondRowIf:()=>s});var i=n(54216);function s(){(0,i.default)("`needsSecondRowIf` is deprecated. Use widget hooks on `header-second-row`",{id:"discourse.header-extra-info.needs-second-row-if"})}},40646:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{clearExtraHeaderButtons:()=>D,default:()=>I,headerButtonsDAG:()=>A});var s=n(37138),r=n(28564),o=n(39882),a=n(70001),l=n(71597),u=n(54729),c=n(79635),d=n(64151),p=n(59874),h=n(31222),m=n(79361),g=n(56839),f=n(91502),_=n(97679),y=n(49707),b=n(99068),w=n(33935),k=n(39823),x=n(18286),T=n(76417),S=n(82739);let C="search-button";function E(){(i=new h.default({defaultPosition:{before:"auth"}})).add("auth")}function A(){return i}function D(){E()}E();class I extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[u.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"search",[u.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #d=(()=>dt7948.g(this.prototype,"header",[u.service]))();#tI=(()=>void dt7948.i(this,"header"))();static #p=(()=>dt7948.g(this.prototype,"skipSearchContext",[r.tracked],function(){return this.site.mobileView}))();#tW=(()=>void dt7948.i(this,"skipSearchContext"))();appEventsListeners=(()=>(0,c.modifier)(()=>(this.appEvents.on("header:keyboard-trigger",this,this.headerKeyboardTrigger),()=>{this.appEvents.off("header:keyboard-trigger",this,this.headerKeyboardTrigger)})))();handleFocus=(()=>(0,c.modifier)(e=>{let t=e.querySelector(".panel-body");if(!t)return;let n=!1,i=e=>{e.key&&(n=!0)},s=()=>{n=!1},r=e=>{if(!n)return;let i=document.querySelector(".d-modal")?.contains(e.relatedTarget);t.contains(e.relatedTarget)||i||this.closeCurrentMenu()};return t.addEventListener("keydown",i),t.addEventListener("mousedown",s),t.addEventListener("focusout",r),()=>{t.removeEventListener("keydown",i),t.removeEventListener("mousedown",s),t.removeEventListener("focusout",r)}}))();closeCurrentMenu(){this.search.visible?this.toggleSearchMenu():this.header.userVisible?(this.toggleUserMenu(),document.getElementById("toggle-current-user")?.focus()):this.header.hamburgerVisible&&(this.toggleHamburger(),document.getElementById("toggle-hamburger-menu")?.focus())}static #h=(()=>dt7948.n(this.prototype,"closeCurrentMenu",[a.action]))();headerKeyboardTrigger(e){switch(e.type){case"search":this.toggleSearchMenu();break;case"user":this.toggleUserMenu();break;case"hamburger":this.toggleNavigationMenu();break;case"page-search":this.togglePageSearch()||(e.event.preventDefault(),e.event.stopPropagation())}}static #m=(()=>dt7948.n(this.prototype,"headerKeyboardTrigger",[a.action]))();toggleSearchMenu(){if(this.site.mobileView){let e=this.search.searchContext,t="";return(e&&(t=`?context=${e.type}&context_id=${e.id}&skip_context=${this.skipSearchContext}`),"full-page-search"===this.router.currentRouteName)?((0,f.scrollTop)(),document.querySelector(".full-page-search").focus(),!1):g.default.routeTo("/search"+t)}this.search.visible=!this.search.visible,this.search.visible||(this.search.highlightTerm="",this.search.inTopicContext=!1,document.getElementById(C)?.focus())}static #g=(()=>dt7948.n(this.prototype,"toggleSearchMenu",[a.action]))();togglePageSearch(){this.search.inTopicContext=!1;let e=this.router.currentRouteName.startsWith("topic.");if(e){let t=(0,l.getOwner)(this).lookup("controller:topic"),n=t.get("model.postStream.stream.length")||0;e=n>(t.get("model.chunk_size")||0)&&document.querySelectorAll(".topic-post .cooked, .small-action:not(.time-gap)")?.lengthdt7948.n(this.prototype,"togglePageSearch",[a.action]))();toggleUserMenu(){this.header.userVisible=!this.header.userVisible,this.toggleBodyScrolling(this.header.userVisible),this.args.animateMenu()}static #A=(()=>dt7948.n(this.prototype,"toggleUserMenu",[a.action]))();toggleNavigationMenu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"sidebar"===e?this.toggleSidebar():"hamburger"===e?this.toggleHamburger():void(this.args.sidebarEnabled&&!this.site.narrowDesktopView?this.toggleSidebar():this.toggleHamburger())}static #D=(()=>dt7948.n(this.prototype,"toggleNavigationMenu",[a.action]))();toggleHamburger(){this.header.hamburgerVisible=!this.header.hamburgerVisible,this.toggleBodyScrolling(this.header.hamburgerVisible),this.args.animateMenu()}static #I=(()=>dt7948.n(this.prototype,"toggleHamburger",[a.action]))();toggleSidebar(){this.args.toggleSidebar(),this.args.animateMenu()}static #G=(()=>dt7948.n(this.prototype,"toggleSidebar",[a.action]))();toggleBodyScrolling(e){this.site.mobileView&&(0,m.default)(e)}static #Y=(()=>dt7948.n(this.prototype,"toggleBodyScrolling",[a.action]))();static #Q=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"x2hVlQEM",block:'[[[1,"\\n "],[11,"header"],[24,0,"d-header"],[4,[30,0,["appEventsListeners"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"wrap"],[12],[1,"\\n "],[8,[32,0],null,[["@sidebarEnabled","@toggleNavigationMenu","@showSidebar","@topicInfo","@topicInfoVisible"],[[30,1],[30,0,["toggleNavigationMenu"]],[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"header-buttons"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,1,["resolve"]],null,null]],null]],null],null,[[[41,[28,[32,2],[[28,[32,3],[[30,5,["key"]],"auth"],null],[28,[32,4],[[30,0,["currentUser"]]],null]],null],[[[1," "],[8,[32,5],null,[["@topicInfoVisible","@showCreateAccount","@showLogin","@canSignUp"],[[30,4],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[30,5,["value"]],[[[1," "],[8,[30,5,["value"]],null,null,null],[1,"\\n "]],[]],null]],[]]]],[5]],null],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,4],[[28,[32,2],[[30,0,["siteSettings","login_required"]],[28,[32,4],[[30,0,["currentUser"]]],null]],null]],null],[[[1," "],[8,[32,6],null,[["@sidebarEnabled","@toggleSearchMenu","@toggleNavigationMenu","@toggleUserMenu","@searchButtonId"],[[30,1],[30,0,["toggleSearchMenu"]],[30,0,["toggleNavigationMenu"]],[30,0,["toggleUserMenu"]],[32,7]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","visible"]],[[[1," "],[8,[32,8],[[4,[30,0,["handleFocus"]],null,null]],[["@closeSearchMenu"],[[30,0,["toggleSearchMenu"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["header","hamburgerVisible"]],[[[1," "],[8,[32,9],[[4,[30,0,["handleFocus"]],null,null]],[["@toggleNavigationMenu","@sidebarEnabled"],[[30,0,["toggleNavigationMenu"]],[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,0,["header","userVisible"]],[[[1," "],[8,[32,10],[[4,[30,0,["handleFocus"]],null,null]],[["@toggleUserMenu"],[[30,0,["toggleUserMenu"]]]],null],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n"],[41,[28,[32,2],[[28,[32,11],[[30,0,["site","mobileView"]],[30,0,["site","narrowDesktopView"]]],null],[28,[32,11],[[30,0,["header","hamburgerVisible"]],[30,0,["header","userVisible"]]],null]],null],[[[1," "],[10,0],[14,0,"header-cloak"],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,12],null,[["@name","@outletArgs"],["after-header",[28,[32,13],null,[["minimized"],[[28,[30,4],null,null]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@sidebarEnabled","@showSidebar","@topicInfo","@topicInfoVisible","entry","@showCreateAccount","@showLogin","@canSignUp"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header.js",scope:()=>[y.default,i,d.and,d.eq,d.not,_.default,w.default,C,k.default,b.default,x.default,d.or,p.default,o.hash],isStrictMode:!0}),this))()}},97679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(92976),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"header",[s.service]))();#tI=(()=>void dt7948.i(this,"header"))();get showSignupButton(){return this.args.canSignUp&&!this.header.headerButtonsHidden.includes("signup")&&!this.args.topicInfoVisible}get showLoginButton(){return!this.header.headerButtonsHidden.includes("login")}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"RsH2KzG3",block:'[[[1,"\\n "],[10,1],[14,0,"auth-buttons"],[12],[1,"\\n"],[41,[30,0,["showSignupButton"]],[[[1," "],[8,[32,0],[[24,0,"btn-primary btn-small sign-up-button"]],[["@action","@label"],[[30,1],"sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showLoginButton"]],[[[1," "],[8,[32,0],[[24,0,"btn-primary btn-small login-button"]],[["@action","@label","@icon"],[[30,2],"log_in","user"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@showCreateAccount","@showLogin"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/auth-buttons.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},49707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(39882),r=n(54729),o=n(64151),a=n(96029),l=n(78054),u=n(59874),c=n(34744),d=n(88374),p=n(29885),h=n(76417),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tI=(()=>void dt7948.i(this,"header"))();static #u=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get sidebarIcon(){return this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?"discourse-sidebar":"bars"}static #c=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"mYV1qZ5Z",block:'[[[1,"\\n "],[10,0],[14,0,"contents"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["header-contents__before",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'header-contents__before\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[41,[30,3],[[[1," "],[8,[32,3],null,[["@toggleNavigationMenu","@showSidebar","@icon"],[[30,4],[30,5],[30,0,["sidebarIcon"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,0],[14,0,"home-logo-wrapper-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name"],["home-logo-wrapper"]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@minimized"],[[30,2]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[32,5],null,[["@topicInfo"],[[30,1]]],null],[1,"\\n"]],[]],[[[41,[28,[32,6],[[30,0,["siteSettings","bootstrap_mode_enabled"]],[30,0,["currentUser","staff"]],[30,0,["site","desktopView"]]],null],[[[1," "],[10,0],[14,0,"d-header-mode"],[12],[1,"\\n "],[8,[32,7],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[10,0],[14,0,"before-header-panel-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["before-header-panel",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'before-header-panel\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"panel"],[14,"role","navigation"],[12],[18,6,null],[13],[1,"\\n "],[10,0],[14,0,"after-header-panel-outlet"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["after-header-panel",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'after-header-panel\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@deprecatedArgs"],["header-contents__after",[28,[32,1],null,[["topicInfo","topicInfoVisible"],[[30,1],[30,2]]]],[28,[32,1],null,[["topic"],[[28,[32,2],null,[["value","message","id","since","dropFrom","silence"],[[30,0,["header","topic"]],"The argument \'topic\' is deprecated on the outlet \'header-contents__after\', use \'topicInfo\' or \'topicInfoVisible\' instead","discourse.plugin-connector.deprecated-arg.header-contents.topic","3.3.0.beta4-dev","3.4.0","discourse.header-service-topic"]]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topicInfo","@topicInfoVisible","@sidebarEnabled","@toggleNavigationMenu","@showSidebar","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/contents.js",scope:()=>[u.default,s.hash,a.default,d.default,c.default,p.default,o.and,l.default],isStrictMode:!0}),this))()}},99452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(64151),l=n(92976),u=n(27147),c=n(3737),d=n(51969),p=n(71674),h=n(76417),m=n(82739);class g extends i.default{click(e){(0,c.wantsNewWindow)(e)||(e.preventDefault(),this.args.onClick(e),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur())}static #e=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #n=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"q1RHfF4y",block:'[[[1,"\\n "],[11,"li"],[16,0,[28,[32,0],[[30,1],[52,[30,2],"active"],"header-dropdown-toggle"],null]],[4,[52,[28,[32,1],[[30,2],[30,3]],null],[50,[32,2],2,[[30,4],[28,[32,3],null,[["targetSelector"],[[30,3]]]]],null]],null,null],[12],[1,"\\n "],[8,[32,4],[[24,0,"icon btn-flat"],[16,"aria-expanded",[30,2]],[24,"aria-haspopup","true"],[16,"aria-label",[28,[32,5],[[30,5]],null]],[16,1,[30,6]],[4,[32,6],["click",[30,0,["click"]]],null]],[["@translatedTitle","@icon","@translatedLabel"],[[28,[32,5],[[30,5]],null],[30,7],[30,8]]],null],[1,"\\n\\n "],[13],[1,"\\n "]],["@className","@active","@targetSelector","@onClick","@title","@iconId","@icon","@contents"],false,["if","modifier"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/dropdown.js",scope:()=>[u.default,a.and,p.default,s.hash,l.default,d.i18n,r.on],isStrictMode:!0}),this))()}},99068:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(21959),u=n(64055),c=n(20802),d=n(45929),p=n(86211),h=n(71674),m=n(7181),g=n(76417),f=n(82739);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();toggleNavigation(){this.args.toggleNavigationMenu(this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?"hamburger":null)}static #l=(()=>dt7948.n(this.prototype,"toggleNavigation",[o.action]))();click(e){e.target.closest("a[href], .sidebar-section-header-button, .sidebar-section-link-button, .sidebar-section-link")&&this.toggleNavigation()}static #u=(()=>dt7948.n(this.prototype,"click",[o.action]))();clickOutside(e){if(e.target.classList.contains("header-cloak")&&!(0,c.prefersReducedMotion)()){let e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),n=(0,u.isDocumentRTL)()?"340px":"-340px",i=e.animate([{transform:`translate3d(${n}, 0, 0)`}],{duration:(0,d.isTesting)()?0:200,fill:"forwards",easing:"ease-in"}).finished.then(()=>{(0,d.isTesting)()?this.toggleNavigation():(0,p.default)(()=>this.toggleNavigation())}),s=t.animate([{opacity:0}],{duration:(0,d.isTesting)()?0:200,fill:"forwards",easing:"ease-in"}).finished;(0,l.YZ)(i),(0,l.YZ)(s)}else this.toggleNavigation()}static #c=(()=>dt7948.n(this.prototype,"clickOutside",[o.action]))();get forceMainSidebarPanel(){return!!this.args.sidebarEnabled&&!!this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu}static #d=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"a4v61K2j",block:'[[[1,"\\n "],[11,0],[24,0,"hamburger-dropdown-wrapper"],[17,1],[4,[32,0],["click",[30,0,["click"]]],null],[4,[32,1],[[30,0,["clickOutside"]],[28,[32,2],null,[["targetSelector","secondaryTargetSelector"],[".hamburger-panel",".hamburger-dropdown"]]]],null],[12],[1,"\\n "],[8,[32,3],null,[["@forceMainSidebarPanel"],[[30,0,["forceMainSidebarPanel"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/hamburger-dropdown-wrapper.js",scope:()=>[r.on,h.default,s.hash,m.default],isStrictMode:!0}),this))()}},21199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(21237),s=n(33130),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"OSyFyulh",block:'[[[1,"\\n"],[41,[30,1],[[[41,[30,2],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-small",[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["house"],null]],[1,"\\n"]],[]]]],[]],[[[41,[30,5],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-mobile",[30,6],[30,3],[30,7]]],null],[1,"\\n"]],[]],[[[41,[30,8],[[[1," "],[8,[32,0],null,[["@key","@url","@title","@darkUrl"],["logo-big",[30,8],[30,3],[30,9]]],null],[1,"\\n"]],[]],[[[1," "],[10,"h1"],[14,1,"site-text-logo"],[14,0,"text-logo"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]]]],["@minimized","@logoSmallUrl","@title","@logoSmallUrlDark","@showMobileLogo","@mobileLogoUrl","@mobileLogoUrlDark","@logoUrl","@logoUrlDark"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/home-logo-contents.js",scope:()=>[s.default,i.default],isStrictMode:!0}),(0,a.default)(void 0,"home-logo-contents:HomeLogoContents"))},34744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(59874),u=n(27147),c=n(3737),d=n(83357),p=n(56839),h=n(87389),m=n(21199),g=n(76417),f=n(82739);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"session",[a.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();darkModeAvailable=this.session.darkModeAvailable;get href(){return(0,d.applyValueTransformer)("home-logo-href",(0,h.default)("/"))}get showMobileLogo(){return this.site.mobileView&&this.logoResolver("mobile_logo").length>0}get logoUrl(){return this.logoResolver("logo")}get logoUrlDark(){return this.logoResolver("logo",{dark:this.darkModeAvailable})}get logoSmallUrl(){return this.logoResolver("logo_small")}get logoSmallUrlDark(){return this.logoResolver("logo_small",{dark:this.darkModeAvailable})}get mobileLogoUrl(){return this.logoResolver("mobile_logo")}get mobileLogoUrlDark(){return this.logoResolver("mobile_logo",{dark:this.darkModeAvailable})}get title(){return this.siteSettings.title}logoResolver(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=n.dark?this.siteSettings[`site_${e}_dark_url`]:this.session.defaultColorSchemeIsDark?this.siteSettings[`site_${e}_dark_url`]||this.siteSettings[`site_${e}_url`]||"":this.siteSettings[`site_${e}_url`]||"",(0,d.applyValueTransformer)("home-logo-image-url",t,{name:e,dark:n.dark})}click(e){if((0,c.wantsNewWindow)(e))return!1;e.preventDefault(),p.default.routeToTag(e.target.closest("a"))}static #l=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #u=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"u2jSwFlH",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["home-logo",[28,[32,1],null,[["minimized"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[28,[32,2],[[52,[30,1],"title--minimized"],"title"],null]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["href"]]],[4,[32,3],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["home-logo-contents",[28,[32,1],null,[["logoSmallUrl","logoSmallUrlDark","logoUrl","logoUrlDark","minimized","mobileLogoUrl","mobileLogoUrlDark","showMobileLogo","title"],[[30,0,["logoSmallUrl"]],[30,0,["logoSmallUrlDark"]],[30,0,["logoUrl"]],[30,0,["logoUrlDark"]],[30,1],[30,0,["mobileLogoUrl"]],[30,0,["mobileLogoUrlDark"]],[30,0,["showMobileLogo"]],[30,0,["title"]]]]]]],[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@logoSmallUrl","@logoSmallUrlDark","@logoUrl","@logoUrlDark","@minimized","@mobileLogoUrl","@mobileLogoUrlDark","@showMobileLogo","@title"],[[30,0,["logoSmallUrl"]],[30,0,["logoSmallUrlDark"]],[30,0,["logoUrl"]],[30,0,["logoUrlDark"]],[30,1],[30,0,["mobileLogoUrl"]],[30,0,["mobileLogoUrlDark"]],[30,0,["showMobileLogo"]],[30,0,["title"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@minimized"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/home-logo.js",scope:()=>[l.default,s.hash,u.default,r.on,m.default],isStrictMode:!0}),this))()}},33935:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{clearExtraHeaderIcons:()=>f,default:()=>_,headerIconsDAG:()=>g});var s=n(37138),r=n(70001),o=n(54729),a=n(64151),l=n(31222),u=n(87389),c=n(99452),d=n(34250),p=n(76417),h=n(82739);function m(){(i=new l.default({defaultPosition:{before:"search"}})).add("search"),i.add("hamburger",void 0,{after:"search"}),i.add("user-menu",void 0,{after:"hamburger"})}function g(){return i}function f(){m()}m();class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();static #u=(()=>dt7948.g(this.prototype,"header",[o.service]))();#tI=(()=>void dt7948.i(this,"header"))();static #c=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tV=(()=>void dt7948.i(this,"search"))();get showHamburger(){return!this.header.headerButtonsHidden.includes("menu")&&(!!this.args.sidebarEnabled&&!!this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu||!this.args.sidebarEnabled||this.site.mobileView)}get hideSearchButton(){return this.header.headerButtonsHidden.includes("search")}toggleHamburger(){this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?this.args.toggleNavigationMenu("hamburger"):this.args.toggleNavigationMenu()}static #d=(()=>dt7948.n(this.prototype,"toggleHamburger",[r.action]))();static #p=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"oNmryRfX",block:'[[[1,"\\n "],[10,"ul"],[14,0,"icons d-header-icons"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,0,["resolve"]],null,null]],null]],null],null,[[[41,[28,[32,1],[[30,1,["key"]],"search"],null],[[[41,[51,[30,0,["hideSearchButton"]]],[[[1," "],[8,[32,2],null,[["@title","@icon","@iconId","@onClick","@active","@href","@className","@targetSelector"],["search.title","magnifying-glass",[30,2],[30,3],[30,0,["search","visible"]],[28,[32,3],["/search"],null],"search-dropdown",".search-menu-panel"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[28,[32,1],[[30,1,["key"]],"hamburger"],null],[[[41,[30,0,["showHamburger"]],[[[1," "],[8,[32,2],null,[["@title","@icon","@iconId","@active","@onClick","@className"],["hamburger_menu","bars","toggle-hamburger-menu",[30,0,["header","hamburgerVisible"]],[30,0,["toggleHamburger"]],"hamburger-dropdown"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[28,[32,1],[[30,1,["key"]],"user-menu"],null],[[[41,[30,0,["currentUser"]],[[[1," "],[8,[32,4],null,[["@active","@toggleUserMenu"],[[30,0,["header","userVisible"]],[30,4]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,1,["value"]],[[[1," "],[8,[30,1,["value"]],null,null,null],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]]],[1]],null],[1," "],[13],[1,"\\n "]],["entry","@searchButtonId","@toggleSearchMenu","@toggleUserMenu"],false,["each","-track-array","if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/icons.js",scope:()=>[i,a.eq,c.default,u.default,d.default],isStrictMode:!0}),this))()}},33130:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(64151),s=n(87389),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"RILycffM",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[28,[32,1],[[30,2],[30,1]],null]],null],[[[1," "],[10,"picture"],[12],[1,"\\n "],[10,"source"],[15,"srcset",[28,[32,2],[[30,1]],null]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n "],[10,"img"],[14,1,"site-logo"],[15,0,[30,3]],[15,"src",[28,[32,2],[[30,2]],null]],[15,"width",[52,[28,[32,3],[[30,3],"logo-small"],null],"36"]],[15,"alt",[30,4]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,1,"site-logo"],[15,0,[30,3]],[15,"src",[28,[32,2],[[30,2]],null]],[15,"width",[52,[28,[32,3],[[30,3],"logo-small"],null],"36"]],[15,"alt",[30,4]],[12],[13],[1,"\\n"]],[]]]],["@darkUrl","@url","@key","@title"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/logo.js",scope:()=>[i.and,i.notEq,s.default,i.eq],isStrictMode:!0}),(0,a.default)(void 0,"logo:Logo"))},39823:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(59990),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"x466McI6",block:'[[[1,"\\n "],[11,0],[24,0,"search-menu glimmer-search-menu"],[24,"aria-live","polite"],[17,1],[12],[1,"\\n "],[8,[32,0],null,[["@closeSearchMenu"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@closeSearchMenu"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/search-menu-wrapper.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"search-menu-wrapper:SearchMenuWrapper"))},88374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(27147),l=n(21237),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();toggleWithBlur(e){this.sidebarState.adminSidebarAllowedWithLegacyNavigationMenu?this.args.toggleNavigationMenu("sidebar"):this.args.toggleNavigationMenu(),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur()}static #i=(()=>dt7948.n(this.prototype,"toggleWithBlur",[r.action]))();static #l=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"5+22QizG",block:'[[[1,"\\n "],[10,1],[14,0,"header-sidebar-toggle"],[12],[1,"\\n "],[11,"button"],[16,"title",[28,[32,0],["sidebar.title"],null]],[16,0,[28,[32,1],["btn btn-flat btn-sidebar-toggle no-text btn-icon",[52,[30,0,["site","narrowDesktopView"]],"narrow-desktop"]],null]],[16,"aria-expanded",[52,[30,1],"true","false"]],[24,"aria-controls","d-sidebar"],[4,[32,2],["click",[30,0,["toggleWithBlur"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,2]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@showSidebar","@icon"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/sidebar-toggle.js",scope:()=>[u.i18n,a.default,s.on,l.default],isStrictMode:!0}),this))()}},61176:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(55950),r=n(21237),o=n(76417),a=n(82739);class l extends i.default{get meta(){return(0,s.extractLinkMeta)(this.args.topicInfo)}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Eo/Kk45z",block:'[[[1,"\\n"],[41,[30,0,["meta"]],[[[1," "],[10,3],[14,0,"topic-featured-link"],[15,"rel",[30,0,["meta","rel"]]],[15,"target",[30,0,["meta","target"]]],[15,6,[30,0,["meta","href"]]],[12],[1,"\\n "],[1,[28,[32,0],["up-right-from-square"],null]],[1,"\\n "],[1,[30,0,["meta","domain"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/featured-link.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},29885:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(35804),u=n(64151),c=n(12223),d=n(27147),p=n(3737),h=n(40928),m=n(56839),g=n(21237),f=n(51969),_=n(59874),y=n(61176),b=n(36700),w=n(81587),k=n(76417),x=n(82739);class T extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get showPM(){return!this.args.topicInfo.is_warning&&this.args.topicInfo.isPrivateMessage}get totalParticipants(){return(this.args.topicInfo.details.allowed_users?.length||0)+(this.args.topicInfo.allowed_groups?.length||0)}get maxExtraItems(){return this.args.topicInfo.tags?.length>0?5:10}get twoRows(){return this.tags?.length||this.showPM||this.siteSettings.topic_featured_link_enabled}get tags(){if(this.args.topicInfo.get("tags"))return(0,h.default)(this.args.topicInfo)}get remainingParticipantCount(){return this.totalParticipants-this.maxExtraItems}get participants(){return[...this.args.topicInfo.details.allowed_users,...this.args.topicInfo.details.allowed_groups].slice(0,this.maxExtraItems)}get pmHref(){return this.currentUser.pmPath(this.args.topicInfo)}jumpToTopPost(e){!(0,p.wantsNewWindow)(e)&&(e.preventDefault(),this.args.topicInfo&&m.default.routeTo(this.args.topicInfo.firstPostUrl,{keepFilter:!0}))}static #l=(()=>dt7948.n(this.prototype,"jumpToTopPost",[o.action]))();static #u=(()=>(0,k.setComponentTemplate)((0,x.createTemplateFactory)({id:"Mgjfs2ML",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],[[52,[30,0,["twoRows"]],"two-rows"],"extra-info-wrapper"],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-info__before",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[10,0],[15,0,[28,[32,0],[[52,[30,0,["twoRows"]],"two-rows"],"extra-info"],null]],[12],[1,"\\n "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n "],[10,"h1"],[14,0,"header-title"],[12],[1,"\\n"],[41,[30,0,["showPM"]],[[[1," "],[10,3],[14,0,"private-message-glyph-wrapper"],[15,6,[30,0,["pmHref"]]],[15,"aria-label",[28,[32,3],["user.messages.inbox"],null]],[12],[1,"\\n "],[1,[28,[32,4],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,5],[[30,1,["fancyTitle"]],[30,1,["url"]]],null],[[[1," "],[8,[32,6],null,[["@topicInfo","@disableActions"],[[30,1],[30,2]]],null],[1,"\\n\\n "],[11,3],[24,0,"topic-link"],[16,6,[30,1,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[4,[32,7],["click",[30,0,["jumpToTopPost"]]],null],[12],[1,"\\n "],[10,1],[12],[1,[28,[32,8],[[30,1,["fancyTitle"]]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"header-topic-title-suffix"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-title-suffix",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[28,[32,9],[[30,1,["details","loaded"]],[30,1,["category"]]],null],[[[41,[28,[32,5],[[30,1,["category"]],[28,[32,9],[[28,[32,10],[[30,1,["category","isUncategorizedCategory"]]],null],[28,[32,10],[[30,0,["siteSettings","suppress_uncategorized_badge"]]],null]],null]],null],[[[1," "],[10,0],[14,0,"categories-wrapper"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-categories-wrapper",[28,[32,2],null,[["category"],[[30,1,["category"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["category","parentCategory"]],[[[41,[28,[32,5],[[30,1,["category","parentCategory","parentCategory"]],[30,0,["site","desktopView"]]],null],[[[1," "],[1,[28,[32,11],[[30,1,["category","parentCategory","parentCategory"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,11],[[30,1,["category","parentCategory"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,11],[[30,1,["category"]],[28,[32,2],null,[["hideParent"],["true"]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n "],[1,[28,[32,8],[[30,0,["tags"]]],null]],[1,"\\n"],[41,[30,0,["showPM"]],[[[1," "],[10,0],[14,0,"topic-header-participants"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["participants"]]],null]],null],null,[[[1," "],[8,[32,12],null,[["@user","@type","@username"],[[30,3],[52,[30,3,["username"]],"user","group"],[28,[32,9],[[30,3,["username"]],[30,3,["name"]]],null]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[28,[32,13],[[30,0,["totalParticipants"]],[30,0,["maxExtraItems"]]],null],[[[1," "],[11,3],[24,0,"more-participants"],[16,6,[30,1,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[4,[32,7],["click",[30,0,["jumpToTopPost"]]],null],[12],[1,"\\n +"],[1,[30,0,["remainingParticipantCount"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[8,[32,14],null,[["@topicInfo"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["header-topic-info__after",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topicInfo","@disableActions","participant"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/info.js",scope:()=>[d.default,_.default,s.hash,f.i18n,g.default,u.and,w.default,r.on,l.htmlSafe,u.or,u.not,c.default,b.default,u.gt,y.default],isStrictMode:!0}),this))()}},36700:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(64151),u=n(15767),c=n(21237),d=n(87389),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();get url(){return"user"===this.args.type?this.args.user.path:(0,d.default)(`/g/${this.args.username}`)}click(e){this.appEvents.trigger(`topic-header:trigger-${this.args.type}-card`,this.args.username,e.target,e),e.preventDefault()}static #n=(()=>dt7948.n(this.prototype,"click",[o.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"vUEnQtNr",block:'[[[1,"\\n "],[10,1],[15,0,[28,[32,0],["trigger-",[30,1],"-card"],null]],[12],[1,"\\n "],[11,3],[24,0,"icon"],[16,6,[30,0,["url"]]],[24,"data-auto-route","true"],[16,"title",[30,2]],[4,[32,1],["click",[30,0,["click"]]],null],[12],[1,"\\n"],[41,[28,[32,2],[[30,1],"user"],null],[[[1," "],[1,[28,[32,3],[[30,3,["avatar_template"]],"tiny",[28,[32,4],null,[["title"],[[30,2]]]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[12],[1,"\\n "],[1,[28,[32,5],["users"],null]],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@type","@username","@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/participant.js",scope:()=>[s.concat,r.on,l.eq,u.default,s.hash,c.default],isStrictMode:!0}),this))()}},81587:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(27147),l=n(83189),u=n(20802),c=n(21237),d=n(51969),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get canAct(){return this.currentUser&&!this.args.disableActions}get topicStatuses(){let e=[];return l.default.render(this.args.topicInfo,(t,n)=>{let i={title:(0,u.escapeExpression)((0,d.i18n)(`topic_statuses.${n}.help`))},s=["topic-status"];("unpinned"===n||"pinned"===n)&&(s.push("pin-toggle-button",n),s=s.join(" ")),e.push({attributes:i,klass:s,icon:{name:t,iconArgs:{class:"unpinned"===n?"unpinned":null}}})}),e}togglePinnedForUser(e){if(!this.canAct)return;let t=e.target.closest(".topic-statuses");t?.querySelector(".pin-toggle-button")?.contains(e.target)&&this.args.topicInfo.togglePinnedForUser()}static #n=(()=>dt7948.n(this.prototype,"togglePinnedForUser",[r.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"O2uTew4m",block:'[[[1,"\\n "],[10,1],[14,0,"topic-statuses"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["topicStatuses"]]],null]],null],null,[[[1," "],[11,1],[16,0,[28,[32,0],[[30,1,["klass"]],"topic-status"],null]],[4,[32,1],["click",[30,0,["togglePinnedForUser"]]],null],[12],[1,"\\n "],[1,[28,[32,2],[[30,1,["icon","name"]]],[["class"],[[30,1,["icon","iconArgs","class"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["status"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/status.js",scope:()=>[a.default,s.on,c.default],isStrictMode:!0}),this))()}},34250:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(64151),l=n(59874),u=n(27147),c=n(3737),d=n(51969),p=n(92121),h=n(76417),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();click(e){(0,c.wantsNewWindow)(e)||(e.preventDefault(),this.args.toggleUserMenu(),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur())}static #n=(()=>dt7948.n(this.prototype,"click",[r.action]))();static #i=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"VzqJrcgf",block:'[[[1,"\\n "],[10,"li"],[14,1,"current-user"],[15,0,[28,[32,0],[[52,[30,1],"active"],"header-dropdown-toggle current-user user-menu-panel"],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name"],["user-dropdown-button__before"]],null],[1,"\\n "],[11,"button"],[24,1,"toggle-current-user"],[24,0,"icon btn-flat"],[24,"aria-haspopup","true"],[16,"aria-expanded",[30,1]],[16,"aria-label",[28,[32,2],["user.account_possessive"],[["name"],[[28,[32,3],[[30,0,["currentUser","name"]],[30,0,["currentUser","username"]]],null]]]]],[4,[32,4],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,5],null,[["@active"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@name"],["user-dropdown-button__after"]],null],[1,"\\n "],[13],[1,"\\n "]],["@active"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown.js",scope:()=>[u.default,l.default,d.i18n,a.or,s.on,p.default],isStrictMode:!0}),this))()}},92121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(39882),r=n(54729),o=n(35804),a=n(59874),l=n(87239),u=n(83357),c=n(21237),d=n(51969),p=n(30280),h=n(76356),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get avatar(){let e=(0,l.addExtraUserClasses)(this.currentUser,{});return(0,o.htmlSafe)((0,l.renderAvatar)(this.currentUser,{imageSize:this.avatarSize,title:(0,d.i18n)("user.avatar.header_title"),template:this.currentUser.avatar_template,username:this.currentUser.username,name:this.siteSettings.enable_names&&this.currentUser.name,...e}))}get avatarSize(){return(0,u.applyValueTransformer)("header-notifications-avatar-size","medium")}get _shouldHighlightAvatar(){return!this.currentUser.read_first_notification&&!this.currentUser.enforcedSecondFactor&&!this.args.active}get isInDoNotDisturb(){return this.currentUser.isInDoNotDisturb()}static #i=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"wVPZGRDn",block:'[[[1,"\\n "],[8,[32,0],null,[["@name"],["user-dropdown-notifications__before"]],null],[1,"\\n "],[1,[30,0,["avatar"]]],[1,"\\n\\n"],[41,[30,0,["_shouldHighlightAvatar"]],[[[1," "],[8,[32,1],null,[["@id","@triggerSelector","@placement","@titleText","@contentText","@showSkipButton","@priority"],["first_notification",".header-dropdown-toggle.current-user","bottom-end",[28,[32,2],["user_tips.first_notification.title"],null],[28,[32,2],["user_tips.first_notification.content"],null],true,1000]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1," "],[8,[32,3],null,[["@timezone","@status"],[[30,0,["currentUser","user_option","timezone"]],[30,0,["currentUser","status"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1," "],[10,0],[14,0,"do-not-disturb-background"],[15,"title",[28,[32,2],["notifications.paused"],null]],[12],[1,[28,[32,4],["discourse-dnd"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","new_personal_messages_notifications_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification with-icon new-pms"],[15,"title",[28,[32,2],["notifications.tooltip.new_message_notification",[28,[32,5],null,[["count"],[[30,0,["currentUser","new_personal_messages_notifications_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["notifications.tooltip.new_message_notification",[28,[32,5],null,[["count"],[[30,0,["currentUser","new_personal_messages_notifications_count"]]]]]],null]],[12],[1,"\\n "],[1,[28,[32,4],["envelope"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","unseen_reviewable_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification with-icon new-reviewables"],[15,"title",[28,[32,2],["notifications.tooltip.new_reviewable",[28,[32,5],null,[["count"],[[30,0,["currentUser","unseen_reviewable_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["notifications.tooltip.new_reviewable",[28,[32,5],null,[["count"],[[30,0,["currentUser","unseen_reviewable_count"]]]]]],null]],[12],[1,"\\n "],[1,[28,[32,4],["flag"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["currentUser","all_unread_notifications_count"]],[[[1," "],[10,3],[14,6,"#"],[14,0,"badge-notification unread-notifications"],[15,"title",[28,[32,2],["notifications.tooltip.regular",[28,[32,5],null,[["count"],[[30,0,["currentUser","all_unread_notifications_count"]]]]]],null]],[15,"aria-label",[28,[32,2],["user.notifications",[28,[32,5],null,[["count"],[[30,0,["currentUser","all_unread_notifications_count"]]]]]],null]],[12],[1,"\\n "],[1,[30,0,["currentUser","all_unread_notifications_count"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "],[8,[32,0],null,[["@name"],["user-dropdown-notifications__after"]],null],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown/notifications.js",scope:()=>[a.default,p.default,d.i18n,h.default,c.default,s.hash],isStrictMode:!0}),this))()}},76356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(39882),s=n(70530),r=n(29166),o=n(51969),a=n(76417),l=n(82739),u=n(88606);let c=(e,t,n)=>{let i=(0,r.default)(e);if(t){let e=moment.tz(t,n).format((0,o.i18n)("dates.long_date_without_year"));i+=` ${(0,o.i18n)("until")} ${e}`}return i},d=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Z3BF1mca",block:'[[[1,"\\n "],[10,0],[14,0,"user-status-background"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["emoji"]]],[["title","alt"],[[28,[32,1],[[30,1,["description"]],[30,1,["ends_at"]],[30,2]],null],[28,[32,2],[":",[30,1,["emoji"]],":"],null]]]]],[1,"\\n "],[13],[1,"\\n"]],["@status","@timezone"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-dropdown/user-status-bubble.js",scope:()=>[s.default,c,i.concat],isStrictMode:!0}),(0,u.default)(void 0,"user-status-bubble:UserStatusBubble"))},18286:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(39882),r=n(70001),o=n(64055),a=n(20802),l=n(45929),u=n(86211),c=n(71674),d=n(95119),p=n(76417),h=n(82739);class m extends i.default{clickOutside(e){if(e.target.classList.contains("header-cloak")&&!(0,a.prefersReducedMotion)()){let e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),n=(0,o.isDocumentRTL)()?"-340px":"340px";e.animate([{transform:`translate3d(${n}, 0, 0)`}],{duration:200,fill:"forwards",easing:"ease-in"}).finished.then(()=>{(0,l.isTesting)()?this.args.toggleUserMenu():(0,u.default)(()=>this.args.toggleUserMenu())}),t.animate([{opacity:0}],{duration:200,fill:"forwards",easing:"ease-in"})}else this.args.toggleUserMenu()}static #e=(()=>dt7948.n(this.prototype,"clickOutside",[r.action]))();static #n=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"bweRAup6",block:'[[[1,"\\n "],[11,0],[24,0,"user-menu-dropdown-wrapper"],[17,1],[4,[32,0],[[30,0,["clickOutside"]],[28,[32,1],null,[["targetSelector","secondaryTargetSelector"],[".user-menu-panel",".user-menu-panel"]]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@closeUserMenu"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@toggleUserMenu"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/user-menu-wrapper.js",scope:()=>[c.default,s.hash,d.default],isStrictMode:!0}),this))()}},80956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223),r=n(9630),o=n(44331);let a=dt7948.c(class extends i.default{_highlightOnInsert(){let e=this.highlight;(0,o.default)(this.element,e)}static #e=(()=>dt7948.n(this.prototype,"_highlightOnInsert",[(0,r.observes)("highlight"),(0,r.on)("didInsertElement")]))()},[(0,s.tagName)("span")])},46340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(9630),s=n(46213);class r extends s.default{_init(){navigator.userAgent.includes("Chrome")?this.set("type","text"):this.set("type","password")}static #e=(()=>dt7948.n(this.prototype,"_init",[(0,i.on)("init")]))()}},88572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"d1KO7vXe",block:'[[[1,"\\n"],[10,"nav"],[15,0,[29,["horizontal-overflow-nav ",[52,[30,0,["hasScroll"]],"has-scroll"]]]],[15,"aria-label",[30,1]],[12],[1,"\\n"],[41,[30,0,["hasScroll"]],[[[1," "],[11,3],[24,"role","button"],[24,"data-direction","left"],[16,0,[28,[37,3],["horizontal-overflow-nav__scroll-left",[52,[30,0,["hideLeftScroll"]],"disabled"]],null]],[4,[38,4],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,4],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,4],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["chevron-left"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,"ul"],[16,0,[29,["nav-pills action-list ",[30,2]]]],[17,3],[4,[38,7],[[30,0,["checkScroll"]]],null],[4,[38,4],["scroll",[30,0,["watchScroll"]]],null],[4,[38,8],[[30,0,["scrollToActive"]]],null],[4,[38,4],["mousedown",[30,0,["scrollDrag"]]],null],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["hasScroll"]],[[[1," "],[11,3],[24,"role","button"],[16,0,[28,[37,3],["horizontal-overflow-nav__scroll-right",[52,[30,0,["hideRightScroll"]],"disabled"]],null]],[4,[38,4],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,4],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,4],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["chevron-right"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@ariaLabel","@className","&attrs","&default"],false,["nav","if","a","concat-class","on","d-icon","ul","on-resize","did-insert","yield"]]',moduleName:"discourse/components/horizontal-overflow-nav.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"hasScroll",[s.tracked]))();#tG=(()=>void dt7948.i(this,"hasScroll"))();static #i=(()=>dt7948.g(this.prototype,"hideRightScroll",[s.tracked],function(){return!1}))();#tY=(()=>void dt7948.i(this,"hideRightScroll"))();static #l=(()=>dt7948.g(this.prototype,"hideLeftScroll",[s.tracked],function(){return!0}))();#tQ=(()=>void dt7948.i(this,"hideLeftScroll"))();scrollInterval;scrollToActive(e){let t=e.querySelector("a.active");t?.scrollIntoView({block:"nearest",inline:"center"})}static #u=(()=>dt7948.n(this.prototype,"scrollToActive",[a.bind]))();checkScroll(e){this.site.mobileView||(this.watchScroll(e),this.hasScroll=e.target.scrollWidth>e.target.offsetWidth)}static #c=(()=>dt7948.n(this.prototype,"checkScroll",[a.bind]))();stopScroll(){clearInterval(this.scrollInterval)}static #d=(()=>dt7948.n(this.prototype,"stopScroll",[a.bind]))();watchScroll(e){this.site.mobileView||(e.target.offsetWidth+e.target.scrollLeft===e.target.scrollWidth?(this.hideRightScroll=!0,clearInterval(this.scrollInterval)):this.hideRightScroll=!1,0===e.target.scrollLeft?(this.hideLeftScroll=!0,clearInterval(this.scrollInterval)):this.hideLeftScroll=!1)}static #p=(()=>dt7948.n(this.prototype,"watchScroll",[a.bind]))();scrollDrag(e){if(this.site.mobileView||!this.hasScroll)return;e.preventDefault();let t=e.target.closest(".nav-pills"),n={left:t.scrollLeft,x:e.clientX},i=function(e){let i=e.clientX-n.x;t.scrollLeft=n.left-i};t.querySelectorAll("a").forEach(e=>{e.style.cursor="grabbing"}),document.addEventListener("mousemove",i),document.addEventListener("mouseup",function(){document.removeEventListener("mousemove",i),t.querySelectorAll("a").forEach(e=>{e.style.cursor="pointer"})},{once:!0})}static #h=(()=>dt7948.n(this.prototype,"scrollDrag",[a.bind]))();horizontalScroll(e){if(1!==e.which)return;let t=175,n=e.target.previousElementSibling;"left"===e.target.dataset.direction&&(t*=-1,n=e.target.nextElementSibling),n.scrollLeft+=t,this.scrollInterval=setInterval(function(){n.scrollLeft+=t},50)}static #m=(()=>dt7948.n(this.prototype,"horizontalScroll",[r.action]))()}(0,u.setComponentTemplate)(l,c)},50591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417),s=n(31800);class r extends i.default{click(e){e?.target?.tagName==="A"&&(0,s.shouldOpenInNewTab)(e.target.href)&&(0,s.openLinkInNewTab)(e,e.target)}}},11889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(68741),r=n(48605),o=n(62797),a=n(76417),l=n(82739);class u extends i.default{writeHtml(e){let t=e.contentWindow.document;t.open("text/html","replace"),t.write(this.args.html),t.close()}static #e=(()=>dt7948.n(this.prototype,"writeHtml",[o.bind]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2zu/LRV7",block:'[[[1,"\\n"],[1," "],[11,"iframe"],[24,"sandbox","allow-same-origin"],[16,0,[52,[30,1],"iframed-html"]],[17,2],[4,[32,0],[[30,0,["writeHtml"]]],null],[4,[32,1],[[30,0,["witeHtml"]],[30,1]],null],[12],[13],[1,"\\n "]],["@html","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/iframed-html.js",scope:()=>[s.default,r.default],isStrictMode:!0}),this))()}},82049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(93223);let o=(0,n(82739).createTemplateFactory)({id:"qh4eWunY",block:'[[[10,0],[14,0,"ignored-user-list-item"],[12],[1,"\\n "],[10,1],[14,0,"ignored-user-name"],[12],[1,[30,0,["item"]]],[13],[1,"\\n "],[8,[39,2],[[24,0,"remove-ignored-user no-text btn-icon"]],[["@action","@icon"],[[28,[37,3],[[28,[37,4],[[30,0],"removeIgnoredUser"],null],[30,0,["item"]]],null],"xmark"]],null],[1,"\\n"],[13]],[],false,["div","span","d-button","fn","action"]]',moduleName:"discourse/components/ignored-user-list-item.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{items=null;removeIgnoredUser(e){this.onRemoveIgnoredUser(e)}static #e=(()=>dt7948.n(this.prototype,"removeIgnoredUser",[s.action]))()},[(0,r.tagName)("div")]),l=(0,i.setComponentTemplate)(o,a)},93346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(64149),l=n(41958),u=n(51969),c=n(82049),d=n(67883),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();async removeIgnoredUser(e){this.args.items.removeObject(e);try{let t=await l.default.findByUsername(e);await t.updateNotificationLevel({level:"normal",actingUser:this.args.model})}catch(e){(0,a.popupAjaxError)(e)}}static #n=(()=>dt7948.n(this.prototype,"removeIgnoredUser",[s.action]))();newIgnoredUser(){this.modal.show(d.default,{model:{actingUser:this.args.model,ignoredUsername:null,onUserIgnored:e=>{this.args.items.addObject(e)}}})}static #i=(()=>dt7948.n(this.prototype,"newIgnoredUser",[s.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"jTcnqLwG",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"ignored-list"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[32,0],null,[["@item","@onRemoveIgnoredUser"],[[30,2],[30,0,["removeIgnoredUser"]]]],null],[1,"\\n"]],[2]],[[[1," "],[1,[28,[32,1],["user.user_notifications.ignore_no_users"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,1],["user.ignored_users_instructions"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,0,["newIgnoredUser"]],"plus","user.user_notifications.add_ignored_user"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@items","item"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/ignored-user-list.js",scope:()=>[c.default,u.i18n,o.default],isStrictMode:!0}),this))()}},79683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(21237),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"vBVgR9+4",block:'[[[1,"\\n "],[11,0],[16,0,[29,["tip ",[52,[30,1,["failed"]],"bad","good"]]]],[16,1,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,1,["reason"]],[[[1," "],[1,[28,[32,0],[[52,[30,1,["failed"]],"xmark","check"]],null]],[1,"\\n "],[1,[30,1,["reason"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@validation","@id","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/input-tip.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"input-tip:InputTip"))},29260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(5938),o=n(97355),a=n(28147),l=n(22054),u=n(20802),c=n(27174),d=n(62797),p=n(51969);let h=(0,n(82739).createTemplateFactory)({id:"W/5O4K13",block:'[[[41,[30,0,["inviteModel","error"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["errorMessage"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"body"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[41,[30,0,["inviteModel","inviteLink"]],[[[1," "],[8,[39,3],null,[["@link","@email"],[[30,0,["inviteModel","inviteLink"]],[30,0,["invitee"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"success-message"],[12],[1,"\\n "],[1,[28,[35,2],[[30,0,["successMessage"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[1," "],[10,0],[14,0,"invite-user-control"],[12],[1,"\\n "],[10,"label"],[14,0,"instructions"],[12],[1,[30,0,["inviteInstructions"]]],[13],[1,"\\n "],[10,0],[14,0,"invite-user-input-wrapper"],[12],[1,"\\n"],[41,[30,0,["allowExistingMembers"]],[[[1," "],[8,[39,5],[[24,0,"invite-user-input"]],[["@value","@onChange","@options"],[[30,0,["invitee"]],[28,[37,6],[[30,0],"updateInvitee"],null],[28,[37,7],null,[["maximum","allowEmails","excludeCurrentUser","includeMessageableGroups","filterPlaceholder","fullWidthWrap"],[1,[30,0,["canInviteViaEmail"]],true,[30,0,["isPM"]],[30,0,["placeholderKey"]],true]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[24,0,"email-or-username-input"]],[["@value","@placeholderKey"],[[30,0,["invitee"]],"topic.invite_reply.email_placeholder"]],null],[1,"\\n"]],[]]],[41,[30,0,["capabilities","hasContactPicker"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary open-contact-picker"]],[["@icon","@action"],["address-book",[30,0,["searchContact"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showGroups"]],[[[1," "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[10,"label"],[15,0,[29,["instructions ",[30,0,["showGroupsClass"]]]]],[12],[1,"\\n "],[1,[28,[35,10],["topic.automatically_add_to_groups"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,11],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["groupIds"]],"name",[28,[37,12],[[28,[37,13],[[30,0,["groupIds"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCustomMessage"]],[[[1," "],[10,0],[14,0,"show-custom-message-control"],[12],[1,"\\n "],[10,"label"],[14,0,"instructions"],[12],[1,"\\n "],[8,[39,14],[[24,0,"optional"]],[["@action","@text"],[[28,[37,6],[[30,0],"showCustomMessageBox"],null],"invite.custom_message"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["hasCustomMessage"]],[[[1," "],[8,[39,15],[[16,"placeholder",[30,0,["customMessagePlaceholder"]]]],[["@value"],[[30,0,["customMessage"]]]],null],[1,""]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["showApprovalMessage"]],[[[1," "],[10,"label"],[14,0,"instructions approval-notice"],[12],[1,"\\n "],[1,[28,[35,10],["invite.approval_not_required"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"footer"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,9],[[24,0,"btn-primary send-invite"]],[["@icon","@action","@disabled","@label"],[[30,0,["inviteIcon"]],[30,0,["createInvite"]],[30,0,["disabled"]],[30,0,["buttonTitle"]]]],null],[1,"\\n"],[41,[30,0,["showCopyInviteButton"]],[[[1," "],[8,[39,9],[[24,0,"btn-primary generate-invite-link"]],[["@icon","@action","@disabled","@label"],["link",[30,0,["generateInviteLink"]],[30,0,["disabledCopyLink"]],"user.invited.generate_link"]],null],[1,"\\n"]],[]],null]],[]]],[13]],["@closeModal"],false,["if","div","html-safe","generated-invite-link","label","email-group-user-chooser","action","hash","text-field","d-button","i18n","group-chooser","fn","mut","discourse-linked-text","textarea"]]',moduleName:"discourse/components/invite-panel.hbs",isStrictMode:!1});class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"isStaff",[(0,r.readOnly)("currentUser.staff")]))();#tJ=(()=>void dt7948.i(this,"isStaff"))();static #n=(()=>dt7948.g(this.prototype,"isAdmin",[(0,r.readOnly)("currentUser.admin")]))();#tX=(()=>void dt7948.i(this,"isAdmin"))();static #i=(()=>dt7948.g(this.prototype,"topicId",[(0,r.alias)("inviteModel.id")]))();#tZ=(()=>void dt7948.i(this,"topicId"))();static #l=(()=>dt7948.g(this.prototype,"isPM",[(0,r.equal)("inviteModel.archetype","private_message")]))();#t1=(()=>void dt7948.i(this,"isPM"))();static #u=(()=>dt7948.g(this.prototype,"showApprovalMessage",[(0,r.and)("isStaff","siteSettings.must_approve_users")]))();#t0=(()=>void dt7948.i(this,"showApprovalMessage"))();static #c=(()=>dt7948.g(this.prototype,"isPrivateTopic",[(0,r.and)("invitingToTopic","inviteModel.category.read_restricted")]))();#t3=(()=>void dt7948.i(this,"isPrivateTopic"))();static #d=(()=>dt7948.g(this.prototype,"allowExistingMembers",[(0,r.alias)("invitingToTopic")]))();#t2=(()=>void dt7948.i(this,"allowExistingMembers"))();static #p=(()=>dt7948.g(this.prototype,"customMessagePlaceholder",[(0,a.computedI18n)("invite.custom_message_placeholder")]))();#t8=(()=>void dt7948.i(this,"customMessagePlaceholder"))();groupIds=null;allGroups=null;invitee=null;isInviteeGroup=!1;hasCustomMessage=!1;customMessage=null;inviteIcon="envelope";invitingExistingUserToTopic=!1;init(){super.init(...arguments),this.setDefaultSelectedGroups(),this.setGroupOptions()}willDestroyElement(){super.willDestroyElement(...arguments),this.reset()}disabled(e,t,n,i,s,r,a){return!!(r||(0,o.isEmpty)(t)||!n&&!(0,u.emailValid)(t)||!e&&i&&(0,u.emailValid)(t)||i&&(0,o.isEmpty)(s)&&(0,u.emailValid)(t))}static #h=(()=>dt7948.n(this.prototype,"disabled",[(0,d.default)("isAdmin","invitee","invitingToTopic","isPrivateTopic","groupIds","inviteModel.saving","inviteModel.details.can_invite_to")]))();disabledCopyLink(e,t,n,i,s,r){return!!(r||n||(0,o.isEmpty)(t)||!(0,u.emailValid)(t)||!e&&i&&(0,u.emailValid)(t)||i&&(0,o.isEmpty)(s)&&(0,u.emailValid)(t))}static #m=(()=>dt7948.n(this.prototype,"disabledCopyLink",[(0,d.default)("isAdmin","invitee","inviteModel.saving","isPrivateTopic","groupIds","hasCustomMessage")]))();buttonTitle(e){return e?"topic.inviting":"topic.invite_reply.action"}static #g=(()=>dt7948.n(this.prototype,"buttonTitle",[(0,d.default)("inviteModel.saving")]))();invitingToTopic(e){return e!==this.currentUser}static #E=(()=>dt7948.n(this.prototype,"invitingToTopic",[(0,d.default)("inviteModel")]))();canInviteViaEmail(e,t){return e===this.currentUser||t}static #A=(()=>dt7948.n(this.prototype,"canInviteViaEmail",[(0,d.default)("inviteModel","inviteModel.details.can_invite_via_email")]))();showCopyInviteButton(e,t){return t&&!e}static #D=(()=>dt7948.n(this.prototype,"showCopyInviteButton",[(0,d.default)("isPM","canInviteViaEmail")]))();isGroupOwnerOrAdmin(e,t){return e||t&&t.some(e=>e.owner)}static #I=(()=>dt7948.n(this.prototype,"isGroupOwnerOrAdmin",[(0,d.default)("isAdmin","inviteModel.group_users")]))();showGroups(e,t,n,i,s,r){return e&&r&&!i&&((0,u.emailValid)(t)||n||!s)}static #G=(()=>dt7948.n(this.prototype,"showGroups",[(0,d.default)("isGroupOwnerOrAdmin","invitee","isPrivateTopic","isPM","invitingToTopic","canInviteViaEmail")]))();showCustomMessage(e){return this.inviteModel===this.currentUser||(0,u.emailValid)(e)}static #Y=(()=>dt7948.n(this.prototype,"showCustomMessage",[(0,d.default)("invitee")]))();inviteInstructions(e,t,n,i,s,r){return r?e?(0,p.i18n)("topic.invite_private.email_or_username"):t?i&&!s?(0,p.i18n)("topic.invite_reply.to_username"):(0,o.isEmpty)(n)?(0,p.i18n)("topic.invite_reply.to_topic_blank"):(0,u.emailValid)(n)?(this.set("inviteIcon","envelope"),(0,p.i18n)("topic.invite_reply.to_topic_email")):(this.set("inviteIcon","hand-point-right"),(0,p.i18n)("topic.invite_reply.to_topic_username")):(0,p.i18n)("topic.invite_reply.to_forum"):(0,p.i18n)("topic.invite_reply.discourse_connect_enabled")}static #Q=(()=>dt7948.n(this.prototype,"inviteInstructions",[(0,d.default)("isPM","invitingToTopic","invitee","isPrivateTopic","isAdmin","canInviteViaEmail")]))();showGroupsClass(e){return e?"required":"optional"}static #J=(()=>dt7948.n(this.prototype,"showGroupsClass",[(0,d.default)("isPrivateTopic")]))();successMessage(e,t,n){return this.isInviteeGroup?(0,p.i18n)("topic.invite_private.success_group"):e?(0,p.i18n)("topic.invite_private.success"):n?(0,p.i18n)("topic.invite_reply.success_existing_email",{invitee:t}):(0,u.emailValid)(t)?(0,p.i18n)("topic.invite_reply.success_email",{invitee:t}):(0,p.i18n)("topic.invite_reply.success_username")}static #X=(()=>dt7948.n(this.prototype,"successMessage",[(0,d.default)("isPM","invitee","invitingExistingUserToTopic")]))();errorMessage(e,t){return t||(e?(0,p.i18n)("topic.invite_private.error"):(0,p.i18n)("topic.invite_reply.error"))}static #Z=(()=>dt7948.n(this.prototype,"errorMessage",[(0,d.default)("isPM","ajaxError")]))();placeholderKey(e){return e?"topic.invite_private.email_or_username_placeholder":"topic.invite_reply.username_placeholder"}static #ee=(()=>dt7948.n(this.prototype,"placeholderKey",[(0,d.default)("canInviteViaEmail")]))();reset(){this.setProperties({invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,invitingExistingUserToTopic:!1,groupIds:[]}),this.inviteModel.setProperties({error:!1,saving:!1,finished:!1,inviteLink:null})}setDefaultSelectedGroups(){this.set("groupIds",[])}setGroupOptions(){c.default.findAll().then(e=>{this.set("allGroups",e.filterBy("automatic",!1))})}createInvite(){if(this.disabled)return;let e=this.groupIds,t=this.inviteModel;t.setProperties({saving:!0,error:!1});let n=e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),t.setProperties({saving:!1,error:!0})};return this.isInviteeGroup?this.inviteModel.createGroupInvite(this.invitee.trim()).then(()=>{t.setProperties({saving:!1,finished:!0}),this.inviteModel.reload().then(()=>{this.appEvents.trigger("post-stream:refresh")})}).catch(n):this.inviteModel.createInvite(this.invitee.trim(),e,this.customMessage).then(e=>{t.setProperties({saving:!1,finished:!0}),this.isPM&&e&&e.user?(this.get("inviteModel.details.allowed_users").pushObject(s.default.create(e.user)),this.appEvents.trigger("post-stream:refresh",{force:!0})):this.invitingToTopic&&(0,u.emailValid)(this.invitee.trim())&&e&&e.user&&this.set("invitingExistingUserToTopic",!0)}).catch(n)}static #et=(()=>dt7948.n(this.prototype,"createInvite",[s.action]))();generateInviteLink(){let e;if(this.disabled)return;let t=this.groupIds,n=this.inviteModel;return n.setProperties({saving:!0,error:!1}),this.invitingToTopic&&(e=this.get("inviteModel.id")),n.generateInviteLink(this.invitee.trim(),t,e).then(e=>{n.setProperties({saving:!1,finished:!0,inviteLink:e.link})}).catch(e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),n.setProperties({saving:!1,error:!0})})}static #en=(()=>dt7948.n(this.prototype,"generateInviteLink",[s.action]))();showCustomMessageBox(){this.toggleProperty("hasCustomMessage"),this.hasCustomMessage?this.inviteModel===this.currentUser?this.set("customMessage",(0,p.i18n)("invite.custom_message_template_forum")):this.set("customMessage",(0,p.i18n)("invite.custom_message_template_topic")):this.set("customMessage",null)}static #ei=(()=>dt7948.n(this.prototype,"showCustomMessageBox",[s.action]))();searchContact(){(0,l.getNativeContact)(this.capabilities,["email"],!1).then(e=>{this.set("invitee",e[0].email[0])})}static #es=(()=>dt7948.n(this.prototype,"searchContact",[s.action]))();updateInvitee(e,t){let n=t.findBy("id",e[0]);!n&&t.length&&(n="string"==typeof t[0]?{id:t[0]}:t[0]),n?this.setProperties({invitee:n.id.trim(),isInviteeGroup:n.isGroup||!1}):this.setProperties({invitee:null,isInviteeGroup:!1})}static #er=(()=>dt7948.n(this.prototype,"updateInvitee",[s.action]))()}(0,i.setComponentTemplate)(h,m)},59390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(82237),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"XNUxLWek",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[10,0],[14,0,"topic-poster"],[12],[1,"\\n "],[8,[39,3],[[16,"aria-label",[52,[30,0,["topic","lastPosterUser","username"]],[28,[37,5],["latest_poster_link"],[["username"],[[30,0,["topic","lastPosterUser","username"]]]]]]]],[["@user"],[[30,0,["topic","lastPosterUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,6],[[30,0,["topic","lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,7],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"top-row"],[12],[1,"\\n "],[1,[28,[35,8],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n "],[1,[28,[35,9],[[30,0,["topic"]]],null]],[41,[30,0,["topic","featured_link"]],[[[1,"  "],[1,[28,[35,10],[[30,0,["topic"]]],null]],[1,"\\n "]],[]],null],[8,[39,11],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["topic","category"]]],null]],[1,[28,[35,13],[[30,0,["topic"]]],[["mode"],["list"]]]],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["below-latest-topic-list-item-bottom-row","span",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"topic-stats"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n "],[1,[28,[35,8],["list/posts-count-column"],[["topic","tagName"],[[30,0,["topic"]],"div"]]]],[1,"\\n "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[15,"title",[30,0,["topic","bumpedAtTitle"]]],[12],[1,[28,[35,15],[[30,0,["topic","bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","div","user-link","if","i18n","avatar","user-avatar-flair","raw","topic-link","topic-featured-link","topic-post-badges","category-link","discourse-tags","a","format-date"]]',moduleName:"discourse/components/latest-topic-list-item.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{showEntrance=(()=>r.showEntrance)();navigateToTopic=(()=>r.navigateToTopic)();click(e){return!1!==this.showEntrance(e)&&this.unhandledRowClick(e,this.topic)}unhandledRowClick(){}unboundClassNames(e){let t=[];return e.get("category")&&t.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach(e=>t.push("tag-"+e)),["liked","archived","bookmarked","pinned","closed","visited"].forEach(n=>{e.get(n)&&t.push(n)}),t.join(" ")}static #e=(()=>dt7948.n(this.prototype,"unboundClassNames",[(0,o.default)("topic")]))()},[(0,s.classNameBindings)(":latest-topic-list-item","unboundClassNames"),(0,s.attributeBindings)("topic.id:data-topic-id")]),u=(0,i.setComponentTemplate)(a,l)},89975:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(22694),r=n(76417),o=n(82739);class a extends i.default{get users(){return this.args.users||[]}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"mDPlsLfN",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["users"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "]],["user"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/legacy-about-page-users.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},53898:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(54729),r=n(60362),o=n(87389),a=n(76417),l=n(82739);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"session",[s.service]))();#eK=(()=>void dt7948.i(this,"session"))();get isDarkImageAvailable(){return this.args.lightImg?.url&&this.args.darkImg?.url&&(this.session.defaultColorSchemeIsDark||this.session.darkModeAvailable)}get defaultImg(){return this.session.defaultColorSchemeIsDark&&this.args.darkImg?this.args.darkImg:this.args.lightImg}get darkImgCdnSrc(){return(0,o.getURLWithCDN)(this.args.darkImg.url)}static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"UCcxc1Cl",block:'[[[1,"\\n"],[41,[30,0,["isDarkImageAvailable"]],[[[1," "],[10,"picture"],[12],[1,"\\n "],[10,"source"],[15,"srcset",[30,0,["darkImgCdnSrc"]]],[15,"width",[30,1,["width"]]],[15,"height",[30,1,["height"]]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,0,["defaultImg","url"]],[30,0,["defaultImg","width"]],[30,0,["defaultImg","height"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,3,["url"]],[[[1," "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,3,["url"]],[30,3,["width"]],[30,3,["height"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],["@darkImg","&attrs","@lightImg"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/light-dark-img.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},5833:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(42433),r=n(14682),o=n.n(r);let a=(0,n(82739).createTemplateFactory)({id:"GR2yg6/c",block:'[[[41,[30,0,["showInput"]],[[[1," "],[18,1,null],[1,"\\n"]],[]],[[[1," "],[10,3],[14,6,""],[12],[1,"\\n"],[41,[30,0,["key"]],[[[1," "],[1,[28,[35,3],[[30,0,["key"]]],null]],[1,"\\n"]],[]],null],[41,[30,0,["icon"]],[[[1," "],[1,[28,[35,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],["&default"],false,["if","yield","a","i18n","d-icon"]]',moduleName:"discourse/components/link-to-input.hbs",isStrictMode:!1});class l extends i.default{showInput=!1;click(){return this.onClick(),(0,s.schedule)("afterRender",()=>{o()(this.element).find("input").focus()}),!1}}(0,i.setComponentTemplate)(a,l)},82219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(71597),r=n(31800);class o extends i.default{click(e){if(e?.target?.tagName==="A")return r.default.trackClick(e,(0,s.getOwner)(this))}}},90265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(70001),r=n(69863);class o extends i.default.extend(r.default){init(){super.init(...arguments),this.set("eyelineSelector",this.selector)}loadMore(){this.action()}static #e=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()}},79040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(77315),o=n(41949),a=n(70264),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"loadingSlider",[s.service]))();#t4=(()=>void dt7948.i(this,"loadingSlider"))();get shouldDisplay(){let{mode:e,loading:t,stillLoading:n}=this.loadingSlider;return"spinner"===e&&t||"slider"===e&&n}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"17XtLotn",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"route-loading-spinner"],[12],[1,[32,0]],[13],[1,"\\n "],[1,[28,[32,1],["has-route-loading-spinner"],null]],[1,"\\n "],[1,[32,2]],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/loading-slider-fallback-spinner.js",scope:()=>[a.default,r.default,o.default],isStrictMode:!0}),this))()}},15817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(35804),l=n(97355),u=n(39203),c=n(6610),d=n(64149),p=n(20802),h=n(2262),m=n(51969);let g=(0,n(82739).createTemplateFactory)({id:"CUqBqoX+",block:'[[[10,"form"],[14,1,"login-form"],[14,"method","post"],[12],[1,"\\n "],[10,0],[14,1,"credentials"],[15,0,[30,0,["credentialsClass"]]],[12],[1,"\\n "],[11,0],[24,0,"input-group"],[4,[38,2],[[30,0,["passkeyConditionalLogin"]]],null],[12],[1,"\\n "],[8,[39,3],[[24,1,"login-account-name"],[16,0,[28,[37,4],[[30,1]],null]],[16,"autocomplete",[52,[30,2],"username webauthn","username"]],[24,"autocorrect","off"],[24,"autocapitalize","off"],[16,"disabled",[30,3]],[24,"autofocus","autofocus"],[24,"tabindex","1"],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,6],["input",[30,4]],null],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@type"],[[30,1],"email"]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-name"],[12],[1,"\\n "],[1,[28,[35,8],["login.email_placeholder"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,5],[[[1," "],[11,3],[24,6,""],[16,0,[52,[30,1],"","no-login-filled"]],[24,"tabindex","3"],[24,1,"email-login-link"],[4,[38,6],["click",[30,0,["emailLogin"]]],null],[12],[1,"\\n "],[1,[28,[35,8],["email_login.login_link"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,10],[[16,"disabled",[30,0,["disableLoginFields"]]],[24,"autocomplete","current-password"],[24,"maxlength","200"],[24,"tabindex","1"],[24,1,"login-account-password"],[16,0,[28,[37,4],[[30,6]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@capsLockOn"],[[30,6],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-password"],[12],[1,"\\n "],[1,[28,[35,8],["login.password"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[8,[39,11],[[24,"tabindex","3"]],[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"login__password-links"],[12],[1,"\\n "],[11,3],[24,6,""],[24,1,"forgot-password-link"],[24,"tabindex","2"],[4,[38,6],["click",[30,0,["handleForgotPassword"]]],null],[12],[1,"\\n "],[1,[28,[35,8],["forgot_password.action"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,13],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,8],["login.caps_lock_warning"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showSecondFactorForm"]],[[[1," "],[8,[39,14],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,7],[30,8],[30,9],[30,10],true]],[["default"],[[[[1,"\\n"],[41,[30,11],[[[1," "],[8,[39,15],null,[["@setShowSecurityKey","@setShowSecondFactor","@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[37,16],[[28,[37,17],[[30,11]],null]],null],[28,[37,16],[[28,[37,17],[[30,3]],null]],null],[28,[37,16],[[28,[37,17],[[30,7]],null]],null],[30,9],[30,10],[30,12],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,18],[[16,2,[30,8]],[24,1,"login-second-factor"],[4,[38,6],["keydown",[30,0,["loginOnEnter"]]],null],[4,[38,6],["input",[28,[37,19],[[28,[37,16],[[28,[37,17],[[30,8]],null]],null]],null]],null],[4,[38,6],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@secondFactorMethod"],[[30,7]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[13]],["@loginName","@canUsePasskeys","@showSecondFactor","@loginNameChanged","@canLoginLocalWithEmail","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@showSecurityKey","@otherMethodAllowed"],false,["form","div","did-insert","input","value-entered","if","on","label","i18n","a","password-field","toggle-password-mask","unless","d-icon","second-factor-form","security-key-form","fn","mut","second-factor-input","with-event-value"]]',moduleName:"discourse/components/local-login-form.hbs",isStrictMode:!1});var f=n(76417);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"maskPassword",[s.tracked],function(){return!0}))();#t7=(()=>void dt7948.i(this,"maskPassword"))();static #i=(()=>dt7948.g(this.prototype,"processingEmailLink",[s.tracked],function(){return!1}))();#t9=(()=>void dt7948.i(this,"processingEmailLink"))();static #l=(()=>dt7948.g(this.prototype,"capsLockOn",[s.tracked],function(){return!1}))();#t5=(()=>void dt7948.i(this,"capsLockOn"))();get credentialsClass(){return this.args.showSecondFactor||this.args.showSecurityKey?"hidden":""}get showSecondFactorForm(){return this.args.showSecondFactor||this.args.showSecurityKey}get disableLoginFields(){return this.args.showSecondFactor||this.args.showSecurityKey}passkeyConditionalLogin(){this.args.canUsePasskeys&&this.args.passkeyLogin("conditional")}static #u=(()=>dt7948.n(this.prototype,"passkeyConditionalLogin",[r.action]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #c=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[r.action]))();togglePasswordMask(){this.maskPassword=!this.maskPassword}static #d=(()=>dt7948.n(this.prototype,"togglePasswordMask",[r.action]))();async emailLogin(e){if(e?.preventDefault(),!this.processingEmailLink){if((0,l.isEmpty)(this.args.loginName)){this.args.flashChanged((0,m.i18n)("login.blank_username")),this.args.flashTypeChanged("info");return}try{this.processingEmailLink=!0;let e=await (0,c.ajax)("/u/email-login",{data:{login:this.args.loginName.trim()},type:"POST"}),t=(0,p.escapeExpression)(this.args.loginName),n=t.match(/@/)?"email_login.complete_email":"email_login.complete_username";if(!1===e.user_found)this.args.flashChanged((0,a.htmlSafe)((0,m.i18n)(`${n}_not_found`,{email:t,username:t}))),this.args.flashTypeChanged("error");else{let i=e.hide_taken?"":"_found";this.args.flashChanged((0,a.htmlSafe)((0,m.i18n)(`${n}${i}`,{email:t,username:t}))),this.args.flashTypeChanged("success")}}catch(e){(0,d.popupAjaxError)(e)}finally{this.processingEmailLink=!1}}}static #p=(()=>dt7948.n(this.prototype,"emailLogin",[r.action]))();loginOnEnter(e){"Enter"===e.key&&this.args.login()}static #h=(()=>dt7948.n(this.prototype,"loginOnEnter",[r.action]))();handleForgotPassword(e){e?.preventDefault(),this.modal.show(u.default,{model:{emailOrUsername:this.args.loginName}})}static #m=(()=>dt7948.n(this.prototype,"handleForgotPassword",[r.action]))();authenticateSecurityKey(){(0,h.getWebauthnCredential)(this.args.securityKeyChallenge,this.args.securityKeyAllowedCredentialIds,e=>{this.args.securityKeyCredentialChanged(e),this.args.login()},e=>{this.args.flashChanged(e),this.args.flashTypeChanged("error")})}static #g=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[r.action]))()}(0,f.setComponentTemplate)(g,_)},38801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(93223),r=n(2262),o=n(93512),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"fxp2jgOr",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[11,"button"],[16,0,[29,["btn btn-social ",[30,1,["name"]]]]],[16,"aria-label",[30,1,["screenReaderTitle"]]],[24,4,"button"],[4,[38,3],["click",[28,[37,4],[[30,0],[30,0,["externalLogin"]],[30,1]],null]],null],[12],[1,"\\n"],[41,[30,1,["isGoogle"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,1,["icon"]],[[[1," "],[1,[28,[35,7],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["right-to-bracket"],null]],[1,"\\n "]],[]]]],[]]],[1," "],[10,1],[14,0,"btn-social-title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showPasskeysButton"]],[[[1," "],[8,[39,9],null,[["@passkeyLogin"],[[30,0,["passkeyLogin"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,10],null,[["@name"],["after-login-buttons"]],null]],["b"],false,["each","-track-array","button","on","action","if","google-icon","d-icon","span","passkey-login-button","plugin-outlet"]]',moduleName:"discourse/components/login-buttons.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{elementId="login-buttons";hidden(e,t,n){return 0===e&&!t&&!n}static #e=(()=>dt7948.n(this.prototype,"hidden",[(0,a.default)("buttons.length","showLoginWithEmailLink","showPasskeysButton")]))();multiple(e){return e>1}static #n=(()=>dt7948.n(this.prototype,"multiple",[(0,a.default)("buttons.length")]))();buttons(){return(0,o.findAll)()}static #i=(()=>dt7948.n(this.prototype,"buttons",[a.default]))();showPasskeysButton(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&"login"===this.context&&(0,r.isWebauthnSupported)()}static #l=(()=>dt7948.n(this.prototype,"showPasskeysButton",[a.default]))()},[(0,s.classNameBindings)("hidden","multiple")]),c=(0,i.setComponentTemplate)(l,u)},61891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(92976),s=n(59874),r=n(51969),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"72uhm36W",block:'[[[1,"\\n "],[10,0],[14,0,"login-page-cta"],[12],[1,"\\n "],[10,0],[14,0,"login-page-cta__buttons"],[12],[1,"\\n"],[41,[30,1],[[[41,[51,[30,2]],[[[1," "],[8,[32,0],[[24,1,"login-button"],[24,"form","login-form"],[24,0,"btn-large btn-primary login-page-cta__login"],[16,"tabindex",[52,[51,[30,3]],"2"]]],[["@action","@disabled","@isLoading","@label"],[[30,4],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[14,0,"login-page-cta__no-account-yet"],[12],[1,"\\n "],[1,[28,[32,1],["create_account.no_account_yet"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-large btn-flat login-page-cta__signup"],[24,1,"new-account-link"],[24,"tabindex","3"]],[["@action","@disabled","@label"],[[30,9],[30,6],"create_account.title"]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName"],["login-after-modal-footer","div"]],null],[1,"\\n "],[13],[1,"\\n"]],["@canLoginLocal","@showSecurityKey","@showSecondFactor","@login","@loginDisabled","@loggingIn","@loginButtonLabel","@showSignupLink","@createAccount"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/login-page-cta.js",scope:()=>[i.default,r.i18n,s.default],isStrictMode:!0}),(0,l.default)(void 0,"login-page-cta:LoginPageCta"))},46749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"90fk+JWw",block:'[[[10,0],[15,0,[28,[37,1],["menu-panel",[30,1],[30,2]],null]],[14,"data-max-width","500"],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@panelClass","@animationClass","&default"],false,["div","concat-class","yield"]]',moduleName:"discourse/components/menu-panel.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"menu-panel"))},81100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(82237);let o=(0,n(82739).createTemplateFactory)({id:"0OPO7UJ9",block:'[[[10,"td"],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"topic-inset"],[12],[1,"\\n "],[1,[28,[35,2],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n "],[1,[28,[35,3],[[30,0,["topic"]]],null]],[1,"\\n"],[41,[30,0,["topic","unseen"]],[[[1," "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[15,0,[28,[37,6],[[30,0,["topic","last_posted_at"]]],null]],[15,"title",[28,[37,7],[[30,0,["topic","last_posted_at"]]],null]],[12],[1,[28,[35,8],[[30,0,["topic","last_posted_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[10,"td"],[14,0,"num posts"],[12],[1,[28,[35,2],["list/post-count-or-badges"],[["topic","postBadgesEnabled"],[[30,0,["topic"]],"true"]]]],[13]],[],false,["td","div","raw","topic-link","if","span","cold-age-class","raw-date","format-age"]]',moduleName:"discourse/components/mobile-category-topic.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{click=(()=>r.showEntrance)()},[(0,s.classNameBindings)(":category-topic-link","topic.archived","topic.visited"),(0,s.tagName)("tr")]),l=(0,i.setComponentTemplate)(o,a)},9759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(42433),o=n(54729),a=n(93223),l=n(9630),u=n(14682),c=n.n(u);let d=(0,n(82739).createTemplateFactory)({id:"Dj5HUi/x",block:'[[[41,[30,0,["site","mobileView"]],[[[41,[30,0,["selectedHtml"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"expander"],[4,[38,3],["click",[30,0,["toggleExpanded"]]],null],[12],[1,"\\n "],[10,1],[14,0,"selection"],[12],[1,[28,[35,5],[[30,0,["selectedHtml"]]],null]],[13],[1,"\\n "],[1,[28,[35,6],["caret-down"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"ul"],[15,0,[29,["drop ",[52,[30,0,["expanded"]],"expanded"]]]],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","li","a","on","span","html-safe","d-icon","ul","yield"]]',moduleName:"discourse/components/mobile-nav.hbs",isStrictMode:!1}),p=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();selectedHtml=null;_init(){if(this.site.desktopView){let e=this.desktopClass;e&&(e=e.split(" "),this.set("classNames",e))}}static #n=(()=>dt7948.n(this.prototype,"_init",[(0,l.on)("init")]))();currentRouteChanged(){this.set("expanded",!1),(0,r.next)(()=>this._updateSelectedHtml())}_updateSelectedHtml(){if(!this.element||this.isDestroying||this.isDestroyed)return;let e=this.element.querySelector(".active");e&&e.innerHTML&&this.set("selectedHtml",e.innerHTML)}didInsertElement(){super.didInsertElement(...arguments),this._updateSelectedHtml(),this.router.on("routeDidChange",this,this.currentRouteChanged)}willDestroyElement(){super.willDestroyElement(...arguments),this.router.off("routeDidChange",this,this.currentRouteChanged)}toggleExpanded(e){e?.preventDefault(),this.toggleProperty("expanded"),(0,r.next)(()=>{this.expanded&&c()(window).off("click.mobile-nav").on("click.mobile-nav",e=>{if(!this.element||this.isDestroying||this.isDestroyed)return;let t=this.element.querySelector(".expander");t&&e.target!==t&&(this.set("expanded",!1),c()(window).off("click.mobile-nav"))})})}static #i=(()=>dt7948.n(this.prototype,"toggleExpanded",[s.action]))()},[(0,a.classNames)("mobile-nav"),(0,a.tagName)("ul")]),h=(0,i.setComponentTemplate)(d,p)},25928:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(39882),r=n(70001),o=n(68741),a=n(54729),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();closeModal(e){this.modal.close(e)}static #n=(()=>dt7948.n(this.prototype,"closeModal",[r.action]))();static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"RMgTCABg",block:'[[[1,"\\n "],[11,0],[24,0,"modal-container"],[4,[32,0],[[30,0,["modal","setContainerElement"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["modal","activeModal"]],[[[42,[28,[31,2],[[28,[31,2],[[28,[32,1],[[30,0,["modal","activeModal"]]],null]],null]],null],null,[[[1," "],[8,[30,1,["component"]],null,[["@model","@closeModal"],[[30,1,["opts","model"]],[30,0,["closeModal"]]]],null],[1,"\\n"]],[1]],null]],[]],null],[1," "]],["activeModal"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal-container.js",scope:()=>[o.default,s.array],isStrictMode:!0}),this))()}},88754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(16513),l=n(92976),u=n(72491),c=n(64149),d=n(48400),p=n(51969),h=n(92e3),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"login",[o.service]))();#t6=(()=>void dt7948.i(this,"login"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"newEmail",[s.tracked],function(){return this.args.model.newEmail}))();#ne=(()=>void dt7948.i(this,"newEmail"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();get submitDisabled(){return this.newEmail===this.args.model.currentEmail}async changeEmail(){try{await (0,d.changeEmail)({username:this.login?.loginName,password:this.login?.loginPassword,email:this.newEmail}),this.modal.show(h.default,{model:{currentEmail:this.newEmail}})}catch(e){this.flash=(0,c.extractError)(e)}}static #u=(()=>dt7948.n(this.prototype,"changeEmail",[r.action]))();updateNewEmail(e){this.newEmail=e}static #c=(()=>dt7948.n(this.prototype,"updateNewEmail",[r.action]))();static #d=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"1DsATJ8H",block:'[[[1,"\\n "],[8,[32,0],null,[["@closeModal","@title","@flash"],[[30,1],[28,[32,1],["login.change_email"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[8,[32,2],null,[["@email","@updateNewEmail"],[[30,2,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n "],[8,[32,3],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/activation-edit.js",scope:()=>[u.default,p.i18n,a.default,l.default],isStrictMode:!0}),this))()}},92e3:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"617GTxQz",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["log_in"],null],[30,1]]],[["body"],[[[[1,"\\n "],[1,[28,[35,3],[[28,[37,1],["login.sent_activation_email_again"],[["currentEmail"],[[30,2,["currentEmail"]]]]]],null]],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","html-safe"]]',moduleName:"discourse/components/modal/activation-resent.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"activation-resent"))},1349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"NBNGi8vL",block:'[[[8,[39,0],[[24,0,"add-pm-participants"]],[["@title","@closeModal","@bodyClass"],[[28,[37,1],[[30,1,["title"]]],null],[30,2],"invite modal-panel"]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@inviteModel","@closeModal"],[[30,1,["inviteModel"]],[30,2]]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n",":body","invite-panel"]]',moduleName:"discourse/components/modal/add-pm-participants.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"add-pm-participants"))},87603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(64149);let u=(0,n(82739).createTemplateFactory)({id:"9cLu1DJE",block:'[[[8,[39,0],null,[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["user.associated_accounts.confirm_modal_title"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]],[30,2],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["existing_account_description"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["user.associated_accounts.confirm_description.disconnect"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["existing_account_description"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,1,["account_description"]],[[[1," "],[1,[28,[35,1],["user.associated_accounts.confirm_description.account_specific"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["account_description"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["user.associated_accounts.confirm_description.generic"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@label","@action","@icon"],["user.associated_accounts.connect",[30,0,["finishConnect"]],"plug"]],null],[1,"\\n "],[8,[39,7],null,[["@label","@action"],["user.associated_accounts.cancel",[30,2]]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n","concat",":body","if","p",":footer","d-button"]]',moduleName:"discourse/components/modal/associate-account-confirm.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();async finishConnect(){try{let e=await (0,a.ajax)({url:`/associate/${encodeURIComponent(this.args.model.token)}`,type:"POST"});e.success?(this.router.transitionTo("preferences.account",this.currentUser.findDetails()),this.args.closeModal()):this.flash=e.error}catch(e){(0,l.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"finishConnect",[r.action]))()}(0,c.setComponentTemplate)(u,d)},95694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(56839);let u=(0,n(82739).createTemplateFactory)({id:"ATyzCCVc",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.auth_tokens.was_this_you"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.auth_tokens.was_this_you_description"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,5],[[28,[37,1],["user.second_factor.extended_description"],null]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],["user.auth_tokens.details"],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],["far-clock"],null]],[1," "],[1,[28,[35,10],[[30,2,["seen_at"]]],null]],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],["location-dot"],null]],[1," "],[1,[30,2,["location"]]],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[35,9],[[30,2,["icon"]]],null]],[1,"\\n "],[1,[28,[35,1],["user.auth_tokens.browser_and_device"],[["browser","device"],[[30,2,["browser"]],[30,2,["device"]]]]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["latestPost"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,1],["user.auth_tokens.latest_post"],null]],[1,"\\n"],[1," "],[11,3],[24,6,""],[4,[38,13],["click",[30,0,["toggleExpanded"]]],null],[4,[38,14],null,null],[12],[1,"\\n "],[1,[28,[35,9],[[52,[30,0,["expanded"]],"caret-up","caret-down"]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["expanded"]],[[[1," "],[10,"blockquote"],[12],[1,[28,[35,5],[[30,0,["latestPost","cooked"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,"blockquote"],[12],[1,[28,[35,5],[[30,0,["latestPost","excerpt"]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,17],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,1],"lock","user.auth_tokens.secure_account"]],null],[1,"\\n "],[8,[39,18],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","p","html-safe","h3","ul","li","d-icon","format-date","if","a","on","auto-focus","blockquote",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/auth-token.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"expanded",[s.tracked],function(){return!1}))();#t=(()=>void dt7948.i(this,"expanded"))();static #i=(()=>dt7948.g(this.prototype,"latestPost",[s.tracked],function(){return null}))();#nn=(()=>void dt7948.i(this,"latestPost"))();constructor(){super(...arguments),this.fetchActivity()}async fetchActivity(){let e=await (0,a.ajax)((0,l.userPath)(`${this.currentUser.username_lower}/activity.json`));e.length>0&&(this.latestPost=e[0])}static #l=(()=>dt7948.n(this.prototype,"fetchActivity",[r.action]))();toggleExpanded(e){e?.preventDefault(),this.expanded=!this.expanded}static #u=(()=>dt7948.n(this.prototype,"toggleExpanded",[r.action]))()}(0,c.setComponentTemplate)(u,d)},54130:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(64149),u=n(67816),c=n(45929);let d=(0,n(82739).createTemplateFactory)({id:"6koSvamt",block:'[[[8,[39,0],[[24,0,"avatar-selector-modal"]],[["@bodyClass","@closeModal","@title"],["avatar-selector",[30,1],[28,[37,1],["user.change_avatar.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["showSelectableAvatars"]],[[[1," "],[10,0],[14,0,"selectable-avatars"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["selectableAvatars"]]],null]],null],null,[[[1," "],[11,3],[24,6,""],[24,0,"selectable-avatar"],[4,[38,8],["click",[28,[37,9],[[30,0,["selectAvatar"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,10],[[30,2],"huge"],null]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["showCustomAvatarSelector"]],[[[1," "],[10,"h4"],[12],[1,[28,[35,1],["user.change_avatar.use_custom"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["showCustomAvatarSelector"]],[[[41,[30,0,["user","use_logo_small_as_avatar"]],[[[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["logo-small","logo","logo",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","logo-small"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["siteSettings","site_logo_small_url"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.logo_small"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["system-avatar","avatar","system",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","system-avatar"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["user","system_avatar_template"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.letter_based"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["allowAvatarUpload"]],[[[1," "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["gravatar","avatar","gravatar",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","gravatar"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["user","gravatar_avatar_template"]],"large"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,15],[[28,[37,1],["user.change_avatar.gravatar"],[["gravatarName","gravatarBaseUrl","gravatarLoginUrl"],[[30,0,["siteSettings","gravatar_name"]],[30,0,["siteSettings","gravatar_base_url"]],[30,0,["siteSettings","gravatar_login_url"]]]]]],null]],[1,"\\n "],[1,[30,0,["user","email"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,16],[[24,0,"btn-default avatar-selector-refresh-gravatar"]],[["@action","@translatedTitle","@disabled","@icon"],[[30,0,["refreshGravatar"]],[28,[37,1],["user.change_avatar.refresh_gravatar_title"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]],[30,0,["gravatarRefreshDisabled"]],"arrows-rotate"]],null],[1,"\\n\\n"],[41,[30,0,["gravatarFailed"]],[[[1," "],[10,2],[14,0,"error"],[12],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.gravatar_failed"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n "],[8,[39,12],null,[["@id","@name","@value","@selection","@onChange"],["uploaded-avatar","avatar","custom",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","uploaded-avatar"],[12],[1,"\\n"],[41,[30,0,["user","custom_avatar_template"]],[[[1," "],[1,[28,[35,10],[[30,0,["user","custom_avatar_template"]],"large"],null]],[1,"\\n "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar_empty"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,18],[[24,0,"avatar-uploader"]],[["@user_id","@uploadedAvatarTemplate","@uploadedAvatarId","@uploading","@id","@done"],[[30,0,["user","id"]],[30,0,["user","custom_avatar_template"]],[30,0,["user","custom_avatar_upload_id"]],[30,0,["uploading"]],"avatar-uploader",[30,0,["uploadComplete"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["showCustomAvatarSelector"]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveAvatarSelection"]],[30,0,["submitDisabled"]],"save"]],null],[1,"\\n "],[8,[39,20],null,[["@close"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","avatar"],false,["d-modal","i18n",":body","if","div","each","-track-array","a","on","fn","bound-avatar-template","h4","radio-button","label","span","html-safe","d-button","p","avatar-uploader",":footer","d-modal-cancel"]]',moduleName:"discourse/components/modal/avatar-selector.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"gravatarRefreshDisabled",[s.tracked],function(){return!1}))();#ni=(()=>void dt7948.i(this,"gravatarRefreshDisabled"))();static #l=(()=>dt7948.g(this.prototype,"gravatarFailed",[s.tracked],function(){return!1}))();#ns=(()=>void dt7948.i(this,"gravatarFailed"))();static #u=(()=>dt7948.g(this.prototype,"uploading",[s.tracked],function(){return!1}))();#nr=(()=>void dt7948.i(this,"uploading"))();static #c=(()=>dt7948.g(this.prototype,"_selected",[s.tracked],function(){return null}))();#no=(()=>void dt7948.i(this,"_selected"))();get user(){return this.args.model.user}get selected(){return this._selected??this.defaultSelection}set selected(e){this._selected=e}get submitDisabled(){return"logo"===this.selected||this.uploading}get selectableAvatars(){let e=this.siteSettings.selectable_avatars_mode,t=this.siteSettings.selectable_avatars;return"disabled"!==e?t?t.split("|"):[]:null}get showSelectableAvatars(){return"disabled"!==this.siteSettings.selectable_avatars_mode}get showCustomAvatarSelector(){let e=this.siteSettings.selectable_avatars_mode;switch(e){case"no_one":return!1;case"tl1":case"tl2":case"tl3":case"tl4":let t=parseInt(e.replace("tl",""),10);return this.user.admin||this.user.moderator||this.user.trust_level>=t;case"staff":return this.user.admin||this.user.moderator;default:return!0}}get defaultSelection(){return this.user.use_logo_small_as_avatar?"logo":this.user.avatar_template===this.user.system_avatar_template?"system":this.user.avatar_template===this.user.gravatar_avatar_template?"gravatar":"custom"}get selectedUploadId(){switch(this.selected){case"system":return this.user.system_avatar_upload_id;case"gravatar":return this.user.gravatar_avatar_upload_id;default:return this.user.custom_avatar_upload_id}}get allowAvatarUpload(){return this.currentUser.can_upload_avatar&&(0,u.allowsImages)(this.currentUser.staff,this.siteSettings)}onSelectedChanged(e){this.selected=e}static #d=(()=>dt7948.n(this.prototype,"onSelectedChanged",[r.action]))();async selectAvatar(e,t){t?.preventDefault();try{await this.user.selectAvatar(e),window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"selectAvatar",[r.action]))();uploadComplete(){this.selected="custom"}static #h=(()=>dt7948.n(this.prototype,"uploadComplete",[r.action]))();async refreshGravatar(){this.gravatarRefreshDisabled=!0;try{let e=await (0,a.ajax)(`/user_avatar/${this.user.username}/refresh_gravatar.json`,{type:"POST"});e.gravatar_upload_id?(this.gravatarFailed=!1,this.user.setProperties({gravatar_avatar_upload_id:e.gravatar_upload_id,gravatar_avatar_template:e.gravatar_avatar_template})):this.gravatarFailed=!0}finally{this.gravatarRefreshDisabled=!1}}static #m=(()=>dt7948.n(this.prototype,"refreshGravatar",[r.action]))();async saveAvatarSelection(){try{await this.user.pickAvatar(this.selectedUploadId,this.selected),(0,c.isTesting)()||window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #g=(()=>dt7948.n(this.prototype,"saveAvatarSelection",[r.action]))()}(0,p.setComponentTemplate)(d,h)},18430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(37138),s=n(28564),r=n(70001),o=n(5938),a=n(54729),l=n(90945),u=n.n(l),c=n(35223),d=n(72491),p=n(64149),h=n(90808),m=n(56907),g=n(62167),f=n(32644),_=n(90069),y=n(10157),b=n(86211),w=n(51969);let k=(0,n(82739).createTemplateFactory)({id:"PCF57C36",block:'[[[8,[39,0],[[24,1,"bookmark-reminder-modal"],[24,0,"bookmark-reminder-modal"],[16,"data-bookmark-id",[30,0,["bookmark","id"]]],[4,[38,1],[[30,0,["didInsert"]]],null]],[["@closeModal","@title","@flash","@flashType"],[[30,0,["closingModal"]],[30,0,["modalTitle"]],[30,0,["flash"]],"error"]],[["headerPrimaryAction","body","footer"],[[[[1,"\\n "],[8,[39,3],[[24,0,"btn-transparent btn-primary"]],[["@label","@action","@title"],["bookmarks.save",[30,0,["saveAndClose"]],"modal.close"]],null],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"control-group bookmark-name-wrap"],[12],[1,"\\n "],[8,[39,6],[[24,1,"bookmark-name"],[24,3,"bookmark-name"],[24,0,"bookmark-name"],[16,"placeholder",[28,[37,7],["post.bookmarks.name_placeholder"],null]],[16,"aria-label",[28,[37,7],["post.bookmarks.name_input_label"],null]]],[["@value"],[[30,0,["bookmark","name"]]]],null],[1,"\\n "],[8,[39,3],[[24,0,"bookmark-options-button"]],[["@icon","@action","@ariaLabel","@title"],["gear",[30,0,["toggleShowOptions"]],"post.bookmarks.options","post.bookmarks.options"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showOptions"]],[[[1," "],[10,0],[14,0,"bookmark-options-panel"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark_auto_delete_preference"],[12],[1,[28,[35,7],["bookmarks.auto_delete_preference.label"],null]],[13],[1,"\\n "],[8,[39,10],[[24,0,"bookmark-option-selector"]],[["@content","@value","@id","@onChange"],[[30,0,["autoDeletePreferences"]],[30,0,["bookmark","autoDeletePreference"]],"bookmark-auto-delete-preference",[28,[37,11],[[28,[37,12],[[30,0,["bookmark","autoDeletePreference"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showExistingReminderAt"]],[[[1," "],[10,0],[14,0,"alert alert-info existing-reminder-at-alert"],[12],[1,"\\n "],[1,[28,[35,13],["far-clock"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["bookmarks.reminders.existing_reminder"],[["at_date_time"],[[30,0,["existingReminderAtFormatted"]]]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,7],["post.bookmarks.set_reminder"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["userHasTimezoneSet"]],[[[1," "],[8,[39,15],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@customLabels","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["prefilledDatetime"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,16],[[28,[37,7],["bookmarks.no_timezone"],[["basePath"],[[28,[37,17],null,null]]]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,3],[[24,1,"save-bookmark"],[24,0,"btn-primary"]],[["@label","@action"],["bookmarks.save",[30,0,["saveAndClose"]]]],null],[1,"\\n "],[8,[39,19],null,[["@close"],[[30,0,["closeWithoutSavingBookmark"]]]],null],[1,"\\n"],[41,[30,0,["showDelete"]],[[[1," "],[8,[39,3],[[24,1,"delete-bookmark"],[24,0,"delete-bookmark btn-danger"]],[["@icon","@action","@ariaLabel","@title"],["trash-can",[30,0,["delete"]],"post.bookmarks.actions.delete_bookmark.name","post.bookmarks.actions.delete_bookmark.name"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],[],false,["d-modal","did-insert",":headerPrimaryAction","d-button",":body","div","input","i18n","if","label","combo-box","fn","mut","d-icon","span","time-shortcut-picker","html-safe","base-path",":footer","d-modal-cancel"]]',moduleName:"discourse/components/modal/bookmark.hbs",isStrictMode:!1});var x=n(76417);let T={enter:{handler:"saveAndClose"},"d d":{handler:"delete"}};class S extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"bookmarkApi",[a.service]))();#na=(()=>void dt7948.i(this,"bookmarkApi"))();static #u=(()=>dt7948.g(this.prototype,"postDetectedLocalDate",[s.tracked],function(){return null}))();#nl=(()=>void dt7948.i(this,"postDetectedLocalDate"))();static #c=(()=>dt7948.g(this.prototype,"postDetectedLocalTime",[s.tracked],function(){return null}))();#nu=(()=>void dt7948.i(this,"postDetectedLocalTime"))();static #d=(()=>dt7948.g(this.prototype,"postDetectedLocalTimezone",[s.tracked],function(){return null}))();#nc=(()=>void dt7948.i(this,"postDetectedLocalTimezone"))();static #p=(()=>dt7948.g(this.prototype,"prefilledDatetime",[s.tracked],function(){return null}))();#nd=(()=>void dt7948.i(this,"prefilledDatetime"))();static #h=(()=>dt7948.g(this.prototype,"flash",[s.tracked],function(){return null}))();#nt=(()=>void dt7948.i(this,"flash"))();static #m=(()=>dt7948.g(this.prototype,"userTimezone",[s.tracked],function(){return this.currentUser.user_option.timezone}))();#np=(()=>void dt7948.i(this,"userTimezone"))();static #g=(()=>dt7948.g(this.prototype,"showOptions",[s.tracked],function(){return!!this.args.model.bookmark.id}))();#nh=(()=>void dt7948.i(this,"showOptions"))();static #E=(()=>dt7948.g(this.prototype,"userHasTimezoneSet",[(0,o.notEmpty)("userTimezone")]))();#nm=(()=>void dt7948.i(this,"userHasTimezoneSet"))();static #A=(()=>dt7948.g(this.prototype,"showDelete",[(0,o.notEmpty)("bookmark.id")]))();#ng=(()=>void dt7948.i(this,"showDelete"))();static #D=(()=>dt7948.g(this.prototype,"editingExistingBookmark",[(0,o.notEmpty)("bookmark.id")]))();#nf=(()=>void dt7948.i(this,"editingExistingBookmark"))();static #I=(()=>dt7948.g(this.prototype,"existingBookmarkHasReminder",[(0,o.and)("bookmark.id","bookmark.reminderAt")]))();#n_=(()=>void dt7948.i(this,"existingBookmarkHasReminder"))();static #G=(()=>dt7948.g(this.prototype,"_closeWithoutSaving",[s.tracked],function(){return!1}))();#ny=(()=>void dt7948.i(this,"_closeWithoutSaving"))();static #Y=(()=>dt7948.g(this.prototype,"_savingBookmarkManually",[s.tracked],function(){return!1}))();#nb=(()=>void dt7948.i(this,"_savingBookmarkManually"))();static #Q=(()=>dt7948.g(this.prototype,"_saving",[s.tracked],function(){return!1}))();#nv=(()=>void dt7948.i(this,"_saving"))();static #J=(()=>dt7948.g(this.prototype,"_deleting",[s.tracked],function(){return!1}))();#nw=(()=>void dt7948.i(this,"_deleting"))();_itsatrap=(()=>new(u()))();willDestroy(){super.willDestroy(...arguments),this._itsatrap?.destroy(),this._itsatrap=null,m.default.unpause()}get bookmark(){return this.args.model.bookmark}get modalTitle(){return(0,w.i18n)(this.bookmark.id?"bookmarks.edit":"bookmarks.create")}get autoDeletePreferences(){return Object.keys(y.AUTO_DELETE_PREFERENCES).map(e=>({id:y.AUTO_DELETE_PREFERENCES[e],name:(0,w.i18n)(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))}get showExistingReminderAt(){return this.bookmark.reminderAt&&Date.parse(this.bookmark.reminderAt)>new Date().getTime()}get existingReminderAtFormatted(){return(0,h.formattedReminderTime)(this.bookmark.reminderAt,this.userTimezone)}get timeOptions(){let e=(0,f.defaultTimeShortcuts)(this.userTimezone);return this.showPostLocalDate&&e.push({icon:"globe-americas",id:f.TIME_SHORTCUT_TYPES.POST_LOCAL_DATE,label:"time_shortcut.post_local_date",time:this.#nk(),timeFormatKey:"dates.long_no_year",hidden:!1}),e}get showPostLocalDate(){return!(!this.postDetectedLocalTime||!this.postDetectedLocalDate||this.#nk()<(0,_.now)(this.userTimezone))}get hiddenTimeShortcutOptions(){return this.editingExistingBookmark&&!this.existingBookmarkHasReminder?[f.TIME_SHORTCUT_TYPES.NONE]:[]}get customTimeShortcutLabels(){let e={};return this.existingBookmarkHasReminder&&(e[f.TIME_SHORTCUT_TYPES.NONE]="bookmarks.remove_reminder_keep_bookmark"),e}didInsert(){(0,b.default)(()=>{this.site.isMobileDevice&&document.getElementById("bookmark-name").blur()}),this.args.model.bookmark.id||document.getElementById("tap_tile_none").classList.add("active"),this.#nx(),this.#nT(),this.#nS()}static #X=(()=>dt7948.n(this.prototype,"didInsert",[r.action]))();saveAndClose(){if(this.flash=null,!this._saving&&!this._deleting)return this._saving=!0,this._savingBookmarkManually=!0,this.#nC().then(()=>this.args.closeModal()).catch(e=>this.#nE(e)).finally(()=>{this._saving=!1})}static #Z=(()=>dt7948.n(this.prototype,"saveAndClose",[r.action]))();toggleShowOptions(){this.showOptions=!this.showOptions}static #ee=(()=>dt7948.n(this.prototype,"toggleShowOptions",[r.action]))();onTimeSelected(e,t){if(this.bookmark.selectedReminderType=e,this.bookmark.selectedDatetime=t,this.bookmark.reminderAt=t,![f.TIME_SHORTCUT_TYPES.CUSTOM,f.TIME_SHORTCUT_TYPES.RELATIVE].includes(e))return this.saveAndClose()}static #et=(()=>dt7948.n(this.prototype,"onTimeSelected",[r.action]))();closingModal(e){e.initiatedBy!==d.CLOSE_INITIATED_BY_CLICK_OUTSIDE||this._closeWithoutSaving||this._savingBookmarkManually?this.args.closeModal(e):this.#nC().catch(e=>this.#nE(e)).then(()=>{this.args.closeModal(e)})}static #en=(()=>dt7948.n(this.prototype,"closingModal",[r.action]))();closeWithoutSavingBookmark(){this._closeWithoutSaving=!0,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}static #ei=(()=>dt7948.n(this.prototype,"closeWithoutSavingBookmark",[r.action]))();delete(){if(!this.bookmark.id)return;this._deleting=!0;let e=()=>{this._closeWithoutSaving=!0,this.#nA().then(()=>{this._deleting=!1,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}).catch(e=>this.#nE(e))};this.existingBookmarkHasReminder?this.dialog.deleteConfirm({message:(0,w.i18n)("bookmarks.confirm_delete"),didConfirm:()=>e()}):e()}static #es=(()=>dt7948.n(this.prototype,"delete",[r.action]))();#nk(){let e=(0,_.parseCustomDatetime)(this.postDetectedLocalDate,this.postDetectedLocalTime,this.userTimezone,this.postDetectedLocalTimezone);return this.postDetectedLocalTime?e:(0,_.startOfDay)(e)}#nC(){return this.bookmark.selectedReminderType!==f.TIME_SHORTCUT_TYPES.CUSTOM||this.bookmark.reminderAtISO?this.editingExistingBookmark?this.bookmarkApi.update(this.bookmark).then(()=>{this.args.model.afterSave?.(this.bookmark)}):this.bookmarkApi.create(this.bookmark).then(()=>{this.args.model.afterSave?.(this.bookmark)}):c.Promise.reject((0,w.i18n)("bookmarks.invalid_custom_datetime"))}#nA(){return this.bookmarkApi.delete(this.bookmark.id).then(e=>{this.args.model.afterDelete?.(e,this.bookmark.id)})}#nE(e){this._savingBookmarkManually=!1,"string"==typeof e?this.flash=(0,g.sanitize)(e):this.flash=(0,g.sanitize)((0,p.extractError)(e))}#nx(){m.default.pause(),Object.keys(T).forEach(e=>{this._itsatrap.bind(e,()=>(this[T[e].handler](),!1))})}#nT(){this.existingBookmarkHasReminder&&this.editingExistingBookmark&&(this.prefilledDatetime=this.bookmark.reminderAt,this.bookmark.selectedDatetime=(0,_.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone))}#nS(){if("Post"!==this.bookmark.bookmarkableType)return;let e=document.querySelector(`[data-post-id="${this.bookmark.bookmarkableId}"]`),t=e?.querySelector(".discourse-local-date");t&&(this.postDetectedLocalDate=t.dataset.date,this.postDetectedLocalTime=t.dataset.time,this.postDetectedLocalTimezone=t.dataset.timezone)}}(0,x.setComponentTemplate)(k,S)},41069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBulkDropdownAction:()=>E,default:()=>A});var i=n(37138),s=n(28564),r=n(76417),o=n(87075),a=n(70001),l=n(71597),u=n(54729),c=n(35804),d=n(35223),p=n(35384),h=n(92976),m=n(72491),g=n(25581),f=n(12223),_=n(18523),y=n(88253),b=n(46606),w=n(59481),k=n(51969),x=n(37192),T=n(94642),S=n(82739);let C={};function E(e,t){C[e]=t}class A extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[u.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"toasts",[u.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #i=(()=>dt7948.g(this.prototype,"activeComponent",[s.tracked],function(){return null}))();#nD=(()=>void dt7948.i(this,"activeComponent"))();static #l=(()=>dt7948.g(this.prototype,"tags",[s.tracked],function(){return[]}))();#M=(()=>void dt7948.i(this,"tags"))();static #u=(()=>dt7948.g(this.prototype,"categoryId",[s.tracked]))();#nI=(()=>void dt7948.i(this,"categoryId"))();static #c=(()=>dt7948.g(this.prototype,"loading",[s.tracked]))();#k=(()=>void dt7948.i(this,"loading"))();static #d=(()=>dt7948.g(this.prototype,"errors",[s.tracked]))();#nP=(()=>void dt7948.i(this,"errors"))();static #p=(()=>dt7948.g(this.prototype,"isSilent",[s.tracked],function(){return!1}))();#nM=(()=>void dt7948.i(this,"isSilent"))();static #h=(()=>dt7948.g(this.prototype,"closeNote",[s.tracked],function(){return null}))();#nF=(()=>void dt7948.i(this,"closeNote"))();notificationLevelId=null;constructor(){super(...arguments),"set-component"===this.model.initialAction&&this.model.initialActionLabel in C&&C[this.model.initialActionLabel]({setComponent:this.setComponent.bind(this)})}async perform(e){this.model.bulkSelectHelper.selected.length>20&&(this.showProgress=!0);try{return await this._processChunks(e)}catch{this.errors=!0,this.showToast()}finally{this.processedTopicCount=0,this.showProgress=!1}}_generateTopicChunks(e){let t=0,n=[];for(;tasync()=>{let n=await b.default.bulkOperation(t,e,s);return this.processedTopicCount+=t.length,n});return new d.Promise((e,n)=>{let s=async()=>{if(0===r.length)return e(i.map(e=>t.findBy("id",e)));let o=r.shift();try{let e=await o();e?.topic_ids&&i.push(...e.topic_ids),s()}catch{n()}};s()})}setComponent(e){this.activeComponent=e}static #m=(()=>dt7948.n(this.prototype,"setComponent",[a.action]))();registerCustomAction(e){this.customAction=e}static #g=(()=>dt7948.n(this.prototype,"registerCustomAction",[a.action]))();performAction(){switch(this.loading=!0,this.model.action){case"close":this.forEachPerformed({type:"close"},e=>e.set("closed",!0));break;case"archive":this.forEachPerformed({type:"archive"},e=>e.set("archived",!0));break;case"archive_messages":case"move_messages_to_inbox":let e=(0,l.getOwner)(this).lookup("controller:user-private-messages"),t={type:this.model.action};e.isGroup&&(t.group=e.groupFilter),this.performAndRefresh(t);break;case"unlist":this.forEachPerformed({type:"unlist"},e=>e.set("unlisted",!0));break;case"relist":this.forEachPerformed({type:"relist"},e=>e.set("unlisted",!1));break;case"append-tags":this.performAndRefresh({type:"append_tags",tags:this.tags});break;case"replace-tags":this.performAndRefresh({type:"change_tags",tags:this.tags});break;case"remove-tags":this.performAndRefresh({type:"remove_tags"});break;case"delete":this.performAndRefresh({type:"delete"});break;case"reset-bump-dates":this.performAndRefresh({type:"reset_bump_dates"});break;case"defer":this.performAndRefresh({type:"destroy_post_timing"});break;case"update-notifications":this.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId});break;case"update-category":this.forEachPerformed({type:"change_category",category_id:this.categoryId},e=>e.set("category_id",this.categoryId));break;default:this.customAction?this.customAction(this.performAndRefresh.bind(this)):C[this.model.initialActionLabel](this)}}static #E=(()=>dt7948.n(this.prototype,"performAction",[a.action]))();showToast(){this.loading=!1,this.errors?this.toasts.error({duration:3e3,data:{message:(0,k.i18n)("generic_error")}}):this.toasts.success({duration:3e3,data:{message:(0,k.i18n)("topics.bulk.completed")}})}async forEachPerformed(e,t){let n=await this.perform(e);n&&(n.forEach(t),this.model.refreshClosure?.(),this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast())}static #A=(()=>dt7948.n(this.prototype,"forEachPerformed",[a.action]))();async performAndRefresh(e){await this.perform(e),this.model.refreshClosure?.().then(()=>{this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast()})}static #D=(()=>dt7948.n(this.prototype,"performAndRefresh",[a.action]))();get isTagAction(){return"append-tags"===this.model.action||"replace-tags"===this.model.action}get isNotificationAction(){return"update-notifications"===this.model.action}get isCategoryAction(){return"update-category"===this.model.action}get isCloseAction(){return"close"===this.model.action}updateCloseNote(e){e.preventDefault(),this.closeNote=e.target.value}static #I=(()=>dt7948.n(this.prototype,"updateCloseNote",[a.action]))();get model(){return this.args.model}get notificationLevels(){return _.topicLevels.map(e=>({id:e.id.toString(),name:(0,k.i18n)(`topic.notifications.${e.key}.title`),description:(0,k.i18n)(`topic.notifications.${e.key}.description`)}))}get soleCategoryId(){return 1===this.model.bulkSelectHelper.selectedCategoryIds.length?this.model.bulkSelectHelper.selectedCategoryIds[0]:null}get soleCategory(){return this.soleCategoryId?y.default.findById(this.soleCategoryId):null}get soleCategoryBadgeHTML(){return(0,f.categoryBadgeHTML)(this.soleCategory,{allowUncategorized:!0})}get showSoleCategoryTip(){return this.soleCategory&&this.isTagAction}onCategoryChange(e){this.categoryId=e}static #G=(()=>dt7948.n(this.prototype,"onCategoryChange",[a.action]))();static #Y=(()=>(0,r.setComponentTemplate)((0,S.createTemplateFactory)({id:"W3G6Lkiq",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"topic-bulk-actions-modal -large"]],[["@title","@subtitle","@closeModal"],[[30,1,["title"]],[30,1,["description"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[8,[32,1],null,[["@isLoading","@title"],[[30,0,["loading"]],[28,[32,2],["topics.bulk.performing"],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"topic-bulk-actions-modal__selection-info"],[12],[1,"\\n\\n"],[41,[30,0,["showSoleCategoryTip"]],[[[1," "],[1,[28,[32,3],[[28,[32,2],["topics.bulk.selected_sole_category"],[["count"],[[30,1,["bulkSelectHelper","selected","length"]]]]]],null]],[1,"\\n "],[1,[28,[32,3],[[30,0,["soleCategoryBadgeHTML"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,2],["topics.bulk.selected"],[["count"],[[30,1,["bulkSelectHelper","selected","length"]]]]]],null]],[1,"\\n\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isCategoryAction"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,4],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onCategoryChange"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isNotificationAction"]],[[[1," "],[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["notificationLevels"]]],null]],null],null,[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"radio notification-level-radio checkbox-label"],[12],[1,"\\n "],[8,[32,5],null,[["@value","@name","@selection"],[[30,3,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n "],[10,"strong"],[12],[1,[30,3,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[32,3],[[30,3,["description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isTagAction"]],[[[1," "],[10,2],[12],[8,[32,6],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["soleCategoryId"]]]],null],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["activeComponent"]],[[[1," "],[46,[30,0,["activeComponent"]],null,[["onRegisterAction"],[[30,0,["registerCustomAction"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isCloseAction"]],[[[1," "],[10,0],[14,0,"bulk-close-note-section"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[32,2],["topic_bulk_actions.close_topics.note"],null]],[1," "],[10,1],[14,0,"label-optional"],[12],[1,[28,[32,2],["topic_bulk_actions.close_topics.optional"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,"textarea"],[24,1,"bulk-close-note"],[4,[32,7],["input",[30,0,["updateCloseNote"]]],null],[4,[32,8],null,null],[12],[1,[30,0,["closeNote"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,1,["allowSilent"]],[[[1," "],[10,0],[14,0,"topic-bulk-actions-options"],[12],[1,"\\n "],[10,"label"],[14,"for","topic-bulk-action-options__silent"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,9],[[24,1,"topic-bulk-action-options__silent"]],[["@type","@checked"],["checkbox",[30,0,["isSilent"]]]],null],[1,[28,[32,2],["topics.bulk.silent"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,10],[[24,0,"btn-transparent d-modal-cancel"],[24,1,"bulk-topics-cancel"]],[["@action","@label"],[[30,2],"cancel"]],null],[1,"\\n "],[8,[32,10],[[24,1,"bulk-topics-confirm"],[24,0,"btn-primary"]],[["@action","@disabled","@icon","@label"],[[30,0,["performAction"]],[30,0,["loading"]],"check","topics.bulk.confirm"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal","level"],false,["if","each","-track-array","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/bulk-topic-actions.js",scope:()=>[m.default,p.default,k.i18n,c.htmlSafe,x.default,g.default,T.default,o.on,w.default,r.Input,h.default],isStrictMode:!0}),this))()}},2995:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(97355),a=n(56839),l=n(46606),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"nLTMr7NG",block:'[[[8,[39,0],[[24,0,"change-ownership-modal"]],[["@bodyClass","@closeModal","@title","@flash","@flashType"],["change-ownership",[30,1],[28,[37,1],["topic.change_owner.title"],null],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,1],[[52,[30,0,["selectedPostsUsername"]],"topic.change_owner.instructions","topic.change_owner.instructions_without_old_user"]],[["count","old_user"],[[30,0,["selectedPostsCount"]],[30,0,["selectedPostsUsername"]]]]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[13],[1,"\\n "],[8,[39,8],null,[["@value","@autofocus","@onChange","@options"],[[30,0,["newOwner"]],true,[30,0,["updateNewOwner"]],[28,[37,9],null,[["maximum","filterPlaceholder"],[1,"topic.change_owner.placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"],[4,[38,12],["click",[30,0,["changeOwnershipOfPosts"]]],null]],[["@disabled","@label"],[[30,0,["buttonDisabled"]],[52,[30,0,["saving"]],"saving","topic.change_owner.action"]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","span","html-safe","if","form","label","email-group-user-chooser","hash",":footer","d-button","on"]]',moduleName:"discourse/components/modal/change-owner.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #n=(()=>dt7948.g(this.prototype,"newOwner",[s.tracked],function(){return null}))();#nO=(()=>void dt7948.i(this,"newOwner"))();static #i=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();get buttonDisabled(){return this.saving||(0,o.isEmpty)(this.newOwner)}get selectedPostsUsername(){return this.args.model.selectedPostsUsername}get selectedPostIds(){return this.args.model.selectedPostIds}get selectedPostsCount(){return this.args.model.selectedPostsCount}async changeOwnershipOfPosts(){this.saving=!0;let e={post_ids:this.selectedPostIds,username:this.newOwner};try{await l.default.changeOwners(this.args.model.topic.id,e),this.args.closeModal(),this.args.model.deselectAll(),this.args.model.multiSelect&&this.args.model.toggleMultiSelect(),a.default.routeTo(this.args.model.topic.url)}catch{this.flash=(0,u.i18n)("topic.change_owner.error"),this.saving=!1}return!1}static #l=(()=>dt7948.n(this.prototype,"changeOwnershipOfPosts",[r.action]))();async updateNewOwner(e){this.newOwner=e.firstObject}static #u=(()=>dt7948.n(this.prototype,"updateNewOwner",[r.action]))()}(0,d.setComponentTemplate)(c,p)},41919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(97355),a=n(62167);let l=(0,n(82739).createTemplateFactory)({id:"mR64gSYI",block:'[[[8,[39,0],[[24,0,"change-post-notice-modal"]],[["@title","@closeModal"],[[52,[30,1,["post","notice"]],[28,[37,2],["post.controls.change_post_notice"],null],[28,[37,2],["post.controls.add_post_notice"],null]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[12],[8,[39,5],null,[["@value"],[[30,0,["notice"]]]],null],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@label","@action","@disabled"],[[52,[30,0,["saving"]],"saving","save"],[28,[37,8],[[30,0,["setNotice"]],[30,0,["notice"]]],null],[30,0,["disabled"]]]],null],[1,"\\n"],[41,[30,1,["post","notice"]],[[[1," "],[8,[39,7],[[24,0,"btn-danger"]],[["@label","@action","@disabled"],["post.controls.delete_post_notice",[30,0,["setNotice"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@close"],[[30,2]]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal","if","i18n",":body","form","textarea",":footer","d-button","fn","d-modal-cancel"]]',moduleName:"discourse/components/modal/change-post-notice.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"post",[s.tracked],function(){return this.args.model.post}))();#nL=(()=>void dt7948.i(this,"post"))();static #n=(()=>dt7948.g(this.prototype,"notice",[s.tracked],function(){return this.args.model.post.notice?.raw??""}))();#nR=(()=>void dt7948.i(this,"notice"))();static #i=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();resolve=this.args.model.resolve;reject=this.args.model.reject;get disabled(){return this.saving||(0,o.isEmpty)(this.notice)||this.notice===this.post.notice?.raw}saveNotice(){this.setNotice(this.notice)}static #l=(()=>dt7948.n(this.prototype,"saveNotice",[r.action]))();deleteNotice(){this.setNotice()}static #u=(()=>dt7948.n(this.prototype,"deleteNotice",[r.action]))();setNotice(e){let{resolve:t,reject:n}=this;this.saving=!0,this.resolve=null,this.reject=null,this.post.updatePostField("notice",e).then(()=>{if(e)return(0,a.cook)(e,{features:{onebox:!1}})}).then(t=>this.post.set("notice",t?{type:"custom",raw:e,cooked:t.toString()}:null)).then(t,n).finally(()=>this.args.closeModal())}static #c=(()=>dt7948.n(this.prototype,"setNotice",[r.action]))()}(0,u.setComponentTemplate)(l,c)},70774:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(97355),l=n(56839),u=n(46606),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"UYyHshxo",block:'[[[8,[39,0],null,[["@bodyClass","@closeModal","@flash","@title"],["change-timestamp",[30,1],[30,0,["flash"]],[28,[37,1],["topic.change_timestamp.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.change_timestamp.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[15,0,[29,["alert alert-error ",[52,[51,[30,0,["validTimestamp"]]],"hidden"]]]],[12],[1,"\\n "],[1,[28,[35,1],["topic.change_timestamp.invalid_timestamp"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,6],null,[["@value","@containerId","@onSelect"],[[28,[37,7],[[30,0,["date"]]],null],"date-container",[28,[37,8],[[28,[37,9],[[30,0,["date"]]],null]],null]]],null],[1,"\\n "],[8,[39,10],null,[["@type","@value"],["time",[30,0,["time"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"date-container"],[12],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,13],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["changeTimestamp"]],[52,[30,0,["saving"]],"saving","topic.change_timestamp.action"]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","p","unless","form","date-picker-past","readonly","fn","mut","input","div",":footer","d-button","if"]]',moduleName:"discourse/components/modal/change-timestamp.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #n=(()=>dt7948.g(this.prototype,"date",[s.tracked],function(){return moment().format("YYYY-MM-DD")}))();#nU=(()=>void dt7948.i(this,"date"))();static #i=(()=>dt7948.g(this.prototype,"time",[s.tracked]))();#nj=(()=>void dt7948.i(this,"time"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();get createdAt(){return moment(`${this.date} ${this.time}`,"YYYY-MM-DD HH:mm:ss")}get validTimestamp(){return 0>moment().diff(this.createdAt,"minutes")}get buttonDisabled(){return this.saving||this.validTimestamp||(0,a.isEmpty)(this.date)}async changeTimestamp(){this.saving=!0;try{await u.default.changeTimestamp(this.args.model.topic.id,this.createdAt.unix()),this.args.closeModal(),(0,o.next)(()=>l.default.routeTo(this.args.model.topic.url))}catch{this.flash=(0,c.i18n)("topic.change_timestamp.error")}finally{this.saving=!1}}static #u=(()=>dt7948.n(this.prototype,"changeTimestamp",[r.action]))()}(0,p.setComponentTemplate)(d,h)},29978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(64149);let l=(0,n(82739).createTemplateFactory)({id:"gaTB2bbf",block:'[[[8,[39,0],[[24,0,"convert-to-public-topic"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.make_public.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,1],["topic.make_public.choose_category"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,4],null,[["@value","@onChange"],[[30,0,["publicCategoryId"]],[28,[37,5],[[28,[37,6],[[30,0,["publicCategoryId"]]],null]],null]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["makePublic"]],"composer.modal_ok",[30,0,["saving"]]]],null],[1,"\\n "],[8,[39,8],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","category-chooser","fn","mut",":footer","d-button"]]',moduleName:"discourse/components/modal/convert-to-public-topic.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"publicCategoryId",[s.tracked]))();#nB=(()=>void dt7948.i(this,"publicCategoryId"))();static #i=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();async makePublic(){let{topic:e}=this.args.model;try{this.saving=!0,await e.convertTopic("public",{categoryId:this.publicCategoryId}),e.set("archetype","regular"),e.set("category_id",this.publicCategoryId),this.appEvents.trigger("header:show-topic",e),this.args.closeModal()}catch(e){this.flash=(0,a.extractError)(e)}finally{this.saving=!1}}static #u=(()=>dt7948.n(this.prototype,"makePublic",[r.action]))()}(0,u.setComponentTemplate)(l,c)},45744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var i=n(89711),s=n(76417),r=n(70001),o=n(5938),a=n(54729),l=n(97355),u=n(9630),c=n(35223),d=n(6610),p=n(28147),h=n(84266),m=n(56839),g=n(20802),f=n(66380),_=n(68358),y=n(60568),b=n(35217),w=n(93512),k=n(41958),x=n(84262),T=n(62797),S=n(51969);let C=(0,n(82739).createTemplateFactory)({id:"5RfUMMe/",block:'[[[8,[39,0],[[24,0,"create-account -large"],[24,"aria-labelledby","create-account-title"],[4,[38,1],["keydown",[30,0,["actionOnEnter"]]],null],[4,[38,1],["click",[30,0,["selectKitFocus"]]],null]],[["@closeModal","@bodyClass","@flash","@flashType"],[[30,1],[30,0,["modalBodyClasses"]],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n\\n "],[10,0],[15,0,[28,[37,5],[[52,[30,0,["site","desktopView"]],"login-left-side"],[30,0,["model","authOptions","auth_provider"]]],null]],[12],[1,"\\n "],[8,[39,7],null,[["@step"],["signup"]],null],[1,"\\n "],[8,[39,8],[[24,1,"create-account-title"]],[["@header"],[[28,[37,9],["create_account.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-header-bottom",[28,[37,10],null,[["showLogin"],[[28,[37,11],["showLogin"],null]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showCreateForm"]],[[[1," "],[10,"form"],[14,1,"login-form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1," "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,14],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n "],[8,[39,15],[[16,"disabled",[30,0,["emailDisabled"]]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation account-email-validation-more-info"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[24,3,"email"],[24,1,"new-account-email"],[16,0,[28,[37,16],[[30,0,["model","accountEmail"]]],null]],[4,[38,1],["focusout",[30,0,["checkEmailAvailability"]]],null],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@type","@value"],["email",[30,0,["model","accountEmail"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n "],[1,[28,[35,9],["user.email.title"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showEmailValidation"]],[[[1," "],[8,[39,18],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"account-email-validation-more-info"],[12],[1,"\\n"],[41,[30,0,["siteSettings","show_signup_form_email_instructions"]],[[[1," "],[1,[28,[35,9],["user.email.instructions"],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n "],[8,[39,15],[[16,"disabled",[30,0,["usernameDisabled"]]],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation username-validation-more-info"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"],[24,3,"username"],[24,1,"new-account-username"],[16,0,[28,[37,16],[[30,0,["model","accountUsername"]]],null]],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["model","accountUsername"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n "],[1,[28,[35,9],["user.username.title"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showUsernameInstructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"username-validation-more-info"],[12],[1,"\\n "],[1,[28,[35,9],["user.username.instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[8,[39,18],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["fullnameRequired"]],[[[1," "],[8,[39,19],[[24,0,"input-group create-account__fullname required"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["model","authOptions"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1," "],[8,[39,20],[[24,"autocomplete","current-password"],[24,"aria-describedby","password-validation password-validation-more-info"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]],[24,1,"new-account-password"],[16,0,[28,[37,16],[[30,0,["accountPassword"]]],null]],[16,4,[52,[30,0,["maskPassword"]],"password","text"]],[4,[38,1],["focusout",[30,0,["togglePasswordValidation"]]],null],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value","@capsLockOn"],[[30,0,["accountPassword"]],[30,0,["capsLockOn"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n "],[1,[28,[35,9],["user.password.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,21],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n"],[41,[30,0,["showPasswordValidation"]],[[[1," "],[8,[39,18],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","show_signup_form_password_instructions"]],[[[1," "],[10,1],[14,0,"more-info"],[14,1,"password-validation-more-info"],[12],[1,"\\n "],[1,[30,0,["passwordInstructions"]]],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[10,0],[15,0,[28,[37,5],["caps-lock-warning",[52,[51,[30,0,["capsLockOn"]]],"hidden"]],null]],[12],[1,"\\n "],[1,[28,[35,23],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[35,9],["login.caps_lock_warning"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,"\\n "],[1,[28,[35,9],["user.password_confirmation.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,24],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n "],[8,[39,15],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1," "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n "],[8,[39,15],[[24,1,"inviteCode"],[16,0,[28,[37,16],[[30,0,["inviteCode"]]],null]],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,"\\n "],[1,[28,[35,9],["user.invite_code.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"more-info"],[12],[1,"\\n "],[1,[28,[35,9],["user.invite_code.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[28,[37,25],[[30,0,["showFullname"]],[28,[37,26],[[30,0,["fullnameRequired"]]],null]],null],[[[1," "],[8,[39,19],[[24,0,"input-group create-account__fullname"]],[["@nameValidation","@nameTitle","@accountName","@nameDisabled","@onFocusIn"],[[30,0,["nameValidation"]],[30,0,["nameTitle"]],[30,0,["accountName"]],[30,0,["nameDisabled"]],[30,0,["scrollInputIntoView"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1," "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,28],[[28,[37,28],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,29],[[16,0,[28,[37,16],[[30,2,["value"]]],null]],[4,[38,1],["focusin",[30,0,["scrollInputIntoView"]]],null]],[["@field","@value","@validation"],[[30,2,["field"]],[30,2,["value"]],[30,2,["validation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["create-account-after-user-fields",[28,[37,10],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[8,[39,30],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["model","skipConfirmation"]],[[[1," "],[1,[28,[35,31],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"login-or-separator"],[12],[10,1],[12],[1,"\\n "],[1,[28,[35,9],["login.or"],null]],[13],[13]],[]],null],[1,"\\n "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,32],null,[["@externalLogin","@context"],[[30,0,["externalLogin"]],"create-account"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[28,[37,25],[[30,0,["showCreateForm"]],[30,0,["site","mobileView"]]],null],[[[1," "],[8,[39,30],null,[["@formSubmitted","@hasAuthOptions","@createAccount","@submitDisabled","@disclaimerHtml"],[[30,0,["formSubmitted"]],[30,0,["hasAuthOptions"]],[30,0,["createAccount"]],[30,0,["submitDisabled"]],[30,0,["disclaimerHtml"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","f"],false,["d-modal","on",":body","plugin-outlet","div","concat-class","if","signup-progress-bar","welcome-header","i18n","hash","route-action","form","span","html-safe","input","value-entered","label","input-tip","fullname-input","password-field","toggle-password-mask","unless","d-icon","honeypot-input","and","not","each","-track-array","user-field","signup-page-cta","loading-spinner","login-buttons",":footer"]]',moduleName:"discourse/components/modal/create-account.hbs",isStrictMode:!1});class E extends s.default.extend(_.default,b.default,f.default,y.default){static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"login",[a.service]))();#t6=(()=>void dt7948.i(this,"login"))();accountChallenge=0;accountHoneypot=0;formSubmitted=!1;rejectedEmails=(()=>(0,i.A)())();prefilledUsername=null;userFields=null;isDeveloper=!1;maskPassword=!0;passwordValidationVisible=!1;emailValidationVisible=!1;static #l=(()=>dt7948.g(this.prototype,"hasAuthOptions",[(0,o.notEmpty)("model.authOptions")]))();#nz=(()=>void dt7948.i(this,"hasAuthOptions"))();static #u=(()=>dt7948.g(this.prototype,"canCreateLocal",[(0,p.setting)("enable_local_logins")]))();#n$=(()=>void dt7948.i(this,"canCreateLocal"))();static #c=(()=>dt7948.g(this.prototype,"requireInviteCode",[(0,p.setting)("require_invite_code")]))();#nq=(()=>void dt7948.i(this,"requireInviteCode"))();static #d=(()=>dt7948.g(this.prototype,"authOptions",[(0,o.alias)("model.authOptions")]))();#nH=(()=>void dt7948.i(this,"authOptions"))();static #p=(()=>dt7948.g(this.prototype,"accountEmail",[(0,o.alias)("model.accountEmail")]))();#nV=(()=>void dt7948.i(this,"accountEmail"))();static #h=(()=>dt7948.g(this.prototype,"accountUsername",[(0,o.alias)("model.accountUsername")]))();#nW=(()=>void dt7948.i(this,"accountUsername"))();static #m=(()=>dt7948.g(this.prototype,"accountName",[(0,o.alias)("model.accountName")]))();#nK=(()=>void dt7948.i(this,"accountName"))();init(){super.init(...arguments),(0,h.default)("email")&&this.set("model.accountEmail",(0,h.default)("email")),this.fetchConfirmationValue(),this.model.skipConfirmation&&this.performAccountCreation().finally(()=>this.set("model.skipConfirmation",!1))}actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}static #g=(()=>dt7948.n(this.prototype,"actionOnEnter",[T.bind]))();selectKitFocus(e){let t=document.getElementById(e.target.getAttribute("for"));t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())}static #E=(()=>dt7948.n(this.prototype,"selectKitFocus",[T.bind]))();showCreateForm(e,t,n){return(e||t)&&!n}static #A=(()=>dt7948.n(this.prototype,"showCreateForm",[(0,T.default)("hasAuthOptions","canCreateLocal","model.skipConfirmation")]))();showExternalLoginButtons(e,t){return e&&!t}static #D=(()=>dt7948.n(this.prototype,"showExternalLoginButtons",[(0,T.default)("site.desktopView","hasAuthOptions")]))();submitDisabled(){return this.formSubmitted}static #I=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,T.default)("formSubmitted")]))();modalBodyClasses(e,t,n){let i=[];return e&&i.push("has-user-fields"),t&&!n&&i.push("has-alt-auth"),this.canCreateLocal||i.push("no-local-logins"),i.join(" ")}static #G=(()=>dt7948.n(this.prototype,"modalBodyClasses",[(0,T.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions")]))();usernameDisabled(e,t){return e&&!t}static #Y=(()=>dt7948.n(this.prototype,"usernameDisabled",[(0,T.default)("model.authOptions","model.authOptions.can_edit_username")]))();nameDisabled(e,t){return e&&!t}static #Q=(()=>dt7948.n(this.prototype,"nameDisabled",[(0,T.default)("model.authOptions","model.authOptions.can_edit_name")]))();showFullname(){return this.siteSettings.enable_names}static #J=(()=>dt7948.n(this.prototype,"showFullname",[T.default]))();fullnameRequired(){return this.siteSettings.full_name_required}static #X=(()=>dt7948.n(this.prototype,"fullnameRequired",[T.default]))();showEmailValidation(e,t,n){return e||t&&n}static #Z=(()=>dt7948.n(this.prototype,"showEmailValidation",[(0,T.default)("emailValidation.ok","emailValidation.reason","emailValidationVisible")]))();showPasswordValidation(e,t,n){return e||t&&n}static #ee=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,T.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();showUsernameInstructions(e){return this.siteSettings.show_signup_form_username_instructions&&!e}static #et=(()=>dt7948.n(this.prototype,"showUsernameInstructions",[(0,T.default)("usernameValidation.reason")]))();passwordRequired(e){return(0,l.isEmpty)(e)}static #en=(()=>dt7948.n(this.prototype,"passwordRequired",[(0,T.default)("model.authOptions.auth_provider")]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,S.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #ei=(()=>dt7948.n(this.prototype,"disclaimerHtml",[T.default]))();emailValidation(e,t,n,i,s){let o={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===n&&t?t:(0,l.isEmpty)(n)?r.default.create(Object.assign(o,{message:(0,S.i18n)("user.email.required"),reason:s?(0,S.i18n)("user.email.required"):null})):i.includes(n)||!(0,g.emailValid)(n)?r.default.create(Object.assign(o,{reason:(0,S.i18n)("user.email.invalid")})):this.get("model.authOptions.email")===n&&this.get("model.authOptions.email_valid")?r.default.create({ok:!0,reason:(0,S.i18n)("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("model.authOptions.auth_provider"))})}):r.default.create({ok:!0,reason:(0,S.i18n)("user.email.ok")})}static #es=(()=>dt7948.n(this.prototype,"emailValidation",[(0,T.default)("serverAccountEmail","serverEmailValidation","model.accountEmail","rejectedEmails.[]","forceValidationReason")]))();togglePasswordValidation(){this.set("passwordValidationVisible",!!this.passwordValidation.reason)}static #er=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[r.action]))();checkEmailAvailability(){if(this.set("emailValidationVisible",!!this.emailValidation.reason),this.emailValidation.ok&&this.serverAccountEmail!==this.model.accountEmail)return k.default.checkEmail(this.model.accountEmail).then(e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:r.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:r.default.create({ok:!0,reason:(0,S.i18n)("user.email.ok")})}))}).catch(()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})})}static #eo=(()=>dt7948.n(this.prototype,"checkEmailAvailability",[r.action]))();emailDisabled(){return this.get("model.authOptions.email")===this.model.accountEmail&&this.get("model.authOptions.email_valid")}static #ea=(()=>dt7948.n(this.prototype,"emailDisabled",[(0,T.default)("model.accountEmail","model.authOptions.email","model.authOptions.email_valid")]))();authProviderDisplayName(e){let t=(0,w.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.model.accountUsername===this.prefilledUsername&&this.set("model.accountUsername",""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,l.isEmpty)(this.model.accountUsername)||this.get("model.authOptions.email"))&&(0,x.default)(this,this.fetchExistingUsername,500)}static #el=(()=>dt7948.n(this.prototype,"prefillUsername",[(0,u.observes)("emailValidation","model.accountEmail")]))();hasAtLeastOneLoginButton(){return(0,w.findAll)().length>0}static #eu=(()=>dt7948.n(this.prototype,"hasAtLeastOneLoginButton",[T.default]))();fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,d.ajax)("/session/hp.json").then(e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))}).finally(()=>this._hpPromise=void 0)),this._hpPromise}performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then(()=>this.performAccountCreation());let e={accountName:this.model.accountName,accountEmail:this.model.accountEmail,accountPassword:this.accountPassword,accountUsername:this.model.accountUsername,accountChallenge:this.accountChallenge,inviteCode:this.inviteCode,accountPasswordConfirm:this.accountHoneypot},t=this.get("model.authOptions.destination_url");return(0,l.isEmpty)(t)||(0,h.default)("destination_url",t,{path:"/"}),(0,l.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach(t=>e.userFields[t.get("field.id")]=t.get("value"))),this.set("formSubmitted",!0),k.default.createAccount(e).then(t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.set("isDeveloper",!1),t.success){this._challengeExpiry=1;let t=document.querySelector("#hidden-login-form");return t&&(t.querySelector("input[name=username]").value=e.accountUsername,t.querySelector("input[name=password]").value=e.accountPassword,t.querySelector("input[name=redirect]").value=(0,m.userPath)("account-created"),t.submit()),new c.Promise(()=>{})}this.set("flash",t.message||(0,S.i18n)("create_account.failed")),t.is_developer&&this.set("isDeveloper",!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors&&t.errors.password&&t.errors.password.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,h.removeCookie)("destination_url")}},()=>(this.set("formSubmitted",!1),(0,h.removeCookie)("destination_url"),this.set("flash",(0,S.i18n)("create_account.failed"))))}associateHtml(e,t){if(e)return(0,S.i18n)("create_account.associate",{associate_link:e,provider:(0,S.i18n)(`login.${t}.name`)})}static #ec=(()=>dt7948.n(this.prototype,"associateHtml",[(0,T.default)("model.authOptions.associate_url","model.authOptions.auth_provider")]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #ed=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[r.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #nG=(()=>dt7948.n(this.prototype,"togglePasswordMask",[r.action]))();externalLogin(e){this.login.externalLogin(e,{signup:!0})}static #nY=(()=>dt7948.n(this.prototype,"externalLogin",[r.action]))();createAccount(){this.set("flash",""),this.set("forceValidationReason",!0),this.set("emailValidationVisible",!0),this.set("passwordValidationVisible",!0);let e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find(e=>e.failed);if(e){let t=e.element;t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus());return}this.set("forceValidationReason",!1),this.performAccountCreation()}static #nQ=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))()}(0,s.setComponentTemplate)(C,E)},71370:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"0+NYBnG4",block:'[[[8,[39,0],null,[["@autoFindInput"],[false]],[["default"],[[[[1,"\\n "],[8,[39,1],[[24,0,"create-invite-bulk-modal -large"]],[["@title","@closeModal"],[[28,[37,2],["user.invited.bulk_invite.text"],null],[30,3]]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["uploaded"]],[[[1," "],[1,[28,[35,2],["user.invited.bulk_invite.success"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],[[28,[37,2],["user.invited.bulk_invite.instructions"],null]],null]],[1,"\\n "],[11,"input"],[24,1,"csv-file"],[16,"disabled",[30,1,["uploading"]]],[24,"accept",".csv"],[24,4,"file"],[4,[38,7],[[30,2]],null],[12],[13],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[51,[30,1,["uploaded"]]],[[[1," "],[8,[39,10],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action","@disabled"],["link",[52,[30,1,["uploading"]],[28,[37,2],["user.invited.bulk_invite.progress"],[["progress"],[[30,1,["uploadProgress"]]]]],[28,[37,2],["user.invited.bulk_invite.text"],null]],[30,1,["startUpload"]],[30,1,["submitDisabled"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],[[24,0,"btn-primary"]],[["@label","@action"],["close",[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[1,2]]]]]],["uploader","setElement","@closeModal"],false,["create-invite-uploader","d-modal","i18n",":body","if","html-safe","input","did-insert",":footer","unless","d-button"]]',moduleName:"discourse/components/modal/create-invite-bulk.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"create-invite-bulk"))},27659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(54729),u=n(35804),c=n(64151),d=n(8650),p=n(92976),h=n(72491),m=n(7665),g=n(8992),f=n(64149),_=n(22054),y=n(62167),b=n(83357),w=n(20802),k=n(27174),x=n(59928),T=n(51969),S=n(83183),C=n(30541),E=n(78585),A=n(76417),D=n(82739),I=n(88606);let P=(0,n(41664).A)(n(28564)).cached;class M extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[l.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #c=(()=>dt7948.g(this.prototype,"displayAdvancedOptions",[s.tracked],function(){return!1}))();#nJ=(()=>void dt7948.i(this,"displayAdvancedOptions"))();static #d=(()=>dt7948.g(this.prototype,"isEmailInvite",[s.tracked],function(){return(0,w.emailValid)(this.data.restrictTo)}))();#nX=(()=>void dt7948.i(this,"isEmailInvite"))();static #p=(()=>dt7948.g(this.prototype,"flashText",[s.tracked]))();#nZ=(()=>void dt7948.i(this,"flashText"))();static #h=(()=>dt7948.g(this.prototype,"flashClass",[s.tracked],function(){return"info"}))();#n1=(()=>void dt7948.i(this,"flashClass"))();static #m=(()=>dt7948.g(this.prototype,"topics",[s.tracked],function(){return this.invite.topics??this.model.topics??[]}))();#H=(()=>void dt7948.i(this,"topics"))();static #g=(()=>dt7948.g(this.prototype,"allGroups",[s.tracked]))();#n0=(()=>void dt7948.i(this,"allGroups"))();model=this.args.model;invite=(()=>this.model.invite??x.default.create())();sendEmail=!1;formApi;constructor(){super(...arguments),k.default.findAll().then(e=>{this.allGroups=e.filter(e=>!e.automatic)})}get linkValidityMessageFormat(){return T.default.messageFormat("user.invited.invite.link_validity_MF",{user_count:this.defaultRedemptionsAllowed,duration_days:this.siteSettings.invite_expiry_days})}get expireAfterOptions(){let e=[1,7,30,90];return e.includes(this.siteSettings.invite_expiry_days)||e.push(this.siteSettings.invite_expiry_days),(e=e.sort((e,t)=>e-t).map(e=>({value:e,text:(0,T.i18n)("dates.medium.x_days",{count:e})}))).push({value:999999,text:(0,T.i18n)("time_shortcut.never")}),e}get data(){let e={restrictTo:this.invite.emailOrDomain??"",maxRedemptions:this.invite.max_redemptions_allowed??this.defaultRedemptionsAllowed,inviteToTopic:this.invite.topicId,inviteToGroups:this.model.groupIds??this.invite.groupIds??[],customMessage:this.invite.custom_message??""};return this.inviteCreated?e.expiresAt=this.invite.expires_at:e.expiresAfterDays=this.siteSettings.invite_expiry_days,e}static #E=(()=>dt7948.n(this.prototype,"data",[P]))();async save(e){let t=!0;e.emailOrDomain&&(this.isEmailInvite?(t=!1,e.email=e.emailOrDomain):(0,w.hostnameValid)(e.emailOrDomain)&&(e.domain=e.emailOrDomain),delete e.emailOrDomain),t?this.invite.email&&(e.email=e.custom_message=""):(e.max_redemptions_allowed>1&&(e.max_redemptions_allowed=1),this.sendEmail?(e.send_email=!0,e.topic_id&&(e.invite_to_topic=!0)):e.skip_email=!0),this.saving=!0;try{await this.invite.save(e);let t=this.model?.invites;t&&!t.some(e=>e.id===this.invite.id)&&t.unshiftObject(this.invite),this.simpleMode||(this.sendEmail?this.flashText=(0,y.sanitize)((0,T.i18n)("user.invited.invite.invite_saved_with_sending_email")):this.flashText=(0,y.sanitize)((0,T.i18n)("user.invited.invite.invite_saved_without_sending_email")),this.flashClass="success")}catch(e){this.flashText=(0,y.sanitize)((0,f.extractError)(e)),this.flashClass="error"}finally{this.saving=!1}}get maxRedemptionsAllowedLimit(){return this.currentUser.staff?this.siteSettings.invite_link_max_redemptions_limit:this.siteSettings.invite_link_max_redemptions_limit_users}get defaultRedemptionsAllowed(){return Math.min(this.maxRedemptionsAllowedLimit,this.currentUser.staff?100:10)}get canInviteToGroup(){return this.currentUser.staff||this.currentUser.groups.some(e=>e.group_user?.owner)}get canArriveAtTopic(){return this.currentUser.staff&&!this.siteSettings.must_approve_users}get simpleMode(){return!this.args.model.editing&&!this.displayAdvancedOptions}get inviteCreated(){return!!this.invite.get("id")}handleRestrictToChange(e,t){let{set:n}=t;n("restrictTo",e),this.isEmailInvite=(0,w.emailValid)(e)}static #A=(()=>dt7948.n(this.prototype,"handleRestrictToChange",[a.action]))();async onFormSubmit(e){let t={emailOrDomain:e.restrictTo?.trim(),group_ids:e.inviteToGroups,topic_id:e.inviteToTopic,max_redemptions_allowed:e.maxRedemptions,custom_message:e.customMessage};e.expiresAt?t.expires_at=e.expiresAt:e.expiresAfterDays&&(t.expires_at=moment().add(e.expiresAfterDays,"days").format(S.FORMAT)),await this.save(t)}static #D=(()=>dt7948.n(this.prototype,"onFormSubmit",[a.action]))();saveInvite(){this.sendEmail=!1,this.formApi.submit()}static #I=(()=>dt7948.n(this.prototype,"saveInvite",[a.action]))();saveInviteAndSendEmail(){this.sendEmail=!0,this.formApi.submit()}static #G=(()=>dt7948.n(this.prototype,"saveInviteAndSendEmail",[a.action]))();onChangeTopic(e,t,n){this.topics=[n],e(t)}static #Y=(()=>dt7948.n(this.prototype,"onChangeTopic",[a.action]))();showAdvancedMode(){this.displayAdvancedOptions=!0}static #Q=(()=>dt7948.n(this.prototype,"showAdvancedMode",[a.action]))();async createLink(){this.sendEmail=!1;let e=(0,b.applyValueTransformer)("invite-simple-mode-topic",null,{invite:this.invite});await this.save({max_redemptions_allowed:this.defaultRedemptionsAllowed,expires_at:moment().add(this.siteSettings.invite_expiry_days,"days").format(S.FORMAT),...null!=e&&{topic_id:e}})}static #J=(()=>dt7948.n(this.prototype,"createLink",[a.action]))();cancel(){this.args.closeModal()}static #X=(()=>dt7948.n(this.prototype,"cancel",[a.action]))();registerApi(e){this.formApi=e}static #Z=(()=>dt7948.n(this.prototype,"registerApi",[a.action]))();static #ee=(()=>(0,A.setComponentTemplate)((0,D.createTemplateFactory)({id:"9/UEVEaD",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"create-invite-modal"]],[["@title","@closeModal","@hideFooter","@inline"],[[28,[32,1],[[52,[30,1,["editing"]],"user.invited.invite.edit_title","user.invited.invite.new_title"]],null],[30,2],[28,[32,2],[[30,0,["simpleMode"]],[30,0,["inviteCreated"]]],null],[30,3]]],[["belowHeader","body","footer"],[[[[1,"\\n"],[41,[28,[32,3],[[30,0,["flashText"]],[30,1,["editing"]]],null],[[[1," "],[8,[32,4],null,[["@invite","@alertClass","@showInviteLink"],[[30,0,["invite"]],[30,0,["flashClass"]],[28,[32,2],[[30,0,["inviteCreated"]],[28,[32,5],[[30,0,["flashClass"]],"error"],null]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["flashText"]],[[[1," "],[1,[28,[32,6],[[30,0,["flashText"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,1],["user.invited.invite.copy_link_and_share_it"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["simpleMode"]],[[[41,[30,0,["inviteCreated"]],[[[41,[51,[30,0,["site","mobileView"]]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,1],["user.invited.invite.copy_link_and_share_it"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[32,7],null,[["@invite"],[[30,0,["invite"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,1],["user.invited.invite.create_link_to_invite"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[14,0,"link-limits-info"],[12],[1,"\\n "],[1,[30,0,["linkValidityMessageFormat"]]],[1,"\\n "],[11,3],[24,0,"edit-link-options"],[24,"role","button"],[4,[32,8],["click",[30,0,["showAdvancedMode"]]],null],[12],[1,[28,[32,1],["user.invited.invite.edit_link_options"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,9],null,[["@data","@onSubmit","@onRegisterApi"],[[30,0,["data"]],[30,0,["onFormSubmit"]],[30,0,["registerApi"]]]],[["default"],[[[[1,"\\n "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@onSet"],["restrictTo",[28,[32,1],["user.invited.invite.restrict"],null],"large",[30,0,["handleRestrictToChange"]]]],[["default"],[[[[1,"\\n "],[8,[30,5,["Input"]],[[16,"placeholder",[28,[32,1],["user.invited.invite.email_or_domain_placeholder"],null]]],null,null],[1,"\\n "]],[5]]]]],[1,"\\n\\n"],[41,[51,[30,0,["isEmailInvite"]]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@type","@format","@validation"],["maxRedemptions",[28,[32,1],["user.invited.invite.max_redemptions_allowed"],null],"number","small","required"]],[["default"],[[[[1,"\\n "],[8,[30,6,["Input"]],[[24,"min","1"],[16,"max",[30,0,["maxRedemptionsAllowedLimit"]]],[24,4,"number"]],null,null],[1,"\\n "]],[6]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["inviteCreated"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@validation"],["expiresAt",[28,[32,1],["user.invited.invite.expires_at"],null],"large","required"]],[["default"],[[[[1,"\\n "],[8,[30,7,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,10],null,[["@clearable","@input","@noRelativeOptions","@onChangeInput"],[true,[30,7,["value"]],true,[30,7,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[7]]]]],[1,"\\n"]],[]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format","@validation"],["expiresAfterDays",[28,[32,1],["user.invited.invite.expires_after"],null],"large","required"]],[["default"],[[[[1,"\\n "],[8,[30,8,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["expireAfterOptions"]]],null]],null],null,[[[1," "],[8,[30,9,["Option"]],null,[["@value"],[[30,10,["value"]]]],[["default"],[[[[1,[30,10,["text"]]]],[]]]]],[1,"\\n"]],[10]],null],[1," "]],[9]]]]],[1,"\\n "]],[8]]]]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["canArriveAtTopic"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["inviteToTopic",[28,[32,1],["user.invited.invite.invite_to_topic"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,11,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,11],null,[["@value","@content","@onChange","@options"],[[30,11,["value"]],[30,0,["topics"]],[28,[32,12],[[30,0,["onChangeTopic"]],[30,11,["set"]]],null],[28,[32,13],null,[["additionalFilters"],["status:public"]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[11]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canInviteToGroup"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["inviteToGroups",[28,[32,1],["user.invited.invite.add_to_groups"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,12,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,14],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,12,["value"]],"name",[30,12,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[12]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isEmailInvite"]],[[[1," "],[8,[30,4,["Field"]],null,[["@name","@title","@format"],["customMessage",[28,[32,1],["user.invited.invite.custom_message"],null],"full"]],[["default"],[[[[1,"\\n "],[8,[30,13,["Textarea"]],[[16,"height",100],[16,"placeholder",[28,[32,1],["user.invited.invite.custom_message_placeholder"],null]]],null,null],[1,"\\n "]],[13]]]]],[1,"\\n"]],[]],null],[1," "]],[4]]]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["simpleMode"]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite"]],[["@label","@action","@disabled"],["user.invited.invite.create_link",[30,0,["createLink"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite"]],[["@label","@action","@disabled"],[[52,[30,0,["inviteCreated"]],"user.invited.invite.update_invite","user.invited.invite.create_link"],[30,0,["saveInvite"]],[30,0,["saving"]]]],null],[1,"\\n"],[41,[30,0,["isEmailInvite"]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite-and-send-email"]],[["@label","@action","@disabled"],[[52,[30,0,["inviteCreated"]],"user.invited.invite.update_invite_and_send_email","user.invited.invite.create_link_and_send_email"],[30,0,["saveInviteAndSendEmail"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[8,[32,15],[[24,0,"btn-transparent cancel-button"]],[["@label","@action"],["user.invited.invite.cancel",[30,0,["cancel"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal","@inline","form","field","field","field","field","select","option","field","field","field"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[h.default,T.i18n,c.and,c.or,F,c.notEq,u.htmlSafe,N,o.on,m.default,g.default,E.default,r.fn,r.hash,C.default,p.default],isStrictMode:!0}),this))()}let F=(0,A.setComponentTemplate)((0,D.createTemplateFactory)({id:"V7fnDNr2",block:'[[[1,"\\n "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[29,["alert alert-",[30,1]]]],[12],[1,"\\n "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[32,0],null,[["@invite"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@alertClass","@showInviteLink","@invite","&default"],false,["yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[N],isStrictMode:!0}),(0,I.default)(void 0,"create-invite:InviteModalAlert"));class N extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();async nativeShare(){await (0,_.nativeShare)(this.capabilities,{url:this.args.invite.link})}static #n=(()=>dt7948.n(this.prototype,"nativeShare",[a.action]))();static #i=(()=>(0,A.setComponentTemplate)((0,D.createTemplateFactory)({id:"yxPGvtZc",block:'[[[1,"\\n "],[10,"input"],[14,3,"invite-link"],[14,0,"invite-link"],[15,2,[30,1,["link"]]],[15,"readonly",true],[14,4,"text"],[12],[13],[1,"\\n"],[41,[28,[32,0],[[30,0,["capabilities"]]],null],[[[1," "],[8,[32,1],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action"],["share",[28,[32,2],["user.invited.invite.share_link"],null],[30,0,["nativeShare"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,3],null,[["@selector","@translatedLabel","@translatedLabelAfterCopy"],["input.invite-link",[28,[32,2],["user.invited.invite.copy_link"],null],[28,[32,2],["user.invited.invite.link_copied"],null]]],null],[1,"\\n"]],[]]],[1," "]],["@invite"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite.js",scope:()=>[_.canNativeShare,p.default,T.i18n,d.default],isStrictMode:!0}),this))()}},8695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(64149),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"d5rlLfnC",block:'[[[8,[39,0],[[24,0,"customize-form-template-view-modal"]],[["@title","@closeModal"],[[30,1,["name"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,3],[[24,0,"form-templates__preview-toggle"],[4,[38,4],["click",[30,0,["togglePreview"]]],null]],[["@state","@label"],[[30,0,["showPreview"]],"admin.form_templates.view_template.toggle_preview"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showPreview"]],[[[1," "],[8,[39,6],null,[["@id"],[[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@lang","@code"],["yaml",[30,1,["template"]]]],null],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["editTemplate"]],"pencil","admin.form_templates.view_template.edit"]],null],[1,"\\n "],[8,[39,10],null,[["@close"],[[30,2]]],null],[1,"\\n "],[8,[39,9],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteTemplate"]],"trash-can","admin.form_templates.view_template.delete"]],null],[1,"\\n "]],[]]]]]],["@model","@closeModal"],false,["d-modal",":body","div","d-toggle-switch","on","if","form-template-field/wrapper","highlighted-code",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/customize-form-template-view.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"showPreview",[s.tracked],function(){return!1}))();#n3=(()=>void dt7948.i(this,"showPreview"))();togglePreview(){this.showPreview=!this.showPreview}static #l=(()=>dt7948.n(this.prototype,"togglePreview",[r.action]))();editTemplate(){this.router.transitionTo("adminCustomizeFormTemplates.edit",this.args.model)}static #u=(()=>dt7948.n(this.prototype,"editTemplate",[r.action]))();deleteTemplate(){return this.dialog.yesNoConfirm({message:(0,u.i18n)("admin.form_templates.delete_confirm",{template_name:this.args.model.name}),didConfirm:()=>{(0,a.ajax)(`/admin/customize/form-templates/${this.args.model.id}.json`,{type:"DELETE"}).then(()=>{this.args.refreshModel()}).catch(l.popupAjaxError)}})}static #c=(()=>dt7948.n(this.prototype,"deleteTemplate",[r.action]))()}(0,d.setComponentTemplate)(c,p)},28298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(70001),r=n(6610),o=n(64149);let a=(0,n(82739).createTemplateFactory)({id:"VPZRGl69",block:'[[[8,[39,0],null,[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.customize.bulk_delete"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,1],[[28,[37,3],["admin.customize.bulk_",[30,2,["type"]],"_delete_confirm"],null]],null]],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,2,["selectedThemesOrComponents"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n\\n "]],[]],[[[1,"\\n "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["delete"]],"yes_value"]],null],[1,"\\n "],[8,[39,10],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model","theme"],false,["d-modal","i18n",":body","concat","ul","each","-track-array","li",":footer","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/delete-themes-confirm.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{delete(){(0,r.ajax)("/admin/themes/bulk_destroy.json",{type:"DELETE",data:{theme_ids:this.args.model.selectedThemesOrComponents.mapBy("id")}}).then(()=>{this.args.model.refreshAfterDelete(),this.args.closeModal()}).catch(o.popupAjaxError)}static #e=(()=>dt7948.n(this.prototype,"delete",[s.action]))()}(0,l.setComponentTemplate)(a,u)},38111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"oS/aE0Pr",block:'[[[8,[39,0],[[24,0,"delete-topic-confirm-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.actions.delete"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["post.controls.delete_topic_confirm_modal"],[["count"],[[30,0,["siteSettings","min_topic_views_for_delete_confirm"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["deleteTopic"]],[30,0,["deletingTopic"]],[52,[30,0,["deletingTopic"]],"deleting","post.controls.delete_topic_confirm_modal_yes"]]],null],[1,"\\n "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"post.controls.delete_topic_confirm_modal_no"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","p",":footer","d-button","if"]]',moduleName:"discourse/components/modal/delete-topic-confirm.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"deletingTopic",[s.tracked],function(){return!1}))();#n2=(()=>void dt7948.i(this,"deletingTopic"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();async deleteTopic(){try{this.deletingTopic=!0,await this.args.model.topic.destroy(this.currentUser),this.args.closeModal()}catch{this.flash=(0,a.i18n)("post.controls.delete_topic_error"),this.deletingTopic=!1}}static #u=(()=>dt7948.n(this.prototype,"deleteTopic",[r.action]))()}(0,u.setComponentTemplate)(l,c)},68196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"N17C6HAU",block:'[[[8,[39,0],null,[["@closeModal"],[[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,[28,[35,3],[[28,[37,4],["post.controls.delete_topic_disallowed_modal"],null]],null]],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal",":body","p","html-safe","i18n",":footer","d-button"]]',moduleName:"discourse/components/modal/delete-topic-disallowed.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"delete-topic-disallowed"))},85913:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(92976),o=n(72491),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{async discardDraft(){await this.args.model.onDestroyDraft(),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"discardDraft",[s.action]))();async saveDraftAndClose(){await this.args.model.onSaveDraft(),this.args.closeModal()}static #n=(()=>dt7948.n(this.prototype,"saveDraftAndClose",[s.action]))();static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"ZE94UMEG",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"discard-draft-modal --stacked"]],[["@closeModal","@hideHeader"],[[30,1],true]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"instructions"],[14,"role","heading"],[14,"aria-level","1"],[12],[1,"\\n "],[1,[28,[32,1],["post.cancel_composer.confirm"],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[24,0,"btn-danger discard-draft"]],[["@icon","@label","@action"],["trash-can","post.cancel_composer.discard",[30,0,["discardDraft"]]]],null],[1,"\\n"],[41,[30,2,["showSaveDraftButton"]],[[[1," "],[8,[32,2],[[24,0,"save-draft"]],[["@label","@action"],["post.cancel_composer.save_draft",[30,0,["saveDraftAndClose"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,2],[[24,0,"keep-editing"]],[["@label","@action"],["post.cancel_composer.keep_editing",[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/discard-draft.js",scope:()=>[o.default,a.i18n,r.default],isStrictMode:!0}),this))()}},78662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(92976),a=n(72491),l=n(56226),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"untrack",[s.tracked],function(){return!1}))();#n8=(()=>void dt7948.i(this,"untrack"))();static #n=(()=>dt7948.g(this.prototype,"dismissTopics",[s.tracked],function(){return!0}))();#n4=(()=>void dt7948.i(this,"dismissTopics"))();static #i=(()=>dt7948.g(this.prototype,"dismissPosts",[s.tracked],function(){return!0}))();#n7=(()=>void dt7948.i(this,"dismissPosts"))();constructor(){super(...arguments),"replies"===this.args.model.subset&&(this.dismissTopics=!1),"topics"===this.args.model.subset&&(this.dismissPosts=!1)}get partialDismiss(){return 0!==(this.selectedTopics?.length||0)}get dismissNewTopicsLabel(){return"topics.bulk.dismiss_new_modal.topics"+(this.partialDismiss?"_with_count":"")}get dismissNewRepliesLabel(){return"topics.bulk.dismiss_new_modal.replies"+(this.partialDismiss?"_with_count":"")}get showDismissNewTopics(){return this.partialDismiss?this.countNewTopics>0:"topics"===this.subset||!this.subset}get showDismissNewReplies(){return this.partialDismiss?this.countNewReplies>0:"replies"===this.subset||!this.subset}get countNewTopics(){let e=this.selectedTopics;return e?.length?e.filter(e=>!e.unread_posts).length:0}get countNewReplies(){let e=this.selectedTopics;return e?.length?e.filter(e=>e.unread_posts).length:0}get subset(){return this.args.model.subset}get selectedTopics(){return this.args.model.selectedTopics}get modalTitle(){return(0,u.i18n)("topics.bulk.dismiss_new_modal.title")}dismissed(){this.args.model.dismissCallback({dismissTopics:this.dismissTopics,dismissPosts:this.dismissPosts,untrack:this.untrack}),this.args.closeModal()}static #l=(()=>dt7948.n(this.prototype,"dismissed",[r.action]))();static #u=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"3tzgzDzS",block:'[[[1,"\\n "],[8,[32,0],null,[["@closeModal","@title","@inline"],[[30,1],[30,0,["modalTitle"]],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["showDismissNewTopics"]],[[[1," "],[8,[32,1],[[24,0,"dismiss-topics"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewTopicsLabel"]],[30,0,["countNewTopics"]],[30,0,["dismissTopics"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showDismissNewReplies"]],[[[1," "],[8,[32,1],[[24,0,"dismiss-posts"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewRepliesLabel"]],[30,0,["countNewReplies"]],[30,0,["dismissPosts"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,1],[[24,0,"untrack"]],[["@labelKey","@checked"],["topics.bulk.dismiss_new_modal.untrack",[30,0,["untrack"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["dismissed"]],"check","topics.bulk.dismiss"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@inline"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/dismiss-new.js",scope:()=>[a.default,l.default,o.default],isStrictMode:!0}),this))()}},99208:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"zbj3f75P",block:'[[[8,[39,0],[[24,0,"dismiss-notification-confirmation"]],[["@headerClass","@closeModal"],["hidden",[30,1]]],[["body","footer"],[[[[1,"\\n "],[1,[30,2,["confirmationMessage"]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,3],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["check",[30,0,["dismiss"]],"notifications.dismiss_confirmation.dismiss"]],null],[1,"\\n "],[8,[39,3],[[24,0,"btn-default"]],[["@action","@label"],[[30,1],"notifications.dismiss_confirmation.cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal",":body",":footer","d-button"]]',moduleName:"discourse/components/modal/dismiss-notification-confirmation.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{dismiss(){this.args.model?.dismissNotifications?.(),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"dismiss",[s.action]))()}(0,o.setComponentTemplate)(r,a)},19362:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(39882),o=n(92976),a=n(72491),l=n(56226),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"dismissTopics",[s.tracked],function(){return!1}))();#n4=(()=>void dt7948.i(this,"dismissTopics"))();static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"07PSiBZF",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"dismiss-read-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],[[30,2,["title"]]],[["count"],[[30,2,["count"]]]]]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[32,2],[[24,0,"dismiss-read-modal__stop-tracking"]],[["@labelKey","@checked"],["topics.bulk.also_dismiss_topics",[30,0,["dismissTopics"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[32,4],[[30,2,["dismissRead"]],[30,0,["dismissTopics"]]],null],"topics.bulk.dismiss","check"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/dismiss-read.js",scope:()=>[a.default,u.i18n,l.default,o.default,r.fn],isStrictMode:!0}),this))()}},59202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(92976),l=n(72491),u=n(24033),c=n(75276),d=n(64149),p=n(51969),h=n(76417),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();async saveDuration(e){try{await this.currentUser.enterDoNotDisturbFor(e),this.args.closeModal()}catch(e){this.flash=(0,d.extractError)(e)}}static #l=(()=>dt7948.n(this.prototype,"saveDuration",[r.action]))();navigateToNotificationSchedule(){this.router.transitionTo("preferences.notifications",this.currentUser),this.args.closeModal()}static #u=(()=>dt7948.n(this.prototype,"navigateToNotificationSchedule",[r.action]))();static #c=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"yq/JDVr8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"do-not-disturb-modal"]],[["@title","@closeModal","@flash"],[[28,[32,1],["pause_notifications.title"],null],[30,1],[30,0,["flash"]]]],[["body"],[[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["30",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.half_hour"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["60",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.one_hour"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["120",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.two_hours"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["tomorrow",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["pause_notifications.options.tomorrow"],null]],[1,"\\n "]],[]]]]],[1,"\\n "]],[2]]]]],[1,"\\n\\n "],[8,[32,4],null,[["@action","@label"],[[30,0,["navigateToNotificationSchedule"]],"pause_notifications.set_schedule"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","grid"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/do-not-disturb.js",scope:()=>[l.default,p.i18n,c.default,u.default,a.default],isStrictMode:!0}),this))()}},19301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(16747);let l=(0,n(82739).createTemplateFactory)({id:"9s2EhX5y",block:'[[[8,[39,0],[[24,0,"download-calendar-modal"]],[["@title","@closeModal"],[[28,[37,1],["download_calendar.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"ics"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","ics"],[12],[1,"\\n "],[8,[39,5],[[24,1,"ics"]],[["@name","@value","@selection","@onChange"],["select-calendar","ics",[30,0,["selectedCalendar"]],[28,[37,6],[[30,0,["selectCalendar"]],"ics"],null]]],null],[1,"\\n "],[1,[28,[35,1],["download_calendar.save_ics"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"google"],[12],[1,"\\n "],[10,"label"],[14,0,"radio"],[14,"for","google"],[12],[1,"\\n "],[8,[39,5],[[24,1,"google"]],[["@name","@value","@selection","@onChange"],["select-calendar","google",[30,0,["selectedCalendar"]],[28,[37,6],[[30,0,["selectCalendar"]],"google"],null]]],null],[1,"\\n "],[1,[28,[35,1],["download_calendar.save_google"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1," "],[10,0],[14,0,"control-group remember"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,8],null,[["@type","@checked"],["checkbox",[30,0,["remember"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember_explanation"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["downloadCalendar"]],"download_calendar.download"]],null],[1,"\\n "],[8,[39,11],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","label","radio-button","fn","if","input","span",":footer","d-button"]]',moduleName:"discourse/components/modal/download-calendar.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"selectedCalendar",[s.tracked],function(){return"ics"}))();#n9=(()=>void dt7948.i(this,"selectedCalendar"))();static #i=(()=>dt7948.g(this.prototype,"remember",[s.tracked],function(){return!1}))();#n5=(()=>void dt7948.i(this,"remember"))();downloadCalendar(){this.remember&&(this.currentUser.set("user_option.default_calendar",this.selectedCalendar),this.currentUser.save(["default_calendar"])),"ics"===this.selectedCalendar?(0,a.downloadIcs)(this.args.model.calendar.title,this.args.model.calendar.dates,{recurrenceRule:this.args.model.calendar.recurrenceRule,location:this.args.model.calendar.location,details:this.args.model.calendar.details}):(0,a.downloadGoogle)(this.args.model.calendar.title,this.args.model.calendar.dates,{recurrenceRule:this.args.model.calendar.recurrenceRule,location:this.args.model.calendar.location,details:this.args.model.calendar.details}),this.args.closeModal()}static #l=(()=>dt7948.n(this.prototype,"downloadCalendar",[r.action]))();selectCalendar(e){this.selectedCalendar=e}static #u=(()=>dt7948.n(this.prototype,"selectCalendar",[r.action]))()}(0,u.setComponentTemplate)(l,c)},55540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(63019),l=n(64149),u=n(32644),c=n(46606),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"HZtCSw3n",block:'[[[8,[39,0],[[24,0,"edit-slow-mode-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.slow_mode_update.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.select"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,5],[[24,0,"slow-mode-type"]],[["@content","@value","@onChange"],[[30,0,["slowModes"]],[30,0,["selectedSlowMode"]],[30,0,["setSlowModeDuration"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showCustomSelect"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.hours"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["hours"]],"number"]],null],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.minutes"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["minutes"]],"number"]],null],[1,"\\n "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n "],[1,[28,[35,1],["topic.slow_mode_update.seconds"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["seconds"]],"number"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[39,8],[[24,0,"enabled-until"]],[["@label","@labelClasses","@customShortcuts","@clearable","@input","@onChangeInput"],["topic.slow_mode_update.enabled_until","slow-mode-label",[30,0,["timeShortcuts"]],true,[30,2,["topic","slow_mode_enabled_until"]],[28,[37,9],[[28,[37,10],[[30,2,["topic","slow_mode_enabled_until"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,12],[[24,0,"btn-primary"]],[["@disabled","@icon","@label","@action"],[[30,0,["submitDisabled"]],"hourglass-start",[30,0,["saveButtonLabel"]],[30,0,["enableSlowMode"]]]],null],[1,"\\n"],[41,[30,2,["topic","slow_mode_seconds"]],[[[1," "],[8,[39,12],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["disableSlowMode"]],[30,0,["submitDisabled"]],"topic.slow_mode_update.remove"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","combo-box","if","input","future-date-input","fn","mut",":footer","d-button"]]',moduleName:"discourse/components/modal/edit-slow-mode.hbs",isStrictMode:!1});var h=n(76417);let m=[{id:"600",name:(0,d.i18n)("topic.slow_mode_update.durations.10_minutes")},{id:"900",name:(0,d.i18n)("topic.slow_mode_update.durations.15_minutes")},{id:"1800",name:(0,d.i18n)("topic.slow_mode_update.durations.30_minutes")},{id:"2700",name:(0,d.i18n)("topic.slow_mode_update.durations.45_minutes")},{id:"3600",name:(0,d.i18n)("topic.slow_mode_update.durations.1_hour")},{id:"7200",name:(0,d.i18n)("topic.slow_mode_update.durations.2_hours")},{id:"14400",name:(0,d.i18n)("topic.slow_mode_update.durations.4_hours")},{id:"28800",name:(0,d.i18n)("topic.slow_mode_update.durations.8_hours")},{id:"43200",name:(0,d.i18n)("topic.slow_mode_update.durations.12_hours")},{id:"86400",name:(0,d.i18n)("topic.slow_mode_update.durations.24_hours")},{id:"custom",name:(0,d.i18n)("topic.slow_mode_update.durations.custom")}];class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"selectedSlowMode",[s.tracked]))();#n6=(()=>void dt7948.i(this,"selectedSlowMode"))();static #i=(()=>dt7948.g(this.prototype,"hours",[s.tracked]))();#ie=(()=>void dt7948.i(this,"hours"))();static #l=(()=>dt7948.g(this.prototype,"minutes",[s.tracked]))();#it=(()=>void dt7948.i(this,"minutes"))();static #u=(()=>dt7948.g(this.prototype,"seconds",[s.tracked]))();#ii=(()=>void dt7948.i(this,"seconds"))();static #c=(()=>dt7948.g(this.prototype,"saveDisabled",[s.tracked],function(){return!1}))();#is=(()=>void dt7948.i(this,"saveDisabled"))();static #d=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments);let e=parseInt(this.args.model.topic.slow_mode_seconds,10);e&&(this.slowModes.find(t=>t.id===e.toString())?this.selectedSlowMode=e.toString():this.selectedSlowMode="custom",this._setFromSeconds(e))}get slowModes(){return m}get saveButtonLabel(){return this.args.model.topic.slow_mode_seconds&&0!==this.args.model.topic.slow_mode_seconds?"topic.slow_mode_update.update":"topic.slow_mode_update.enable"}get timeShortcuts(){let e=this.currentUser.user_option.timezone,t=(0,u.timeShortcuts)(e),n=t.monday();return n.label="time_shortcut.next_week",[t.laterToday(),t.tomorrow(),t.twoDays(),n,t.twoWeeks(),t.nextMonth(),t.twoMonths()]}get showCustomSelect(){return"custom"===this.selectedSlowMode}get durationIsSet(){return this.hours||this.minutes||this.seconds}async enableSlowMode(){this.saveDisabled=!0;let e=(0,a.toSeconds)(this._parseValue(this.hours),this._parseValue(this.minutes),this._parseValue(this.seconds));try{await c.default.setSlowMode(this.args.model.topic.id,e,this.args.model.topic.slow_mode_enabled_until),this.args.model.topic.set("slow_mode_seconds",e),this.args.closeModal()}catch{this.flash=(0,d.i18n)("generic_error")}finally{this.saveDisabled=!1}}static #p=(()=>dt7948.n(this.prototype,"enableSlowMode",[r.action]))();async disableSlowMode(){this.saveDisabled=!0;try{await c.default.setSlowMode(this.args.model.topic.id,0),this.args.model.topic.set("slow_mode_seconds",0),this.args.closeModal()}catch(e){this.flash=(0,l.extractError)(e)}finally{this.saveDisabled=!1}}static #h=(()=>dt7948.n(this.prototype,"disableSlowMode",[r.action]))();setSlowModeDuration(e){if("custom"!==e){let t=parseInt(e,10);this._setFromSeconds(t)}this.selectedSlowMode=e}static #m=(()=>dt7948.n(this.prototype,"setSlowModeDuration",[r.action]))();_setFromSeconds(e){let{hours:t,minutes:n,seconds:i}=(0,a.fromSeconds)(e);this.hours=t,this.minutes=n,this.seconds=i}_parseValue(e){return parseInt(e,10)||0}}(0,h.setComponentTemplate)(p,g)},37436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BUMP_TYPE:()=>w,CLOSE_AFTER_LAST_POST_STATUS_TYPE:()=>f,CLOSE_STATUS_TYPE:()=>g,DELETE_REPLIES_TYPE:()=>k,DELETE_STATUS_TYPE:()=>b,OPEN_STATUS_TYPE:()=>_,PUBLISH_TO_CATEGORY_STATUS_TYPE:()=>y,default:()=>x});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(54729),l=n(28360),u=n(64149),c=n(91450),d=n(51969),p=n(83183);let h=(0,n(82739).createTemplateFactory)({id:"nFKXA4BW",block:'[[[8,[39,0],[[24,"autoFocus","false"],[24,1,"topic-timer-modal"],[24,0,"edit-topic-timer-modal"]],[["@title","@flash","@closeModal"],[[28,[37,1],["topic.topic_status_update.title"],null],[30,0,["flash"]],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["topicTimer"]],[[[1," "],[8,[39,4],null,[["@topic","@topicTimer","@timerTypes","@onChangeStatusType","@onChangeInput"],[[30,2,["topic"]],[30,0,["topicTimer"]],[30,0,["publicTimerTypes"]],[30,0,["onChangeStatusType"]],[30,0,["onChangeInput"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@disabled","@label","@action","@isLoading"],[[30,0,["saveDisabled"]],"topic.topic_status_update.save",[30,0,["saveTimer"]],[30,0,["loading"]]]],null],[1,"\\n"],[41,[30,0,["topicTimer","execute_at"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@label"],[[30,0,["removeTimer"]],"topic.topic_status_update.remove"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","edit-topic-timer-form",":footer","d-button"]]',moduleName:"discourse/components/modal/edit-topic-timer.hbs",isStrictMode:!1});var m=n(76417);let g="close",f="close_after_last_post",_="open",y="publish_to_category",b="delete",w="bump",k="delete_replies";class x extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"topicTimer",[s.tracked]))();#ir=(()=>void dt7948.i(this,"topicTimer"))();static #i=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.args.model.topic?.topic_timer?this.topicTimer=new l.TrackedObject(this.args.model.topic?.topic_timer):(0,o.next)(()=>{this.topicTimer=new l.TrackedObject(this.createDefaultTimer())})}get defaultStatusType(){return this.publicTimerTypes[0].id}get publicTimerTypes(){let e=[],{closed:t,category:n,isPrivateMessage:i,invisible:s}=this.args.model.topic;return t||(e.push({id:g,name:(0,d.i18n)("topic.auto_close.title")}),e.push({id:f,name:(0,d.i18n)("topic.auto_close_after_last_post.title")})),t&&e.push({id:_,name:(0,d.i18n)("topic.auto_reopen.title")}),this.args.model.topic.details.can_delete&&e.push({id:b,name:(0,d.i18n)("topic.auto_delete.title")}),e.push({id:w,name:(0,d.i18n)("topic.auto_bump.title")}),this.args.model.topic.details.can_delete&&e.push({id:k,name:(0,d.i18n)("topic.auto_delete_replies.title")}),t&&e.push({id:g,name:(0,d.i18n)("topic.temp_open.title")}),t||e.push({id:_,name:(0,d.i18n)("topic.temp_close.title")}),(n&&n.read_restricted||i||s)&&e.push({id:y,name:(0,d.i18n)("topic.publish_to_category.title")}),e}_setTimer(e,t,n,i,s){this.loading=!0,c.default.update(this.args.model.topic.id,e,i,n,s,t).then(n=>{if(e||t)this.args.model.updateTopicTimerProperty("execute_at",n.execute_at),this.args.model.updateTopicTimerProperty("duration_minutes",n.duration_minutes),this.args.model.updateTopicTimerProperty("category_id",n.category_id),this.args.model.updateTopicTimerProperty("closed",n.closed),this.args.closeModal();else{let e=this.createDefaultTimer();this.topicTime=e,this.args.model.setTopicTimer(e),this.onChangeInput(null,null)}}).catch(u.popupAjaxError).finally(()=>this.loading=!1)}createDefaultTimer(){let e=c.default.create({status_type:this.defaultStatusType});return this.args.model.setTopicTimer(e),e}static #u=(()=>dt7948.n(this.prototype,"createDefaultTimer",[r.action]))();onChangeStatusType(e){let t=f===e;this.topicTimer.based_on_last_post=t,this.args.model.updateTopicTimerProperty("based_on_last_post",t),this.topicTimer.status_type=e,this.args.model.updateTopicTimerProperty("status_type",e)}static #c=(()=>dt7948.n(this.prototype,"onChangeStatusType",[r.action]))();onChangeInput(e,t){moment.isMoment(t)&&(t=t.format(p.FORMAT)),this.topicTimer.updateTime=t,this.args.model.updateTopicTimerProperty("updateTime",t)}static #d=(()=>dt7948.n(this.prototype,"onChangeInput",[r.action]))();async saveTimer(){if(this.flash=null,!this.topicTimer.updateTime&&!this.topicTimer.duration_minutes){this.flash=(0,d.i18n)("topic.topic_status_update.time_frame_required");return}if(this.topicTimer.duration_minutes&&!this.topicTimer.updateTime){if(this.topicTimer.duration_minutes<=0){this.flash=(0,d.i18n)("topic.topic_status_update.min_duration");return}if(this.topicTimer.duration_minutes>10512e3){this.flash=(0,d.i18n)("topic.topic_status_update.max_duration");return}}let e=this.topicTimer.status_type;e===f&&(e=g),await this._setTimer(this.topicTimer.updateTime,this.topicTimer.duration_minutes,e,this.topicTimer.based_on_last_post,this.topicTimer.category_id)}static #p=(()=>dt7948.n(this.prototype,"saveTimer",[r.action]))();async removeTimer(){let e=this.topicTimer.status_type;e===f&&(e=g),await this._setTimer(null,null,e),this.topicTimer.execute_at=null}static #h=(()=>dt7948.n(this.prototype,"removeTimer",[r.action]))()}(0,m.setComponentTemplate)(h,x)},6285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(72400),a=n(6610),l=n(64149);let u=(0,n(82739).createTemplateFactory)({id:"sYOZf0tH",block:'[[[8,[39,0],[[24,0,"edit-user-directory-columns-modal"]],[["@closeModal","@title","@flash"],[[30,1],[28,[37,1],["directory.edit_columns.title"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[1,[28,[35,4],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"edit-directory-columns-container"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["columns"]]],null]],null],null,[[[1," "],[10,0],[14,0,"edit-directory-column"],[12],[1,"\\n "],[10,0],[14,0,"left-content"],[12],[1,"\\n "],[10,"label"],[14,0,"column-name"],[12],[1,"\\n "],[8,[39,9],null,[["@type","@checked"],["checkbox",[30,2,["enabled"]]]],null],[1,"\\n"],[41,[28,[37,10],null,[["column"],[[30,2]]]],[[[1," "],[1,[28,[35,11],null,[["field","labelKey","icon"],[[30,2,["name"]],[30,0,["labelKey"]],[30,2,["icon"]]]]]],[1,"\\n"]],[]],[[[41,[28,[37,12],null,[["column"],[[30,2]]]],[[[1," "],[1,[28,[35,11],null,[["field","translated"],[[30,2,["user_field","name"]],true]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,11],null,[["field","translated"],[[28,[37,1],[[30,2,["name"]]],null],true]]]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"right-content"],[12],[1,"\\n "],[8,[39,13],[[24,0,"button-secondary move-column-up"]],[["@icon","@action"],["arrow-up",[28,[37,14],[[30,0,["moveUp"]],[30,2]],null]]],null],[1,"\\n "],[8,[39,13],[[24,0,"button-secondary"]],[["@icon","@action"],["arrow-down",[28,[37,14],[[30,0,["moveDown"]],[30,2]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,13],[[24,0,"btn-primary"]],[["@label","@action"],["directory.edit_columns.save",[30,0,["save"]]]],null],[1,"\\n "],[8,[39,13],[[24,0,"btn-secondary reset-to-default"]],[["@label","@action"],["directory.edit_columns.reset_to_default",[30,0,["resetToDefault"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","column"],false,["d-modal","i18n",":body","if","loading-spinner","div","each","-track-array","label","input","directory-column-is-automatic","directory-table-header-title","directory-column-is-user-field","d-button","fn",":footer"]]',moduleName:"discourse/components/modal/edit-user-directory-columns.hbs",isStrictMode:!1});var c=n(76417);let d="down";class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"columns",[s.tracked]))();#io=(()=>void dt7948.i(this,"columns"))();static #i=(()=>dt7948.g(this.prototype,"labelKey",[s.tracked]))();#ia=(()=>void dt7948.i(this,"labelKey"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.setupColumns()}async setupColumns(){try{let e=await (0,a.ajax)("edit-directory-columns.json");this.loading=!1,this.columns=e.directory_columns.sort((e,t)=>e.position>t.position?1:-1).map(e=>({...e,enabled:!!e.enabled}))}catch(e){(0,l.popupAjaxError)(e)}}static #u=(()=>dt7948.n(this.prototype,"setupColumns",[r.action]))();async save(){this.loading=!0,this.flash=null;let e={directory_columns:this.columns.map(e=>({id:e.id,enabled:e.enabled,position:e.position}))};try{await (0,a.ajax)("edit-directory-columns.json",{type:"PUT",data:e}),(0,o.reload)()}catch(e){this.loading=!1,this.flash=(0,l.extractError)(e)}}static #c=(()=>dt7948.n(this.prototype,"save",[r.action]))();resetToDefault(){let e=this.columns.sort((e,t)=>{let n=e.automatic_position||(e.user_field?.position||0)+1e3,i=t.automatic_position||(t.user_field?.position||0)+1e3;return n===i?e.name.localeCompare(t.name):n>i?1:-1}).map((e,t)=>({...e,position:e.automatic_position||t+1,enabled:"automatic"===e.type}));this.columns=e}static #d=(()=>dt7948.n(this.prototype,"resetToDefault",[r.action]))();moveUp(e){this._moveColumn("up",e)}static #p=(()=>dt7948.n(this.prototype,"moveUp",[r.action]))();moveDown(e){this._moveColumn(d,e)}static #h=(()=>dt7948.n(this.prototype,"moveDown",[r.action]))();_moveColumn(e,t){if("up"===e&&1===t.position||e===d&&t.position===this.columns.length)return;let n=t.position,i="up"===e?n-1:n+1,s=this.columns.find(e=>e.position===i);t.position=i,s.position=n,this.columns=this.columns.sort((e,t)=>e.position>t.position?1:-1)}}(0,c.setComponentTemplate)(u,p)},17533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(28564),r=n(70001),o=n(54729);let a=(0,n(82739).createTemplateFactory)({id:"3BJUpDx1",block:'[[[8,[39,0],[[24,0,"explain-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.explain.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["review.explain.formula"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["review.explain.subtotal"],null]],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewableExplanation","scores"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,11],null,[["@value"],["1.0"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["type_bonus"]],"type_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["take_action_bonus"]],"take_action_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["trust_level_bonus"]],"trust_level_bonus"]],null],[1,"\\n "],[8,[39,11],null,[["@value","@label"],[[30,2,["user_accuracy_bonus"]],"user_accuracy_bonus"]],null],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,[28,[35,12],[[30,2,["score"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[10,"tr"],[14,0,"total"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.total"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","total_score"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"table"],[14,0,"thresholds"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.min_score_visibility"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","min_score_visibility"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[35,1],["review.explain.score_to_hide"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"sum"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewableExplanation","hide_post_score"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n "]],[]]]]]],["@closeModal","s"],false,["d-modal","i18n",":body","conditional-loading-spinner","table","tbody","tr","th","each","-track-array","td","score-value","float",":footer","d-button"]]',moduleName:"discourse/components/modal/explain-reviewable.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #n=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"reviewableExplanation",[s.tracked],function(){return null}))();#il=(()=>void dt7948.i(this,"reviewableExplanation"))();constructor(){super(...arguments),this.loadExplanation()}async loadExplanation(){try{let e=await this.store.find("reviewable-explanation",this.args.model.reviewable.id);this.reviewableExplanation=e}finally{this.loading=!1}}static #l=(()=>dt7948.n(this.prototype,"loadExplanation",[r.action]))()}(0,l.setComponentTemplate)(a,u)},72842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"OX9V+/2m",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["post.quote_edit"],null],[30,1]]],[["default"],[[[[1,"\\n "],[8,[39,2],null,[["@newValue","@initialValue","@post","@close"],[[30,2,["newValue"]],[30,2,["initialValue"]],[30,2,["post"]],[30,1]]],null],[1,"\\n"]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","fast-edit"]]',moduleName:"discourse/components/modal/fast-edit.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"fast-edit"))},74298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(6610),a=n(64149);let l=(0,n(82739).createTemplateFactory)({id:"F4h64/W3",block:'[[[8,[39,0],[[24,0,"feature-topic-on-profile choose-topic-modal"],[24,1,"choosing-topic"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.feature_topic_on_profile.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@topicChangedCallback","@currentTopicId","@loadOnInit","@additionalFilters","@label"],[[30,0,["newTopicSelected"]],[30,2,["user","featured_topic","id"]],true,"status:public","user.feature_topic_on_profile.search_label"]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],[[24,0,"btn-primary save-featured-topic-on-profile"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["noTopicSelected"]],"user.feature_topic_on_profile.save"]],null],[1,"\\n "],[8,[39,5],[[24,0,"btn-flat"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","choose-topic",":footer","d-button"]]',moduleName:"discourse/components/modal/feature-topic-on-profile.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"newFeaturedTopic",[s.tracked],function(){return null}))();#iu=(()=>void dt7948.i(this,"newFeaturedTopic"))();static #n=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();get noTopicSelected(){return!this.newFeaturedTopic}async save(){try{this.saving=!0,await (0,o.ajax)(`/u/${this.args.model.user.username}/feature-topic`,{type:"PUT",data:{topic_id:this.newFeaturedTopic.id}}),this.args.model.setFeaturedTopic(this.newFeaturedTopic),this.args.closeModal()}catch(e){(0,a.popupAjaxError)(e)}finally{this.saving=!1}}static #i=(()=>dt7948.n(this.prototype,"save",[r.action]))();newTopicSelected(e){this.newFeaturedTopic=e}static #l=(()=>dt7948.n(this.prototype,"newTopicSelected",[r.action]))()}(0,u.setComponentTemplate)(l,c)},65806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(12223),l=n(6610),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"wvMajAeF",block:'[[[8,[39,0],[[24,0,"feature-topic"]],[["@title","@closeModal"],[[28,[37,1],["topic.feature_topic.title"],null],[30,1]]],[["body"],[[[[1,"\\n"],[41,[30,2,["topic","pinned_at"]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,2,["topic","pinned_globally"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,[28,[35,7],[[30,0,["unPinMessage"]]],null]],[13],[1,"\\n "],[10,2],[12],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["unpin"]],"thumbtack","topic.feature.unpin"]],null],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pin"]],"thumbtack","topic.feature.pin"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canPinGlobally"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n "],[8,[39,9],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,10],[[30,0],[28,[37,11],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[39,12],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,"\\n "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pinGlobally"]],"thumbtack","topic.feature.pin_globally"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[10,"hr"],[12],[13],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[10,0],[14,0,"feature-section"],[12],[1,"\\n "],[10,0],[14,0,"desc"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[8,[39,6],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["bannerCount"]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.banner_exists"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],[[28,[37,1],["topic.feature_topic.no_banner_exists"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,1],["topic.feature_topic.banner_note"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1," "],[1,[28,[35,1],["topic.feature_topic.remove_banner"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["topic.feature_topic.make_banner"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1," "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["removeBanner"]],"thumbtack","topic.feature.remove_banner"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],[[24,0,"btn-primary make-banner"]],[["@action","@icon","@label"],[[30,0,["makeBanner"]],"thumbtack","topic.feature.make_banner"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","div","p","conditional-loading-spinner","html-safe","d-button","future-date-input","action","mut","popup-input-tip","span","d-icon","hr"]]',moduleName:"discourse/components/modal/feature-topic.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"pinnedInCategoryCount",[s.tracked],function(){return 0}))();#ic=(()=>void dt7948.i(this,"pinnedInCategoryCount"))();static #u=(()=>dt7948.g(this.prototype,"pinnedGloballyCount",[s.tracked],function(){return 0}))();#id=(()=>void dt7948.i(this,"pinnedGloballyCount"))();static #c=(()=>dt7948.g(this.prototype,"bannerCount",[s.tracked],function(){return 0}))();#ip=(()=>void dt7948.i(this,"bannerCount"))();static #d=(()=>dt7948.g(this.prototype,"pinInCategoryTipShownAt",[s.tracked],function(){return!1}))();#ih=(()=>void dt7948.i(this,"pinInCategoryTipShownAt"))();static #p=(()=>dt7948.g(this.prototype,"pinGloballyTipShownAt",[s.tracked],function(){return!1}))();#im=(()=>void dt7948.i(this,"pinGloballyTipShownAt"))();constructor(){super(...arguments),this.loadFeatureStats()}get categoryLink(){return(0,a.categoryLinkHTML)(this.args.model.topic.category,{allowUncategorized:!0})}get unPinMessage(){let e="topic.feature_topic.unpin";this.args.model.topic.pinned_globally&&(e+="_globally"),moment(this.args.model.topic.pinned_until)>moment()&&(e+="_until");let t=moment(this.args.model.topic.pinned_until).format("LL");return(0,u.i18n)(e,{categoryLink:this.categoryLink,until:t})}get canPinGlobally(){return this.currentUser.canManageTopic&&this.args.model.topic.details.can_pin_unpin_topic}get pinMessage(){return(0,u.i18n)("topic.feature_topic.pin",{categoryLink:this.categoryLink})}get alreadyPinnedMessage(){let e=0===this.pinnedInCategoryCount?"topic.feature_topic.not_pinned":"topic.feature_topic.already_pinned";return(0,u.i18n)(e,{categoryLink:this.categoryLink,count:this.pinnedInCategoryCount})}get pinDisabled(){return!this._isDateValid(this.parsedPinnedInCategoryUntil)}get pinGloballyDisabled(){return!this._isDateValid(this.parsedPinnedGloballyUntil)}get parsedPinnedInCategoryUntil(){return this._parseDate(this.args.model.topic.pinnedInCategoryUntil)}get parsedPinnedGloballyUntil(){return this._parseDate(this.args.model.topic.pinnedGloballyUntil)}get pinInCategoryValidation(){if(this.pinDisabled)return r.default.create({failed:!0,reason:(0,u.i18n)("topic.feature_topic.pin_validation")})}get pinGloballyValidation(){if(this.pinGloballyDisabled)return r.default.create({failed:!0,reason:(0,u.i18n)("topic.feature_topic.pin_validation")})}_parseDate(e){return moment(e,["YYYY-MM-DD","YYYY-MM-DD HH:mm"])}_isDateValid(e){return e.isValid()&&e>moment()}async loadFeatureStats(){try{this.loading=!0;let e=await (0,l.ajax)("/topics/feature_stats.json",{data:{category_id:this.args.model.topic.category.id}});e&&(this.pinnedInCategoryCount=e.pinned_in_category_count,this.pinnedGloballyCount=e.pinned_globally_count,this.bannerCount=e.banner_count)}finally{this.loading=!1}}static #h=(()=>dt7948.n(this.prototype,"loadFeatureStats",[r.action]))();async _confirmBeforePinningGlobally(){this.pinnedGloballyCount<4?(this.args.model.pinGlobally(),this.args.closeModal()):this.dialog.yesNoConfirm({message:(0,u.i18n)("topic.feature_topic.confirm_pin_globally",{count:this.pinnedGloballyCount}),didConfirm:()=>{this.args.model.pinGlobally(),this.args.closeModal()}})}pin(){this.pinDisabled?this.pinInCategoryTipShownAt=Date.now():(this.args.model.togglePinned(),this.args.closeModal())}static #m=(()=>dt7948.n(this.prototype,"pin",[r.action]))();pinGlobally(){this.pinGloballyDisabled?this.pinGloballyTipShownAt=Date.now():this._confirmBeforePinningGlobally()}static #g=(()=>dt7948.n(this.prototype,"pinGlobally",[r.action]))();unpin(){this.args.model.togglePinned(),this.args.closeModal()}static #E=(()=>dt7948.n(this.prototype,"unpin",[r.action]))();makeBanner(){this.args.model.makeBanner(),this.args.closeModal()}static #A=(()=>dt7948.n(this.prototype,"makeBanner",[r.action]))();removeBanner(){this.args.model.removeBanner(),this.args.closeModal()}static #D=(()=>dt7948.n(this.prototype,"removeBanner",[r.action]))()}(0,d.setComponentTemplate)(c,p)},30884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(72400),l=n(70243),u=n(41958),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"SgL5Jxel",block:'[[[8,[39,0],[[24,0,"flag-modal"],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null]],[["@bodyClass","@title","@submitOnEnter","@closeModal"],["flag-modal-body",[28,[37,1],[[30,0,["title"]]],null],false,[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,5],null,[["@nameKey","@flags"],[[30,0,["selected","name_key"]],[30,0,["flagsAvailable"]]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@flag","@message","@isConfirmed","@isWarning","@selectedFlag","@username","@staffFlagsAvailable","@changePostActionType"],[[30,2],[30,0,["message"]],[30,0,["isConfirmed"]],[30,0,["isWarning"]],[30,0,["selected"]],[30,3,["flagModel","username"]],[30,0,["staffFlagsAvailable"]],[30,0,["changePostActionType"]]]],null],[1,"\\n "]],[2]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["flag-modal-bottom","div",[28,[37,8],null,[["post"],[[30,3,["flagModel"]]]]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,10],[[24,0,"btn-primary flag-modal__create-flag"]],[["@action","@disabled","@title","@icon","@label"],[[30,0,["createFlag"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"flagging.submit_tooltip",[52,[30,0,["selected","is_custom_flag"]],"envelope","flag"],[30,0,["submitLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSendWarning"]],[[[1," "],[8,[39,10],[[24,0,"btn-danger flag-modal__send-warning"]],[["@action","@disabled","@icon","@label"],[[30,0,["createFlagAsWarning"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"triangle-exclamation","flagging.official_warning"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canTakeAction"]],[[[1," "],[8,[39,13],[[24,0,"flag-modal__take-action"]],[["@bundle","@performAction","@reviewableUpdating"],[[30,0,["flagActions"]],[30,0,["takeAction"]],[28,[37,11],[[30,0,["submitEnabled"]]],null]]],null],[1,"\\n\\n "],[8,[39,10],[[24,0,"btn-danger flag-modal__flag-for-review"]],[["@action","@disabled","@icon","@label"],[[30,0,["flagForReview"]],[28,[37,11],[[30,0,["submitEnabled"]],[30,0,["notifyModeratorsFlag"]]],null],"triangle-exclamation","flagging.flag_for_review"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDeleteSpammer"]],[[[1," "],[8,[39,10],[[24,0,"btn-danger delete-spammer flag-modal__delete-spammer"]],[["@action","@disabled","@icon","@label"],[[30,0,["deleteSpammer"]],[28,[37,11],[[30,0,["submitEnabled"]]],null],"triangle-exclamation","flagging.delete_spammer"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","f","@model"],false,["d-modal","i18n","on",":body","form","flag-selection","flag-action-type","plugin-outlet","hash",":footer","d-button","not","if","reviewable-bundled-action"]]',moduleName:"discourse/components/modal/flag.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"adminTools",[o.service]))();#ig=(()=>void dt7948.i(this,"adminTools"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"userDetails",[s.tracked]))();#i_=(()=>void dt7948.i(this,"userDetails"))();static #d=(()=>dt7948.g(this.prototype,"selected",[s.tracked]))();#iy=(()=>void dt7948.i(this,"selected"))();static #p=(()=>dt7948.g(this.prototype,"message",[s.tracked]))();#ib=(()=>void dt7948.i(this,"message"))();static #h=(()=>dt7948.g(this.prototype,"isConfirmed",[s.tracked],function(){return!1}))();#iv=(()=>void dt7948.i(this,"isConfirmed"))();static #m=(()=>dt7948.g(this.prototype,"isWarning",[s.tracked],function(){return!1}))();#iw=(()=>void dt7948.i(this,"isWarning"))();static #g=(()=>dt7948.g(this.prototype,"spammerDetails",[s.tracked]))();#ik=(()=>void dt7948.i(this,"spammerDetails"))();constructor(){super(...arguments),this.adminTools?.checkSpammer(this.args.model.flagModel.user_id).then(e=>this.spammerDetails=e)}get flagActions(){return{icon:"gavel",label:(0,c.i18n)("flagging.take_action"),actions:[{id:"agree_and_hide",icon:"thumbs-up",label:(0,c.i18n)("flagging.take_action_options.default.title"),description:(0,c.i18n)("flagging.take_action_options.default.details")},{id:"agree_and_suspend",icon:"ban",label:(0,c.i18n)("flagging.take_action_options.suspend.title"),description:(0,c.i18n)("flagging.take_action_options.suspend.details"),client_action:"suspend"},{id:"agree_and_silence",icon:"microphone-slash",label:(0,c.i18n)("flagging.take_action_options.silence.title"),description:(0,c.i18n)("flagging.take_action_options.silence.details"),client_action:"silence"}]}}get canSendWarning(){return!this.args.model.flagTarget.targetsTopic()&&this.currentUser.staff&&this.selected?.name_key==="notify_user"}get showDeleteSpammer(){return this.spammerDetails?.canDelete&&this.selected?.name_key==="spam"}get submitLabel(){return this.selected?.require_message?this.args.model.flagTarget.customSubmitLabel():this.args.model.flagTarget.submitLabel()}get title(){return this.args.model.flagTarget.title()}get flagsAvailable(){return this.args.model.flagTarget.flagsAvailable(this).filterBy("enabled")}get staffFlagsAvailable(){return this.flagsAvailable.length>1}get submitEnabled(){if(!this.selected)return!1;if(!this.selected.require_message)return!0;if(this.selected.isIllegal&&!this.isConfirmed)return!1;let e=this.message?.length||0;return e>=this.siteSettings.min_personal_message_post_length&&e<=l.MAX_MESSAGE_LENGTH}get notifyModeratorsFlag(){return this.flagsAvailable.find(e=>"notify_moderators"===e.id)}get canTakeAction(){return!this.args.model.flagTarget.targetsTopic()&&!this.selected?.require_message&&this.currentUser.staff}onKeydown(e){if(this.submitEnabled&&"Enter"===e.key&&(e.ctrlKey||e.metaKey))return this.createFlag(),!1}static #E=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();async penalize(e,t){if(!this.adminTools)return;let n=await u.default.findByUsername(this.args.model.flagModel.username),i={before:t};return this.args.model.flagTarget.editable()&&(i.postId=this.args.model.flagModel.id,i.postEdit=this.args.model.flagModel.cooked),this.adminTools[e](n,i)}static #A=(()=>dt7948.n(this.prototype,"penalize",[r.action]))();async deleteSpammer(){this.spammerDetails&&(await this.spammerDetails.deleteUser(),(0,a.reload)())}static #D=(()=>dt7948.n(this.prototype,"deleteSpammer",[r.action]))();async takeAction(e){"suspend"===e.client_action?await this.penalize("showSuspendModal",()=>this.createFlag({takeAction:!0,skipClose:!0})):"silence"===e.client_action?await this.penalize("showSilenceModal",()=>this.createFlag({takeAction:!0,skipClose:!0})):e.client_action?console.error(`No handler for ${e.client_action} found`):(this.args.model.setHidden(),this.createFlag({takeAction:!0}))}static #I=(()=>dt7948.n(this.prototype,"takeAction",[r.action]))();createFlag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selected.require_message&&(e.message=this.message),this.args.model.flagTarget.create(this,e)}static #G=(()=>dt7948.n(this.prototype,"createFlag",[r.action]))();createFlagAsWarning(){this.createFlag({isWarning:!0}),this.args.model.setHidden()}static #Y=(()=>dt7948.n(this.prototype,"createFlagAsWarning",[r.action]))();flagForReview(){this.selected||=this.notifyModeratorsFlag,this.createFlag({queue_for_review:!0}),this.args.model.setHidden()}static #Q=(()=>dt7948.n(this.prototype,"flagForReview",[r.action]))();changePostActionType(e){this.selected=e}static #J=(()=>dt7948.n(this.prototype,"changePostActionType",[r.action]))()}(0,p.setComponentTemplate)(d,h)},39203:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(35804),l=n(97355),u=n(6610),c=n(64149),d=n(84266),p=n(20802),h=n(87389),m=n(51969);let g=(0,n(82739).createTemplateFactory)({id:"tjLHb+SD",block:'[[[8,[39,0],[[24,0,"forgot-password-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["forgot_password.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1," "],[1,[28,[35,4],[[30,0,["offerHelp"]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","hide_email_address_taken"]],[[[1," "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n "],[1,[28,[35,1],["forgot_password.invite_no_username"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["email"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,7],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,1],["forgot_password.invite"],null]],[13],[1,"\\n "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n "],[1,[28,[35,1],["forgot_password.email-username"],null]],[1,"\\n "],[13],[1,"\\n "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["login.email_placeholder"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,7],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n "]],[]]]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1," "],[8,[39,10],[[24,0,"btn-large btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,1],"forgot_password.button_ok"]],null],[1,"\\n"],[41,[51,[30,0,["helpSeen"]]],[[[1," "],[8,[39,10],[[24,0,"btn-large"]],[["@action","@label","@icon"],[[30,0,["help"]],"forgot_password.button_help","circle-question"]],null],[1,"\\n"]],[]],null]],[]],[[[1," "],[8,[39,10],[[24,0,"btn-primary forgot-password-reset"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["resetPassword"]],[30,0,["submitDisabled"]],"forgot_password.reset"]],null],[1,"\\n"]],[]]],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","html-safe","label","input","on","p",":footer","d-button","unless"]]',moduleName:"discourse/components/modal/forgot-password.hbs",isStrictMode:!1});var f=n(76417);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"emailOrUsername",[s.tracked],function(){return(0,d.default)("email")||this.args.model?.emailOrUsername||""}))();#ix=(()=>void dt7948.i(this,"emailOrUsername"))();static #i=(()=>dt7948.g(this.prototype,"disabled",[s.tracked],function(){return!1}))();#F=(()=>void dt7948.i(this,"disabled"))();static #l=(()=>dt7948.g(this.prototype,"helpSeen",[s.tracked],function(){return!1}))();#iT=(()=>void dt7948.i(this,"helpSeen"))();static #u=(()=>dt7948.g(this.prototype,"offerHelp",[s.tracked]))();#iS=(()=>void dt7948.i(this,"offerHelp"))();static #c=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();get submitDisabled(){return!!this.disabled||(this.siteSettings.hide_email_address_taken?!this.emailOrUsername.includes("@"):(0,l.isEmpty)(this.emailOrUsername.trim()))}updateEmailOrUsername(e){this.emailOrUsername=e.target.value}static #d=(()=>dt7948.n(this.prototype,"updateEmailOrUsername",[r.action]))();help(){this.offerHelp=(0,m.i18n)("forgot_password.help",{basePath:(0,h.default)("")}),this.helpSeen=!0}static #p=(()=>dt7948.n(this.prototype,"help",[r.action]))();async resetPassword(){if(this.submitDisabled)return!1;this.disabled=!0,this.flash=null;try{let e=await (0,u.ajax)("/session/forgot_password",{data:{login:this.emailOrUsername.trim()},type:"POST"}),t=(0,p.escapeExpression)(this.emailOrUsername),n="forgot_password.complete";n+=t.match(/@/)?"_email":"_username",!1===e.user_found?(n+="_not_found",this.flash=(0,a.htmlSafe)((0,m.i18n)(n,{email:t,username:t}))):(n+=e.user_found?"_found":"",this.emailOrUsername="",this.offerHelp=(0,m.i18n)(n,{email:t,username:t}),this.helpSeen=!e.user_found)}catch(e){this.flash=(0,c.extractError)(e)}finally{this.disabled=!1}}static #h=(()=>dt7948.n(this.prototype,"resetPassword",[r.action]))()}(0,f.setComponentTemplate)(g,_)},1399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"a6ffdu0S",block:'[[[8,[39,0],[[24,0,"form-template-form-preview-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.form_templates.preview_modal.title"],null]]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@content"],[[30,2]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@content"],false,["d-modal","i18n",":body","form-template-field/wrapper"]]',moduleName:"discourse/components/modal/form-template-form-preview.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"form-template-form-preview"))},8304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(54729),o=n(73160),a=n(18672);let l=(0,n(82739).createTemplateFactory)({id:"6GKssFNg",block:'[[[8,[39,0],[[24,0,"fullscreen-code-modal -max"],[4,[38,2],[[30,0,["applyCodeblockButtons"]]],null]],[["@title","@closeModal"],[[28,[37,1],["copy_codeblock.view_code"],null],[30,0,["closeModal"]]]],[["body"],[[[[1,"\\n "],[10,"pre"],[12],[1," "],[10,"code"],[15,0,[30,1,["codeClasses"]]],[12],[1,[30,1,["code"]]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]]],["@model"],false,["d-modal","i18n","did-insert",":body","pre","code"]]',moduleName:"discourse/components/modal/fullscreen-code.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"session",[r.service]))();#eK=(()=>void dt7948.i(this,"session"))();closeModal(){this.codeBlockButtons.cleanup(),this.args.closeModal()}static #i=(()=>dt7948.n(this.prototype,"closeModal",[s.action]))();applyCodeblockButtons(e){let t=e.querySelector(".d-modal__body");(0,a.default)(t,this.siteSettings,this.session),this.codeBlockButtons=new o.default({showFullscreen:!1,showCopy:!0}),this.codeBlockButtons.attachToGeneric(t)}static #l=(()=>dt7948.n(this.prototype,"applyCodeblockButtons",[s.action]))()}(0,u.setComponentTemplate)(l,c)},18469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Tk+kfqGc",block:'[[[8,[39,0],[[24,0,"fullscreen-table-modal -max"]],[["@title","@closeModal"],[[28,[37,1],["fullscreen_table.view_table"],null],[30,1]]],[["body"],[[[[1,"\\n "],[1,[30,2,["tableHtml"]]],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body"]]',moduleName:"discourse/components/modal/fullscreen-table.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"fullscreen-table"))},63009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(68741),l=n(59602),u=n(92976),c=n(72491),d=n(64149),p=n(26446),h=n(79298),m=n(12696),g=n(87389),f=n(51969),_=n(17784),y=n(76417),b=n(82739);class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #i=(()=>dt7948.g(this.prototype,"selectedBadgeId",[s.tracked],function(){return null}))();#iC=(()=>void dt7948.i(this,"selectedBadgeId"))();static #l=(()=>dt7948.g(this.prototype,"flash",[s.tracked],function(){return null}))();#nt=(()=>void dt7948.i(this,"flash"))();static #u=(()=>dt7948.g(this.prototype,"flashType",[s.tracked],function(){return null}))();#iE=(()=>void dt7948.i(this,"flashType"))();static #c=(()=>dt7948.g(this.prototype,"allBadges",[s.tracked],function(){return[]}))();#iA=(()=>void dt7948.i(this,"allBadges"))();static #d=(()=>dt7948.g(this.prototype,"userBadges",[s.tracked],function(){return[]}))();#iD=(()=>void dt7948.i(this,"userBadges"))();static #p=(()=>dt7948.g(this.prototype,"availableBadges",[s.tracked],function(){return[]}))();#iI=(()=>void dt7948.i(this,"availableBadges"))();get noAvailableBadges(){this.availableBadges.length}get post(){return this.args.model.selectedPost}get buttonDisabled(){return this.saving||!(0,p.isBadgeGrantable)(this.selectedBadgeId,this.availableBadges)}#iP(){this.availableBadges=(0,p.grantableBadges)(this.allBadges,this.userBadges)}async loadBadges(){this.loading=!0;try{this.allBadges=await h.default.findAll(),this.userBadges=await m.default.findByUsername(this.post.username),this.#iP()}catch(e){this.flash=(0,d.extractError)(e),this.flashType="error"}finally{this.loading=!1}}static #h=(()=>dt7948.n(this.prototype,"loadBadges",[o.action]))();async performGrantBadge(){try{this.saving=!0;let e=this.post.username,t=await m.default.grant(this.selectedBadgeId,e,(0,g.default)(this.post.url));this.userBadges.pushObject(t),this.#iP(),this.selectedBadgeId=null,this.flash=(0,f.i18n)("badges.successfully_granted",{username:e,badge:t.get("badge.name")}),this.flashType="success"}catch(e){this.flash=(0,d.extractError)(e),this.flashType="error"}finally{this.saving=!1}}static #m=(()=>dt7948.n(this.prototype,"performGrantBadge",[o.action]))();static #g=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"gSjxXpbe",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"grant-badge-modal"],[4,[32,2],[[30,0,["loadBadges"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType","@title"],["grant-badge",[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[32,1],["admin.badges.grant_badge"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["noAvailableBadges"]],[[[1," "],[10,2],[12],[1,[28,[32,1],["admin.badges.no_badges"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,4],null,[["@value","@content","@onChange","@options"],[[30,0,["selectedBadgeId"]],[30,0,["availableBadges"]],[28,[32,5],[[28,[31,1],[[30,0,["selectedBadgeId"]]],null]],null],[28,[32,6],null,[["filterable","none"],[true,"badges.none"]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,7],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["performGrantBadge"]],"admin.badges.grant"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/grant-badge.js",scope:()=>[c.default,f.i18n,a.default,l.default,_.default,r.fn,r.hash,u.default],isStrictMode:!0}),this))()}},87766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(97355),l=n(64149),u=n(20802),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"5enmeuay",block:'[[[8,[39,0],[[24,0,"group-add-members-modal"]],[["@title","@closeModal","@flash"],[[30,0,["title"]],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[14,0,"form-vertical group-add-members"],[12],[1,"\\n "],[10,2],[12],[1,[28,[35,4],["groups.add_members.description"],null]],[13],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[8,[39,6],null,[["@value","@onChange","@options"],[[30,0,["usernamesAndEmails"]],[30,0,["setUsernamesAndEmails"]],[28,[37,7],null,[["allowEmails","filterPlaceholder"],[[30,0,["currentUser","can_invite_to_forum"]],[52,[30,0,["currentUser","can_invite_to_forum"]],"groups.add_members.usernames_or_emails_placeholder","groups.add_members.usernames_placeholder"]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["can_admin_group"]],[[[1," "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[24,1,"set-owner"],[16,"disabled",[30,0,["emails"]]]],[["@type","@checked"],["checkbox",[30,0,["setOwner"]]]],null],[1,"\\n "],[1,[28,[35,4],["groups.add_members.set_owner"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,10],[[16,"disabled",[28,[37,11],[[28,[37,12],[[30,0,["usernames"]]],null],[30,0,["emails"]]],null]]],[["@type","@checked"],["checkbox",[30,0,["notifyUsers"]]]],null],[1,"\\n "],[1,[28,[35,4],["groups.add_members.notify_users"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],[[24,0,"add btn-primary"]],[["@action","@icon","@disabled","@label"],[[30,0,["addMembers"]],"plus",[28,[37,15],[[30,0,["loading"]],[28,[37,12],[[30,0,["usernamesAndEmails"]]],null]],null],"groups.add"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal",":body","form","p","i18n","div","email-group-user-chooser","hash","if","label","input","and","not",":footer","d-button","or"]]',moduleName:"discourse/components/modal/group-add-members.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"setOwner",[s.tracked],function(){return!1}))();#iM=(()=>void dt7948.i(this,"setOwner"))();static #u=(()=>dt7948.g(this.prototype,"notifyUsers",[s.tracked],function(){return!1}))();#iF=(()=>void dt7948.i(this,"notifyUsers"))();static #c=(()=>dt7948.g(this.prototype,"usernamesAndEmails",[s.tracked],function(){return[]}))();#iN=(()=>void dt7948.i(this,"usernamesAndEmails"))();static #d=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();get title(){return(0,c.i18n)("groups.add_members.title",{group_name:this.args.model.fullName||this.args.model.name})}get usernames(){return this.usernamesAndEmails.reject(u.emailValid).join(",")}get emails(){return this.usernamesAndEmails.filter(u.emailValid).join(",")}setUsernamesAndEmails(e){this.usernamesAndEmails=e,this.emails&&(this.usernames||(this.notifyUsers=!1),this.setOwner=!1)}static #p=(()=>dt7948.n(this.prototype,"setUsernamesAndEmails",[r.action]))();async addMembers(){if(!(0,a.isEmpty)(this.usernamesAndEmails)){this.loading=!0;try{this.setOwner?await this.args.model.addOwners(this.usernames,!0,this.notifyUsers):await this.args.model.addMembers(this.usernames,!0,this.notifyUsers,this.emails),this.router.transitionTo("group.members",this.args.model.name,{queryParams:{...this.usernames&&{filter:this.usernames}}}),this.args.closeModal()}catch(e){this.flash=(0,l.extractError)(e)}finally{this.loading=!1}}}static #h=(()=>dt7948.n(this.prototype,"addMembers",[r.action]))()}(0,p.setComponentTemplate)(d,h)},19678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"A6IluIwS",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["groups.default_notifications.modal_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,1],["groups.default_notifications.modal_description"],[["count"],[[30,2,["count"]]]]]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["updateExistingUsers"]],"groups.default_notifications.modal_yes"]],null],[1,"\\n "],[8,[39,4],null,[["@action","@label"],[[30,0,["cancel"]],"groups.default_notifications.modal_no"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body",":footer","d-button"]]',moduleName:"discourse/components/modal/group-default-notifications.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{updateExistingUsers(){this.args.model.setUpdateExistingUsers(!0),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"updateExistingUsers",[s.action]))();cancel(){this.args.model.setUpdateExistingUsers(!1),this.args.closeModal()}static #n=(()=>dt7948.n(this.prototype,"cancel",[s.action]))()}(0,o.setComponentTemplate)(r,a)},1177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(12223),l=n(62167),u=n(88253),c=n(69883),d=n(20762),p=n(51969);let h=(0,n(82739).createTemplateFactory)({id:"GTSPlCJT",block:'[[[8,[39,0],[[16,0,[29,["history-modal -max ",[28,[37,1],["--mode-",[28,[37,2],[[30,0,["viewMode"]]],null]],null]]]]],[["@title","@closeModal"],[[28,[37,3],[[30,0,["modalTitleKey"]]],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[8,[39,5],null,[["@condition"],[[30,0,["initialLoad"]]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@model","@previousCategory","@currentCategory","@displayInline","@displaySideBySide","@displaySideBySideMarkdown","@viewMode"],[[30,0,["postRevision"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["displayInline"]],[30,0,["displaySideBySide"]],[30,0,["displaySideBySideMarkdown"]],[30,0,["viewMode"]]]],null],[1,"\\n "],[8,[39,7],null,[["@model","@hiddenClasses","@mobileView","@userChanges","@previousCategory","@currentCategory","@previousTagChanges","@currentTagChanges","@bodyDiffHTML","@bodyDiff","@calculateBodyDiff","@titleDiff","@viewMode"],[[30,0,["postRevision"]],[30,0,["hiddenClasses"]],[30,0,["site","mobileView"]],[30,0,["user_changes"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["previousTagChanges"]],[30,0,["currentTagChanges"]],[30,0,["bodyDiffHTML"]],[30,0,["bodyDiff"]],[30,0,["calculateBodyDiff"]],[30,0,["titleDiff"]],[30,0,["viewMode"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[30,2,["editPost"]],[[[1," "],[8,[39,10],null,[["@model","@loadFirstVersion","@loadPreviousVersion","@loadNextVersion","@loadLastVersion","@displayEdit","@editPost","@editButtonLabel","@revertToVersion","@hideVersion","@showVersion","@permanentlyDeleteVersions","@loading","@canPermanentlyDelete","@loadFirstDisabled","@loadPreviousDisabled","@displayRevisions","@revisionsText","@loadNextDisabled","@loadLastDisabled","@revertToRevisionText","@isStaff"],[[30,0,["postRevision"]],[30,0,["loadFirstVersion"]],[30,0,["loadPreviousVersion"]],[30,0,["loadNextVersion"]],[30,0,["loadLastVersion"]],[30,0,["displayEdit"]],[30,0,["editPost"]],[30,0,["editButtonLabel"]],[30,0,["revertToVersion"]],[30,0,["hideVersion"]],[30,0,["showVersion"]],[30,0,["permanentlyDeleteVersions"]],[30,0,["loading"]],[30,0,["siteSettings","can_permanently_delete"]],[30,0,["loadFirstDisabled"]],[30,0,["loadPreviousDisabled"]],[30,0,["displayRevisions"]],[30,0,["revisionsText"]],[30,0,["loadNextDisabled"]],[30,0,["loadLastDisabled"]],[30,0,["revertToRevisionText"]],[30,0,["currentUser","staff"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","@model"],false,["d-modal","concat","dasherize","i18n",":body","conditional-loading-spinner","modal/history/revision","modal/history/revisions",":footer","if","modal/history/topic-footer"]]',moduleName:"discourse/components/modal/history.hbs",isStrictMode:!1});var m=n(76417);function g(e){return e?(Array.isArray(e)||(e=[e]),e):[]}class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"loading",[s.tracked]))();#k=(()=>void dt7948.i(this,"loading"))();static #d=(()=>dt7948.g(this.prototype,"postRevision",[s.tracked]))();#iO=(()=>void dt7948.i(this,"postRevision"))();static #p=(()=>dt7948.g(this.prototype,"viewMode",[s.tracked],function(){return this.site?.mobileView?"inline":"side_by_side"}))();#iL=(()=>void dt7948.i(this,"viewMode"))();static #h=(()=>dt7948.g(this.prototype,"bodyDiff",[s.tracked]))();#iR=(()=>void dt7948.i(this,"bodyDiff"))();static #m=(()=>dt7948.g(this.prototype,"initialLoad",[s.tracked],function(){return!0}))();#iU=(()=>void dt7948.i(this,"initialLoad"))();constructor(){super(...arguments),this.refresh(this.args.model.postId,this.args.model.postVersion)}get loadFirstDisabled(){return this.loading||this.postRevision?.current_revision<=this.postRevision?.first_revision}get loadPreviousDisabled(){return this.loading||!this.postRevision.previous_revision||!this.postRevision.previous_revision&&this.postRevision.current_revision<=this.postRevision.previous_revision}get loadNextDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get loadLastDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get displayRevisions(){return this.postRevision?.version_count>2}get modalTitleKey(){return this.args.model.post.version>100?"history_capped_revisions":"history"}get previousVersion(){return this.postRevision?.current_version?this.postRevision.current_version-1:null}get revisionsText(){return(0,p.i18n)("post.revisions.controls.comparing_previous_to_current_out_of_total",{previous:this.previousVersion,icon:(0,d.iconHTML)("left-right"),current:this.postRevision?.current_version,total:this.postRevision?.version_count})}get titleDiff(){let e=this.viewMode;return"side_by_side_markdown"===e&&(e="side_by_side"),this.postRevision?.title_changes?.[e]}get bodyDiffHTML(){return this.postRevision?.body_changes?.[this.viewMode]}async calculateBodyDiff(e,t){let n=t;"side_by_side_markdown"!==this.viewMode&&(n=await (0,l.sanitizeAsync)(n,{features:{editHistory:!0,historyOneboxes:!0},allowListed:{editHistory:{custom:(e,t)=>"class"===t},historyOneboxes:["header","article","div[style]"]}})),this.bodyDiff=n}static #g=(()=>dt7948.n(this.prototype,"calculateBodyDiff",[r.action]))();get previousTagChanges(){let e=g(this.postRevision.tags_changes.previous),t=new Set(g(this.postRevision.tags_changes.current));return e.map(e=>({name:e,deleted:!t.has(e)}))}get currentTagChanges(){let e=new Set(g(this.postRevision.tags_changes.previous));return g(this.postRevision.tags_changes.current).map(t=>({name:t,inserted:!e.has(t)}))}get createdAtDate(){return moment(this.postRevision.created_at).format("LLLL")}get displayEdit(){return!!(this.postRevision?.can_edit&&this.args.model.editPost&&this.postRevision?.last_revision===this.postRevision?.current_revision)}get revertToRevisionText(){if(this.previousVersion)return(0,p.i18n)("post.revisions.controls.revert",{revision:this.previousVersion})}async refresh(e,t){this.loading=!0;try{let n=await c.default.loadRevision(e,t);this.postRevision=n}catch(n){this.args.closeModal(),this.dialog.alert(n.jqXHR.responseJSON.errors[0]);let t=this.args.model.post?.topic?.postStream;if(!t)return;t.triggerChangedPost(e,this.args.model).then(()=>this.appEvents.trigger("post-stream:refresh",{id:e}))}finally{this.loading=!1,this.initialLoad=!1}}hide(e,t){c.default.hideRevision(e,t).then(()=>this.refresh(e,t))}show(e,t){c.default.showRevision(e,t).then(()=>this.refresh(e,t))}async revert(e,t){try{let n=await e.revertToRevision(t);this.refresh(e.id,t),n.topic&&(e.set("topic.slug",n.topic.slug),e.set("topic.title",n.topic.title),e.set("topic.fancy_title",n.topic.fancy_title)),n.category_id&&e.set("topic.category",await u.default.asyncFindById(n.category_id)),this.args.closeModal()}catch(e){e.jqXHR.responseJSON?.errors?.[0]&&this.dialog.alert(e.jqXHR.responseJSON.errors[0])}}get editButtonLabel(){return`post.revisions.controls.${this.postRevision.wiki?"edit_wiki":"edit_post"}`}get hiddenClasses(){if("inline"===this.viewMode)return this.postRevision?.previous_hidden||this.postRevision?.current_hidden?"hidden-revision-either":null;{let e=[];return this.postRevision?.previous_hidden&&e.push("hidden-revision-previous"),this.postRevision?.current_hidden&&e.push("hidden-revision-current"),e.join(" ")}}get previousCategory(){if(this.postRevision?.category_id_changes?.previous){let e=u.default.findById(this.postRevision.category_id_changes.previous);return(0,a.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-del"})}}get currentCategory(){if(this.postRevision?.category_id_changes?.current){let e=u.default.findById(this.postRevision.category_id_changes.current);return(0,a.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-ins"})}}displayInline(e){e?.preventDefault(),this.viewMode="inline"}static #E=(()=>dt7948.n(this.prototype,"displayInline",[r.action]))();displaySideBySide(e){e?.preventDefault(),this.viewMode="side_by_side"}static #A=(()=>dt7948.n(this.prototype,"displaySideBySide",[r.action]))();displaySideBySideMarkdown(e){e?.preventDefault(),this.viewMode="side_by_side_markdown"}static #D=(()=>dt7948.n(this.prototype,"displaySideBySideMarkdown",[r.action]))();loadFirstVersion(){this.refresh(this.postRevision.post_id,this.postRevision.first_revision)}static #I=(()=>dt7948.n(this.prototype,"loadFirstVersion",[r.action]))();loadPreviousVersion(){this.refresh(this.postRevision.post_id,this.postRevision.previous_revision)}static #G=(()=>dt7948.n(this.prototype,"loadPreviousVersion",[r.action]))();loadNextVersion(){this.refresh(this.postRevision.post_id,this.postRevision.next_revision)}static #Y=(()=>dt7948.n(this.prototype,"loadNextVersion",[r.action]))();loadLastVersion(){return this.refresh(this.postRevision.post_id,this.postRevision.last_revision)}static #Q=(()=>dt7948.n(this.prototype,"loadLastVersion",[r.action]))();hideVersion(){this.hide(this.postRevision.post_id,this.postRevision.current_revision)}static #J=(()=>dt7948.n(this.prototype,"hideVersion",[r.action]))();permanentlyDeleteVersions(){this.dialog.yesNoConfirm({message:(0,p.i18n)("post.revisions.controls.destroy_confirm"),didConfirm:()=>{c.default.permanentlyDeleteRevisions(this.postRevision.post_id).then(()=>{this.args.closeModal()})}})}static #X=(()=>dt7948.n(this.prototype,"permanentlyDeleteVersions",[r.action]))();showVersion(){this.show(this.postRevision.post_id,this.postRevision.current_revision)}static #Z=(()=>dt7948.n(this.prototype,"showVersion",[r.action]))();editPost(){this.args.model.editPost(this.args.model.post),this.args.closeModal()}static #ee=(()=>dt7948.n(this.prototype,"editPost",[r.action]))();revertToVersion(){this.revert(this.args.model.post,this.postRevision.current_revision)}static #et=(()=>dt7948.n(this.prototype,"revertToVersion",[r.action]))()}(0,m.setComponentTemplate)(h,f)},16396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"GDCQ74R9",block:'[[[10,0],[14,1,"revision"],[12],[1,"\\n "],[10,0],[14,1,"revision-details"],[12],[1,"\\n "],[1,[28,[35,1],["pencil"],null]],[1,"\\n "],[8,[39,2],[[24,0,"revision-details__user"]],[["@route","@model"],["user",[30,1,["username"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,1,["avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["revision-user-details-after",[28,[37,5],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[10,1],[14,0,"date"],[12],[1,[28,[35,7],[[30,1,["created_at"]]],null]],[13],[1,"\\n"],[41,[30,1,["edit_reason"]],[[[1," "],[10,1],[14,0,"edit-reason"],[12],[1,[30,1,["edit_reason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,1],[12],[1,"\\n"],[41,[30,1,["user_changes"]],[[[1," "],[1,[28,[35,3],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n →\\n "],[1,[28,[35,3],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["wiki_changes"]],[[[1," "],[1,[28,[35,1],["far-pen-to-square"],[["class"],[[52,[30,1,["wiki_changes","current"]],"diff-ins","diff-del"]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["post_type_changes"]],[[[1," "],[1,[28,[35,1],["shield-halved"],[["class"],[[52,[28,[37,9],[[30,1,["post_type_changes","current"]],[30,2,["post_types","moderator_action"]]],null],"diff-del","diff-ins"]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["archetype_changes"]],[[[1," "],[1,[28,[35,1],[[52,[28,[37,9],[[30,1,["archetype_changes","current"]],"private_message"],null],"envelope","comment"]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,10],[[30,1,["category_id_changes"]],[28,[37,11],[[30,1,["archetype_changes"]]],null]],null],[[[41,[30,3],[[[1," "],[1,[28,[35,12],[[30,3]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["far-eye-slash"],[["class"],["diff-del"]]]],[1,"\\n"]],[]]],[1," →\\n"],[41,[30,4],[[[1," "],[1,[28,[35,12],[[30,4]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,1],["far-eye-slash"],[["class"],["diff-ins"]]]],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,1,"display-modes"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["inline-mode",[52,[28,[37,9],[[30,5],"inline"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.inline.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.inline.title"],null]],[4,[38,18],["click",[30,6]],null],[12],[1,"\\n "],[1,[28,[35,1],["far-square"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.inline.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["side-by-side-mode",[52,[28,[37,9],[[30,5],"side_by_side"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.side_by_side.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.side_by_side.title"],null]],[4,[38,18],["click",[30,7]],null],[12],[1,"\\n "],[1,[28,[35,1],["table-columns"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.side_by_side.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[11,3],[24,6,""],[16,0,[28,[37,16],["side-by-side-markdown-mode",[52,[28,[37,9],[[30,5],"side_by_side_markdown"],null],"active"]],null]],[16,"title",[28,[37,17],["post.revisions.displays.side_by_side_markdown.title"],null]],[16,"aria-label",[28,[37,17],["post.revisions.displays.side_by_side_markdown.title"],null]],[4,[38,18],["click",[30,8]],null],[12],[1,"\\n "],[1,[28,[35,1],["table-columns"],null]],[1,"\\n "],[1,[28,[35,17],["post.revisions.displays.side_by_side_markdown.button"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@model","@site","@previousCategory","@currentCategory","@viewMode","@displayInline","@displaySideBySide","@displaySideBySideMarkdown"],false,["div","d-icon","link-to","bound-avatar-template","plugin-outlet","hash","span","bound-date","if","eq","and","not","html-safe","ul","li","a","concat-class","i18n","on"]]',moduleName:"discourse/components/modal/history/revision.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},26511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"eeVFPmhy",block:'[[[10,0],[14,1,"revisions"],[15,"data-post-id",[30,1,["post_id"]]],[15,0,[30,2]],[12],[1,"\\n"],[41,[30,1,["title_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"h2"],[14,0,"revision__title"],[12],[1,[28,[35,3],[[30,3]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4],[[[41,[30,5],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,4],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n →\\n "],[1,[28,[35,4],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["wiki_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,5],["far-pen-to-square"],[["class"],[[52,[30,1,["wiki_changes","current"]],"diff-ins","diff-del"]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["archetype_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[28,[35,5],[[52,[28,[37,6],[[30,1,["archetype_changes","current"]],"private_message"],null],"envelope","comment"]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,7],[[30,1,["category_id_changes"]],[28,[37,8],[[30,1,["archetype_changes"]]],null]],null],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n"],[41,[30,6],[[[1," "],[1,[28,[35,3],[[30,6]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],["far-eye-slash"],[["class"],["diff-del"]]]],[1,"\\n"]],[]]],[1," →\\n"],[41,[30,7],[[[1," "],[1,[28,[35,3],[[30,7]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,5],["far-eye-slash"],[["class"],["diff-ins"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,1,["tags_changes"]],[[[1," "],[10,0],[14,0,"row -tag-revisions"],[12],[1,"\\n "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,8]],null]],null],null,[[[1," "],[1,[28,[35,12],[[30,9,["name"]]],[["extraClass"],[[52,[30,9,["deleted"]],"diff-del"]]]]],[1,"\\n"]],[9]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,13],[[30,4],[28,[37,6],[[30,10],"inline"],null]],null],[[[1," → \\n"]],[]],null],[1," "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,11]],null]],null],null,[[[1," "],[1,[28,[35,12],[[30,12,["name"]]],[["extraClass"],[[52,[30,12,["inserted"]],"diff-ins"]]]]],[1,"\\n"]],[12]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["featured_link_changes"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[1,[30,1,["featured_link_changes","previous"]]],[1,"\\n →\\n "],[1,[30,1,["featured_link_changes","current"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[39,14],null,[["@name","@connectorTagName","@outletArgs"],["post-revisions","div",[28,[37,15],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,16],[[24,0,"row body-diff"],[4,[38,17],[[30,13],[30,14]],null],[4,[38,18],[[30,13],[30,14]],null]],null,[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,15]],null]],[1,"\\n "]],[]]]]],[1,"\\n"],[13]],["@model","@hiddenClasses","@titleDiff","@mobileView","@userChanges","@previousCategory","@currentCategory","@previousTagChanges","t","@viewMode","@currentTagChanges","t","@calculateBodyDiff","@bodyDiffHTML","@bodyDiff"],false,["div","if","h2","html-safe","bound-avatar-template","d-icon","eq","and","not","span","each","-track-array","discourse-tag","or","plugin-outlet","hash","links-redirect","did-insert","did-update"]]',moduleName:"discourse/components/modal/history/revisions.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"revisions"))},86185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"yHMr3PEq",block:'[[[10,0],[14,1,"revision-controls"],[12],[1,"\\n "],[10,0],[14,0,"revision-controls--back"],[12],[1,"\\n "],[8,[39,1],[[24,0,"btn-default first-revision"]],[["@action","@icon","@title","@disabled"],[[30,1],"backward-fast","post.revisions.controls.first",[30,2]]],null],[1,"\\n "],[8,[39,1],[[24,0,"btn-default previous-revision"]],[["@action","@icon","@title","@disabled"],[[30,3],"backward","post.revisions.controls.previous",[30,4]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,1,"revision-numbers"],[15,0,[52,[51,[30,5]],"invisible"]],[12],[1,"\\n "],[8,[39,3],null,[["@condition","@size"],[[30,6],"small"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],[[30,7]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"revision-controls--forward"],[12],[1,"\\n "],[8,[39,1],[[24,0,"btn-default next-revision"]],[["@action","@icon","@title","@disabled"],[[30,8],"forward","post.revisions.controls.next",[30,9]]],null],[1,"\\n "],[8,[39,1],[[24,0,"btn-default last-revision"]],[["@action","@icon","@title","@disabled"],[[30,10],"forward-fast","post.revisions.controls.last",[30,11]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,1,"revision-footer-buttons"],[12],[1,"\\n"],[41,[30,12],[[[1," "],[8,[39,1],[[24,0,"btn-default edit-post"]],[["@action","@icon","@label"],[[30,13],"pencil",[30,14]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,15],[[[41,[30,16],[[[1," "],[8,[39,1],[[24,0,"btn-danger revert-to-version"]],[["@action","@icon","@translatedLabel","@disabled"],[[30,17],"arrow-rotate-left",[30,16],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,18,["previous_hidden"]],[[[1," "],[8,[39,1],[[24,0,"btn-default show-revision"]],[["@action","@icon","@label","@disabled"],[[30,19],"far-eye","post.revisions.controls.show",[30,6]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,1],[[24,0,"btn-danger hide-revision"]],[["@action","@icon","@label","@disabled"],[[30,20],"far-eye-slash","post.revisions.controls.hide",[30,6]]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[28,[37,6],[[30,21],[30,18,["previous_hidden"]]],null],[[[1," "],[8,[39,1],[[24,0,"btn-danger destroy-revision"]],[["@action","@icon","@label","@disabled"],[[30,22],"trash-can","post.revisions.controls.destroy",[30,6]]],null],[1,"\\n"]],[]],null]],[]],null],[13]],["@loadFirstVersion","@loadFirstDisabled","@loadPreviousVersion","@loadPreviousDisabled","@displayRevisions","@loading","@revisionsText","@loadNextVersion","@loadNextDisabled","@loadLastVersion","@loadLastDisabled","@displayEdit","@editPost","@editButtonLabel","@isStaff","@revertToRevisionText","@revertToVersion","@model","@showVersion","@hideVersion","@canPermanentlyDelete","@permanentlyDeleteVersions"],false,["div","d-button","unless","conditional-loading-spinner","html-safe","if","and"]]',moduleName:"discourse/components/modal/history/topic-footer.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"topic-footer"))},67883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(64149),l=n(32644),u=n(41958),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"Z3oiVFrv",block:'[[[8,[39,0],[[24,0,"ignore-duration-with-username-modal"]],[["@closeModal","@title","@flash","@autoFocus"],[[30,1],[28,[37,1],["user.user_notifications.ignore_duration_title"],null],[30,0,["flash"]],"false"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["enableSelection"]],[[[1," "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,6],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n "],[1,[28,[35,1],["user.user_notifications.ignore_duration_username"],null]],[13],[1,"\\n "],[8,[39,7],null,[["@value","@onChange","@options"],[[30,0,["ignoredUsername"]],[30,0,["updateIgnoredUsername"]],[28,[37,8],null,[["excludeCurrentUser","maximum"],[true,1]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@label","@input","@customShortcuts","@includeDateTime","@onChangeInput"],["user.user_notifications.ignore_duration_when",[28,[37,10],[[30,0,["ignoredUntil"]]],null],[30,0,["timeShortcuts"]],false,[28,[37,11],[[28,[37,12],[[30,0,["ignoredUntil"]]],null]],null]]],null],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.user_notifications.ignore_duration_note"],null]],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,15],[[24,0,"btn-primary"]],[["@disabled","@label","@action"],[[30,0,["saveDisabled"]],"user.user_notifications.ignore_duration_save",[30,0,["ignore"]]]],null],[1,"\\n "],[8,[39,16],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","div","label","d-icon","email-group-user-chooser","hash","future-date-input","readonly","fn","mut","p",":footer","d-button","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/ignore-duration-with-username.hbs",isStrictMode:!1});var p=n(76417);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();static #i=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #l=(()=>dt7948.g(this.prototype,"ignoredUntil",[s.tracked],function(){return null}))();#ij=(()=>void dt7948.i(this,"ignoredUntil"))();static #u=(()=>dt7948.g(this.prototype,"ignoredUsername",[s.tracked],function(){return this.args.model.ignoredUsername}))();#iB=(()=>void dt7948.i(this,"ignoredUsername"))();enableSelection=(()=>this.args.model.enableSelection??!0)();get timeShortcuts(){let e=this.currentUser.user_option.timezone,t=(0,l.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]}ignore(){if(!this.ignoredUntil||!this.ignoredUsername){this.flash=(0,c.i18n)("user.user_notifications.ignore_duration_time_frame_required");return}this.loading=!0,u.default.findByUsername(this.ignoredUsername).then(e=>{e.updateNotificationLevel({level:"ignore",expiringAt:this.ignoredUntil,actingUser:this.args.model.actingUser}).then(()=>{this.args.model.onUserIgnored?.(this.ignoredUsername),this.args.closeModal()}).catch(a.popupAjaxError).finally(()=>this.loading=!1)})}static #c=(()=>dt7948.n(this.prototype,"ignore",[r.action]))();updateIgnoredUsername(e){this.ignoredUsername=e.firstObject}static #d=(()=>dt7948.n(this.prototype,"updateIgnoredUsername",[r.action]))()}(0,p.setComponentTemplate)(d,h)},59731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(42433),l=n(97355),u=n(92976),c=n(72491),d=n(59567),p=n(12223),h=n(17307),m=n(70264),g=n(34991),f=n(84188),_=n(56839),y=n(84262),b=n(51969),w=n(76417),k=n(82739);class x extends i.default{static #e=(()=>dt7948.g(this.prototype,"linkText",[s.tracked],function(){return this.args.model.linkText}))();#iz=(()=>void dt7948.i(this,"linkText"))();static #n=(()=>dt7948.g(this.prototype,"linkUrl",[s.tracked],function(){return""}))();#i$=(()=>void dt7948.i(this,"linkUrl"))();static #i=(()=>dt7948.g(this.prototype,"selectedRow",[s.tracked],function(){return -1}))();#iq=(()=>void dt7948.i(this,"selectedRow"))();static #l=(()=>dt7948.g(this.prototype,"searchResults",[s.tracked],function(){return[]}))();#iH=(()=>void dt7948.i(this,"searchResults"))();static #u=(()=>dt7948.g(this.prototype,"searchLoading",[s.tracked],function(){return!1}))();#iV=(()=>void dt7948.i(this,"searchLoading"))();_debounced;_activeSearch;willDestroy(){super.willDestroy(...arguments),(0,a.cancel)(this._debounced)}highlightRow(e,t){let n="down"===t?this.selectedRow+1:this.selectedRow-1;n>-1&&n-1){let t=document.querySelectorAll(".internal-link-results .search-link")[this.selectedRow];this.selectLink(t),e.preventDefault(),e.stopPropagation()}break;case"Escape":this.searchResults.length?(this.searchResults=[],e.preventDefault(),e.stopPropagation()):(this.args.closeModal(),document.querySelector(".d-editor-input")?.focus())}}static #c=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();mouseDown(e){e.target.closest(".inputs")||(this.searchResults=[])}static #d=(()=>dt7948.n(this.prototype,"mouseDown",[o.action]))();ok(){let e=this.linkUrl,t=(0,_.prefixProtocol)(e),n=this.args.model.toolbarEvent.selected;if((0,l.isEmpty)(t))return;let i=this.linkText||"";i.length?this.args.model.toolbarEvent.addText(`[${i}](${t})`):n.value?this.args.model.toolbarEvent.addText(`[${n.value}](${t})`):(this.args.model.toolbarEvent.addText(`[${e}](${t})`),this.args.model.toolbarEvent.selectText(n.start+1,e.length)),this.args.closeModal()}static #p=(()=>dt7948.n(this.prototype,"ok",[o.action]))();linkClick(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.stopPropagation(),this.selectLink(e.target.closest(".search-link")))}static #h=(()=>dt7948.n(this.prototype,"linkClick",[o.action]))();updateLinkText(e){this.linkText=e.target.value}static #m=(()=>dt7948.n(this.prototype,"updateLinkText",[o.action]))();search(e){this.linkUrl=e.target.value,this._debounced=(0,y.default)(this,this.triggerSearch,400)}static #g=(()=>dt7948.n(this.prototype,"search",[o.action]))();static #E=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"qz1KET10",block:'[[[1,"\\n"],[1," "],[8,[32,0],[[24,0,"insert-hyperlink-modal"],[4,[32,2],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],["mousedown",[30,0,["mouseDown"]]],null]],[["@closeModal","@title","@bodyClass"],[[30,1],[28,[32,1],["composer.link_dialog_title"],null],"insert-link"]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"inputs"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["linkUrl"]]],[16,"placeholder",[28,[32,1],["composer.link_url_placeholder"],null]],[24,"autofocus","autofocus"],[24,0,"link-url"],[24,4,"text"],[4,[32,2],["input",[30,0,["search"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["searchLoading"]],[[[1," "],[1,[32,3]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["searchResults"]],[[[1," "],[10,0],[14,0,"internal-link-results"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["searchResults"]]],null]],null],null,[[[1," "],[11,3],[16,6,[30,2,["url"]]],[16,"data-title",[30,2,["fancy_title"]]],[24,0,"search-link"],[4,[32,2],["click",[30,0,["linkClick"]]],null],[12],[1,"\\n "],[8,[32,4],null,[["@topic","@disableActions"],[[30,2],true]],null],[1,"\\n "],[1,[28,[32,5],[[30,2,["title"]]],null]],[1,"\\n "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,2,["category","parentCategory"]],[[[1," "],[1,[28,[32,6],[[30,2,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,6],[[30,2,["category"]]],[["hideParent"],[true]]]],[1,"\\n "],[1,[28,[32,7],[[30,2]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"inputs"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["linkText"]]],[16,"placeholder",[28,[32,1],["composer.link_optional_text"],null]],[24,0,"link-text"],[24,4,"text"],[4,[32,2],["input",[30,0,["updateLinkText"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["ok"]],"composer.modal_ok"]],null],[1,"\\n\\n "],[8,[32,8],[[24,0,"btn-danger"]],[["@action","@label"],[[30,1],"composer.cancel"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","result"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/insert-hyperlink.js",scope:()=>[c.default,b.i18n,r.on,m.default,d.default,g.default,p.default,h.default,u.default],isStrictMode:!0}),this))()}},97729:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(21959),a=n(94802),l=n(20762);let u=(0,n(82739).createTemplateFactory)({id:"IpmsRUEm",block:'[[[8,[39,0],[[24,0,"json-schema-editor-modal"]],[["@flash","@flashType","@closeModal","@title","@inline"],[[30,0,["flash"]],[30,0,["flashType"]],[30,1],[28,[37,1],["admin.site_settings.json_schema.modal_title"],[["name"],[[30,2,["settingName"]]]]],[30,3]]],[["body","footer"],[[[[1,"\\n "],[11,0],[24,1,"json-editor-holder"],[4,[38,4],[[30,0,["buildJsonEditor"]]],null],[4,[38,5],[[30,0,["teardownJsonEditor"]]],null],[12],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["saveChanges"]],"save"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model","@inline"],false,["d-modal","i18n",":body","div","did-insert","will-destroy",":footer","d-button"]]',moduleName:"discourse/components/modal/json-schema-editor.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"editor",[s.tracked],function(){return null}))();#iW=(()=>void dt7948.i(this,"editor"))();static #n=(()=>dt7948.g(this.prototype,"value",[s.tracked],function(){return this.args.model.value}))();#tm=(()=>void dt7948.i(this,"value"))();static #i=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();static #l=(()=>dt7948.g(this.prototype,"flashType",[s.tracked]))();#iE=(()=>void dt7948.i(this,"flashType"))();get settingName(){return this.args.model.settingName.replace(/\_/g," ")}teardownJsonEditor(){this.editor?.destroy()}static #u=(()=>dt7948.n(this.prototype,"teardownJsonEditor",[r.action]))();saveChanges(){let e=this.editor.validate();e.length?(this.flash=e.mapBy("message").join("\n"),this.flashType="error"):(this.value=JSON.stringify(this.editor.getValue()),this.args.model.updateValue(this.value),this.args.closeModal())}static #c=(()=>dt7948.n(this.prototype,"saveChanges",[r.action]))();async buildJsonEditor(e){let t=n.e(195).then(n.t.bind(n,29195,23));(0,o.YZ)(t);let{JSONEditor:i}=await t;i.defaults.options.theme="barebones",i.defaults.iconlibs={discourseIcons:p},i.defaults.options.iconlib="discourseIcons",this.editor=new i(e,{schema:this.args.model.jsonSchema,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,disable_array_reorder:!1,disable_array_copy:!1,enable_array_copy:!0,disable_edit_json:!0,disable_properties:!0,disable_collapse:!1,show_errors:"never",startval:this.value?JSON.parse(this.value):null})}static #d=(()=>dt7948.n(this.prototype,"buildJsonEditor",[r.action]))()}class p{constructor(){this.mapping={delete:"trash-can",add:"plus",moveup:"arrow-up",movedown:"arrow-down",moveleft:"chevron-left",moveright:"chevron-right",copy:"copy",collapse:"chevron-down",expand:"chevron-up"}}getIcon(e){if(this.mapping[e])return(0,a.create)((0,l.iconNode)(this.mapping[e]))}}(0,c.setComponentTemplate)(u,d)},96350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(76417),o=n(70001),a=n(92976),l=n(72491),u=n(48491),c=n(41844),d=n(51969),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"postNumber",[s.tracked]))();#iK=(()=>void dt7948.i(this,"postNumber"))();static #n=(()=>dt7948.g(this.prototype,"postDate",[s.tracked]))();#iG=(()=>void dt7948.i(this,"postDate"))();get filteredPostsCount(){return this.args.model.topic.postStream.filteredPostsCount}_jumpToIndex(e,t){let n=Math.min(e,Math.max(1,parseInt(t,10)));this.args.model.jumpToIndex(n),this.args.closeModal()}_jumpToDate(e){this.args.model.jumpToDate(e),this.args.closeModal()}jump(){this.postNumber?this._jumpToIndex(this.filteredPostsCount,this.postNumber):this.postDate&&this._jumpToDate(this.postDate)}static #i=(()=>dt7948.n(this.prototype,"jump",[o.action]))();static #l=(()=>(0,r.setComponentTemplate)((0,p.createTemplateFactory)({id:"zitYFw1v",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"jump-to-post-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],["topic.progress.jump_prompt_long"],null]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"jump-to-post-form"],[12],[1,"\\n "],[10,0],[14,0,"jump-to-post-control"],[12],[1,"\\n "],[10,1],[14,0,"index"],[12],[1,"#"],[13],[1,"\\n "],[8,[32,2],[[24,"autofocus","true"],[24,1,"post-jump"]],[["@value","@type"],[[30,0,["postNumber"]],"number"]],null],[1,"\\n "],[10,1],[14,0,"input-hint-text post-number"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_of"],[["count"],[[30,0,["filteredPostsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"separator"],[12],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_or"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"hr"],[14,0,"right"],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"jump-to-date-control"],[12],[1,"\\n "],[10,1],[14,0,"input-hint-text post-date"],[12],[1,"\\n "],[1,[28,[32,1],["topic.progress.jump_prompt_to_date"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],[[24,1,"post-date"],[24,0,"date-input"]],[["@value","@defaultDate"],[[30,0,["postDate"]],"YYYY-MM-DD"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,4],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["jump"]],"composer.modal_ok"]],null],[1,"\\n "],[8,[32,5],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/jump-to-post.js",scope:()=>[l.default,d.i18n,r.Input,c.default,a.default,u.default],isStrictMode:!0}),this))()}},3924:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(37138),s=n(39882),r=n(54729),o=n(35804),a=n(72491),l=n(56907),u=n(20802),c=n(51969),d=n(76417),p=n(82739);let h="keyboard_shortcuts_help",m=(0,c.i18n)("shortcut_modifier_key.shift"),g=(0,u.translateModKey)("Alt"),f=(0,u.translateModKey)("Meta"),_=(0,c.i18n)("shortcut_modifier_key.ctrl"),y=(0,c.i18n)("shortcut_modifier_key.enter"),b=(0,c.i18n)(`${h}.shortcut_key_delimiter_comma`),w=(0,c.i18n)(`${h}.shortcut_key_delimiter_plus`),k={shift:m,alt:g,meta:f,ctrl:_,enter:y,comma:b,plus:w};function x(e,t){return`${e}`}function T(e,t){let{keys1:n=[],keys2:i=[],keysDelimiter:s=b,shortcutsDelimiter:r="or"}=t,o={shortcut:function(e,t,n,i){let s=[e,t].reject(e=>0===e.length).map(e=>e.map(e=>`${e}`).join(n)).map(e=>"space"!==i&&"newline"!==i?x(e,i):e),[r,o]=s;return 1===s.length?r:"or"===i?(0,c.i18n)(`${h}.shortcut_delimiter_or`,{shortcut1:r,shortcut2:o}):"slash"===i?(0,c.i18n)(`${h}.shortcut_delimiter_slash`,{shortcut1:r,shortcut2:o}):"space"===i?x((0,c.i18n)(`${h}.shortcut_delimiter_space`,{shortcut1:r,shortcut2:o}),i):"newline"===i?x((0,c.i18n)(`${h}.shortcut_delimiter_newline`,{shortcut1:r,shortcut2:o}),i):void 0}(n,i,s,r)};return(0,c.i18n)(`${h}.${e}`,o)}class S extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get shortcuts(){let e={jump_to:{shortcuts:this._buildJumpToSection()},application:{shortcuts:{hamburger_menu:T("application.hamburger_menu",{keys1:["="]}),user_profile_menu:T("application.user_profile_menu",{keys1:["p"]}),create:T("application.create",{keys1:["c"]}),show_incoming_updated_topics:T("application.show_incoming_updated_topics",{keys1:["."]}),search:T("application.search",{keys1:["/"],keys2:[_,g,"f"],keysDelimiter:w}),filter_sidebar:T("application.filter_sidebar",{keys1:[f,"/"],keysDelimiter:w}),help:T("application.help",{keys1:["?"]}),bulk_select:T("application.toggle_bulk_select",{keys1:[m,"b"]}),dismiss:T("application.dismiss",{keys1:[m,"d"]}),x:T("application.x",{keys1:["x"]}),log_out:T("application.log_out",{keys1:[m,"z"],keys2:[m,"z"],keysDelimiter:w,shortcutsDelimiter:"space"})}},actions:{shortcuts:{bookmark_topic:T("actions.bookmark_topic",{keys1:["f"]}),reply_as_new_topic:T("actions.reply_as_new_topic",{keys1:["t"]}),reply_topic:T("actions.reply_topic",{keys1:[m,"r"],keysDelimiter:w}),reply_post:T("actions.reply_post",{keys1:["r"]}),quote_post:T("actions.quote_post",{keys1:["q"]}),pin_unpin_topic:T("actions.pin_unpin_topic",{keys1:[m,"p"],keysDelimiter:w}),share_topic:T("actions.share_topic",{keys1:[m,"s"],keysDelimiter:w}),share_post:T("actions.share_post",{keys1:["s"]}),like:T("actions.like",{keys1:["l"]}),flag:T("actions.flag",{keys1:["!"]}),bookmark:T("actions.bookmark",{keys1:["b"]}),edit:T("actions.edit",{keys1:["e"]}),delete:T("actions.delete",{keys1:["d"]}),mark_muted:T("actions.mark_muted",{keys1:["m","m"]}),mark_regular:T("actions.mark_regular",{keys1:["m","r"]}),mark_tracking:T("actions.mark_tracking",{keys1:["m","t"]}),mark_watching:T("actions.mark_watching",{keys1:["m","w"]}),print:T("actions.print",{keys1:[f,"p"],keysDelimiter:w}),defer:T("actions.defer",{keys1:[m,"u"],keysDelimiter:w}),topic_admin_actions:T("actions.topic_admin_actions",{keys1:[m,"a"],keysDelimiter:w}),archive_private_message:T("actions.archive_private_message",{keys1:["a"]})}},navigation:{shortcuts:{back:T("navigation.back",{keys1:["u"]}),jump:T("navigation.jump",{keys1:["#"]}),up_down:T("navigation.up_down",{keys1:["k"],keys2:["j"],shortcutsDelimiter:"slash"}),open:T("navigation.open",{keys1:["o"],keys2:[y]}),next_prev:T("navigation.next_prev",{keys1:[m,"j"],keys2:[m,"k"],keysDelimiter:w,shortcutsDelimiter:"slash"}),go_to_unread_post:T("navigation.go_to_unread_post",{keys1:[m,"l"],keysDelimiter:w})}},composing:{shortcuts:{return:T("composing.return",{keys1:[m,"c"],keysDelimiter:w}),fullscreen:T("composing.fullscreen",{keys1:[m,"F11"],keysDelimiter:w}),insertCurrentTime:T("composing.insert_current_time",{keys1:[f,m,"."],keysDelimiter:w})}},bookmarks:{shortcuts:{enter:T("bookmarks.enter",{keys1:[y]}),later_today:T("bookmarks.later_today",{keys1:["l","t"]}),later_this_week:T("bookmarks.later_this_week",{keys1:["l","w"]}),tomorrow:T("bookmarks.tomorrow",{keys1:["n","d"]}),next_business_week:T("bookmarks.next_business_week",{keys1:["n","b","w"]}),next_business_day:T("bookmarks.next_business_day",{keys1:["n","b","d"]}),custom:T("bookmarks.custom",{keys1:["c","r"]}),none:T("bookmarks.none",{keys1:["n","r"]}),delete:T("bookmarks.delete",{keys1:["d","d"]})}},search_menu:{shortcuts:{prev_next:T("search_menu.prev_next",{keys1:["↑"],keys2:["↓"],shortcutsDelimiter:"slash"}),insert_url:T("search_menu.insert_url",{keys1:["a"]}),full_page_search:T("search_menu.full_page_search",{keys1:[f,"Enter"],keysDelimiter:w})}}};return this._buildExtraShortcuts(e),this._addCountsToShortcutCategories(e),e}_buildExtraShortcuts(e){for(let[t,n]of Object.entries(l.extraKeyboardShortcutsHelp))n.forEach(n=>{e[t]||(e[t]={}),e[t].shortcuts||(e[t].shortcuts={}),e[t].shortcuts[n.name]=T(n.name,this._transformExtraDefinition(n.definition))})}_addCountsToShortcutCategories(e){for(let[t,n]of Object.entries(e))e[t].count=Object.keys(n.shortcuts).length}_transformExtraDefinition(e){return e.keys1&&(e.keys1=e.keys1.map(e=>this._translateKeys(e))),e.keys2&&(e.keys2=e.keys2.map(e=>this._translateKeys(e))),e.keysDelimiter&&(e.keysDelimiter=this._translateKeys(e.keysDelimiter)),e.shortcutsDelimiter&&(e.shortcutsDelimiter=this._translateKeys(e.shortcutsDelimiter)),e}_translateKeys(e){for(let[t,n]of Object.entries(k))e=e.replace(t,n);return e}_buildJumpToSection(){let e={home:T("jump_to.home",{keys1:["g","h"]}),latest:T("jump_to.latest",{keys1:["g","l"]}),new:T("jump_to.new",{keys1:["g","n"]}),unread:T("jump_to.unread",{keys1:["g","u"]}),categories:T("jump_to.categories",{keys1:["g","c"]}),top:T("jump_to.top",{keys1:["g","t"]}),bookmarks:T("jump_to.bookmarks",{keys1:["g","b"]}),profile:T("jump_to.profile",{keys1:["g","p"]})};return this.currentUser?.can_send_private_messages&&(e.messages=T("jump_to.messages",{keys1:["g","m"]})),Object.assign(e,{drafts:T("jump_to.drafts",{keys1:["g","d"]}),next:T("jump_to.next",{keys1:["g","j"]}),previous:T("jump_to.previous",{keys1:["g","k"]})}),e}static #n=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"6iAKkCrE",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"keyboard-shortcuts-modal -max"]],[["@title","@closeModal"],[[28,[32,1],["keyboard_shortcuts_help.title"],null],[30,1]]],[["body"],[[[[1,"\\n "],[10,0],[14,1,"keyboard-shortcuts-help"],[12],[1,"\\n "],[10,0],[14,0,"keyboard-shortcuts-help__container"],[12],[1,"\\n "],[10,1],[14,"tabindex","0"],[12],[13],[1,"\\n"],[42,[28,[31,1],[[30,0,["shortcuts"]]],null],null,[[[1," "],[10,"section"],[15,0,[29,["shortcut-category span-",[30,2,["count"]],"\\n shortcut-category-",[30,3]]]],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[32,1],[[28,[32,2],["keyboard_shortcuts_help.",[30,3],".title"],null]],null]],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,1],[[30,2,["shortcuts"]]],null],null,[[[1," "],[10,"li"],[12],[1,[28,[32,3],[[30,4]],null]],[13],[1,"\\n"]],[4,5]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","shortcutCategory","category","shortcut","name"],false,["each","-each-in"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/keyboard-shortcuts-help.js",scope:()=>[a.default,c.i18n,s.concat,o.htmlSafe],isStrictMode:!0}),this))()}},7607:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(54729),l=n(35804),u=n(97355),c=n(6610),d=n(64149),p=n(84266),h=n(3737),m=n(20802),g=n(2262),f=n(93512),_=n(41958),y=n(29166),b=n(87389),w=n(51969),k=n(39203);let x=(0,n(82739).createTemplateFactory)({id:"nGxI/rC6",block:'[[[8,[39,0],[[24,0,"login-modal -large"],[4,[38,1],[[30,0,["preloadLogin"]]],null],[4,[38,2],["click",[30,0,["interceptResetLink"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType"],[[30,0,["modalBodyClasses"]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["body","footer"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n\\n"],[41,[30,0,["hasNoLoginOptions"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n "],[10,0],[14,0,"login-welcome-header no-login-methods-configured"],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,8],["login.no_login_methods.title"],null]],[13],[1,"\\n "],[10,"img"],[12],[13],[1,"\\n "],[10,2],[14,0,"login-subheader"],[12],[1,"\\n "],[1,[28,[35,11],[[28,[37,8],["login.no_login_methods.description",[28,[37,12],null,[["adminLoginPath"],[[30,0,["adminLoginPath"]]]]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,12],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1," "],[8,[39,14],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1," "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,12],null,[["createAccount"],[[30,0,["createAccount"]]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[39,15],null,[["@loginName","@loginNameChanged","@canLoginLocalWithEmail","@canUsePasskeys","@passkeyLogin","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@showSecurityKey","@otherMethodAllowed","@showSecondFactor","@handleForgotPassword","@login","@flashChanged","@flashTypeChanged","@securityKeyCredentialChanged"],[[30,0,["loginName"]],[30,0,["loginNameChanged"]],[30,0,["canLoginLocalWithEmail"]],[30,0,["canUsePasskeys"]],[30,0,["passkeyLogin"]],[30,0,["loginPassword"]],[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["totpEnabled"]],[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["otherMethodAllowed"]],[30,0,["showSecondFactor"]],[30,0,["handleForgotPassword"]],[30,0,["triggerLogin"]],[30,0,["flashChanged"]],[30,0,["flashTypeChanged"]],[30,0,["securityKeyCredentialChanged"]]]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n "],[8,[39,16],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,17],[[30,0,["showLoginButtons"]],[30,0,["site","desktopView"]]],null],[[[41,[51,[30,0,["canLoginLocal"]]],[[[1," "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n "],[8,[39,13],null,[["@header"],[[28,[37,8],["login.header_title"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[1," "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n "],[8,[39,14],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[51,[30,0,["hasNoLoginOptions"]]],[[[1," "],[8,[39,16],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","did-insert","on",":body","plugin-outlet","if","div","h1","i18n","img","p","html-safe","hash","welcome-header","login-buttons","local-login-form","login-page-cta","and","unless",":footer"]]',moduleName:"discourse/components/modal/login.hbs",isStrictMode:!1});var T=n(76417);class S extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"login",[a.service]))();#t6=(()=>void dt7948.i(this,"login"))();static #c=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #d=(()=>dt7948.g(this.prototype,"loggingIn",[s.tracked],function(){return!1}))();#iY=(()=>void dt7948.i(this,"loggingIn"))();static #p=(()=>dt7948.g(this.prototype,"loggedIn",[s.tracked],function(){return!1}))();#iQ=(()=>void dt7948.i(this,"loggedIn"))();static #h=(()=>dt7948.g(this.prototype,"showLoginButtons",[s.tracked],function(){return!0}))();#iJ=(()=>void dt7948.i(this,"showLoginButtons"))();static #m=(()=>dt7948.g(this.prototype,"showSecondFactor",[s.tracked],function(){return!1}))();#iX=(()=>void dt7948.i(this,"showSecondFactor"))();static #g=(()=>dt7948.g(this.prototype,"loginPassword",[s.tracked],function(){return""}))();#iZ=(()=>void dt7948.i(this,"loginPassword"))();static #E=(()=>dt7948.g(this.prototype,"loginName",[s.tracked],function(){return""}))();#i1=(()=>void dt7948.i(this,"loginName"))();static #A=(()=>dt7948.g(this.prototype,"flash",[s.tracked],function(){return this.args.model.flash}))();#nt=(()=>void dt7948.i(this,"flash"))();static #D=(()=>dt7948.g(this.prototype,"flashType",[s.tracked],function(){return this.args.model.flashType}))();#iE=(()=>void dt7948.i(this,"flashType"))();static #I=(()=>dt7948.g(this.prototype,"canLoginLocal",[s.tracked],function(){return this.siteSettings.enable_local_logins}))();#i0=(()=>void dt7948.i(this,"canLoginLocal"))();static #G=(()=>dt7948.g(this.prototype,"canLoginLocalWithEmail",[s.tracked],function(){return this.siteSettings.enable_local_logins_via_email}))();#i3=(()=>void dt7948.i(this,"canLoginLocalWithEmail"))();static #Y=(()=>dt7948.g(this.prototype,"secondFactorMethod",[s.tracked],function(){return _.SECOND_FACTOR_METHODS.TOTP}))();#i2=(()=>void dt7948.i(this,"secondFactorMethod"))();static #Q=(()=>dt7948.g(this.prototype,"securityKeyCredential",[s.tracked]))();#i8=(()=>void dt7948.i(this,"securityKeyCredential"))();static #J=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[s.tracked]))();#i4=(()=>void dt7948.i(this,"otherMethodAllowed"))();static #X=(()=>dt7948.g(this.prototype,"secondFactorRequired",[s.tracked]))();#i7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #Z=(()=>dt7948.g(this.prototype,"backupEnabled",[s.tracked]))();#i9=(()=>void dt7948.i(this,"backupEnabled"))();static #ee=(()=>dt7948.g(this.prototype,"totpEnabled",[s.tracked]))();#i5=(()=>void dt7948.i(this,"totpEnabled"))();static #et=(()=>dt7948.g(this.prototype,"showSecurityKey",[s.tracked]))();#i6=(()=>void dt7948.i(this,"showSecurityKey"))();static #en=(()=>dt7948.g(this.prototype,"securityKeyChallenge",[s.tracked]))();#se=(()=>void dt7948.i(this,"securityKeyChallenge"))();static #ei=(()=>dt7948.g(this.prototype,"securityKeyAllowedCredentialIds",[s.tracked]))();#st=(()=>void dt7948.i(this,"securityKeyAllowedCredentialIds"))();static #es=(()=>dt7948.g(this.prototype,"secondFactorToken",[s.tracked]))();#sn=(()=>void dt7948.i(this,"secondFactorToken"))();get awaitingApproval(){return this.args.model.awaitingApproval&&!this.canLoginLocal&&!this.canLoginLocalWithEmail}get loginDisabled(){return this.loggingIn||this.loggedIn}get modalBodyClasses(){let e=["login-modal-body"];return this.awaitingApproval&&e.push("awaiting-approval"),!this.hasAtLeastOneLoginButton||this.showSecondFactor||this.showSecurityKey||e.push("has-alt-auth"),this.canLoginLocal||e.push("no-local-login"),(this.showSecondFactor||this.showSecurityKey)&&e.push("second-factor"),e.join(" ")}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,g.isWebauthnSupported)()}get hasAtLeastOneLoginButton(){return(0,f.findAll)().length>0||this.canUsePasskeys}get hasNoLoginOptions(){return!this.hasAtLeastOneLoginButton&&!this.canLoginLocal}get loginButtonLabel(){return this.loggingIn?"login.logging_in":"login.title"}get showSignupLink(){return this.args.model.canSignUp&&!this.showSecondFactor}get adminLoginPath(){return(0,b.default)("/u/admin-login")}async passkeyLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"optional";try{let t=await (0,g.getPasskeyCredential)(e=>this.dialog.alert(e),e,this.capabilities.isFirefox);if(t){let e=await (0,c.ajax)("/session/passkey/auth.json",{type:"POST",data:{publicKeyCredential:t}});if(e&&!e.error){let e=(0,p.default)("destination_url"),t=(0,p.default)("sso_destination_url");t?((0,p.removeCookie)("sso_destination_url"),window.location.assign(t)):e?((0,p.removeCookie)("destination_url"),window.location.assign(e)):window.location.reload()}else this.dialog.alert(e.error)}}catch(e){(0,d.popupAjaxError)(e)}}static #er=(()=>dt7948.n(this.prototype,"passkeyLogin",[r.action]))();preloadLogin(){let e=document.querySelector("#hidden-login-form input[name=username]")?.value;e?(this.loginName=e,this.loginPassword=document.querySelector("#hidden-login-form input[name=password]").value):(0,p.default)("email")&&(this.loginName=(0,p.default)("email"))}static #eo=(()=>dt7948.n(this.prototype,"preloadLogin",[r.action]))();securityKeyCredentialChanged(e){this.securityKeyCredential=e}static #ea=(()=>dt7948.n(this.prototype,"securityKeyCredentialChanged",[r.action]))();flashChanged(e){this.flash=e}static #el=(()=>dt7948.n(this.prototype,"flashChanged",[r.action]))();flashTypeChanged(e){this.flashType=e}static #eu=(()=>dt7948.n(this.prototype,"flashTypeChanged",[r.action]))();loginNameChanged(e){this.loginName=e.target.value}static #ec=(()=>dt7948.n(this.prototype,"loginNameChanged",[r.action]))();async triggerLogin(){if(!this.loginDisabled){if((0,u.isEmpty)(this.loginName)||(0,u.isEmpty)(this.loginPassword)){this.flash=(0,w.i18n)("login.blank_username_or_password"),this.flashType="error";return}try{this.loggingIn=!0;let e=await (0,c.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}});if(e&&e.error){if(this.loggingIn=!1,this.flash=null,(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired){this.otherMethodAllowed=e.multiple_second_factor_methods,this.secondFactorRequired=!0,this.showLoginButtons=!1,this.backupEnabled=e.backup_enabled,this.totpEnabled=e.totp_enabled,this.showSecondFactor=e.totp_enabled,this.showSecurityKey=e.security_key_enabled,this.secondFactorMethod=e.security_key_enabled?_.SECOND_FACTOR_METHODS.SECURITY_KEY:_.SECOND_FACTOR_METHODS.TOTP,this.securityKeyChallenge=e.challenge,this.securityKeyAllowedCredentialIds=e.allowed_credential_ids,this.showSecurityKey||(0,o.schedule)("afterRender",()=>document.getElementById("second-factor").querySelector("input").focus());return}"not_activated"===e.reason?this.args.model.showNotActivated({username:this.loginName,sentTo:(0,y.default)(e.sent_to_email),currentEmail:(0,y.default)(e.current_email)}):"suspended"===e.reason?(this.args.closeModal(),this.dialog.alert(e.error)):("expired"===e.reason?this.flash=(0,l.htmlSafe)((0,w.i18n)("login.password_expired",{reset_url:(0,b.default)("/password-reset")})):this.flash=e.error,this.flashType="error")}else{this.loggedIn=!0;let e=document.getElementById("hidden-login-form"),t=(t,n)=>{e&&(e.querySelector(`input[name=${n}]`).value=t)},n=(0,p.default)("destination_url"),i=(0,p.default)("sso_destination_url");if(t(this.loginName,"username"),t(this.loginPassword,"password"),i){(0,p.removeCookie)("sso_destination_url"),window.location.assign(i);return}n?((0,p.removeCookie)("destination_url"),t(n,"redirect")):t(window.location.href,"redirect"),e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit());return}}catch(e){e.jqXHR&&429===e.jqXHR.status?this.flash=(0,w.i18n)("login.rate_limit"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?this.flash=(0,w.i18n)("read_only_mode.login_disabled"):(0,m.areCookiesEnabled)()?this.flash=(0,w.i18n)("login.error"):this.flash=(0,w.i18n)("login.cookies_error"),this.flashType="error",this.loggingIn=!1}}}static #ed=(()=>dt7948.n(this.prototype,"triggerLogin",[r.action]))();externalLoginAction(e){this.loginDisabled||this.login.externalLogin(e,{signup:!1,setLoggingIn:e=>this.loggingIn=e})}static #nG=(()=>dt7948.n(this.prototype,"externalLoginAction",[r.action]))();createAccount(){let e={};this.loginName&&this.loginName.indexOf("@")>0?(e.accountEmail=this.loginName,e.accountUsername=null):(e.accountUsername=this.loginName,e.accountEmail=null),this.args.model.showCreateAccount(e)}static #nY=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))();interceptResetLink(e){!(0,h.wantsNewWindow)(e)&&e.target.href&&new URL(e.target.href).pathname===(0,b.default)("/password-reset")&&(e.preventDefault(),e.stopPropagation(),this.modal.show(k.default,{model:{emailOrUsername:this.loginName}}))}static #nQ=(()=>dt7948.n(this.prototype,"interceptResetLink",[r.action]))()}(0,T.setComponentTemplate)(x,S)},71020:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(97355),l=n(83357),u=n(56839),c=n(46606),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"ztVHETYC",block:'[[[8,[39,0],[[24,1,"choosing-topic"],[24,0,"choose-topic-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["topic.move_to.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,2,["topic","isPrivateMessage"]],[[[1," "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitToPM"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-existing-message"]],[["@name","@value","@selection"],["move-to-entity","existing_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_existing_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1," "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["existingMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_existing_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,13],null,[["@currentTopicId","@selectedTopicId"],[[30,2,["topic","id"]],[30,0,["selectedTopicId"]]]],null],[1,"\\n\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.participants"],null]],[13],[1,"\\n "],[8,[39,14],[[24,0,"participant-selector"]],[["@value","@onChange"],[[30,0,["participants"]],[28,[37,15],[[28,[37,16],[[30,0,["participants"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,18],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-topic"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-topic"]],[["@name","@value","@selection"],["move-to-entity","new_topic",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.split_topic.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-topic"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-existing-topic"]],[["@name","@value","@selection"],["move-to-entity","existing_topic",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.merge_topic.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitToPM"]],[[[1," "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n "],[8,[39,6],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,19],null,[["@name"],["move-to-topic-after-radio-buttons"]],null],[1,"\\n\\n"],[41,[30,0,["existingTopic"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.merge_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[39,20],null,[["@topicChangedCallback","@currentTopicId"],[[30,0,["newTopicSelected"]],[30,2,["topic","id"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[39,18],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newTopic"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.split_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[14,0,"split-new-topic-form"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.split_topic.topic_name"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-title-after",[28,[37,21],null,[["selectedPosts","updateTopicName"],[[30,2,["selectedPosts"]],[30,0,["updateTopicName"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n "],[8,[39,22],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,15],[[28,[37,16],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-category-after",[28,[37,21],null,[["selectedPosts","updateCategoryId"],[[30,2,["selectedPosts"]],[30,0,["updateCategoryId"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canAddTags"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[1,"\\n "],[8,[39,19],null,[["@name","@outletArgs"],["split-new-topic-tag-after",[28,[37,21],null,[["selectedPosts","updateTags","tags"],[[30,2,["selectedPosts"]],[30,0,["updateTags"]],[30,0,["tags"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[35,9],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[39,11],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1," "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[39,12],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[39,24],[[24,0,"btn-primary"]],[["@disabled","@action","@icon","@label"],[[30,0,["buttonDisabled"]],[30,0,["performMove"]],"right-from-bracket",[30,0,["buttonTitle"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","if","div","label","radio-button","b","p","html-safe","form","text-field","tag-chooser","choose-message","email-group-user-chooser","fn","mut","hr","input","plugin-outlet","choose-topic","hash","category-chooser",":footer","d-button"]]',moduleName:"discourse/components/modal/move-to-topic.hbs",isStrictMode:!1});var h=n(76417);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"topicName",[s.tracked]))();#si=(()=>void dt7948.i(this,"topicName"))();static #l=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #u=(()=>dt7948.g(this.prototype,"categoryId",[s.tracked]))();#nI=(()=>void dt7948.i(this,"categoryId"))();static #c=(()=>dt7948.g(this.prototype,"tags",[s.tracked]))();#M=(()=>void dt7948.i(this,"tags"))();static #d=(()=>dt7948.g(this.prototype,"participants",[s.tracked],function(){return[]}))();#ss=(()=>void dt7948.i(this,"participants"))();static #p=(()=>dt7948.g(this.prototype,"chronologicalOrder",[s.tracked],function(){return!1}))();#sr=(()=>void dt7948.i(this,"chronologicalOrder"))();static #h=(()=>dt7948.g(this.prototype,"selection",[s.tracked],function(){return"new_topic"}))();#so=(()=>void dt7948.i(this,"selection"))();static #m=(()=>dt7948.g(this.prototype,"selectedTopicId",[s.tracked]))();#sa=(()=>void dt7948.i(this,"selectedTopicId"))();static #g=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();constructor(){super(...arguments),this.args.model.topic.isPrivateMessage?this.selection=this.canSplitToPM?"new_message":"existing_message":this.canSplitTopic||(this.selection="existing_topic")}get newTopic(){return"new_topic"===this.selection}get existingTopic(){return"existing_topic"===this.selection}get newMessage(){return"new_message"===this.selection}get existingMessage(){return"existing_message"===this.selection}get buttonDisabled(){return this.saving||(0,a.isEmpty)(this.selectedTopicId)&&(0,a.isEmpty)(this.topicName)}get buttonTitle(){return this.newTopic?"topic.split_topic.title":this.existingTopic?"topic.merge_topic.title":this.newMessage?"topic.move_to_new_message.title":this.existingMessage?"topic.move_to_existing_message.title":"saving"}get canSplitTopic(){return!this.args.model.selectedAllPosts&&this.args.model.selectedPosts.length>0&&this.args.model.selectedPosts.sort((e,t)=>e.post_number-t.post_number)[0].post_type===this.site.get("post_types.regular")}get canSplitToPM(){return this.canSplitTopic&&this.currentUser?.admin}get canAddTags(){return this.site.can_create_tag}get canTagMessages(){return this.site.can_tag_pms}performMove(){this.newTopic?this.movePostsTo("newTopic"):this.existingTopic?this.movePostsTo("existingTopic"):this.newMessage?this.movePostsTo("newMessage"):this.existingMessage&&this.movePostsTo("existingMessage")}static #E=(()=>dt7948.n(this.prototype,"performMove",[r.action]))();async movePostsTo(e){let t,n;this.saving=!0,this.flash=null,"existingTopic"===e?(t={destination_topic_id:this.selectedTopicId,chronological_order:this.chronologicalOrder},n={post_ids:this.args.model.selectedPostIds,...t}):"existingMessage"===e?(t={destination_topic_id:this.selectedTopicId,participants:this.participants.join(","),archetype:"private_message",chronological_order:this.chronologicalOrder},n={post_ids:this.args.model.selectedPostIds,...t}):"newTopic"===e?(t={},n={title:this.topicName,post_ids:this.args.model.selectedPostIds,category_id:this.categoryId,tags:this.tags}):(t={},n={title:this.topicName,post_ids:this.args.model.selectedPostIds,tags:this.tags,archetype:"private_message"}),t=(0,l.applyValueTransformer)("move-to-topic-merge-options",t),n=(0,l.applyValueTransformer)("move-to-topic-move-options",n);try{let e;e=this.args.model.selectedAllPosts?await (0,c.mergeTopic)(this.args.model.topic.id,t):await (0,c.movePosts)(this.args.model.topic.id,n),this.args.closeModal(),this.args.model.toggleMultiSelect(),u.default.routeTo(e.url)}catch{this.flash=(0,d.i18n)("topic.move_to.error")}finally{this.saving=!1}}static #A=(()=>dt7948.n(this.prototype,"movePostsTo",[r.action]))();updateTopicName(e){this.topicName=e}static #D=(()=>dt7948.n(this.prototype,"updateTopicName",[r.action]))();updateCategoryId(e){this.categoryId=e}static #I=(()=>dt7948.n(this.prototype,"updateCategoryId",[r.action]))();updateTags(e){this.tags=e}static #G=(()=>dt7948.n(this.prototype,"updateTags",[r.action]))();newTopicSelected(e){this.selectedTopicId=e.id}static #Y=(()=>dt7948.n(this.prototype,"newTopicSelected",[r.action]))()}(0,h.setComponentTemplate)(p,m)},29296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(70001),r=n(54729),o=n(48400),a=n(88754),l=n(92e3);let u=(0,n(82739).createTemplateFactory)({id:"NdN081TH",block:'[[[8,[39,0],[[24,0,"not-activated-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["log_in"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[35,3],[[28,[37,1],["login.not_activated"],[["sentTo"],[[30,2,["sentTo"]]]]]],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,5],null,[["@sendActivationEmail","@editActivationEmail"],[[30,0,["sendActivationEmail"]],[30,0,["editActivationEmail"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","html-safe",":footer","activation-controls"]]',moduleName:"discourse/components/modal/not-activated.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();sendActivationEmail(){(0,o.resendActivationEmail)(this.args.model.currentEmail).then(()=>{this.modal.show(l.default,{model:{currentEmail:this.args.model.currentEmail}})})}static #n=(()=>dt7948.n(this.prototype,"sendActivationEmail",[s.action]))();editActivationEmail(){this.modal.show(a.default,{model:{currentEmail:this.args.model.currentEmail,newEmail:this.args.model.currentEmail}})}static #i=(()=>dt7948.n(this.prototype,"editActivationEmail",[s.action]))()}(0,c.setComponentTemplate)(u,d)},70854:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"tWAjpOR4",block:'[[[8,[39,0],[[24,0,"post-enqueued-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.approval.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,[28,[35,1],["review.approval.description"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,1],["review.approval.pending_posts"],[["count"],[[30,2,["pending_count"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"review.approval.ok"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","p","html-safe",":footer","d-button"]]',moduleName:"discourse/components/modal/post-enqueued.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"post-enqueued"))},48183:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(64149);let u=(0,n(82739).createTemplateFactory)({id:"WkBAt7FY",block:'[[[8,[39,0],[[24,0,"publish-page-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["topic.publish_page.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["unpublished"]],[[[1," "],[10,2],[12],[1,[28,[35,1],["topic.publish_page.unpublished"],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,5],null,[["@condition"],[[30,0,["initializing"]]]],[["default"],[[[[1,"\\n "],[10,2],[14,0,"publish-description"],[12],[1,[28,[35,1],["topic.publish_page.description"],null]],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.slug"],null]],[13],[1,"\\n "],[8,[39,9],[[24,0,"publish-slug"]],[["@value","@onChange","@onChangeImmediate","@disabled"],[[30,0,["publishedPage","slug"]],[30,0,["checkSlug"]],[30,0,["startCheckSlug"]],[30,0,["existing"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.public"],null]],[13],[1,"\\n\\n "],[10,2],[14,0,"description"],[12],[1,"\\n "],[8,[39,10],[[4,[38,12],["click",[30,0,["onChangePublic"]]],null]],[["@type","@checked"],["checkbox",[28,[37,11],[[30,0,["publishedPage","public"]]],null]]],null],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.public_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"publish-url"],[12],[1,"\\n "],[8,[39,5],null,[["@condition"],[[30,0,["checking"]]]],null],[1,"\\n\\n"],[41,[30,0,["existing"]],[[[1," "],[10,0],[14,0,"current-url"],[12],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.publish_url"],null]],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,3],[15,6,[30,0,["publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showUrl"]],[[[1," "],[10,0],[14,0,"valid-slug"],[12],[1,"\\n "],[1,[28,[35,1],["topic.publish_page.preview_url"],null]],[1,"\\n "],[10,0],[14,0,"example-url"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["invalid"]],[[[1," "],[1,[28,[35,1],["topic.publish_page.invalid_slug"],null]],[1,"\\n "],[10,1],[14,0,"invalid-slug"],[12],[1,[30,0,["reason"]]],[1,"."],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["showUnpublish"]],[[[1," "],[8,[39,16],[[24,0,"btn-danger"]],[["@label","@icon","@isLoading","@action"],["topic.publish_page.unpublish","trash-can",[30,0,["unpublishing"]],[30,0,["unpublish"]]]],null],[1,"\\n\\n "],[8,[39,16],[[24,0,"close-publish-page"]],[["@icon","@label","@action"],["xmark","close",[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,0,["unpublished"]],[[[1," "],[8,[39,16],null,[["@label","@action"],["topic.publish_page.publishing_settings",[30,0,["startNew"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,16],[[24,0,"btn-primary publish-page"]],[["@label","@icon","@disabled","@isLoading","@action"],["topic.publish_page.publish","file",[30,0,["disabled"]],[30,0,["saving"]],[30,0,["publish"]]]],null],[1,"\\n "]],[]]]],[]]],[1," "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","p","conditional-loading-spinner","form","div","label","text-field","input","readonly","on","a","span",":footer","d-button"]]',moduleName:"discourse/components/modal/publish-page.hbs",isStrictMode:!1});var c=n(76417);let d={initializing:"initializing",checking:"checking",valid:"valid",invalid:"invalid",saving:"saving",new:"new",existing:"existing",unpublishing:"unpublishing",unpublished:"unpublished"};class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"store",[o.service]))();#f=(()=>void dt7948.i(this,"store"))();static #n=(()=>dt7948.g(this.prototype,"state",[s.tracked],function(){return d.initializing}))();#sl=(()=>void dt7948.i(this,"state"))();static #i=(()=>dt7948.g(this.prototype,"reason",[s.tracked],function(){return null}))();#su=(()=>void dt7948.i(this,"reason"))();static #l=(()=>dt7948.g(this.prototype,"publishedPage",[s.tracked],function(){return null}))();#sc=(()=>void dt7948.i(this,"publishedPage"))();constructor(){super(...arguments),this.store.find("published_page",this.args.model.id).then(e=>{this.state=d.existing,this.publishedPage=e}).catch(this.startNew)}get initializing(){return this.state===d.initializing}get checking(){return this.state===d.checking}get valid(){return this.state===d.valid}get invalid(){return this.state===d.invalid}get saving(){return this.state===d.saving}get new(){return this.state===d.new}get existing(){return this.state===d.existing}get unpublishing(){return this.state===d.unpublishing}get unpublished(){return this.state===d.unpublished}get disabled(){return this.state!==d.valid}get showUrl(){return this.state===d.valid||this.state===d.saving||this.state===d.existing}get showUnpublish(){return this.state===d.existing||this.state===d.unpublishing}startCheckSlug(){this.state!==d.existing&&(this.state=d.checking)}static #u=(()=>dt7948.n(this.prototype,"startCheckSlug",[r.action]))();checkSlug(){if(this.state!==d.existing)return(0,a.ajax)("/pub/check-slug",{data:{slug:this.publishedPage.slug}}).then(e=>{e.valid_slug?this.state=d.valid:(this.state=d.invalid,this.reason=e.reason)})}static #c=(()=>dt7948.n(this.prototype,"checkSlug",[r.action]))();unpublish(){return this.state=d.unpublishing,this.publishedPage.destroyRecord().then(()=>{this.state=d.unpublished,this.args.model.set("publishedPage",null)}).catch(e=>{this.state=d.existing,(0,l.popupAjaxError)(e)})}static #d=(()=>dt7948.n(this.prototype,"unpublish",[r.action]))();publish(){return this.state=d.saving,this.publishedPage.update(this.publishedPage.getProperties("slug","public")).then(()=>{this.state=d.existing,this.args.model.set("publishedPage",this.publishedPage)}).catch(e=>{(0,l.popupAjaxError)(e),this.state=d.existing})}static #p=(()=>dt7948.n(this.prototype,"publish",[r.action]))();startNew(){this.state=d.new,this.publishedPage=this.store.createRecord("published_page",this.args.model.getProperties("id","slug","public")),this.checkSlug()}static #h=(()=>dt7948.n(this.prototype,"startNew",[r.action]))();onChangePublic(e){this.publishedPage.set("public",e.target.checked),this.showUnpublish&&this.publish()}static #m=(()=>dt7948.n(this.prototype,"onChangePublic",[r.action]))()}(0,c.setComponentTemplate)(u,p)},48945:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(28564),r=n(70001),o=n(69883);let a=(0,n(82739).createTemplateFactory)({id:"Kt2P9yCU",block:'[[[8,[39,0],[[24,0,"incoming-email-modal"]],[["@title","@closeModal"],[[28,[37,1],["raw_email.title"],null],[30,1]]],[["body"],[[[[1,"\\n "],[10,0],[14,0,"incoming-email-tabs"],[12],[1,"\\n "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"raw"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayRaw"]],"post.raw_email.displays.raw.button","post.raw_email.displays.raw.title"]],null],[1,"\\n\\n"],[41,[30,0,["textPart"]],[[[1," "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"text_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayTextPart"]],"post.raw_email.displays.text_part.button","post.raw_email.displays.text_part.title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["htmlPart"]],[[[1," "],[8,[39,4],[[16,0,[52,[28,[37,6],[[30,0,["tab"]],"html_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayHtmlPart"]],"post.raw_email.displays.html_part.button","post.raw_email.displays.html_part.title"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"incoming-email-content"],[12],[1,"\\n"],[41,[28,[37,6],[[30,0,["tab"]],"raw"],null],[[[41,[30,0,["rawEmail"]],[[[1," "],[8,[39,7],null,[["@value"],[[30,0,["rawEmail"]]]],null],[1,""]],[]],[[[1," "],[1,[28,[35,1],["raw_email.not_available"],null]],[1,""]],[]]]],[]],null],[41,[28,[37,6],[[30,0,["tab"]],"text_part"],null],[[[1," "],[8,[39,7],null,[["@value"],[[30,0,["textPart"]]]],null],[1,""]],[]],null],[41,[28,[37,6],[[30,0,["tab"]],"html_part"],null],[[[1," "],[8,[39,8],[[24,0,"incoming-email-html-part"]],[["@html"],[[30,0,["htmlPart"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","div","d-button","if","eq","textarea","iframed-html"]]',moduleName:"discourse/components/modal/raw-email.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"rawEmail",[s.tracked],function(){return this.args.model.rawEmail||""}))();#sd=(()=>void dt7948.i(this,"rawEmail"))();static #n=(()=>dt7948.g(this.prototype,"textPart",[s.tracked],function(){return""}))();#sp=(()=>void dt7948.i(this,"textPart"))();static #i=(()=>dt7948.g(this.prototype,"htmlPart",[s.tracked],function(){return""}))();#sh=(()=>void dt7948.i(this,"htmlPart"))();static #l=(()=>dt7948.g(this.prototype,"tab",[s.tracked],function(){return"raw"}))();#sm=(()=>void dt7948.i(this,"tab"))();constructor(){super(...arguments),this.args.model.id&&this.loadRawEmail(this.args.model.id)}async loadRawEmail(e){let t=await o.default.loadRawEmail(e);this.rawEmail=t.raw_email,this.textPart=t.text_part,this.htmlPart=t.html_part}static #u=(()=>dt7948.n(this.prototype,"loadRawEmail",[r.action]))();displayRaw(){this.tab="raw"}static #c=(()=>dt7948.n(this.prototype,"displayRaw",[r.action]))();displayTextPart(){this.tab="text_part"}static #d=(()=>dt7948.n(this.prototype,"displayTextPart",[r.action]))();displayHtmlPart(){this.tab="html_part"}static #p=(()=>dt7948.n(this.prototype,"displayHtmlPart",[r.action]))()}(0,l.setComponentTemplate)(a,u)},69553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"hiQp594I",block:'[[[8,[39,0],[[24,0,"reject-reason-reviewable-modal"]],[["@bodyClass","@closeModal","@title"],["reject-reason-reviewable-modal__explain-reviewable",[30,1],[28,[37,1],["review.reject_reason.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[39,3],null,[["@value"],[[30,0,["rejectReason"]]]],null],[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,6],[[24,0,"reject-reason-reviewable-modal__send_email--inline"]],[["@type","@checked"],["checkbox",[30,0,["sendEmail"]]]],null],[1,"\\n "],[1,[28,[35,1],["review.reject_reason.send_email"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,8],[[24,0,"btn-danger"]],[["@icon","@action","@label"],["trash-can",[30,0,["perform"]],"admin.user.delete"]],null],[1,"\\n "],[8,[39,8],[[24,0,"cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","textarea","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/reject-reason-reviewable.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{rejectReason;sendEmail=!1;async perform(){this.args.model.reviewable.setProperties({rejectReason:this.rejectReason,sendEmail:this.sendEmail}),this.args.closeModal(),await this.args.model.performConfirmed(this.args.model.action)}static #e=(()=>dt7948.n(this.prototype,"perform",[s.action]))()}(0,o.setComponentTemplate)(r,a)},35525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(6610),l=n(64149);let u=(0,n(82739).createTemplateFactory)({id:"jSqTBrQz",block:'[[[8,[39,0],[[24,0,"reorder-categories"]],[["@title","@closeModal","@inline"],[[28,[37,1],["categories.reorder.title"],null],[30,1],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,"table"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"reorder-categories__header-position"],[12],[1,"\\n "],[1,[28,[35,1],["categories.reorder.position"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["sortedEntries"]]],null]],null],null,[[[1," "],[10,"tr"],[15,"data-category-id",[30,3,["category","id"]]],[15,0,[52,[28,[37,11],[[30,0,["highlightedCategoryId"]],[30,3,["category","id"]]],null],"highlighted"]],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[15,0,[28,[37,14],["reorder-categories-depth-",[30,3,["depth"]]],null]],[12],[1,"\\n "],[1,[28,[35,15],[[30,3,["category"]]],[["allowUncategorized"],["true"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"reorder-categories-actions"],[12],[1,"\\n "],[11,"input"],[16,2,[30,3,["position"]]],[24,"min","0"],[24,4,"number"],[4,[38,17],["change",[28,[37,18],[[28,[37,19],[[30,0,["change"]],[30,3]],null]],null]],null],[12],[13],[1,"\\n "],[8,[39,20],[[24,0,"btn-default no-text move-up"]],[["@action","@icon"],[[28,[37,19],[[30,0,["move"]],[30,3],-1],null],"arrow-up"]],null],[1,"\\n "],[8,[39,20],[[24,0,"btn-default no-text move-down"]],[["@action","@icon"],[[28,[37,19],[[30,0,["move"]],[30,3],1],null],"arrow-down"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,20],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["save"]],"categories.reorder.save",[28,[37,22],[[30,0,["changed"]]],null]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@inline","entry"],false,["d-modal","i18n",":body","table","thead","th","tbody","each","-track-array","tr","if","eq","td","div","concat","category-badge","input","on","with-event-value","fn","d-button",":footer","not"]]',moduleName:"discourse/components/modal/reorder-categories.hbs",isStrictMode:!1});var c=n(76417);class d{static #e=(()=>dt7948.g(this.prototype,"position",[s.tracked]))();#sg=(()=>void dt7948.i(this,"position"))();constructor(e){let{position:t,depth:n,category:i,descendantCount:s}=e;this.position=t,this.depth=n,this.category=i,this.descendantCount=s}}class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"changed",[s.tracked],function(){return!1}))();#sf=(()=>void dt7948.i(this,"changed"))();static #i=(()=>dt7948.g(this.prototype,"entries",[s.tracked],function(){return this.reorder()}))();#s_=(()=>void dt7948.i(this,"entries"))();static #l=(()=>dt7948.g(this.prototype,"highlightedCategoryId",[s.tracked],function(){return null}))();#sy=(()=>void dt7948.i(this,"highlightedCategoryId"))();get sortedEntries(){return this.entries.sortBy("position")}reorder(e){return e??=this.site.categories.map(e=>({category:e,position:e.position})),this.createEntries([...e.sortBy("position")])}createEntries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];for(let r of e)if(null===n&&!r.category.parent_category_id||r.category.parent_category_id===n){let n=this.createEntries(e,t+s.length+1,r.category.id,i+1);s=[...s,new d({position:t+s.length,depth:i,category:r.category,descendantCount:n.length}),...n]}return s}move(e,t){let n=e.position+t;if(t>0)e.descendantCount&&e.descendantCount>=t&&(n+=e.descendantCount);else{let e=this.sortedEntries[n]?.category?.ancestors;e&&(n=this.sortedEntries.findBy("category.id",e[0].id).position)}for(let i of(n>=this.entries.length?n=this.entries.length-1:n<0&&(n=0),this.sortedEntries))t>0?i.position>e.position&&i.position<=n&&(i.position-=1):i.position=n&&(i.position+=1);e.position=n,this.entries=this.reorder(this.sortedEntries),this.changed=!0,this.toggleHighlight(e.category.id)}static #u=(()=>dt7948.n(this.prototype,"move",[r.action]))();toggleHighlight(e){this.highlightedCategoryId=e,setTimeout(()=>{this.highlightedCategoryId===e&&(this.highlightedCategoryId=null)},3e3)}static #c=(()=>dt7948.n(this.prototype,"toggleHighlight",[r.action]))();change(e,t){let n=parseInt(t,10)-e.position;this.move(e,n)}static #d=(()=>dt7948.n(this.prototype,"change",[r.action]))();async save(){let e=this.reorder(this.sortedEntries),t={};for(let{category:n,position:i}of e)t[n.id]=i;try{await (0,a.ajax)("/categories/reorder",{type:"POST",data:{mapping:JSON.stringify(t)}}),window.location.reload()}catch(e){(0,l.popupAjaxError)(e)}}static #p=(()=>dt7948.n(this.prototype,"save",[r.action]))()}(0,c.setComponentTemplate)(u,p)},61826:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(97355),a=n(64149),l=n(56839),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"vB7Or3Gx",block:'[[[8,[39,0],[[24,0,"request-group-membership-form"]],[["@title","@closeModal","@inline"],[[30,0,["title"]],[30,1],[30,2]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[1,[28,[35,4],["groups.membership_request.reason"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,5],[[16,2,[30,0,["reason"]]],[24,"maxlength","5000"],[4,[38,6],["input",[28,[37,7],[[28,[37,8],[[28,[37,9],[[30,0,["reason"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["requestMember"]],"groups.membership_request.submit",[30,0,["disableSubmit"]]]],null],[1,"\\n\\n "],[8,[39,12],null,[["@close"],[[30,1]]],null],[1,"\\n "],[8,[39,13],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]]],["@closeModal","@inline"],false,["d-modal",":body","div","label","i18n","expanding-text-area","on","with-event-value","fn","mut",":footer","d-button","d-modal-cancel","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/request-group-membership-form.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"reason",[s.tracked],function(){return this.args.model.group.membership_request_template}))();#su=(()=>void dt7948.i(this,"reason"))();get title(){return(0,u.i18n)("groups.membership_request.title",{group_name:this.args.model.group.name})}get disableSubmit(){return this.loading||(0,o.isEmpty)(this.reason)}async requestMember(){this.loading=!0;try{let e=await this.args.model.group.requestMembership(this.reason);l.default.routeTo(e.relative_url)}catch(e){(0,a.popupAjaxError)(e)}finally{this.loading=!1}}static #i=(()=>dt7948.n(this.prototype,"requestMember",[r.action]))()}(0,d.setComponentTemplate)(c,p)},54355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(97355),l=n(64149),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"vYP9tw2P",block:'[[[8,[39,0],[[24,0,"revise-and-reject-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.revise_and_reject_post.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"revise-and-reject-reviewable__queued-post"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@tagName"],[[30,2,["reviewable"]],""]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.reason"],null]],[13],[1,"\\n "],[8,[39,6],[[24,0,"revise-and-reject-reviewable__reason"]],[["@name","@content","@value","@onChange"],["reason",[30,0,["configuredReasons"]],[30,0,["reason"]],[28,[37,7],[[28,[37,8],[[30,0,["reason"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showCustomReason"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","custom_reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.custom_reason"],null]],[13],[1,"\\n "],[8,[39,10],[[24,3,"custom_reason"],[24,0,"revise-and-reject-reviewable__custom-reason"]],[["@type","@value"],["text",[30,0,["customReason"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","feedback"],[12],[1,[28,[35,1],["review.revise_and_reject_post.feedback"],null]],[1,"\\n "],[10,1],[14,0,"revise-and-reject-reviewable__optional"],[12],[1,"("],[1,[28,[35,1],["review.revise_and_reject_post.optional"],null]],[1,")"],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,12],[[24,0,"revise-and-reject-reviewable__feedback"]],[["@name","@value","@onChange"],["feedback",[30,0,["feedback"]],[28,[37,7],[[28,[37,8],[[30,0,["feedback"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,14],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["rejectAndSendPM"]],[30,0,["sendPMDisabled"]],"review.revise_and_reject_post.send_pm"]],null],[1,"\\n "],[8,[39,14],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","reviewable-queued-post","label","combo-box","fn","mut","if","input","span","d-textarea",":footer","d-button"]]',moduleName:"discourse/components/modal/revise-and-reject-post-reviewable.hbs",isStrictMode:!1});var d=n(76417);let p="other_reason";class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"reason",[s.tracked]))();#su=(()=>void dt7948.i(this,"reason"))();static #i=(()=>dt7948.g(this.prototype,"customReason",[s.tracked]))();#sb=(()=>void dt7948.i(this,"customReason"))();static #l=(()=>dt7948.g(this.prototype,"feedback",[s.tracked]))();#sv=(()=>void dt7948.i(this,"feedback"))();static #u=(()=>dt7948.g(this.prototype,"submitting",[s.tracked],function(){return!1}))();#sw=(()=>void dt7948.i(this,"submitting"))();get configuredReasons(){return this.siteSettings.reviewable_revision_reasons.split("|").filter(Boolean).map(e=>({id:e,name:e})).concat([{id:p,name:(0,u.i18n)("review.revise_and_reject_post.other_reason")}])}get showCustomReason(){return this.reason===p}get sendPMDisabled(){return(0,a.isEmpty)(this.reason)||this.reason===p&&(0,a.isEmpty)(this.customReason)||this.submitting}async rejectAndSendPM(){this.submitting=!0;try{await this.args.model.performConfirmed(this.args.model.action,{revise_reason:this.reason,revise_custom_reason:this.customReason,revise_feedback:this.feedback}),this.args.closeModal()}catch(e){(0,l.popupAjaxError)(e)}finally{this.submitting=!1}}static #c=(()=>dt7948.n(this.prototype,"rejectAndSendPM",[r.action]))()}(0,d.setComponentTemplate)(c,h)},31544:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(2262),l=n(41958),u=n(51969);let c=(0,n(82739).createTemplateFactory)({id:"rIN4Xq54",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["securityKeyRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.security_key.add"],null]]],[["body"],[[[[1,"\\n "],[8,[39,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,1],["user.second_factor.enable_security_key_description"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,8],[[24,1,"security-key-name"],[24,"placeholder","security key name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@value"],[[30,0,["securityKeyName"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[51,[30,0,["webauthnUnsupported"]]],[[[1," "],[8,[39,10],[[24,0,"btn-primary add-security-key"]],[["@action","@label"],[[30,0,["registerSecurityKey"]],"user.second_factor.security_key.register"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert",":body","conditional-loading-spinner","if","div","html-safe","input","unless","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-security-key.hbs",isStrictMode:!1});var d=n(76417);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked],function(){return null}))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();static #l=(()=>dt7948.g(this.prototype,"securityKeyName",[s.tracked]))();#sk=(()=>void dt7948.i(this,"securityKeyName"))();maxSecondFactorNameLength=(()=>l.MAX_SECOND_FACTOR_NAME_LENGTH)();get webauthnUnsupported(){return!(0,a.isWebauthnSupported)()}securityKeyRequested(){let e;e=this.capabilities.isIOS&&!this.capabilities.isIpadOS?"user.second_factor.security_key.iphone_default_name":this.capabilities.isAndroid?"user.second_factor.security_key.android_default_name":"user.second_factor.security_key.default_name",this.securityKeyName=(0,u.i18n)(e),this.loading=!0,this.args.model.secondFactor.requestSecurityKeyChallenge().then(e=>{if(e.error){this.errorMessage=e.error;return}this.errorMessage=(0,a.isWebauthnSupported)()?null:(0,u.i18n)("login.security_key_support_missing_error"),this.loading=!1,this.challenge=e.challenge,this.relayingParty={id:e.rp_id,name:e.rp_name},this.supported_algorithms=e.supported_algorithms,this.user_secure_id=e.user_secure_id,this.existing_active_credential_ids=e.existing_active_credential_ids}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #u=(()=>dt7948.n(this.prototype,"securityKeyRequested",[r.action]))();registerSecurityKey(){if(!this.securityKeyName){this.errorMessage=(0,u.i18n)("user.second_factor.security_key.name_required_error");return}let e={challenge:Uint8Array.from(this.challenge,e=>e.charCodeAt(0)),rp:{name:this.relayingParty.name,id:this.relayingParty.id},user:{id:Uint8Array.from(this.user_secure_id,e=>e.charCodeAt(0)),displayName:this.args.model.secondFactor.username_lower,name:this.args.model.secondFactor.username_lower},pubKeyCredParams:this.supported_algorithms.map(e=>({type:"public-key",alg:e})),excludeCredentials:this.existing_active_credential_ids.map(e=>({type:"public-key",id:(0,a.stringToBuffer)(atob(e))})),timeout:2e4,attestation:"none",authenticatorSelection:{userVerification:"discouraged"}};navigator.credentials.create({publicKey:e}).then(e=>{let t={id:e.id,rawId:(0,a.bufferToBase64)(e.rawId),type:e.type,attestation:(0,a.bufferToBase64)(e.response.attestationObject),clientData:(0,a.bufferToBase64)(e.response.clientDataJSON),name:this.securityKeyName};this.args.model.secondFactor.registerSecurityKey(t).then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload()}).catch(e=>this.args.model.onError(e)).finally(()=>this.loading=!1)},e=>{if("InvalidStateError"===e.name){this.errorMessage=(0,u.i18n)("user.second_factor.security_key.already_added_error");return}if("NotAllowedError"===e.name){this.errorMessage=(0,u.i18n)("user.second_factor.security_key.not_allowed_error");return}this.errorMessage=e.message})}static #c=(()=>dt7948.n(this.prototype,"registerSecurityKey",[r.action]))()}(0,d.setComponentTemplate)(c,p)},4888:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(41958),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"Kq1uDF6y",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["totpRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.totp.add"],null]]],[["body"],[[[[1,"\\n "],[8,[39,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[1,[28,[35,7],[[28,[37,1],["user.second_factor.enable_description"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,0],[14,0,"qr-code"],[12],[1,"\\n "],[10,"img"],[15,"src",[28,[37,7],[[30,0,["secondFactorImage"]]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["showSecondFactorKey"]],[[[1," "],[10,0],[14,0,"second-factor-key"],[12],[1,"\\n "],[1,[30,0,["secondFactorKey"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[24,6,""],[24,0,"show-second-factor-key"],[4,[38,11],["click",[30,0,["enableShowSecondFactorKey"]]],null],[12],[1,[28,[35,1],["user.second_factor.show_key_description"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.name"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["secondFactorName"]]],[16,"placeholder",[28,[37,1],["user.second_factor.totp.default_name"],null]],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]],[24,1,"second-factor-name"],[24,4,"text"],[4,[38,11],["input",[28,[37,14],[[28,[37,15],[[28,[37,16],[[30,0,["secondFactorName"]]],null]],null]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,"\\n "],[1,[28,[35,1],["user.second_factor.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,17],[[16,2,[30,0,["secondFactorToken"]]],[24,"placeholder","123456"],[24,1,"second-factor-token"],[4,[38,11],["input",[28,[37,14],[[28,[37,15],[[28,[37,16],[[30,0,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,0,["totpType"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,18],[[24,0,"btn-primary add-totp"]],[["@action","@label"],[[30,0,["enableSecondFactor"]],"enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert",":body","conditional-loading-spinner","if","div","html-safe","img","p","a","on","label","input","with-event-value","fn","mut","second-factor-input","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-totp.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"secondFactorImage",[s.tracked]))();#sx=(()=>void dt7948.i(this,"secondFactorImage"))();static #i=(()=>dt7948.g(this.prototype,"secondFactorKey",[s.tracked]))();#sT=(()=>void dt7948.i(this,"secondFactorKey"))();static #l=(()=>dt7948.g(this.prototype,"showSecondFactorKey",[s.tracked],function(){return!1}))();#sS=(()=>void dt7948.i(this,"showSecondFactorKey"))();static #u=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked]))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();static #c=(()=>dt7948.g(this.prototype,"secondFactorToken",[s.tracked]))();#sn=(()=>void dt7948.i(this,"secondFactorToken"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();totpType=(()=>o.SECOND_FACTOR_METHODS.TOTP)();totpRequested(){this.args.model.secondFactor.createSecondFactorTotp().then(e=>{if(e.error){this.errorMessage=e.error;return}this.errorMessage=null,this.secondFactorKey=e.key,this.secondFactorImage=e.qr}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #d=(()=>dt7948.n(this.prototype,"totpRequested",[r.action]))();enableShowSecondFactorKey(e){e.preventDefault(),e.stopImmediatePropagation(),this.showSecondFactorKey=!0}static #p=(()=>dt7948.n(this.prototype,"enableShowSecondFactorKey",[r.action]))();enableSecondFactor(){if(!this.secondFactorToken||!this.secondFactorName){this.errorMessage=(0,a.i18n)("user.second_factor.totp.name_and_code_required_error");return}this.loading=!0,this.args.model.secondFactor.enableSecondFactorTotp(this.secondFactorToken,this.secondFactorName).then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload()}).catch(e=>this.args.model.onError(e)).finally(()=>this.loading=!1)}static #h=(()=>dt7948.n(this.prototype,"enableSecondFactor",[r.action]))()}(0,u.setComponentTemplate)(l,c)},98039:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(41958),a=n(62797),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"EWqfVjni",block:'[[[8,[39,0],[[24,0,"second-factor-backup-edit-modal"]],[["@title","@closeModal"],[[28,[37,1],["user.second_factor_backup.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["successMessage"]],[[[1," "],[10,0],[14,0,"alert alert-success"],[12],[1,"\\n "],[1,[30,0,["successMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,5],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["backupCodes"]],[[[1," "],[10,"h3"],[12],[1,[28,[35,1],["user.second_factor_backup.codes.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,1],["user.second_factor_backup.codes.description"],null]],[13],[1,"\\n "],[8,[39,8],null,[["@copyBackupCode","@backupCodes"],[[30,0,["copyBackupCode"]],[30,0,["backupCodes"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["backupEnabled"]],[[[1," "],[1,[28,[35,9],[[28,[37,1],["user.second_factor_backup.remaining_codes"],[["count"],[[30,0,["remainingCodes"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[28,[37,1],["user.second_factor_backup.not_enabled"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[41,[30,0,["backupEnabled"]],[[[1," "],[8,[39,11],[[24,0,"btn-primary"]],[["@icon","@action","@type","@isLoading","@label"],["arrow-rotate-right",[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.regenerate"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,11],[[24,0,"btn-primary"]],[["@action","@type","@disabled","@label"],[[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.enable"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","if","div","conditional-loading-section","h3","p","backup-codes","html-safe",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-backup-edit.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked]))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();static #i=(()=>dt7948.g(this.prototype,"successMessage",[s.tracked]))();#sC=(()=>void dt7948.i(this,"successMessage"))();static #l=(()=>dt7948.g(this.prototype,"backupEnabled",[s.tracked],function(){return this.args.model.secondFactor.second_factor_backup_enabled}))();#i9=(()=>void dt7948.i(this,"backupEnabled"))();static #u=(()=>dt7948.g(this.prototype,"remainingCodes",[s.tracked],function(){return this.args.model.secondFactor.second_factor_remaining_backup_codes}))();#sE=(()=>void dt7948.i(this,"remainingCodes"))();static #c=(()=>dt7948.g(this.prototype,"backupCodes",[s.tracked]))();#sA=(()=>void dt7948.i(this,"backupCodes"))();static #d=(()=>dt7948.g(this.prototype,"secondFactorMethod",[s.tracked],function(){return o.SECOND_FACTOR_METHODS.TOTP}))();#i2=(()=>void dt7948.i(this,"secondFactorMethod"))();copyBackupCode(e){e?this.successMessage=(0,l.i18n)("user.second_factor_backup.copied_to_clipboard"):this.errorMessage=(0,l.i18n)("user.second_factor_backup.copy_to_clipboard_error"),this._hideCopyMessage()}static #p=(()=>dt7948.n(this.prototype,"copyBackupCode",[r.action]))();generateSecondFactorCodes(){this.loading=!0,this.args.model.secondFactor.generateSecondFactorCodes().then(e=>{if(e.error){this.errorMessage=e.error;return}this.args.model.markDirty(),this.errorMessage=null,this.backupCodes=e.backup_codes,this.args.model.setBackupEnabled(!0),this.backupEnabled=!0,this.remainingCodes=e.backup_codes.length,this.args.model.setCodesRemaining(this.remainingCodes)}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>this.loading=!1)}static #h=(()=>dt7948.n(this.prototype,"generateSecondFactorCodes",[r.action]))();_hideCopyMessage(){this.successMessage=null,this.errorMessage=null}static #m=(()=>dt7948.n(this.prototype,"_hideCopyMessage",[(0,a.debounce)(2e3)]))()}(0,c.setComponentTemplate)(u,d)},34428:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(28564),r=n(70001),o=n(41958);let a=(0,n(82739).createTemplateFactory)({id:"sgJBWoRN",block:'[[[8,[39,0],null,[["@title","@closeModal","@tagName"],[[28,[37,1],["user.second_factor.security_key.edit"],null],[30,1],"form"]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[14,"for","security-key-name"],[12],[1,[28,[35,1],["user.second_factor.security_key.edit_description"],null]],[13],[1,"\\n "],[8,[39,5],[[24,3,"security-key-name"],[24,1,"security-key-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["securityKey","name"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label","@type"],[[30,0,["editSecurityKey"]],"user.second_factor.security_key.save","submit"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit-security-key.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();editSecurityKey(){this.loading=!0,this.args.model.user.updateSecurityKey(this.args.model.securityKey.id,this.args.model.securityKey.name,!1).then(e=>{e.error||this.args.model.markDirty()}).catch(e=>{this.args.model.onError(e)}).finally(()=>{this.loading=!1,this.args.closeModal()})}static #n=(()=>dt7948.n(this.prototype,"editSecurityKey",[r.action]))()}(0,l.setComponentTemplate)(a,u)},26418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(28564),r=n(70001),o=n(41958);let a=(0,n(82739).createTemplateFactory)({id:"PWdsM/Cu",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.second_factor.edit_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"input-group"],[12],[1,"\\n "],[10,"label"],[14,"for","authenticator-name"],[12],[1,[28,[35,1],["user.second_factor.edit_description"],null]],[13],[1,"\\n "],[8,[39,5],[[24,3,"authenticator-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["secondFactor","name"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["editSecondFactor"]],"user.second_factor.save"]],null],[1,"\\n "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n",":body","div","label","input",":footer","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();maxSecondFactorNameLength=(()=>o.MAX_SECOND_FACTOR_NAME_LENGTH)();editSecondFactor(){this.loading=!0,this.args.model.user.updateSecondFactor(this.args.model.secondFactor.id,this.args.model.secondFactor.name,!1,this.args.model.secondFactor.method).then(e=>{e.error||this.args.model.markDirty()}).catch(e=>{this.args.closeModal(),this.args.model.onError(e)}).finally(()=>{this.loading=!1,this.args.closeModal()})}static #n=(()=>dt7948.n(this.prototype,"editSecondFactor",[r.action]))()}(0,l.setComponentTemplate)(a,u)},33462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(76417),s=n(70001),r=n(5938),o=n(71597),a=n(54729),l=n(27659),u=n(38536),c=n(53674),d=n(26038),p=n(88253),h=n(87389),m=n(62797),g=n(51969);let f=(0,n(82739).createTemplateFactory)({id:"U/jRXD3a",block:'[[[8,[39,0],[[24,0,"share-topic-modal"]],[["@title","@subtitle","@closeModal","@flash","@flashType"],[[52,[30,0,["post"]],[28,[37,2],["post.share.title"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.title"],null]],[52,[30,0,["post"]],[30,0,["displayDate"]]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["default"],[[[[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n "],[1,[52,[30,0,["post"]],[28,[37,2],["post.share.instructions"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.instructions"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[39,6],[[24,1,"invite-link"],[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true],[24,"size","200"]],[["@value"],[[30,0,["url"]]]],null],[1,"\\n "],[8,[39,7],null,[["@selector","@ariaLabel"],["input.invite-link","share.url"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"link-share-actions"],[12],[1,"\\n "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["sources"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@source","@action"],[[30,2],[30,0,["share"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["allowInvites"]],[[[1," "],[8,[39,11],[[24,0,"btn-default invite"]],[["@label","@icon","@action"],["topic.share.invite_users","user-plus",[30,0,["inviteUsers"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topic","details","can_reply_as_new_topic"]],[[[41,[30,0,["topic","isPrivateMessage"]],[[[1," "],[8,[39,11],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_private_message","post.reply_as_new_private_message","user.new_private_message"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,11],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_topic","post.reply_as_new_topic","topic.create"]],null],[1,"\\n"]],[]]]],[]],null],[1," "],[8,[39,12],null,[["@name","@outletArgs"],["share-topic-sources",[28,[37,13],null,[["topic","post"],[[30,0,["topic"]],[30,0,["post"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@closeModal","source"],false,["d-modal","if","i18n","form","div","label","input","copy-button","each","-track-array","share-source","d-button","plugin-outlet","hash"]]',moduleName:"discourse/components/modal/share-topic.hbs",isStrictMode:!1});class _ extends i.default.extend((0,d.bufferedProperty)("invite")){static #e=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"topic",[(0,r.readOnly)("model.topic")]))();#U=(()=>void dt7948.i(this,"topic"))();static #i=(()=>dt7948.g(this.prototype,"post",[(0,r.readOnly)("model.post")]))();#nL=(()=>void dt7948.i(this,"post"))();static #l=(()=>dt7948.g(this.prototype,"category",[(0,r.readOnly)("model.category")]))();#sD=(()=>void dt7948.i(this,"category"))();static #u=(()=>dt7948.g(this.prototype,"allowInvites",[(0,r.readOnly)("model.allowInvites")]))();#sI=(()=>void dt7948.i(this,"allowInvites"))();didInsertElement(){this._showRestrictedGroupWarning(),this._selectUrl(),super.didInsertElement()}_showRestrictedGroupWarning(){this.category&&p.default.fetchVisibleGroups(this.category.id).then(e=>{e.groups.length>0&&this.setProperties({flash:(0,g.i18n)("topic.share.restricted_groups",{count:e.groups.length,groupNames:e.groups.join(", ")}),flashType:"warning"})})}static #c=(()=>dt7948.n(this.prototype,"_showRestrictedGroupWarning",[m.afterRender]))();_selectUrl(){let e=document.querySelector("input.invite-link");e&&this.site.desktopView&&(e.setSelectionRange(0,this.url.length),e.focus())}static #d=(()=>dt7948.n(this.prototype,"_selectUrl",[m.afterRender]))();url(e,t){return e?(0,h.getAbsoluteURL)(e):t?(0,h.getAbsoluteURL)(t):void 0}static #p=(()=>dt7948.n(this.prototype,"url",[(0,m.default)("post.shareUrl","topic.shareUrl")]))();displayDate(e,t,n){return(0,u.longDateNoYear)(new Date(t&&n?n:e))}static #h=(()=>dt7948.n(this.prototype,"displayDate",[(0,m.default)("post.created_at","post.wiki","post.last_wiki_edit")]))();sources(e){let t=this.siteSettings.login_required||e?.isPrivateMessage||e?.invisible||e?.category?.read_restricted;return c.default.activeSources(this.siteSettings.share_links,t)}static #m=(()=>dt7948.n(this.prototype,"sources",[(0,m.default)("topic.{isPrivateMessage,invisible,category.read_restricted}")]))();share(e){c.default.shareSource(e,{title:this.topic.title,url:this.url})}static #g=(()=>dt7948.n(this.prototype,"share",[s.action]))();inviteUsers(){this.modal.show(l.default,{model:{inviteToTopic:!0,topics:[this.topic],topicId:this.topic.id,topicTitle:this.topic.title}})}static #E=(()=>dt7948.n(this.prototype,"inviteUsers",[s.action]))();replyAsNewTopic(){let e=this.topic.postStream,t=this.post?.id||e.findPostIdForPostNumber(1),n=e.findLoadedPost(t),i=(0,o.getOwner)(this).lookup("controller:topic");i.actions.replyAsNewTopic.call(i,n),this.closeModal()}static #A=(()=>dt7948.n(this.prototype,"replyAsNewTopic",[s.action]))()}(0,i.setComponentTemplate)(f,_)},85796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(28564),s=n(89711),r=n(76417),o=n(70001),a=n(54729),l=n(97355),u=n(6610),c=n(64149),d=n(69391),p=n(62167),h=n(62797),m=n(51969);let g=(0,n(82739).createTemplateFactory)({id:"Iv81y6jX",block:'[[[8,[39,0],[[24,0,"sidebar-section-form-modal"]],[["@closeModal","@flash","@flashType","@title"],[[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[37,1],[[30,0,["header"]]],null]]],[["body","footer"],[[[[1,"\\n "],[10,"form"],[14,0,"form-horizontal sidebar-section-form"],[12],[1,"\\n"],[41,[51,[30,0,["transformedModel","hideTitleInput"]]],[[[1," "],[10,0],[14,0,"sidebar-section-form__input-wrapper"],[12],[1,"\\n "],[10,"label"],[14,"for","section-name"],[12],[1,"\\n "],[1,[28,[35,1],["sidebar.sections.custom.title.label"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],[[24,3,"section-name"],[16,0,[30,0,["transformedModel","titleCssClass"]]],[24,1,"section-name"],[4,[38,8],["input",[28,[37,9],[[28,[37,10],[[28,[37,11],[[30,0,["transformedModel","title"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,0,["transformedModel","title"]]]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","invalidTitleMessage"]],[[[1," "],[10,0],[14,0,"title warning"],[12],[1,"\\n "],[1,[30,0,["transformedModel","invalidTitleMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,"role","table"],[15,"aria-rowcount",[30,0,["activeLinks","length"]]],[14,0,"sidebar-section-form__links-wrapper"],[12],[1,"\\n\\n "],[10,0],[14,0,"row-wrapper header"],[14,"role","row"],[12],[1,"\\n "],[10,0],[14,0,"input-group link-icon"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.icon.label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group link-name"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.name.label"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group link-url"],[14,"role","columnheader"],[14,"aria-sort","none"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.value.label"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["activeLinks"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,2],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,16],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,1],["sidebar.sections.custom.more_menu"],null]],[13],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["activeSecondaryLinks"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,3],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[3]],null],[1," "],[8,[39,16],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addSecondaryLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,16],[[24,1,"save-section"],[24,0,"btn-primary"]],[["@action","@label","@ariaLabel","@disabled"],[[30,0,["save"]],"sidebar.sections.custom.save","sidebar.sections.custom.save",[28,[37,20],[[30,0,["transformedModel","valid"]]],null]]],null],[1,"\\n"],[41,[28,[37,21],[[30,0,["currentUser","admin"]]],null],[[[1," "],[10,0],[15,0,[29,["mark-public-wrapper\\n ",[52,[30,0,["transformedModel","sectionType"]],"-disabled"]]]],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[8,[39,22],[[24,0,"always-public-tooltip"]],[["@content"],[[28,[37,1],["sidebar.sections.custom.always_public"],null]]],[["trigger"],[[[[1,"\\n "],[1,[28,[35,24],["square-check"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,7],[[24,0,"mark-public"],[16,"disabled",[30,0,["transformedModel","sectionType"]]]],[["@type","@checked"],["checkbox",[30,0,["transformedModel","public"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canDelete"]],[[[1," "],[8,[39,16],[[24,1,"delete-section"],[24,0,"btn-danger delete"]],[["@icon","@action","@label","@ariaLabel"],["trash-can",[30,0,["delete"]],"sidebar.sections.custom.delete","sidebar.sections.custom.delete"]],null],[1,"\\n"]],[]],null],[41,[30,0,["transformedModel","sectionType"]],[[[1," "],[8,[39,16],[[24,0,"btn-flat btn-text reset-link"]],[["@action","@icon","@title","@label","@ariaLabel"],[[30,0,["resetToDefault"]],"arrow-rotate-left","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]]],["@closeModal","link","link"],false,["d-modal","i18n",":body","form","unless","div","label","input","on","with-event-value","fn","mut","if","each","-track-array","sidebar/section-form-link","d-button","hr","h3",":footer","not","and","d-tooltip",":trigger","d-icon","span"]]',moduleName:"discourse/components/modal/sidebar-section-form.hbs",isStrictMode:!1}),f=(0,n(41664).A)(n(28564)).cached;class _{static #e=(()=>dt7948.g(this.prototype,"title",[i.tracked]))();#sP=(()=>void dt7948.i(this,"title"))();static #n=(()=>dt7948.g(this.prototype,"links",[i.tracked]))();#sM=(()=>void dt7948.i(this,"links"))();static #i=(()=>dt7948.g(this.prototype,"secondaryLinks",[i.tracked]))();#sF=(()=>void dt7948.i(this,"secondaryLinks"))();constructor(e){let{title:t,links:n,secondaryLinks:i,id:s,publicSection:r,sectionType:o,hideTitleInput:a}=e;this.title=t,this.public=r,this.sectionType=o,this.links=n,this.secondaryLinks=i,this.id=s,this.hideTitleInput=a}get valid(){let e=this.links.filter(e=>!e._destroy).concat(this.secondaryLinks?.filter(e=>!e._destroy)||[]),t=e.length>0&&e.every(e=>e.valid);return this.validTitle&&t}get validTitle(){return!this.#sN&&!this.#sO}get invalidTitleMessage(){return void 0===this.title?void 0:this.#sN?(0,m.i18n)("sidebar.sections.custom.title.validation.blank"):this.#sO?(0,m.i18n)("sidebar.sections.custom.title.validation.maximum",{count:d.SIDEBAR_SECTION.max_title_length}):void 0}get titleCssClass(){return void 0===this.title||this.validTitle?"":"warning"}get #sN(){return(0,l.isEmpty)(this.title)}get #sO(){return this.title.length>d.SIDEBAR_SECTION.max_title_length}}class y{static #e=(()=>dt7948.g(this.prototype,"icon",[i.tracked]))();#sL=(()=>void dt7948.i(this,"icon"))();static #n=(()=>dt7948.g(this.prototype,"name",[i.tracked]))();#sR=(()=>void dt7948.i(this,"name"))();static #i=(()=>dt7948.g(this.prototype,"value",[i.tracked]))();#tm=(()=>void dt7948.i(this,"value"))();static #l=(()=>dt7948.g(this.prototype,"_destroy",[i.tracked]))();#sU=(()=>void dt7948.i(this,"_destroy"))();constructor(e){let{router:t,icon:n,name:i,value:s,id:r,objectId:o,segment:a}=e;this.router=t,this.icon=n||"link",this.name=i,this.value=s,this.id=r,this.httpHost="http://"+window.location.host,this.httpsHost="https://"+window.location.host,this.objectId=o,this.segment=a}get path(){return this.value?.replace(this.httpHost,"").replace(this.httpsHost,"")}get valid(){return this.validIcon&&this.validName&&this.validValue}get validIcon(){return!this.#sj&&!this.#sB}get validName(){return!this.#sz&&!this.#s$}get validValue(){return!this.#sq&&!this.#sH&&!this.#sV}get invalidIconMessage(){return this.#sj?(0,m.i18n)("sidebar.sections.custom.links.icon.validation.blank"):this.#sB?(0,m.i18n)("sidebar.sections.custom.links.icon.validation.maximum",{count:d.SIDEBAR_URL.max_icon_length}):void 0}get invalidNameMessage(){return void 0===this.name?void 0:this.#sz?(0,m.i18n)("sidebar.sections.custom.links.name.validation.blank"):this.#s$?(0,m.i18n)("sidebar.sections.custom.links.name.validation.maximum",{count:d.SIDEBAR_URL.max_name_length}):void 0}get invalidValueMessage(){return void 0===this.value?void 0:this.#sq?(0,m.i18n)("sidebar.sections.custom.links.value.validation.blank"):this.#sH?(0,m.i18n)("sidebar.sections.custom.links.value.validation.maximum",{count:d.SIDEBAR_URL.max_value_length}):this.#sV?(0,m.i18n)("sidebar.sections.custom.links.value.validation.invalid"):void 0}get iconCssClass(){return void 0===this.icon||this.validIcon?"":"warning"}get nameCssClass(){return void 0===this.name||this.validName?"":"warning"}get valueCssClass(){return void 0===this.value||this.validValue?"":"warning"}get isPrimary(){return"primary"===this.segment}get #sj(){return(0,l.isEmpty)(this.icon)}get #sB(){return this.icon.length>d.SIDEBAR_URL.max_icon_length}get #sz(){return(0,l.isEmpty)(this.name)}get #s$(){return this.name.length>d.SIDEBAR_URL.max_name_length}get #sq(){return(0,l.isEmpty)(this.value)}get #sH(){return this.value.length>d.SIDEBAR_URL.max_value_length}get #sV(){return this.path&&!this.#sW()}#sW(){try{return new URL(this.value,document.location.origin)}catch{return!1}}}class b extends r.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"flash",[i.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();static #l=(()=>dt7948.g(this.prototype,"flashType",[i.tracked]))();#iE=(()=>void dt7948.i(this,"flashType"))();nextObjectId=0;get transformedModel(){let e=this.model?.section;return new _(e?{title:e.title,publicSection:e.public,sectionType:e.section_type,links:e.links.reduce((e,t)=>("primary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e),(0,s.A)()),secondaryLinks:e.links.reduce((e,t)=>("secondary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e),(0,s.A)()),id:e.id,hideTitleInput:this.model.hideSectionHeader}:{links:(0,s.A)([new y({router:this.router,objectId:this.nextObjectId,segment:"primary"})])})}static #u=(()=>dt7948.n(this.prototype,"transformedModel",[f]))();initLink(e){return new y({router:this.router,icon:e.icon,name:e.name,value:e.value,id:e.id,objectId:this.nextObjectId,segment:e.segment})}create(){return(0,u.ajax)("/sidebar_sections",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.map(e=>({icon:e.icon,name:e.name,value:e.path}))})}).then(e=>{this.currentUser.set("sidebar_sections",this.currentUser.sidebar_sections.concat(e.sidebar_section)),this.closeModal()}).catch(e=>{this.flash=(0,p.sanitize)((0,c.extractError)(e)),this.flashType="error"})}update(){this.wasPublic||this.isPublic?this.#sK():this.#sG()}#sK(){return this.dialog.yesNoConfirm({message:this.isPublic?(0,m.i18n)("sidebar.sections.custom.update_public_confirm"):(0,m.i18n)("sidebar.sections.custom.mark_as_private_confirm"),didConfirm:()=>this.#sG()})}#sG(){return(0,u.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"PUT",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.concat(this.transformedModel?.secondaryLinks||[]).map(e=>({id:e.id,icon:e.icon,name:e.name,value:e.path,segment:e.segment,_destroy:e._destroy}))})}).then(e=>{let t=this.currentUser.sidebar_sections.map(t=>t.id===e.sidebar_section.id?e.sidebar_section:t);this.currentUser.set("sidebar_sections",t),this.closeModal()}).catch(e=>{this.flash=(0,p.sanitize)((0,c.extractError)(e)),this.flashType="error"})}get activeLinks(){return this.transformedModel.links.filter(e=>!e._destroy)}get activeSecondaryLinks(){return this.transformedModel.secondaryLinks?.filter(e=>!e._destroy)}get header(){return this.transformedModel.id?"sidebar.sections.custom.edit":"sidebar.sections.custom.add"}get isPublic(){return this.transformedModel.public}get wasPublic(){return this.model?.section?.public}focusNewRowInput(e){document.querySelector(`[data-row-id="${e}"] .icon-picker summary`).focus()}static #c=(()=>dt7948.n(this.prototype,"focusNewRowInput",[h.afterRender]))();setDraggedLink(e){this.draggedLink=e}static #d=(()=>dt7948.n(this.prototype,"setDraggedLink",[h.bind]))();reorder(e,t){if(this.draggedLink!==e){if(this.draggedLink.isPrimary?this.transformedModel.links.removeObject(this.draggedLink):this.transformedModel.secondaryLinks?.removeObject(this.draggedLink),e.isPrimary){let n=this.transformedModel.links.indexOf(e);this.draggedLink.segment="primary",this.transformedModel.links.insertAt(t?n:n+1,this.draggedLink)}else{this.draggedLink.segment="secondary";let n=this.transformedModel.secondaryLinks.indexOf(e);this.transformedModel.secondaryLinks.insertAt(t?n:n+1,this.draggedLink)}}}static #p=(()=>dt7948.n(this.prototype,"reorder",[h.bind]))();get canDelete(){return this.transformedModel.id&&!this.transformedModel.sectionType}deleteLink(e){e.id?e._destroy="1":e.isPrimary?this.transformedModel.links.removeObject(e):this.transformedModel.secondaryLinks.removeObject(e)}static #h=(()=>dt7948.n(this.prototype,"deleteLink",[h.bind]))();addLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.links.pushObject(new y({router:this.router,objectId:this.nextObjectId,segment:"primary"})),this.focusNewRowInput(this.nextObjectId)}static #m=(()=>dt7948.n(this.prototype,"addLink",[o.action]))();addSecondaryLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.secondaryLinks.pushObject(new y({router:this.router,objectId:this.nextObjectId,segment:"secondary"})),this.focusNewRowInput(this.nextObjectId)}static #g=(()=>dt7948.n(this.prototype,"addSecondaryLink",[o.action]))();resetToDefault(){return this.dialog.yesNoConfirm({message:(0,m.i18n)("sidebar.sections.custom.reset_confirm"),didConfirm:()=>(0,u.ajax)(`/sidebar_sections/reset/${this.transformedModel.id}`,{type:"PUT"}).then(e=>{this.currentUser.sidebar_sections.shiftObject(),this.currentUser.sidebar_sections.unshiftObject(e.sidebar_section),this.closeModal()}).catch(e=>{this.flash=(0,p.sanitize)((0,c.extractError)(e)),this.flashType="error"}),didCancel:()=>{this.closeModal()}})}static #E=(()=>dt7948.n(this.prototype,"resetToDefault",[o.action]))();save(){this.transformedModel.id?this.update():this.create()}static #A=(()=>dt7948.n(this.prototype,"save",[o.action]))();delete(){return this.dialog.yesNoConfirm({message:this.model.section.public?(0,m.i18n)("sidebar.sections.custom.delete_public_confirm"):(0,m.i18n)("sidebar.sections.custom.delete_confirm"),didConfirm:()=>(0,u.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"DELETE"}).then(()=>{let e=this.currentUser.sidebar_sections.filter(e=>e.id!==this.transformedModel.id);this.currentUser.set("sidebar_sections",e),this.closeModal()}).catch(e=>{this.flash=(0,p.sanitize)((0,c.extractError)(e)),this.flashType="error"})})}static #D=(()=>dt7948.n(this.prototype,"delete",[o.action]))()}(0,r.setComponentTemplate)(g,b)},91825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(37138),s=n(28564),r=n(70001),o=n(68741),a=n(54729),l=n(59602),u=n(92976),c=n(72491),d=n(48491),p=n(46213),h=n(6610),m=n(64149),g=n(56907),f=n(20802),_=n(51969),y=n(92296),b=n(76417),w=n(82739);class k extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"showEditReason",[s.tracked],function(){return!1}))();#sY=(()=>void dt7948.i(this,"showEditReason"))();static #i=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();spreadsheet=null;defaultColWidth=150;isEditingTable=(()=>!!this.args.model.tableTokens)();alignments=null;constructor(){super(...arguments),this.loadJspreadsheet(),g.default.pause()}willDestroy(){super.willDestroy(...arguments),g.default.unpause()}get modalAttributes(){return this.isEditingTable?{title:"table_builder.edit.modal.title",insertTable:{title:"table_builder.edit.modal.create",icon:"pencil"}}:{title:"table_builder.modal.title",insertTable:{title:"table_builder.modal.create",icon:"plus"}}}createSpreadsheet(e){this.spreadsheet=e,this.isEditingTable?this.buildPopulatedTable(this.args.model.tableTokens):this.buildNewTable()}static #l=(()=>dt7948.n(this.prototype,"createSpreadsheet",[r.action]))();showEditReasonField(){this.showEditReason=!this.showEditReason}static #u=(()=>dt7948.n(this.prototype,"showEditReasonField",[r.action]))();interceptCloseModal(){this._hasChanges()?this.dialog.yesNoConfirm({message:(0,_.i18n)("table_builder.modal.confirm_close"),didConfirm:()=>this.args.closeModal()}):this.args.closeModal()}static #c=(()=>dt7948.n(this.prototype,"interceptCloseModal",[r.action]))();insertTable(){let e=this.spreadsheet.getHeaders().split(",").map(e=>e.trim()),t=this.spreadsheet.getData(),n=this.buildTableMarkdown(e,t);return this.isEditingTable?this.updateTable(n):(this.args.model.toolbarEvent.addText(n),this.args.closeModal())}static #d=(()=>dt7948.n(this.prototype,"insertTable",[r.action]))();_hasChanges(){if(!this.isEditingTable)return this.spreadsheet.getData().flat().some(e=>""!==e);{let e=this.extractTableContent((0,f.tokenRange)(this.args.model.tableTokens,"tr_open","tr_close")),t=this.spreadsheet.getHeaders().split(","),n=this.spreadsheet.getData();return JSON.stringify(t.concat(n.flat()))!==JSON.stringify(e)}}async loadJspreadsheet(){let[e]=await Promise.all([n.e(481).then(n.t.bind(n,98481,23)),n.e(841).then(n.bind(n,75841)),Promise.all([n.e(324),n.e(825)]).then(n.bind(n,36825))]);this.jspreadsheet=e.default,this.loading=!1}buildNewTable(){let e=[{title:(0,_.i18n)("table_builder.default_header.col_1"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_2"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_3"),width:this.defaultColWidth},{title:(0,_.i18n)("table_builder.default_header.col_4"),width:this.defaultColWidth}];return this.buildSpreadsheet([["","",""],["","",""],["","",""],["","",""],["","",""],["","",""]],e)}extractTableContent(e){return e.flat().filter(e=>"inline"===e.type).map(e=>e.content)}extractTableAlignments(e){return e.flat().filter(e=>"td_open"===e.type).map(e=>{for(let t of e.attrs?.flat()??[])switch(t){case"text-align:left":return"left";case"text-align:center":return"center";case"text-align:right":return"right"}return null})}buildPopulatedTable(e){let t;let n=(0,f.tokenRange)(e,"tr_open","tr_close"),i=[];return n.forEach((e,n)=>{0===n?t=this.extractTableContent(e).map(e=>({title:e||" ",width:Math.max(8*e.length,this.defaultColWidth)})):(null==this.alignments&&(this.alignments=this.extractTableAlignments(e)),i.push(this.extractTableContent(e)))}),t.forEach((e,t)=>{e.align=this.alignments?.[t]??"left"}),this.buildSpreadsheet(i,t)}buildSpreadsheet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.args.model?.post_number,s=i?`post-${i}-table-export`:"post-table-export";this.spreadsheet=this.jspreadsheet(this.spreadsheet,{data:e,columns:t,defaultColAlign:"left",wordWrap:!0,csvFileName:s,text:this.localeMapping(),...n})}buildUpdatedPost(e,t,n){let i;let s=t.match((0,f.findTableRegex)());return s.length?t.replace(s[e],n).replace(/\0/g,"�"):t}updateTable(e){let t=this.args.model.tableIndex,n=this.args.model.post.id,i=this.editReason||(0,_.i18n)("table_builder.edit.default_edit_reason"),s=this.args.model.post.raw,r=this.buildUpdatedPost(t,s,e);return this.sendTableUpdate(n,r,i)}sendTableUpdate(e,t,n){return(0,h.ajax)(`/posts/${e}.json`,{type:"PUT",data:{post:{raw:t,edit_reason:n}}}).catch(m.popupAjaxError).finally(()=>{this.args.closeModal()})}buildTableMarkdown(e,t){let n=[];return t.forEach(t=>{let i={};e.forEach((e,n)=>i[`col${n}`]=t[n]),n.push(i)}),(0,f.arrayToTable)(n,e,"col",this.alignments)}localeMapping(){return{noRecordsFound:x("no_records_found"),show:x("show"),entries:x("entries"),insertANewColumnBefore:x("context_menu.col.before"),insertANewColumnAfter:x("context_menu.col.after"),deleteSelectedColumns:x("context_menu.col.delete"),renameThisColumn:x("context_menu.col.rename"),orderAscending:x("context_menu.order.ascending"),orderDescending:x("context_menu.order.descending"),insertANewRowBefore:x("context_menu.row.before"),insertANewRowAfter:x("context_menu.row.after"),deleteSelectedRows:x("context_menu.row.delete"),copy:x("context_menu.copy"),paste:x("context_menu.paste"),saveAs:x("context_menu.save"),about:x("about"),areYouSureToDeleteTheSelectedRows:x("prompts.delete_selected_rows"),areYouSureToDeleteTheSelectedColumns:x("prompts.delete_selected_cols"),thisActionWillDestroyAnyExistingMergedCellsAreYouSure:x("prompts.will_destroy_merged_cells"),thisActionWillClearYourSearchResultsAreYouSure:x("prompts.will_clear_search_results"),thereIsAConflictWithAnotherMergedCell:x("prompts.conflict_with_merged_cells"),invalidMergeProperties:x("invalid_merge_props"),cellAlreadyMerged:x("cells_already_merged"),noCellsSelected:x("no_cells_selected")}}static #p=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"25Wsu9Mm",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"insert-table-modal"]],[["@title","@closeModal"],[[28,[32,1],[[30,0,["modalAttributes","title"]]],null],[30,0,["interceptCloseModal"]]]],[["body","footer"],[[[[1,"\\n "],[8,[32,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,"tabindex","1"],[24,0,"jexcel_container"],[4,[32,3],[[30,0,["createSpreadsheet"]]],null],[12],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],[[[1,"\\n"],[41,[51,[30,0,["loading"]]],[[[1," "],[10,0],[14,0,"primary-actions"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-insert-table"]],[["@label","@icon","@action"],[[30,0,["modalAttributes","insertTable","title"]],[30,0,["modalAttributes","insertTable","icon"]],[30,0,["insertTable"]]]],null],[1,"\\n\\n "],[8,[32,5],null,[["@close"],[[30,0,["interceptCloseModal"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"secondary-actions"],[12],[1,"\\n"],[41,[30,0,["isEditingTable"]],[[[1," "],[10,0],[14,0,"edit-reason"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-edit-reason"]],[["@icon","@title","@action"],["circle-info","table_builder.edit.modal.trigger_reason",[30,0,["showEditReasonField"]]]],null],[1,"\\n"],[41,[30,0,["showEditReason"]],[[[1," "],[8,[32,6],null,[["@value","@placeholderKey"],[[30,0,["editReason"]],"table_builder.edit.modal.reason"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,7],[[24,0,"btn btn-icon no-text"]],[["@icon","@triggers","@arrow"],["question","click",false]],[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[32,1],["table_builder.modal.help.title"],null]],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[10,"kbd"],[12],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.enter_key"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.new_row"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[10,"kbd"],[12],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.tab_key"],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["table_builder.modal.help.new_col"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,[28,[32,1],["table_builder.modal.help.options"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/spreadsheet-editor.js",scope:()=>[c.default,_.i18n,l.default,o.default,u.default,d.default,p.default,y.default],isStrictMode:!0}),this))()}function x(e){return(0,_.i18n)(`table_builder.spreadsheet.${e}`)}},9773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"fp8myiWq",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["tagging.upload"],null],[30,1]]],[["body"],[[[[1,"\\n "],[8,[39,3],null,[["@refresh","@closeModal","@id"],[[28,[37,4],["triggerRefresh"],null],[30,1],"tags-uploader"]],null],[1,"\\n "]],[]]]]]],["@closeModal"],false,["d-modal","i18n",":body","tags-uploader","route-action"]]',moduleName:"discourse/components/modal/tag-upload.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"tag-upload"))},13157:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(76417),r=n(70001),o=n(54729),a=n(90945),l=n.n(a),u=n(28360),c=n(92976),d=n(72491),p=n(48491),h=n(17332),m=n(57322),g=n(64149),f=n(32644),_=n(51969),y=n(82739);class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();status=(()=>new u.TrackedObject({...this.args.model.status}))();timeShortcuts=this.#sQ();_itsatrap=(()=>new(l()))();willDestroy(){super.willDestroy(...arguments),this._itsatrap.destroy()}get showDeleteButton(){return!!this.args.model.status}get prefilledDateTime(){return this.status?.ends_at}get saveDisabled(){return!this.status?.emoji||!this.status?.description}get customTimeShortcutLabels(){return{[f.TIME_SHORTCUT_TYPES.NONE]:"time_shortcut.never"}}get hiddenTimeShortcutOptions(){return[f.TIME_SHORTCUT_TYPES.LAST_CUSTOM]}#sQ(){let e=(0,f.timeShortcuts)(this.currentUser.user_option.timezone);return[e.oneHour(),e.twoHours(),e.tomorrow()]}#sJ(e){"string"==typeof e?this.dialog.alert(e):(0,g.popupAjaxError)(e)}onTimeSelected(e,t){this.status.endsAt=t}static #i=(()=>dt7948.n(this.prototype,"onTimeSelected",[r.action]))();async delete(){try{await this.args.model.deleteAction(),this.args.closeModal()}catch(e){this.#sJ(e)}}static #l=(()=>dt7948.n(this.prototype,"delete",[r.action]))();async saveAndClose(){let e={description:this.status.description,emoji:this.status.emoji,ends_at:this.status.endsAt?.toISOString()};try{await this.args.model.saveAction(e,this.args.model.pauseNotifications),this.args.closeModal()}catch(e){this.#sJ(e)}}static #u=(()=>dt7948.n(this.prototype,"saveAndClose",[r.action]))();static #c=(()=>(0,s.setComponentTemplate)((0,y.createTemplateFactory)({id:"E4QRpmnx",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"user-status"]],[["@title","@closeModal"],[[28,[32,1],["user_status.set_custom_status"],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,2],null,[["@status"],[[30,0,["status"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,2,["hidePauseNotifications"]]],[[[1," "],[10,0],[14,0,"control-group pause-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,3],null,[["@type","@checked"],["checkbox",[30,2,["pauseNotifications"]]]],null],[1,"\\n "],[1,[28,[32,1],["user_status.pause_notifications"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group control-group-remove-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[32,1],["user_status.remove_status"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@timeShortcuts","@hiddenOptions","@customLabels","@prefilledDatetime","@onTimeSelected","@_itsatrap"],[[30,0,["timeShortcuts"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["prefilledDateTime"]],[30,0,["onTimeSelected"]],[30,0,["_itsatrap"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,5],[[24,0,"btn-primary"]],[["@label","@disabled","@action"],["user_status.save",[30,0,["saveDisabled"]],[30,0,["saveAndClose"]]]],null],[1,"\\n\\n "],[8,[32,6],null,[["@close"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["showDeleteButton"]],[[[1," "],[8,[32,5],[[24,0,"delete-status btn-danger"]],[["@icon","@action"],["trash-can",[30,0,["delete"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/user-status.js",scope:()=>[d.default,_.i18n,m.default,s.Input,h.default,c.default,p.default],isStrictMode:!0}),this))()}},80519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearRegisteredTabs:()=>_,default:()=>y,registeredTabs:()=>f});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(54729),l=n(64151),u=n(92976),c=n(12060),d=n(27147),p=n(83357),h=n(76417),m=n(82739);let g=(0,n(41664).A)(n(28564)).cached,f=[];function _(){f.length=0}class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"keyValueStore",[a.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #i=(()=>dt7948.g(this.prototype,"selectedTab",[s.tracked],function(){return this.initialTab}))();#sX=(()=>void dt7948.i(this,"selectedTab"))();get initialTab(){let e=this.keyValueStore.get(`more-topics-preference-${this.context}`);return(e||=this.keyValueStore.get("more-topics-list-preference"))&&this.tabs.find(t=>t.id===e)||this.tabs[0]}get activeTab(){return this.tabs.find(e=>e===this.selectedTab)||this.tabs[0]}get context(){return this.args.topic.get("isPrivateMessage")?"pm":"topic"}get tabs(){let e=f.filter(e=>e.condition({topic:this.args.topic,context:this.context}));return(0,p.applyValueTransformer)("more-topics-tabs",e,{currentContext:this.context,user:this.currentUser,topic:this.args.topic})}static #l=(()=>dt7948.n(this.prototype,"tabs",[g]))();selectTab(e){this.selectedTab=e,this.keyValueStore.set({key:`more-topics-preference-${this.context}`,value:e.id})}static #u=(()=>dt7948.n(this.prototype,"selectTab",[o.action]))();static #c=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"inO1Vrjc",block:'[[[1,"\\n "],[10,0],[14,0,"more-topics__container"],[12],[1,"\\n"],[41,[28,[32,0],[[30,0,["tabs","length"]],1],null],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["tabs"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,1],[[16,0,[52,[28,[32,2],[[30,1,["id"]],[30,0,["activeTab","id"]]],null],"active"]]],[["@action","@translatedLabel","@translatedTitle","@icon"],[[28,[32,3],[[30,0,["selectTab"]],[30,1]],null],[30,1,["name"]],[30,1,["name"]],[30,1,["icon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["activeTab"]],[[[1," "],[10,0],[15,0,[28,[32,4],["more-topics__lists",[52,[28,[32,2],[[30,0,["tabs","length"]],1],null],"single-list"]],null]],[12],[1,"\\n "],[8,[30,0,["activeTab","component"]],null,[["@topic"],[[30,2]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["suggestedTopics","length"]],[[[1," "],[8,[32,5],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n "]],["tab","@topic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/more-topics.js",scope:()=>[l.gt,u.default,l.eq,r.fn,d.default,c.default],isStrictMode:!0}),this))()}},12060:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(54729),r=n(35804),o=n(12223),a=n(87389),l=n(20762),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[s.service]))();#sZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[s.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();groupLink(e){return`${(0,l.iconHTML)("users")} ${e}`}get privateMessageBrowseMoreMessage(){let e=this.args.topic.get("suggested_group_name"),t=e?"group":"user",n=this.pmTopicTrackingState.lookupCount("unread",{inboxFilter:t,groupName:e}),i=this.pmTopicTrackingState.lookupCount("new",{inboxFilter:t,groupName:e});if(n+i>0){let t=n>0&&i>0;return e?u.default.messageFormat("user.messages.read_more_group_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:n,NEW:i,username:this.currentUser.username,groupName:e,groupLink:this.groupLink(e),basePath:(0,a.default)("")}):u.default.messageFormat("user.messages.read_more_personal_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:n,NEW:i,username:this.currentUser.username,basePath:(0,a.default)("")})}return e?(0,u.i18n)("user.messages.read_more_in_group",{groupLink:this.groupLink(e)}):(0,u.i18n)("user.messages.read_more",{basePath:(0,a.default)(""),username:this.currentUser.username})}get topicBrowseMoreMessage(){let e=this.args.topic.get("category");e&&e.id===this.site.uncategorized_category_id&&(e=null);let t=0,n=0;return(this.currentUser&&(t=this.topicTrackingState.countUnread(),n=this.topicTrackingState.countNew()),n+t>0)?u.default.messageFormat("topic.read_more_MF",{HAS_UNREAD_AND_NEW:t>0&&n>0,UNREAD:t,NEW:n,HAS_CATEGORY:!!e,categoryLink:e?(0,o.categoryBadgeHTML)(e):null,basePath:(0,a.default)("")}):e?(0,u.i18n)("topic.read_more_in_category",{categoryLink:(0,o.categoryBadgeHTML)(e),latestLink:(0,a.default)("/latest")}):(0,u.i18n)("topic.read_more",{categoryLink:(0,a.default)("/categories"),latestLink:(0,a.default)("/latest")})}static #u=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"xS5DWdKU",block:'[[[1,"\\n "],[10,"h3"],[14,0,"more-topics__browse-more"],[12],[1,"\\n"],[41,[30,1,["isPrivateMessage"]],[[[1," "],[1,[28,[32,0],[[30,0,["privateMessageBrowseMoreMessage"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],[[30,0,["topicBrowseMoreMessage"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/more-topics/browse-more.js",scope:()=>[r.htmlSafe],isStrictMode:!0}),this))()}},25710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addWidgetCleanCallback:()=>m,default:()=>_,removeWidgetCleanCallback:()=>g,resetWidgetCleanCallbacks:()=>f});var i=n(50827),s=n(76417),r=n(42433),o=n(54836),a=n(94802),l=n(74987),u=n(34312),c=n(95854),d=n(26399);let p=(0,n(82739).createTemplateFactory)({id:"/zwe00Eu",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["_childComponents"]]],null]],null],null,[[[40,[[[1," "],[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"discourse/components/mount-widget.hbs",isStrictMode:!1}),h={};function m(e,t){h[e]=h[e]||[],h[e].push(t)}function g(e,t){let n=h[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}function f(){h={}}class _ extends s.default{dirtyKeys=null;_tree=null;_rootNode=null;_timeout=null;_widgetClass=null;_renderCallback=null;_childEvents=null;_dispatched=null;init(){super.init(...arguments);let e=this.widget;if("post-cooked"===e)throw"Cannot use with `post-cooked`.\nIt's a special-case that needs to be wrapped in another widget.\nFor example:\n createWidget('test-widget', {\n html(attrs) {\n return [\n new PostCooked(attrs, new DecoratorHelper(this), this.currentUser),\n ];\n },\n });";this.register=(0,d.getRegister)(this),this._widgetClass=(0,c.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass?.class&&(this._widgetClass=this._widgetClass.class),this._widgetClass||console.error(`Error: Could not find widget: ${e}`),this._childEvents=[],this._connected=[],this._childComponents=i.default.create({content:[]}),this._dispatched=[],this.dirtyKeys=new l.default(e)}didInsertElement(){super.didInsertElement(...arguments),u.WidgetClickHook.setupDocumentCallback(),this._rootNode=document.createElement("div"),this.element.appendChild(this._rootNode),this._timeout=(0,r.scheduleOnce)("render",this,this.rerenderWidget)}willClearRender(){super.willClearRender(...arguments);let e=h[this.widget];e&&e.forEach(e=>e(this._tree)),this._connected.forEach(e=>e.destroy()),this._connected.length=0,(0,c.traverseCustomWidgets)(this._tree,e=>e.destroy()),this._rootNode=(0,a.patch)(this._rootNode,(0,a.diff)(this._tree,null)),this._tree=null}willDestroyElement(){super.willDestroyElement(...arguments),this._dispatched.forEach(e=>{let[t,n]=e;this.appEvents.off(t,this,n)}),(0,r.cancel)(this._timeout)}afterRender(){}beforePatch(){}afterPatch(){}eventDispatched(e,t,n){t="function"==typeof t?t(n):t;let i=(0,o.camelize)(e.replace(/:/,"-"));this.dirtyKeys.keyDirty(t,{onRefresh:i,refreshArg:n}),this.queueRerender()}dispatch(e,t){this._childEvents.push(e);let n=n=>this.eventDispatched(e,t,n);this._dispatched.push([e,n]),this.appEvents.on(e,this,n)}queueRerender(e){e&&!this._renderCallback&&(this._renderCallback=e),(0,r.scheduleOnce)("render",this,this.rerenderWidget)}buildArgs(){}rerenderWidget(){if((0,r.cancel)(this._timeout),this._rootNode){if(!this._widgetClass)return;let e=Date.now(),t=this.args||this.buildArgs(),n={model:this.model,dirtyKeys:this.dirtyKeys},i=new this._widgetClass(t,this.register,n);i._rerenderable=this,i._emberView=this;let s=(0,a.diff)(this._tree||this._rootNode,i);(0,c.traverseCustomWidgets)(this._tree,e=>e.willRerenderWidget()),this.beforePatch(),this._rootNode=(0,a.patch)(this._rootNode,s),this.afterPatch(),this._tree=i,(0,c.traverseCustomWidgets)(i,e=>e.didRenderWidget()),this._renderCallback&&(this._renderCallback(),this._renderCallback=null),this.afterRender(),this.dirtyKeys.renderedKey("*"),this.profileWidget&&console.log(Date.now()-e)}}mountChildComponent(e){this._childComponents.pushObject(e)}unmountChildComponent(e){this._childComponents.removeObject(e)}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this.queueRerender()}}(0,s.setComponentTemplate)(p,_)},27164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(69836),r=n(54729),o=n(35804),a=n(27147),l=n(87389),u=n(20762),c=n(51969),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();get contents(){let e=this.args.i18nLabel||(0,c.i18n)(this.args.label);return this.args.icon?(0,o.htmlSafe)(`${(0,u.iconHTML)(this.args.icon)} ${e}`):e}get active(){return this.args.route&&this.router.currentRoute?"adminPlugins.show.settings"===this.router.currentRoute.name?this.router.currentRoute.parent.params.plugin_id===this.args.routeParam:this.args.routeParam&&this.router.currentRoute&&this.router.currentRoute.params.filter?this.router.currentRoute.params.filter===this.args.routeParam:this.router.isActive(this.args.route):void 0}static #n=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"Ady/Tm2D",block:'[[[1,"\\n "],[11,"li"],[16,0,[28,[32,0],[[52,[30,0,["active"]],"active"],[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[8,[32,1],null,[["@route","@model","@current-when"],[[30,4],[30,3],[30,0,["active"]]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[41,[30,4],[[[1," "],[8,[32,1],null,[["@route"],[[30,4]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[28,[32,2],[[30,5]],null]],[14,"data-auto-route","true"],[12],[1,[30,0,["contents"]]],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "]],["@class","&attrs","@routeParam","@route","@path"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/nav-item.js",scope:()=>[a.default,s.LinkTo,l.default],isStrictMode:!0}),this))()}},66405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(85052),u=n(55576),c=n(59874),d=n(63252),p=n(83357),h=n(21237),m=n(99676),g=n(76417),f=n(82739);class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();get filterType(){return(0,d.filterTypeForMode)(this.args.filterMode)}get selectedNavItem(){let{navItems:e}=this.args,t=e.find(e=>!0===e.active);return(t=t||e.find(e=>e.filterType===this.filterType))||e[0]}get showDropdown(){return(0,p.applyValueTransformer)("navigation-bar-dropdown-mode",this.site.mobileView)}get navigationBarIcon(){return(0,p.applyValueTransformer)("navigation-bar-dropdown-icon","discourse-chevron-expand")}onRegisterApi(e){this.dMenu=e}static #n=(()=>dt7948.n(this.prototype,"onRegisterApi",[o.action]))();static #i=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"oatd1DMP",block:'[[[1,"\\n "],[10,"ul"],[14,1,"navigation-bar"],[14,0,"nav nav-pills"],[12],[1,"\\n"],[41,[30,0,["showDropdown"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,0],null,[["@modalForMobile","@autofocus","@identifier","@onRegisterApi"],[true,true,"list-control-toggle-link",[30,0,["onRegisterApi"]]]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"list-control-toggle-link__text"],[12],[1,[30,0,["selectedNavItem","displayName"]]],[13],[1,"\\n "],[1,[28,[32,1],[[30,0,["navigationBarIcon"]]],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[4,[32,3],["click",[30,0,["dMenu","close"]]],null]],null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,4],[[16,0,[28,[32,5],["nav-item_",[30,3,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,3],[30,4],[30,5]]],null],[1,"\\n\\n"]],[3]],null],[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","span",[28,[32,7],null,[["category","tag","filterMode"],[[30,5],[30,6],[30,4]]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["inline-extra-nav-item","span",[28,[32,7],null,[["category","filterMode"],[[30,5],[30,4]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,4],[[16,0,[28,[32,5],["nav-item_",[30,7,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,7],[30,4],[30,5]]],null],[1,"\\n"]],[7]],null],[1," "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[32,7],null,[["category","tag","filterMode"],[[30,5],[30,6],[30,4]]]]]],null],[1,"\\n\\n"]],[]]],[1," "],[13],[1,"\\n "]],["dropdown","@navItems","navItem","@filterMode","@category","@tag","navItem"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/navigation-bar.js",scope:()=>[m.default,h.default,l.default,r.on,u.default,s.concat,c.default,s.hash],isStrictMode:!0}),this))()}},55576:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(28564),s=n(76417),r=n(53067),o=n(93223),a=n(63252),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"7P26DY2M",block:'[[[10,3],[15,6,[30,0,["hrefLink"]]],[15,0,[30,0,["activeClass"]]],[15,"aria-current",[52,[30,0,["activeClass"]],"page"]],[12],[1,"\\n"],[41,[30,0,["hasIcon"]],[[[1," "],[10,1],[15,0,[30,0,["content","name"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,0,["content","displayName"]]],[1,"\\n"],[13]],[],false,["a","if","span"]]',moduleName:"discourse/components/navigation-item.hbs",isStrictMode:!1}),c=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"filterMode",[i.tracked]))();#eq=(()=>void dt7948.i(this,"filterMode"))();hidden=!1;activeClass="";hrefLink=null;get filterType(){return(0,a.filterTypeForMode)(this.filterMode)}static #n=(()=>dt7948.n(this.prototype,"filterType",[r.dependentKeyCompat]))();active(e,t,n){return void 0!==n?n:e===t}static #i=(()=>dt7948.n(this.prototype,"active",[(0,l.default)("content.filterType","filterType","content.active")]))();isHidden(e,t){return!this.active&&this.currentUser&&!this.currentUser.new_new_view_enabled&&this.currentUser.trust_level>0&&("new"===t||"unread"===t)&&e<1}static #l=(()=>dt7948.n(this.prototype,"isHidden",[(0,l.default)("content.count","content.name")]))();didReceiveAttrs(){super.didReceiveAttrs(...arguments);let e=this.content,[t,n]=e.get("href")?.split("?")||[],i=new URLSearchParams(n),s=!1;if(e.get("includeCategoryId")){let e=this.get("content.category.id");e&&i.set("category_id",e)}e.currentRouteQueryParams&&(e.currentRouteQueryParams.filter&&(s=!0),e.currentRouteQueryParams.f&&i.set("f",e.currentRouteQueryParams.f)),"categories_and_latest_topics_created_date"===this.siteSettings.desktop_category_page_style&&null==i.get("order")&&i.set("order","created");let r=i.toString();(s||r&&t)&&(t=(t||"")+`?${r}`),this.set("hrefLink",t),this.set("activeClass",this.active?"active":"")}},[(0,o.attributeBindings)("content.title:title"),(0,o.classNameBindings)("active","content.hasIcon:has-icon","content.classNames","isHidden:hidden","content.name"),(0,o.tagName)("li")]),d=(0,s.setComponentTemplate)(u,c)},13571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(64602),l=n(58830),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();click(e){let t=e.target;t.closest("button.topics-replies-toggle.--all")?this.args.changeNewListSubset(null):t.closest("button.topics-replies-toggle.--topics")?this.args.changeNewListSubset("topics"):t.closest("button.topics-replies-toggle.--replies")&&this.args.changeNewListSubset("replies")}static #n=(()=>dt7948.n(this.prototype,"click",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"N/mWPCvd",block:'[[[1,"\\n"],[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[10,0],[14,0,"topic-replies-toggle-wrapper"],[12],[1,"\\n "],[8,[32,0],null,[["@current","@newRepliesCount","@newTopicsCount","@noStaticLabel","@changeNewListSubset"],[[30,1],[30,2],[30,3],true,[30,4]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,0],[24,0,"topic-replies-toggle-wrapper"],[4,[32,1],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["list/new-list-header-controls"],[["current","newRepliesCount","newTopicsCount","noStaticLabel"],[[30,1],[30,2],[30,3],true]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/new-list-header-controls-wrapper.js",scope:()=>[a.default,s.on,l.default],isStrictMode:!0}),this))()}},99898:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(92976),l=n(38449),u=n(51969),c=n(76417),d=n(82739);let p="dismissed-prompt";class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"desktopNotifications",[o.service]))();#eY=(()=>void dt7948.i(this,"desktopNotifications"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"bannerDismissed",[s.tracked]))();#s1=(()=>void dt7948.i(this,"bannerDismissed"))();constructor(){super(...arguments),this.bannerDismissed=l.keyValueStore.getItem(p)}setBannerDismissed(e){l.keyValueStore.setItem(p,e),this.bannerDismissed=l.keyValueStore.getItem(p)}get showNotificationPromptBanner(){return this.siteSettings.push_notifications_prompt&&!this.desktopNotifications.isNotSupported&&this.currentUser&&this.capabilities.isPwa&&"denied"!==Notification.permission&&"granted"!==Notification.permission&&!this.desktopNotifications.isEnabled&&!this.bannerDismissed}turnon(){this.desktopNotifications.enable(),this.setBannerDismissed(!0)}static #c=(()=>dt7948.n(this.prototype,"turnon",[r.action]))();dismiss(){this.setBannerDismissed(!1)}static #d=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #p=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"N36PKC7Q",block:'[[[1,"\\n"],[41,[30,0,["showNotificationPromptBanner"]],[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"consent_banner alert alert-info"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["user.desktop_notifications.consent_prompt"],null]],[1,"\\n "],[8,[32,1],null,[["@display","@action","@label"],["link",[30,0,["turnon"]],"user.desktop_notifications.enable"]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["xmark",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notification-consent-banner.js",scope:()=>[u.i18n,a.default],isStrictMode:!0}),this))()}},49409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(92976),l=n(85052),u=n(59874),c=n(27147),d=n(18523),p=n(21237),h=n(51969),m=n(99676),g=n(76417),f=n(82739);function _(e,t,n,i){let s=e+"."+t;return n&&(s+=n),(0,h.i18n)(s+"."+i)}class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();get showFullTitle(){return this.args.showFullTitle??!0}get showCaret(){return this.site.desktopView&&(this.args.showCaret??!0)}get title(){return _(this.args.prefix,this.args.selectedLevel.key,this.args.suffix,"title")}static #n=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"YCY/tntG",block:'[[[1,"\\n "],[1,[28,[32,0],[[30,1,["icon"]]],null]],[1,"\\n\\n"],[41,[30,0,["showFullTitle"]],[[[1," "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCaret"]],[[[1," "],[1,[28,[32,0],["angle-down"],[["class"],["notifications-tracking-btn__caret"]]]],[1,"\\n"]],[]],null],[1," "]],["@selectedLevel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[p.default],isStrictMode:!0}),this))()}class b extends i.default{registerDmenuApi(e){this.dmenuApi=e}static #e=(()=>dt7948.n(this.prototype,"registerDmenuApi",[r.action]))();async setNotificationLevel(e){await this.dmenuApi.close(),this.args.onChange?.(e)}static #n=(()=>dt7948.n(this.prototype,"setNotificationLevel",[r.action]))();description(e){return _(this.args.prefix,e.key,this.args.suffix,"description")}static #i=(()=>dt7948.n(this.prototype,"description",[r.action]))();label(e){return _(this.args.prefix,e.key,this.args.suffix,"title")}static #l=(()=>dt7948.n(this.prototype,"label",[r.action]))();isSelectedClass(e){return this.args.levelId===e.id?"-selected":""}static #u=(()=>dt7948.n(this.prototype,"isSelectedClass",[r.action]))();get selectedLevel(){return(0,d.buttonDetails)(this.args.levelId)}get levels(){return this.args.levels??d.allLevels}static #c=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"dS4uHGWS",block:'[[[1,"\\n "],[8,[32,0],[[16,"data-level-id",[30,0,["selectedLevel","id"]]],[16,"data-level-name",[30,0,["selectedLevel","key"]]],[17,1]],[["@identifier","@modalForMobile","@triggerClass","@onRegisterApi","@title","@autofocus"],["notifications-tracking",true,[28,[32,1],["notifications-tracking-trigger-btn",[30,2]],null],[30,0,["registerDmenuApi"]],[30,3],false]],[["trigger","content"],[[[[1,"\\n "],[8,[32,2],null,[["@showFullTitle","@showCaret","@selectedLevel","@suffix","@prefix"],[[30,4],[30,5],[30,0,["selectedLevel"]],[30,6],[30,7]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["levels"]]],null]],null],null,[[[1," "],[8,[30,8,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,1],["notifications-tracking-btn",[28,[30,0,["isSelectedClass"]],[[30,9]],null]],null]],[16,"data-level-id",[30,9,["id"]]],[16,"data-level-name",[30,9,["key"]]]],[["@action"],[[28,[32,5],[[30,0,["setNotificationLevel"]],[30,9,["id"]]],null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"notifications-tracking-btn__icons"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["notifications-tracking-icons",[28,[32,7],null,[["selectedLevelId","level","topic"],[[30,10],[30,9],[30,11]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,8],[[30,9,["icon"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"notifications-tracking-btn__texts"],[12],[1,"\\n "],[10,1],[14,0,"notifications-tracking-btn__label"],[12],[1,"\\n "],[1,[28,[30,0,["label"]],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"notifications-tracking-btn__description"],[12],[1,"\\n "],[1,[28,[30,0,["description"]],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[9]],null],[1," "]],[8]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@triggerClass","@title","@showFullTitle","@showCaret","@suffix","@prefix","dropdown","level","@levelId","@topic"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[m.default,c.default,y,l.default,a.default,s.fn,u.default,s.hash,p.default],isStrictMode:!0}),this))()}},4087:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(70001),s=n(93223),r=n(46213),o=n(20802),a=n(54216),l=n(62797),u=n(51969);let c=dt7948.c(class extends r.default{init(){super.init(...arguments),(0,a.default)(`NumberField component is deprecated. Use native elements instead. e.g. `,{id:"discourse.number-field",since:"3.2.0.beta5",dropFrom:"3.3.0"})}keyDown(e){(0,o.allowOnlyNumericInput)(e,this._minNumber&&this._minNumber<0)}get _minNumber(){if(this.get("min"))return parseInt(this.get("min"),10)}get _maxNumber(){if(this.get("max"))return parseInt(this.get("max"),10)}get value(){return null===this.number?"":parseInt(this.number,10)}static #e=(()=>dt7948.n(this.prototype,"value",[(0,i.computed)("number")]))();set value(e){let t=parseInt(e,10);isNaN(t)?(this.set("invalid",!0),this.set("number",null)):(this.set("invalid",!1),this.set("number",t))}placeholder(e){return e?(0,u.i18n)(e):""}static #n=(()=>dt7948.n(this.prototype,"placeholder",[(0,l.default)("placeholderKey")]))()},[(0,s.classNameBindings)("invalid")])},75400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"networkConnectivity",[r.service]))();#s0=(()=>void dt7948.i(this,"networkConnectivity"))();get showing(){return!this.networkConnectivity.connected}refresh(){window.location.reload(!0)}static #n=(()=>dt7948.n(this.prototype,"refresh",[s.action]))();static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"rmsKiOI3",block:'[[[1,"\\n"],[41,[30,0,["showing"]],[[[1," "],[10,0],[14,0,"offline-indicator"],[12],[1,"\\n "],[10,1],[12],[1,[28,[32,0],["offline_indicator.no_internet"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@label","@display","@action"],["offline_indicator.refresh_page","link",[30,0,["refresh"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/offline-indicator.js",scope:()=>[a.i18n,o.default],isStrictMode:!0}),this))()}},18111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(42433),l=n(54729),u=n(35804),c=n(64151),d=n(27147),p=n(62797),h=n(76417),m=n(82739);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"loadingSlider",[l.service]))();#t4=(()=>void dt7948.i(this,"loadingSlider"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"state",[s.tracked],function(){return"ready"}))();#sl=(()=>void dt7948.i(this,"state"))();constructor(){super(...arguments),this.loadingSlider.on("stateChanged",this.stateChanged)}willDestroy(){super.willDestroy(...arguments),this.loadingSlider.off("stateChange",this,"stateChange"),this._deferredStateChange&&(cancelAnimationFrame(this._deferredStateChange),this._deferredStateChange=null)}stateChanged(e){this._deferredStateChange&&(cancelAnimationFrame(this._deferredStateChange),this._deferredStateChange=null),e&&this.ready?this.state="loading":e?(this.state="ready",this._deferredStateChange=requestAnimationFrame(()=>{(0,a.run)(()=>this.state="loading")})):this.state="done"}static #l=(()=>dt7948.n(this.prototype,"stateChanged",[p.bind]))();get containerStyle(){let e=this.loadingSlider.averageLoadingDuration.toFixed(2);return(0,u.htmlSafe)(`--loading-duration: ${e}s`)}onContainerTransitionEnd(e){e.target===e.currentTarget&&"opacity"===e.propertyName&&(this.state="ready")}static #u=(()=>dt7948.n(this.prototype,"onContainerTransitionEnd",[o.action]))();onBarTransitionEnd(e){e.target===e.currentTarget&&"transform"===e.propertyName&&"loading"===this.state&&(this.state="still-loading")}static #c=(()=>dt7948.n(this.prototype,"onBarTransitionEnd",[o.action]))();static #d=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"FycjnmDY",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,0,["loadingSlider","mode"]],"slider"],null],[[[1," "],[11,0],[16,5,[30,0,["containerStyle"]]],[16,0,[28,[32,1],["loading-indicator-container",[30,0,["state"]],[52,[30,0,["capabilities","isAppWebview"]],"discourse-hub-webview"]],null]],[4,[32,2],["transitionend",[30,0,["onContainerTransitionEnd"]]],null],[12],[1,"\\n "],[11,0],[24,0,"loading-indicator"],[4,[32,2],["transitionend",[30,0,["onBarTransitionEnd"]]],null],[12],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/page-loading-slider.js",scope:()=>[c.eq,d.default,r.on],isStrictMode:!0}),this))()}},29593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(17870);let s=(0,n(82739).createTemplateFactory)({id:"jhFfrTcv",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-category-mobile",[28,[37,2],null,[["category","listType","isMuted"],[[30,0,["category"]],[30,0,["listType"]],[30,0,["isMuted"]]]]]]],null],[1,"\\n "],[10,0],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,5,[28,[37,5],[[30,0,["category","color"]]],null]],[15,0,[29,["category-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,"table"],[14,0,"topic-list"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"main-link"],[12],[1,"\\n "],[8,[39,10],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,"tr"],[14,0,"category-description"],[12],[1,"\\n "],[10,"td"],[14,"colspan","3"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","description_excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[1," "],[8,[39,15],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null]],[]],null]],[]],null],[41,[30,0,["category","isGrandParent"]],[[[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,16],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[30,0,["category","subcategories"]],[[[1," "],[10,"tr"],[14,0,"subcategories-list"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,17],null,[["@category","@listType"],[[30,3],[30,0,["listType"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"footer"],[14,0,"clearfix category-topics-count"],[12],[1,"\\n "],[10,0],[14,0,"category-stat"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","statTotal"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[51,[30,0,["category","pickAll"]]],[[[1," "],[10,0],[14,0,"category-stat"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["category","stat"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1,"\\n "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n ",[28,[30,0,["applyValueTransformer"]],["parent-category-row-class",[28,[37,20],null,null],[28,[37,2],null,[["category"],[[30,0,["category"]]]]]],null],"\\n ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-category-section",[28,[37,2],null,[["category","listType"],[[30,0,["category"]],[30,0,["listType"]]]]]]],null],[1,"\\n\\n "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,21],[[30,0,["category","color"]]],null]],[12],[1,"\\n "],[8,[39,10],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["below-category-title-link","div",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,0],[14,0,"category-description"],[12],[1,"\\n "],[1,[28,[35,22],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","isGrandParent"]],[[[1," "],[10,"table"],[14,0,"category-list subcategories-with-subcategories"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,16],null,[["@category","@listType"],[[30,4],[30,0,["listType"]]]],null],[1,"\\n"]],[4]],null],[41,[28,[37,23],[[30,0,["category","unloadedSubcategoryCount"]],0],null],[[[1," "],[1,[28,[35,24],["category_row.subcategory_count"],[["count"],[[30,0,["category","unloadedSubcategoryCount"]]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,17],null,[["@category","@listType"],[[30,5],[30,0,["listType"]]]],null],[1,"\\n"]],[5]],null],[41,[28,[37,23],[[30,0,["category","unloadedSubcategoryCount"]],0],null],[[[1," "],[10,0],[14,0,"subcategories__more-subcategories"],[12],[1,"\\n "],[8,[39,25],null,[["@route","@model"],["discovery.subcategories",[30,0,["slugPath"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,24],["category_row.subcategory_count"],[["count"],[[30,0,["category","unloadedSubcategoryCount"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-before-topics-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n "],[10,"td"],[14,0,"topics"],[12],[1,"\\n "],[10,0],[15,"title",[30,0,["category","statTitle"]]],[12],[1,[28,[35,12],[[30,0,["category","stat"]]],null]],[13],[1,"\\n "],[8,[39,26],[[24,0,"unread-new"]],[["@category","@tagName","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],"div",[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-after-topics-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[1," "],[10,"td"],[14,0,"latest"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[41,[30,0,["currentUser","canUseGlimmerTopicList"]],[[[1," "],[8,[39,27],null,[["@topic"],[[30,6]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,28],null,[["@topic"],[[30,6]]],null],[1,"\\n"]],[]]]],[6]],null],[1," "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-after-latest-section",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null]],["t","subcategory","subcategory","subcategory","subcategory","t"],false,["unless","plugin-outlet","hash","if","div","border-color","table","tbody","tr","th","category-title-link","td","html-safe","each","-track-array","mobile-category-topic","sub-category-row","sub-category-item","footer","a","array","category-color-variable","dir-span","gt","i18n","link-to","category-unread","topic-list/featured-topic","featured-topic"]]',moduleName:"discourse/components/parent-category-row.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},13512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"8Pqh+8ta",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-social passkey-login-button"]],[["@action","@icon","@label"],[[30,1],"user","login.passkey.name"]],null],[1,"\\n"]],["@passkeyLogin"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/passkey-login-button.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"passkey-login-button:PasskeyLoginButton"))},60615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(46213);class s extends i.default{canToggle=!1;keyPress(e){e.which>=65&&e.which<=90&&!e.shiftKey||e.which>=97&&e.which<=122&&e.shiftKey?(this.set("canToggle",!0),this.set("capsLockOn",!0)):(e.which>=65&&e.which<=90&&e.shiftKey||e.which>=97&&e.which<=122&&!e.shiftKey)&&(this.set("canToggle",!0),this.set("capsLockOn",!1))}keyUp(e){20===e.which&&this.canToggle&&this.toggleProperty("capsLockOn")}focusOut(){this.set("capsLockOn",!1)}focusIn(){this.set("canToggle",!1)}}},45560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(15058),r=n(6610),o=n(40224),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"QxNva+5p",block:'[[[8,[39,0],null,[["@item"],[[30,1]]],null]],["@post"],false,["user-stream-item"]]',moduleName:"discourse/components/pending-post.hbs",isStrictMode:!1});class u extends i.default{didRender(){super.didRender(...arguments),this._loadOneboxes(),this._resolveUrls()}_loadOneboxes(){(0,o.loadOneboxes)(this.element,r.ajax,this.post.topic_id,this.post.category_id,this.siteSettings.max_oneboxes_per_post,!0)}static #e=(()=>dt7948.n(this.prototype,"_loadOneboxes",[a.afterRender]))();_resolveUrls(){(0,s.resolveAllShortUrls)(r.ajax,this.siteSettings,this.element,this.opts)}static #n=(()=>dt7948.n(this.prototype,"_resolveUrls",[a.afterRender]))()}(0,i.setComponentTemplate)(l,u)},68322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(54729),o=n(97355),a=n(93223),l=n(67816),u=n(62797),c=n(51969);let d=(0,n(82739).createTemplateFactory)({id:"cliF26hE",block:'[[[41,[30,0,["showButton"]],[[[1," "],[8,[39,1],null,[["@action","@label","@icon"],[[28,[37,2],[[30,0],"openSystemFilePicker"],null],[30,0,["label"]],[30,0,["icon"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["acceptsAllFormats"]],[[[1," "],[11,"input"],[16,1,[30,0,["fileInputId"]]],[16,0,[30,0,["fileInputClass"]]],[16,"multiple",[30,0,["allowMultiple"]]],[16,"disabled",[30,0,["fileInputDisabled"]]],[24,4,"file"],[4,[38,4],[[28,[37,5],[[30,1],[28,[37,6],null,null]],null]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[11,"input"],[16,1,[30,0,["fileInputId"]]],[16,0,[30,0,["fileInputClass"]]],[16,"accept",[30,0,["acceptedFormats"]]],[16,"multiple",[30,0,["allowMultiple"]]],[16,"disabled",[30,0,["fileInputDisabled"]]],[24,4,"file"],[4,[38,4],[[28,[37,5],[[30,1],[28,[37,6],null,null]],null]],null],[12],[13],[1,"\\n"]],[]]]],["@registerFileInput"],false,["if","d-button","action","input","did-insert","or","noop"]]',moduleName:"discourse/components/pick-files-button.hbs",isStrictMode:!1}),p=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();fileInputId=null;fileInputClass=null;fileInputDisabled=!1;acceptedFormatsOverride=null;allowMultiple=!1;showButton=!1;didInsertElement(){if(super.didInsertElement(...arguments),this.onFilesPicked){let e=this.element.querySelector("input");this.set("fileInput",e),e.addEventListener("change",this.onChange,!1)}}willDestroyElement(){super.willDestroyElement(...arguments),this.onFilesPicked&&this.fileInput.removeEventListener("change",this.onChange)}onChange(){let e=this.fileInput.files;this._filesPicked(e)}static #n=(()=>dt7948.n(this.prototype,"onChange",[u.bind]))();acceptsAllFormats(){return this.capabilities.isIOS||(0,l.authorizesAllExtensions)(this.currentUser.staff,this.siteSettings)}static #i=(()=>dt7948.n(this.prototype,"acceptsAllFormats",[(0,u.default)()]))();acceptedFormats(){return(0,o.isBlank)(this.acceptedFormatsOverride)?(0,l.authorizedExtensions)(this.currentUser.staff,this.siteSettings).map(e=>`.${e}`).join():this.acceptedFormatsOverride}static #l=(()=>dt7948.n(this.prototype,"acceptedFormats",[(0,u.default)()]))();openSystemFilePicker(){this.fileInput.click()}static #u=(()=>dt7948.n(this.prototype,"openSystemFilePicker",[s.action]))();_filesPicked(e){if(e&&e.length){if(!this._haveAcceptedTypes(e)){let e=(0,c.i18n)("pick_files_button.unsupported_file_picked",{types:this.acceptedFileTypesString});this.dialog.alert(e);return}"function"==typeof this.onFilesPicked&&this.onFilesPicked(e)}}_haveAcceptedTypes(e){for(let t of e)if(!this._hasAcceptedExtensionOrType(t))return!1;return!0}_hasAcceptedExtensionOrType(e){let t=this._fileExtension(e.name);return this.acceptedFormats.includes(`.${t}`)||this.acceptedFormats.includes(e.type)}_fileExtension(e){return e.split(".").pop()}},[(0,a.classNames)("pick-files-button")]),h=(0,i.setComponentTemplate)(d,p)},35766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginOutletDecorator:()=>l,default:()=>c,resetDecorators:()=>u});var i=n(76417),s=n(70001),r=n(50628),o=n(62797);let a={};function l(e,t){a[e]=a[e]||[],a[e].push(t)}function u(){a={}}class c extends i.default{init(){super.init(...arguments),this.args&&Object.keys(this.args).forEach(e=>{(0,s.defineProperty)(this,e,(0,s.computed)("args",function(){return this.args[e]}))});let e={outletName:this.connector?.outletName,connectorName:this.connector?.connectorName,classModuleName:this.connector?.classModuleName,templateModule:this.connector?.templateModule,layoutName:this.layoutName};this.deprecatedArgs&&Object.keys(this.deprecatedArgs).forEach(t=>{(0,s.defineProperty)(this,t,(0,s.computed)("deprecatedArgs",function(){return(0,r.deprecatedArgumentValue)(this.deprecatedArgs[t],{...e,argumentName:t})}))});let t=this.connector.connectorClass;if(this.set("actions",t?.actions),this.actions)for(let[e,t]of Object.entries(this.actions))this.set(e,t.bind(this));let n=(0,r.buildArgsWithDeprecations)(this.args,this.deprecatedArgs,e);t?.setupComponent?.call(this,n,this)}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this._decoratePluginOutlets()}_decoratePluginOutlets(){(a[this.connector.outletName]||[]).forEach(e=>e(this.element,this.args))}static #e=(()=>dt7948.n(this.prototype,"_decoratePluginOutlets",[o.afterRender]))();willDestroyElement(){super.willDestroyElement(...arguments);let e=this.connector.connectorClass;e?.teardownComponent?.call(this,this)}send(e){let t=this.connector.connectorClass,n=t?.actions?.[e];for(var i=arguments.length,s=Array(i>1?i-1:0),r=1;r{"use strict";n.r(t),n.d(t,{default:()=>m}),n(28564);var i=n(76417),s=n(70001),r=n(71597),o=n(54729),a=n(87338),l=n(50628),u=n(54216),c=n(11508),d=n(62797);let p=(0,n(82739).createTemplateFactory)({id:"bRqMsmPK",block:'[[[41,[30,1],[[[1," "],[8,[30,0,["wrapperComponent"]],null,[["@tagName"],[[30,1]]],[["default"],[[[[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,null]],null]],null],null,[[[41,[30,2,["componentClass"]],[[[8,[30,2,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null]],[]],[[[41,[30,3],[[[8,[30,2,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null]],[]],[[[8,[39,3],[[16,0,[30,2,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,2],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,2,["template"]]]],null]],[]]]],[]]]],[2]],null]],[]]]]]],[]],[[[41,[28,[30,0,["connectorsExist"]],null,[["hasBlock"],[[48,[30,8]]]]],[[[41,[48,[30,8]],[[[8,[39,6],null,[["@name","@outletArgs"],[[28,[37,7],[[30,6],"__before"],null],[30,0,["outletArgsWithDeprecations"]]]],null]],[]],null],[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,[["hasBlock"],[[48,[30,8]]]]]],null]],null],null,[[[41,[30,7,["componentClass"]],[[[8,[30,7,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]],[[[41,[30,3],[[[8,[30,7,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]],[[[8,[39,3],[[16,0,[30,7,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,7],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,7,["template"]]]],[["default"],[[[[18,8,null]],[]]]]]],[]]]],[]]]],[7]],[[[18,8,null]],[]]],[41,[48,[30,8]],[[[8,[39,6],null,[["@name","@outletArgs"],[[28,[37,7],[[30,6],"__after"],null],[30,0,["outletArgsWithDeprecations"]]]],null]],[]],null]],[]],[[[18,8,null]],[]]]],[]]]],["@tagName","c","@defaultGlimmer","@deprecatedArgs","@connectorTagName","@name","c","&default"],false,["if","each","-track-array","plugin-connector","or","has-block","plugin-outlet","concat","yield"]]',moduleName:"discourse/components/plugin-outlet.hbs",isStrictMode:!1}),h=(0,n(41664).A)(n(28564)).cached;class m extends a.default{static #e=(()=>dt7948.g(this.prototype,"clientErrorHandler",[o.service]))();#s3=(()=>void dt7948.i(this,"clientErrorHandler"))();context={...(0,c.helperContext)(),get parentView(){return this.parentView},get(){return(0,u.default)("Plugin outlet context is no longer an EmberObject - using `get()` is deprecated.",{id:"discourse.plugin-outlet-context-get"}),(0,s.get)(this,...arguments)}};#s2;constructor(){let e=super(...arguments);return this.args.tagName&&(0,u.default)(`The \`tagName\` argument to PluginOutlet is deprecated. If a wrapper element is required, define it manually around the outlet call. Using tagName will prevent wrapper PluginOutlets from functioning correctly. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-tag-name"}),this.args.args&&(0,u.default)(`PluginOutlet arguments should now be passed using \`@outletArgs=\` instead of \`@args=\` (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-args"}),e}getConnectors(){let{hasBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.renderedConnectorsFor)(this.args.name,this.outletArgsWithDeprecations,this.context,(0,r.getOwner)(this));if(t.length>1&&e){let e=`Multiple connectors were registered for the ${this.args.name} outlet. Using the first.`;return this.clientErrorHandler.displayErrorNotice(e),console.error(e,t.map(e=>e.humanReadableName)),[t[0]]}return t}static #n=(()=>dt7948.n(this.prototype,"getConnectors",[d.bind]))();connectorsExist(){let{hasBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.connectorsExist)(this.args.name)||e&&((0,l.connectorsExist)(this.args.name+"__before")||(0,l.connectorsExist)(this.args.name+"__after"))}static #i=(()=>dt7948.n(this.prototype,"connectorsExist",[d.bind]))();get outletArgs(){return this.args.outletArgs||this.args.args||{}}static #l=(()=>dt7948.n(this.prototype,"outletArgs",[h]))();get outletArgsWithDeprecations(){return this.args.deprecatedArgs?(0,l.buildArgsWithDeprecations)(this.outletArgs,this.args.deprecatedArgs||{},{outletName:this.args.name}):this.outletArgs}static #u=(()=>dt7948.n(this.prototype,"outletArgsWithDeprecations",[h]))();get parentView(){return(0,u.default)(`parentView should not be used within plugin outlets. Use the available outlet arguments, or inject a service which can provide the context you need. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-parent-view"}),this.#s2}set parentView(e){this.#s2=e}get _parentView(){return this.parentView}get wrapperComponent(){return g}}class g extends i.default{#s2;get parentView(){if(this._state)return this.#s2.parentView}set parentView(e){this.#s2=e}get _parentView(){return this.parentView}}(0,i.setComponentTemplate)(p,m)},73253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(5938),r=n(54729),o=n(35804),a=n(93223),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"HJxlgDXF",block:'[[[1,[30,0,["tipReason"]]],[1," "],[1,[28,[35,0],["circle-xmark"],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/popup-input-tip.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#K=(()=>void dt7948.i(this,"composer"))();tipReason=null;tabindex="0";static #n=(()=>dt7948.g(this.prototype,"lastShownAt",[(0,s.or)("shownAt","validation.lastShownAt")]))();#s8=(()=>void dt7948.i(this,"lastShownAt"))();static #i=(()=>dt7948.g(this.prototype,"bad",[(0,s.reads)("validation.failed")]))();#s4=(()=>void dt7948.i(this,"bad"))();static #l=(()=>dt7948.g(this.prototype,"good",[(0,s.not)("bad")]))();#s7=(()=>void dt7948.i(this,"good"))();role(e){if(e)return"alert"}static #u=(()=>dt7948.n(this.prototype,"role",[(0,l.default)("bad")]))();ariaLabel(e){return e?.replace(/(<([^>]+)>)/gi,"")}static #c=(()=>dt7948.n(this.prototype,"ariaLabel",[(0,l.default)("validation.reason")]))();dismiss(){this.set("shownAt",null),this.composer.clearLastValidatedAt(),this.element.previousElementSibling?.focus()}click(){this.dismiss()}keyDown(e){"Enter"===e.key&&this.dismiss()}didReceiveAttrs(){super.didReceiveAttrs(...arguments);let e=this.get("validation.reason");e?this.set("tipReason",(0,o.htmlSafe)(`${e}`)):this.set("tipReason",null)}},[(0,a.attributeBindings)("role","ariaLabel","tabindex"),(0,a.classNameBindings)(":popup-tip","good","bad","lastShownAt::hide"),(0,a.tagName)("a")]),d=(0,i.setComponentTemplate)(u,c)},67731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"xs5fClE4",block:'[[[10,"h3"],[12],[1,[28,[35,1],[[30,0,["title"]]],null]],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["h3","i18n","ul","yield"]]',moduleName:"discourse/components/popup-menu.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},92084:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T,fixQuotes:()=>x});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(54729),u=n(79635),c=n(92976),d=n(27806),p=n(72842),h=n(59874),m=n(27147),g=n(6610),f=n(53674),_=n(20802),y=n(87389),b=n(51969),w=n(76417),k=n(82739);function x(e){return e.replace(/[\u201C\u201D]/g,'"').replace(/[\u2018\u2019]/g,"'")}class T extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"site",[l.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #c=(()=>dt7948.g(this.prototype,"toasts",[l.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #d=(()=>dt7948.g(this.prototype,"isFastEditing",[s.tracked],function(){return!1}))();#s9=(()=>void dt7948.i(this,"isFastEditing"))();appEventsListeners=(()=>(0,u.modifier)(()=>(this.appEvents.on("quote-button:edit",this,"toggleFastEdit"),()=>{this.appEvents.off("quote-button:edit",this,"toggleFastEdit")})))();get topic(){return this.args.data.topic}get quoteState(){return this.args.data.quoteState}get post(){return this.topic.postStream.findLoadedPost(this.args.data.quoteState.postId)}get quoteSharingEnabled(){return this.site.desktopView&&this.quoteSharingSources.length>0&&!this.topic.invisible&&!this.topic.category?.read_restricted&&("all"===this.siteSettings.share_quote_visibility||"anonymous"===this.siteSettings.share_quote_visibility&&!this.currentUser)}get quoteSharingSources(){return f.default.activeSources(this.siteSettings.share_quote_buttons,this.siteSettings.login_required||this.topic.isPrivateMessage)}get quoteSharingShowLabel(){return this.quoteSharingSources.length>1}get shareUrl(){return(0,y.getAbsoluteURL)((0,_.postUrl)(this.topic.slug,this.topic.id,this.post.post_number))}get embedQuoteButton(){let e=this.topic.details.can_create_post,t=this.topic.details.can_reply_as_new_topic;return(e||t)&&this.currentUser?.get("user_option.enable_quoting")}trapEvents(e){e.stopPropagation()}static #p=(()=>dt7948.n(this.prototype,"trapEvents",[a.action]))();async copyQuoteToClipboard(){let e=await this.args.data.buildQuote();(0,_.clipboardCopy)(e),this.toasts.success({duration:3e3,data:{message:(0,b.i18n)("post.quote_copied_to_clibboard")}}),await this.args.data.hideToolbar()}static #h=(()=>dt7948.n(this.prototype,"copyQuoteToClipboard",[a.action]))();async closeFastEdit(){this.isFastEditing=!1,await this.args.data.hideToolbar()}static #m=(()=>dt7948.n(this.prototype,"closeFastEdit",[a.action]))();async toggleFastEdit(){if(this.args.data.supportsFastEdit)this.site.desktopView?this.isFastEditing=!this.isFastEditing:(this.modal.show(p.default,{model:{initialValue:this.args.data.quoteState.buffer,post:this.post}}),this.args.data.hideToolbar());else{let e=await (0,g.ajax)(`/posts/${this.post.id}`);if(this.isDestroying||this.isDestroyed)return;let t=0,n=e.raw.split("\n"),i=x(this.args.data.quoteState.buffer.split("\n")[0].replace(/^\* /,""));n.some((e,n)=>{if(e.length&&e.includes(i))return t=n,!0}),this.args.data.editPost(this.post),document.querySelector("#reply-control")?.addEventListener("transitionend",()=>{let e=document.querySelector(".d-editor-input");!e||this.isDestroyed||this.isDestroying||(_.setCaretPosition(e,n.slice(0,t).join("\n").length+(t>0?1:0)),e.blur(),e.focus())}),this.args.data.hideToolbar();return}}static #g=(()=>dt7948.n(this.prototype,"toggleFastEdit",[a.action]))();share(e){f.default.shareSource(e,{url:this.shareUrl,title:this.topic.title,quote:window.getSelection().toString()})}static #E=(()=>dt7948.n(this.prototype,"share",[a.action]))();static #A=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"h0zhSUG+",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[28,[32,0],["quote-button","visible",[52,[30,0,["isFastEditing"]],"fast-editing"]],null]],[4,[32,1],["mousedown",[30,0,["trapEvents"]]],null],[4,[32,1],["mouseup",[30,0,["trapEvents"]]],null],[4,[30,0,["appEventsListeners"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@defaultGlimmer","@outletArgs"],["post-text-buttons",true,[28,[32,3],null,[["data","post"],[[30,1],[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["embedQuoteButton"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat insert-quote"]],[["@icon","@label","@title","@action"],["quote-left","post.quote_reply","post.quote_reply_shortcut",[30,1,["insertQuote"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canEditPost"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat quote-edit-label"],[4,[32,1],["click",[30,0,["toggleFastEdit"]]],null]],[["@icon","@label","@title"],["pencil","post.quote_edit","post.quote_edit_shortcut"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canCopyQuote"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat copy-quote"],[4,[32,1],["click",[30,0,["copyQuoteToClipboard"]]],null]],[["@icon","@label","@title"],["copy","post.quote_copy","post.quote_copy"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-before","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,0,["quoteSharingEnabled"]],[[[1," "],[10,1],[14,0,"quote-sharing"],[12],[1,"\\n"],[41,[30,0,["quoteSharingShowLabel"]],[[[1," "],[8,[32,4],[[24,0,"btn-flat quote-share-label"]],[["@icon","@label"],["share","post.quote_share"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"quote-share-buttons"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["quoteSharingSources"]]],null]],null],null,[[[1," "],[8,[32,4],[[24,0,"btn-flat"]],[["@action","@translatedTitle","@icon"],[[28,[32,5],[[30,0,["share"]],[30,2]],null],[30,2,["title"]],[30,2,["icon"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-after","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"extra"],[12],[1,"\\n"],[41,[30,0,["isFastEditing"]],[[[1," "],[8,[32,6],null,[["@initialValue","@post","@close"],[[30,1,["quoteState","buffer"]],[30,0,["post"]],[30,0,["closeFastEdit"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName"],["quote-button-after","div"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@data","source"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection-toolbar.js",scope:()=>[m.default,o.on,h.default,r.hash,c.default,r.fn,d.default],isStrictMode:!0}),this))()}},69586:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(54729),l=n(79635),u=n(92084),c=n(94412),d=n(91699),p=n(20802),h=n(68817),m=n(45929),g=n(84262),f=n(62797),_=n(12196),y=n(76417),b=n(82739);let w=(0,n(41664).A)(n(28564)).cached;class k extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"menu",[a.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #d=(()=>dt7948.g(this.prototype,"isSelecting",[s.tracked],function(){return!1}))();#s5=(()=>void dt7948.i(this,"isSelecting"))();prevSelectedText;runLoopHandlers=(()=>(0,l.modifier)(()=>()=>{(0,o.cancel)(this.selectionChangeHandler)}))();documentListeners=(()=>(0,l.modifier)(()=>(document.addEventListener("mousedown",this.mousedown,{passive:!0}),document.addEventListener("mouseup",this.mouseup,{passive:!0}),document.addEventListener("selectionchange",this.onSelectionChanged),()=>{document.removeEventListener("mousedown",this.mousedown),document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("selectionchange",this.onSelectionChanged)})))();appEventsListeners=(()=>(0,l.modifier)(()=>(this.appEvents.on("topic:current-post-scrolled",this,"handleTopicScroll"),this.appEvents.on("quote-button:quote",this,"insertQuote"),()=>{this.appEvents.off("topic:current-post-scrolled",this,"handleTopicScroll"),this.appEvents.off("quote-button:quote",this,"insertQuote")})))();willDestroy(){super.willDestroy(...arguments),(0,o.cancel)(this.debouncedSelectionChanged),this.menuInstance?.close()}async hideToolbar(){this.args.quoteState.clear(),await this.menuInstance?.close()}static #p=(()=>dt7948.n(this.prototype,"hideToolbar",[f.bind]))();async selectionChanged(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isSelecting)return;let n=(0,p.selectedText)(),i=window.getSelection();if(i.isCollapsed||""===n){this.menuInstance?.expanded||this.args.quoteState.clear();return}if(!t.force&&this.menuInstance?.expanded&&this.prevSelectedText===n)return;this.prevSelectedText=n;for(let t=0;t0)&&n===(0,d.default)(r.innerHTML)};for(let e=s;e&&"ARTICLE"!==e.tagName;e=e.parentElement)if("ASIDE"===e.tagName&&e.classList.contains("quote")){o.username=e.dataset.username||function(e){let t=e.querySelector(".title");if(!t)return;let n=t.querySelector("a:not(.back)");return n?n.textContent.trim():t.textContent.trim().replace(/:$/,"")}(e),o.post=e.dataset.post,o.topic=e.dataset.topic;break}let a=this.args.quoteState;a.selected(e,n,o);let l=this.canEditPost,m=(0,p.getElement)(i.getRangeAt(0).startContainer);if((!m||m.closest("aside.quote,aside.onebox,.cooked-date,body.encrypted-topic-page"))&&(l=!1),l){let e=RegExp((0,_.default)(a.buffer),"gi"),t=r.innerHTML.match(e);(0===a.buffer.length||a.buffer.includes("|")||a.buffer.match(/\n/g)||a.buffer.match(/[‚‘’„“”«»‹›™±…→←↔¶]/g)||t?.length!==1)&&(l=!1)}let g=3;!this.shouldRenderUnder||(g=20,(0,c.default)((0,p.selectedRange)().startContainer.parentNode)&&(0,c.default)((0,p.selectedRange)().endContainer.parentNode)||(g=70));let f={identifier:"post-text-selection-toolbar",component:u.default,inline:!0,placement:this.shouldRenderUnder?"bottom-start":"top-start",fallbackPlacements:this.shouldRenderUnder?["bottom-end","top-start"]:["bottom-start"],offset:g,trapTab:!1,closeOnScroll:!1,data:{canEditPost:this.canEditPost,canCopyQuote:this.canCopyQuote,editPost:this.args.editPost,supportsFastEdit:l,topic:this.args.topic,quoteState:a,insertQuote:this.insertQuote,buildQuote:this.buildQuote,hideToolbar:this.hideToolbar}};await this.menuInstance?.destroy(),this.menuInstance=await this.menu.show((0,h.default)(),f)}onSelectionChanged(){if(this.isSelecting)return;let{isIOS:e,isWinphone:t,isAndroid:n}=this.capabilities,i=e||t||n?m.INPUT_DELAY:25;this.selectionChangeHandler=(0,g.default)(this,this.selectionChanged,i)}static #h=(()=>dt7948.n(this.prototype,"onSelectionChanged",[f.bind]))();mousedown(){this.isSelecting=!0}static #m=(()=>dt7948.n(this.prototype,"mousedown",[f.bind]))();mouseup(){this.isSelecting=!1,this.onSelectionChanged()}static #g=(()=>dt7948.n(this.prototype,"mouseup",[f.bind]))();get post(){return this.args.topic.postStream.findLoadedPost(this.args.quoteState.postId)}get canEditPost(){return this.siteSettings.enable_fast_edit&&this.post?.can_edit}get canCopyQuote(){return this.siteSettings.enable_quote_copy&&this.currentUser?.get("user_option.enable_quoting")}get shouldRenderUnder(){let{isIOS:e,isAndroid:t,isOpera:n}=this.capabilities;return this.site.isMobileDevice||e||t||n}static #E=(()=>dt7948.n(this.prototype,"shouldRenderUnder",[w]))();handleTopicScroll(){this.site.mobileView&&(this.debouncedSelectionChanged=(0,o.debounce)(this,this.selectionChanged,{force:!0},250,!1))}static #A=(()=>dt7948.n(this.prototype,"handleTopicScroll",[r.action]))();async insertQuote(){await this.args.selectText(),await this.hideToolbar()}static #D=(()=>dt7948.n(this.prototype,"insertQuote",[r.action]))();async buildQuote(){return await this.args.buildQuoteMarkdown()}static #I=(()=>dt7948.n(this.prototype,"buildQuote",[r.action]))();static #G=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"JaetaXsH",block:'[[[1,"\\n "],[11,0],[4,[30,0,["documentListeners"]],null,null],[4,[30,0,["appEventsListeners"]],null,null],[4,[30,0,["runLoopHandlers"]],null,null],[12],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection.js",isStrictMode:!0}),this))()}},59767:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>q});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(71597),l=n(54729),u=n(97355),c=n(64151),d=n(60783),p=n(68196),h=n(59874),m=n(92907),g=n(30280),f=n(27147),_=n(31222),y=n(83357),b=n(56839),w=n(51969),k=n(71341),x=n(91236),T=n(44989),S=n(95932),C=n(58322),E=n(30359),A=n(47004),D=n(206),I=n(80599),P=n(45372),M=n(62346),F=n(87878),N=n(17989),O=n(38459),L=n(76417),R=n(82739);let U=(0,n(41664).A)(n(28564)).cached,j=Object.freeze({ADMIN:"admin",BOOKMARK:"bookmark",COPY_LINK:"copyLink",DELETE:"delete",EDIT:"edit",FLAG:"flag",LIKE:"like",READ:"read",REPLIES:"replies",REPLY:"reply",SHARE:"share",SHOW_MORE:"showMore"}),B=new Map([[j.ADMIN,T.default],[j.BOOKMARK,S.default],[j.COPY_LINK,C.default],[j.DELETE,E.default],[j.EDIT,A.default],[j.FLAG,D.default],[j.LIKE,I.default],[j.READ,P.default],[j.REPLIES,M.default],[j.REPLY,F.default],[j.SHARE,N.default],[j.SHOW_MORE,O.default]]);function z(e){return{template:e.avatar_template,username:e.username,post_url:e.post_url,url:(0,b.userPath)(e.username_lower),unknown:e.unknown}}let $={defaultPosition:{before:j.SHOW_MORE},throwErrorOnCycle:!1};class q extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"keyValueStore",[l.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #u=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #c=(()=>dt7948.g(this.prototype,"menu",[l.service]))();#j=(()=>void dt7948.i(this,"menu"))();static #d=(()=>dt7948.g(this.prototype,"site",[l.service]))();#S=(()=>void dt7948.i(this,"site"))();static #p=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #h=(()=>dt7948.g(this.prototype,"store",[l.service]))();#f=(()=>void dt7948.i(this,"store"))();static #m=(()=>dt7948.g(this.prototype,"collapsed",[s.tracked],function(){return!0}))();#s6=(()=>void dt7948.i(this,"collapsed"))();static #g=(()=>dt7948.g(this.prototype,"isWhoLikedVisible",[s.tracked],function(){return!1}))();#re=(()=>void dt7948.i(this,"isWhoLikedVisible"))();static #E=(()=>dt7948.g(this.prototype,"likedUsers",[s.tracked],function(){return[]}))();#rt=(()=>void dt7948.i(this,"likedUsers"))();static #A=(()=>dt7948.g(this.prototype,"totalLikedUsers",[s.tracked]))();#rn=(()=>void dt7948.i(this,"totalLikedUsers"))();static #D=(()=>dt7948.g(this.prototype,"isWhoReadVisible",[s.tracked],function(){return!1}))();#ri=(()=>void dt7948.i(this,"isWhoReadVisible"))();static #I=(()=>dt7948.g(this.prototype,"readers",[s.tracked],function(){return[]}))();#rs=(()=>void dt7948.i(this,"readers"))();static #G=(()=>dt7948.g(this.prototype,"totalReaders",[s.tracked]))();#rr=(()=>void dt7948.i(this,"totalReaders"))();get buttonActions(){return{copyLink:this.args.copyLink,deletePost:this.args.deletePost,editPost:this.args.editPost,toggleLike:this.toggleLike,openAdminMenu:this.openAdminMenu,recoverPost:this.args.recoverPost,replyToPost:this.args.replyToPost,setCollapsed:e=>this.collapsed=e,share:this.args.share,showDeleteTopicModal:this.showDeleteTopicModal,showFlags:this.args.showFlags,showMoreActions:this.showMoreActions,toggleReplies:this.args.toggleReplies,toggleWhoLiked:this.toggleWhoLiked,toggleWhoRead:this.toggleWhoRead}}static #Y=(()=>dt7948.n(this.prototype,"buttonActions",[U]))();get staticMethodsState(){return Object.freeze({canCreatePost:this.args.canCreatePost,collapsed:this.collapsed,currentUser:this.currentUser,filteredRepliesView:this.args.filteredRepliesView,isWhoLikedVisible:this.isWhoLikedVisible,isWhoReadVisible:this.isWhoReadVisible,isWikiMode:this.isWikiMode,repliesShown:this.args.repliesShown,replyDirectlyBelow:this.args.nextPost?.reply_to_post_number===this.args.post.post_number&&this.args.post.post_number!==this.args.post.filteredRepliesPostNumber,showReadIndicator:this.args.showReadIndicator,suppressReplyDirectlyBelow:this.siteSettings.suppress_reply_directly_below})}static #Q=(()=>dt7948.n(this.prototype,"staticMethodsState",[U]))();get staticMethodsArgs(){return{post:this.args.post,state:this.staticMethodsState}}static #J=(()=>dt7948.n(this.prototype,"staticMethodsArgs",[U]))();get state(){return Object.freeze({...this.staticMethodsState,collapsedButtons:this.renderableCollapsedButtons})}static #X=(()=>dt7948.n(this.prototype,"state",[U]))();get registeredButtons(){let e;let t=new WeakMap,n=this.configuredItems,i=this.configuredPositions,s=Array.from(B.entries()).sort((e,t)=>{let[i]=e,[s]=t,r=n.indexOf(i),o=n.indexOf(s);return -1===r?-1:r-o}),r=_.default.from(Array.from(s).map(e=>{let[t,s]=e,r=-1!==n.indexOf(t)?i.get(t):null;return[t,s,r]}),{...$,onAddItem(t){e?.add(t)},onDeleteItem(t){e?.delete(t)},onReplaceItem:(e,n,i)=>{n!==i&&t.set(n,i)}});e=new Set;let o=new Map,l=n.indexOf(j.SHOW_MORE),u=this.configuredItems.filter(e=>this.#ro.includes(e));return new Map((0,y.applyMutableValueTransformer)("post-menu-buttons",r,{...this.staticMethodsArgs,buttonLabels:{hide(e){o.set(e,!1)},show(e){o.set(e,!0)},default:e=>o.delete(e)},buttonKeys:j,firstButtonKey:this.configuredItems[0],lastHiddenButtonKey:u.length?u[u.length-1]:null,lastItemBeforeMoreItemsButtonKey:l>0?this.configuredItems[l-1]:null,secondLastHiddenButtonKey:u.length>1?u[u.length-2]:null}).entries().map(n=>{let[i,s,r]=n,l=new k.default({key:i,Component:s,apiAdded:e.has(i),owner:(0,a.getOwner)(this),position:r,replacementMap:t,showLabel:o.get(i)});return[i,l]}))}static #Z=(()=>dt7948.n(this.prototype,"registeredButtons",[U]))();get configuredItems(){let e=this.siteSettings.post_menu.split("|").filter(Boolean).map(e=>{if(this.isWikiMode)switch(e){case j.EDIT:return j.REPLY;case j.REPLY:return j.EDIT}return e});return e.length>0&&!e.includes(j.SHOW_MORE)&&e.splice(e.length-1,0,j.SHOW_MORE),e}static #ee=(()=>dt7948.n(this.prototype,"configuredItems",[U]))();get configuredPositions(){let e="before",t=this.configuredItems;return new Map(t.map((n,i)=>n===j.SHOW_MORE?(e="after",[n,null]):"before"===e&&i0?[n,{[e]:[j.SHOW_MORE]}]:[n,null]))}static #et=(()=>dt7948.n(this.prototype,"configuredPositions",[U]))();get extraControls(){let e=Array.from(this.registeredButtons.values()).filter(e=>(0,u.isPresent)(e)&&e.extraControls(this.staticMethodsArgs)).map(e=>[e.key,e,e.position]);return _.default.from(e,$).resolve().map(e=>{let{value:t}=e;return t})}static #en=(()=>dt7948.n(this.prototype,"extraControls",[U]))();get availableButtons(){let e=this.configuredItems;return Array.from(this.registeredButtons.values()).filter(t=>(t.apiAdded||e.includes(t.key))&&!t.extraControls(this.staticMethodsArgs))}static #ei=(()=>dt7948.n(this.prototype,"availableButtons",[U]))();get availableCollapsedButtons(){let e=this.#ro;if((0,u.isEmpty)(e)||!this.collapsed||!this.isShowMoreButtonAvailable)return[];let t=this.availableButtons.filter(t=>{let n=t.hidden(this.staticMethodsArgs);return!1!==n&&t.key!==j.SHOW_MORE&&(!this.args.post.reviewable_id||t.key!==j.FLAG)&&(n||e.includes(t.key))});return t.length<=1?[]:t}static #es=(()=>dt7948.n(this.prototype,"availableCollapsedButtons",[U]))();get renderableCollapsedButtons(){return this.availableCollapsedButtons.filter(e=>e.shouldRender(this.staticMethodsArgs))}static #er=(()=>dt7948.n(this.prototype,"renderableCollapsedButtons",[U]))();get visibleButtons(){let e=this.availableButtons.filter(e=>!this.availableCollapsedButtons.includes(e));return _.default.from(e.map(e=>[e.key,e,e.position]),$).resolve().map(e=>{let{value:t}=e;return t})}static #eo=(()=>dt7948.n(this.prototype,"visibleButtons",[U]))();get repliesButton(){return this.registeredButtons.get(j.REPLIES)}get showMoreButton(){return this.registeredButtons.get(j.SHOW_MORE)}get remainingLikedUsers(){return this.totalLikedUsers-this.likedUsers.length}get remainingReaders(){return this.totalReaders-this.readers.length}get isWikiMode(){return this.args.post.wiki&&this.args.post.can_edit}get isShowMoreButtonAvailable(){return this.availableButtons.some(e=>e.key===j.SHOW_MORE)||this.extraControls.some(e=>e.key===j.SHOW_MORE)}async toggleLike(){if(!this.currentUser){this.keyValueStore&&this.keyValueStore.set({key:"likedPostId",value:this.args.post.id}),this.args.showLogin();return}this.capabilities.userHasBeenActive&&this.capabilities.canVibrate&&navigator.vibrate(5),await this.args.toggleLike(),this.collapsed||await this.#ra()}static #ea=(()=>dt7948.n(this.prototype,"toggleLike",[o.action]))();openAdminMenu(e,t){this.menu.show(t.target,{identifier:"admin-post-menu",component:d.default,modalForMobile:!0,autofocus:!0,data:{post:this.args.post,changeNotice:this.args.changeNotice,changePostOwner:this.args.changePostOwner,grantBadge:this.args.grantBadge,lockPost:this.args.lockPost,permanentlyDeletePost:this.args.permanentlyDeletePost,rebakePost:this.args.rebakePost,showPagePublish:this.args.showPagePublish,togglePostType:this.args.togglePostType,toggleWiki:this.args.toggleWiki,unhidePost:this.args.unhidePost,unlockPost:this.args.unlockPost}})}static #el=(()=>dt7948.n(this.prototype,"openAdminMenu",[o.action]))();refreshReaders(){if(this.readers.length)return this.#rl()}static #eu=(()=>dt7948.n(this.prototype,"refreshReaders",[o.action]))();showDeleteTopicModal(){this.modal.show(p.default)}static #ec=(()=>dt7948.n(this.prototype,"showDeleteTopicModal",[o.action]))();async showMoreActions(){this.collapsed=!1;let e=[!this.isWhoLikedVisible&&this.#ra(),!this.isWhoReadVisible&&this.args.showReadIndicator&&this.#rl()].filter(Boolean);await Promise.all(e)}static #ed=(()=>dt7948.n(this.prototype,"showMoreActions",[o.action]))();toggleWhoLiked(){if(this.isWhoLikedVisible){this.isWhoLikedVisible=!1;return}this.#ra()}static #nG=(()=>dt7948.n(this.prototype,"toggleWhoLiked",[o.action]))();toggleWhoRead(){if(this.isWhoReadVisible){this.isWhoReadVisible=!1;return}this.#rl()}static #nY=(()=>dt7948.n(this.prototype,"toggleWhoRead",[o.action]))();get #ro(){let e=this.siteSettings.post_menu_hidden_items;return(0,u.isEmpty)(e)?[]:e.split("|").filter(e=>!this.args.post.bookmarked||e!==j.BOOKMARK)}async #ra(){let e=await this.store.find("post-action-user",{id:this.args.post.id,post_action_type_id:2});this.likedUsers=e.map(z),this.totalLikedUsers=e.totalRows,this.isWhoLikedVisible=!0}async #rl(){let e=await this.store.find("post-reader",{id:this.args.post.id});this.readers=e.map(z),this.totalReaders=e.totalRows,this.isWhoReadVisible=!0}static #nQ=(()=>(0,L.setComponentTemplate)((0,R.createTemplateFactory)({id:"7JlLuFQ5",block:'[[[1,"\\n"],[1," "],[8,[32,0],null,[["@name","@outletArgs"],["post-menu",[28,[32,1],null,[["post","state"],[[30,1],[30,0,["state"]]]]]]],[["default"],[[[[1,"\\n "],[10,"nav"],[15,0,[28,[32,2],["post-controls","glimmer-post-menu",[52,[28,[32,3],[[28,[30,0,["showMoreButton","shouldRender"]],[[28,[32,1],null,[["post","state"],[[30,0,["post"]],[30,0,["state"]]]]]],null],[30,0,["collapsed"]]],null],"collapsed","expanded"],[52,[30,0,["siteSettings","enable_filtered_replies_view"]],"replies-button-visible"]],null]],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraControls"]]],null]],null],"key",[[[1," "],[8,[32,4],null,[["@buttonActions","@buttonConfig","@post","@state"],[[30,0,["buttonActions"]],[30,2],[30,1],[30,0,["state"]]]],null],[1,"\\n"]],[2]],null],[1," "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["visibleButtons"]]],null]],null],"key",[[[1," "],[8,[32,4],null,[["@buttonActions","@buttonConfig","@post","@state"],[[30,0,["buttonActions"]],[30,3],[30,1],[30,0,["state"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["isWhoReadVisible"]],[[[1," "],[8,[32,5],[[24,0,"who-read"]],[["@addSelf","@ariaLabel","@count","@description","@users"],[false,[28,[32,6],["post.actions.people.sr_post_readers_list_description"],null],[52,[30,0,["remainingReaders"]],[30,0,["remainingReaders"]],[30,0,["totalReaders"]]],[52,[30,0,["remainingReaders"]],"post.actions.people.read_capped","post.actions.people.read"],[30,0,["readers"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["isWhoLikedVisible"]],[[[1," "],[8,[32,5],[[24,0,"who-liked"]],[["@addSelf","@ariaLabel","@count","@description","@users"],[[28,[32,3],[[30,1,["liked"]],[28,[32,7],[[30,0,["remainingLikedUsers"]],0],null]],null],[28,[32,6],["post.actions.people.sr_post_likers_list_description"],null],[52,[30,0,["remainingLikedUsers"]],[30,0,["remainingLikedUsers"]],[30,0,["totalLikedUsers"]]],[52,[30,0,["remainingLikedUsers"]],"post.actions.people.like_capped","post.actions.people.like"],[30,0,["likedUsers"]]]],null],[1,"\\n"]],[]],null],[41,[28,[30,0,["showMoreButton","shouldRender"]],[[28,[32,1],null,[["post","state"],[[30,0,["post"]],[30,0,["state"]]]]]],null],[[[1," "],[8,[32,8],null,[["@id","@triggerSelector","@placement","@titleText","@contentText"],["post_menu",".post-controls .actions .show-more-actions","top",[28,[32,6],["user_tips.post_menu.title"],null],[28,[32,6],["user_tips.post_menu.content"],null]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[1," "]],["@post","extraControl","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu.js",scope:()=>[h.default,r.hash,f.default,c.and,x.default,m.default,w.i18n,c.eq,g.default],isStrictMode:!0}),this))()}},71341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(11508),s=n(62797);class r{#ru;#rc;#rd;#rp;#sg;#rh;#rm;constructor(e){let{key:t,Component:n,apiAdded:i,owner:s,position:r,replacementMap:o,showLabel:a}=e;this.#ru=n,this.#rc=i,this.#rd=t,this.#rp=s,this.#sg=r,this.#rh=o,this.#rm=a}get Component(){return this.#ru}get apiAdded(){return this.#rc}hidden(e){return this.#rg({property:"hidden",args:e,defaultValue:null})}static #e=(()=>dt7948.n(this.prototype,"hidden",[s.bind]))();delegateShouldRenderToTemplate(e){return this.#rg({property:"delegateShouldRenderToTemplate",args:e,defaultValue:!1})}static #n=(()=>dt7948.n(this.prototype,"delegateShouldRenderToTemplate",[s.bind]))();extraControls(e){return this.#rg({property:"extraControls",args:e,defaultValue:!1})}static #i=(()=>dt7948.n(this.prototype,"extraControls",[s.bind]))();get key(){return this.#rd}get position(){return this.#sg}setShowLabel(e){this.#rm=e}static #l=(()=>dt7948.n(this.prototype,"setShowLabel",[s.bind]))();shouldRender(e){return this.#rg({property:"shouldRender",args:e,defaultValue:!0})}static #u=(()=>dt7948.n(this.prototype,"shouldRender",[s.bind]))();showLabel(e){return this.#rm??this.#rg({property:"showLabel",args:e,defaultValue:null})}static #c=(()=>dt7948.n(this.prototype,"showLabel",[s.bind]))();#rg(e){let t,{klass:n=this.#ru,property:s,args:r,defaultValue:o}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakSet;return!n||a.has(n)?o:void 0===n[s]?this.#rg({klass:this.#rh.get(n)||null,property:s,args:r,defaultValue:o},a.add(n)):"function"==typeof n[s]?n[s](r,(0,i.helperContext)(),this.#rp):n[s]}}},91236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(87075),r=n(70001),o=n(68741),a=n(64151),l=n(97113),u=n(76417),c=n(82739);class d extends i.default{#rf;get delegateShouldRenderToTemplate(){return this.args.buttonConfig.delegateShouldRenderToTemplate(this.args)}get hidden(){return this.args.buttonConfig.hidden(this.args)}get shouldRender(){if(!this.delegateShouldRenderToTemplate)return this.args.buttonConfig.shouldRender(this.args)}get showLabel(){return this.args.buttonConfig.showLabel(this.args)}setElement(e){this.#rf=e}static #e=(()=>dt7948.n(this.prototype,"setElement",[r.action]))();sharedBehaviorOnClick(e){e.currentTarget?.blur()}static #n=(()=>dt7948.n(this.prototype,"sharedBehaviorOnClick",[r.action]))();showFeedback(e){this.#rf&&(0,l.showAlert)(this.args.post.id,this.args.buttonConfig.key,e,{actionBtn:this.#rf})}static #i=(()=>dt7948.n(this.prototype,"showFeedback",[r.action]))();static #l=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"eOqDL3A1",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,0,["shouldRender"]],[30,0,["delegateShouldRenderToTemplate"]]],null],[[[1," "],[8,[30,1,["Component"]],[[24,0,"btn-flat"],[4,[32,1],[[30,0,["setElement"]]],null],[4,[32,2],["click",[30,0,["sharedBehaviorOnClick"]]],null]],[["@buttonActions","@hidden","@post","@shouldRender","@showFeedback","@showLabel","@state"],[[30,2],[30,0,["hidden"]],[30,3],[30,0,["shouldRender"]],[30,0,["showFeedback"]],[30,0,["showLabel"]],[30,4]]],null],[1,"\\n"]],[]],null],[1," "]],["@buttonConfig","@buttonActions","@post","@state"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/button-wrapper.js",scope:()=>[a.or,o.default,s.on],isStrictMode:!0}),this))()}},44989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(92976),r=n(76417),o=n(82739);class a extends i.default{static shouldRender(e){return e.post.canManage||e.post.can_wiki||e.post.canEditStaffNotes}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"Ql3/K2+i",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__admin show-post-admin-menu"],[17,1]],[["@action","@forwardEvent","@icon","@label","@title"],[[30,2,["openAdminMenu"]],true,"wrench",[52,[30,3],"post.controls.admin_action"],"post.controls.admin"]],null],[1,"\\n "]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/admin.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},95932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138);n(28564);var s=n(71597),r=n(19015),o=n(39149),a=n(76417),l=n(82739);let u=(0,n(41664).A)(n(28564)).cached;class c extends i.default{static shouldRender(e){return!!e.post.canBookmark}get bookmarkManager(){return new o.default((0,s.getOwner)(this),this.args.post)}static #e=(()=>dt7948.n(this.prototype,"bookmarkManager",[u]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"qmNLeeaF",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__bookmark"],[17,1]],[["@bookmarkManager","@showLabel"],[[30,0,["bookmarkManager"]],[30,2]]],null],[1,"\\n "]],["&attrs","@showLabel"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/bookmark.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},58322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"FKIVxcz8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__copy-link"],[17,1]],[["@action","@icon","@label","@title"],[[30,2,["copyLink"]],"d-post-share",[52,[30,3],"post.controls.copy_action"],"post.controls.copy_title"]],null],[1,"\\n"]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/copy-link.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"copy-link:PostMenuCopyLinkButton"))},30359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BUTTON_ACTION_MODE_DELETE:()=>a,BUTTON_ACTION_MODE_DELETE_TOPIC:()=>l,BUTTON_ACTION_MODE_RECOVER:()=>c,BUTTON_ACTION_MODE_RECOVERING:()=>p,BUTTON_ACTION_MODE_RECOVERING_TOPIC:()=>h,BUTTON_ACTION_MODE_RECOVER_TOPIC:()=>d,BUTTON_ACTION_MODE_SHOW_FLAG_DELETE:()=>u,default:()=>m});var i=n(37138),s=n(92976),r=n(76417),o=n(82739);let a="delete",l="delete-topic",u="show-flag-delete",c="recover",d="recover-topic",p="recovering",h="recovering-topic";class m extends i.default{static shouldRender(e){return!!m.modeFor(e.post)}static modeFor(e){if(e.canRecoverTopic)return d;if(e.canDeleteTopic)return l;if(e.canRecover)return c;if(e.canDelete)return a;if(e.showFlagDelete)return u;if(e.isRecovering)return p;if(e.isRecoveringTopic)return h}get className(){switch(this.#r_){case c:case d:case p:case h:return"post-action-menu__recover recover";default:return"post-action-menu__delete delete"}}get icon(){switch(this.#r_){case c:case d:case p:case h:return"arrow-rotate-left";default:return"trash-can"}}get label(){switch(this.#r_){case a:return"post.controls.delete_action";case l:case u:return"topic.actions.delete";case c:case p:return"post.controls.undelete_action";case d:case h:return"topic.actions.recover"}}get title(){switch(this.#r_){case a:return"post.controls.delete";case l:return"post.controls.delete_topic";case u:return"post.controls.delete_topic_disallowed";case c:case p:return"post.controls.undelete";case d:case h:return"topic.actions.recover"}}get activeAction(){return this.args.post.canRecoverTopic?this.args.buttonActions.recoverPost:this.args.post.canDeleteTopic?this.args.buttonActions.deletePost:this.args.post.canRecover?this.args.buttonActions.recoverPost:this.args.post.canDelete?this.args.buttonActions.deletePost:this.args.post.showFlagDelete?this.args.buttonActions.showDeleteTopicModal:void 0}get disabled(){return!this.activeAction}get #r_(){return this.constructor.modeFor(this.args.post)}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"OIzyWdfV",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,0,["className"]]],[17,1],[16,"disabled",[30,0,["disabled"]]]],[["@action","@icon","@label","@title"],[[30,0,["activeAction"]],[30,0,["icon"]],[52,[30,2],[30,0,["label"]]],[30,0,["title"]]]],null],[1,"\\n "]],["&attrs","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/delete.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},47004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(54729),r=n(92976),o=n(27147),a=n(76417),l=n(82739);class u extends i.default{static hidden(e){return!e.state.isWikiMode&&(!e.post.can_edit||!e.post.yours)&&null}static shouldRender(e){return e.post.can_edit}static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&this.args.state.isWikiMode)}static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Q7zohr4d",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__edit","edit",[52,[30,1,["wiki"]],"create"]],null]],[17,2]],[["@action","@icon","@label","@title"],[[30,3,["editPost"]],[52,[30,1,["wiki"]],"far-pen-to-square","pencil"],[52,[30,0,["showLabel"]],"post.controls.edit_action"],"post.controls.edit"]],null],[1,"\\n "]],["@post","&attrs","@buttonActions"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/edit.js",scope:()=>[r.default,o.default],isStrictMode:!0}),this))()}},206:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(70001),r=n(64151),o=n(92976),a=n(27147),l=n(56839),u=n(76417),c=n(82739);class d extends i.default{static shouldRender(e){let{reviewable_id:t,canFlag:n,hidden:i}=e.post;return t||n&&!i}navigateToReviewable(){l.default.routeTo(`/review/${this.args.post.reviewable_id}`)}static #e=(()=>dt7948.n(this.prototype,"navigateToReviewable",[s.action]))();static #n=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"N+hAeGk3",block:'[[[1,"\\n "],[10,0],[14,0,"double-button"],[12],[1,"\\n"],[41,[30,1,["reviewable_id"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["button-count",[52,[28,[32,2],[[30,1,["reviewable_score_pending_count"]],0],null],"has-pending"]],null]],[17,2]],[["@action"],[[30,0,["navigateToReviewable"]]]],[["default"],[[[[1,"\\n "],[10,1],[12],[1,[30,1,["reviewable_score_count"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[8,[32,0],[[24,0,"post-action-menu__flag create-flag"],[17,2]],[["@action","@icon","@label","@title"],[[30,3,["showFlags"]],"flag",[52,[30,4],"post.controls.flag_action"],"post.controls.flag"]],null],[1,"\\n "],[13],[1,"\\n "]],["@post","&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/flag.js",scope:()=>[o.default,a.default,r.gt],isStrictMode:!0}),this))()}},80599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(92976),l=n(27147),u=n(21237),c=n(86211),d=n(51969),p=n(76417),h=n(82739);class m extends i.default{static shouldRender(e){return e.post.showLike||e.post.likeCount>0}static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"isAnimated",[s.tracked],function(){return!1}))();#ry=(()=>void dt7948.i(this,"isAnimated"))();get disabled(){return this.currentUser&&!this.args.post.canToggleLike}get title(){return this.args.post.liked&&!this.args.post.canToggleLike?"post.controls.has_liked":this.args.post.liked?"post.controls.undo_like":"post.controls.like"}async toggleLike(){return this.isAnimated=!0,new Promise(e=>{(0,c.default)(async()=>{this.isAnimated=!1,await this.args.buttonActions.toggleLike(),e()},400)})}static #i=(()=>dt7948.n(this.prototype,"toggleLike",[r.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"tsgfMKKv",block:'[[[1,"\\n"],[41,[30,1,["showLike"]],[[[1," "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[17,2]],[["@action","@state","@post"],[[30,3,["toggleWhoLiked"]],[30,4],[30,1]]],null],[1,"\\n "],[8,[32,1],[[16,0,[28,[32,2],["post-action-menu__like","toggle-like","btn-icon",[52,[30,0,["isAnimated"]],"heart-animation"],[52,[30,1,["liked"]],"has-like fade-out","like"]],null]],[17,2],[16,"data-post-id",[30,1,["id"]]],[16,"disabled",[30,0,["disabled"]]]],[["@action","@icon","@label","@title"],[[30,0,["toggleLike"]],[52,[30,1,["liked"]],"d-liked","d-unliked"],[52,[30,5],"post.controls.like_action"],[30,0,["title"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[17,2]],[["@action","@state","@post"],[[30,3,["toggleWhoLiked"]],[30,4],[30,1]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@post","&attrs","@buttonActions","@state","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/like.js",scope:()=>[g,a.default,l.default],isStrictMode:!0}),this))()}class g extends i.default{get icon(){return this.args.post.showLike?this.args.post.yours?"d-liked":void 0:this.args.post.yours?"d-liked":"d-unliked"}get translatedTitle(){let e;return e=this.args.post.liked?1===this.args.post.likeCount?"post.has_likes_title_only_you":"post.has_likes_title_you":"post.has_likes_title",(0,d.i18n)(e,{count:this.args.post.liked?this.args.post.likeCount-1:this.args.post.likeCount})}static #e=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"+7KsLmti",block:'[[[1,"\\n"],[41,[30,1,["likeCount"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__like-count","like-count","button-count","highlight-action",[52,[30,1,["yours"]],"my-likes","regular-likes"]],null]],[17,2]],[["@ariaPressed","@translatedAriaLabel","@translatedTitle","@action"],[[30,3,["isWhoLikedVisible"]],[28,[32,2],["post.sr_post_like_count_button"],[["count"],[[30,1,["likeCount"]]]]],[30,0,["translatedTitle"]],[30,4]]],[["default"],[[[[1,"\\n "],[1,[30,1,["likeCount"]]],[1,"\\n"],[41,[30,0,["icon"]],[[[1,[28,[32,3],[[30,0,["icon"]]],null]]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@post","&attrs","@state","@action"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/like.js",scope:()=>[a.default,l.default,d.i18n,u.default],isStrictMode:!0}),this))()}},45372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(92976),r=n(51969),o=n(76417),a=n(82739);class l extends i.default{static shouldRender(e){return e.state.showReadIndicator&&e.post.readers_count>0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"W65IFLtG",block:'[[[1,"\\n "],[10,0],[14,0,"double-button"],[12],[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__read read-indicator button-count"],[17,1]],[["@ariaPressed","@action","@translatedAriaLabel","@title"],[[30,2,["isWhoReadVisible"]],[30,3,["toggleWhoRead"]],[28,[32,1],["post.sr_post_read_count_button"],[["count"],[[30,4,["readers_count"]]]]],"post.controls.read_indicator"]],[["default"],[[[[1,"\\n "],[1,[30,4,["readers_count"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,0],[[17,1]],[["@action","@icon","@title"],[[30,3,["toggleWhoRead"]],"book-open-reader","post.controls.read_indicator"]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@state","@buttonActions","@post"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/read.js",scope:()=>[s.default,r.i18n],isStrictMode:!0}),this))()}},62346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(39882),r=n(54729),o=n(64151),a=n(92976),l=n(21237),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static extraControls=!0;static shouldRender(e){let t=e.post.reply_count;return!!t&&!(1===t&&e.state.replyDirectlyBelow&&e.state.suppressReplyDirectlyBelow)}static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();get disabled(){return!!this.args.post.deleted}get translatedTitle(){if(this.args.state.filteredRepliesView)return this.args.state.repliesShown?(0,u.i18n)("post.view_all_posts"):(0,u.i18n)("post.filtered_replies_hint",{count:this.args.post.reply_count})}static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"M4281HKz",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"show-replies btn-icon-text"],[17,1],[16,"disabled",[30,0,["disabled"]]]],[["@action","@ariaControls","@ariaExpanded","@ariaPressed","@translatedAriaLabel","@translatedLabel","@translatedTitle"],[[30,2,["toggleReplies"]],[28,[32,1],["embedded-posts__bottom--",[30,3,["post_number"]]],null],[28,[32,2],[[30,4,["repliesShown"]],[28,[32,3],[[30,4,["filteredRepliesView"]]],null]],null],[52,[51,[30,4,["filteredRepliesView"]]],[30,4,["repliesShown"]]],[28,[32,4],["post.sr_expand_replies"],[["count"],[[30,3,["reply_count"]]]]],[28,[32,4],[[52,[30,0,["site","mobileView"]],"post.has_replies_count","post.has_replies"]],[["count"],[[30,3,["reply_count"]]]]],[30,0,["translatedTitle"]]]],[["default"],[[[[1,"\\n"],[1,[28,[32,5],[[52,[30,4,["repliesShown"]],"chevron-up","chevron-down"]],null]]],[]]]]],[1,"\\n "]],["&attrs","@buttonActions","@post","@state"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/replies.js",scope:()=>[a.default,s.concat,o.and,o.not,u.i18n,l.default],isStrictMode:!0}),this))()}},87878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(92976),o=n(27147),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{static shouldRender(e){return e.state.canCreatePost}static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&!this.args.state.isWikiMode)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"NcBGNBin",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["post-action-menu__reply","reply",[52,[30,0,["showLabel"]],"create fade-out"]],null]],[17,1]],[["@action","@icon","@label","@title","@translatedAriaLabel"],[[30,2,["replyToPost"]],"reply",[52,[30,0,["showLabel"]],"topic.reply.title"],"post.controls.reply",[28,[32,2],["post.sr_reply_to"],[["post_number","username"],[[30,3,["post_number"]],[30,3,["username"]]]]]]],null],[1,"\\n "]],["&attrs","@buttonActions","@post"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/reply.js",scope:()=>[r.default,o.default,a.i18n],isStrictMode:!0}),this))()}},17989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"SHyG8vYB",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__share share"],[17,1]],[["@action","@icon","@label","@title"],[[30,2,["share"]],"d-post-share",[52,[30,3],"post.controls.share_action"],"post.controls.share"]],null],[1,"\\n"]],["&attrs","@buttonActions","@showLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/share.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"share:PostMenuShareButton"))},38459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(92976),r=n(76417),o=n(82739);class a extends i.default{static shouldRender(e){return e.state.collapsedButtons.length&&e.state.collapsed}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"SSaFLpUN",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-action-menu__show-more show-more-actions"],[17,1]],[["@action","@icon","@title"],[[30,2,["showMoreActions"]],"ellipsis","show_more"]],null],[1,"\\n "]],["&attrs","@buttonActions"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/menu/buttons/show-more.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},34077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(21237),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"xQbqWsXB",block:'[[[1,"\\n"],[1," "],[10,3],[14,0,"powered-by-discourse"],[14,6,"https://discourse.org/powered-by"],[14,"target","_blank"],[12],[1,"\\n "],[10,1],[14,0,"powered-by-discourse__content"],[12],[1,"\\n "],[10,1],[14,0,"powered-by-discourse__logo"],[12],[1,"\\n "],[1,[28,[32,0],["fab-discourse"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["powered_by_discourse"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/powered-by-discourse.js",scope:()=>[i.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"powered-by-discourse:PoweredByDiscourse"))},56226:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(27147),r=n(51969),o=n(82739),a=n(88606);let l=(0,i.setComponentTemplate)((0,o.createTemplateFactory)({id:"+ZIE8+2G",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["controls",[30,1]],null]],[17,2],[12],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,1],[[16,"disabled",[30,3]]],[["@type","@checked"],["checkbox",[30,4]]],null],[1,"\\n\\n"],[41,[30,5],[[[1," "],[1,[28,[32,2],[[30,6]],[["count"],[[30,5]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],[[30,6]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@disabled","@checked","@labelCount","@labelKey"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/preference-checkbox.js",scope:()=>[s.default,i.Input,r.i18n],isStrictMode:!0}),(0,a.default)(void 0,"preference-checkbox:PreferenceCheckbox"))},79885:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(21237),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fL5qGens",block:'[[[1,"\\n"],[41,[30,1],[[[41,[30,2],[[[1," "],[10,3],[15,6,[30,2]],[15,"title",[28,[32,0],[[30,3]],null]],[15,"aria-label",[28,[32,0],[[30,4]],null]],[12],[1,"\\n "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n "],[1,[28,[32,1],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13],[1,"\\n "],[13]],[]],[[[1," "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n "],[1,[28,[32,1],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n "],[13]],[]]]],[]],null]],["@shouldShow","@href","@title","@ariaLabel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/private-message-glyph.js",scope:()=>[s.i18n,i.default],isStrictMode:!0}),(0,a.default)(void 0,"private-message-glyph:PrivateMessageGlyph"))},99724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(54729),l=n(79635),u=n(92976),c=n(82896),d=n(76417),p=n(82739);let h="dismissed-pwa-install-banner";class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"keyValueStore",[a.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"bannerDismissed",[s.tracked],function(){return"true"===this.keyValueStore.get(h)}))();#s1=(()=>void dt7948.i(this,"bannerDismissed"))();static #c=(()=>dt7948.g(this.prototype,"deferredInstallPromptEvent",[s.tracked],function(){return null}))();#rb=(()=>void dt7948.i(this,"deferredInstallPromptEvent"))();registerInstallPromptListener=(()=>(0,l.modifier)(()=>{let e=e=>{e.preventDefault(),this.deferredInstallPromptEvent=e};return window.addEventListener("beforeinstallprompt",e),()=>{window.removeEventListener("beforeinstallprompt",e)}}))();get showPWAInstallBanner(){return this.capabilities.isAndroid&&this.currentUser?.trust_level>0&&this.deferredInstallPromptEvent&&!window.matchMedia("(display-mode: standalone)").matches&&!this.capabilities.isAppWebview&&!this.bannerDismissed}turnOn(){this.dismiss(),this.deferredInstallPromptEvent.prompt()}static #d=(()=>dt7948.n(this.prototype,"turnOn",[o.action]))();dismiss(){this.keyValueStore.set({key:h,value:!0}),this.bannerDismissed=!0}static #p=(()=>dt7948.n(this.prototype,"dismiss",[o.action]))();static #h=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"EMNyDLBi",block:'[[[1,"\\n"],[41,[30,0,["showPWAInstallBanner"]],[[[1," "],[10,0],[14,0,"pwa-install-banner alert alert-info"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@action","@text","@textParams"],[[30,0,["turnOn"]],"pwa.install_banner",[28,[32,1],null,[["title"],[[30,0,["siteSettings","title"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["xmark",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/pwa-install-banner.js",scope:()=>[c.default,r.hash,u.default],isStrictMode:!0}),this))()}},25581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(14682),o=n.n(r),a=n(62797);let l=dt7948.c(class extends i.default{type="radio";click(){let e=o()(this.element).val();this.onChange?this.onChange(e):(this.selection===e&&this.set("selection",void 0),this.set("selection",e))}checked(e,t){return e===t}static #e=(()=>dt7948.n(this.prototype,"checked",[(0,a.default)("value","selection")]))()},[(0,s.attributeBindings)("name","type","value","checked:checked","disabled:disabled"),(0,s.tagName)("input")])},86561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138);n(28564);var s=n(54729),r=n(35804),o=n(26647),a=n(87389),l=n(51969),u=n(76417),c=n(82739);let d=(0,n(41664).A)(n(28564)).cached;class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get targetUser(){let{topic:e}=this.args;if(e&&e.isPrivateMessage&&e.relatedMessages?.length>=5&&0===e.details.allowed_groups.length&&2===e.details.allowed_users.length&&e.details.allowed_users.find(e=>e.username===this.currentUser.username))return e.details.allowed_users.find(e=>e.username!==this.currentUser.username)}static #n=(()=>dt7948.n(this.prototype,"targetUser",[d]))();get searchLink(){return(0,a.default)(`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`)}static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"/UHgJGK3",block:'[[[1,"\\n "],[10,0],[14,"role","complementary"],[14,"aria-labelledby","related-messages-title"],[14,1,"related-messages"],[14,0,"more-topics__list"],[12],[1,"\\n "],[10,"h3"],[14,1,"related-messages-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n "],[1,[28,[32,0],["related_messages.title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topics"],[12],[1,"\\n "],[8,[32,1],null,[["@topics","@hideCategory","@showPosters"],[[30,1,["relatedMessages"]],true,true]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["targetUser"]],[[[1," "],[10,"h3"],[14,0,"see-all-pms-message"],[12],[1,"\\n "],[1,[28,[32,2],[[28,[32,0],["related_messages.see_all"],[["path","username"],[[30,0,["searchLink"]],[30,0,["targetUser","username"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/related-messages.js",scope:()=>[l.i18n,o.default,r.htmlSafe],isStrictMode:!0}),this))()}},32184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(38536),r=n(76417),o=n(82739);class a extends i.default{get datetime(){return new Date(this.args.date)}get title(){return(0,s.longDate)(this.datetime)}get time(){return this.datetime.getTime()}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"D86FUnxh",block:'[[[1,"\\n "],[10,1],[14,0,"relative-date"],[15,"title",[30,0,["title"]]],[15,"data-time",[30,0,["time"]]],[14,"data-format","tiny"],[12],[1,"\\n "],[1,[28,[32,0],[[30,0,["datetime"]]],null]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-date.js",scope:()=>[s.relativeAge],isStrictMode:!0}),this))()}},52320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(48605),l=n(97355),u=n(64151),c=n(51969),d=n(17784),p=n(76417),h=n(82739);function m(e){let t=parseFloat(e.toFixed(1));return(t=Math.round(2*t)/2)%1==0?t.toFixed(0):t}function g(e){return e?e>525600?m(e/525600):e>43200?m(e/43200):e>1440?m(e/1440):e>60?m(e/60):e:null}function f(e){return e>525600?"years":e>43200?"months":e>1440?"days":e>60?"hours":"mins"}class _ extends i.default{static #e=(()=>dt7948.g(this.prototype,"inputValue",[s.tracked]))();#rv=(()=>void dt7948.i(this,"inputValue"))();static #n=(()=>dt7948.g(this.prototype,"duration",[s.tracked]))();#rw=(()=>void dt7948.i(this,"duration"))();static #i=(()=>dt7948.g(this.prototype,"interval",[s.tracked]))();#rk=(()=>void dt7948.i(this,"interval"))();constructor(){super(...arguments),this.initValues()}get intervals(){let e=this.duration?parseFloat(this.duration):0;return[{id:"mins",name:(0,c.i18n)("relative_time_picker.minutes",{count:e})},{id:"hours",name:(0,c.i18n)("relative_time_picker.hours",{count:e})},{id:"days",name:(0,c.i18n)("relative_time_picker.days",{count:e})},{id:"months",name:(0,c.i18n)("relative_time_picker.months",{count:e})},{id:"years",name:(0,c.i18n)("relative_time_picker.years",{count:e})}].filter(e=>!this.args.hiddenIntervals?.includes(e.id))}minutesFromInputValueAndInterval(e,t){if(isNaN(e))return null;switch(t){case"mins":return Math.ceil(e);case"hours":return 60*e;case"days":return 1440*e;case"months":return 43200*e;case"years":return 525600*e}}initValues(){let e=this.args.durationMinutes;this.args.durationHours&&(e??=60*this.args.durationHours),this.inputValue=g(e),void 0!==this.args.durationMinutes?this.interval=f(this.args.durationMinutes):null===this.args.durationHours?this.interval="hours":void 0!==this.args.durationHours?this.interval=f(60*this.args.durationHours):this.interval="mins",this.duration=this.minutesFromInputValueAndInterval(this.inputValue,this.interval)}static #l=(()=>dt7948.n(this.prototype,"initValues",[o.action]))();onChangeDuration(e){if((0,l.isBlank)(e.target.value))this.duration=null,this.inputValue=null;else{let t=this.minutesFromInputValueAndInterval(parseFloat(e.target.value),this.interval);t>this.duration&&(525600===this.duration||43200===this.duration||1440===this.duration||60===this.duration)&&(t=this.minutesFromInputValueAndInterval(1.5*parseFloat(e.target.value),this.interval)),this.duration=t,this.interval=f(this.duration),this.inputValue=g(this.duration)}this.args.onChange?.(this.duration)}static #u=(()=>dt7948.n(this.prototype,"onChangeDuration",[o.action]))();onChangeInterval(e){this.interval=e;let t=this.minutesFromInputValueAndInterval(this.inputValue,this.interval);t!==this.duration&&(this.duration=t,this.args.onChange?.(this.duration))}static #c=(()=>dt7948.n(this.prototype,"onChangeInterval",[o.action]))();static #d=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"VXuPx6YU",block:'[[[1,"\\n "],[11,0],[24,0,"relative-time-picker"],[17,1],[12],[1,"\\n "],[11,"input"],[16,"min",[52,[28,[32,0],[[30,0,["interval"]],"mins"],null],1,0.5]],[16,"step",[52,[28,[32,0],[[30,0,["interval"]],"mins"],null],1,0.5]],[16,2,[30,0,["inputValue"]]],[16,1,[30,2]],[24,0,"relative-time-duration"],[24,4,"number"],[4,[32,1],[[30,0,["initValues"]],[30,3],[30,4]],null],[4,[32,2],["change",[30,0,["onChangeDuration"]]],null],[12],[13],[1,"\\n "],[8,[32,3],[[24,0,"relative-time-intervals"]],[["@content","@value","@onChange"],[[30,0,["intervals"]],[30,0,["interval"]],[30,0,["onChangeInterval"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@id","@durationMinutes","@durationHours"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-time-picker.js",scope:()=>[u.eq,a.default,r.on,d.default],isStrictMode:!0}),this))()}},80535:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729),r=n(76417),o=n(82739);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"renderGlimmer",[s.service]))();#rx=(()=>void dt7948.i(this,"renderGlimmer"))();static #n=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"yBAYBs89",block:'[[[42,[28,[31,1],[[28,[31,1],[[30,0,["renderGlimmer","_registrations"]]],null]],null],null,[[[40,[[[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null]],[]],"%cursor:0%",[28,[31,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/render-glimmer-container.js",isStrictMode:!0}),this))()}},60195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(28564),s=n(76417),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"q3vEc+P3",block:'[[[10,0],[14,0,"directory-table-container"],[12],[1,"\\n "],[11,0],[24,0,"directory-table-top-scroll"],[4,[38,1],["scroll",[30,0,["onTopScroll"]]],null],[12],[1,"\\n "],[10,0],[14,0,"directory-table-top-scroll-fake-content"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[11,0],[16,0,[28,[37,2],["directory-table",[30,1]],null]],[24,"role","table"],[16,"aria-label",[30,2]],[16,5,[30,3]],[4,[38,3],[[30,0,["checkScroll"]]],null],[4,[38,4],[[30,0,["checkScroll"]]],null],[4,[38,5],[[30,0,["checkScroll"]]],null],[4,[38,1],["scroll",[30,0,["onBottomScroll"]]],null],[12],[1,"\\n "],[10,0],[14,0,"directory-table__header"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"directory-table__body"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@className","@ariaLabel","@style","&header","&body"],false,["div","on","concat-class","did-insert","did-update","on-resize","yield"]]',moduleName:"discourse/components/responsive-table.hbs",isStrictMode:!1});class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"lastScrollPosition",[i.tracked],function(){return 0}))();#rT=(()=>void dt7948.i(this,"lastScrollPosition"))();static #n=(()=>dt7948.g(this.prototype,"ticking",[i.tracked],function(){return!1}))();#rS=(()=>void dt7948.i(this,"ticking"))();static #i=(()=>dt7948.g(this.prototype,"_table",[i.tracked],function(){return document.querySelector(".directory-table")}))();#rC=(()=>void dt7948.i(this,"_table"))();static #l=(()=>dt7948.g(this.prototype,"_topHorizontalScrollBar",[i.tracked],function(){return document.querySelector(".directory-table-top-scroll")}))();#rE=(()=>void dt7948.i(this,"_topHorizontalScrollBar"))();checkScroll(){let e=document.querySelector(".directory-table-top-scroll-fake-content");this._table.getBoundingClientRect().bottomdt7948.n(this.prototype,"checkScroll",[r.bind]))();onTopScroll(){this.onHorizontalScroll(this._topHorizontalScrollBar,this._table)}static #c=(()=>dt7948.n(this.prototype,"onTopScroll",[r.bind]))();onBottomScroll(){this.onHorizontalScroll(this._table,this._topHorizontalScrollBar)}static #d=(()=>dt7948.n(this.prototype,"onBottomScroll",[r.bind]))();onHorizontalScroll(e,t){this.set("lastScrollPosition",e?.scrollLeft),this.ticking||(window.requestAnimationFrame(()=>{t.scrollLeft=this.lastScrollPosition,this.set("ticking",!1)}),this.set("ticking",!0))}static #p=(()=>dt7948.n(this.prototype,"onHorizontalScroll",[r.bind]))()}(0,s.setComponentTemplate)(o,a)},12781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(54836),l=n(92976),u=n(27147),c=n(64055),d=n(25318),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();get multiple(){return this.args.bundle.actions.length>1}get first(){return this.args.bundle.actions[0]}get placement(){let e=this.site.mobileView?"top":"bottom",t=(0,c.isRTL)()?"end":"start";return`${e}-${t}`}perform(e){if(e){let t=this.args.bundle.actions.find(t=>t.id===e);this.args.performAction(t)}else this.args.performAction(this.first)}static #n=(()=>dt7948.n(this.prototype,"perform",[r.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"9U3p/RCO",block:'[[[1,"\\n"],[41,[30,0,["multiple"]],[[[1," "],[8,[32,0],[[16,0,[28,[32,1],["reviewable-action-dropdown","btn-icon-text",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@nameProperty","@content","@onChange","@options"],["label",[30,1,["actions"]],[30,0,["perform"]],[28,[32,3],null,[["showCaret","disabled","placement","translatedNone"],[true,[30,2],[30,0,["placement"]],[30,1,["label"]]]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[16,0,[28,[32,1],["btn-default reviewable-action",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@action","@translatedLabel","@disabled"],[[30,0,["perform"]],[30,0,["first","label"]],[30,2]]],null],[1,"\\n"]],[]]],[1," "]],["@bundle","@reviewableUpdating"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-bundled-action.js",scope:()=>[d.default,u.default,a.dasherize,s.hash,l.default],isStrictMode:!0}),this))()}},21321:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(41087),l=n(6610),u=n(64149),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"store",[r.service]))();#f=(()=>void dt7948.i(this,"store"))();get enabled(){return"disabled"!==this.siteSettings.reviewable_claiming}async unclaim(){try{await (0,l.ajax)(`/reviewable_claimed_topics/${this.args.topicId}`,{type:"DELETE"}),this.args.onClaim(null)}catch(e){(0,u.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"unclaim",[s.action]))();async claim(){let e=this.store.createRecord("reviewable-claimed-topic");try{await e.save({topic_id:this.args.topicId}),this.args.onClaim(this.currentUser)}catch(e){(0,u.popupAjaxError)(e)}}static #u=(()=>dt7948.n(this.prototype,"claim",[s.action]))();static #c=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"FCCQ6Xu1",block:'[[[1,"\\n"],[41,[30,0,["enabled"]],[[[1," "],[10,0],[14,0,"reviewable-claimed-topic"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"claimed-by"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],[["imageSize"],["small"]]]],[1,"\\n "],[10,1],[14,0,"claimed-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-small unclaim"]],[["@icon","@action","@title"],["xmark",[30,0,["unclaim"]],"review.unclaim.help"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,1],[[24,0,"btn-small claim"]],[["@icon","@title","@action"],["user-plus","review.claim.title",[30,0,["claim"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@claimedBy"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-claimed-topic.js",scope:()=>[a.default,o.default],isStrictMode:!0}),this))()}},28583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(5938);let r=(0,n(82739).createTemplateFactory)({id:"UdnRSMHG",block:'[[[41,[30,0,["post"]],[[[1," "],[10,0],[14,0,"reviewable-conversation-post"],[12],[1,"\\n"],[41,[30,0,["showUsername"]],[[[1," "],[8,[39,2],[[24,0,"username"]],[["@route","@model"],["user",[30,0,["post","user"]]]],[["default"],[[[[1,"@"],[1,[30,0,["post","user","username"]]]],[]]]]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,3],[[30,0,["post","excerpt"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","link-to","html-safe"]]',moduleName:"discourse/components/reviewable-conversation-post.hbs",isStrictMode:!1});class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"showUsername",[(0,s.gte)("index",1)]))();#rA=(()=>void dt7948.i(this,"showUsername"))()}(0,i.setComponentTemplate)(r,o)},7976:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(39882),s=n(59874),r=n(14541),o=n(21237),a=n(51969),l=n(76417),u=n(82739),c=n(88606);let d=(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"8ZY6CgB9",block:'[[[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,[30,1,["username"]]]],[]]]]],[1,"\\n"],[41,[30,1,["silenced"]],[[[1," "],[1,[28,[32,1],["ban"],[["title"],["user.silenced_tooltip"]]]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[32,2],["review.deleted_user"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-post-user","div",[28,[32,4],null,[["user"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-created-by-name.js",scope:()=>[r.default,o.default,a.i18n,s.default,i.hash],isStrictMode:!0}),(0,c.default)(void 0,"reviewable-created-by-name:ReviewableCreatedByName"))},12217:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(14541),s=n(41087),r=n(21237),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"IyuF2Yo1",block:'[[[1,"\\n "],[10,0],[14,0,"created-by"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,[28,[32,1],[[30,1]],[["imageSize"],["large"]]]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["trash-can"],[["class"],["deleted-user-avatar"]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-created-by.js",scope:()=>[i.default,s.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"reviewable-created-by:ReviewableCreatedBy"))},72584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(28564),r=n(70001);let o=(0,n(82739).createTemplateFactory)({id:"HLHNYAx5",block:'[[[8,[39,0],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onChange"]]]],null]],[],false,["category-chooser"]]',moduleName:"discourse/components/reviewable-field-category.hbs",isStrictMode:!1}),a=(0,n(76417).setComponentTemplate)(o,class extends i.default{static #e=(()=>dt7948.g(this.prototype,"categoryId",[s.tracked],function(){return this.args.value}))();#nI=(()=>void dt7948.i(this,"categoryId"))();onChange(e){this.categoryId=e,this.args.categoryChanged?.(e)}static #n=(()=>dt7948.n(this.prototype,"onChange",[r.action]))()})},21014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"adhFukNT",block:'[[[8,[39,0],null,[["@value","@change"],[[30,0,["value"]],[30,0,["valueChanged"]]]],null]],[],false,["d-editor"]]',moduleName:"discourse/components/reviewable-field-editor.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},96453:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(70001);let r=(0,n(82739).createTemplateFactory)({id:"JKyUkA0b",block:'[[[8,[39,0],null,[["@value","@onChange","@options"],[[30,0,["value"]],[28,[37,1],[[30,0],"onChange"],null],[28,[37,2],null,[["categoryId"],[[30,0,["tagCategoryId"]]]]]]],null]],[],false,["mini-tag-chooser","action","hash"]]',moduleName:"discourse/components/reviewable-field-tags.hbs",isStrictMode:!1});class o extends i.default{onChange(e){this.set("value",e),this.valueChanged&&this.valueChanged({target:{value:e}})}static #e=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()}(0,i.setComponentTemplate)(r,o)},377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"tBQ611mt",block:'[[[8,[39,0],[[24,0,"reviewable-input-text"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["input","on"]]',moduleName:"discourse/components/reviewable-field-text.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},36076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"qWCiGgyG",block:'[[[8,[39,0],[[24,0,"reviewable-input-textarea"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["textarea","on"]]',moduleName:"discourse/components/reviewable-field-textarea.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},23623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"6yUsHrKk",block:'[[[41,[30,0,["value"]],[[[1," "],[10,0],[15,0,[30,0,["classes"]]],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,[30,0,["value"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div"]]',moduleName:"discourse/components/reviewable-field.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},22792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(28564),r=n(70001),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"6RnTtrWW",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n "],[8,[39,2],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n "],[11,0],[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]],[4,[38,6],[[30,0,["calculatePostBodySize"]],[30,1]],null],[12],[1,"\\n"],[41,[30,1,["blank_post"]],[[[1," "],[10,2],[12],[1,[28,[35,8],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[30,1,["cooked"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[39,10],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,12],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-flagged-post-body","div",[28,[37,13],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["div","reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","did-insert","p","i18n","html-safe","d-button","span","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/reviewable-flagged-post.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"isCollapsed",[s.tracked],function(){return!1}))();#rD=(()=>void dt7948.i(this,"isCollapsed"))();static #n=(()=>dt7948.g(this.prototype,"isLongPost",[s.tracked],function(){return!1}))();#rI=(()=>void dt7948.i(this,"isLongPost"))();maxPostHeight=300;toggleContent(){this.isCollapsed=!this.isCollapsed}static #i=(()=>dt7948.n(this.prototype,"toggleContent",[r.action]))();calculatePostBodySize(e){e?.offsetHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}static #l=(()=>dt7948.n(this.prototype,"calculatePostBodySize",[o.bind]))();get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}}(0,l.setComponentTemplate)(a,u)},35647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(5938);let r=(0,n(82739).createTemplateFactory)({id:"Yzm1Ja/g",block:'[[[41,[30,0,["filteredHistories"]],[[[1," "],[10,"table"],[14,0,"reviewable-histories"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,"colspan","3"],[12],[1,[28,[35,5],["review.history.title"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["filteredHistories"]]],null]],null],null,[[[41,[51,[30,1,["created"]]],[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,11],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,12],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,13],[[30,1,["created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,1,["created_by","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[35,14],[[30,1,["created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["rh"],false,["if","table","thead","tr","th","i18n","tbody","each","-track-array","unless","td","reviewable-history-description","user-link","avatar","format-date"]]',moduleName:"discourse/components/reviewable-histories.hbs",isStrictMode:!1});class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"filteredHistories",[(0,s.filterBy)("histories","created",!1)]))();#rP=(()=>void dt7948.i(this,"filteredHistories"))()}(0,i.setComponentTemplate)(r,o)},19821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginReviewableParam:()=>C,default:()=>D,registerReviewableActionModal:()=>E});var i=n(76417),s=n(70001),r=n(71597),o=n(54729),a=n(54836),l=n(93223),u=n(17533),c=n(69553),d=n(54355),p=n(6610),h=n(64149),m=n(40710),g=n(88253),f=n(2151),_=n(46606),y=n(62797),b=n(51969);let w=(0,n(82739).createTemplateFactory)({id:"CoD3gUam",block:'[[[10,0],[15,"data-reviewable-id",[30,0,["reviewable","id"]]],[15,0,[29,["reviewable-item ",[30,0,["customClasses"]]]]],[12],[1,"\\n "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n "],[10,1],[15,0,[28,[37,2],["reviewable-type",[30,0,["reviewable","humanTypeCssClass"]]],null]],[12],[1,[30,0,["reviewable","humanType"]]],[13],[1,"\\n"],[41,[30,0,["reviewable","reply_count"]],[[[1," "],[10,1],[14,0,"reply-count"],[12],[1,[28,[35,4],["review.replies"],[["count"],[[30,0,["reviewable","reply_count"]]]]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"created-at"],[12],[1,"\\n "],[8,[39,5],null,[["@route","@model"],["review.show",[30,0,["reviewable","id"]]]],[["default"],[[[[1,[28,[35,6],[[30,0,["reviewable","created_at"]]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"status"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["reviewable","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n "],[13],[1,"\\n "],[11,3],[24,6,""],[16,"title",[28,[37,4],["review.explain.why"],null]],[24,0,"explain"],[4,[38,9],["click",[28,[37,10],[[30,0,["explainReviewable"]],[30,0,["reviewable"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,11],["circle-question"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"reviewable-contents"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,0],[14,0,"editable-fields"],[12],[1,"\\n"],[41,[30,0,["reviewable","created_by"]],[[[1," "],[10,0],[14,0,"editable-created-by"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["reviewable","created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[8,[39,13],null,[["@user"],[[30,0,["reviewable","created_by"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["reviewable","editable_fields"]]],null]],null],null,[[[1," "],[10,0],[15,0,[29,["editable-field ",[28,[37,16],[[30,1,["id"]]],null]]]],[12],[1,"\\n "],[46,[28,[37,18],["reviewable-field-",[30,1,["type"]]],null],null,[["tagName","value","tagCategoryId","valueChanged","categoryChanged"],["",[28,[37,19],[[30,0,["reviewable"]],[30,1,["id"]]],null],[30,0,["tagCategoryId"]],[28,[37,20],[[30,0],"valueChanged",[30,1,["id"]]],null],[28,[37,20],[[30,0],"categoryChanged"],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],[[[44,[[50,[30,0,["reviewableComponent"]],0,null,[["reviewable","tagName"],[[30,0,["reviewable"]],""]]]],[[[1," "],[1,"\\n "],[8,[30,2],null,null,[["default"],[[[[1,"\\n "],[8,[39,22],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[2]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["displayContextQuestion"]],[[[1," "],[10,"h3"],[14,0,"reviewable-item__context-question"],[12],[1,"\\n "],[1,[30,0,["reviewable","flaggedReviewableContextQuestion"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n"],[41,[51,[30,0,["reviewable","last_performing_username"]]],[[[41,[30,0,["canPerform"]],[[[41,[30,0,["editing"]],[[[1," "],[8,[39,25],[[24,0,"btn-primary reviewable-action save-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"check",[28,[37,20],[[30,0],"saveEdit"],null],"review.save"]],null],[1,"\\n "],[8,[39,25],[[24,0,"btn-danger reviewable-action cancel-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"xmark",[28,[37,20],[[30,0],"cancelEdit"],null],"review.cancel"]],null],[1,"\\n"]],[]],[[[42,[28,[37,15],[[28,[37,15],[[30,0,["reviewable","bundled_actions"]]],null]],null],null,[[[1," "],[8,[39,26],null,[["@bundle","@performAction","@reviewableUpdating"],[[30,3],[28,[37,20],[[30,0],"perform"],null],[30,0,["disabled"]]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["reviewable","can_edit"]],[[[1," "],[8,[39,25],[[24,0,"reviewable-action btn-default edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"pencil",[28,[37,20],[[30,0],"edit"],null],"review.edit"]],null],[1,"\\n"]],[]],null]],[]]]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["reviewable","last_performing_username"]],[[[1," "],[10,0],[14,0,"stale-help"],[12],[1,[28,[35,27],[[28,[37,4],["review.stale_help"],[["username"],[[30,0,["reviewable","last_performing_username"]]]]]],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["claimEnabled"]],[[[1," "],[10,0],[14,0,"claimed-actions"],[12],[1,"\\n "],[10,1],[14,0,"help"],[12],[1,[28,[35,27],[[30,0,["claimHelp"]]],null]],[13],[1,"\\n "],[8,[39,28],null,[["@topicId","@claimedBy","@onClaim"],[[30,0,["topicId"]],[30,0,["reviewable","claimed_by"]],[28,[37,10],[[28,[37,29],[[30,0,["reviewable","claimed_by"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n "],[8,[39,30],null,[["@name","@connectorTagName","@outletArgs"],["reviewable-item-actions","div",[28,[37,31],null,[["reviewable"],[[30,0,["reviewable"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["f","ReviewableComponent","bundle"],false,["div","span","concat-class","if","i18n","link-to","age-with-tooltip","reviewable-status","a","on","fn","d-icon","avatar","reviewable-created-by-name","each","-track-array","dasherize","component","concat","editable-value","action","let","reviewable-scores","h3","unless","d-button","reviewable-bundled-action","html-safe","reviewable-claimed-topic","mut","plugin-outlet","hash"]]',moduleName:"discourse/components/reviewable-item.hbs",isStrictMode:!1}),k={},x={},T={revise_and_reject_post:d.default},S={...T};function C(e,t){x[e]?x[e].push(t):x[e]=[t]}function E(e,t){if(Object.keys(T).includes(e))throw Error(`Cannot override default action modal class for ${e} (mapped to ${T[e].name})!`);S[e]=t}let A=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #c=(()=>dt7948.g(this.prototype,"adminTools",[m.default]))();#ig=(()=>void dt7948.i(this,"adminTools"))();updating=null;editing=!1;_updates=null;customClasses(e,t,n,i,s){let r=(0,a.dasherize)(e);return t&&(r=`${r} reviewable-stale`),n&&0===i&&(r=`${r} blur-images`),s&&(r=`${r} reviewable-deleted`),r}static #d=(()=>dt7948.n(this.prototype,"customClasses",[(0,y.default)("reviewable.type","reviewable.last_performing_username","siteSettings.blur_tl0_flagged_posts_media","reviewable.target_created_by_trust_level","reviewable.deleted_at")]))();displayContextQuestion(e,t,n,i,s){return e&&0===t&&(n||i&&null!==s)}static #p=(()=>dt7948.n(this.prototype,"displayContextQuestion",[(0,y.default)("reviewable.created_from_flag","reviewable.status","claimOptional","claimRequired","reviewable.claimed_by")]))();topicId(e,t,n){return e&&e.id||t||n}static #h=(()=>dt7948.n(this.prototype,"topicId",[(0,y.default)("reviewable.topic","reviewable.topic_id","reviewable.removed_topic_id")]))();claimEnabled(e,t){return"disabled"!==e&&!!t}static #m=(()=>dt7948.n(this.prototype,"claimEnabled",[(0,y.default)("siteSettings.reviewable_claiming","topicId")]))();claimOptional(e,t){return!t||"optional"===e}static #g=(()=>dt7948.n(this.prototype,"claimOptional",[(0,y.default)("siteSettings.reviewable_claiming","claimEnabled")]))();claimRequired(e,t){return t&&"required"===e}static #E=(()=>dt7948.n(this.prototype,"claimRequired",[(0,y.default)("siteSettings.reviewable_claiming","claimEnabled")]))();canPerform(e,t,n){return!e||(n?n.id===this.currentUser.id:"required"!==t)}static #A=(()=>dt7948.n(this.prototype,"canPerform",[(0,y.default)("claimEnabled","siteSettings.reviewable_claiming","reviewable.claimed_by")]))();claimHelp(e,t){return t?t.id===this.currentUser.id?(0,b.i18n)("review.claim_help.claimed_by_you"):(0,b.i18n)("review.claim_help.claimed_by_other",{username:t.username}):"optional"===e?(0,b.i18n)("review.claim_help.optional"):(0,b.i18n)("review.claim_help.required")}static #D=(()=>dt7948.n(this.prototype,"claimHelp",[(0,y.default)("siteSettings.reviewable_claiming","reviewable.claimed_by")]))();reviewableComponent(e){if(void 0!==k[e])return k[e];let t=(0,a.dasherize)(e),n=(0,r.getOwner)(this),i=n.hasRegistration(`component:${t}`)||n.hasRegistration(`template:components/${t}`);return k[e]=i?t:null,k[e]}static #I=(()=>dt7948.n(this.prototype,"reviewableComponent",[(0,y.default)("reviewable.type")]))();tagCategoryId(e,t){return e||t}static #G=(()=>dt7948.n(this.prototype,"tagCategoryId",[(0,y.default)("_updates.category_id","reviewable.category.id")]))();_performConfirmed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.reviewable,i=()=>{let i=n.get("version");this.set("updating",!0);let s={send_email:n.sendEmail,reject_reason:n.rejectReason,...t};return(x[n.type]||[]).forEach(e=>{n[e]&&(s[e]=n[e])}),(0,p.ajax)(`/review/${n.id}/perform/${e.server_action}?version=${i}`,{type:"PUT",dataType:"json",data:s}).then(e=>{let t=e.reviewable_perform_result;if(void 0!==t.reviewable_count&&this.currentUser.updateReviewableCount(t.reviewable_count),void 0!==t.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",t.unseen_reviewable_count),!this.remove)return this.store.find("reviewable",n.id);this.remove(t.remove_reviewable_ids)}).catch(h.popupAjaxError).finally(()=>this.set("updating",!1))};if(!e.client_action)return i();{let t=this[`client${(0,a.classify)(e.client_action)}`];return t?t.call(this,n,i):void console.error(`No handler for ${e.client_action} found`)}}static #Y=(()=>dt7948.n(this.prototype,"_performConfirmed",[y.bind]))();clientSuspend(e,t){this._penalize("showSuspendModal",e,t)}clientSilence(e,t){this._penalize("showSilenceModal",e,t)}async clientEdit(e,t){if(!this.currentUser)return this.dialog.alert((0,b.i18n)("post.controls.edit_anonymous"));let n=await this.store.find("post",e.post_id),i=await _.default.find(n.topic_id,{}),s=_.default.create(i);if(n.set("topic",s),!n.can_edit)return!1;let r={post:n,action:f.default.EDIT,draftKey:n.get("topic.draft_key"),draftSequence:n.get("topic.draft_sequence"),skipDraftCheck:!0,skipJumpOnSave:!0};return this.composer.open(r),t()}_penalize(e,t,n){let i=this.adminTools;if(i){let s=t.get("target_created_by"),r=t.get("post_id"),o=t.get("raw");return i[e](s,{postId:r,postEdit:o,before:n})}}explainReviewable(e,t){t.preventDefault(),this.modal.show(u.default,{model:{reviewable:e}})}static #Q=(()=>dt7948.n(this.prototype,"explainReviewable",[s.action]))();edit(){this.set("editing",!0),this.set("_updates",{payload:{}})}static #J=(()=>dt7948.n(this.prototype,"edit",[s.action]))();cancelEdit(){this.set("editing",!1)}static #X=(()=>dt7948.n(this.prototype,"cancelEdit",[s.action]))();saveEdit(){let e=this._updates;return Object.keys(e).forEach(t=>{let n=e[t];"object"==typeof n&&0===Object.keys(n).length&&delete e[t]}),this.set("updating",!0),this.reviewable.update(e).then(()=>this.set("editing",!1)).catch(h.popupAjaxError).finally(()=>this.set("updating",!1))}static #Z=(()=>dt7948.n(this.prototype,"saveEdit",[s.action]))();categoryChanged(e){let t=g.default.findById(e);t||(t=g.default.findUncategorized()),(0,s.set)(this._updates,"category_id",t.id)}static #ee=(()=>dt7948.n(this.prototype,"categoryChanged",[s.action]))();valueChanged(e,t){(0,s.set)(this._updates,e,t.target.value)}static #et=(()=>dt7948.n(this.prototype,"valueChanged",[s.action]))();perform(e){if(this.updating)return;let t=e.get("confirm_message"),n=e.get("require_reject_reason")?c.default:S[e.server_action];if(t)this.dialog.confirm({message:t,didConfirm:()=>this._performConfirmed(e)});else{if(!n)return this._performConfirmed(e);this.modal.show(n,{model:{reviewable:this.reviewable,performConfirmed:this._performConfirmed,action:e}})}}static #en=(()=>dt7948.n(this.prototype,"perform",[s.action]))()},[(0,l.tagName)("")]),D=(0,i.setComponentTemplate)(w,A)},7639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(76417),s=n(70001),r=n(5938),o=n(54729),a=n(1177),l=n(38536),u=n(93028),c=n(62797);let d=(0,n(82739).createTemplateFactory)({id:"2pZ5zfkn",block:'[[[41,[30,0,["hasEdits"]],[[[1," "],[11,3],[24,6,""],[16,0,[29,["has-edits ",[30,0,["historyClass"]]]]],[16,"title",[28,[37,2],["post.last_edited_on"],[["dateTime"],[[30,0,["editedDate"]]]]]],[4,[38,3],["click",[30,0,["showEditHistory"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["pencil"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","a","i18n","on","d-icon"]]',moduleName:"discourse/components/reviewable-post-edits.hbs",isStrictMode:!1});class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"hasEdits",[(0,r.gt)("reviewable.post_version",1)]))();#rM=(()=>void dt7948.i(this,"hasEdits"))();historyClass(e){return(0,u.historyHeat)(this.siteSettings,new Date(e))}static #i=(()=>dt7948.n(this.prototype,"historyClass",[(0,c.default)("reviewable.post_updated_at")]))();editedDate(e){return(0,l.longDate)(e)}static #l=(()=>dt7948.n(this.prototype,"editedDate",[(0,c.default)("reviewable.post_updated_at")]))();showEditHistory(e){e?.preventDefault();let t=this.get("reviewable.post_id");this.store.find("post",t).then(e=>{this.modal.show(a.default,{model:{post:e,postId:t,postVersion:"latest",topicController:null}})})}static #u=(()=>dt7948.n(this.prototype,"showEditHistory",[s.action]))()}(0,i.setComponentTemplate)(d,p)},91484:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"dR6cZYqQ",block:'[[[10,0],[14,0,"reviewable-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@user"],[[30,0,["createdBy"]]]],null],[1,"\\n"],[41,[30,0,["reviewable","reply_to_post_number"]],[[[1," "],[10,3],[15,6,[28,[37,4],[[30,0,["reviewable","topic_url"]],"/",[30,0,["reviewable","reply_to_post_number"]]],null]],[14,0,"reviewable-reply-to"],[12],[1,"\\n "],[1,[28,[35,5],["share"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,7],["review.in_reply_to"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","reviewable-created-by-name","if","a","concat","d-icon","span","i18n"]]',moduleName:"discourse/components/reviewable-post-header.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},11819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"6iUQ6uSz",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n "],[8,[39,2],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@user"],[[30,0,["reviewable","target_created_by"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,4],null,[["@reviewable","@createdBy","@tagName"],[[30,0,["reviewable"]],[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n "],[10,0],[14,0,"post-body"],[12],[1,"\\n"],[41,[30,0,["reviewable","blank_post"]],[[[1," "],[10,2],[12],[1,[28,[35,7],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],[[30,0,["reviewable","cooked"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"],[13]],["&default"],false,["div","reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","p","i18n","html-safe","yield"]]',moduleName:"discourse/components/reviewable-post.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},72642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(48945);let l=(0,n(82739).createTemplateFactory)({id:"2G6hk4yj",block:'[[[8,[39,0],null,[["@reviewable","@tagName"],[[30,1],""]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"title-text"],[12],[1,"\\n "],[1,[28,[35,2],["square-plus"],[["title"],["review.new_topic"]]]],[1,"\\n "],[1,[30,1,["payload","title"]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,3],[[30,1,["category"]]],null]],[1,"\\n "],[8,[39,4],null,[["@tags","@tagName"],[[30,1,["payload","tags"]],""]],null],[1,"\\n"],[41,[30,1,["payload","via_email"]],[[[1," "],[11,3],[24,6,""],[24,0,"show-raw-email"],[4,[38,7],["click",[30,0,["showRawEmail"]]],null],[12],[1,"\\n "],[1,[28,[35,2],["envelope"],[["title"],["post.via_email"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[39,8],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[39,9],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n\\n "],[8,[39,10],[[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]]],[["@rawText","@categoryId","@topicId","@paintOneboxes","@opts","@onOffsetHeightCalculated"],[[30,1,["payload","raw"]],[30,1,["category_id"]],[30,1,["topic_id"]],true,[28,[37,11],null,[["removeMissing"],[true]]],[30,0,["setPostBodyHeight"]]]],null],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[39,12],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["reviewable-topic-link","div","d-icon","category-badge","reviewable-tags","if","a","on","reviewable-created-by","reviewable-post-header","cook-text","hash","d-button","yield"]]',moduleName:"discourse/components/reviewable-queued-post.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"isCollapsed",[s.tracked],function(){return!1}))();#rD=(()=>void dt7948.i(this,"isCollapsed"))();static #i=(()=>dt7948.g(this.prototype,"isLongPost",[s.tracked],function(){return!1}))();#rI=(()=>void dt7948.i(this,"isLongPost"))();static #l=(()=>dt7948.g(this.prototype,"postBodyHeight",[s.tracked],function(){return 0}))();#rF=(()=>void dt7948.i(this,"postBodyHeight"))();maxPostHeight=300;showRawEmail(e){e?.preventDefault(),this.modal.show(a.default,{model:{rawEmail:this.args.reviewable.payload.raw_email}})}static #u=(()=>dt7948.n(this.prototype,"showRawEmail",[r.action]))();toggleContent(){this.isCollapsed=!this.isCollapsed}static #c=(()=>dt7948.n(this.prototype,"toggleContent",[r.action]))();get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}setPostBodyHeight(e){this.postBodyHeight=e,this.postBodyHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}static #d=(()=>dt7948.n(this.prototype,"setPostBodyHeight",[r.action]))()}(0,u.setComponentTemplate)(l,c)},90560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(5938),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"b/yfFLzJ",block:'[[[10,"tr"],[14,0,"reviewable-score"],[12],[1,"\\n "],[10,"td"],[14,0,"user"],[12],[1,"\\n "],[8,[39,2],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,0,["rs","user"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,0,["rs","user","username"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["rs","created_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,5],[[30,0,["rs","score_type","icon"]]],null]],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showStatus"]],[[[1," "],[10,"td"],[14,0,"reviewed-by"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1," "],[8,[39,2],null,[["@user"],[[30,0,["rs","reviewed_by"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,0,["rs","reviewed_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n "],[1,[30,0,["rs","reviewed_by","username"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," —\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1," "],[1,[28,[35,4],[[30,0,["rs","reviewed_at"]]],[["format"],["tiny"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[35,7],[[30,0,["rs","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"]],[]],[[[1," "],[10,"td"],[14,"colspan","4"],[12],[13],[1,"\\n"]],[]]],[13]],[],false,["tr","td","user-link","avatar","format-date","d-icon","if","reviewable-status"]]',moduleName:"discourse/components/reviewable-score.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"showStatus",[(0,s.gt)("rs.status",0)]))();#rN=(()=>void dt7948.i(this,"showStatus"))();title(e,t){return e&&t?e.replace(/{{username}}|%{username}/,t.username):e}static #n=(()=>dt7948.n(this.prototype,"title",[(0,o.default)("rs.score_type.title","reviewable.target_created_by")]))()},[(0,r.tagName)("")]),u=(0,i.setComponentTemplate)(a,l)},73806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"RW92kHi2",block:'[[[41,[30,0,["reviewable","reviewable_scores"]],[[[1," "],[10,0],[14,0,"reviewable-scores__table-wrapper"],[12],[1,"\\n "],[10,"table"],[14,0,"reviewable-scores"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.submitted_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.date"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.type"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.reviewed_by"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.reviewed_timestamp"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[35,6],["review.scores.status"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[1," "],[8,[39,10],null,[["@rs","@reviewable"],[[30,1],[30,0,["reviewable"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[41,[30,2,["reason"]],[[[1," "],[10,0],[14,0,"reviewable-score-reason"],[12],[1,[28,[35,11],[[30,2,["reason"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["reviewable_conversation"]],[[[1," "],[10,0],[14,0,"reviewable-conversation"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,2,["reviewable_conversation","conversation_posts"]]],null]],null],null,[[[1," "],[8,[39,12],null,[["@post","@index"],[[30,3],[30,4]]],null],[1,"\\n"]],[3,4]],null],[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["reviewable_conversation","permalink"]]],[14,0,"btn btn-small"],[12],[1,"\\n "],[1,[28,[35,6],["review.conversation.view_full"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"]],[]],null]],["rs","rs","p","index"],false,["if","div","table","thead","tr","th","i18n","tbody","each","-track-array","reviewable-score","html-safe","reviewable-conversation-post","a"]]',moduleName:"discourse/components/reviewable-scores.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},79902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"HhQegpnE",block:'[[[41,[30,0,["tags"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[42,[28,[37,3],[[28,[37,3],[[30,0,["tags"]]],null]],null],null,[[[1,[28,[35,4],[[30,1]],null]]],[1]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["t"],false,["if","div","each","-track-array","discourse-tag"]]',moduleName:"discourse/components/reviewable-tags.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},80751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"Ern8OUiJ",block:'[[[10,0],[14,0,"post-topic"],[12],[1,"\\n"],[41,[30,0,["reviewable","topic"]],[[[1," "],[8,[39,2],null,[["@topic","@showPrivateMessageIcon"],[[30,0,["reviewable","topic"]],true]],null],[1,"\\n "],[10,3],[15,6,[30,0,["reviewable","target_url"]]],[14,0,"title-text"],[12],[1,[28,[35,4],[[30,0,["reviewable","topic","fancyTitle"]]],null]],[13],[1,"\\n "],[1,[28,[35,5],[[30,0,["reviewable","category"]]],null]],[1,"\\n "],[8,[39,6],null,[["@tags","@tagName"],[[30,0,["reviewable","topic_tags"]],""]],null],[1,"\\n"]],[]],[[[41,[48,[30,1]],[[[1," "],[18,1,null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"title-text"],[12],[1,"\\n "],[1,[28,[35,10],["review.topics.deleted"],null]],[1,"\\n "],[8,[39,11],null,[["@route","@models"],["topic",[28,[37,12],["-",[30,0,["reviewable","removed_topic_id"]]],null]]],[["default"],[[[[1,[28,[35,10],["review.topics.original"],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[13]],["&default"],false,["div","if","topic-status","a","html-safe","category-badge","reviewable-tags","has-block","yield","span","i18n","link-to","array"]]',moduleName:"discourse/components/reviewable-topic-link.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},63531:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(62797);let r=(0,n(82739).createTemplateFactory)({id:"1zfFC7V1",block:'[[[10,0],[14,0,"reviewable-user-info"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-user-fields"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-user-details username"],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[28,[35,1],["review.user.username"],null]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,"\\n"],[41,[30,0,["reviewable","link_admin"]],[[[1," "],[10,3],[15,6,[28,[37,4],[[28,[37,5],["/admin/users/",[30,0,["reviewable","user_id"]],"/",[30,0,["reviewable","payload","username"]]],null]],null]],[12],[1,"\\n "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details name",[28,[37,1],["review.user.name"],null],[30,0,["reviewable","payload","name"]]]],null],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details email",[28,[37,1],["review.user.email"],null],[30,0,["reviewable","payload","email"]]]],null],[1,"\\n\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details bio",[28,[37,1],["review.user.bio"],null],[30,0,["reviewable","payload","bio"]]]],null],[1,"\\n\\n"],[41,[30,0,["reviewable","payload","website"]],[[[1," "],[10,0],[14,0,"reviewable-user-details website"],[12],[1,"\\n "],[10,0],[14,0,"name"],[12],[1,[28,[35,1],["review.user.website"],null]],[13],[1,"\\n "],[10,0],[14,0,"value"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["reviewable","payload","website"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["reviewable","payload","website"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@classes","@name","@value"],["reviewable-user-details reject-reason",[28,[37,1],["review.user.reject_reason"],null],[30,0,["reviewable","reject_reason"]]]],null],[1,"\\n\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["userFields"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@classes","@name","@value","@tagName"],["reviewable-user-details user-field",[30,1,["name"]],[30,1,["value"]],""]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n "],[18,2,null],[1,"\\n"],[13]],["f","&default"],false,["div","i18n","if","a","get-url","concat","reviewable-field","each","-track-array","yield"]]',moduleName:"discourse/components/reviewable-user.hbs",isStrictMode:!1});class o extends i.default{userFields(e){return this.site.collectUserFields(e)}static #e=(()=>dt7948.n(this.prototype,"userFields",[(0,s.default)("reviewable.user_fields")]))()}(0,i.setComponentTemplate)(r,o)},28180:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(5938),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"l7eGBclQ",block:'[[[8,[39,0],[[24,0,"btn-primary save-changes"]],[["@action","@disabled","@label"],[[30,0,["action"]],[30,0,["buttonDisabled"]],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1," "],[10,1],[14,0,"saved"],[12],[1,[28,[35,3],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,1,null]],["&default"],false,["d-button","if","span","i18n","yield"]]',moduleName:"discourse/components/save-controls.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"buttonDisabled",[(0,s.or)("model.isSaving","saveDisabled")]))();#rO=(()=>void dt7948.i(this,"buttonDisabled"))();didInsertElement(){super.didInsertElement(...arguments),this.set("saved",!1)}savingText(e){return e?"saving":"save"}static #n=(()=>dt7948.n(this.prototype,"savingText",[(0,o.default)("model.isSaving")]))()},[(0,r.classNames)("controls","save-button")]),u=(0,i.setComponentTemplate)(a,l)},90045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(51969),r=n(76417),o=n(82739);class a extends i.default{get numericValue(){return parseFloat(Math.abs(this.args.value)).toFixed(1)}get isNegative(){return this.args.value<0}get explanationTitle(){return(0,s.i18n)(`review.explain.${this.args.label}.title`)}get explanationContent(){return(0,s.i18n)(`review.explain.${this.args.label}.name`)}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"0/NcLGRO",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[14,0,"op"],[12],[1,[52,[30,0,["isNegative"]],"-","+"]],[13],[1,"\\n "],[10,1],[14,0,"score-value"],[12],[1,"\\n "],[10,1],[14,0,"score-number"],[12],[1,[30,0,["numericValue"]]],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,1],[15,"title",[30,0,["explanationTitle"]]],[14,0,"score-value-type"],[12],[1,"\\n "],[1,[30,0,["explanationContent"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@value","@label"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/score-value.js",isStrictMode:!0}),this))()}},51676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(42433),s=n(54729),r=n(25710),o=n(8032),a=n(52051),l=n(56839),u=n(29329),c=n(84262),d=n(62797),p=n(9475);class h extends r.default{static #e=(()=>dt7948.g(this.prototype,"screenTrack",[s.service]))();#rL=(()=>void dt7948.i(this,"screenTrack"))();widget="post-stream";_topVisible=null;_bottomVisible=null;_currentPostObj=null;_currentVisible=null;_currentPercent=null;buildArgs(){return this.getProperties("posts","canCreatePost","filteredPostsCount","multiSelect","gaps","selectedQuery","selectedPostsCount","searchService","showReadIndicator","streamFilters","lastReadPostNumber","highestPostNumber")}scrolled(){if(this.isDestroyed||this.isDestroying||(0,a.isWorkaroundActive)()||document.webkitFullscreenElement||document.fullscreenElement)return;let e=document.elementFromPoint(0,0);if(e&&"IFRAME"===e.tagName.toUpperCase())return;let t=window.innerHeight,n=Math.round(5*t),s=[],r=[],l=document.scrollingElement.scrollTop,c=p.default.offset(document.querySelector(".posts-wrapper")).top,d=this.element.querySelectorAll(".onscreen-post, .cloaked-post"),h=function(e,t,n,i,s){if(si;){let r=Math.floor((i+s)/2),o=e.item(r);p.default.offset(o).top-n+o.clientHeight>t?s=r-1:i=r+1}return i}(d,l-n,c,0,d.length-1),m=l+t,g=m+n,f=document.body.clientHeight;m>f&&(m=f),g>f&&(g=f);let _=null,y=null,b=Math.ceil(l+(0,o.default)()+5),w=!0,k=h,x=0;for(;kg)break;i>=l&&t<=m&&s.push(k),null===_&&(t<=b&&i>=b||x<=b&&t>=b)&&(y=(b-t)/n,_=k),x=i,r.push(k),k++}w&&(null===y&&(y=1),null===_&&(_=k-1));let T=this.posts,S=e=>this.queueRerender(e);if(s.length){let e=T.objectAt(s[0]);if(this._topVisible!==e){this._topVisible=e;let t=d.item(s[0]).id;this.topVisibleChanged({post:e,refresh:()=>{S(()=>{let e=document.getElementById(t);if(!e)return;let n=e=>e?e.offsetTop+n(e.offsetParent):0;window.scrollTo({top:n(e)-(0,o.default)()}),(0,i.schedule)("afterRender",()=>{window.scrollTo({top:n(e)-(0,o.default)()})})})}})}let t=T.objectAt(s[s.length-1]);this._bottomVisible!==t&&(this._bottomVisible=t,this.bottomVisibleChanged({post:t,refresh:S}));let n=T.objectAt(_),r=this._currentPostObj!==n;r&&(this._currentPostObj=n,this.currentPostChanged({post:n})),null!==y&&(y=Math.max(0,Math.min(1,y)),(r||this._currentPercent!==y)&&(this._currentPercent=y,this.currentPostScrolled({percent:y})))}else this._topVisible=null,this._bottomVisible=null,this._currentPostObj=null,this._currentPercent=null;let C=new Set,E=new Set,A=new Set;r.forEach(e=>{let t=T.objectAt(e);this._previouslyNearby.delete(t.post_number),s.includes(e)&&(C.add(t.post_number),t.read&&E.add(t.post_number)),A.add(t.post_number,t),(0,u.uncloak)(t,this)}),Object.values(this._previouslyNearby).forEach(e=>(0,u.cloak)(e,this)),this._previouslyNearby=A,this.screenTrack.setOnscreen(C,E)}_scrollTriggered(){(0,i.scheduleOnce)("afterRender",this,this.scrolled)}_posted(e){this.queueRerender(()=>{if(e){let t=e.post_number;l.default.jumpToPost(t,{skipIfOnScreen:!0})}})}_refresh(e){e&&(e.id?(this.dirtyKeys.keyDirty(`post-${e.id}`),e.refreshLikes&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshLikes"}),e.refreshReaders&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshReaders"})):e.force&&this.dirtyKeys.forceAll()),this.queueRerender(),this._scrollTriggered()}_debouncedScroll(){(0,c.default)(this,this._scrollTriggered,50)}static #n=(()=>dt7948.n(this.prototype,"_debouncedScroll",[d.bind]))();didInsertElement(){super.didInsertElement(...arguments),this._previouslyNearby=new Set,this.appEvents.on("post-stream:refresh",this,"_debouncedScroll");let e={passive:!0};document.addEventListener("touchmove",this._debouncedScroll,e),window.addEventListener("scroll",this._debouncedScroll,e),this._scrollTriggered(),this.appEvents.on("post-stream:posted",this,"_posted"),this.element.addEventListener("mouseenter",this._handleWidgetButtonHoverState,!0),this.element.addEventListener("mouseleave",this._removeWidgetButtonHoverState,!0),this.appEvents.on("post-stream:refresh",this,"_refresh"),window.onpageshow=function(e){e.persisted&&l.default.routeTo(this.location.pathname)}}willDestroyElement(){super.willDestroyElement(...arguments),document.removeEventListener("touchmove",this._debouncedScroll),window.removeEventListener("scroll",this._debouncedScroll),this.appEvents.off("post-stream:refresh",this,"_debouncedScroll"),this.element.removeEventListener("mouseenter",this._handleWidgetButtonHoverState),this.element.removeEventListener("mouseleave",this._removeWidgetButtonHoverState),this.appEvents.off("post-stream:refresh",this,"_refresh"),this.appEvents.off("post-stream:posted",this,"_posted")}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._refresh({force:!0})}_handleWidgetButtonHoverState(e){e.target.classList.contains("widget-button")&&(document.querySelectorAll("button.widget-button").forEach(e=>{e.classList.remove("d-hover")}),e.target.classList.add("d-hover"))}_removeWidgetButtonHoverState(){document.querySelectorAll("button.widget-button").forEach(e=>{e.classList.remove("d-hover")})}}},55622:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAdvancedSearchOptions:()=>F,default:()=>O});var i=n(76417),s=n(70001),r=n(93223),o=n(20802),a=n(88253),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"ibfMn8DZ",block:'[[[10,"summary"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.title"],null]],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"search-advanced-filters"],[12],[1,"\\n "],[10,0],[14,0,"search-advanced-options"],[12],[1,"\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-above","div",[28,[37,4],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-category"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.in_category.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,6],null,[["@id","@value","@onChange"],["search-in-category",[30,0,["searchedTerms","category","id"]],[28,[37,7],[[30,0],"onChangeSearchTermForCategory"],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[10,0],[14,0,"control-group advanced-search-tags"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.with_tags.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,9],null,[["@id","@tags","@everyTag","@unlimitedTagCount","@onChange","@options"],["search-with-tags",[30,0,["searchedTerms","tags"]],true,true,[28,[37,7],[[30,0],"onChangeSearchTermForTags"],null],[28,[37,4],null,[["allowAny","headerAriaLabel"],[false,[28,[37,1],["search.advanced.with_tags.aria_label"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showAllTagsCheckbox"]],[[[1," "],[10,"section"],[14,0,"field"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,11],[[24,0,"all-tags"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForAllTags"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","all_tags"]]]],null],[1,"\\n "],[1,[28,[35,1],["search.advanced.filters.all_tags"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"control-group advanced-search-topics-posts"],[12],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"fieldset"],[14,0,"grouped-control"],[12],[1,"\\n "],[10,"legend"],[14,0,"grouped-control-label"],[12],[1,[28,[35,1],["search.advanced.filters.label"],null]],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1," "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-title-only"],[24,0,"in-title"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInTitle"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","title"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-title-only"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.filters.title"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-liked"],[24,0,"in-likes"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInLikes"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","likes"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-liked"],[12],[1,[28,[35,1],["search.advanced.filters.likes"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-in-messages"],[24,0,"in-private"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInMessages"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","messages"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-in-messages"],[12],[1,[28,[35,1],["search.advanced.filters.private"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n "],[8,[39,11],[[24,1,"matching-seen"],[24,0,"in-seen"],[4,[38,12],["click",[28,[37,7],[[30,0],"onChangeSearchTermForSpecialInSeen"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","seen"]]]],null],[1,"\\n "],[10,"label"],[14,0,"checkbox-label"],[14,"for","matching-seen"],[12],[1,[28,[35,1],["search.advanced.filters.seen"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["in","value",[30,0,["inOptions"]],[30,0,["searchedTerms","in"]],[28,[37,7],[[30,0],"onChangeSearchTermForIn"],null],[28,[37,4],null,[["none","clearable"],["user.locale.any",true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-topic-status"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.statuses.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["search-status-options","value",[30,0,["statusOptions"]],[30,0,["searchedTerms","status"]],[28,[37,7],[[30,0],"onChangeSearchTermForStatus"],null],[28,[37,4],null,[["none","headerAriaLabel","clearable"],["user.locale.any",[28,[37,1],["search.advanced.statuses.label"],null],true]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-posted-by"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.posted_by.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,16],null,[["@id","@value","@onChange","@options"],["search-posted-by",[30,0,["searchedTerms","username"]],[28,[37,7],[[30,0],"onChangeSearchTermForUsername"],null],[28,[37,4],null,[["headerAriaLabel","maximum","excludeCurrentUser"],[[28,[37,1],["search.advanced.posted_by.aria_label"],null],1,false]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group advanced-search-posted-date"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.post.time.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls inline-form full-width"],[12],[1,"\\n "],[8,[39,15],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["postTime","value",[30,0,["postTimeOptions"]],[30,0,["searchedTerms","time","when"]],[28,[37,7],[[30,0],"onChangeWhenTime"],null],[28,[37,4],null,[["headerAriaLabel"],[[28,[37,1],["search.advanced.post.time.aria_label"],null]]]]]],null],[1,"\\n "],[8,[39,17],null,[["@date","@onChange","@inputId"],[[30,0,["searchedTerms","time","days"]],[28,[37,7],[[30,0],"onChangeWhenDate"],null],"search-post-date"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-below","div",[28,[37,4],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"details"],[14,0,"search-advanced-additional-options"],[12],[1,"\\n "],[10,"summary"],[12],[1,"\\n "],[1,[28,[35,1],["search.advanced.additional_options.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1," "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.post.count.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-min-post-count"],[16,"placeholder",[28,[37,1],["search.advanced.post.min.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.post.min.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMinPostCount"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","min_posts"]]],null]]],null],[1,"\\n "],[1,[28,[35,22],["left-right"],null]],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-max-post-count"],[16,"placeholder",[28,[37,1],["search.advanced.post.max.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.post.max.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMaxPostCount"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","max_posts"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1," "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,1],["search.advanced.views.label"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-min-views"],[16,"placeholder",[28,[37,1],["search.advanced.min_views.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.min_views.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMinViews"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","min_views"]]],null]]],null],[1,"\\n "],[1,[28,[35,22],["left-right"],null]],[1,"\\n "],[8,[39,11],[[24,0,"input-small"],[24,1,"search-max-views"],[16,"placeholder",[28,[37,1],["search.advanced.max_views.placeholder"],null]],[16,"aria-label",[28,[37,1],["search.advanced.max_views.aria_label"],null]],[4,[38,12],["input",[28,[37,21],[[30,0,["onChangeSearchTermMaxViews"]]],null]],null]],[["@type","@value"],["number",[28,[37,20],[[30,0,["searchedTerms","max_views"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"second-search-button"],[12],[1,"\\n "],[8,[39,23],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[30,0,["search"]],"magnifying-glass","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["summary","i18n","div","plugin-outlet","hash","label","search-advanced-category-chooser","action","if","tag-chooser","section","input","on","fieldset","legend","combo-box","user-chooser","date-input","details","span","readonly","with-event-value","d-icon","d-button"]]',moduleName:"discourse/components/search-advanced-options.hbs",isStrictMode:!1}),c=/(([^" \t\n\x0B\f\r]+)?(("[^"]+")?))/g,d=/^(user:|@)/gi,p=/^(category:|#)/gi,h=/^(tags?:|#(?=[a-z0-9\-]+::tag))/gi,m=/^(in|with):/gi,g=/^status:/gi,f=/^min_posts:/gi,_=/^max_posts:/gi,y=/^min_views:/gi,b=/^max_views:/gi,w=/^(before|after):/gi,k=/(^(tags?:|#(?=[a-z0-9\-]+::tag))|::tag\s?$)/gi,x=/^in:likes$/gi,T=/^in:title$/gi,S=/^in:(personal|messages)$/gi,C=/^in:seen$/gi,E=/^(\#[a-zA-Z0-9\-:]+)/gi,A=/^(category:[0-9]+)/gi,D=/^(before|after)/gi,I={images:"with"},P=[];function M(){return[{name:(0,l.i18n)("search.advanced.filters.first"),value:"first"},{name:(0,l.i18n)("search.advanced.filters.pinned"),value:"pinned"},{name:(0,l.i18n)("search.advanced.filters.wiki"),value:"wiki"},{name:(0,l.i18n)("search.advanced.filters.images"),value:"images"}].concat(...P.map(e=>e.inOptionsForAll).filter(Boolean))}function F(e){P.push(e)}let N=dt7948.c(class extends i.default{category=null;init(){super.init(...arguments),this.setProperties({searchedTerms:{username:null,category:null,tags:null,in:null,special:{in:{title:!1,likes:!1,messages:!1,seen:!1},all_tags:!1},status:null,min_posts:null,max_posts:null,min_views:null,max_views:null,time:{when:"before",days:null}},inOptions:this.currentUser?(function(){return[{name:(0,l.i18n)("search.advanced.filters.unseen"),value:"unseen"},{name:(0,l.i18n)("search.advanced.filters.posted"),value:"posted"},{name:(0,l.i18n)("search.advanced.filters.created"),value:"created"},{name:(0,l.i18n)("search.advanced.filters.watching"),value:"watching"},{name:(0,l.i18n)("search.advanced.filters.tracking"),value:"tracking"},{name:(0,l.i18n)("search.advanced.filters.bookmarks"),value:"bookmarks"}].concat(...P.map(e=>e.inOptionsForUsers).filter(Boolean))})().concat(M()):M(),statusOptions:function(){return[{name:(0,l.i18n)("search.advanced.statuses.open"),value:"open"},{name:(0,l.i18n)("search.advanced.statuses.closed"),value:"closed"},{name:(0,l.i18n)("search.advanced.statuses.public"),value:"public"},{name:(0,l.i18n)("search.advanced.statuses.archived"),value:"archived"},{name:(0,l.i18n)("search.advanced.statuses.noreplies"),value:"noreplies"},{name:(0,l.i18n)("search.advanced.statuses.single_user"),value:"single_user"}].concat(...P.map(e=>e.statusOptions).filter(Boolean))}(),postTimeOptions:function(){return[{name:(0,l.i18n)("search.advanced.post.time.before"),value:"before"},{name:(0,l.i18n)("search.advanced.post.time.after"),value:"after"}].concat(...P.map(e=>e.postTimeOptions).filter(Boolean))}(),showAllTagsCheckbox:!1})}didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.setSearchedTermValue("searchedTerms.username",d),this.setSearchedTermValueForCategory(),this.setSearchedTermValueForTags();let e=this.inOptions.map(e=>e.value).join("|"),t=RegExp(`(in|with):(${e})`,"i");this.setSearchedTermValue("searchedTerms.in",m,t),this.setSearchedTermSpecialInValue("searchedTerms.special.in.likes",x),this.setSearchedTermSpecialInValue("searchedTerms.special.in.title",T),this.setSearchedTermSpecialInValue("searchedTerms.special.in.messages",S),this.setSearchedTermSpecialInValue("searchedTerms.special.in.seen",C);let n=this.statusOptions.map(e=>e.value).join("|"),i=RegExp(`status:(${n})`,"i");this.setSearchedTermValue("searchedTerms.status",g,i),this.setSearchedTermValueForPostTime(),this.setSearchedTermValue("searchedTerms.min_posts",f),this.setSearchedTermValue("searchedTerms.max_posts",_),this.setSearchedTermValue("searchedTerms.min_views",y),this.setSearchedTermValue("searchedTerms.max_views",b)}findSearchTerms(){let e=(0,o.escapeExpression)(this.searchTerm);if(!e)return[];let t=e.match(c);if(!t)return[];let n=[];return t.forEach(e=>{0!==e.length&&n.push(e)}),n}filterBlocks(e){let t=this.findSearchTerms();if(!t)return[];let n=[];return t.forEach(t=>{-1!==t.search(e)&&n.push(t)}),n}setSearchedTermValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n=n||t;let i=this.filterBlocks(n),s=this.get(e);if(0!==i.length){let n=i[0].replace(t,"").toLowerCase();s!==n&&n.length&&this.set(e,n)}else s&&0!==s.length&&this.set(e,null)}setSearchedTermSpecialInValue(e,t){0!==this.filterBlocks(t).length?!0!==this.get(e)&&this.set(e,!0):!1!==this.get(e)&&this.set(e,!1)}setSearchedTermValueForCategory(){let e=this.filterBlocks(p);if(0!==e.length){let t;let n=this.get("searchedTerms.category"),i=e[0].replace(p,"").split(":");i.length>1?t=a.default.list().find(e=>e.get("parentCategory.slug")===i[0]&&e.slug===i[1]):(t=a.default.list().find(e=>!e.parentCategory&&e.slug===i[0]))||(t=a.default.list().find(e=>e.slug===i[0])),(!n&&t||n&&t&&n.id!==t.id)&&this.set("searchedTerms.category",t)}else this.set("searchedTerms.category",null)}setSearchedTermValueForTags(){if(!this.siteSettings.tagging_enabled)return;let e=this.filterBlocks(h),t=this.get("searchedTerms.tags");e.length&&this.set("searchedTerms.special.all_tags",e[0].includes("+"));let n=this.get("searchedTerms.special.all_tags");if(0!==e.length){let i=n?"+":",",s=Array.isArray(t)?t.join(i):t,r=e[0].replace(k,"");if(s!==r){let e=r?.split(i);this.set("searchedTerms.tags",e),this.set("showAllTagsCheckbox",e.length>1)}}else t||this.set("searchedTerms.tags",null)}setSearchedTermValueForPostTime(){let e=this.filterBlocks(w);if(0!==e.length){let t=this.get("searchedTerms.time.when"),n=e[0].match(D)[0].toLowerCase(),i=this.get("searchedTerms.time.days"),s=e[0].replace(w,""),r={};t!==n&&(r["searchedTerms.time.when"]=n),i!==s&&(r["searchedTerms.time.days"]=s),this.setProperties(r)}else this.set("searchedTerms.time.when","before"),this.set("searchedTerms.time.days",null)}updateInRegex(e,t){let n=this.filterBlocks(e),i=this.get("searchedTerms.special.in."+t),s=this.searchTerm||"";i?0===n.length&&(s+=` in:${t}`,this._updateSearchTerm(s)):0!==n.length&&(s=s.replace(n,""),this._updateSearchTerm(s))}onChangeSearchTermMinPostCount(e){this.set("searchedTerms.min_posts",e.length?e:null),this._updateSearchTermForMinPostCount()}static #e=(()=>dt7948.n(this.prototype,"onChangeSearchTermMinPostCount",[s.action]))();onChangeSearchTermMaxPostCount(e){this.set("searchedTerms.max_posts",e.length?e:null),this._updateSearchTermForMaxPostCount()}static #n=(()=>dt7948.n(this.prototype,"onChangeSearchTermMaxPostCount",[s.action]))();onChangeSearchTermMinViews(e){this.set("searchedTerms.min_views",e.length?e:null),this._updateSearchTermForMinViews()}static #i=(()=>dt7948.n(this.prototype,"onChangeSearchTermMinViews",[s.action]))();onChangeSearchTermMaxViews(e){this.set("searchedTerms.max_views",e.length?e:null),this._updateSearchTermForMaxViews()}static #l=(()=>dt7948.n(this.prototype,"onChangeSearchTermMaxViews",[s.action]))();onChangeSearchTermForIn(e){this.set("searchedTerms.in",e),this._updateSearchTermForIn()}static #u=(()=>dt7948.n(this.prototype,"onChangeSearchTermForIn",[s.action]))();onChangeSearchTermForStatus(e){this.set("searchedTerms.status",e),this._updateSearchTermForStatus()}static #c=(()=>dt7948.n(this.prototype,"onChangeSearchTermForStatus",[s.action]))();onChangeWhenTime(e){e&&(this.set("searchedTerms.time.when",e),this._updateSearchTermForPostTime())}static #d=(()=>dt7948.n(this.prototype,"onChangeWhenTime",[s.action]))();onChangeWhenDate(e){e&&(this.set("searchedTerms.time.days",e.format("YYYY-MM-DD")),this._updateSearchTermForPostTime())}static #p=(()=>dt7948.n(this.prototype,"onChangeWhenDate",[s.action]))();onChangeSearchTermForCategory(e){if(e){let t=a.default.findById(e);this.onChangeCategory&&this.onChangeCategory(t),this.set("searchedTerms.category",t)}else this.onChangeCategory&&this.onChangeCategory(null),this.set("searchedTerms.category",null);this._updateSearchTermForCategory()}static #h=(()=>dt7948.n(this.prototype,"onChangeSearchTermForCategory",[s.action]))();onChangeSearchTermForUsername(e){this.set("searchedTerms.username",e.length?e:null),this._updateSearchTermForUsername()}static #m=(()=>dt7948.n(this.prototype,"onChangeSearchTermForUsername",[s.action]))();onChangeSearchTermForTags(e){this.set("searchedTerms.tags",e.length?e:null),this._updateSearchTermForTags()}static #g=(()=>dt7948.n(this.prototype,"onChangeSearchTermForTags",[s.action]))();onChangeSearchTermForAllTags(e){this.set("searchedTerms.special.all_tags",e),this._updateSearchTermForTags()}static #E=(()=>dt7948.n(this.prototype,"onChangeSearchTermForAllTags",[s.action]))();onChangeSearchTermForSpecialInLikes(e){this.set("searchedTerms.special.in.likes",e),this.updateInRegex(x,"likes")}static #A=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInLikes",[s.action]))();onChangeSearchTermForSpecialInMessages(e){this.set("searchedTerms.special.in.messages",e),this.updateInRegex(S,"messages")}static #D=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInMessages",[s.action]))();onChangeSearchTermForSpecialInSeen(e){this.set("searchedTerms.special.in.seen",e),this.updateInRegex(C,"seen")}static #I=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInSeen",[s.action]))();onChangeSearchTermForSpecialInTitle(e){this.set("searchedTerms.special.in.title",e),this.updateInRegex(T,"title")}static #G=(()=>dt7948.n(this.prototype,"onChangeSearchTermForSpecialInTitle",[s.action]))();onChangeSearchedTermField(e,t,n){this.set(`searchedTerms.${e}`,n),this[t]()}static #Y=(()=>dt7948.n(this.prototype,"onChangeSearchedTermField",[s.action]))();_updateSearchTermForTags(){let e=this.filterBlocks(h),t=this.get("searchedTerms.tags"),n=this.searchTerm||"",i=this.get("searchedTerms.special.all_tags");if(t&&0!==t.length){let s=t.join(i?"+":",");0!==e.length?n=n.replace(e[0],`tags:${s}`):n+=` tags:${s}`,t.length>1&&this.set("showAllTagsCheckbox",!0),this._updateSearchTerm(n)}else 0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForCategory(){let e=this.filterBlocks(p),t=this.get("searchedTerms.category"),n=this.searchTerm||"",i=0!==e.length?e[0].match(E):null,s=0!==e.length?e[0].match(A):null;if(t){let e=t.id,r=t.slug;if(t.parentCategory){let o=t.parentCategory.slug;i?n=n.replace(i[0],`#${o}:${r}`):s?n=n.replace(s[0],`category:${e}`):r?n+=` #${o}:${r}`:n+=` category:${e}`,this._updateSearchTerm(n)}else i?n=n.replace(i[0],`#${r}`):s?n=n.replace(s[0],`category:${e}`):r?n+=` #${r}`:n+=` category:${e}`,this._updateSearchTerm(n)}else i&&(n=n.replace(i[0],"")),s&&(n=n.replace(s[0],"")),this._updateSearchTerm(n)}_updateSearchTermForUsername(){let e=this.filterBlocks(d),t=this.get("searchedTerms.username"),n=this.searchTerm||"";t&&0!==t.length?(0!==e.length?n=n.replace(e[0],`@${t}`):n+=` @${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForPostTime(){let e=this.filterBlocks(w),t=this.get("searchedTerms.time.days"),n=this.searchTerm||"";if(t){let i=this.get("searchedTerms.time.when");0!==e.length?n=n.replace(e[0],`${i}:${t}`):n+=` ${i}:${t}`,this._updateSearchTerm(n)}else 0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForIn(){let e=this.inOptions.map(e=>e.value).join("|"),t=RegExp(`(in|with):(${e})`,"i"),n=this.filterBlocks(t),i=this.get("searchedTerms.in"),s="in";i in I&&(s=I[i]);let r=this.searchTerm||"";i?(0!==n.length?r=r.replace(n[0],`${s}:${i}`):r+=` ${s}:${i}`,this._updateSearchTerm(r)):0!==n.length&&(r=r.replace(n,""),this._updateSearchTerm(r))}_updateSearchTermForStatus(){let e=this.statusOptions.map(e=>e.value).join("|"),t=RegExp(`status:(${e})`,"i"),n=this.filterBlocks(t),i=this.get("searchedTerms.status"),s=this.searchTerm||"";i?(0!==n.length?s=s.replace(n[0],`status:${i}`):s+=` status:${i}`,this._updateSearchTerm(s)):0!==n.length&&(s=s.replace(n[0],""),this._updateSearchTerm(s))}_updateSearchTermForMinPostCount(){let e=this.filterBlocks(f),t=this.get("searchedTerms.min_posts"),n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`min_posts:${t}`):n+=` min_posts:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForMaxPostCount(){let e=this.filterBlocks(_),t=this.get("searchedTerms.max_posts"),n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`max_posts:${t}`):n+=` max_posts:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForMinViews(){let e=this.filterBlocks(y),t=this.get("searchedTerms.min_views"),n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`min_views:${t}`):n+=` min_views:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTermForMaxViews(){let e=this.filterBlocks(b),t=this.get("searchedTerms.max_views"),n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`max_views:${t}`):n+=` max_views:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))}_updateSearchTerm(e){this.onChangeSearchTerm(e.trim())}},[(0,r.classNames)("advanced-filters"),(0,r.attributeBindings)("expandFilters:open"),(0,r.tagName)("details")]),O=(0,i.setComponentTemplate)(u,N)},59990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"OTcRKFmr",block:'[[[8,[39,0],null,[["@animationClass","@panelClass"],[[30,0,["animationClass"]],"search-menu-panel"]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@onClose","@inlineResults","@autofocusInput"],[[30,1],true,true]],null],[1,"\\n"]],[]]]]]],["@closeSearchMenu"],false,["menu-panel","search-menu"]]',moduleName:"discourse/components/search-menu-panel.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();get animationClass(){return this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down"}}(0,o.setComponentTemplate)(r,a)},68556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_TYPE_FILTER:()=>C,MODIFIER_REGEXP:()=>S,SEARCH_INPUT_ID:()=>T,default:()=>A,focusSearchInput:()=>E});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(54729),l=n(35223),u=n(64149),c=n(21640),d=n(37186),p=n(84188),h=n(56839),m=n(52864),g=n(84262),f=n(87389),_=n(62797);let y=(0,n(82739).createTemplateFactory)({id:"fO+S2ewF",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[4,[38,1],[[30,0,["setupEventListeners"]]],null],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n "],[10,0],[14,0,"search-input"],[12],[1,"\\n"],[41,[30,0,["search","inTopicContext"]],[[[1," "],[8,[39,4],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["xmark","search.in_this_topic","search.in_this_topic_tooltip",[30,0,["clearTopicContext"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["inPMInboxContext"]],[[[1," "],[8,[39,4],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["xmark","search.in_messages","search.in_messages_tooltip",[30,0,["clearPMInboxContext"]]]],null],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[8,[39,5],null,[["@name","@outletArgs"],["search-menu-before-term-input",[28,[37,6],null,[["openSearchMenu"],[[30,0,["open"]]]]]]],null],[1,"\\n\\n "],[8,[39,7],null,[["@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@clearPMInboxContext","@clearTopicContext","@closeSearchMenu","@openSearchMenu","@autofocus"],[[30,0,["searchTermChanged"]],[30,0,["typeFilter"]],[30,0,["updateTypeFilter"]],[30,0,["triggerSearch"]],[30,0,["fullSearch"]],[30,0,["clearPMInboxContext"]],[30,0,["clearTopicContext"]],[30,0,["close"]],[30,0,["open"]],[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[1,[35,8]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[8,[39,5],null,[["@name"],["search-menu-before-advanced-search"]],null],[1,"\\n"],[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[39,9],null,[["@clearSearch"],[[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,10],null,[["@openAdvancedSearch"],[[30,0,["openAdvancedSearch"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[39,11],null,[["@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["displayMenuPanelResults"]],[[[1," "],[8,[39,12],null,[["@panelClass"],["search-menu-panel"]],[["default"],[[[[1,"\\n "],[8,[39,11],null,[["@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[13]],["@autofocusInput","@inlineResults"],false,["div","did-insert","on","if","d-button","plugin-outlet","hash","search-menu/search-term","loading-spinner","search-menu/clear-button","search-menu/advanced-button","search-menu/results","menu-panel"]]',moduleName:"discourse/components/search-menu.hbs",isStrictMode:!1});var b=n(76417);let w=/(\#[a-zA-Z0-9\-:]*)$/gi,k=/(\@[a-zA-Z0-9\-\_]*)$/gi,x=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,T="search-term",S=/.*(\#|\@|:).*$/gi,C="exclude_topics";function E(){document.getElementById(T).focus()}class A extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[a.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #c=(()=>dt7948.g(this.prototype,"inPMInboxContext",[s.tracked],function(){return this.search.searchContext?.type==="private_messages"}))();#rR=(()=>void dt7948.i(this,"inPMInboxContext"))();static #d=(()=>dt7948.g(this.prototype,"typeFilter",[s.tracked],function(){return C}))();#rU=(()=>void dt7948.i(this,"typeFilter"))();static #p=(()=>dt7948.g(this.prototype,"suggestionKeyword",[s.tracked],function(){return!1}))();#rj=(()=>void dt7948.i(this,"suggestionKeyword"))();static #h=(()=>dt7948.g(this.prototype,"suggestionResults",[s.tracked],function(){return[]}))();#rB=(()=>void dt7948.i(this,"suggestionResults"))();static #m=(()=>dt7948.g(this.prototype,"invalidTerm",[s.tracked],function(){return!1}))();#rz=(()=>void dt7948.i(this,"invalidTerm"))();static #g=(()=>dt7948.g(this.prototype,"menuPanelOpen",[s.tracked],function(){return!1}))();#r$=(()=>void dt7948.i(this,"menuPanelOpen"))();_debouncer=null;_activeSearch=null;willDestroy(){this.args.inlineResults||(document.removeEventListener("mousedown",this.onDocumentPress),document.removeEventListener("touchend",this.onDocumentPress)),super.willDestroy(...arguments)}setupEventListeners(){this.args.inlineResults||(document.addEventListener("mousedown",this.onDocumentPress),document.addEventListener("touchend",this.onDocumentPress))}static #E=(()=>dt7948.n(this.prototype,"setupEventListeners",[_.bind]))();onDocumentPress(e){this.menuPanelOpen&&(e.target.closest(".search-menu-container.menu-panel-results")||this.close())}static #A=(()=>dt7948.n(this.prototype,"onDocumentPress",[_.bind]))();get classNames(){let e=["search-menu-container"];return this.args.inlineResults||e.push("menu-panel-results"),this.loading&&e.push("loading"),e.join(" ")}get includesTopics(){return!!this.search.results?.topics?.length||this.typeFilter!==C}get searchContext(){return(!!this.search.inTopicContext||!!this.inPMInboxContext)&&this.search.searchContext}onKeydown(e){"Escape"===e.key&&this.close()}static #D=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();close(){if(this.args?.onClose)return this.args.onClose();document.getElementById(T)?.blur(),this.menuPanelOpen=!1}static #I=(()=>dt7948.n(this.prototype,"close",[r.action]))();open(){this.menuPanelOpen=!0}static #G=(()=>dt7948.n(this.prototype,"open",[r.action]))();fullSearchUrl(e){let t="/search",n=new URLSearchParams;if(this.search.activeGlobalSearchTerm){let e=this.search.activeGlobalSearchTerm;this.searchContext?.type==="topic"?e+=` topic:${this.searchContext.id}`:this.searchContext?.type==="private_messages"&&(e+=" in:messages"),n.set("q",e)}return e?.expanded&&n.set("expanded","true"),""!==n.toString()&&(t=`${t}?${n}`),(0,f.default)(t)}static #Y=(()=>dt7948.n(this.prototype,"fullSearchUrl",[_.bind]))();openAdvancedSearch(){this.fullSearch(),this.close()}static #Q=(()=>dt7948.n(this.prototype,"openAdvancedSearch",[r.action]))();get displayMenuPanelResults(){return!this.args.inlineResults&&this.menuPanelOpen}clearSearch(e){e.stopPropagation(),e.preventDefault(),this.search.activeGlobalSearchTerm="",E(),this.triggerSearch()}static #J=(()=>dt7948.n(this.prototype,"clearSearch",[_.bind]))();searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.typeFilter=t.searchTopics?null:C,t.setTopicContext&&(this.search.inTopicContext=!0),this.search.activeGlobalSearchTerm=e,this.triggerSearch()}static #X=(()=>dt7948.n(this.prototype,"searchTermChanged",[r.action]))();fullSearch(){this.loading=!1;let e=this.fullSearchUrl();e&&h.default.routeTo(e)}static #Z=(()=>dt7948.n(this.prototype,"fullSearch",[r.action]))();updateTypeFilter(e){this.typeFilter=e}static #ee=(()=>dt7948.n(this.prototype,"updateTypeFilter",[r.action]))();clearPMInboxContext(){this.inPMInboxContext=!1}static #et=(()=>dt7948.n(this.prototype,"clearPMInboxContext",[r.action]))();clearTopicContext(){this.search.inTopicContext=!1}static #en=(()=>dt7948.n(this.prototype,"clearTopicContext",[r.action]))();cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)}async perform(){this.cancel();let e=this.matchesSuggestions();if(e){if(this.search.noResults=!0,this.search.results={},this.loading=!1,this.suggestionResults=[],"category"===e.type){let t=e.categoriesMatch[0].replace("#",""),n=(0,d.search)(t,this.siteSettings);l.Promise.resolve(n).then(e=>{e!==c.CANCELLED_STATUS&&(this.suggestionResults=e,this.suggestionKeyword="#")})}else if("username"===e.type){let t=e.usernamesMatch[0].replace("@",""),n={includeGroups:!0,limit:6};t.length>0?n.term=t:n.lastSeenUsers=!0,(0,m.default)(n).then(e=>{e?.users?.length>0?(this.suggestionResults=e.users,this.suggestionKeyword="@"):(this.search.noResults=!0,this.suggestionKeyword=!1)})}else this.suggestionKeyword=e[0];return}this.suggestionKeyword=!1,this.search.activeGlobalSearchTerm?(0,p.isValidSearchTerm)(this.search.activeGlobalSearchTerm,this.siteSettings)?(this.loading=!0,this.invalidTerm=!1,this._activeSearch=(0,p.searchForTerm)(this.search.activeGlobalSearchTerm,{typeFilter:this.typeFilter,fullSearchUrl:this.fullSearchUrl,searchContext:this.searchContext}),this._activeSearch.then(e=>{e&&(this.searchContext&&this.appEvents.trigger("post-stream:refresh",{force:!0}),this.search.noResults=0===e.resultTypes.length,this.search.results=e)}).catch(u.popupAjaxError).finally(()=>{this.loading=!1})):(this.search.noResults=!0,this.search.results={},this.loading=!1,this.invalidTerm=!0):(this.search.noResults=!1,this.search.results={},this.loading=!1,this.invalidTerm=!1)}matchesSuggestions(){if(void 0===this.search.activeGlobalSearchTerm||this.includesTopics)return!1;let e=this.search.activeGlobalSearchTerm.trim(),t=e.match(w);if(t)return{type:"category",categoriesMatch:t};let n=e.match(k);if(n)return{type:"username",usernamesMatch:n};let i=e.match(x);return!!i&&i}triggerSearch(){this.search.noResults=!1,this.includesTopics?("topic"===this.search.contextType&&(this.search.highlightTerm=this.search.activeGlobalSearchTerm),this.loading=!0,(0,o.cancel)(this._debouncer),this.perform(),this.currentUser&&(0,p.updateRecentSearches)(this.currentUser,this.search.activeGlobalSearchTerm)):(this.loading=!1,this.search.inTopicContext||(this._debouncer=(0,g.default)(this,this.perform,400)))}static #ei=(()=>dt7948.n(this.prototype,"triggerSearch",[r.action]))()}(0,b.setComponentTemplate)(y,A)},99609:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"UOnyf1GH",block:'[[[8,[39,0],[[24,0,"show-advanced-search"],[16,"title",[28,[37,1],["search.open_advanced"],null]]],[["@action","@icon"],[[30,1],"sliders"]],null]],["@openAdvancedSearch"],false,["d-button","i18n"]]',moduleName:"discourse/components/search-menu/advanced-button.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"advanced-button"))},22133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(20802),r=n(51969);let o=(0,n(82739).createTemplateFactory)({id:"gyzzvKtz",block:'[[[10,0],[14,0,"browser-search-tip"],[12],[1,"\\n "],[10,1],[14,0,"tip-label"],[12],[1,"\\n "],[1,[30,0,["translatedLabel"]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"tip-description"],[12],[1,"\\n "],[1,[28,[35,2],["search.browser_tip_description"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n"]]',moduleName:"discourse/components/search-menu/browser-search-tip.hbs",isStrictMode:!1});var a=n(76417);class l extends i.default{get translatedLabel(){return(0,r.i18n)("search.browser_tip",{modifier:(0,s.translateModKey)("Meta+")})}}(0,a.setComponentTemplate)(o,l)},99107:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"xM57exZR",block:'[[[11,3],[24,0,"clear-search"],[24,"aria-label","clear_input"],[16,"title",[28,[37,1],["search.clear_search"],null]],[24,6,""],[4,[38,2],["click",[30,1]],null],[12],[1,"\\n "],[1,[28,[35,3],["xmark"],null]],[1,"\\n"],[13]],["@clearSearch"],false,["a","i18n","on","d-icon"]]',moduleName:"discourse/components/search-menu/clear-button.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"clear-button"))},86153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(70001),r=n(54729),o=n(44331);let a=(0,n(82739).createTemplateFactory)({id:"x+bwCp2+",block:'[[[11,1],[4,[38,1],[[30,0,["highlight"]]],null],[12],[1,"\\n "],[1,[28,[35,2],[[30,1]],null]],[1,"\\n"],[13]],["@string"],false,["span","did-insert","html-safe"]]',moduleName:"discourse/components/search-menu/highlighted-search.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tV=(()=>void dt7948.i(this,"search"))();highlight(e){(0,o.default)(e,this.search.activeGlobalSearchTerm)}static #n=(()=>dt7948.n(this.prototype,"highlight",[s.action]))()}(0,l.setComponentTemplate)(a,u)},6360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(24063),l=n(23694),u=n(85409),c=n(49927),d=n(42536),p=n(54276);let h=(0,n(82739).createTemplateFactory)({id:"I8YC75Gw",block:'[[[41,[28,[37,1],[[30,0,["search","inTopicContext"]],[28,[37,2],[[30,1]],null]],null],[[[1," "],[8,[39,3],null,null,null],[1,"\\n"]],[]],[[[1," "],[8,[39,4],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"results"],[12],[1,"\\n "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-results-top",[28,[37,7],null,[["closeSearchMenu","searchTerm","inTopicContext","searchTopics"],[[30,2],[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","inTopicContext"]],[30,1]]]]]],null],[1,"\\n"],[41,[30,3],[[[1," "],[8,[39,8],null,[["@suggestionKeyword","@results","@closeSearchMenu","@searchTermChanged"],[[30,3],[30,4],[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[30,0,["termTooShort"]],[[[1," "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,9],["search.too_short"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noTopicResults"]],[[[1," "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,9],["search.no_results"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renderInitialOptions"]],[[[1," "],[8,[39,10],null,[["@closeSearchMenu","@searchTermChanged"],[[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,1]],null],[28,[37,2],[[30,6]],null]],null],[[[1," "],[8,[39,10],null,[["@closeSearchMenu","@searchTermChanged"],[[30,2],[30,5]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,1],[30,0,["resultTypesWithComponent"]]],null],[[[1," "],[8,[39,11],null,[["@resultTypes","@topicResultsOnly","@closeSearchMenu","@searchLogId"],[[30,0,["resultTypesWithComponent"]],true,[30,2],[30,0,["searchLogId"]]]],null],[1,"\\n "],[8,[39,12],null,[["@updateTypeFilter","@triggerSearch","@resultTypes","@closeSearchMenu","@searchTermChanged"],[[30,7],[30,8],[30,0,["resultTypesWithComponent"]],[30,2],[30,5]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,6]],null],[28,[37,2],[[30,1]],null],[30,0,["resultTypesWithComponent"]]],null],[[[1," "],[8,[39,11],null,[["@resultTypes","@closeSearchMenu","@searchTermChanged","@displayNameWithUser","@searchLogId"],[[30,0,["resultTypesWithComponent"]],[30,2],[30,5],true,[30,0,["searchLogId"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-with-results-bottom",[28,[37,7],null,[["resultTypes"],[[30,0,["resultTypesWithComponent"]]]]]]],null],[1,"\\n "]],[]]]],[]]]],[]]]],[]]],[1," "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-results-bottom",[28,[37,7],null,[["inTopicContext","searchTermChanged","searchTopics","closeSearchMenu"],[[30,0,["search","inTopicContext"]],[30,5],[30,1],[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],["@searchTopics","@closeSearchMenu","@suggestionKeyword","@suggestionResults","@searchTermChanged","@inPMInboxContext","@updateTypeFilter","@triggerSearch"],false,["if","and","not","search-menu/browser-search-tip","conditional-loading-section","div","plugin-outlet","hash","search-menu/results/assistant","i18n","search-menu/results/initial-options","search-menu/results/types","search-menu/results/more-link"]]',moduleName:"discourse/components/search-menu/results.hbs",isStrictMode:!1});var m=n(76417);let g={"search-result-category":a.default,"search-result-topic":d.default,"search-result-post":u.default,"search-result-user":p.default,"search-result-tag":c.default,"search-result-group":l.default};class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"searchTopics",[s.tracked],function(){return this.args.searchTopics}))();#rq=(()=>void dt7948.i(this,"searchTopics"))();get renderInitialOptions(){return!this.search.activeGlobalSearchTerm&&!this.args.inPMInboxContext}get noTopicResults(){return this.args.searchTopics&&this.search.noResults}get termTooShort(){return this.args.searchTopics&&this.args.invalidTerm}get resultTypesWithComponent(){let e=[];return this.search.results.resultTypes?.map(t=>{e.push({...t,component:g[t.componentName]})}),e}get searchLogId(){return this.search.results.grouped_search_result?.search_log_id}updateSearchTopics(e){this.searchTopics=e}static #i=(()=>dt7948.n(this.prototype,"updateSearchTopics",[r.action]))()}(0,m.setComponentTemplate)(h,f)},43423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addItemSelectCallback:()=>p,default:()=>m,resetItemSelectCallbacks:()=>h});var i=n(37138),s=n(70001),r=n(54729),o=n(68556),a=n(87389),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"bSskH0rn",block:'[[[11,"li"],[16,0,[28,[37,1],[[30,1],"search-menu-assistant-item"],null]],[16,"data-usage",[30,2]],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[4,[38,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n "],[10,3],[14,0,"search-link"],[15,6,[30,0,["href"]]],[12],[1,"\\n "],[10,1],[15,"aria-label",[28,[37,5],["search.title"],null]],[12],[1,"\\n "],[1,[28,[35,6],[[28,[37,7],[[30,3],"magnifying-glass"],null]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["prefix"]],[[[1," "],[10,1],[14,0,"search-item-prefix"],[12],[1,"\\n "],[1,[30,0,["prefix"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"label-suffix"],[12],[1,[28,[35,5],["search.in"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[39,9],null,[["@result"],[[30,5]]],null],[1,"\\n"],[41,[28,[37,10],[[30,6],[30,7]],null],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n "],[1,[28,[35,6],["tag"],null]],[1,[30,6]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,6],[[[41,[28,[37,10],[[30,7],[30,8,["length"]]],null],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,[30,0,["tagsSlug"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n "],[8,[39,11],null,[["@result"],[[30,6]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,9],[[[1," "],[10,1],[14,0,"search-item-user"],[12],[1,"\\n "],[8,[39,12],null,[["@result"],[[30,9]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n "],[10,1],[14,0,"search-item-slug"],[12],[1,"\\n"],[41,[30,10],[[[1," "],[10,1],[14,0,"label-suffix"],[12],[1,[30,10]],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,11]],[1,"\\n "],[13],[1,"\\n"],[41,[30,12],[[[1," "],[10,1],[14,0,"extra-hint"],[12],[1,"\\n "],[1,[28,[35,5],["search.enter_hint"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@typeClass","@usage","@icon","@withInLabel","@category","@tag","@isIntersection","@additionalTags","@user","@suffix","@label","@extraHint"],false,["li","concat-class","on","a","span","i18n","d-icon","or","if","search-menu/results/type/category","and","search-menu/results/type/tag","search-menu/results/type/user"]]',moduleName:"discourse/components/search-menu/results/assistant-item.hbs",isStrictMode:!1});var c=n(76417);let d=[];function p(e){d.push(e)}function h(){d.length=0}class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();icon=(()=>this.args.icon||"magnifying-glass")();get href(){let e="#";return this.args.category?(e=this.args.category.url,this.args.tags&&this.args.isIntersection&&(e=(0,a.default)(`/tag/${this.args.tag}`))):this.args.tags&&this.args.isIntersection&&this.args.additionalTags?.length&&(e=(0,a.default)(`/tag/${this.args.tag}`)),e}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.search.activeGlobalSearchTerm?.split(this.args.suggestionKeyword)[0].trim()||"").length&&(e=`${e} `):e=this.search.activeGlobalSearchTerm,e}get tagsSlug(){if(this.args.tag&&this.args.additionalTags)return`tags:${[this.args.tag,...this.args.additionalTags].join("+")}`}onKeydown(e){"Tab"!==e.key&&("Enter"===e.key&&this.itemSelected(),("ArrowUp"===e.key||"ArrowDown"===e.key)&&this.search.handleArrowUpOrDown(e))}static #i=(()=>dt7948.n(this.prototype,"onKeydown",[s.action]))();onClick(e){return this.itemSelected(),e.preventDefault(),!1}static #l=(()=>dt7948.n(this.prototype,"onClick",[s.action]))();itemSelected(){let e="";e=this.args.slug&&(this.args.suggestionKeyword||this.args.concatSlug)?this.prefix.concat(this.args.slug):this.prefix.trim();let t=this.search.searchContext?.type==="topic",n=!t||this.search.activeGlobalSearchTerm;(!d.length||d.some(t=>t({updatedTerm:e,searchTermChanged:this.args.searchTermChanged,usage:this.args.usage})))&&(this.args.searchTermChanged(e,{searchTopics:n,...t&&!this.args.searchAllTopics&&{setTopicContext:!0}}),(0,o.focusSearchInput)())}static #u=(()=>dt7948.n(this.prototype,"itemSelected",[(0,l.debounce)(100)]))()}(0,c.setComponentTemplate)(u,m)},81637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addSearchSuggestion:()=>c,default:()=>u});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"GqflZbbU",block:'[[[10,"ul"],[14,0,"search-menu-assistant"],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["suggestionType"]],"tagIntersection"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-tag-intersection-top"]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[1," "],[8,[39,6],null,[["@tag","@additionalTags","@category","@slug","@withInLabel","@isIntersection","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,2,["tagName"]],[30,2,["additionalTags"]],[30,2,["category"]],[30,3],[30,4],true,true,[30,5],[30,6],"tag-intersection"]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[28,[37,2],[[30,0,["suggestionType"]],"categoryOrTag"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-category-or-tag-top"]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[41,[30,7,["model"]],[[[1," "],[8,[39,6],null,[["@category","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["model"]],[28,[37,7],[[30,0,["fullSlugForCategoryMap"]],[30,7,["model","id"]]],null],[30,4],true,[30,5],[30,6],"category"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,6],null,[["@tag","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["name"]],[28,[37,8],[[30,0,["prefix"]],"#",[30,7,["name"]]],null],[30,4],true,[30,5],[30,6],"tag"]],null],[1,"\\n"]],[]]]],[7]],null]],[]],[[[41,[28,[37,2],[[30,0,["suggestionType"]],"user"],null],[[[1," "],[8,[39,3],null,[["@name"],["search-menu-results-assistant-user-top"]],null],[1,"\\n"],[41,[30,0,["userMatchesInTopic"]],[[[1," "],[8,[39,6],null,[["@extraHint","@user","@slug","@suffix","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[true,[30,0,["user"]],[28,[37,8],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,9],["search.in_topics_posts"],null],true,[30,5],[30,6],"user"]],null],[1,"\\n\\n "],[8,[39,6],null,[["@user","@slug","@suffix","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,0,["user"]],[28,[37,8],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,9],["search.in_this_topic"],null],[30,5],[30,6],"user"]],null],[1,"\\n"]],[]],[[[42,[28,[37,5],[[28,[37,5],[[30,1]],null]],null],null,[[[1," "],[8,[39,6],null,[["@user","@slug","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,8],[28,[37,8],[[30,0,["prefix"]],"@",[30,8,["username"]]],null],true,[30,5],[30,6],"user"]],null],[1,"\\n"]],[8]],null]],[]]]],[]],[[[1," "],[8,[39,3],null,[["@name","@outletArgs"],["search-menu-results-assistant-shortcut-top",[28,[37,10],null,[["suggestionShortcuts"],[[30,0,["suggestionShortcuts"]]]]]]],null],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["suggestionShortcuts"]]],null]],null],null,[[[1," "],[8,[39,6],null,[["@slug","@label","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[28,[37,8],[[30,0,["prefix"]],[30,9]],null],[30,9],true,[30,5],[30,6],"shortcut"]],null],[1,"\\n"]],[9]],null],[1," "]],[]]]],[]]]],[]]],[1," "],[8,[39,3],null,[["@name"],["search-menu-assistant-bottom"]],null],[1,"\\n"],[13]],["@results","result","@slug","@withInLabel","@searchTermChanged","@suggestionKeyword","result","result","item"],false,["ul","if","eq","plugin-outlet","each","-track-array","search-menu/results/assistant-item","get","concat","i18n","hash"]]',moduleName:"discourse/components/search-menu/results/assistant.hbs",isStrictMode:!1});var o=n(76417);let a=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],l={"+":"tagIntersection","#":"categoryOrTag","@":"user"};class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"search",[s.service]))();#tV=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.currentUser&&(c("in:likes"),c("in:bookmarks"),c("in:mine"),c("in:messages"),c("in:seen"),c("in:tracking"),c("in:unseen"),c("in:watching")),this.siteSettings.tagging_enabled&&(c("in:tagged"),c("in:untagged"))}get suggestionShortcuts(){let e=this.search.activeGlobalSearchTerm.split(" ").slice(-1);return a.filter(t=>t.includes(e)).slice(0,8)}get userMatchesInTopic(){return 1===this.args.results.length&&this.router.currentRouteName.startsWith("topic.")}get suggestionType(){switch(this.args.suggestionKeyword){case"+":case"#":case"@":return l[this.args.suggestionKeyword]}}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.args.slug?.split(this.args.suggestionKeyword)[0].trim()||"").length&&(e=`${e} `):this.args.results.forEach(t=>{(e=t.additionalTags?this.args.slug?.split(" ").slice(0,-1).join(" ").trim()||"":this.args.slug?.split("#")[0].trim()||"").length&&(e=`${e} `)}),e}get fullSlugForCategoryMap(){let e={};return this.args.results.forEach(t=>{if(t.model){let n=t.model.parentCategory?`#${t.model.parentCategory.slug}:${t.model.slug}`:`#${t.model.slug}`;e[t.model.id]=`${this.prefix}${n}`}}),e}get user(){return this.args.results[0]}}function c(e){a.includes(e)||a.push(e)}(0,o.setComponentTemplate)(r,u)},67205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"r679hh9L",block:'[[[10,1],[14,0,"blurb"],[12],[1,"\\n "],[1,[28,[35,1],[[30,1,["created_at"]]],null]],[1,"\\n "],[10,1],[14,0,"blurb__separator"],[12],[1," - "],[13],[1,"\\n"],[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1," "],[10,1],[12],[1,[28,[35,3],[[30,1,["blurb"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"blurb__text"],[12],[1,"\\n "],[8,[39,4],null,[["@string"],[[30,1,["blurb"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["@result"],false,["span","format-age","if","html-safe","search-menu/highlighted-search"]]',moduleName:"discourse/components/search-menu/results/blurb.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))()}(0,o.setComponentTemplate)(r,a)},31265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(54729),r=n(68556),o=n(51969),a=n(81637),l=n(43423);let u=(0,n(82739).createTemplateFactory)({id:"q+5CB0xM",block:'[[[10,"ul"],[14,0,"search-menu-initial-options"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["search-menu-initial-options",[28,[37,2],null,[["termMatchesContextTypeKeyword","contextTypeComponent","slug","suggestionKeyword","results","withInLabel","suffix","label","closeSearchMenu","searchTermChanged"],[[30,0,["termMatchesContextTypeKeyword"]],[30,0,["contextTypeComponent"]],[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["termMatchesContextTypeKeyword"]],[[[1," "],[8,[39,4],null,[["@slug","@extraHint","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["slug"]],true,[30,1],[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,5],[[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","searchContext"]]],null],[[[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[39,4],null,[["@suffix","@closeSearchMenu","@searchAllTopics","@extraHint","@searchTermChanged","@suggestionKeyword"],[[28,[37,6],["search.in_topics_posts"],null],[30,1],true,true,[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","searchContext"]],[[[1," "],[8,[30,0,["contextTypeComponent"]],null,[["@slug","@suggestionKeyword","@results","@withInLabel","@suffix","@label","@closeSearchMenu","@searchTermChanged"],[[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]],null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]],[30,0,["displayInitialOptions"]]],null],[[[1," "],[8,[39,8],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],[[[1," "],[8,[39,9],null,[["@searchTermChanged"],[[30,2]]],null],[1,"\\n"],[41,[28,[37,7],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]]],null],[[[1," "],[8,[39,8],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n"],[13]],["@closeSearchMenu","@searchTermChanged"],false,["ul","plugin-outlet","hash","if","search-menu/results/assistant-item","or","i18n","and","search-menu/results/recent-searches","search-menu/results/random-quick-tip"]]',moduleName:"discourse/components/search-menu/results/initial-options.hbs",isStrictMode:!1});var c=n(76417);let d={topic:l.default,private_messages:l.default,category:a.default,tag:a.default,tagIntersection:a.default,user:l.default},p=["topic","category","tag","tagIntersection","user"];class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[s.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){super(...arguments),(this.search.activeGlobalSearchTerm||this.search.searchContext)&&this.search.searchContext&&(this.contextTypeComponent=d[this.search.searchContext.type],this.setAttributesForSearchContextType(this.search.searchContext.type))}get termMatchesContextTypeKeyword(){return this.search.activeGlobalSearchTerm?.match(r.MODIFIER_REGEXP)}get displayInitialOptions(){return!this.search.activeGlobalSearchTerm&&p.includes(this.search.searchContext?.type)}setAttributesForSearchContextType(e){switch(e){case"topic":this.topicContextType();break;case"private_messages":this.privateMessageContextType();break;case"category":this.categoryContextType();break;case"tag":this.tagContextType();break;case"tagIntersection":this.tagIntersectionContextType();break;case"user":this.userContextType()}}topicContextType(){this.suffix=(0,o.i18n)("search.in_this_topic")}privateMessageContextType(){this.slug="in:messages",this.label="in:messages"}categoryContextType(){let e=this.search.searchContext.category,t=e.parentCategory?`#${e.parentCategory.slug}:${e.slug}`:`#${e.slug}`;this.slug=t,this.contextTypeKeyword="#",this.initialResults=[{model:this.search.searchContext.category}],this.withInLabel=!0}tagContextType(){this.slug=`#${this.search.searchContext.name}`,this.contextTypeKeyword="#",this.initialResults=[{name:this.search.searchContext.name}],this.withInLabel=!0}tagIntersectionContextType(){let e;let t=this.search.searchContext;if(t.additionalTags){let n=[t.tagId,...t.additionalTags];e=`tags:${n.join("+")}`}else e=`#${t.tagId}`;let n={tagName:t.tagId,additionalTags:t.additionalTags};if(t.category){let i=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`;n.categoryName=i,n.category=t.category,e+=` ${i}`}this.slug=e,this.contextTypeKeyword="+",this.initialResults=[n],this.withInLabel=!0}userContextType(){this.contextTypeKeyword="@",this.slug=`@${this.search.searchContext.user.username}`,this.suffix=(0,o.i18n)("search.in_posts_by",{username:this.search.searchContext.user.username})}}(0,c.setComponentTemplate)(u,h)},41726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(70001),r=n(54729),o=n(56839);let a=(0,n(82739).createTemplateFactory)({id:"nUqYjIXV",block:'[[[41,[30,0,["topicResults"]],[[[1," "],[11,0],[24,0,"search-menu__show-more"],[4,[38,2],["keyup",[30,0,["onKeyup"]]],null],[12],[1,"\\n"],[41,[30,0,["moreUrl"]],[[[1," "],[11,3],[16,6,[30,0,["moreUrl"]]],[24,0,"filter search-link"],[4,[38,2],["click",[30,0,["transitionToMoreUrl"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["more"],null]],[1,"...\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicResults","more"]],[[[1," "],[11,3],[24,0,"filter search-link"],[4,[38,2],["click",[28,[37,5],[[30,0,["moreOfType"]],[30,0,["topicResults","type"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,4],["more"],null]],[1,"...\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","on","a","i18n","fn"]]',moduleName:"discourse/components/search-menu/results/more-link.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tV=(()=>void dt7948.i(this,"search"))();get topicResults(){return this.args.resultTypes.filter(e=>"topic"===e.type)[0]}get moreUrl(){return this.topicResults.moreUrl&&this.topicResults.moreUrl()}transitionToMoreUrl(e){return e.preventDefault(),this.args.closeSearchMenu(),o.default.routeTo(this.moreUrl),!1}static #n=(()=>dt7948.n(this.prototype,"transitionToMoreUrl",[s.action]))();moreOfType(e){this.args.updateTypeFilter(e),this.args.triggerSearch(),this.args.closeSearchMenu()}static #i=(()=>dt7948.n(this.prototype,"moreOfType",[s.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #l=(()=>dt7948.n(this.prototype,"onKeyup",[s.action]))()}(0,l.setComponentTemplate)(a,u)},10968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addQuickSearchRandomTip:()=>p,default:()=>g,removeDefaultQuickSearchRandomTips:()=>m,resetQuickSearchRandomTips:()=>h});var i=n(37138),s=n(70001),r=n(54729),o=n(68556),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"fRtXjUg8",block:'[[[10,"li"],[14,0,"search-random-quick-tip"],[12],[1,"\\n "],[11,"button"],[16,0,[28,[37,2],["tip-label",[52,[30,0,["randomTip","clickable"]],"tip-clickable"]],null]],[24,"aria-describedby","tip-description"],[4,[38,4],["click",[30,0,["tipSelected"]]],null],[12],[1,"\\n "],[1,[30,0,["randomTip","label"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,1,"tip-description"],[12],[1,"\\n "],[1,[30,0,["randomTip","description"]]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["li","button","concat-class","if","on","span"]]',moduleName:"discourse/components/search-menu/results/random-quick-tip.hbs",isStrictMode:!1});var u=n(76417);let c=[{label:"#",description:(0,a.i18n)("search.tips.category_tag"),clickable:!0},{label:"@",description:(0,a.i18n)("search.tips.author"),clickable:!0},{label:"in:",description:(0,a.i18n)("search.tips.in"),clickable:!0},{label:"status:",description:(0,a.i18n)("search.tips.status"),clickable:!0},{label:(0,a.i18n)("search.tips.full_search_key",{modifier:"Ctrl"}),description:(0,a.i18n)("search.tips.full_search")},{label:"@me",description:(0,a.i18n)("search.tips.me")}],d=[];function p(e){d.includes(e)||d.push(e)}function h(){d=[].concat(c)}function m(){d=d.filter(e=>!c.includes(e))}h();class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tV=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.randomTip=d[Math.floor(Math.random()*d.length)]}tipSelected(e){e.target.classList.contains("tip-clickable")&&(this.args.searchTermChanged(this.randomTip.label),(0,o.focusSearchInput)(),e.stopPropagation(),e.preventDefault())}static #n=(()=>dt7948.n(this.prototype,"tipSelected",[s.action]))()}(0,u.setComponentTemplate)(l,g)},2495:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(70001),r=n(54729),o=n(41958);let a=(0,n(82739).createTemplateFactory)({id:"uaSh6zpz",block:'[[[41,[30,0,["currentUser","recent_searches"]],[[[1," "],[10,0],[14,0,"search-menu-recent"],[12],[1,"\\n "],[10,0],[14,0,"heading"],[12],[1,"\\n "],[10,"h4"],[12],[1,[28,[35,3],["search.recent"],null]],[13],[1,"\\n "],[8,[39,4],[[24,0,"clear-recent-searches"]],[["@title","@icon","@action"],["search.clear_recent","xmark",[30,0,["clearRecent"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["currentUser","recent_searches"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@icon","@label","@slug","@closeSearchMenu","@searchTermChanged","@usage","@concatSlug"],["clock-rotate-left",[30,1],[30,1],[30,2],[30,3],"recent-search",true]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null]],["slug","@closeSearchMenu","@searchTermChanged"],false,["if","div","h4","i18n","flat-button","each","-track-array","search-menu/results/assistant-item"]]',moduleName:"discourse/components/search-menu/results/recent-searches.hbs",isStrictMode:!1});var l=n(76417);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();constructor(){super(...arguments),this.currentUser&&this.siteSettings.log_search_queries&&!this.currentUser.recent_searches?.length&&this.loadRecentSearches()}async clearRecent(){(await o.default.resetRecentSearches()).success&&this.currentUser.recent_searches.clear()}static #i=(()=>dt7948.n(this.prototype,"clearRecent",[s.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #l=(()=>dt7948.n(this.prototype,"onKeyup",[s.action]))();async loadRecentSearches(){let e=await o.default.loadRecentSearches();e.success&&e.recent_searches?.length&&this.currentUser.set("recent_searches",e.recent_searches)}}(0,l.setComponentTemplate)(a,u)},24063:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"aSaxH6Gy",block:'[[[1,[28,[35,0],[[30,1]],[["link","allowUncategorized"],[false,true]]]]],["@result"],false,["category-link"]]',moduleName:"discourse/components/search-menu/results/type/category.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"category"))},23694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"welNWeeS",block:'[[[10,0],[15,0,[29,["group-result ",[52,[30,1,["flairUrl"]],"--with-flair"]]]],[12],[1,"\\n"],[41,[30,1,["flairUrl"]],[[[1," "],[8,[39,2],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor","@class"],[[30,1,["name"]],[30,1,["flairUrl"]],[30,1,["flairBgColor"]],[30,1,["flairColor"]],"avatar-flair__wrapper"]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,3],["users"],null]],[1,"\\n"]],[]]],[1," "],[10,0],[15,0,[29,["group-names ",[52,[30,1,["fullName"]],"--group-with-slug"]]]],[12],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,[28,[35,5],[[30,1,["fullName"]],[30,1,["name"]]],null]],[13],[1,"\\n"],[41,[30,1,["fullName"]],[[[1," "],[10,0],[14,0,"slug"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@result"],false,["div","if","avatar-flair","d-icon","span","or"]]',moduleName:"discourse/components/search-menu/results/type/group.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"group"))},85409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"b0ku8qNe",block:'[[[1,[28,[35,0],["search.post_format",[30,1]],null]],[1,"\\n"],[8,[39,1],null,[["@result"],[[30,1]]],null]],["@result"],false,["i18n","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/post.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"post"))},49927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Ygddpubc",block:'[[[1,[28,[35,0],["tag"],null]],[1,"\\n"],[1,[28,[35,1],[[28,[37,2],[[30,1,["id"]],[30,1]],null]],[["tagName"],["span"]]]]],["@result"],false,["d-icon","discourse-tag","or"]]',moduleName:"discourse/components/search-menu/results/type/tag.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"tag"))},42536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(54729);let r=(0,n(82739).createTemplateFactory)({id:"6sA5VJsL",block:'[[[10,1],[14,0,"topic"],[12],[1,"\\n "],[10,1],[14,0,"first-line"],[12],[1,"\\n "],[8,[39,1],null,[["@topic","@disableActions"],[[30,1,["topic"]],true]],null],[1,"\\n "],[10,1],[14,0,"topic-title"],[15,"data-topic-id",[30,1,["topic","id"]]],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[30,1,["topic_title_headline"]]],null],[[[1," "],[10,3],[15,6,[52,[30,2],[30,1,["url"]]]],[12],[1,"\\n "],[1,[28,[35,5],[[28,[37,6],[[30,1,["topic_title_headline"]]],null]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[52,[30,2],[30,1,["url"]]]],[12],[1,"\\n "],[8,[39,7],null,[["@string"],[[30,1,["topic","fancyTitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[8,[39,8],null,[["@name","@outletArgs"],["search-menu-results-topic-title-suffix",[28,[37,9],null,[["topic"],[[30,1,["topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"second-line"],[12],[1,"\\n "],[1,[28,[35,10],[[30,1,["topic","category"]]],[["link"],[[52,[30,2],true,false]]]]],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[1,[28,[35,11],[[30,1,["topic"]]],[["tagName"],["span"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,12],null,[["@result"],[[30,1]]],null]],["@result","@withTopicUrl"],false,["span","topic-status","if","and","a","replace-emoji","html-safe","search-menu/highlighted-search","plugin-outlet","hash","category-link","discourse-tags","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/topic.hbs",isStrictMode:!1});var o=n(76417);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))()}(0,o.setComponentTemplate)(r,a)},54276:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Q7KtOk/J",block:'[[[1,[28,[35,0],[[30,1]],[["imageSize","template","username"],["small",[30,1,["avatar_template"]],[30,1,["username"]]]]]],[1,"\\n"],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[28,[37,3],[[30,2],[30,1,["name"]]],null],[[[1," "],[10,1],[14,0,"name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"username"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1,["username"]]],null]],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["custom_data"]],[[[42,[28,[37,7],[[28,[37,7],[[30,1,["custom_data"]]],null]],null],null,[[[1," "],[10,1],[14,0,"custom-field"],[12],[1,[30,3,["name"]]],[1,": "],[1,[30,3,["value"]]],[13],[1,"\\n"]],[3]],null]],[]],null],[13]],["@result","@displayNameWithUser","row"],false,["avatar","div","if","and","span","format-username","each","-track-array"]]',moduleName:"discourse/components/search-menu/results/type/user.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"user"))},30353:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(70001),r=n(54729),o=n(3737),a=n(84188),l=n(56839);let u=(0,n(82739).createTemplateFactory)({id:"tBFei9eJ",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["filteredResultTypes"]]],null]],null],null,[[[1," "],[10,0],[15,0,[30,1,["componentName"]]],[12],[1,"\\n "],[8,[39,3],null,[["@name","@outletArgs"],["search-menu-results-type-top",[28,[37,4],null,[["resultType"],[[30,1]]]]]],null],[1,"\\n "],[10,"ul"],[14,0,"list"],[15,"aria-label",[28,[37,6],[[28,[37,7],["search.results"],null]," ",[30,1,["type"]]],null]],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["results"]]],null]],null],null,[[[1," "],[11,"li"],[24,0,"item"],[4,[38,9],["keydown",[28,[37,10],[[30,0,["onKeydown"]],[28,[37,4],null,[["resultType","result"],[[30,1],[30,2]]]]],null]],null],[12],[1,"\\n "],[11,3],[16,6,[28,[37,12],[[30,2,["url"]],[30,2,["path"]]],null]],[24,0,"search-link"],[4,[38,9],["click",[28,[37,10],[[30,0,["onClick"]],[28,[37,4],null,[["resultType","result"],[[30,1],[30,2]]]]],null]],null],[12],[1,"\\n "],[8,[30,1,["component"]],null,[["@result","@displayNameWithUser"],[[30,2],[30,3]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null]],["resultType","result","@displayNameWithUser"],false,["each","-track-array","div","plugin-outlet","hash","ul","concat","i18n","li","on","fn","a","or"]]',moduleName:"discourse/components/search-menu/results/types.hbs",isStrictMode:!1});var c=n(76417);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[r.service]))();#tV=(()=>void dt7948.i(this,"search"))();get filteredResultTypes(){return this.args.topicResultsOnly?this.args.resultTypes.filter(e=>"topic"===e.type):this.args.resultTypes.filter(e=>"topic"!==e.type)}onClick(e,t){let{resultType:n,result:i}=e;(0,a.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:i.id,searchResultType:n.type}),(0,o.wantsNewWindow)(t)||(t.preventDefault(),this.routeToSearchResult(t.currentTarget.href))}static #n=(()=>dt7948.n(this.prototype,"onClick",[s.action]))();onKeydown(e,t){let{resultType:n,result:i}=e;return"Escape"===t.key?(this.args.closeSearchMenu(),t.preventDefault(),!1):"Enter"===t.key?(t.preventDefault(),t.stopPropagation(),(0,a.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:i.id,searchResultType:n.type}),this.routeToSearchResult(t.target.href),!1):void(this.search.handleResultInsertion(t),this.search.handleArrowUpOrDown(t))}static #i=(()=>dt7948.n(this.prototype,"onKeydown",[s.action]))();routeToSearchResult(e){l.default.routeTo(e),this.args.closeSearchMenu()}static #l=(()=>dt7948.n(this.prototype,"routeToSearchResult",[s.action]))()}(0,c.setComponentTemplate)(u,d)},93345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addOnKeyUpCallback:()=>p,default:()=>m,resetOnKeyUpCallbacks:()=>h});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(68556),l=n(20802);let u=(0,n(82739).createTemplateFactory)({id:"ic+QQ8d3",block:'[[[11,"input"],[16,1,[30,0,["inputId"]]],[24,"autocomplete","off"],[16,2,[30,0,["search","activeGlobalSearchTerm"]]],[16,"placeholder",[28,[37,1],["search.title"],null]],[16,"aria-label",[28,[37,1],["search.title"],null]],[24,4,"search"],[4,[38,2],["keyup",[30,0,["onKeyup"]]],null],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null],[4,[38,2],["input",[30,0,["updateSearchTerm"]]],null],[4,[38,2],["focus",[30,1]],null],[4,[38,3],[[30,0,["focus"]]],null],[12],[13]],["@openSearchMenu"],false,["input","i18n","on","did-insert"]]',moduleName:"discourse/components/search-menu/search-term.hbs",isStrictMode:!1});var c=n(76417);let d=[];function p(e){d.push(e)}function h(){d.clear()}class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#tV=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"lastEnterTimestamp",[s.tracked],function(){return null}))();#rH=(()=>void dt7948.i(this,"lastEnterTimestamp"))();static #l=(()=>dt7948.g(this.prototype,"searchCleared",[s.tracked],function(){return!this.search.activeGlobalSearchTerm}))();#rV=(()=>void dt7948.i(this,"searchCleared"))();get inputId(){return a.SEARCH_INPUT_ID}updateSearchTerm(e){this.parseAndUpdateSearchTerm(this.search.activeGlobalSearchTerm,e.target.value),this.searchCleared=!this.search.activeGlobalSearchTerm}static #u=(()=>dt7948.n(this.prototype,"updateSearchTerm",[r.action]))();focus(e){this.args.autofocus&&(e.focus(),e.select())}static #c=(()=>dt7948.n(this.prototype,"focus",[r.action]))();onKeydown(e){"Escape"===e.key&&(this.args.closeSearchMenu(),e.preventDefault(),e.stopPropagation())}static #d=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();onKeyup(e){if(!d.length||d.some(t=>t(this,e))){if(this.args.openSearchMenu(),this.search.handleArrowUpOrDown(e),"Enter"===e.key){let t=this.lastEnterTimestamp&&Date.now()-this.lastEnterTimestamp<15e3;e.ctrlKey||e.metaKey||(0,l.isiPad)()&&e.altKey||this.args.typeFilter!==a.DEFAULT_TYPE_FILTER&&t?(this.args.fullSearch(),this.args.closeSearchMenu()):(this.args.updateTypeFilter(null),this.args.triggerSearch()),this.lastEnterTimestamp=Date.now()}"Backspace"!==e.key||e.target.value||(this.searchCleared&&(this.args.clearTopicContext(),this.args.clearPMInboxContext(),this.focus(e.target)),this.searchCleared=!0),e.preventDefault()}}static #p=(()=>dt7948.n(this.prototype,"onKeyup",[r.action]))();parseAndUpdateSearchTerm(e,t){let n=t.replace(/[\u200B-\u200D\uFEFF]/,"");n!==e&&this.args.searchTermChanged(n)}}(0,c.setComponentTemplate)(u,m)},13685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"csK2xg1R",block:'[[[10,0],[14,0,"fps-result-entries"],[14,"role","list"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["posts"]]],null]],null],null,[[[1," "],[8,[39,3],null,[["@post","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["searchLogId"]]]],null],[1,"\\n"]],[1]],null],[13]],["post"],false,["div","each","-track-array","search-result-entry"]]',moduleName:"discourse/components/search-result-entries.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("")]),a=(0,i.setComponentTemplate)(r,o)},17775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(70001),r=n(93223),o=n(3737),a=n(84188);let l=(0,n(82739).createTemplateFactory)({id:"x87hNw2M",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-results-topic-avatar-wrapper",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"author"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["post","userPath"]]],[15,"data-user-card",[30,0,["post","username"]]],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["post"]]],[["imageSize"],["large"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"fps-topic"],[15,"data-topic-id",[30,0,["post","topic","id"]]],[12],[1,"\\n "],[10,0],[14,0,"topic"],[12],[1,"\\n\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1," "],[8,[39,6],[[24,0,"bulk-select"]],[["@selectedList","@selectedId"],[[30,0,["selected"]],[30,0,["post","topic"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[11,3],[16,6,[30,0,["post","url"]]],[16,0,[29,["search-link",[52,[30,0,["post","topic","visited"]]," visited"]]]],[24,"role","heading"],[24,"aria-level","2"],[4,[38,7],["click",[28,[37,8],[[30,0,["logClick"]],[30,0,["post","topic_id"]]],null]],null],[12],[1,"\\n "],[1,[28,[35,9],["topic-status"],[["topic","showPrivateMessageIcon"],[[30,0,["post","topic"]],true]]]],[1,"\\n "],[10,1],[14,0,"topic-title"],[12],[1,"\\n"],[41,[30,0,["post","useTopicTitleHeadline"]],[[[1," "],[1,[28,[35,11],[[30,0,["post","topicTitleHeadline"]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,11],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-results-topic-title-suffix",[28,[37,1],null,[["topic"],[[30,0,["post","topic"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,0,["post","topic","category","parentCategory"]],[[[1," "],[1,[28,[35,13],[[30,0,["post","topic","category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[35,13],[[30,0,["post","topic","category"]]],[["hideParent"],[true]]]],[1,"\\n"],[41,[30,0,["post","topic"]],[[[1," "],[1,[28,[35,14],[[30,0,["post","topic"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-category","div",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-result-entry-blurb-wrapper",[28,[37,1],null,[["post","logClick"],[[30,0,["post"]],[30,0,["logClick"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"blurb container"],[12],[1,"\\n "],[10,1],[14,0,"date"],[12],[1,"\\n "],[1,[28,[35,15],[[30,0,["post","created_at"]]],[["format"],["tiny"]]]],[1,"\\n"],[41,[30,0,["post","blurb"]],[[[1," "],[10,1],[14,0,"separator"],[12],[1,"-"],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["post","blurb"]],[[[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1," "],[1,[28,[35,11],[[30,0,["post","blurb"]]],null]],[1,"\\n"]],[]],[[[1," "],[8,[39,12],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,11],[[30,0,["post","blurb"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,0],null,[["@name","@outletArgs"],["search-result-entry-stats-wrapper",[28,[37,1],null,[["post"],[[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showLikeCount"]],[[[41,[30,0,["post","like_count"]],[[[1," "],[10,1],[14,0,"like-count"],[12],[1,"\\n "],[10,1],[14,0,"value"],[12],[1,[30,0,["post","like_count"]]],[13],[1,"\\n "],[1,[28,[35,16],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,0],null,[["@name"],["after-search-result-entry"]],null]],[],false,["plugin-outlet","hash","div","a","avatar","if","track-selected","on","fn","raw","span","html-safe","highlight-search","category-link","discourse-tags","format-date","d-icon"]]',moduleName:"discourse/components/search-result-entry.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{role="listitem";logClick(e,t){!(0,o.wantsNewWindow)(t)&&this.searchLogId&&e&&(0,a.logSearchLinkClick)({searchLogId:this.searchLogId,searchResultId:e,searchResultType:"topic"})}static #e=(()=>dt7948.n(this.prototype,"logClick",[s.action]))()},[(0,r.attributeBindings)("role"),(0,r.classNameBindings)("bulkSelectEnabled"),(0,r.classNames)("fps-result"),(0,r.tagName)("div")]),c=(0,i.setComponentTemplate)(l,u)},42614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(9630),s=n(14682),r=n.n(s),o=n(46213),a=n(84188),l=n(62797),u=n(51969);class c extends o.default{autocomplete="off";placeholder(e){return e?"":(0,u.i18n)("search.full_page_title")}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,l.default)("searchService.searchContextEnabled")]))();becomeFocused(){let e=r()(this.element);(0,a.applySearchAutocomplete)(e,this.siteSettings),this.hasAutofocus&&(r()(window).scrollTop(0),e.focus())}static #n=(()=>dt7948.n(this.prototype,"becomeFocused",[(0,i.on)("didInsertElement")]))()}},80458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(70001),r=n(41958),o=n(62797),a=n(51969);let l=(0,n(82739).createTemplateFactory)({id:"XtYuB5jE",block:'[[[10,0],[14,1,"second-factor"],[12],[1,"\\n "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n\\n"],[41,[30,0,["optionalText"]],[[[1," "],[10,2],[12],[1,[28,[35,4],[[30,0,["optionalText"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,2],[14,0,"second-factor__description"],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n\\n "],[18,1,null],[1,"\\n\\n"],[41,[30,0,["showToggleMethodLink"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,7],["click",[30,0,["toggleSecondFactorMethod"]]],null],[12],[1,[28,[35,8],[[30,0,["linkText"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["&default"],false,["div","h3","if","p","html-safe","yield","a","on","i18n"]]',moduleName:"discourse/components/second-factor-form.hbs",isStrictMode:!1});class u extends i.default{secondFactorTitle(e){switch(e){case r.SECOND_FACTOR_METHODS.TOTP:case r.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,a.i18n)("login.second_factor_title");case r.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,a.i18n)("login.second_factor_backup_title")}}static #e=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,o.default)("secondFactorMethod")]))();secondFactorDescription(e){switch(e){case r.SECOND_FACTOR_METHODS.TOTP:return(0,a.i18n)("login.second_factor_description");case r.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,a.i18n)("login.security_key_description");case r.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,a.i18n)("login.second_factor_backup_description")}}static #n=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,o.default)("secondFactorMethod")]))();linkText(e,t){return t?e===r.SECOND_FACTOR_METHODS.TOTP?"login.second_factor_backup":"login.second_factor":e===r.SECOND_FACTOR_METHODS.TOTP?"user.second_factor_backup.use":"user.second_factor.use"}static #i=(()=>dt7948.n(this.prototype,"linkText",[(0,o.default)("secondFactorMethod","isLogin")]))();showToggleMethodLink(e,t,n){return e&&t&&n!==r.SECOND_FACTOR_METHODS.SECURITY_KEY}static #l=(()=>dt7948.n(this.prototype,"showToggleMethodLink",[(0,o.default)("backupEnabled","totpEnabled","secondFactorMethod")]))();toggleSecondFactorMethod(e){e?.preventDefault();let t=this.secondFactorMethod;this.set("secondFactorToken",""),t===r.SECOND_FACTOR_METHODS.TOTP?this.set("secondFactorMethod",r.SECOND_FACTOR_METHODS.BACKUP_CODE):this.set("secondFactorMethod",r.SECOND_FACTOR_METHODS.TOTP)}static #u=(()=>dt7948.n(this.prototype,"toggleSecondFactorMethod",[s.action]))()}(0,i.setComponentTemplate)(l,u)},23162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(68741),r=n(41958),o=n(76417),a=n(82739);class l extends i.default{_focusInput(e){e.focus()}get isTotp(){return this.args.secondFactorMethod===r.SECOND_FACTOR_METHODS.TOTP}get isBackupCode(){return this.args.secondFactorMethod===r.SECOND_FACTOR_METHODS.BACKUP_CODE}get type(){return this.isTotp?"tel":this.isBackupCode?"text":void 0}get pattern(){return this.isTotp?"[0-9]{6}":this.isBackupCode?"[a-z0-9]{16}":void 0}get maxlength(){return this.isTotp?"6":this.isBackupCode?"32":void 0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"IzpPqvOP",block:'[[[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,"pattern",[30,0,["pattern"]]],[16,"maxlength",[30,0,["maxlength"]]],[24,"autocomplete","one-time-code"],[24,"autocapitalize","off"],[24,"autocorrect","off"],[24,"autofocus","autofocus"],[24,0,"second-factor-token-input"],[17,1],[4,[32,0],[[30,0,["_focusInput"]]],null],[12],[13],[1,"\\n "]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/second-factor-input.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},95625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")}),e.push({id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}),e}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){switch(e){case"edit":this.editSecurityKey(this.securityKey);break;case"disable":this.disableSingleSecondFactor(this.securityKey)}}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("security-key-dropdown")])},47118:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(87075),r=n(70001),o=n(92976),a=n(41958),l=n(51969),u=n(76417),c=n(82739);class d extends i.default{useAnotherMethod(e){e.preventDefault(),this.args.setShowSecurityKey?.(!1),this.args.setShowSecondFactor?.(!0),this.args.totpEnabled?this.args.setSecondFactorMethod?.(a.SECOND_FACTOR_METHODS.TOTP):this.args.backupEnabled&&this.args.setSecondFactorMethod?.(a.SECOND_FACTOR_METHODS.BACKUP_CODE)}static #e=(()=>dt7948.n(this.prototype,"useAnotherMethod",[r.action]))();static #n=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"YeYNXmBM",block:'[[[1,"\\n "],[10,0],[14,1,"security-key"],[12],[1,"\\n "],[8,[32,0],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,1],"key","login.security_key_authenticate"]],null],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,2],[[[1," "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[32,1],["click",[30,0,["useAnotherMethod"]]],null],[12],[1,[28,[32,2],["login.security_key_alternative"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@action","@otherMethodAllowed"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/security-key-form.js",scope:()=>[o.default,s.on,l.i18n],isStrictMode:!0}),this))()}},23335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"JQF/mCQj",block:'[[[10,2],[12],[1,"\\n "],[8,[39,1],null,[["@key","@count"],["topic.multi_select.description",[30,0,["selectedPostsCount"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSelectAll"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,0,"select-all"],[24,6,""],[4,[38,4],["click",[30,0,["selectAll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.select_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeselectAll"]],[[[1," "],[10,2],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,4],["click",[30,0,["deselectAll"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.deselect_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteSelected"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteSelected"]],"trash-can","topic.multi_select.delete"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergeTopic"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary move-to-topic"]],[["@action","@icon","@label"],[[28,[37,7],["moveToTopic"],null],"right-from-bracket","topic.move_to.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeOwner"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,7],["changeOwner"],null],"user","topic.change_owner.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergePosts"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["mergePosts"]],"up-down","topic.merge_posts.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[14,0,"cancel"],[12],[1,"\\n "],[11,3],[24,6,""],[4,[38,4],["click",[30,0,["toggleMultiSelect"]]],null],[12],[1,"\\n "],[1,[28,[35,5],["topic.multi_select.cancel"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["p","count-i18n","if","a","on","i18n","d-button","route-action"]]',moduleName:"discourse/components/selected-posts.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},50472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(76417),s=n(70001),r=n(5938),o=n(97355),a=n(53674),l=n(20802),u=n(86211),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"oSdlXMpo",block:'[[[10,0],[14,0,"header"],[12],[1,"\\n "],[10,"h3"],[14,0,"title"],[12],[1,[28,[35,2],[[30,0,["shareTitle"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"body"],[12],[1,"\\n "],[8,[39,3],[[24,0,"topic-share-url"]],[["@value","@aria-label"],[[30,0,["shareUrl"]],[28,[37,4],["share.url"],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["sources"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@source","@action"],[[30,1],[30,0,["share"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"],[13]],["source"],false,["div","h3","html-safe","d-textarea","i18n","each","-track-array","share-source"]]',moduleName:"discourse/components/share-panel.hbs",isStrictMode:!1});class h extends i.default{tagName=null;static #e=(()=>dt7948.g(this.prototype,"type",[(0,r.alias)("panel.model.type")]))();#rW=(()=>void dt7948.i(this,"type"))();static #n=(()=>dt7948.g(this.prototype,"topic",[(0,r.alias)("panel.model.topic")]))();#U=(()=>void dt7948.i(this,"topic"))();static #i=(()=>dt7948.g(this.prototype,"privateCategory",[(0,r.alias)("panel.model.topic.category.read_restricted")]))();#rK=(()=>void dt7948.i(this,"privateCategory"))();sources(e){let t=this.siteSettings.login_required||e&&e.isPrivateMessage||e&&e.invisible||this.privateCategory;return a.default.activeSources(this.siteSettings.share_links,t)}static #l=(()=>dt7948.n(this.prototype,"sources",[(0,c.default)("topic.{isPrivateMessage,invisible,category}")]))();shareTitle(e,t){return t=(0,l.escapeExpression)(t),(0,d.i18n)("share.topic_html",{topicTitle:t})}static #u=(()=>dt7948.n(this.prototype,"shareTitle",[(0,c.default)("type","topic.title")]))();shareUrl(e,t){if(t=e||t,!(0,o.isEmpty)(t)){if(t.startsWith("/")){let e=window.location;t=`${e.protocol}//${e.host}${t}`}return encodeURI(t)}}static #c=(()=>dt7948.n(this.prototype,"shareUrl",[(0,c.default)("panel.model.shareUrl","topic.shareUrl")]))();didInsertElement(){super.didInsertElement(...arguments),(0,u.default)(()=>{if(this.element){let e=this.element.querySelector(".topic-share-url");e.style.height=e.scrollHeight+"px",e.focus(),e.setSelectionRange(0,this.shareUrl.length)}},200)}share(e){a.default.shareSource(e,{url:this.shareUrl,title:this.topic.get("title")})}static #d=(()=>dt7948.n(this.prototype,"share",[s.action]))()}(0,i.setComponentTemplate)(p,h)},55260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39882),s=n(64151),r=n(92976),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"sNmo5jn3",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[29,["btn-default share-",[30,1,["id"]]]]],[17,2]],[["@action","@translatedTitle","@icon"],[[28,[32,1],[[30,3],[30,1]],null],[30,1,["title"]],[28,[32,2],[[30,1,["icon"]],[30,1,["htmlIcon"]]],null]]],null],[1,"\\n"]],["@source","&attrs","@action"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/share-source.js",scope:()=>[r.default,i.fn,s.or],isStrictMode:!0}),(0,l.default)(void 0,"share-source:ShareSource"))},93945:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(70001),r=n(54729),o=n(93223),a=n(62797),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"+AjCK17v",block:'[[[10,0],[14,0,"shared-draft-controls"],[12],[1,"\\n"],[41,[30,0,["publishing"]],[[[1," "],[1,[28,[35,2],["shared_drafts.publishing"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,2],["shared_drafts.notice"],null]],[1,"\\n\\n "],[10,0],[14,0,"publish-field"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["shared_drafts.destination_category"],null]],[13],[1,"\\n "],[8,[39,4],null,[["@value","@onChange"],[[30,0,["topic","destination_category_id"]],[28,[37,5],[[30,0],"updateDestinationCategory"],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"publish-field"],[12],[1,"\\n"],[41,[30,0,["validCategory"]],[[[1," "],[8,[39,6],[[24,0,"btn-primary publish-shared-draft"]],[["@action","@label","@icon"],[[28,[37,5],[[30,0],"publish"],null],"shared_drafts.publish","far-clipboard"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","i18n","label","category-chooser","action","d-button"]]',moduleName:"discourse/components/shared-draft-controls.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();publishing=!1;validCategory(e){return e&&e!==this.site.shared_drafts_category_id}static #n=(()=>dt7948.n(this.prototype,"validCategory",[(0,a.default)("topic.destination_category_id")]))();updateDestinationCategory(e){return this.topic.updateDestinationCategory(e)}static #i=(()=>dt7948.n(this.prototype,"updateDestinationCategory",[s.action]))();publish(){this.dialog.yesNoConfirm({message:(0,l.i18n)("shared_drafts.confirm_publish"),didConfirm:()=>{this.set("publishing",!0);let e=this.topic.destination_category_id;return this.topic.publish().then(()=>{this.topic.setProperties({category_id:e,destination_category_id:void 0,is_shared_draft:!1})}).finally(()=>{this.set("publishing",!1)})}})}static #l=(()=>dt7948.n(this.prototype,"publish",[s.action]))()},[(0,o.tagName)("")]),d=(0,i.setComponentTemplate)(u,c)},6762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"zwbGssr+",block:'[[[1,[28,[35,0],["has-sidebar-page"],null]],[1,"\\n\\n"],[10,"section"],[14,1,"d-sidebar"],[14,0,"sidebar-container"],[12],[1,"\\n"],[41,[30,0,["showSwitchPanelButtonsOnTop"]],[[[1," "],[8,[39,3],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,4],null,[["@name"],["before-sidebar-sections"]],null],[1,"\\n\\n"],[41,[30,0,["sidebarState","showMainPanel"]],[[[1," "],[8,[39,5],null,[["@currentUser","@collapsableSections","@panel"],[[30,0,["currentUser"]],true,[30,0,["sidebarState","currentPanel"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,6],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],true]],null],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,4],null,[["@name"],["after-sidebar-sections"]],null],[1,"\\n\\n"],[41,[51,[30,0,["showSwitchPanelButtonsOnTop"]]],[[[1," "],[8,[39,3],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,8],null,null,null],[1,"\\n"],[13]],[],false,["body-class","section","if","sidebar/switch-panel-buttons","plugin-outlet","sidebar/sections","sidebar/api-panels","unless","sidebar/footer"]]',moduleName:"discourse/components/sidebar.hbs",isStrictMode:!1});var a=n(76417);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[s.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"sidebarState",[s.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();constructor(){super(...arguments),this.site.mobileView&&document.addEventListener("click",this.collapseSidebar)}willDestroy(){super.willDestroy(...arguments),this.site.mobileView&&document.removeEventListener("click",this.collapseSidebar)}get showSwitchPanelButtonsOnTop(){return"top"===this.siteSettings.default_sidebar_switch_panel_position}get switchPanelButtons(){return this.sidebarState.displaySwitchPanelButtons&&1!==this.sidebarState.panels.length&&this.currentUser?this.sidebarState.panels.filter(e=>e!==this.sidebarState.currentPanel&&!e.hidden):[]}collapseSidebar(e){let t=!1,n=e.composedPath().some(e=>e?.className!=="sidebar-section-header-caret"&&["A","BUTTON"].includes(e.nodeName)?(t=!0,!0):e.className&&"sidebar-wrapper"===e.className);(t||!n)&&this.args.toggleSidebar()}static #c=(()=>dt7948.n(this.prototype,"collapseSidebar",[r.bind]))()}(0,a.setComponentTemplate)(o,l)},51814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(88253),s=n(51969),r=n(45611),o=n(98956),a=n(54247),l=n(92872),u=n(76417),c=n(82739);class d extends o.default{shouldSortCategoriesByDefault=(()=>!!this.siteSettings.default_navigation_menu_categories)();get categories(){return this.siteSettings.default_navigation_menu_categories?i.default.findByIds(this.siteSettings.default_navigation_menu_categories.split("|").map(e=>parseInt(e,10))):this.topSiteCategories}static #e=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"KOlCCP5R",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@collapsable"],["categories",[28,[32,1],["sidebar.sections.categories.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,2],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@title","@content","@currentWhen","@model","@prefixType","@prefixValue","@prefixColor"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,3],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/categories-section.js",scope:()=>[a.default,s.i18n,l.default,r.default],isStrictMode:!0}),this))()}},50236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(9330);class s extends i.default{anonymous=!0}},94624:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(51814),o=n(50236),a=n(58691),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"zogYd21w",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-sections sidebar-sections-anonymous"],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n "],[8,[32,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[8,[32,2],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@collapsableSections"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/sections.js",scope:()=>[o.default,r.default,a.default],isStrictMode:!0}),this))()}},58691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138);n(28564);var s=n(54729),r=n(48380),o=n(51969),a=n(25568),l=n(54247),u=n(92872),c=n(76417),d=n(82739);let p=(0,n(41664).A)(n(28564)).cached;class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"topicTrackingState",[s.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();get displaySection(){return this.site.anonymous_default_navigation_menu_tags?.length>0||this.site.navigation_menu_site_top_tags?.length>0}get sectionLinks(){return(this.site.anonymous_default_navigation_menu_tags||this.site.navigation_menu_site_top_tags).map(e=>new r.default({tag:e,topicTrackingState:this.topicTrackingState}))}static #l=(()=>dt7948.n(this.prototype,"sectionLinks",[p]))();static #u=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"O+dMf9tZ",block:'[[[1,"\\n"],[41,[30,0,["displaySection"]],[[[1," "],[8,[32,0],null,[["@sectionName","@headerLinkText","@collapsable"],["tags",[28,[32,1],["sidebar.sections.tags.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,2],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@content","@title","@currentWhen","@prefixType","@prefixValue","@prefixColor","@models"],[[30,2,["route"]],[30,2,["text"]],[30,2,["title"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["models"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,3],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@collapsable","sectionLink"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/anonymous/tags-section.js",scope:()=>[l.default,o.i18n,u.default,a.default],isStrictMode:!0}),this))()}},91666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(51013),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[s.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get panelCssClass(){return`${this.sidebarState.currentPanel.key}-panel`}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"gOOLDH59",block:'[[[1,"\\n "],[10,0],[15,0,[29,["sidebar-sections ",[30,0,["panelCssClass"]]]]],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable","@expandActiveSection","@scrollActiveLinkIntoView"],[[30,1],[30,0,["sidebarState","currentPanel","expandActiveSection"]],[30,0,["sidebarState","currentPanel","scrollActiveLinkIntoView"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@collapsableSections"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-panels.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},79534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(64151),s=n(54247),r=n(92872),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"sw6z55S9",block:'[[[1,"\\n"],[41,[30,1,["filtered"]],[[[1," "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerLinkTitle","@headerActionsIcon","@headerActions","@willDestroy","@collapsable","@displaySection","@hideSectionHeader","@collapsedByDefault","@activeLink","@expandWhenActive","@scrollActiveLinkIntoView"],[[30,1,["name"]],[30,1,["text"]],[30,1,["title"]],[30,1,["actionsIcon"]],[30,1,["actions"]],[30,1,["willDestroy"]],[30,2],[30,1,["displaySection"]],[30,1,["hideSectionHeader"]],[30,1,["collapsedByDefault"]],[30,1,["activeLink"]],[30,3],[30,4]]],[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["filteredLinks"]]],null]],null],"name",[[[1," "],[8,[32,1],null,[["@linkName","@linkClass","@route","@model","@query","@models","@currentWhen","@href","@title","@contentCSSClass","@prefixColor","@prefixBadge","@prefixType","@prefixValue","@prefixCSSClass","@suffixType","@suffixValue","@suffixCSSClass","@hoverType","@hoverValue","@hoverAction","@hoverTitle","@didInsert","@willDestroy","@content","@contentComponent","@scrollIntoView"],[[30,5,["name"]],[30,5,["classNames"]],[30,5,["route"]],[30,5,["model"]],[30,5,["query"]],[30,5,["models"]],[30,5,["currentWhen"]],[30,5,["href"]],[30,5,["title"]],[30,5,["contentCSSClass"]],[30,5,["prefixColor"]],[30,5,["prefixBadge"]],[30,5,["prefixType"]],[30,5,["prefixValue"]],[30,5,["prefixCSSClass"]],[30,5,["suffixType"]],[30,5,["suffixValue"]],[30,5,["suffixCSSClass"]],[30,5,["hoverType"]],[30,5,["hoverValue"]],[30,5,["hoverAction"]],[30,5,["hoverTitle"]],[30,5,["didInsert"]],[30,5,["willDestroy"]],[30,5,["text"]],[50,[30,5,["contentComponent"]],0,null,[["status"],[[30,5,["contentComponentArgs"]]]]],[28,[32,2],[[30,4],[28,[32,3],[[30,5,["name"]],[30,1,["activeLink","name"]]],null]],null]]],null],[1,"\\n"]],[5]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null]],["@section","@collapsable","@expandWhenActive","@scrollActiveLinkIntoView","link"],false,["if","each","-track-array","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-section.js",scope:()=>[s.default,r.default,i.and,i.eq],isStrictMode:!0}),(0,l.default)(void 0,"api-section:SidebarApiSection"))},51013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138);n(28564);var s=n(71597),r=n(54729),o=n(79534),a=n(44018),l=n(76417),u=n(82739);let c=(0,n(41664).A)(n(28564)).cached;class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get sections(){return(this.sidebarState.combinedMode?this.sidebarState.panels.filter(e=>!e.hidden).flatMap(e=>e.sections):this.sidebarState.currentPanel.sections).map(e=>{let t=new(function(e,t){return class extends e{constructor(e){let{filterable:t,sidebarState:n}=e;super(),this.filterable=t,this.sidebarState=n}get filteredLinks(){return!this.filterable||!this.sidebarState.filter||this.text?.toLowerCase()?.match(this.sidebarState.sanitizedFilter)?this.links:this.links.filter(e=>e.text.toString().toLowerCase().match(this.sidebarState.sanitizedFilter)||e.keywords.navigation.some(e=>e.match(this.sidebarState.sanitizedFilter)))}static #e=(()=>dt7948.n(this.prototype,"filteredLinks",[c]))();get activeLink(){return this.filteredLinks.find(e=>{try{let n;let i=e.currentWhen;if("boolean"==typeof i)return i;let s=e.query||{};if(n=e.model?[e.model]:e.models?e.models:[],"string"==typeof i)return i.split(" ").some(e=>t.isActive(e,...n,{queryParams:s}));return t.isActive(e.route,...n,{queryParams:s})}catch{return!1}})}get filtered(){return!this.filterable||this.filteredLinks?.length>0}}}(e,this.router))({filterable:!this.sidebarState.combinedMode&&this.sidebarState.currentPanel.filterable,sidebarState:this.sidebarState});return(0,s.setOwner)(t,(0,s.getOwner)(this)),t})}get filteredSections(){return this.sections.filter(e=>e.filtered)}static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"iChWNeI/",block:'[[[1,"\\n "],[8,[32,0],null,[["@sections"],[[30,0,["filteredSections"]]]],null],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["filteredSections"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@section","@collapsable","@expandWhenActive","@scrollActiveLinkIntoView"],[[30,1],[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[1]],null],[1," "]],["section","@collapsable","@expandActiveSection","@scrollActiveLinkIntoView"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/api-sections.js",scope:()=>[a.default,o.default],isStrictMode:!0}),this))()}},63111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(21237),s=n(87389),r=n(51969),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"BbX5RHmp",block:'[[[1,"\\n "],[10,3],[15,6,[28,[32,0],["/"],null]],[14,0,"sidebar-sections__back-to-forum"],[12],[1,"\\n "],[1,[28,[32,1],["arrow-left"],null]],[1,"\\n\\n "],[10,1],[12],[1,[28,[32,2],["sidebar.back_to_forum"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/back-to-forum.js",scope:()=>[s.default,i.default,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,"back-to-forum:BackToForum"))},45611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(51969),s=n(92872),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"YWEH8fqk",block:'[[[1,"\\n "],[8,[32,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-categories",[28,[32,1],["sidebar.all_categories"],null],"discovery.categories","icon","sidebar.all_categories"]],null],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/all-categories-section-link.js",scope:()=>[s.default,i.i18n],isStrictMode:!0}),(0,a.default)(void 0,"all-categories-section-link:SidebarCommonAllCategoriesSectionLink"))},25568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(51969),s=n(92872),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ifEa62Ex",block:'[[[1,"\\n "],[8,[32,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-tags",[28,[32,1],["sidebar.all_tags"],null],"tags","icon","list"]],null],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/all-tags-section-link.js",scope:()=>[s.default,i.i18n],isStrictMode:!0}),(0,a.default)(void 0,"all-tags-section-link:SidebarCommonAllTagsSectionLink"))},98956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TOP_SITE_CATEGORIES_TO_SHOW:()=>u,default:()=>c});var i=n(37138);n(28564);var s=n(54729),r=n(59636),o=n(17621),a=n(88253);let l=(0,n(41664).A)(n(28564)).cached,u=5;class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"topicTrackingState",[s.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();shouldSortCategoriesByDefault=!0;get categories(){}get topSiteCategories(){return this.site.categoriesList.filter(e=>!e.parent_category_id&&(0,r.canDisplayCategory)(e.id,this.siteSettings)).slice(0,u)}get sortedCategories(){if(!this.shouldSortCategoriesByDefault)return this.categories;let e=[...this.site.categories];this.siteSettings.fixed_category_positions||e.sort((e,t)=>e.name.localeCompare(t.name));let t=this.categories.map(e=>e.id);return a.default.sortCategories(e).reduce((e,n)=>(t.includes(n.id)&&(0,r.canDisplayCategory)(n.id,this.siteSettings)&&e.push(n),e),[])}get sectionLinks(){return this.sortedCategories.map(e=>new o.default({category:e,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}))}static #l=(()=>dt7948.n(this.prototype,"sectionLinks",[l]))()}},16903:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(28564),r=n(71597),o=n(54729),a=n(64151),l=n(34991),u=n(11272),c=n(65694),d=n(15804),p=n(1662),h=n(49909),m=n(54247),g=n(92872),f=n(58061),_=n(76417),y=n(82739);class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"navigationMenu",[o.service]))();#rG=(()=>void dt7948.i(this,"navigationMenu"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"section",[s.tracked],function(){return this.initialSection}))();#rY=(()=>void dt7948.i(this,"section"))();willDestroy(){super.willDestroy(),this.section.teardown?.()}get initialSection(){let e={section:this.args.sectionData,owner:(0,r.getOwner)(this)};return"community"!==this.args.sectionData.section_type?new c.default(e):this.currentUser?.admin?new d.default(e):new u.default(e)}static #c=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"6ND6u+IK",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,0,["section","dragCss"]]]],[["@sectionName","@headerLinkText","@indicatePublic","@collapsable","@headerActions","@headerActionsIcon","@hideSectionHeader"],[[30,0,["section","slug"]],[30,0,["section","decoratedTitle"]],[30,0,["section","indicatePublic"]],[30,1],[30,0,["section","headerActions"]],[30,0,["section","headerActionIcon"]],[30,0,["section","hideSectionHeader"]]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["section","links"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@badgeText","@content","@currentWhen","@href","@linkClass","@linkName","@model","@models","@prefixType","@prefixValue","@query","@route","@shouldDisplay","@suffixCSSClass","@suffixType","@suffixValue","@title"],[[30,2,["badgeText"]],[28,[32,2],[[30,2,["text"]]],null],[30,2,["currentWhen"]],[28,[32,3],[[30,2,["value"]],[30,2,["href"]]],null],[30,2,["linkDragCss"]],[30,2,["name"]],[30,2,["model"]],[30,2,["models"]],"icon",[30,2,["prefixValue"]],[30,2,["query"]],[30,2,["route"]],[30,2,["shouldDisplay"]],[30,2,["suffixCSSClass"]],[30,2,["suffixType"]],[30,2,["suffixValue"]],[30,2,["title"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["section","moreLinks"]],[[[41,[30,0,["navigationMenu","isDesktopDropdownMode"]],[[[42,[28,[31,1],[[28,[31,1],[[30,0,["section","moreLinks"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@sectionLink"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["section","moreSectionButtonAction"]],[[[1," "],[8,[32,5],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["section","moreLinks"]],[[[1," "],[8,[32,6],null,[["@sectionLinks","@moreButtonAction","@moreButtonText","@moreButtonIcon"],[[30,0,["section","moreLinks"]],[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonText"]],[30,0,["section","moreSectionButtonIcon"]]]],null],[1,"\\n "]],[]],null]],[]]]],[]],[[[41,[30,0,["section","moreSectionButtonAction"]],[[[1," "],[8,[32,5],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n "]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","link","sectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/custom-section.js",scope:()=>[m.default,g.default,l.default,a.or,p.default,f.default,h.default],isStrictMode:!0}),this))()}},9330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(16903),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[s.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"topicTrackingState",[s.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();static #c=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();anonymous=!1;get sections(){return this.anonymous?this.site.anonymous_sidebar_sections:this.currentUser.sidebarSections}static #p=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"RTfM/mf4",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-custom-sections"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sections"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@sectionData","@collapsable"],[[30,1],[30,2]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["section","@collapsable"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/common/custom-sections.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},25760:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(68741),u=n(54729),c=n(28360),d=n(64151),p=n(92976),h=n(6407),m=n(74766),g=n(5152),f=n(70800),_=n(70264),y=n(64149),b=n(88253),w=n(45929),k=n(84262),x=n(51969),T=n(76417),S=n(82739);class C{constructor(e){this.perform=e,this.processing=!1,this.queued=!1}async trigger(){if(this.queued=!0,!this.processing){for(this.processing=!0;this.queued;)this.queued=!1,await this.perform();this.processing=!1}}}function E(e,t,n){let i=n.value;return n.value=function(){this[`_${t}_serializer`]||=new C(()=>i.apply(this)),this[`_${t}_serializer`].trigger()},n}function A(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map,i=new Map,s=new Map;for(let t of e.slice().reverse()){let e=n.get(t.parent_category_id)||0;n.set(t.parent_category_id,e+1);let s=i.get(t.parent_category_id)||0;i.set(t.parent_category_id,s+(i.get(t.id)||0)+1)}for(let[e,r]of n)5===r&&t.has(e)&&s.set(e,{level:t.get(e).level+1,offset:i.get(e)});return s}class D extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"initialLoad",[s.tracked],function(){return!0}))();#iU=(()=>void dt7948.i(this,"initialLoad"))();static #u=(()=>dt7948.g(this.prototype,"fetchedCategoriesGroupings",[s.tracked],function(){return[]}))();#rJ=(()=>void dt7948.i(this,"fetchedCategoriesGroupings"))();static #c=(()=>dt7948.g(this.prototype,"selectedCategoryIds",[s.tracked],function(){return new c.TrackedSet([...this.currentUser.sidebar_category_ids])}))();#rX=(()=>void dt7948.i(this,"selectedCategoryIds"))();selectedFilter="";selectedMode="everything";loadedFilter;loadedMode;loadedPage;saving=!1;loadAnotherPage=!1;unseenCategoryIdsChanged=!1;observer=(()=>new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(this.observer.disconnect(),this.loadMore())},{threshold:1}))();constructor(){super(...arguments),this.subcategoryLoadList=[],this.performSearch()}recomputeGroupings(){let e=this.fetchedCategories.flatMap((e,t)=>{let n=[{type:"category",category:e}],i=e.id,s=e.parent_category_id,r=this.fetchedCategories[t+1]?.parent_category_id;if(r!==s&&r!==i&&this.partialCategoryInfos.has(s)){let{level:e,offset:t}=this.partialCategoryInfos.get(s);n.push({type:"show-more",id:s,level:e,offset:t})}return n},[]);this.fetchedCategoriesGroupings=function(e,t){return e.reduce((e,n,i)=>((0===i||t(n))&&e.push([]),e[e.length-1].push(n),e),[])}(e,e=>"category"===e.type&&void 0===e.category.parent_category_id)}setFetchedCategories(e){this.fetchedCategories=e,this.partialCategoryInfos=A(e),this.recomputeGroupings()}concatFetchedCategories(e){if(this.fetchedCategories=this.fetchedCategories.concat(e),void 0!==e[0].parent_category_id){let t=this.fetchedCategories.findLastIndex(e=>void 0===e.parent_category_id);e=[...this.fetchedCategories.slice(t),...e]}this.partialCategoryInfos=new Map([...this.partialCategoryInfos,...A(e)]),this.recomputeGroupings()}substituteInFetchedCategories(e,t,n){if(this.partialCategoryInfos.delete(e),this.recomputeGroupings(),0!==t.length){let i=this.fetchedCategories.findLastIndex(t=>t.parent_category_id===e)+1;this.fetchedCategories=[...this.fetchedCategories.slice(0,i),...t,...this.fetchedCategories.slice(i)],this.partialCategoryInfos=new Map([...this.partialCategoryInfos,...A(t)]),this.partialCategoryInfos.set(e,{offset:n+t.length}),this.recomputeGroupings()}}didInsert(e){this.observer.disconnect(),this.observer.observe(e)}static #d=(()=>dt7948.n(this.prototype,"didInsert",[a.action]))();searchOpts(){let e=this.selectedMode,t=[...this.selectedCategoryIds],n={includeUncategorized:!1};return"only-selected"===e?n.only=t:"only-unselected"===e&&(n.except=t),n}async performSearch(){let e=this.selectedFilter,t=this.selectedMode,n=this.unseenCategoryIdsChanged&&"everything"!==t;if(e!==this.loadedFilter||t!==this.loadedMode||n){let n=[...this.selectedCategoryIds];this.unseenCategoryIdsChanged=!1,this.setFetchedCategories(await b.default.asyncHierarchicalSearch(e,this.searchOpts())),this.loadedFilter=e,this.loadedMode=t,this.loadedCategoryIds=n,this.loadedPage=1,this.lastPage=!1,this.initialLoad=!1,this.loadAnotherPage=!1}else if(this.loadAnotherPage&&!this.lastPage){let t=this.loadedPage+1,n={page:t,...this.searchOpts()},i=await b.default.asyncHierarchicalSearch(e,n);0===i.length?this.lastPage=!0:this.concatFetchedCategories(i),this.loadAnotherPage=!1,this.loadedPage=t}else if(0!==this.subcategoryLoadList.length){let{id:t,offset:n}=this.subcategoryLoadList.shift(),i={parentCategoryId:t,offset:n,...this.searchOpts()},s=await b.default.asyncHierarchicalSearch(e,i);this.substituteInFetchedCategories(t,s,n)}}static #p=(()=>dt7948.n(this.prototype,"performSearch",[E]))();async loadMore(){this.loadAnotherPage=!0,this.debouncedSendRequest()}async loadSubcategories(e,t){this.subcategoryLoadList.push({id:e,offset:t}),this.debouncedSendRequest()}static #h=(()=>dt7948.n(this.prototype,"loadSubcategories",[a.action]))();debouncedSendRequest(){(0,k.default)(this,this.performSearch,w.INPUT_DELAY)}resetFilter(){this.selectedMode="everything",this.debouncedSendRequest()}static #m=(()=>dt7948.n(this.prototype,"resetFilter",[a.action]))();filterSelected(){this.selectedMode="only-selected",this.debouncedSendRequest()}static #g=(()=>dt7948.n(this.prototype,"filterSelected",[a.action]))();filterUnselected(){this.selectedMode="only-unselected",this.debouncedSendRequest()}static #E=(()=>dt7948.n(this.prototype,"filterUnselected",[a.action]))();onFilterInput(e){this.selectedFilter=e.toLowerCase().trim(),this.debouncedSendRequest()}static #A=(()=>dt7948.n(this.prototype,"onFilterInput",[a.action]))();deselectAll(){this.selectedCategoryIds.clear(),this.unseenCategoryIdsChanged=!0,this.debouncedSendRequest()}static #D=(()=>dt7948.n(this.prototype,"deselectAll",[a.action]))();toggleCategory(e){this.selectedCategoryIds.has(e)?this.selectedCategoryIds.delete(e):this.selectedCategoryIds.add(e)}static #I=(()=>dt7948.n(this.prototype,"toggleCategory",[a.action]))();resetToDefaults(){this.selectedCategoryIds=new c.TrackedSet(this.siteSettings.default_navigation_menu_categories.split("|").map(e=>parseInt(e,10))),this.unseenCategoryIdsChanged=!0,this.debouncedSendRequest()}static #G=(()=>dt7948.n(this.prototype,"resetToDefaults",[a.action]))();async save(){this.saving=!0;let e=this.currentUser.sidebar_category_ids;this.currentUser.set("sidebar_category_ids",[...this.selectedCategoryIds]);try{await this.currentUser.save(["sidebar_category_ids"]),this.args.closeModal()}catch(t){this.currentUser.set("sidebar_category_ids",e),(0,y.popupAjaxError)(t)}finally{this.saving=!1}}static #Y=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #Q=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"4fKLTp+Q",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__categories-modal"]],[["@title","@disableSaveButton","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal"],["sidebar.categories_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[32,1],[[30,0,["siteSettings","default_navigation_menu_categories","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[32,2],["sidebar.categories_form_modal.subtitle.text"],null],[28,[32,2],["sidebar.categories_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1]]],[["default"],[[[[1,"\\n "],[10,"form"],[14,0,"sidebar-categories-form"],[12],[1,"\\n"],[41,[30,0,["initialLoad"]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__loading"],[12],[1,"\\n "],[1,[28,[32,3],null,[["size"],["small"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["fetchedCategoriesGroupings"]]],null]],null],null,[[[1," "],[10,0],[15,5,[28,[32,4],[[28,[32,5],[[30,2],"0.category.color"],null],"left"],null]],[14,0,"sidebar-categories-form__row"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[41,[28,[32,6],[[30,3,["type"]],"category"],null],[[[1," "],[11,0],[16,"data-category-id",[30,3,["category","id"]]],[16,"data-category-level",[30,3,["category","level"]]],[24,0,"sidebar-categories-form__category-row"],[4,[32,7],[[30,0,["didInsert"]]],null],[12],[1,"\\n "],[10,"label"],[15,"for",[28,[32,8],["sidebar-categories-form__input--",[30,3,["category","id"]]],null]],[14,0,"sidebar-categories-form__category-label"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n "],[1,[28,[32,9],[[30,3,["category"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,3,["category","parentCategory"]]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__category-description"],[12],[1,"\\n "],[1,[28,[32,10],[[30,3,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[11,"input"],[16,"checked",[28,[32,11],[[30,0,["selectedCategoryIds"]],[30,3,["category","id"]]],null]],[16,1,[28,[32,8],["sidebar-categories-form__input--",[30,3,["category","id"]]],null]],[24,0,"sidebar-categories-form__input"],[24,4,"checkbox"],[4,[32,12],["click",[28,[32,13],[[30,0,["toggleCategory"]],[30,3,["category","id"]]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,0],[16,"data-category-level",[30,3,["level"]]],[24,0,"sidebar-categories-form__category-row"],[4,[32,7],[[30,0,["didInsert"]]],null],[12],[1,"\\n "],[10,"label"],[14,0,"sidebar-categories-form__category-label"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n "],[8,[32,14],[[24,0,"btn-flat"]],[["@label","@action"],["sidebar.categories_form_modal.show_more",[28,[32,13],[[30,0,["loadSubcategories"]],[30,3,["id"]],[30,3,["offset"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[3]],null],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[10,0],[14,0,"sidebar-categories-form__no-categories"],[12],[1,"\\n "],[1,[28,[32,2],["sidebar.categories_form_modal.no_categories"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","categories","c"],false,["if","each","-track-array","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/categories-modal.js",scope:()=>[h.default,d.gt,x.i18n,_.default,m.default,r.get,d.eq,l.default,r.concat,g.default,f.default,d.has,o.on,r.fn,p.default],isStrictMode:!0}),this))()}},6407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(92976),u=n(72491),c=n(20171),d=n(21237),p=n(51969),h=n(25318),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"filter",[s.tracked],function(){return""}))();#rZ=(()=>void dt7948.i(this,"filter"))();static #n=(()=>dt7948.g(this.prototype,"filterDropdownValue",[s.tracked],function(){return"all"}))();#r1=(()=>void dt7948.i(this,"filterDropdownValue"))();filterDropdownContent=(()=>[{id:"all",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.all")},{id:"selected",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.selected")},{id:"unselected",name:(0,p.i18n)("sidebar.edit_navigation_modal_form.filter_dropdown.unselected")}])();onFilterDropdownChange(e){switch(this.filterDropdownValue=e,e){case"all":this.args.resetFilter();break;case"selected":this.args.filterSelected();break;case"unselected":this.args.filterUnselected()}}static #i=(()=>dt7948.n(this.prototype,"onFilterDropdownChange",[a.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"E2VbeuP9",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__modal -large"],[17,1]],[["@title","@closeModal"],[[28,[32,1],[[30,2]],null],[30,3]]],[["belowModalTitle","belowHeader","body","footer"],[[[[1,"\\n "],[10,2],[14,0,"sidebar__edit-navigation-menu__deselect-wrapper"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-flat sidebar__edit-navigation-menu__deselect-button"]],[["@label","@ariaLabel","@action"],["sidebar.edit_navigation_modal_form.deselect_button_text","sidebar.edit_navigation_modal_form.deselect_button_text",[30,4]]],null],[1,"\\n\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter"],[12],[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-input"],[12],[1,"\\n "],[1,[28,[32,3],["magnifying-glass"],[["class"],["sidebar__edit-navigation-menu__filter-input-icon"]]]],[1,"\\n\\n "],[11,"input"],[16,2,[30,0,["filter"]]],[16,"placeholder",[30,6]],[24,"autofocus","true"],[24,0,"sidebar__edit-navigation-menu__filter-input-field"],[24,4,"text"],[4,[32,4],["input",[28,[32,5],[[28,[32,6],[[28,[31,0],[[30,0,["filter"]]],null]],null]],null]],null],[4,[32,4],["input",[28,[32,5],[[30,7]],null]],null],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-dropdown-wrapper"],[12],[1,"\\n "],[8,[32,7],[[24,0,"sidebar__edit-navigation-menu__filter-dropdown"]],[["@value","@content","@onChange","@options"],[[30,0,["filterDropdownValue"]],[30,0,["filterDropdownContent"]],[30,0,["onFilterDropdownChange"]],[28,[32,8],null,[["showCaret","disabled"],[true,[30,8]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[18,13,null],[1,"\\n "]],[]],[[[1,"\\n "],[10,0],[14,0,"sidebar__edit-navigation-menu__footer"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-primary sidebar__edit-navigation-menu__save-button"]],[["@action","@label","@disabled"],[[30,9],"save",[30,10]]],null],[1,"\\n\\n"],[41,[30,11],[[[1," "],[8,[32,2],[[24,0,"btn-flat btn-text sidebar__edit-navigation-menu__reset-defaults-button"]],[["@action","@label","@icon","@disabled"],[[30,12],"sidebar.edit_navigation_modal_form.reset_to_defaults","arrow-rotate-left",[30,10]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@title","@closeModal","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@loading","@save","@saving","@showResetDefaultsButton","@resetToDefaults","&default"],false,["mut","yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/modal.js",scope:()=>[u.default,p.i18n,l.default,d.default,o.on,c.default,r.fn,h.default,r.hash],isStrictMode:!0}),this))()}},47793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(68741),u=n(54729),c=n(28360),d=n(64151),p=n(59602),h=n(70264),m=n(64149),g=n(45929),f=n(84262),_=n(51969),y=n(6407),b=n(76417),w=n(82739);class k extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"store",[u.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"disableFiltering",[s.tracked],function(){return!1}))();#r0=(()=>void dt7948.i(this,"disableFiltering"))();static #u=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #c=(()=>dt7948.g(this.prototype,"selectedTags",[s.tracked],function(){return new c.TrackedSet([...this.currentUser.sidebarTagNames])}))();#r3=(()=>void dt7948.i(this,"selectedTags"))();static #d=(()=>dt7948.g(this.prototype,"tags",[s.tracked],function(){return[]}))();#M=(()=>void dt7948.i(this,"tags"))();static #p=(()=>dt7948.g(this.prototype,"tagsLoading",[s.tracked],function(){return!1}))();#r2=(()=>void dt7948.i(this,"tagsLoading"))();observer;onlySelected=!1;onlyUnselected=!1;constructor(){super(...arguments),this.#r8()}async #r8(){this.tagsLoading=!0;let e={};this.filter&&(e.filter=this.filter),this.onlySelected?e.only_tags=[...this.selectedTags].join(","):this.onlyUnselected&&(e.exclude_tags=[...this.selectedTags].join(","));try{let t=await this.store.findAll("listTag",e);this.tags=t}catch(e){(0,m.popupAjaxError)(e)}finally{this.tagsLoading=!1,this.disableFiltering=!1}}didInsertTag(e){if(e.dataset.tagName===this.tags.content[this.tags.content.length-1].name){if(this.observer)this.observer.disconnect();else{let e=document.querySelector(".d-modal__body"),t=window.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.paddingTop);this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&this.tags.loadMore()})},{root:document.querySelector(".d-modal__body"),rootMargin:`0px 0px ${n+i}px 0px`,threshold:1})}this.observer.observe(e)}}static #h=(()=>dt7948.n(this.prototype,"didInsertTag",[a.action]))();resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1,this.#r8()}static #m=(()=>dt7948.n(this.prototype,"resetFilter",[a.action]))();filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1,this.#r8()}static #g=(()=>dt7948.n(this.prototype,"filterSelected",[a.action]))();filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0,this.#r8()}static #E=(()=>dt7948.n(this.prototype,"filterUnselected",[a.action]))();onFilterInput(e){this.disableFiltering=!0,(0,f.default)(this,this.#r4,e,g.INPUT_DELAY)}static #A=(()=>dt7948.n(this.prototype,"onFilterInput",[a.action]))();#r4(e){this.filter=e.toLowerCase(),this.#r8()}deselectAll(){this.selectedTags.clear()}static #D=(()=>dt7948.n(this.prototype,"deselectAll",[a.action]))();resetToDefaults(){this.selectedTags=new c.TrackedSet(this.siteSettings.default_navigation_menu_tags.split("|"))}static #I=(()=>dt7948.n(this.prototype,"resetToDefaults",[a.action]))();toggleTag(e){this.selectedTags.has(e)?this.selectedTags.delete(e):this.selectedTags.add(e)}static #G=(()=>dt7948.n(this.prototype,"toggleTag",[a.action]))();async save(){this.saving=!0;let e=this.currentUser.sidebar_tags;this.currentUser.set("sidebar_tag_names",[...this.selectedTags]);try{let e=await this.currentUser.save(["sidebar_tag_names"]);this.currentUser.set("sidebar_tags",e.user.sidebar_tags),this.args.closeModal()}catch(t){this.currentUser.set("sidebar_tags",e),(0,m.popupAjaxError)(t)}finally{this.saving=!1}}static #Y=(()=>dt7948.n(this.prototype,"save",[a.action]))();static #Q=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"Xjff1B9E",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar__edit-navigation-menu__tags-modal"]],[["@title","@saving","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal","@loading"],["sidebar.tags_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[32,1],[[30,0,["siteSettings","default_navigation_menu_tags","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[32,2],["sidebar.tags_form_modal.subtitle.text"],null],[28,[32,2],["sidebar.tags_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1],[28,[32,3],[[30,0,["tagsLoading"]],[30,0,["disableFiltering"]]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["tagsLoading"]],[[[1," "],[1,[28,[32,4],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1," "],[10,"form"],[14,0,"sidebar-tags-form"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["tags"]]],null]],null],null,[[[1," "],[11,0],[16,"data-tag-name",[30,2,["name"]]],[24,0,"sidebar-tags-form__tag"],[4,[32,5],[[30,0,["didInsertTag"]]],null],[12],[1,"\\n "],[11,"input"],[16,"checked",[28,[32,6],[[30,0,["selectedTags"]],[30,2,["name"]]],null]],[16,1,[28,[32,7],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[24,0,"sidebar-tags-form__input"],[24,4,"checkbox"],[4,[32,8],["click",[28,[32,9],[[30,0,["toggleTag"]],[30,2,["name"]]],null]],null],[12],[13],[1,"\\n\\n "],[10,"label"],[15,"for",[28,[32,7],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[14,0,"sidebar-tags-form__tag-label"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,1],[14,0,"sidebar-tags-form__tag-label-name"],[12],[1,"\\n "],[1,[30,2,["name"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"sidebar-tags-form__tag-label-count"],[12],[1,"\\n ("],[1,[30,2,["topic_count"]]],[1,")\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],[[[1," "],[10,0],[14,0,"sidebar-tags-form__no-tags"],[12],[1,"\\n "],[1,[28,[32,2],["sidebar.tags_form_modal.no_tags"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[32,10],null,[["@condition"],[[30,0,["tags","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","tag"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/edit-navigation-menu/tags-modal.js",scope:()=>[y.default,d.gt,_.i18n,d.or,h.default,l.default,d.has,r.concat,o.on,r.fn,p.default],isStrictMode:!0}),this))()}},11341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(51969),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[s.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get shouldDisplay(){return this.sidebarState.currentPanel.filterable&&!(this.args.sections?.length!==0)}get noResultsDescription(){return this.sidebarState.currentPanel.filterNoResultsDescription(this.sidebarState.filter)}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"wEbq1P9d",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-no-results"],[12],[1,"\\n "],[10,"h4"],[14,0,"sidebar-no-results__title"],[12],[1,[28,[32,0],["sidebar.no_results.title"],null]],[13],[1,"\\n"],[41,[30,0,["noResultsDescription"]],[[[1," "],[10,2],[14,0,"sidebar-no-results__description"],[12],[1,"\\n "],[1,[30,0,["noResultsDescription"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/filter-no-results.js",scope:()=>[r.i18n],isStrictMode:!0}),this))()}},62184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(92976),l=n(20802),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();willDestroy(){super.willDestroy(...arguments),this.sidebarState.clearFilter()}get shouldDisplay(){return this.sidebarState.currentPanel.filterable}get displayClearFilter(){return this.sidebarState.filter.length>0}setFilter(e){this.sidebarState.filter=e.target.value}static #n=(()=>dt7948.n(this.prototype,"setFilter",[r.action]))();handleEscape(e){"Escape"===e.key&&(e.stopPropagation(),this.sidebarState.filter.length>0?this.sidebarState.filter="":e.target.blur())}static #i=(()=>dt7948.n(this.prototype,"handleEscape",[r.action]))();clearFilter(){this.sidebarState.clearFilter(),document.querySelector(".sidebar-filter__input").focus()}static #l=(()=>dt7948.n(this.prototype,"clearFilter",[r.action]))();get showShortcutCombo(){return!this.displayClearFilter}get sidebarShortcutCombo(){return`${(0,l.translateModKey)("Meta")}+/`}static #u=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"x1Z6FrV9",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-filter"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-filter__input-container"],[12],[1,"\\n "],[11,"input"],[16,2,[30,0,["sidebarState","filter"]]],[16,"placeholder",[28,[32,0],["sidebar.filter"],null]],[24,"enterkeyhint","done"],[24,0,"sidebar-filter__input"],[24,4,"text"],[4,[32,1],["input",[30,0,["setFilter"]]],null],[4,[32,1],["keydown",[30,0,["handleEscape"]]],null],[12],[13],[1,"\\n"],[41,[30,0,["showShortcutCombo"]],[[[1," "],[10,1],[14,0,"sidebar-filter__shortcut-hint"],[12],[1,[30,0,["sidebarShortcutCombo"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayClearFilter"]],[[[1," "],[8,[32,2],[[24,0,"sidebar-filter__clear"]],[["@action","@icon"],[[30,0,["clearFilter"]],"xmark"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/filter.js",scope:()=>[u.i18n,s.on,a.default],isStrictMode:!0}),this))()}},75209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(3924),l=n(85796),u=n(59874),c=n(76578),d=n(24962),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get showManageSectionsButton(){return this.currentUser&&this.sidebarState.isCurrentPanel(d.MAIN_PANEL)}get showToggleMobileButton(){return this.site.mobileView||this.siteSettings.enable_mobile_theme&&this.capabilities.touch}manageSections(){this.modal.show(l.default)}static #d=(()=>dt7948.n(this.prototype,"manageSections",[s.action]))();showKeyboardShortcuts(){this.modal.show(a.default)}static #p=(()=>dt7948.n(this.prototype,"showKeyboardShortcuts",[s.action]))();toggleMobileView(){c.default.toggleMobileView()}static #h=(()=>dt7948.n(this.prototype,"toggleMobileView",[s.action]))();static #m=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"IrRrya+f",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-footer-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-footer-container"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-footer-actions"],[12],[1,"\\n "],[8,[32,0],null,[["@name"],["sidebar-footer-actions"]],null],[1,"\\n\\n"],[41,[30,0,["showManageSectionsButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button add-section"]],[["@icon","@action","@title","@ariaLabel"],["plus",[30,0,["manageSections"]],"sidebar.sections.custom.add","sidebar.sections.custom.add"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showToggleMobileButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button sidebar-footer-actions-toggle-mobile-view"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["toggleMobileView"]],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop","mobile-screen-button"]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts"]],[["@action","@title","@ariaLabel","@icon"],[[30,0,["showKeyboardShortcuts"]],"keyboard_shortcuts_help.title","keyboard_shortcuts_help.title","keyboard"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/footer.js",scope:()=>[u.default,o.default],isStrictMode:!0}),this))()}},7181:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(70001),r=n(68741),o=n(42433),a=n(54729),l=n(64151),u=n(49577),c=n(59874),d=n(91666),p=n(75209),h=n(80562),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();triggerRenderedAppEvent(){this.appEvents.trigger("sidebar-hamburger-dropdown:rendered")}static #c=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[s.action]))();focusFirstLink(){(0,o.schedule)("afterRender",()=>{let e=document.querySelector(".sidebar-hamburger-dropdown a");e&&e.focus()})}static #d=(()=>dt7948.n(this.prototype,"focusFirstLink",[s.action]))();get collapsableSections(){if("header dropdown"===this.siteSettings.navigation_menu&&!this.args.collapsableSections)return this.site.mobileView||this.site.narrowDesktopView;this.args.collapsableSections}static #p=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"w6l/cNi+",block:'[[[1,"\\n "],[10,0],[14,0,"hamburger-panel"],[12],[1,"\\n "],[11,0],[24,"data-max-width","320"],[24,0,"revamped menu-panel drop-down"],[4,[32,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[8,[32,1],null,null,[["default"],[[[[1,"\\n "],[11,0],[24,0,"sidebar-hamburger-dropdown"],[4,[32,0],[[30,0,["focusFirstLink"]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@name"],["before-sidebar-sections"]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["sidebarState","showMainPanel"]],[30,1]],null],[[[1," "],[8,[32,4],null,[["@currentUser","@collapsableSections","@panel","@hideApiSections"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]],[30,0,["sidebarState","currentPanel"]],[30,1]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,5],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]]]],null],[1,"\\n"]],[]]],[1," "],[8,[32,2],null,[["@name"],["after-sidebar-sections"]],null],[1,"\\n "],[8,[32,6],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@forceMainSidebarPanel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/hamburger-dropdown.js",scope:()=>[r.default,u.default,c.default,l.or,h.default,d.default,p.default],isStrictMode:!0}),this))()}},1662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(64151),s=n(34991),r=n(92872),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"Zb4Uih3O",block:'[[[1,"\\n "],[8,[32,0],null,[["@badgeText","@content","@currentWhen","@href","@linkName","@model","@models","@prefixType","@prefixValue","@query","@route","@shouldDisplay","@suffixCSSClass","@suffixType","@suffixValue","@title"],[[30,1,["badgeText"]],[28,[32,1],[[30,1,["text"]]],null],[30,1,["currentWhen"]],[28,[32,2],[[30,1,["href"]],[30,1,["value"]]],null],[30,1,["name"]],[30,1,["model"]],[30,1,["models"]],"icon",[30,1,["prefixValue"]],[30,1,["query"]],[30,1,["route"]],[30,1,["shouldDisplay"]],[30,1,["suffixCSSClass"]],[30,1,["suffixType"]],[30,1,["suffixValue"]],[30,1,["title"]]]],null],[1,"\\n"]],["@sectionLink"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/more-section-link.js",scope:()=>[r.default,s.default,i.or],isStrictMode:!0}),(0,l.default)(void 0,"more-section-link:SidebarMoreSectionLink"))},49909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(68741),l=n(77843),u=n(54729),c=n(97355),d=n(21237),p=n(62797),h=n(51969),m=n(1662),g=n(58061),f=n(76417),_=n(82739);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[u.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"activeSectionLink",[s.tracked]))();#r7=(()=>void dt7948.i(this,"activeSectionLink"))();static #i=(()=>dt7948.g(this.prototype,"open",[s.tracked],function(){return!1}))();#r9=(()=>void dt7948.i(this,"open"))();constructor(){super(...arguments),this.#r5(),this.router.on("routeDidChange",this,this.#r5)}willDestroy(){super.willDestroy(...arguments),this.#r6(),this.router.off("routeDidChange",this,this.#r5)}get sectionLinks(){return this.activeSectionLink?this.#oe(this.args.sectionLinks):this.args.sectionLinks}get secondarySectionLinks(){return this.activeSectionLink?this.#oe(this.args.secondarySectionLinks):this.args.secondarySectionLinks}#oe(e){return e.filter(e=>e.name!==this.activeSectionLink.name)}closeDetails(e){!e.target.closest(".sidebar-more-section-links-details-summary")&&this.open&&(e.target.className.includes("sidebar-section-link")||e.target.className.includes("--link-button")||this.#ot(e))&&(this.open=!1)}static #l=(()=>dt7948.n(this.prototype,"closeDetails",[p.bind]))();registerClickListener(){this.#on()}static #u=(()=>dt7948.n(this.prototype,"registerClickListener",[o.action]))();unregisterClickListener(){this.#r6()}static #c=(()=>dt7948.n(this.prototype,"unregisterClickListener",[o.action]))();toggleSectionLinks(e){e.stopPropagation(),this.open=!this.open}static #d=(()=>dt7948.n(this.prototype,"toggleSectionLinks",[o.action]))();#r6(){document.removeEventListener("click",this.closeDetails)}#on(){document.addEventListener("click",this.closeDetails)}#ot(e){return!e.composedPath().some(e=>"sidebar-more-section-links-details"===e.className)}#r5(){this.activeSectionLink=this.args.sectionLinks.find(e=>{let t=[e.route];return e.model?t.push(e.model):e.models&&t.push(...e.models),(0,c.isEmpty)(e.query)||t.push({queryParams:e.query}),this.router.isActive(...t)&&e})}static #p=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"H/SgWVz9",block:'[[[1,"\\n"],[41,[30,0,["activeSectionLink"]],[[[1," "],[8,[32,0],null,[["@sectionLink"],[[30,0,["activeSectionLink"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n "],[11,"button"],[16,"aria-expanded",[52,[30,0,["open"]],"true","false"]],[24,0,"sidebar-section-link sidebar-row sidebar-more-section-links-details-summary --link-button"],[4,[32,1],["click",[30,0,["toggleSectionLinks"]]],null],[12],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n "],[1,[28,[32,2],["ellipsis-vertical"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[28,[32,3],["sidebar.more"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["open"]],[[[1," "],[10,0],[14,0,"sidebar-more-section-links-details"],[12],[1,"\\n "],[11,0],[24,0,"sidebar-more-section-links-details-content-wrapper"],[4,[32,4],[[30,0,["registerClickListener"]]],null],[4,[32,5],[[30,0,["unregisterClickListener"]]],null],[12],[1,"\\n\\n "],[10,0],[14,0,"sidebar-more-section-links-details-content"],[12],[1,"\\n "],[10,"ul"],[14,0,"sidebar-more-section-links-details-content-main"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@sectionLink"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"sidebar-more-section-links-details-content-footer"],[12],[1,"\\n "],[8,[32,6],null,[["@action","@icon","@text","@name"],[[30,2],[30,3],[30,4],"customize"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["sectionLink","@moreButtonAction","@moreButtonIcon","@moreButtonText"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/more-section-links.js",scope:()=>[m.default,r.on,d.default,h.i18n,a.default,l.default,g.default],isStrictMode:!0}),this))()}},44018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(54729),r=n(63111),o=n(62184),a=n(11341),l=n(87969),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[s.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();get shouldDisplay(){return this.sidebarState.currentPanel.displayHeader}static #n=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"BV4zNxVS",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[10,0],[14,0,"sidebar-panel-header"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-panel-header__row"],[12],[1,"\\n "],[8,[32,0],null,null,null],[1,"\\n "],[8,[32,1],null,[["@sections"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"sidebar-panel-header__row"],[12],[1,"\\n "],[8,[32,2],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],null,[["@sections"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "]],["@sections"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/panel-header.js",scope:()=>[r.default,l.default,o.default,a.default],isStrictMode:!0}),this))()}},89775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138),s=n(28564),r=n(76417),o=n(39882),a=n(87075),l=n(70001),u=n(54729),c=n(92976),d=n(27147),p=n(20171),h=n(21237),m=n(86211),g=n(51969),f=n(60416),_=n(82739);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"dragCssClass",[s.tracked]))();#oi=(()=>void dt7948.i(this,"dragCssClass"))();dragCount=0;isAboveElement(e){e.preventDefault();let t=e.currentTarget.getBoundingClientRect();return e.offsetYdt7948.n(this.prototype,"dragHasStarted",[l.action]))();dragOver(e){e.preventDefault(),"dragging"!==this.dragCssClass&&(this.isAboveElement(e)?this.dragCssClass="drag-above":this.dragCssClass="drag-below")}static #l=(()=>dt7948.n(this.prototype,"dragOver",[l.action]))();dragEnter(){this.dragCount++}static #u=(()=>dt7948.n(this.prototype,"dragEnter",[l.action]))();dragLeave(){this.dragCount--,0===this.dragCount&&("drag-above"===this.dragCssClass||"drag-below"===this.dragCssClass)&&(0,m.default)(()=>{this.dragCssClass=null},10)}static #c=(()=>dt7948.n(this.prototype,"dragLeave",[l.action]))();dropItem(e){e.stopPropagation(),this.dragCount=0,this.args.reorderCallback(this.args.link,this.isAboveElement(e)),this.dragCssClass=null}static #d=(()=>dt7948.n(this.prototype,"dropItem",[l.action]))();dragEnd(){this.dragCount=0,this.dragCssClass=null}static #p=(()=>dt7948.n(this.prototype,"dragEnd",[l.action]))();static #h=(()=>(0,r.setComponentTemplate)((0,_.createTemplateFactory)({id:"EPf5ENyJ",block:'[[[1,"\\n "],[11,0],[24,"role","row"],[16,"data-row-id",[30,1,["objectId"]]],[24,"draggable","true"],[16,0,[28,[32,0],["sidebar-section-form-link","row-wrapper",[30,0,["dragCssClass"]]],null]],[4,[32,1],["dragstart",[30,0,["dragHasStarted"]]],null],[4,[32,1],["dragover",[30,0,["dragOver"]]],null],[4,[32,1],["dragenter",[30,0,["dragEnter"]]],null],[4,[32,1],["dragleave",[30,0,["dragLeave"]]],null],[4,[32,1],["dragend",[30,0,["dragEnd"]]],null],[4,[32,1],["drop",[30,0,["dropItem"]]],null],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[10,0],[14,0,"draggable"],[15,"data-link-name",[30,1,["name"]]],[12],[1,"\\n "],[1,[28,[32,2],["grip-lines"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,3],[[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.icon.label"],null]],[16,0,[30,1,["iconCssClass"]]]],[["@name","@value","@options","@onlyAvailable","@onChange"],["icon",[30,1,["icon"]],[28,[32,5],null,[["maximum","caretDownIcon","caretUpIcon","icons"],[1,"caret-down","caret-up",[30,1,["icon"]]]]],true,[28,[32,6],[[28,[31,1],[[30,1,["icon"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,1,["invalidIconMessage"]],[[[1," "],[10,0],[14,0,"icon warning"],[14,"role","alert"],[14,"aria-live","assertive"],[12],[1,"\\n "],[1,[30,1,["invalidIconMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,7],[[24,3,"link-name"],[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.name.label"],null]],[16,0,[30,1,["nameCssClass"]]],[24,"data-1p-ignore",""],[4,[32,1],["input",[28,[32,8],[[28,[32,6],[[28,[31,1],[[30,1,["name"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,1,["name"]]]],null],[1,"\\n\\n"],[41,[30,1,["invalidNameMessage"]],[[[1," "],[10,0],[14,"role","alert"],[14,"aria-live","assertive"],[14,0,"name warning"],[12],[1,"\\n "],[1,[30,1,["invalidNameMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"input-group"],[14,"role","cell"],[12],[1,"\\n "],[8,[32,7],[[24,3,"link-url"],[16,"aria-label",[28,[32,4],["sidebar.sections.custom.links.value.label"],null]],[16,0,[30,1,["valueCssClass"]]],[4,[32,1],["input",[28,[32,8],[[28,[32,6],[[28,[31,1],[[30,1,["value"]]],null]],null]],null]],null]],[["@type","@value"],["text",[30,1,["value"]]]],null],[1,"\\n\\n"],[41,[30,1,["invalidValueMessage"]],[[[1," "],[10,0],[14,"role","alert"],[14,"aria-live","assertive"],[14,0,"value warning"],[12],[1,"\\n "],[1,[30,1,["invalidValueMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,9],[[24,"role","cell"],[24,0,"btn-flat delete-link"]],[["@icon","@action","@title"],["trash-can",[28,[32,6],[[30,2],[30,1]],null],"sidebar.sections.custom.links.delete"]],null],[1,"\\n "],[13],[1,"\\n "]],["@link","@deleteLink"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-form-link.js",scope:()=>[d.default,a.on,h.default,f.default,g.i18n,o.hash,o.fn,r.Input,p.default,c.default],isStrictMode:!0}),this))()}},30409:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"5B4Slzpp",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[16,"aria-controls",[30,2]],[16,"aria-expanded",[52,[30,3],"true","false"]],[24,0,"sidebar-section-header sidebar-section-header-collapsable btn-transparent"]],[["@title","@action","@forwardEvent"],["sidebar.toggle_section",[30,4],true]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"sidebar-section-header"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],[]]]],["@collapsable","@sidebarSectionContentId","@isExpanded","@toggleSectionDisplay","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-header.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"section-header:SidebarSectionHeader"))},58061:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(87075),s=n(21237),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"0+E+k4ue",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n "],[11,"button"],[24,0,"sidebar-section-link sidebar-row --link-button"],[16,"data-list-item-name",[30,1]],[24,4,"button"],[4,[32,0],["click",[30,2]],null],[12],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n "],[1,[28,[32,1],[[30,3]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[30,1]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@text","@action","@icon"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link-button.js",scope:()=>[i.on,s.default],isStrictMode:!0}),(0,a.default)(void 0,"section-link-button:SidebarSectionLinkButton"))},17625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(39882),r=n(35804),o=n(64151),a=n(92872),l=n(27147),u=n(21237),c=n(76417),d=n(82739);class p extends i.default{get prefixValue(){if(this.args.prefixType||this.args.prefixValue){if("span"===this.args.prefixType){let e=this.args.prefixValue;return 1===(e=e.reduce((e,t)=>{let n=(0,a.isHex)(t);return n&&e.push(`#${n} 50%`),e},[])).length&&e.push(e[0]),e.join(", ")}return this.args.prefixValue}}static #e=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"MFj2/bac",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[15,5,[52,[30,2],[28,[32,0],[[28,[32,1],["color: ",[30,2]],null]],null]]],[15,0,[28,[32,2],["sidebar-section-link-prefix",[30,1],[30,3]],null]],[12],[1,"\\n"],[41,[28,[32,3],[[30,1],"image"],null],[[[1," "],[10,"img"],[15,"src",[30,0,["prefixValue"]]],[14,0,"prefix-image"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"text"],null],[[[1," "],[10,1],[14,0,"prefix-text"],[12],[1,"\\n "],[1,[30,0,["prefixValue"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"icon"],null],[[[1," "],[1,[28,[32,4],[[30,0,["prefixValue"]]],[["class"],["prefix-icon"]]]],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,1],"span"],null],[[[1," "],[10,1],[15,5,[28,[32,0],[[28,[32,1],["background: linear-gradient(90deg, ",[30,0,["prefixValue"]],")"],null]],null]],[14,0,"prefix-span"],[12],[13],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,4],[[30,4]],[["class"],["prefix-badge"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@prefixType","@prefixColor","@prefixCSSClass","@prefixBadge"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link-prefix.js",scope:()=>[r.htmlSafe,s.concat,l.default,o.eq,u.default],isStrictMode:!0}),this))()}},92872:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w,isHex:()=>b});var i=n(37138),s=n(39882),r=n(87075),o=n(68741),a=n(48605),l=n(69836),u=n(42433),c=n(54729),d=n(64151),p=n(27147),h=n(21237),m=n(54216),g=n(62797),f=n(17625),_=n(76417),y=n(82739);function b(e){let t=e?.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/);return t?t[1]:void 0}class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[c.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){super(...arguments),this.args.didInsert?.()}willDestroy(){super.willDestroy(...arguments),this.args.willDestroy?.()}get shouldDisplay(){return void 0===this.args.shouldDisplay||this.args.shouldDisplay}get linkClass(){let e=["sidebar-section-link","sidebar-row"];return this.args.linkClass&&e.push(this.args.linkClass),this.args.class&&((0,m.default)("SectionLink's @class arg has been renamed to @linkClass",{id:"discourse.section-link-class-arg",since:"3.2.0.beta4",dropFrom:"3.3.0.beta1"}),e.push(this.args.class)),this.args.href&&"boolean"==typeof this.args.currentWhen&&this.args.currentWhen&&e.push("active"),e.join(" ")}get target(){return this.currentUser?.user_option?.external_links_in_new_tab&&this.isExternal?"_blank":"_self"}get isExternal(){return this.args.href&&new URL(this.args.href,window.location.href).origin!==window.location.origin}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}get prefixColor(){let e=b(this.args.prefixColor);return e?`#${e}`:void 0}maybeScrollIntoView(e){this.args.scrollIntoView&&(0,u.schedule)("afterRender",()=>{let t=e.getBoundingClientRect();t.top<=window.innerHeight&&t.bottom>=0||e.scrollIntoView({block:"center"})})}static #n=(()=>dt7948.n(this.prototype,"maybeScrollIntoView",[g.bind]))();static #i=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"QDmyEiJi",block:'[[[1,"\\n"],[41,[30,0,["shouldDisplay"]],[[[1," "],[11,"li"],[16,"data-list-item-name",[30,1]],[24,0,"sidebar-section-link-wrapper"],[17,2],[4,[32,0],[[30,0,["maybeScrollIntoView"]]],null],[4,[32,1],[[30,0,["maybeScrollIntoView"]],[30,3]],null],[12],[1,"\\n"],[41,[30,4],[[[1," "],[10,3],[15,6,[30,4]],[14,"rel","noopener noreferrer"],[15,"target",[30,0,["target"]]],[15,"title",[30,5]],[15,"data-link-name",[30,1]],[15,0,[30,0,["linkClass"]]],[12],[1,"\\n "],[8,[32,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,6],[30,7],[30,8],[30,0,["prefixColor"]],[30,9]]],null],[1,"\\n\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[30,10]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,3],[[16,"title",[30,5]],[16,"data-link-name",[30,1]],[16,0,[30,0,["linkClass"]]]],[["@route","@query","@models","@current-when"],[[30,11],[28,[32,4],[[30,12],[28,[32,5],null,null]],null],[30,0,["models"]],[30,13]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,6],[30,7],[30,8],[30,0,["prefixColor"]],[30,9]]],null],[1,"\\n\\n "],[10,1],[15,0,[28,[32,6],["sidebar-section-link-content-text",[30,14]],null]],[12],[1,"\\n "],[1,[30,10]],[1,"\\n "],[8,[30,15],null,null,null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,16],[[[1," "],[10,1],[14,0,"sidebar-section-link-content-badge"],[12],[1,"\\n "],[1,[30,16]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,17],[[[1," "],[10,1],[15,0,[28,[32,6],["sidebar-section-link-suffix",[30,18],[30,19]],null]],[12],[1,"\\n"],[41,[28,[32,7],[[30,18],"icon"],null],[[[1," "],[1,[28,[32,8],[[30,17]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,20],[[[1," "],[10,1],[14,0,"sidebar-section-link-hover"],[12],[1,"\\n "],[11,"button"],[16,"title",[30,21]],[24,0,"sidebar-section-hover-button"],[24,4,"button"],[4,[32,9],["click",[30,22]],null],[12],[1,"\\n"],[41,[28,[32,7],[[30,23],"icon"],null],[[[1," "],[1,[28,[32,8],[[30,20]],[["class"],["hover-icon"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@linkName","&attrs","@scrollIntoView","@href","@title","@prefixType","@prefixValue","@prefixCSSClass","@prefixBadge","@content","@route","@query","@currentWhen","@contentCSSClass","@contentComponent","@badgeText","@suffixValue","@suffixType","@suffixCSSClass","@hoverValue","@hoverTitle","@hoverAction","@hoverType"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-link.js",scope:()=>[o.default,a.default,f.default,l.LinkTo,d.or,s.hash,p.default,d.eq,h.default,r.on],isStrictMode:!0}),this))()}},37553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"AUqDwDAl",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-section-message-wrapper sidebar-row"],[12],[1,"\\n "],[10,0],[14,0,"sidebar-section-message"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section-message.js",isStrictMode:!0}),(0,r.default)(void 0,"section-message:SidebarSectionMessage"))},54247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(68741),l=n(54729),u=n(97355),c=n(27147),d=n(59636),p=n(21237),h=n(62797),m=n(51969),g=n(25318),f=n(92296),_=n(30409),y=n(76417),b=n(82739);class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[l.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #n=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[l.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();sidebarSectionContentId=(()=>(0,d.getSidebarSectionContentId)(this.args.sectionName))();collapsedSidebarSectionKey=(()=>(0,d.getCollapsedSidebarSectionKey)(this.args.sectionName))();constructor(){super(...arguments),this.router.on("routeDidChange",this,this.expandIfActive)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this,this.expandIfActive),this.args.willDestroy?.()}get isCollapsed(){return!!this.args.collapsable&&(void 0===this.keyValueStore.getItem(this.collapsedSidebarSectionKey)?this.args.collapsedByDefault:"true"===this.keyValueStore.getItem(this.collapsedSidebarSectionKey))}get isActive(){return!!this.args.activeLink}get activeExpanded(){return this.sidebarState.activeExpandedSections.has(this.args.sectionName)}set activeExpanded(e){e?this.sidebarState.activeExpandedSections.add(this.args.sectionName):this.sidebarState.activeExpandedSections.delete(this.args.sectionName)}setExpandedState(){(0,u.isEmpty)(this.sidebarState.filter)&&(this.isCollapsed?this.sidebarState.collapseSection(this.args.sectionName):this.sidebarState.expandSection(this.args.sectionName),this.expandIfActive())}static #l=(()=>dt7948.n(this.prototype,"setExpandedState",[h.bind]))();expandIfActive(e){e?.isAborted||(this.activeExpanded=this.args.expandWhenActive&&this.isActive)}static #u=(()=>dt7948.n(this.prototype,"expandIfActive",[h.bind]))();get displaySectionContent(){return!!this.args.hideSectionHeader||!(0,u.isEmpty)(this.sidebarState.filter)||!!this.activeExpanded||!this.sidebarState.collapsedSections.has(this.collapsedSidebarSectionKey)}toggleSectionDisplay(e,t){this.activeExpanded=!1,this.displaySectionContent?this.sidebarState.collapseSection(this.args.sectionName):this.sidebarState.expandSection(this.args.sectionName),t.key||document.activeElement.blur()}static #c=(()=>dt7948.n(this.prototype,"toggleSectionDisplay",[o.action]))();handleMultipleHeaderActions(e){this.args.headerActions.find(t=>t.id===e).action()}static #d=(()=>dt7948.n(this.prototype,"handleMultipleHeaderActions",[o.action]))();get headerCaretIcon(){return this.displaySectionContent?"angle-down":"angle-right"}get isSingleHeaderAction(){return this.args.headerActions?.length===1}get isMultipleHeaderActions(){return this.args.headerActions?.length>1}get displaySection(){return void 0===this.args.displaySection||this.args.displaySection}static #p=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"yZ0JbP8K",block:'[[[1,"\\n"],[41,[30,0,["displaySection"]],[[[1," "],[11,0],[16,"data-section-name",[30,1]],[16,0,[28,[32,0],["sidebar-section","sidebar-section-wrapper",[52,[30,0,["displaySectionContent"]],"sidebar-section--expanded","sidebar-section--collapsed"]],null]],[17,2],[4,[32,1],[[30,0,["setExpandedState"]]],null],[12],[1,"\\n"],[41,[51,[30,3]],[[[1," "],[10,0],[14,0,"sidebar-section-header-wrapper sidebar-row"],[12],[1,"\\n "],[8,[32,2],null,[["@collapsable","@sidebarSectionContentId","@toggleSectionDisplay","@isExpanded","@isActive"],[[30,4],[30,0,["sidebarSectionContentId"]],[30,0,["toggleSectionDisplay"]],[30,0,["displaySectionContent"]],[30,0,["isActive"]]]],[["default"],[[[[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"sidebar-section-header-caret"],[12],[1,"\\n "],[1,[28,[32,3],[[30,0,["headerCaretIcon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"sidebar-section-header-text"],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[8,[32,4],[[24,0,"sidebar-section-header-global-indicator"]],[["@icon"],["globe"]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"sidebar-section-header-global-indicator__content"],[12],[1,"\\n "],[1,[28,[32,3],["shield-halved"],null]],[1,"\\n "],[1,[28,[32,5],["sidebar.sections.global_section"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isSingleHeaderAction"]],[[[42,[28,[31,3],[[28,[31,3],[[30,7]],null]],null],null,[[[1," "],[11,"button"],[16,"title",[30,8,["title"]]],[24,0,"sidebar-section-header-button"],[24,4,"button"],[4,[32,6],["click",[30,8,["action"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,9]],null]],[1,"\\n "],[13],[1,"\\n"]],[8]],null]],[]],null],[1,"\\n"],[41,[30,0,["isMultipleHeaderActions"]],[[[1," "],[8,[32,7],[[24,0,"sidebar-section-header-dropdown"]],[["@options","@content","@onChange"],[[28,[32,8],null,[["icon","placementStrategy"],[[30,9],"absolute"]]],[30,7],[30,0,["handleMultipleHeaderActions"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySectionContent"]],[[[1," "],[10,"ul"],[15,1,[30,0,["sidebarSectionContentId"]]],[14,0,"sidebar-section-content"],[12],[1,"\\n "],[18,10,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@sectionName","&attrs","@hideSectionHeader","@collapsable","@headerLinkText","@indicatePublic","@headerActions","headerAction","@headerActionsIcon","&default"],false,["if","unless","each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/section.js",scope:()=>[c.default,a.default,_.default,p.default,f.default,m.i18n,r.on,g.default,s.hash],isStrictMode:!0}),this))()}},80562:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(94624),s=n(56156),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"CVN2OM5g",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@collapsableSections","@panel","@hideApiSections"],[[30,2],[30,3],[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,1],null,[["@collapsableSections"],[[30,2]]],null],[1,"\\n"]],[]]]],["@currentUser","@collapsableSections","@panel","@hideApiSections"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/sections.js",scope:()=>[s.default,i.default],isStrictMode:!0}),(0,a.default)(void 0,"sections:SidebarSections"))},32077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(54729),l=n(92976),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();static #i=(()=>dt7948.g(this.prototype,"isSwitching",[s.tracked],function(){return!1}))();#os=(()=>void dt7948.i(this,"isSwitching"))();async switchPanel(e){this.isSwitching=!0,this.sidebarState.currentPanel.lastKnownURL=this.router.currentURL;let t=e?.switchButtonDefaultUrl||e?.lastKnownURL;if(t)try{await this.router.transitionTo(t).followRedirects(),this.sidebarState.setPanel(e.key)}catch(e){if("TransitionAborted"!==e.name)throw e}finally{this.isSwitching=!1}}static #l=(()=>dt7948.n(this.prototype,"switchPanel",[o.action]))();static #u=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"pA0yonLl",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[32,0],[[16,"data-key",[30,2,["key"]]],[24,0,"btn-default sidebar__panel-switch-button"]],[["@action","@icon","@disabled","@translatedLabel"],[[28,[32,1],[[30,0,["switchPanel"]],[30,2]],null],[30,2,["switchButtonIcon"]],[30,0,["isSwitching"]],[30,2,["switchButtonLabel"]]]],null],[1,"\\n"]],[2]],null],[1," "]],["@buttons","button"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/switch-panel-buttons.js",scope:()=>[l.default,r.fn],isStrictMode:!0}),this))()}},87969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(59636),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();static #n=(()=>dt7948.g(this.prototype,"keyValueStore",[r.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();get collapsableSections(){return this.args.sections.filter(e=>e.displaySection&&!e.hideSectionHeader)}get allSectionsExpanded(){return this.collapsableSections.every(e=>!this.sidebarState.collapsedSections.has((0,a.getCollapsedSidebarSectionKey)(e.name)))}get title(){return this.allSectionsExpanded?"sidebar.collapse_all_sections":"sidebar.expand_all_sections"}get icon(){return this.allSectionsExpanded?"angles-up":"angles-down"}toggleAllSections(){let e=this.allSectionsExpanded;this.collapsableSections.forEach(t=>{e?this.sidebarState.collapseSection(t.name):this.sidebarState.expandSection(t.name)})}static #i=(()=>dt7948.n(this.prototype,"toggleAllSections",[s.action]))();static #l=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"PgR1VP+Z",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-transparent sidebar-toggle-all-sections"]],[["@action","@icon","@title"],[[30,0,["toggleAllSections"]],[30,0,["icon"]],[30,0,["title"]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/toggle-all-sections.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},93522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{REFRESH_COUNTS_APP_EVENT_NAME:()=>y,default:()=>b}),n(28564);var i=n(39882),s=n(70001),r=n(54729),o=n(59636),a=n(88253),l=n(62797),u=n(51969),c=n(45611),d=n(98956),p=n(25760),h=n(54247),m=n(92872),g=n(76417),f=n(82739);let _=(0,n(41664).A)(n(28564)).cached,y="sidebar:refresh-categories-section-counts";class b extends d.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #l=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(){super(...arguments),this.callbackId=this.topicTrackingState.onStateChange(()=>{this._refreshCounts()}),this.appEvents.on(y,this,this._refreshCounts)}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId),this.appEvents.off(y,this,this._refreshCounts)}_refreshCounts(){this.sectionLinks.forEach(e=>e.refreshCounts())}static #u=(()=>dt7948.n(this.prototype,"_refreshCounts",[(0,l.debounce)(300)]))();get categories(){return this.currentUser.sidebarCategoryIds?.length>0?a.default.findByIds(this.currentUser.sidebarCategoryIds):this.topSiteCategories}static #c=(()=>dt7948.n(this.prototype,"categories",[_]))();get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarCategories}get hasDefaultSidebarCategories(){return(0,o.hasDefaultSidebarCategories)(this.siteSettings)}showModal(){this.modal.show(p.default)}static #d=(()=>dt7948.n(this.prototype,"showModal",[s.action]))();static #p=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"Y6JeO6Pg",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["categories",[28,[32,1],["sidebar.sections.categories.header_link_text"],null],[28,[32,2],[[28,[32,3],null,[["action","title"],[[30,0,["showModal"]],[28,[32,1],["sidebar.sections.categories.header_action_title"],null]]]]],null],"pencil",[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,4],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@query","@title","@content","@currentWhen","@model","@badgeText","@prefixBadge","@prefixType","@prefixValue","@prefixColor","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["query"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["badgeText"]],[30,2,["prefixBadge"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,5],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1," "],[8,[32,4],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-categories",[28,[32,1],["sidebar.sections.categories.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[32,3],null,[["filter"],["default_navigation_menu_categories"]]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/categories-section.js",scope:()=>[h.default,u.i18n,i.array,i.hash,m.default,c.default],isStrictMode:!0}),this))()}},808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6610),s=n(62797),r=n(9330);class o extends r.default{constructor(){super(...arguments),this.messageBus.subscribe("/refresh-sidebar-sections",this._refresh)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe("/refresh-sidebar-sections")}async _refresh(){let e=await (0,i.ajax)("/sidebar_sections.json",{});this.currentUser.set("sidebar_sections",e.sidebar_sections)}static #e=(()=>dt7948.n(this.prototype,"_refresh",[s.bind]))()}},14470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GROUP_MESSAGES_INBOX_FILTERS:()=>x,INBOX:()=>_,NEW:()=>b,PERSONAL_MESSAGES_INBOX_FILTERS:()=>k,UNREAD:()=>y,default:()=>T});var i=n(37138);n(28564);var s=n(39882),r=n(71597),o=n(54729),a=n(40516),l=n(88176),u=n(15863),c=n(62797),d=n(51969),p=n(54247),h=n(92872),m=n(76417),g=n(82739);let f=(0,n(41664).A)(n(28564)).cached,_="inbox",y="unread",b="new",w="archive",k=[_,b,y,"sent",w],x=[_,b,y,w];class T extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#sZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();_pmTopicTrackingStateKey="messages-section";constructor(){super(...arguments),this.appEvents.on("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.onStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.offStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinkCounts(){for(let e of this.allSectionLinks)e.refreshCount()}static #u=(()=>dt7948.n(this.prototype,"_refreshSectionLinkCounts",[c.bind]))();_refreshSectionLinksDisplayState(){let e=this.router.currentRoute.name,t=this.router.currentRoute.parent.name,n=this.router.currentRoute.parent.params;if(t.includes("userPrivateMessages")||"topic"===t){let i={currentRouteName:e,currentRouteParentParams:n};if("topic"===t){let e=(0,r.getOwner)(this).lookup("controller:topic");e.model.isPrivateMessage&&(i.privateMessageTopic=e.model)}for(let e of this.allSectionLinks)e.pageChanged(i)}else for(let e of this.allSectionLinks)e.collapse()}get personalMessagesSectionLinks(){let e=[];return k.forEach(t=>{e.push(new u.default({currentUser:this.currentUser,type:t,pmTopicTrackingState:this.pmTopicTrackingState}))}),e}static #c=(()=>dt7948.n(this.prototype,"personalMessagesSectionLinks",[f]))();get groupMessagesSectionLinks(){let e=[];return this.currentUser.groupsWithMessages.sort((e,t)=>e.name.localeCompare(t.name)).forEach(t=>{x.forEach(n=>{e.push(new l.default({group:t,type:n,currentUser:this.currentUser,pmTopicTrackingState:this.pmTopicTrackingState}))})}),e}static #d=(()=>dt7948.n(this.prototype,"groupMessagesSectionLinks",[f]))();get allSectionLinks(){return[...this.groupMessagesSectionLinks,...this.personalMessagesSectionLinks]}static #p=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"VXgdSHDn",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerActionIcon","@headerActions","@headerActionsIcon","@headerLinkText","@collapsable"],["messages","plus",[28,[32,1],[[28,[32,2],null,[["action","title"],[[28,[32,3],[[28,[32,4],["composePrivateMessage"],null],null,null],null],[28,[32,5],["sidebar.sections.messages.header_action_title"],null]]]]],null],"plus",[28,[32,5],["sidebar.sections.messages.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["personalMessagesSectionLinks"]]],null]],null],null,[[[41,[30,2,["shouldDisplay"]],[[[1," "],[8,[32,6],null,[["@linkName","@linkClass","@route","@model","@prefixType","@prefixValue","@currentWhen","@content"],[[30,2,["name"]],[30,2,["class"]],[30,2,["route"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["currentWhen"]],[30,2,["text"]]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["groupMessagesSectionLinks"]]],null]],null],null,[[[41,[30,3,["shouldDisplay"]],[[[1," "],[8,[32,6],null,[["@linkName","@linkClass","@route","@prefixType","@prefixValue","@models","@currentWhen","@content"],[[30,3,["name"]],[30,3,["class"]],[30,3,["route"]],[30,3,["prefixType"]],[30,3,["prefixValue"]],[30,3,["models"]],[30,3,["currentWhen"]],[30,3,["text"]]]],null],[1,"\\n"]],[]],null]],[3]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","personalMessageSectionLink","groupMessageSectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/messages-section.js",scope:()=>[p.default,s.array,s.hash,s.fn,a.default,d.i18n,h.default],isStrictMode:!0}),this))()}},56156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(54729),r=n(51013),o=n(93522),a=n(808),l=n(14470),u=n(24215),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"czksMkoJ",block:'[[[1,"\\n "],[10,0],[14,0,"sidebar-sections"],[12],[1,"\\n "],[8,[32,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n "],[8,[32,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","display_sidebar_tags"]],[[[1," "],[8,[32,2],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","can_send_private_messages"]],[[[1," "],[8,[32,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,2]],[[[1," "],[8,[32,4],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@collapsableSections","@hideApiSections"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/sections.js",scope:()=>[a.default,o.default,u.default,l.default,r.default],isStrictMode:!0}),this))()}},24215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138);n(28564);var s=n(39882),r=n(70001),o=n(54729),a=n(47793),l=n(59636),u=n(14646),c=n(48380),d=n(51969),p=n(25568),h=n(54247),m=n(92872),g=n(76417),f=n(82739);let _=(0,n(41664).A)(n(28564)).cached;class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#sZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #l=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #u=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #d=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();constructor(){super(...arguments),this.callbackId=this.topicTrackingState.onStateChange(()=>{this.sectionLinks.forEach(e=>{e.refreshCounts&&e.refreshCounts()})})}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId)}get sectionLinks(){let e=[];for(let t of this.currentUser.sidebarTags.length>0?this.currentUser.sidebarTags:this.site.navigation_menu_site_top_tags||[])t.pm_only?e.push(new u.default({tag:t,currentUser:this.currentUser})):e.push(new c.default({tag:t,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}));return e}static #p=(()=>dt7948.n(this.prototype,"sectionLinks",[_]))();get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarTags}get hasDefaultSidebarTags(){return(0,l.hasDefaultSidebarTags)(this.siteSettings)}showModal(){this.modal.show(a.default)}static #h=(()=>dt7948.n(this.prototype,"showModal",[r.action]))();static #m=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"cxAgl6p5",block:'[[[1,"\\n "],[8,[32,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["tags",[28,[32,1],["sidebar.sections.tags.header_link_text"],null],[28,[32,2],[[28,[32,3],null,[["action","title"],[[30,0,["showModal"]],[28,[32,1],["sidebar.sections.tags.header_action_title"],null]]]]],null],"pencil",[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["sectionLinks"]]],null]],null],null,[[[1," "],[8,[32,4],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@title","@content","@currentWhen","@prefixType","@prefixValue","@prefixColor","@badgeText","@models","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["badgeText"]],[30,2,["models"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n "],[8,[32,5],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1," "],[8,[32,4],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-tags",[28,[32,1],["sidebar.sections.tags.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[32,3],null,[["filter"],["default_navigation_menu_tags"]]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@collapsable","sectionLink"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/user/tags-section.js",scope:()=>[h.default,d.i18n,s.array,s.hash,m.default,p.default],isStrictMode:!0}),this))()}},34121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(70001),r=n(9630),o=n(86211);let a=(0,n(82739).createTemplateFactory)({id:"cs9V/Rxe",block:'[[[10,0],[14,0,"signup-cta alert alert-info"],[12],[1,"\\n"],[41,[30,0,["session","hideSignupCta"]],[[[1," "],[10,"h3"],[12],[1,"\\n "],[1,[28,[35,3],["signup_cta.hidden_for_session"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"h3"],[12],[1,[28,[35,4],[[28,[37,3],["signup_cta.intro"],null]],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[35,4],[[28,[37,3],["signup_cta.value_prop"],null]],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[37,7],["showCreateAccount"],null],"signup_cta.sign_up","user"]],null],[1,"\\n "],[8,[39,6],[[24,0,"no-icon"]],[["@action","@label"],[[28,[37,8],[[30,0],"hideForSession"],null],"signup_cta.hide_session"]],null],[1,"\\n "],[11,3],[24,6,""],[4,[38,10],["click",[30,0,["neverShow"]]],null],[12],[1,[28,[35,3],["signup_cta.hide_forever"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],[],false,["div","if","h3","i18n","replace-emoji","p","d-button","route-action","action","a","on"]]',moduleName:"discourse/components/signup-cta.hbs",isStrictMode:!1});class l extends i.default{action="showCreateAccount";neverShow(e){e?.preventDefault(),this.keyValueStore.setItem("anon-cta-never","t"),this.session.set("showSignupCta",!1)}static #e=(()=>dt7948.n(this.prototype,"neverShow",[s.action]))();hideForSession(){this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",Date.now()),(0,o.default)(()=>this.session.set("showSignupCta",!1),2e4)}static #n=(()=>dt7948.n(this.prototype,"hideForSession",[s.action]))();_turnOffIfHidden(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}static #i=(()=>dt7948.n(this.prototype,"_turnOffIfHidden",[(0,r.on)("willDestroyElement")]))()}(0,i.setComponentTemplate)(a,l)},58224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(35804),s=n(92976),r=n(59874),o=n(40516),a=n(51969),l=n(76417),u=n(82739),c=n(88606);let d=(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"SiBUvLWr",block:'[[[1,"\\n "],[10,0],[14,0,"signup-page-cta"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"signup-page-cta__disclaimer"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"signup-page-cta__buttons"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-large btn-primary signup-page-cta__signup"]],[["@action","@disabled","@isLoading","@label"],[[30,2],[30,3],[30,4],"create_account.title"]],null],[1,"\\n"],[41,[51,[30,5]],[[[1," "],[10,1],[14,0,"signup-page-cta__existing-account"],[12],[1,"\\n "],[1,[28,[32,2],["create_account.already_have_account"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-large btn-flat signup-page-cta__login"]],[["@action","@disabled","@label"],[[28,[32,3],["showLogin"],null],[30,4],"log_in"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n"]],["@disclaimerHtml","@createAccount","@submitDisabled","@formSubmitted","@hasAuthOptions"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/signup-page-cta.js",scope:()=>[i.htmlSafe,s.default,a.i18n,o.default,r.default],isStrictMode:!0}),(0,c.default)(void 0,"signup-page-cta:SignupPageCta"))},20283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(54729),l=n(27147),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"steps",[s.tracked],function(){return[]}))();#or=(()=>void dt7948.i(this,"steps"))();constructor(){super(...arguments),this.siteSettings.must_approve_users?this.steps=["signup","activate","approve","login"]:this.steps=["signup","activate","login"]}get currentStepIndex(){return this.steps.findIndex(e=>e===this.args.step)}get lastStepIndex(){return this.steps.length-1}getStepState(e){return e===this.currentStepIndex?"active":ethis.currentStepIndex?"incomplete":void 0}static #l=(()=>dt7948.n(this.prototype,"getStepState",[o.action]))();static #u=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"EsGAZRYA",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"signup-progress-bar"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["steps"]]],null]],null],null,[[[1," "],[10,0],[15,0,[28,[32,0],["signup-progress-bar__segment",[28,[32,1],["--",[28,[30,0,["getStepState"]],[[30,3]],null]],null]],null]],[12],[1,"\\n "],[10,0],[14,0,"signup-progress-bar__step"],[12],[1,"\\n "],[10,0],[14,0,"signup-progress-bar__circle"],[12],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@step","step","index"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/signup-progress-bar.js",scope:()=>[l.default,r.concat],isStrictMode:!0}),this))()}},49326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(70001),r=n(63019),o=n(64149),a=n(46606),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"aMC1tUQf",block:'[[[41,[30,0,["showSlowModeNotice"]],[[[1," "],[10,0],[14,0,"topic-status-info"],[12],[1,"\\n "],[10,"h3"],[14,0,"slow-mode-heading"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,4],["hourglass-start"],null]],[1,"\\n "],[1,[28,[35,5],["topic.slow_mode_notice.duration"],[["duration"],[[30,0,["durationText"]]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["user","canManageTopic"]],[[[1," "],[8,[39,6],[[24,0,"slow-mode-remove"]],[["@action","@icon"],[[30,0,["disableSlowMode"]],"trash-can"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","h3","span","d-icon","i18n","d-button"]]',moduleName:"discourse/components/slow-mode-info.hbs",isStrictMode:!1});class c extends i.default{durationText(e){return(0,r.durationTextFromSeconds)(e)}static #e=(()=>dt7948.n(this.prototype,"durationText",[(0,l.default)("topic.slow_mode_seconds")]))();showSlowModeNotice(e,t){return e>0&&!t}static #n=(()=>dt7948.n(this.prototype,"showSlowModeNotice",[(0,l.default)("topic.slow_mode_seconds","topic.closed")]))();disableSlowMode(){a.default.setSlowMode(this.topic.id,0).catch(o.popupAjaxError).then(()=>this.set("topic.slow_mode_seconds",0))}static #i=(()=>dt7948.n(this.prototype,"disableSlowMode",[s.action]))()}(0,i.setComponentTemplate)(u,c)},92907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(39882),r=n(54729),o=n(59874),a=n(15767),l=n(86369),u=n(87389),c=n(51969),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get users(){let e=this.args.users;return this.args.addSelf&&!e.some(e=>e.username===this.currentUser.username)&&(e=e.concat((0,l.smallUserAttrs)(this.currentUser))),e}get postUrl(){let e=this.users.find(e=>e.post_url);if(e)return(0,u.default)(e)}static #n=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"G29MWJP8",block:'[[[1,"\\n"],[41,[30,0,["users"]],[[[1," "],[8,[32,0],null,[["@name","@outletArgs"],["small-user-list-internal",[28,[32,1],null,[["data"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"clearfix small-user-list"],[17,2],[12],[1,"\\n "],[10,1],[14,0,"small-user-list-content"],[15,"aria-label",[30,3]],[14,"role","list"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["users"]]],null]],null],"username",[[[41,[30,4,["unknown"]],[[[1," "],[10,0],[15,"title",[28,[32,2],["post.unknown_user"],null]],[14,0,"unknown"],[14,"role","listitem"],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,4,["username"]]],[15,"title",[30,4,["username"]]],[14,"aria-hidden","false"],[14,"role","listitem"],[12],[1,"\\n "],[1,[28,[32,3],[[30,4,["template"]],"tiny"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[4]],null],[1,"\\n"],[41,[30,5],[[[41,[30,0,["postUrl"]],[[[1," "],[10,3],[15,6,[30,0,["postUrl"]]],[12],[1,"\\n "],[10,1],[14,"aria-hidden","true"],[14,0,"list-description"],[12],[1,"\\n "],[1,[28,[32,2],[[30,5]],[["count"],[[30,6]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,"aria-hidden","true"],[14,0,"list-description"],[12],[1,"\\n "],[1,[28,[32,2],[[30,5]],[["count"],[[30,6]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@data","&attrs","@ariaLabel","user","@description","@count"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/small-user-list.js",scope:()=>[o.default,s.hash,c.i18n,a.default],isStrictMode:!0}),this))()}},82117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(70001),o=n(42433),a=n(54729),l=n(92976),u=n(27147),c=n(45929),d=n(86211),p=n(62797),h=n(51969),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"messageBus",[a.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"session",[a.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"showPrompt",[s.tracked],function(){return!1}))();#oo=(()=>void dt7948.i(this,"showPrompt"))();static #l=(()=>dt7948.g(this.prototype,"animatePrompt",[s.tracked],function(){return!1}))();#oa=(()=>void dt7948.i(this,"animatePrompt"))();timeoutHandler;constructor(){super(...arguments),this.messageBus.subscribe("/refresh_client",this.onRefresh),this.messageBus.subscribe("/global/asset-version",this.onAsset)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe("/refresh_client",this.onRefresh),this.messageBus.unsubscribe("/global/asset-version",this.onAsset),(0,o.cancel)(this.timeoutHandler)}onRefresh(){this.session.requiresRefresh=!0}static #u=(()=>dt7948.n(this.prototype,"onRefresh",[p.bind]))();onAsset(e){this.session.assetVersion!==e&&(this.session.requiresRefresh=!0),!this.timeoutHandler&&this.session.requiresRefresh&&((0,c.isTesting)()?this.updatePromptState(!0):this.timeoutHandler=(0,d.default)(()=>this.updatePromptState(!0),864e5))}static #c=(()=>dt7948.n(this.prototype,"onAsset",[p.bind]))();updatePromptState(e){let t=e?"animatePrompt":"showPrompt";this[e?"showPrompt":"animatePrompt"]=e,(0,c.isTesting)()?this[t]=e:(0,d.default)(()=>this[t]=e,500)}refreshPage(){document.location.reload()}static #d=(()=>dt7948.n(this.prototype,"refreshPage",[r.action]))();dismiss(){this.updatePromptState(!1)}static #p=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #h=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"QfgYflau",block:'[[[1,"\\n"],[41,[30,0,["showPrompt"]],[[[1," "],[10,0],[15,0,[28,[32,0],["software-update-prompt",[52,[30,0,["animatePrompt"]],"require-software-refresh"]],null]],[12],[1,"\\n "],[10,0],[14,0,"wrap"],[12],[1,"\\n "],[10,0],[14,"aria-live","polite"],[14,0,"update-prompt-main-content"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-transparent update-prompt-message"]],[["@action","@icon","@label"],[[30,0,["refreshPage"]],"arrow-rotate-right","software_update_prompt.message"]],null],[1,"\\n\\n "],[10,1],[14,0,"update-prompt-dismiss"],[12],[1,"\\n "],[8,[32,1],[[16,"aria-label",[28,[32,2],["software_update_prompt.dismiss"],null]],[24,0,"btn-transparent"]],[["@action","@icon"],[[30,0,["dismiss"]],"xmark"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/software-update-prompt.js",scope:()=>[u.default,l.default,h.i18n],isStrictMode:!0}),this))()}},28892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(17870);let s=(0,n(82739).createTemplateFactory)({id:"X41nyY3k",block:'[[[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[1,[28,[35,2],[[30,0,["category"]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"subcategory"],[12],[1,"\\n "],[8,[39,4],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[1,[28,[35,2],[[30,0,["category"]]],[["hideParent"],["true"]]]],[1,"\\n"],[41,[51,[30,0,["hideUnread"]]],[[[1," "],[8,[39,5],null,[["@category","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null]],[],false,["unless","if","category-link","span","category-title-before","category-unread"]]',moduleName:"discourse/components/sub-category-item.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},61372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(17870);let s=(0,n(82739).createTemplateFactory)({id:"+rAKeIvn",block:'[[[41,[51,[30,0,["isHidden"]]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[15,0,[29,["subcategory-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[39,5],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n "],[10,0],[14,0,"subcategories-list"],[12],[1,"\\n"],[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[12],[1,"\\n "],[8,[39,5],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1," "],[10,0],[14,0,"category-description subcategory-description"],[12],[1,"\\n "],[1,[28,[35,10],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["category","subcategories"]],[[[1," "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@category","@hideUnread","@listType"],[[30,2],"true",[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null]],["subcategory","subsubcategory"],false,["unless","if","tr","border-color","td","category-title-link","div","each","-track-array","sub-category-item","dir-span"]]',moduleName:"discourse/components/sub-category-row.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},84737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"c+sOKHWG",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[41,[30,0,["site","mobileView"]],[[[1," "],[10,0],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n "],[10,0],[14,0,"parent-category"],[12],[1,"\\n "],[8,[39,4],null,[["@category"],[[30,1]]],null],[1,"\\n "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,6],[[30,1,["stat"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["serializedSubcategories"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1," "],[8,[39,7],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"table"],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"tr"],[12],[1,"\\n "],[10,"th"],[14,0,"parent-category"],[12],[1,"\\n "],[8,[39,4],null,[["@category"],[[30,1]]],null],[1,"\\n "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,6],[[30,1,["stat"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,12],["categories.topics"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,12],["categories.latest"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["serializedSubcategories"]]],null]],null],null,[[[1," "],[8,[39,7],null,[["@category","@showTopics"],[[30,3],true]],null],[1,"\\n"]],[3]],[[[1," "],[8,[39,7],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[1]],null]],["category","subCategory","subCategory"],false,["each","-track-array","if","div","category-title-link","span","html-safe","parent-category-row","table","thead","tr","th","i18n","tbody"]]',moduleName:"discourse/components/subcategories-with-featured-topics.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},66221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(26647),o=n(30280),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get suggestedTitle(){return this.currentUser?.pmPath(this.args.topic)&&this.args.topic.isPrivateMessage?(0,a.i18n)("suggested_topics.pm_title"):(0,a.i18n)("suggested_topics.title")}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"RwoLwqVF",block:'[[[1,"\\n "],[10,0],[14,"role","complementary"],[14,"aria-labelledby","suggested-topics-title"],[14,1,"suggested-topics"],[14,0,"more-topics__list"],[12],[1,"\\n "],[8,[32,0],null,[["@id","@titleText","@contentText","@placement","@priority"],["suggested_topics",[28,[32,1],["user_tips.suggested_topics.title"],null],[28,[32,1],["user_tips.suggested_topics.content"],null],"top-start",700]],null],[1,"\\n\\n "],[10,"h3"],[14,1,"suggested-topics-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n "],[1,[30,0,["suggestedTitle"]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topics"],[12],[1,"\\n"],[41,[30,1,["isPrivateMessage"]],[[[1," "],[8,[32,2],null,[["@topics","@hideCategory","@showPosters"],[[30,1,["suggestedTopics"]],true,true]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@topics"],[[30,1,["suggestedTopics"]]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/suggested-topics.js",scope:()=>[o.default,a.i18n,r.default],isStrictMode:!0}),this))()}},5846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(87075),r=n(70001),o=n(42433),a=n(21237),l=n(51969),u=n(76417),c=n(82739);class d extends i.default{get id(){return`table-header-toggle-${this.args.field.replace(/\s/g,"")}`}get labelKey(){return this.args.automatic||this.args.translated?this.args.labelKey:this.args.field}get ariaSort(){return this.args.order===this.args.field?this.args.asc?"ascending":"descending":"none"}get chevronIcon(){if(this.args.order===this.args.field)return this.args.asc?"chevron-up":"chevron-down"}get pressedState(){return this.args.order===this.args.field?this.args.asc?"mixed":"true":"false"}get ariaLabel(){let e="";if("heart"===this.args.icon&&(e+=`${(0,l.i18n)("likes_lowercase",{count:2})} `),this.args.translated)e+=this.args.field;else{let t=this.labelKey||`directory.${this.args.field}`;e+=(0,l.i18n)(`${t}_long`,{defaultValue:(0,l.i18n)(t)})}return(0,l.i18n)("directory.sort.label",{criteria:e})}get iconName(){return this.args.icon||null}get label(){let e=this.labelKey||`directory.${this.args.field}`;return this.args.translated?this.args.field:(0,l.i18n)(e+"_long",{defaultValue:(0,l.i18n)(e)})}toggleProperties(){let e=this.args.order===this.args.field&&!this.args.asc||null;this.args.onToggle?.(this.args.field,e),(0,o.schedule)("afterRender",()=>{document.getElementById(this.id)?.focus()})}static #e=(()=>dt7948.n(this.prototype,"toggleProperties",[r.action]))();click(){this.toggleProperties()}static #n=(()=>dt7948.n(this.prototype,"click",[r.action]))();keyPress(e){"Enter"===e.key&&this.toggleProperties()}static #i=(()=>dt7948.n(this.prototype,"keyPress",[r.action]))();static #l=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"xV7JbxEN",block:'[[[1,"\\n "],[11,0],[17,1],[24,0,"directory-table__column-header sortable"],[16,"aria-sort",[30,0,["ariaSort"]]],[24,"role","columnheader"],[4,[32,0],["click",[30,0,["click"]]],null],[4,[32,0],["keypress",[30,0,["keyPress"]]],null],[12],[1,"\\n "],[10,0],[14,0,"header-contents"],[15,1,[30,0,["id"]]],[14,"role","button"],[14,"tabindex","0"],[15,"aria-label",[30,0,["ariaLabel"]]],[15,"aria-pressed",[30,0,["pressedState"]]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,"\\n"],[41,[30,0,["iconName"]],[[[1," "],[1,[28,[32,1],[[30,0,["iconName"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[30,0,["label"]]],[1,"\\n"],[41,[30,0,["chevronIcon"]],[[[1," "],[1,[28,[32,1],[[30,0,["chevronIcon"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/table-header-toggle.js",scope:()=>[s.on,a.default],isStrictMode:!0}),this))()}},98432:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(93223),r=n(56839),o=n(87389),a=n(62797);let l=(0,n(82739).createTemplateFactory)({id:"vzIVmx5d",block:'[[[1,[30,0,["tagId"]]]],[],false,[]]',moduleName:"discourse/components/tag-drop-link.hbs",isStrictMode:!1}),u=dt7948.c(class extends i.default{href(e,t){let n;return n=t?"/tags"+t.path+"/"+e:"/tag/"+e,(0,o.default)(n)}static #e=(()=>dt7948.n(this.prototype,"href",[(0,a.default)("tagId","category")]))();tagClass(e){return"tag-"+e}static #n=(()=>dt7948.n(this.prototype,"tagClass",[(0,a.default)("tagId")]))();click(e){return e.preventDefault(),r.default.routeTo(this.href),!0}},[(0,s.attributeBindings)("href"),(0,s.classNameBindings)(":tag-badge-wrapper",":badge-wrapper",":bullet","tagClass"),(0,s.tagName)("a")]),c=(0,i.setComponentTemplate)(l,u)},58595:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(76417),s=n(70001),r=n(54729),o=n(97355),a=n(93223),l=n(26038),u=n(27174),c=n(30975),d=n(62797),p=n(51969);let h=(0,n(82739).createTemplateFactory)({id:"WXBNFUBE",block:'[[[10,"section"],[14,0,"group-name"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.name_placeholder"],null]],[13],[1,"\\n "],[10,0],[12],[8,[39,4],null,[["@value"],[[30,0,["buffered","name"]]]],null],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-tags-list"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.tags_label"],null]],[13],[10,"br"],[12],[13],[1,"\\n "],[8,[39,6],null,[["@tags","@everyTag","@unlimitedTagCount","@excludeSynonyms","@options"],[[30,0,["buffered","tag_names"]],true,true,true,[28,[37,7],null,[["allowAny","filterPlaceholder"],[true,"tagging.groups.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"parent-tag-section"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["tagging.groups.parent_tag_label"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,6],null,[["@tags","@everyTag","@excludeSynonyms","@options"],[[30,0,["buffered","parent_tag_name"]],true,true,[28,[37,7],null,[["allowAny","filterPlaceholder","maximum"],[true,"tagging.groups.parent_tag_placeholder",1]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"description"],[12],[1,[28,[35,2],["tagging.groups.parent_tag_description"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-one-per-topic"],[12],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[39,8],[[24,3,"onepertopic"]],[["@type","@checked"],["checkbox",[30,0,["buffered","one_per_topic"]]]],null],[1,"\\n "],[1,[28,[35,2],["tagging.groups.one_per_topic_label"],null]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-visibility"],[12],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","public","public-permission",[30,0,["buffered","permissionName"]],[28,[37,10],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","public-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.everyone_can_use"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","visible","visible-permission",[30,0,["buffered","permissionName"]],[28,[37,10],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","visible-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.usable_only_by_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[8,[39,11],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,10],[[30,0],"setPermissionsGroups"],null],[28,[37,7],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n "],[8,[39,9],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","private","private-permission",[30,0,["buffered","permissionName"]],[28,[37,10],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n "],[10,"label"],[14,0,"radio"],[14,"for","private-permission"],[12],[1,"\\n "],[1,[28,[35,2],["tagging.groups.visible_only_to_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n "],[8,[39,11],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,10],[[30,0],"setPermissionsGroups"],null],[28,[37,7],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-group-controls"],[12],[1,"\\n "],[8,[39,12],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[28,[37,10],[[30,0],"save"],null],[30,0,["buffered","isSaving"]],"tagging.groups.save"]],null],[1,"\\n\\n "],[8,[39,12],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,0,["destroyTagGroup"]],[30,0,["buffered","isNew"]],"trash-can","tagging.groups.delete"]],null],[1,"\\n"],[13]],[],false,["section","label","i18n","div","text-field","br","tag-chooser","hash","input","radio-button","action","group-chooser","d-button"]]',moduleName:"discourse/components/tag-groups-form.hbs",isStrictMode:!1}),m=dt7948.c(class extends i.default.extend((0,l.bufferedProperty)("model")){static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();allGroups=null;init(){super.init(...arguments),this.setGroupOptions()}setGroupOptions(){u.default.findAll().then(e=>{this.set("allGroups",e)})}cannotSave(e,t,n){return(0,o.isEmpty)(e)||(0,o.isEmpty)(t)||!this.everyoneSelected(n)&&(0,o.isEmpty)(this.selectedGroupNames(n))}static #i=(()=>dt7948.n(this.prototype,"cannotSave",[(0,d.default)("buffered.name","buffered.tag_names","buffered.permissions")]))();selectedGroupIds(e,t){if(!e||!t)return[];let n=Object.keys(e),i=[];return t.forEach(e=>{n.includes(e.name)&&i.push(e.id)}),i}static #l=(()=>dt7948.n(this.prototype,"selectedGroupIds",[(0,d.default)("buffered.permissions","allGroups")]))();everyoneSelected(e){return!e||e.everyone===c.default.FULL}selectedGroupNames(e){return e?Object.keys(e).filter(e=>"everyone"!==e):[]}setPermissionsType(e){let t=Object.assign({},this.buffered.get("permissions"));"private"===e?delete t.everyone:"visible"===e?t.everyone=c.default.READONLY:t.everyone=c.default.FULL,this.buffered.set("permissions",t)}static #u=(()=>dt7948.n(this.prototype,"setPermissionsType",[s.action]))();setPermissionsGroups(e){let t=Object.assign({},this.buffered.get("permissions"));this.allGroups.forEach(n=>{e.includes(n.id)?t[n.name]=c.default.FULL:delete t[n.name]}),this.buffered.set("permissions",t)}static #c=(()=>dt7948.n(this.prototype,"setPermissionsGroups",[s.action]))();save(){if(this.cannotSave)return this.dialog.alert((0,p.i18n)("tagging.groups.cannot_save")),!1;let e=this.buffered.getProperties("name","tag_names","parent_tag_name","one_per_topic","permissions");e.permissions&&e.permissions.everyone!==c.default.FULL||(e.permissions={everyone:c.default.FULL}),this.model.save(e).then(()=>{this.commitBuffer(),this.onSave?this.onSave():this.router.transitionTo("tagGroups.index")})}static #d=(()=>dt7948.n(this.prototype,"save",[s.action]))();destroyTagGroup(){return this.dialog.yesNoConfirm({message:(0,p.i18n)("tagging.groups.confirm_delete"),didConfirm:()=>{this.model.destroyRecord().then(()=>{this.onDestroy&&this.onDestroy()})}})}static #p=(()=>dt7948.n(this.prototype,"destroyTagGroup",[s.action]))()},[(0,a.tagName)("")]),g=(0,i.setComponentTemplate)(h,m)},86490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(76417),s=n(70001),r=n(5938),o=n(54729),a=n(35804),l=n(97355),u=n(93223),c=n(6610),d=n(64149),p=n(62797),h=n(51969);let m=(0,n(82739).createTemplateFactory)({id:"6bJ0pl6F",block:'[[[10,"section"],[14,0,"tag-info"],[12],[1,"\\n"],[41,[30,0,["tagInfo"]],[[[1," "],[10,0],[14,0,"tag-name"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,0],[14,0,"edit-tag-wrapper"],[12],[1,"\\n "],[8,[39,3],null,[["@id","@value","@maxlength","@input","@autofocus"],["edit-name",[28,[37,4],[[30,0,["tagInfo","name"]]],null],[30,0,["siteSettings","max_tag_length"]],[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,["newTagName"]]],null]],null]],null],"true"]],null],[1,"\\n\\n "],[8,[39,8],[[24,1,"edit-description"],[16,"placeholder",[28,[37,9],["tagging.description"],null]],[16,"maxlength",1000],[24,"autofocus","true"],[4,[38,10],["input",[28,[37,5],[[28,[37,6],[[28,[37,7],[[30,0,["newTagDescription"]]],null]],null]],null]],null]],[["@value"],[[28,[37,4],[[30,0,["tagInfo","descriptionWithNewLines"]]],null]]],null],[1,"\\n "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n"],[41,[51,[30,0,["updateDisabled"]]],[[[1," "],[8,[39,12],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"finishedEditing"],null],"check","tagging.save"]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,12],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"cancelEditing"],null],"xmark","cancel"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"tag-name-wrapper"],[12],[1,"\\n "],[1,[28,[35,14],[[30,0,["tagInfo","name"]]],[["tagName"],["div"]]]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[11,3],[24,6,""],[24,0,"edit-tag"],[16,"title",[28,[37,9],["tagging.edit_tag"],null]],[4,[38,10],["click",[30,0,["edit"]]],null],[12],[1,[28,[35,16],["pencil"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["tagInfo","description"]],[[[1," "],[10,0],[14,0,"tag-description-wrapper"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,18],[[30,0,["tagInfo","description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"tag-associations"],[12],[41,[30,0,["tagInfo","tag_group_names"]],[[[1," "],[1,[30,0,["tagGroupsInfo"]]],[1,"\\n"]],[]],null],[41,[30,0,["tagInfo","categories"]],[[[1," "],[1,[30,0,["categoriesInfo"]]],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"],[42,[28,[37,21],[[28,[37,21],[[30,0,["tagInfo","categories"]]],null]],null],null,[[[1," "],[1,[28,[35,22],[[30,1]],null]],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["nothingToShow"]],[[[41,[30,0,["tagInfo","category_restricted"]],[[[1," "],[1,[28,[35,9],["tagging.category_restricted"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,18],[[28,[37,9],["tagging.default_info"],null]],null]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[1,[28,[35,18],[[28,[37,9],["tagging.staff_info"],[["basePath"],[[28,[37,23],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]]],[]],null],[13],[1,"\\n"],[41,[30,0,["tagInfo","synonyms"]],[[[1," "],[10,0],[14,0,"synonyms-list"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[35,9],["tagging.synonyms"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[35,18],[[28,[37,9],["tagging.synonyms_description"],[["base_tag_name"],[[30,0,["tagInfo","name"]]]]]],null]],[13],[1,"\\n "],[10,0],[14,0,"tag-list"],[12],[1,"\\n"],[42,[28,[37,21],[[28,[37,21],[[30,0,["tagInfo","synonyms"]]],null]],null],null,[[[1," "],[10,0],[14,0,"tag-box"],[12],[1,"\\n "],[1,[28,[35,14],[[30,2,["id"]]],[["pmOnly","tagName"],[[30,2,["pmOnly"]],"div"]]]],[1,"\\n"],[41,[30,0,["editSynonymsMode"]],[[[1," "],[11,3],[24,6,""],[24,0,"unlink-synonym"],[4,[38,10],["click",[28,[37,6],[[30,0,["unlinkSynonym"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,16],["link-slash"],[["title"],["tagging.remove_synonym"]]]],[1,"\\n "],[13],[1,"\\n "],[11,3],[24,6,""],[24,0,"delete-synonym"],[4,[38,10],["click",[28,[37,6],[[30,0,["deleteSynonym"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[35,16],["trash-can"],[["title"],["tagging.delete_tag"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["editSynonymsMode"]],[[[1," "],[10,"section"],[14,0,"add-synonyms field"],[12],[1,"\\n "],[10,"label"],[14,"for","add-synonyms"],[12],[1,[28,[35,9],["tagging.add_synonyms_label"],null]],[13],[1,"\\n "],[10,0],[14,0,"add-synonyms__controls"],[12],[1,"\\n "],[8,[39,26],null,[["@id","@tags","@blockedTags","@everyTag","@excludeSynonyms","@excludeHasSynonyms","@unlimitedTagCount","@allowCreate"],["add-synonyms",[30,0,["newSynonyms"]],[28,[37,27],[[30,0,["tagInfo","name"]]],null],true,true,true,true,true]],null],[1,"\\n"],[41,[30,0,["newSynonyms"]],[[[1," "],[8,[39,12],[[24,0,"ok"]],[["@action","@disabled","@icon"],[[28,[37,13],[[30,0],"addSynonyms"],null],[30,0,["addSynonymsDisabled"]],"check"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canAdminTag"]],[[[1," "],[8,[39,28],null,[["@name","@outletArgs","@connectorTagName"],["tag-custom-settings",[28,[37,29],null,[["tag"],[[30,0,["tagInfo"]]]]],"section"]],null],[1,"\\n\\n "],[10,0],[14,0,"tag-actions"],[12],[1,"\\n "],[8,[39,12],[[24,1,"edit-synonyms"],[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,13],[[30,0],"toggleEditControls"],null],"gear","tagging.edit_synonyms"]],null],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1," "],[8,[39,12],[[24,1,"delete-tag"],[24,0,"btn-danger delete-tag"]],[["@action","@icon","@label"],[[28,[37,13],[[30,0],"deleteTag"],null],"trash-can","tagging.delete_tag"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["loading"]],[[[1," "],[10,0],[12],[1,[28,[35,9],["loading"],null]],[13],[1,"\\n"]],[]],null],[13]],["category","tag"],false,["section","if","div","text-field","readonly","with-event-value","fn","mut","textarea","i18n","on","unless","d-button","action","discourse-tag","a","d-icon","span","html-safe","br","each","-track-array","category-link","base-path","h3","label","tag-chooser","array","plugin-outlet","hash"]]',moduleName:"discourse/components/tag-info.hbs",isStrictMode:!1}),g=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();loading=!1;tagInfo=null;newSynonyms=null;showEditControls=!1;editing=!1;newTagName=null;newTagDescription=null;static #i=(()=>dt7948.g(this.prototype,"canAdminTag",[(0,r.reads)("currentUser.staff")]))();#ol=(()=>void dt7948.i(this,"canAdminTag"))();static #l=(()=>dt7948.g(this.prototype,"editSynonymsMode",[(0,r.and)("canAdminTag","showEditControls")]))();#ou=(()=>void dt7948.i(this,"editSynonymsMode"))();tagGroupsInfo(e){return(0,h.i18n)("tagging.tag_groups_info",{count:e.length,tag_groups:e.join(", ")})}static #u=(()=>dt7948.n(this.prototype,"tagGroupsInfo",[(0,p.default)("tagInfo.tag_group_names")]))();categoriesInfo(e){return(0,h.i18n)("tagging.category_restrictions",{count:e.length})}static #c=(()=>dt7948.n(this.prototype,"categoriesInfo",[(0,p.default)("tagInfo.categories")]))();nothingToShow(e,t,n){return(0,l.isEmpty)(e)&&(0,l.isEmpty)(t)&&(0,l.isEmpty)(n)}static #d=(()=>dt7948.n(this.prototype,"nothingToShow",[(0,p.default)("tagInfo.tag_group_names","tagInfo.categories","tagInfo.synonyms")]))();updateDisabled(e){let t=RegExp(this.site.tags_filter_regexp,"g");return 0===(e=e?e.replace(t,"").trim():"").length}static #p=(()=>dt7948.n(this.prototype,"updateDisabled",[(0,p.default)("newTagName")]))();didInsertElement(){super.didInsertElement(...arguments),this.loadTagInfo()}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this.set("tagInfo",null),this.loadTagInfo()}loadTagInfo(){if(!this.loading)return this.set("loading",!0),this.store.find("tag-info",this.tag.id).then(e=>{this.set("tagInfo",e),this.set("tagInfo.synonyms",e.synonyms.map(e=>this.store.createRecord("tag",e)))}).finally(()=>this.set("loading",!1)).catch(d.popupAjaxError)}edit(e){e?.preventDefault(),this.tagInfo.set("descriptionWithNewLines",this.tagInfo.description?.replaceAll("
","\n")),this.setProperties({editing:!0,newTagName:this.tag.id,newTagDescription:this.tagInfo.description})}static #h=(()=>dt7948.n(this.prototype,"edit",[s.action]))();unlinkSynonym(e,t){t?.preventDefault(),(0,c.ajax)(`/tag/${this.tagInfo.name}/synonyms/${e.id}`,{type:"DELETE"}).then(()=>this.tagInfo.synonyms.removeObject(e)).catch(d.popupAjaxError)}static #m=(()=>dt7948.n(this.prototype,"unlinkSynonym",[s.action]))();deleteSynonym(e,t){t?.preventDefault(),this.dialog.yesNoConfirm({message:(0,h.i18n)("tagging.delete_synonym_confirm",{tag_name:e.text}),didConfirm:()=>e.destroyRecord().then(()=>this.tagInfo.synonyms.removeObject(e)).catch(d.popupAjaxError)})}static #g=(()=>dt7948.n(this.prototype,"deleteSynonym",[s.action]))();toggleEditControls(){this.toggleProperty("showEditControls")}static #E=(()=>dt7948.n(this.prototype,"toggleEditControls",[s.action]))();cancelEditing(){this.set("editing",!1)}static #A=(()=>dt7948.n(this.prototype,"cancelEditing",[s.action]))();finishedEditing(){let e=this.tag.id;this.newTagDescription=this.newTagDescription?.replaceAll("\n","
"),this.tag.update({id:this.newTagName,description:this.newTagDescription}).then(t=>{this.set("editing",!1),this.tagInfo.set("description",this.newTagDescription),t.responseJson.tag&&e!==t.responseJson.tag.id&&this.router.transitionTo("tag.show",t.responseJson.tag.id)}).catch(d.popupAjaxError)}static #D=(()=>dt7948.n(this.prototype,"finishedEditing",[s.action]))();deleteTag(){let e=this.get("list.topic_list.tags.firstObject.topic_count")||0,t=0===e?(0,h.i18n)("tagging.delete_confirm_no_topics"):(0,h.i18n)("tagging.delete_confirm",{count:e});this.tagInfo.synonyms.length>0&&(t+=" "+(0,h.i18n)("tagging.delete_confirm_synonyms",{count:this.tagInfo.synonyms.length})),this.dialog.deleteConfirm({message:t,didConfirm:async()=>{try{await this.tag.destroyRecord(),this.router.transitionTo("tags.index")}catch{this.dialog.alert((0,h.i18n)("generic_error"))}}})}static #I=(()=>dt7948.n(this.prototype,"deleteTag",[s.action]))();addSynonyms(){this.dialog.confirm({message:(0,a.htmlSafe)((0,h.i18n)("tagging.add_synonyms_explanation",{count:this.newSynonyms.length,tag_name:this.tagInfo.name})),didConfirm:()=>(0,c.ajax)(`/tag/${this.tagInfo.name}/synonyms`,{type:"POST",data:{synonyms:this.newSynonyms}}).then(e=>{e.success?(this.set("newSynonyms",null),this.loadTagInfo()):e.failed_tags?this.dialog.alert((0,h.i18n)("tagging.add_synonyms_failed",{tag_names:Object.keys(e.failed_tags).join(", ")})):this.dialog.alert((0,h.i18n)("generic_error"))}).catch(d.popupAjaxError)})}static #G=(()=>dt7948.n(this.prototype,"addSynonyms",[s.action]))()},[(0,u.tagName)("")]),f=(0,i.setComponentTemplate)(m,g)},16691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(5938),r=n(93223),o=n(88253),a=n(62797),l=n(51969);let u=(0,n(82739).createTemplateFactory)({id:"vey2MO5r",block:'[[[41,[30,0,["title"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["category"]],[[[1," "],[8,[39,2],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["tagGroupName"]],[[[1," "],[10,"h3"],[12],[1,[30,0,["tagGroupName"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,4],[[28,[37,4],[[30,0,["sortedTags"]]],null]],null],null,[[[1," "],[10,0],[14,0,"tag-box"],[12],[1,"\\n "],[1,[28,[35,6],[[30,1,["id"]]],[["description","isPrivateMessage","pmOnly","tagsForUser"],[[30,1,["description"]],[30,0,["isPrivateMessage"]],[30,1,["pmOnly"]],[30,0,["tagsForUser"]]]]]],[1,"\\n"],[41,[30,1,["pmOnly"]],[[[1," "],[1,[28,[35,7],["envelope"],null]],[1,"\\n"]],[]],null],[41,[30,1,["totalCount"]],[[[1," "],[10,1],[14,0,"tag-count"],[12],[1,"\\n x\\n "],[1,[30,1,["totalCount"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13]],["tag"],false,["if","h3","category-title-link","each","-track-array","div","discourse-tag","d-icon","span"]]',moduleName:"discourse/components/tag-list.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{isPrivateMessage=!1;static #e=(()=>dt7948.g(this.prototype,"sortedTags",[(0,s.sort)("tags","sortProperties")]))();#oc=(()=>void dt7948.i(this,"sortedTags"))();title(e){return e&&(0,l.i18n)(e)}static #n=(()=>dt7948.n(this.prototype,"title",[(0,a.default)("titleKey")]))();category(e){return e&&o.default.findById(e)}static #i=(()=>dt7948.n(this.prototype,"category",[(0,a.default)("categoryId")]))();categoryClass(e){return e&&`tag-list-${e}`}static #l=(()=>dt7948.n(this.prototype,"categoryClass",[(0,a.default)("category.fullSlug")]))();tagGroupNameClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`tag-group-${e}`}static #u=(()=>dt7948.n(this.prototype,"tagGroupNameClass",[(0,a.default)("tagGroupName")]))()},[(0,r.classNameBindings)(":tags-list",":tag-list","categoryClass","tagGroupNameClass")]),d=(0,i.setComponentTemplate)(u,c)},22518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(49409),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"gJ+QbK0n",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"tag-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix"],[[30,1],[30,2],false,false,"tagging.notifications"]],null],[1,"\\n"]],["@onChange","@levelId"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/tag-notifications-tracking.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"tag-notifications-tracking:TagNotificationsTracking"))},91752:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{actionsMapping=null;get content(){return[{id:"manageGroups",name:(0,r.i18n)("tagging.manage_groups"),description:(0,r.i18n)("tagging.manage_groups_description"),icon:"tags"},{id:"uploadTags",name:(0,r.i18n)("tagging.upload"),description:(0,r.i18n)("tagging.upload_description"),icon:"upload"},{id:"deleteUnusedTags",name:(0,r.i18n)("tagging.delete_unused"),description:(0,r.i18n)("tagging.delete_unused_description"),icon:"trash-can"}]}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){this.actionsMapping[e]?.()}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.pluginApiIdentifiers)("tags-admin-dropdown"),(0,a.selectKitOptions)({icons:["wrench","caret-down"],showFullTitle:!1}),(0,s.classNames)("tags-admin-dropdown")])},75276:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"Jm6vymle",block:'[[[18,1,[[28,[37,1],null,[["activeTile"],[[30,0,["activeTile"]]]]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/tap-tile-grid.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{activeTile=null},[(0,s.classNames)("tap-tile-grid")]),a=(0,i.setComponentTemplate)(r,o)},24033:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(5938),r=n(93223),o=n(28147);let a=(0,n(82739).createTemplateFactory)({id:"YzzhQB97",block:'[[[41,[30,0,["icon"]],[[[1," "],[1,[28,[35,1],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[18,1,null]],["&default"],false,["if","d-icon","yield"]]',moduleName:"discourse/components/tap-tile.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{role="button";tabIndex=0;static #e=(()=>dt7948.g(this.prototype,"ariaPressed",[(0,s.reads)("active")]))();#od=(()=>void dt7948.i(this,"ariaPressed"))();static #n=(()=>dt7948.g(this.prototype,"active",[(0,o.propertyEqual)("activeTile","tileId")]))();#ta=(()=>void dt7948.i(this,"active"))();init(){super.init(...arguments),this.set("elementId",`tap_tile_${this.tileId}`)}click(){this.onChange(this.tileId)}keyDown(e){"Enter"===e.key&&(e.stopPropagation(),this.onChange(this.tileId))}},[(0,r.attributeBindings)("role","ariaPressed","tabIndex"),(0,r.classNameBindings)("active"),(0,r.classNames)("tap-tile")]),u=(0,i.setComponentTemplate)(a,l)},46213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(38861),s=n(70001),r=n(42433),o=n(93223),a=n(84262),l=n(51969);let u=dt7948.c(class extends i.TextField{_prevValue=null;_timer=null;didReceiveAttrs(){super.didReceiveAttrs(...arguments),this._prevValue=this.value}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._prevValue!==this.value&&(this.onChangeImmediate&&(0,r.next)(()=>this.onChangeImmediate(this.value)),this.onChange&&((0,r.cancel)(this._timer),this._timer=(0,a.default)(this,this._debouncedChange,500)))}_debouncedChange(){(0,r.next)(()=>this.onChange(this.value))}get dir(){if(this.siteSettings.support_mixed_text_direction)return"auto"}willDestroyElement(){super.willDestroyElement(...arguments),(0,r.cancel)(this._timer)}get placeholder(){return this._placeholder?this._placeholder:this.placeholderKey?(0,l.i18n)(this.placeholderKey):""}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,s.computed)("placeholderKey","_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}},[(0,o.attributeBindings)("autocorrect","autocapitalize","autofocus","maxLength","dir","aria-label","aria-controls")])},65615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(51969),r=n(76417),o=n(82739);class a extends i.default{get description(){let e=this.args.daysSince;if(e<30)return(0,s.i18n)("dates.later.x_days",{count:e});if(e<365){let t=Math.round(e/30);return(0,s.i18n)("dates.later.x_months",{count:t})}{let t=Math.round(e/365);return(0,s.i18n)("dates.later.x_years",{count:t})}}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"BCAhebOI",block:'[[[1,"\\n "],[10,0],[14,0,"topic-avatar"],[12],[13],[1,"\\n "],[10,0],[14,0,"small-action-desc timegap"],[12],[1,"\\n "],[1,[30,0,["description"]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/time-gap.js",isStrictMode:!0}),this))()}},43666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(70001),r=n(35804),o=n(97355),a=n(93223);let l=(0,n(82739).createTemplateFactory)({id:"DcLZyXCT",block:'[[[8,[39,0],null,[["@value","@content","@onChange","@options"],[[30,0,["time"]],[30,0,["timeOptions"]],[28,[37,1],[[30,0],"onChangeTime"],null],[28,[37,2],null,[["translatedNone","allowAny","filterable","autoInsertNoneItem","translatedFilterPlaceholder"],["--:--",true,false,false,"--:--"]]]]],null]],[],false,["combo-box","action","hash"]]',moduleName:"discourse/components/time-input.hbs",isStrictMode:!1});function u(e){return{hours:Math.floor(e/60),minutes:e%60}}let c=dt7948.c(class extends i.default{hours=null;minutes=null;relativeDate=null;didReceiveAttrs(){super.didReceiveAttrs(...arguments),(0,o.isPresent)(this.date)&&this.setProperties({hours:this.date.hours(),minutes:this.date.minutes()}),(0,o.isPresent)(this.date)||(0,o.isPresent)(this.hours)||(0,o.isPresent)(this.minutes)||this.setProperties({hours:null,minutes:null})}get minimumTime(){if(this.relativeDate)return this.date?this.date.isSame(this.relativeDate,"day")?60*this.relativeDate.hours()+this.relativeDate.minutes():0:60*this.relativeDate.hours()+this.relativeDate.minutes()}static #e=(()=>dt7948.n(this.prototype,"minimumTime",[(0,s.computed)("relativeDate","date")]))();get timeOptions(){let e=[],t=this.minimumTime?this.minimumTime>this.time?this.time:this.minimumTime:0,n=0,i=t;for(e.push(i);n<95&&!((i+=this.minimumTime?n<=3?15:30:15)>1440);)e.push(i),n++;return this.time&&!e.includes(this.time)&&(e=[this.time].concat(e)),(e=e.sort((e,t)=>e-t)).map(e=>{let t,n=function(e){let t=u(e);return`${t.hours.toString().padStart(2,"0")}:${t.minutes.toString().padStart(2,"0")}`}(e);if(this.date&&this.relativeDate){let i=this.date.clone().startOf("day").add(e,"minutes").diff(this.relativeDate,"minutes");i<1440&&(t=(0,r.htmlSafe)(`${n} (${function(e){let t=u(e),n="";return t.hours?(n=`${t.hours}h`,t.minutes>0&&(n=`${n} ${t.minutes} min`)):n=`${t.minutes} min`,n}(i)})`))}return{id:e,name:n,label:t,title:n}})}static #n=(()=>dt7948.n(this.prototype,"timeOptions",[(0,s.computed)("minimumTime","hours","minutes")]))();get time(){if((0,o.isPresent)(this.hours)&&(0,o.isPresent)(this.minutes))return 60*parseInt(this.hours,10)+parseInt(this.minutes,10)}static #i=(()=>dt7948.n(this.prototype,"time",[(0,s.computed)("minimumTime","hours","minutes")]))();onFocusIn(e,t){e&&t.target&&t.target.select()}static #l=(()=>dt7948.n(this.prototype,"onFocusIn",[s.action]))();onChangeTime(e){if((0,o.isPresent)(e)&&this.onChange){if("string"==typeof e&&e.length){let[t,n]=e.split(":");t&&n&&(t<0&&(t=0),t>23&&(t=23),n<0&&(n=0),n>59&&(n=59),this.onChange({hours:parseInt(t,10),minutes:parseInt(n,10)}))}else this.onChange({hours:u(e).hours,minutes:u(e).minutes})}}static #u=(()=>dt7948.n(this.prototype,"onChangeTime",[s.action]))()},[(0,a.classNames)("d-time-input")]),d=(0,i.setComponentTemplate)(l,c)},17332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(76417),s=n(70001),r=n(5938),o=n(93223),a=n(9630),l=n(32644),u=n(90069),c=n(62797),d=n(51969);let p=(0,n(82739).createTemplateFactory)({id:"BkOHBLFk",block:'[[[8,[39,0],null,[["@activeTile"],[[30,0,["selectedShortcut"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["options"]]],null]],null],"id",[[[41,[51,[30,2,["hidden"]]],[[[1," "],[8,[39,4],null,[["@tileId","@activeTile","@onChange"],[[30,2,["id"]],[30,1,["activeTile"]],[28,[37,5],[[30,0],"selectShortcut"],null]]],[["default"],[[[[1,"\\n\\n "],[10,0],[14,0,"tap-tile-title"],[12],[1,[28,[35,7],[[30,2,["label"]]],null]],[13],[1,"\\n "],[10,0],[14,0,"tap-tile-date"],[12],[1,[30,2,["timeFormatted"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["isCustomTimeShortcut"]],[[[41,[30,0,["customDatetimeSelected"]],[[[1," "],[10,0],[14,0,"control-group custom-date-time-wrap custom-input-wrap"],[12],[1,"\\n "],[10,0],[14,0,"tap-tile-date-input"],[12],[1,"\\n "],[1,[28,[35,9],["calendar-days"],null]],[1,"\\n "],[8,[39,10],null,[["@value","@defaultDate","@onSelect","@id"],[[30,0,["customDate"]],[30,0,["defaultCustomDate"]],[28,[37,11],[[28,[37,12],[[30,0,["customDate"]]],null]],null],"custom-date"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"tap-tile-time-input"],[12],[1,"\\n "],[1,[28,[35,9],["far-clock"],null]],[1,"\\n "],[8,[39,13],[[24,"placeholder","--:--"],[24,1,"custom-time"],[24,0,"time-input"]],[["@type","@value"],["time",[30,0,["customTime"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"control-group custom-date-time-wrap custom-relative-wrap"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark-relative-time-picker"],[12],[1,"\\n "],[1,[28,[35,7],["relative_time_picker.relative"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[39,15],[[24,1,"bookmark-relative-time-picker"]],[["@durationMinutes","@onChange"],[[30,0,["selectedDurationMins"]],[30,0,["relativeTimeChanged"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[2]],null]],[1]]]]]],["grid","option"],false,["tap-tile-grid","each","-track-array","unless","tap-tile","action","div","i18n","if","d-icon","date-picker-future","fn","mut","input","label","relative-time-picker"]]',moduleName:"discourse/components/time-shortcut-picker.hbs",isStrictMode:!1}),h={"l t":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.LATER_TODAY]},"l w":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]},"n d":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.TOMORROW]},"n b w":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.START_OF_NEXT_BUSINESS_WEEK]},"n m":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.NEXT_MONTH]},"c r":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.CUSTOM]},"n r":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.NONE]}},m=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"customDatetimeSelected",[(0,r.equal)("selectedShortcut",l.TIME_SHORTCUT_TYPES.CUSTOM)]))();#op=(()=>void dt7948.i(this,"customDatetimeSelected"))();static #n=(()=>dt7948.g(this.prototype,"relativeTimeSelected",[(0,r.equal)("selectedShortcut",l.TIME_SHORTCUT_TYPES.RELATIVE)]))();#oh=(()=>void dt7948.i(this,"relativeTimeSelected"))();static #i=(()=>dt7948.g(this.prototype,"customDatetimeFilled",[(0,r.and)("customDate","customTime")]))();#om=(()=>void dt7948.i(this,"customDatetimeFilled"))();userTimezone=null;onTimeSelected=null;selectedShortcut=null;selectedTime=null;selectedDate=null;selectedDatetime=null;prefilledDatetime=null;selectedDurationMins=null;hiddenOptions=null;customOptions=null;lastCustomDate=null;lastCustomTime=null;parsedLastCustomDatetime=null;customDate=null;customTime=null;_itsatrap=null;_setupPicker(){this.setProperties({userTimezone:this.currentUser.user_option.timezone,hiddenOptions:this.hiddenOptions||[],customOptions:this.customOptions||[],customLabels:this.customLabels||{}}),this.prefilledDatetime&&this.parsePrefilledDatetime(),this._bindKeyboardShortcuts()}static #l=(()=>dt7948.n(this.prototype,"_setupPicker",[(0,a.on)("init")]))();prefilledDatetimeChanged(){this.prefilledDatetime?this.parsePrefilledDatetime():this.setProperties({customDate:null,customTime:null,selectedShortcut:null})}static #u=(()=>dt7948.n(this.prototype,"prefilledDatetimeChanged",[(0,a.observes)("prefilledDatetime")]))();willDestroyElement(){super.willDestroyElement(...arguments),this._itsatrap.unbind(Object.keys(h))}parsePrefilledDatetime(){let e=(0,u.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone);if(e.isSame((0,u.laterToday)()))return this.set("selectedShortcut",l.TIME_SHORTCUT_TYPES.LATER_TODAY);this.setProperties({customDate:e.format("YYYY-MM-DD"),customTime:e.format("HH:mm"),selectedShortcut:l.TIME_SHORTCUT_TYPES.CUSTOM})}_loadLastUsedCustomDatetime(){let e=this.keyValueStore.lastCustomTime,t=this.keyValueStore.lastCustomDate;if(e&&t){let n=(0,u.parseCustomDatetime)(t,e,this.userTimezone);if(!n.isValid()||n<(0,u.now)(this.userTimezone))return;this.setProperties({lastCustomDate:t,lastCustomTime:e,parsedLastCustomDatetime:n})}}_bindKeyboardShortcuts(){Object.keys(h).forEach(e=>{this._itsatrap.bind(e,()=>{let t=h[e];return this.send(t.handler,...t.args),!1})})}customDatetimeChanged(){this.customDatetimeFilled&&this.selectShortcut(l.TIME_SHORTCUT_TYPES.CUSTOM)}static #c=(()=>dt7948.n(this.prototype,"customDatetimeChanged",[(0,a.observes)("customDate","customTime")]))();options(e,t,n,i){let s;this._loadLastUsedCustomDatetime(),s=e&&e.length?e:(0,l.defaultTimeShortcuts)(i),s=(0,l.hideDynamicTimeShortcuts)(s,i,this.siteSettings);let r=(0,l.specialShortcutOptions)();if(this.lastCustomDate&&this.lastCustomTime){let e=r.findBy("id",l.TIME_SHORTCUT_TYPES.LAST_CUSTOM);e.time=this.parsedLastCustomDatetime,e.timeFormatKey="dates.long_no_year",e.hidden=!1}return s=s.concat(r),t.length>0&&s.forEach(e=>{t.includes(e.id)&&(e.hidden=!0)}),this._applyCustomLabels(s,n),s.forEach(e=>e.timeFormatted=(0,l.formatTime)(e)),s}static #d=(()=>dt7948.n(this.prototype,"options",[(0,c.default)("timeShortcuts","hiddenOptions","customLabels","userTimezone")]))();relativeTimeChanged(e){let t=(0,u.now)(this.userTimezone).add(e,"minutes");this.setProperties({selectedDurationMins:e,selectedDatetime:t}),this.onTimeSelected?.(l.TIME_SHORTCUT_TYPES.RELATIVE,t)}static #p=(()=>dt7948.n(this.prototype,"relativeTimeChanged",[s.action]))();selectShortcut(e){if(this.options.filterBy("hidden").mapBy("id").includes(e))return;let t=null;if(e===l.TIME_SHORTCUT_TYPES.CUSTOM){let e=this._defaultCustomDateTime();this.set("customDate",this.customDate||e.format("YYYY-MM-DD")),this.set("customTime",this.customTime||e.format("HH:mm"));let n=(0,u.parseCustomDatetime)(this.customDate,this.customTime,this.userTimezone);n.isValid()&&this.customDate&&(t=n,this.keyValueStore.lastCustomTime=this.customTime,this.keyValueStore.lastCustomDate=this.customDate)}else t=this.options.findBy("id",e).time;this.setProperties({selectedShortcut:e,selectedDatetime:t}),this.onTimeSelected&&this.onTimeSelected(e,t)}static #h=(()=>dt7948.n(this.prototype,"selectShortcut",[s.action]))();_applyCustomLabels(e,t){e.forEach(e=>{t[e.id]&&(e.label=t[e.id])})}_formatTime(e){e.forEach(e=>{e.time&&e.timeFormatKey&&(e.timeFormatted=e.time.format((0,d.i18n)(e.timeFormatKey)))})}_defaultCustomDateTime(){return moment.tz(this.userTimezone).add(1,"hour")}},[(0,o.tagName)("")]),g=(0,i.setComponentTemplate)(p,m)},93107:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"xOCit7W1",block:'[[[8,[39,0],[[24,0,"btn-transparent toggle-password-mask"]],[["@action","@icon","@title"],[[30,1],[52,[30,2],"far-eye","far-eye-slash"],[52,[30,2],"login.show_password_title","login.hide_password_title"]]],null]],["@togglePasswordMask","@maskPassword"],false,["d-button","if"]]',moduleName:"discourse/components/toggle-password-mask.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"toggle-password-mask"))},25073:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){return[{id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")},{id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}]}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){switch(e){case"edit":this.editSecondFactor(this.totp);break;case"disable":this.disableSingleSecondFactor(this.totp)}}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("token-based-auth-dropdown")])},70816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(70001),r=n(93223),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"k1TABCMA",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["periods"]]],null]],null],null,[[[1," "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["changePeriod"]],[30,1]],null],[28,[37,4],[[30,1]],null]]],null],[1,"\\n"]],[1]],null]],["p"],false,["each","-track-array","d-button","fn","period-title"]]',moduleName:"discourse/components/top-period-buttons.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{periods(e){return this.site.get("periods").filter(t=>t!==e)}static #e=(()=>dt7948.n(this.prototype,"periods",[(0,o.default)("period")]))();changePeriod(e){this.action(e)}static #n=(()=>dt7948.n(this.prototype,"changePeriod",[s.action]))()},[(0,r.classNames)("top-title-buttons")]),u=(0,i.setComponentTemplate)(a,l)},9164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(64151),l=n(92976),u=n(85052),c=n(27147),d=n(21237),p=n(87389),h=n(99676),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"adminTopicMenuButtons",[o.service]))();#og=(()=>void dt7948.i(this,"adminTopicMenuButtons"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();onRegisterApi(e){this.dMenu=e}static #i=(()=>dt7948.n(this.prototype,"onRegisterApi",[r.action]))();async onButtonAction(e){await this.dMenu.close(),this.args[e]?.()}static #l=(()=>dt7948.n(this.prototype,"onButtonAction",[r.action]))();async onExtraButtonAction(e){await this.dMenu.close(),e?.()}static #u=(()=>dt7948.n(this.prototype,"onExtraButtonAction",[r.action]))();get extraButtons(){return this.adminTopicMenuButtons.callbacks.map(e=>e(this.args.topic)).filter(Boolean)}get details(){return this.args.topic.get("details")}get isPrivateMessage(){return this.args.topic.get("isPrivateMessage")}get featured(){return!!this.args.topic.get("pinned_at")||this.args.topic.get("isBanner")}get visible(){return this.args.topic.get("visible")}get canDelete(){return this.details.get("can_delete")}get canRecover(){return this.details.get("can_recover")}get archived(){return this.args.topic.get("archived")}get topicModerationHistoryUrl(){return(0,p.default)(`/review?topic_id=${this.args.topic.id}&status=all`)}get showAdminButton(){return this.currentUser?.canManageTopic||this.details?.can_archive_topic||this.details?.can_close_topic||this.details?.can_split_merge_topic}static #c=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"usevtWUl",block:'[[[1,"\\n"],[41,[30,0,["showAdminButton"]],[[[1," "],[8,[32,0],null,[["@identifier","@onRegisterApi","@modalForMobile","@autofocus","@triggerClass"],["topic-admin-menu",[30,0,["onRegisterApi"]],true,true,"btn-default btn-icon toggle-admin-menu"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,1],["wrench"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","canManageTopic"]],[30,0,["details","can_split_merge_topic"]]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-multi-select"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.multi_select",[28,[32,5],[[30,0,["onButtonAction"]],"toggleMultiSelect"],null],"list-check"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","canManageTopic"]],[30,0,["details","can_moderate_category"]]],null],[[[41,[30,0,["canDelete"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-delete"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],[[24,0,"popup-menu-btn-danger btn-danger"]],[["@label","@action","@icon"],["topic.actions.delete",[28,[32,5],[[30,0,["onButtonAction"]],"deleteTopic"],null],"trash-can"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["canRecover"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-recover"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.recover",[28,[32,5],[[30,0,["onButtonAction"]],"recoverTopic"],null],"arrow-rotate-left"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["details","can_close_topic"]],[[[1," "],[8,[30,1,["item"]],[[16,0,[52,[30,2,["closed"]],"topic-admin-open","topic-admin-close"]]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,2,["closed"]],"topic.actions.open","topic.actions.close"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleClosed"],null],[52,[30,2,["closed"]],"unlock","lock"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_pin_unpin_topic"]],[28,[32,7],[[30,0,["isPrivateMessage"]]],null],[28,[32,3],[[30,0,["visible"]],[30,0,["featured"]]],null]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-pin"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["featured"]],"topic.actions.unpin","topic.actions.pin"],[28,[32,5],[[30,0,["onButtonAction"]],"showFeatureTopic"],null],"thumbtack"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_archive_topic"]],[28,[32,7],[[30,0,["isPrivateMessage"]]],null]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-archive"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["archived"]],"topic.actions.unarchive","topic.actions.archive"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleArchived"],null],"folder"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["details","can_toggle_topic_visibility"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-visible"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["visible"]],"topic.actions.invisible","topic.actions.visible"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleVisibility"],null],[52,[30,0,["visible"]],"far-eye-slash","far-eye"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,0,["details","can_convert_topic"]]],null],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-convert"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,0,["isPrivateMessage"]],"topic.actions.make_public","topic.actions.make_private"],[28,[32,5],[[30,0,["onButtonAction"]],[52,[30,0,["isPrivateMessage"]],"convertToPublicTopic","convertToPrivateMessage"]],null],[52,[30,0,["isPrivateMessage"]],"comment","envelope"]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","canManageTopic"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"admin-topic-timer-update"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.timed_update",[28,[32,5],[[30,0,["onButtonAction"]],"showTopicTimerModal"],null],"far-clock"]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-change-timestamp"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.change_timestamp.title",[28,[32,5],[[30,0,["onButtonAction"]],"showChangeTimestamp"],null],"calendar-days"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["item"]],[[24,0,"topic-admin-reset-bump-date"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.reset_bump_date",[28,[32,5],[[30,0,["onButtonAction"]],"resetBumpDate"],null],"anchor"]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,1,["item"]],[[24,0,"topic-admin-slow-mode"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],["topic.actions.slow_mode",[28,[32,5],[[30,0,["onButtonAction"]],"showTopicSlowModeUpdate"],null],"hourglass-start"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["currentUser","staff"]],[30,0,["extraButtons","length"]]],null],[[[1," "],[8,[30,1,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,1,["item"]],[[24,0,"topic-admin-moderation-history"]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@href","@icon"],["review.moderation_history",[30,0,["topicModerationHistoryUrl"]],"list"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraButtons"]]],null]],null],null,[[[1," "],[8,[30,1,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,8],["btn-transparent",[30,3,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,3,["label"]],[30,3,["translatedLabel"]],[30,3,["icon"]],[28,[32,5],[[30,0,["onExtraButtonAction"]],[30,3,["action"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null]],[]],null],[1," "]],[1]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["dropdown","@topic","button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-admin-menu.js",scope:()=>[h.default,d.default,u.default,a.or,l.default,s.fn,a.and,a.not,c.default],isStrictMode:!0}),this))()}},54965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"AtLtWbj9",block:'[[[41,[51,[30,0,["topic","isPrivateMessage"]]],[[[1," "],[1,[28,[35,1],[[30,0,["topic","category"]]],[["ancestors","hideParent"],[[30,0,["topic","category","predecessors"]],true]]]],[1,"\\n"]],[]],null],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[1,[28,[35,4],[[30,0,["topic"]]],[["mode","tags"],["list",[30,0,["topic","tags"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[1,[28,[35,5],[[30,0,["topic"]]],null]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["topic-category","div",[28,[37,8],null,[["topic","category"],[[30,0,["topic"]],[30,0,["topic","category"]]]]]]],null],[1,"\\n"],[13]],[],false,["unless","bound-category-link","div","if","discourse-tags","topic-featured-link","span","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-category.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},36430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(70001),r=n(54729),o=n(92976),a=n(19362),l=n(51969),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();get showBasedOnPosition(){return"top"===this.args.position||this.args.model.topics.length>5}get dismissLabel(){return 0===this.args.selectedTopics.length?(0,l.i18n)("topics.bulk.dismiss_button"):(0,l.i18n)("topics.bulk.dismiss_button_with_selected",{count:this.args.selectedTopics.length})}get dismissNewLabel(){return this.currentUser?.new_new_view_enabled?(0,l.i18n)("topics.bulk.dismiss_button"):0===this.args.selectedTopics.length?(0,l.i18n)("topics.bulk.dismiss_new"):(0,l.i18n)("topics.bulk.dismiss_new_with_selected",{count:this.args.selectedTopics.length})}dismissReadPosts(){this.modal.show(a.default,{model:{title:this.args.selectedTopics.length?"topics.bulk.dismiss_read_with_selected":"topics.bulk.dismiss_read",count:this.args.selectedTopics.length,dismissRead:this.args.dismissRead}})}static #i=(()=>dt7948.n(this.prototype,"dismissReadPosts",[s.action]))();static #l=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"Vh0Unk3g",block:'[[[41,[30,0,["showBasedOnPosition"]],[[[10,0],[15,0,[29,["row dismiss-container-",[30,1]]]],[12],[41,[30,2],[[[8,[32,0],[[16,1,[29,["dismiss-topics-",[30,1]]]],[24,0,"btn-default dismiss-read"]],[["@action","@translatedLabel","@title"],[[30,0,["dismissReadPosts"]],[30,0,["dismissLabel"]],"topics.bulk.dismiss_tooltip"]],null]],[]],null],[41,[30,3],[[[8,[32,0],[[16,1,[29,["dismiss-new-",[30,1]]]],[24,0,"btn-default dismiss-read"]],[["@action","@translatedLabel","@icon"],[[30,4],[30,0,["dismissNewLabel"]],"check"]],null]],[]],null],[13]],[]],null]],["@position","@showDismissRead","@showResetNew","@resetNew"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-dismiss-buttons.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},87472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(76417),s=n(70001),r=n(42433),o=n(54729),a=n(93223),l=n(9630),u=n(14682),c=n.n(u),d=n(56839),p=n(62797),h=n(51969);let m=(0,n(82739).createTemplateFactory)({id:"6Uf1+cxU",block:'[[[8,[39,0],[[16,"title",[28,[37,1],["topic_entrance.jump_top_button_title"],null]],[24,0,"btn-default full jump-top"]],[["@action","@translatedAriaLabel"],[[28,[37,2],[[30,0],"enterTop"],null],[28,[37,1],["topic_entrance.sr_jump_top_button"],[["date"],[[30,0,["topDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],["backward-step"],null]],[1,"\\n "],[1,[28,[35,4],[[30,0,["topDate"]]],null]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],[[16,"title",[28,[37,1],["topic_entrance.jump_bottom_button_title"],null]],[24,0,"btn-default full jump-bottom"]],[["@action","@translatedAriaLabel"],[[28,[37,2],[[30,0],"enterBottom"],null],[28,[37,1],["topic_entrance.sr_jump_bottom_button"],[["date"],[[30,0,["bottomDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],[[30,0,["bottomDate"]]],null]],[1,"\\n "],[1,[28,[35,3],["forward-step"],null]],[1,"\\n"]],[]]]]]],[],false,["d-button","i18n","action","d-icon","html-safe"]]',moduleName:"discourse/components/topic-entrance.hbs",isStrictMode:!1});function g(e,t){let n=new Date;return e.toDateString()===n.toDateString()?moment(e).format((0,h.i18n)("dates.time")):e.getYear()===n.getYear()?moment(e).format(t?(0,h.i18n)("dates.long_date_without_year_with_linebreak"):(0,h.i18n)("dates.long_no_year_no_time")):moment(e).format(t?(0,h.i18n)("dates.long_date_with_year_with_linebreak"):(0,h.i18n)("dates.long_date_with_year_without_time"))}let f=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"historyStore",[o.service]))();#tv=(()=>void dt7948.i(this,"historyStore"))();elementId="topic-entrance";topic=null;visible=null;_position=null;_originalActiveElement=null;_activeButton=null;createdDate(e){return new Date(e)}static #l=(()=>dt7948.n(this.prototype,"createdDate",[(0,p.default)("topic.created_at")]))();bumpedDate(e){return new Date(e)}static #u=(()=>dt7948.n(this.prototype,"bumpedDate",[(0,p.default)("topic.bumped_at")]))();showTime(e,t){return t.getTime()-e.getTime()<1728e5}static #c=(()=>dt7948.n(this.prototype,"showTime",[(0,p.default)("createdDate","bumpedDate")]))();topDate(e,t){return g(e,t)}static #d=(()=>dt7948.n(this.prototype,"topDate",[(0,p.default)("createdDate","showTime")]))();bottomDate(e,t){return g(e,t)}static #p=(()=>dt7948.n(this.prototype,"bottomDate",[(0,p.default)("bumpedDate","showTime")]))();_inserted(){this.appEvents.on("topic-entrance:show",this,"_show"),this.appEvents.on("dom:clean",this,this.cleanUp)}static #h=(()=>dt7948.n(this.prototype,"_inserted",[(0,l.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this.cleanUp)}static #m=(()=>dt7948.n(this.prototype,"_destroyed",[(0,l.on)("didDestroyElement")]))();_setCSS(){let e=this._position,t=c()(this.element),n=t.width(),i=t.height();e.left=parseInt(e.left,10)-n/2,e.top=parseInt(e.top,10)-i/2;let s=c()(window).width();e.left+n>s&&(e.left=s-n-15),t.css(e)}_escListener(e){"Escape"===e.key?this.cleanUp():"Tab"===e.key&&("top"===this._activeButton?(this._jumpBottomButton().focus(),this._activeButton="bottom",e.preventDefault()):"bottom"===this._activeButton&&(this._jumpTopButton().focus(),this._activeButton="top",e.preventDefault()))}static #g=(()=>dt7948.n(this.prototype,"_escListener",[p.bind]))();_jumpTopButton(){return this.element.querySelector(".jump-top")}_jumpBottomButton(){return this.element.querySelector(".jump-bottom")}_setupEscListener(){document.body.addEventListener("keydown",this._escListener)}_removeEscListener(){document.body.removeEventListener("keydown",this._escListener)}_trapFocus(){this._originalActiveElement=document.activeElement,this._jumpTopButton().focus(),this._activeButton="top"}_releaseFocus(){this._originalActiveElement&&(this._originalActiveElement.focus(),this._originalActiveElement=null)}_applyDomChanges(){this._setCSS(),this._setupEscListener(),this._trapFocus()}_show(e){this._position=e.position,this.setProperties({topic:e.topic,visible:!0}),(0,r.scheduleOnce)("afterRender",this,this._applyDomChanges),c()("html").off("mousedown.topic-entrance").on("mousedown.topic-entrance",e=>{let t=c()(e.target);"topic-entrance"!==t.prop("id")&&0===c()(this.element).has(t).length&&this.cleanUp()})}cleanUp(){this.setProperties({topic:null,visible:!1}),c()("html").off("mousedown.topic-entrance"),this._removeEscListener(),this._releaseFocus()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("topic-entrance:show",this,"_show")}_jumpTo(e){this.historyStore.set("lastTopicIdViewed",this.topic.id),this.cleanUp(),d.default.routeTo(e)}enterTop(){this._jumpTo(this.get("topic.url"))}static #E=(()=>dt7948.n(this.prototype,"enterTop",[s.action]))();enterBottom(){this._jumpTo(this.get("topic.lastPostUrl"))}static #A=(()=>dt7948.n(this.prototype,"enterBottom",[s.action]))()},[(0,a.classNameBindings)("visible::hidden")]),_=(0,i.setComponentTemplate)(m,f)},58894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(76417),s=n(70001),r=n(5938),o=n(71597),a=n(93223),l=n(18523),u=n(98860),c=n(30945),d=n(66736),p=n(62797);let h=(0,n(82739).createTemplateFactory)({id:"cXp+4oJy",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n "],[10,0],[14,0,"topic-footer-main-buttons__actions"],[12],[1,"\\n "],[8,[39,1],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleFeaturedOnProfile","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["topic"]],[30,0,["toggleMultiSelect"]],[30,0,["showTopicSlowModeUpdate"]],[30,0,["deleteTopic"]],[30,0,["recoverTopic"]],[30,0,["toggleFeaturedOnProfile"]],[30,0,["toggleClosed"]],[30,0,["toggleArchived"]],[30,0,["toggleVisibility"]],[30,0,["showTopicTimerModal"]],[30,0,["showFeatureTopic"]],[30,0,["showChangeTimestamp"]],[30,0,["resetBumpDate"]],[30,0,["convertToPublicTopic"]],[30,0,["convertToPrivateMessage"]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["inlineActionables"]]],null]],null],null,[[[41,[28,[37,5],[[30,1,["type"]],"inline-button"],null],[[[41,[28,[37,5],[[30,1,["id"]],"bookmark"],null],[[[1," "],[8,[39,6],null,[["@showLabel","@bookmarkManager","@buttonClasses"],[[30,0,["showBookmarkLabel"]],[30,0,["topicBookmarkManager"]],"btn-default"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[39,10],[[16,0,[28,[37,9],["topic-footer-dropdown",[30,1,["classNames"]]],null]]],[["@id","@value","@content","@onChange","@options"],[[28,[37,8],["topic-footer-dropdown-",[30,1,["id"]]],null],[30,1,["value"]],[30,1,["content"]],[28,[37,11],[[30,0],[30,1,["action"]]],null],[28,[37,12],null,[["icon","none","disabled"],[[30,1,["icon"]],[30,1,["noneItem"]],[30,1,["disabled"]]]]]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["loneDropdownButton"]],[[[1," "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,0,["loneDropdownButton","id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,0,["loneDropdownButton","classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,0,["loneDropdownButton","action"]],[30,0,["loneDropdownButton","icon"]],[30,0,["loneDropdownButton","label"]],[30,0,["loneDropdownButton","title"]],[30,0,["loneDropdownButton","ariaLabel"]],[30,0,["loneDropdownButton","disabled"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,13],[[30,0,["dropdownButtons","length"]],1],null],[[[1," "],[8,[39,14],null,[["@modalForMobile","@identifier"],[true,"topic-footer-mobile-dropdown"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[35,16],["ellipsis-vertical"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[39,18],null,null,[["default"],[[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["dropdownButtons"]]],null]],null],null,[[[1," "],[8,[30,2,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[39,7],[[16,1,[28,[37,8],["topic-footer-button-",[30,3,["id"]]],null]],[16,0,[28,[37,9],["btn-default","topic-footer-button",[30,3,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,3,["action"]],[30,3,["icon"]],[30,3,["label"]],[30,3,["title"]],[30,3,["ariaLabel"]],[30,3,["disabled"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],null],[1," "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[8,[39,19],null,[["@pinned","@topic","@appendReason"],[[30,0,["topic","pinned"]],[30,0,["topic"]],false]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[1," "],[8,[39,20],null,[["@topic","@appendReason"],[[30,0,["topic"]],false]],null],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["topic-footer-main-buttons-before-create",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n\\n"],[41,[30,0,["topic","details","can_create_post"]],[[[1," "],[8,[39,7],[[24,0,"btn-primary create"]],[["@icon","@action","@label","@title"],["reply",[30,0,["replyToPost"]],"topic.reply.title","topic.reply.help"]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-main-buttons",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["site","desktopView"]],[[[1," "],[8,[39,19],null,[["@pinned","@topic","@appendReason"],[[30,0,["topic","pinned"]],[30,0,["topic"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[1," "],[8,[39,20],[[24,0,"notifications-button-footer"]],[["@topic","@expanded"],[[30,0,["topic"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationUserTip"]],[[[1," "],[8,[39,22],null,[["@id","@triggerSelector","@titleText","@contentText","@priority"],["topic_notification_levels",".notifications-button-footer details",[28,[37,23],["user_tips.topic_notification_levels.title"],null],[28,[37,23],["user_tips.topic_notification_levels.content"],null],800]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[8,[39,21],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-buttons",[28,[37,12],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null]],["actionable","dropdown","button"],false,["div","topic-admin-menu","each","-track-array","if","eq","bookmark-menu","d-button","concat","concat-class","dropdown-select-box","action","hash","gt","d-menu",":trigger","d-icon",":content","dropdown-menu","pinned-button","topic-notifications-button","plugin-outlet","user-tip","i18n"]]',moduleName:"discourse/components/topic-footer-buttons.hbs",isStrictMode:!1}),m=dt7948.c(class extends i.default{elementId="topic-footer-buttons";role="region";static #e=(()=>dt7948.g(this.prototype,"inlineButtons",[(0,u.getTopicFooterButtons)()]))();#of=(()=>void dt7948.i(this,"inlineButtons"))();static #n=(()=>dt7948.g(this.prototype,"inlineDropdowns",[(0,c.getTopicFooterDropdowns)()]))();#o_=(()=>void dt7948.i(this,"inlineDropdowns"))();static #i=(()=>dt7948.g(this.prototype,"canSendPms",[(0,r.alias)("currentUser.can_send_private_messages")]))();#oy=(()=>void dt7948.i(this,"canSendPms"))();static #l=(()=>dt7948.g(this.prototype,"canInviteTo",[(0,r.alias)("topic.details.can_invite_to")]))();#ob=(()=>void dt7948.i(this,"canInviteTo"))();static #u=(()=>dt7948.g(this.prototype,"canDefer",[(0,r.alias)("currentUser.user_option.enable_defer")]))();#ov=(()=>void dt7948.i(this,"canDefer"))();static #c=(()=>dt7948.g(this.prototype,"inviteDisabled",[(0,r.or)("topic.archived","topic.closed","topic.deleted")]))();#ow=(()=>void dt7948.i(this,"inviteDisabled"))();canArchive(e,t){return e&&t}static #d=(()=>dt7948.n(this.prototype,"canArchive",[(0,p.default)("canSendPms","topic.isPrivateMessage")]))();get inlineActionables(){return this.inlineButtons.filterBy("dropdown",!1).filterBy("anonymousOnly",!1).concat(this.inlineDropdowns).sortBy("priority").reverse()}static #p=(()=>dt7948.n(this.prototype,"inlineActionables",[(0,s.computed)("inlineButtons.[]","inlineDropdowns.[]")]))();get topicBookmarkManager(){return new d.default((0,o.getOwner)(this),this.topic)}static #h=(()=>dt7948.n(this.prototype,"topicBookmarkManager",[(0,s.computed)("topic")]))();dropdownButtons(e){return e.filter(e=>e.dropdown)}static #m=(()=>dt7948.n(this.prototype,"dropdownButtons",[(0,p.default)("inlineButtons.[]","topic.assigned_to_user")]))();loneDropdownButton(e){return 1===e.length?e[0]:null}static #g=(()=>dt7948.n(this.prototype,"loneDropdownButton",[(0,p.default)("dropdownButtons.[]")]))();showNotificationsButton(e){return!e||this.canSendPms}static #E=(()=>dt7948.n(this.prototype,"showNotificationsButton",[(0,p.default)("topic.isPrivateMessage")]))();showNotificationUserTip(e){return e>=l.NotificationLevels.TRACKING}static #A=(()=>dt7948.n(this.prototype,"showNotificationUserTip",[(0,p.default)("topic.details.notification_level")]))();archiveIcon(e){return e?"envelope":"folder"}static #D=(()=>dt7948.n(this.prototype,"archiveIcon",[(0,p.default)("topic.message_archived")]))();archiveTitle(e){return e?"topic.move_to_inbox.help":"topic.archive_message.help"}static #I=(()=>dt7948.n(this.prototype,"archiveTitle",[(0,p.default)("topic.message_archived")]))();archiveLabel(e){return e?"topic.move_to_inbox.title":"topic.archive_message.title"}static #G=(()=>dt7948.n(this.prototype,"archiveLabel",[(0,p.default)("topic.message_archived")]))();showBookmarkLabel(e){return!e}static #Y=(()=>dt7948.n(this.prototype,"showBookmarkLabel",[(0,p.default)("topic.isPrivateMessage")]))()},[(0,a.attributeBindings)("role")]),g=(0,i.setComponentTemplate)(h,m)},82237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C,navigateToTopic:()=>T,showEntrance:()=>x});var i=n(76417),s=n(5938),r=n(71597),o=n(42433),a=n(54729),l=n(35804),u=n(93223),c=n(9630),d=n(14682),p=n.n(d),h=n(96487),m=n(3737),g=n(56839),f=n(54216),_=n(7380),y=n(37441),b=n(62797),w=n(51969);let k=(0,n(82739).createTemplateFactory)({id:"r8eDUZIW",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["above-topic-list-item",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[1,[30,0,["topicListItemContents"]]]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/topic-list-item.hbs",isStrictMode:!1});function x(e){let t=p()(e.target);if(t.hasClass("posts-map")||t.parents(".posts-map").length>0)return"A"!==t.prop("tagName")&&0===(t=t.find("a")).length&&(t=t.end()),this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:t.offset()}),!1}function T(e,t){return(0,r.getOwner)(this).lookup("service:history-store").set("lastTopicIdViewed",e.id),g.default.routeTo(t||e.get("url")),!1}let S=dt7948.c(class extends i.default{static reopen(){return(0,f.default)("Modifying topic-list-item with `reopen` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"}),super.reopen(...arguments)}static reopenClass(){return(0,f.default)("Modifying topic-list-item with `reopenClass` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"}),super.reopenClass(...arguments)}static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"historyStore",[a.service]))();#tv=(()=>void dt7948.i(this,"historyStore"))();static #i=(()=>dt7948.g(this.prototype,"dataTopicId",[(0,s.alias)("topic.id")]))();#ok=(()=>void dt7948.i(this,"dataTopicId"))();didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.renderTopicListItem()}topicHighlightChanged(){this.topic.highlight&&this._highlightIfNeeded()}static #l=(()=>dt7948.n(this.prototype,"topicHighlightChanged",[(0,c.observes)("topic.highlight")]))();renderTopicListItem(){let e=(0,y.findRawTemplate)("list/topic-list-item");e&&(this.set("topicListItemContents",(0,l.htmlSafe)(e(this,_.RUNTIME_OPTIONS))),(0,o.schedule)("afterRender",()=>{if(!this.isDestroyed&&!this.isDestroying&&(this.selected&&this.selected.includes(this.topic)&&(this.element.querySelector("input.bulk-select").checked=!0),this._shouldFocusLastVisited())){let e=this._titleElement();e&&(e.addEventListener("focus",this._onTitleFocus),e.addEventListener("blur",this._onTitleBlur))}}))}static #u=(()=>dt7948.n(this.prototype,"renderTopicListItem",[(0,c.observes)("topic.pinned","expandGloballyPinned","expandAllPinned")]))();didInsertElement(){super.didInsertElement(...arguments),this.includeUnreadIndicator&&this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage),(0,o.schedule)("afterRender",()=>{if(this.element&&!this.isDestroying&&!this.isDestroyed){let e=this.element.querySelector(".raw-topic-link");e&&h.topicTitleDecorators.forEach(t=>t(this.topic,e,"topic-list-item-title"))}})}willDestroyElement(){if(super.willDestroyElement(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage),this._shouldFocusLastVisited()){let e=this._titleElement();e&&(e.removeEventListener("focus",this._onTitleFocus),e.removeEventListener("blur",this._onTitleBlur))}}onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)}static #c=(()=>dt7948.n(this.prototype,"onMessage",[b.bind]))();participantGroups(e){return e?e.map(e=>({name:e,url:(0,g.groupPath)(e)})):[]}static #d=(()=>dt7948.n(this.prototype,"participantGroups",[(0,b.default)("topic.participant_groups")]))();unreadIndicatorChannel(e){return`/private-messages/unread-indicator/${e}`}static #p=(()=>dt7948.n(this.prototype,"unreadIndicatorChannel",[(0,b.default)("topic.id")]))();unreadClass(e){return e?"":"read"}static #h=(()=>dt7948.n(this.prototype,"unreadClass",[(0,b.default)("topic.unread_by_group_member")]))();includeUnreadIndicator(e){return void 0!==e}static #m=(()=>dt7948.n(this.prototype,"includeUnreadIndicator",[(0,b.default)("topic.unread_by_group_member")]))();newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":(0,w.i18n)("filters.new.lower_title")}static #g=(()=>dt7948.n(this.prototype,"newDotText",[b.default]))();unboundClassNames(e,t){let n=[];return e.get("category")&&n.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach(e=>n.push("tag-"+e)),e.get("hasExcerpt")&&n.push("has-excerpt"),e.get("unseen")&&n.push("unseen-topic"),e.unread_posts&&n.push("unread-posts"),["liked","archived","bookmarked","pinned","closed"].forEach(t=>{e.get(t)&&n.push(t)}),e===t&&n.push("last-visit"),n.join(" ")}static #E=(()=>dt7948.n(this.prototype,"unboundClassNames",[(0,b.default)("topic","lastVisitedTopic")]))();hasLikes(){return this.get("topic.like_count")>0}hasOpLikes(){return this.get("topic.op_like_count")>0}expandPinned(){if(!this.get("topic.pinned"))return!1;if(this.site.mobileView){if(!this.siteSettings.show_pinned_excerpt_mobile)return!1}else if(!this.siteSettings.show_pinned_excerpt_desktop)return!1;return!!(this.expandGloballyPinned&&this.get("topic.pinned_globally"))||!!this.expandAllPinned}static #A=(()=>dt7948.n(this.prototype,"expandPinned",[b.default]))();showEntrance(){return x.call(this,...arguments)}click(e){let t=this.showEntrance(e);if(!1===t)return t;let n=this.topic,i=e.target,s=i.classList;if(s.contains("bulk-select")){let t=this.selected;if(i.checked){if(t.addObject(n),this.lastChecked&&e.shiftKey){let e=Array.from(document.querySelectorAll("input.bulk-select")),t=e.indexOf(i),n=e.findIndex(e=>e.id===this.lastChecked.id),s=Math.min(t,n),r=Math.max(t,n);e.slice(s,r).filter(e=>!0!==e.checked).forEach(e=>{e.click()})}this.set("lastChecked",i)}else t.removeObject(n),this.set("lastChecked",null)}return s.contains("raw-topic-link")||s.contains("post-activity")?!!(0,m.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(n,i.getAttribute("href"))):this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")?!!(0,m.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(n,n.lastUnreadUrl)):s.contains("d-icon-thumbtack")&&i.closest("a.topic-status")?(this.topic.togglePinnedForUser(),!1):this.unhandledRowClick(e,n)}unhandledRowClick(){}keyDown(e){if("Enter"===e.key&&e.target.classList.contains("post-activity"))return e.preventDefault(),this.navigateToTopic(this.topic,e.target.getAttribute("href"))}navigateToTopic(){return T.call(this,...arguments)}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLastViewedTopic:!1};(0,o.schedule)("afterRender",()=>{this.element&&!this.isDestroying&&!this.isDestroyed&&(this.element.classList.add("highlighted"),this.element.setAttribute("data-is-last-viewed-topic",e.isLastViewedTopic),this.element.addEventListener("animationend",()=>{this.element.classList.remove("highlighted")}),e.isLastViewedTopic&&this._shouldFocusLastVisited()&&this._titleElement()?.focus())})}_highlightIfNeeded(){this.historyStore.get("lastTopicIdViewed")===this.topic.id?(this.historyStore.delete("lastTopicIdViewed"),this.highlight({isLastViewedTopic:!0})):this.get("topic.highlight")&&(this.set("topic.highlight",!1),this.highlight())}static #D=(()=>dt7948.n(this.prototype,"_highlightIfNeeded",[(0,c.on)("didInsertElement")]))();_onTitleFocus(){!this.element||this.isDestroying||this.isDestroyed||this.element.classList.add("selected")}static #I=(()=>dt7948.n(this.prototype,"_onTitleFocus",[b.bind]))();_onTitleBlur(){!this.element||this.isDestroying||this.isDestroyed||this.element.classList.remove("selected")}static #G=(()=>dt7948.n(this.prototype,"_onTitleBlur",[b.bind]))();_shouldFocusLastVisited(){return this.site.desktopView&&this.focusLastVisitedTopic}_titleElement(){return this.element.querySelector(".main-link .title")}},[(0,u.attributeBindings)("dataTopicId:data-topic-id","role","ariaLevel:aria-level"),(0,u.classNameBindings)(":topic-list-item","unboundClassNames","topic.visited"),(0,u.tagName)("tr")]),C=(0,i.setComponentTemplate)(k,S)},99125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(53067),r=n(5938),o=n(54729),a=n(93223),l=n(9630),u=n(69863),c=n(54216),d=n(62797);let p=(0,n(82739).createTemplateFactory)({id:"kdtDjeii",block:'[[[10,"caption"],[14,0,"sr-only"],[12],[1,[28,[35,1],["sr_topic_list_caption"],null]],[13],[1,"\\n\\n"],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n "],[1,[28,[35,3],["topic-list-header"],[["canBulkSelect","toggleInTitle","hideCategory","showPosters","showLikes","showOpLikes","order","ascending","sortable","listTitle","bulkSelectEnabled","bulkSelectHelper","canDoBulkActions","showTopicsAndRepliesToggle","newListSubset","newRepliesCount","newTopicsCount"],[[30,0,["canBulkSelect"]],[30,0,["toggleInTitle"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["sortable"]],[30,0,["listTitle"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectHelper"]],[30,0,["canDoBulkActions"]],[30,0,["showTopicsAndRepliesToggle"]],[30,0,["newListSubset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[37,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null],[1,"\\n\\n"],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["filteredTopics"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@topic","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@showPosters","@showLikes","@showOpLikes","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@lastChecked","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,0,["lastChecked"]],[30,0,["tagsForUser"]],[30,0,["focusLastVisitedTopic"]],[30,2]]],null],[1,"\\n "],[1,[28,[35,3],["list/visited-line"],[["lastVisitedTopic","topic"],[[30,0,["lastVisitedTopic"]],[30,1]]]]],[1,"\\n "],[8,[39,4],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[37,5],null,[["topic","index"],[[30,1],[30,2]]]],"tr"]],null],[1,"\\n"]],[1,2]],null],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[37,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null]],["topic","index"],false,["caption","i18n","thead","raw","plugin-outlet","hash","tbody","each","-track-array","topic-list-item"]]',moduleName:"discourse/components/topic-list.hbs",isStrictMode:!1}),h=dt7948.c(class extends i.default.extend(u.default){static reopen(){return(0,c.default)("Modifying topic-list with `reopen` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"}),super.reopen(...arguments)}static reopenClass(){return(0,c.default)("Modifying topic-list with `reopenClass` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"}),super.reopenClass(...arguments)}static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();showTopicPostBadges=!0;listTitle="topic.title";lastCheckedElementId=null;static #l=(()=>dt7948.g(this.prototype,"filteredTopics",[(0,r.alias)("topics")]))();#ox=(()=>void dt7948.i(this,"filteredTopics"))();get canDoBulkActions(){return this.currentUser?.canManageTopic&&this.bulkSelectHelper?.selected.length}_init(){this.addObserver("hideCategory",this.rerender),this.addObserver("order",this.rerender),this.addObserver("ascending",this.rerender),this.refreshLastVisited()}static #u=(()=>dt7948.n(this.prototype,"_init",[(0,l.on)("init")]))();get selected(){return this.bulkSelectHelper?.selected}get bulkSelectEnabled(){return this.get("canBulkSelect")&&this.bulkSelectHelper?.bulkSelectEnabled}static #c=(()=>dt7948.n(this.prototype,"bulkSelectEnabled",[s.dependentKeyCompat]))();get toggleInTitle(){return!this.bulkSelectHelper?.bulkSelectEnabled&&this.get("canBulkSelect")}sortable(){return!!this.changeSort}static #d=(()=>dt7948.n(this.prototype,"sortable",[d.default]))();showLikes(e){return"likes"===e}static #p=(()=>dt7948.n(this.prototype,"showLikes",[(0,d.default)("order")]))();showOpLikes(e){return"op_likes"===e}static #h=(()=>dt7948.n(this.prototype,"showOpLikes",[(0,d.default)("order")]))();topicsAdded(){this.lastVisitedTopic||this.refreshLastVisited()}static #m=(()=>dt7948.n(this.prototype,"topicsAdded",[(0,l.observes)("topics.[]")]))();lastVisitedTopicChanged(){this.refreshLastVisited()}static #g=(()=>dt7948.n(this.prototype,"lastVisitedTopicChanged",[(0,l.observes)("topics","order","ascending","category","top","hot")]))();scrolled(){super.scrolled(...arguments);let e=this.onScroll;e&&e.call(this)}_updateLastVisitedTopic(e,t,n,i,s){let r,o,a;if(this.set("lastVisitedTopic",null),!this.highlightLastVisited||t&&"activity"!==t||i||s||!e||1===e.length||n)return;let l=this.currentUser;if(!l||!l.previous_visit_at)return;let u=l.get("previousVisitAt"),c=0;for(;e[c]&&e[c].get("pinned");)c++;for(a=e.length-1;a>=c;a--){if(e[a].get("bumpedAt")>u){r=e[a];break}o=e[a]}!r||!o||o.get("bumpedAt")>u||this.set("lastVisitedTopic",r)}refreshLastVisited(){this._updateLastVisitedTopic(this.topics,this.order,this.ascending,this.top,this.hot)}click(e){let t=(t,n)=>{let i=e.target.closest(t);i&&n(i)};t("button.bulk-select",()=>{this.bulkSelectHelper.toggleBulkSelect(),this.rerender()}),t("button.bulk-select-all",()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}),t("button.bulk-clear-all",()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}),t("th.sortable",e=>{this.changeSort(e.dataset.sortOrder),this.rerender()}),t("button.topics-replies-toggle",e=>{e.classList.contains("--all")?this.changeNewListSubset(null):e.classList.contains("--topics")?this.changeNewListSubset("topics"):e.classList.contains("--replies")&&this.changeNewListSubset("replies"),this.rerender()})}keyDown(e){("Enter"===e.key||" "===e.key)&&((t,n)=>{let i=e.target.closest(t);i&&n.call(this,i)})("th.sortable",t=>{e.preventDefault(),this.changeSort(t.dataset.sortOrder),this.rerender()})}},[(0,a.classNameBindings)("bulkSelectEnabled:sticky-header"),(0,a.classNames)("topic-list"),(0,a.tagName)("table")]),m=(0,i.setComponentTemplate)(p,h)},81535:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(21237),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"b0etsQRf",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[11,0],[24,0,"post-actions"],[17,2],[12],[1,"\\n "],[1,[28,[32,0],[[30,3]],null]],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1," "],[10,3],[15,6,[29,[[30,5,["url"]],"/",[30,4]]]],[12],[1,"#"],[1,[30,4]],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null]],["@postNumbers","&attrs","@icon","postNumber","@topic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/action-list.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"action-list:ActionList"))},93220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(87075),s=n(35804),r=n(65868),o=n(59567),a=n(58143),l=n(3737),u=n(76417),c=n(82739),d=n(88606);let p=function(e){(0,l.wantsNewWindow)(e)?e.stopPropagation():e.preventDefault()},h=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"bnOJTjGW",block:'[[[1,"\\n "],[10,0],[15,"data-topic-id",[30,1,["id"]]],[14,0,"featured-topic --glimmer"],[12],[1,"\\n "],[8,[32,0],null,[["@topic"],[[30,1]]],null],[1,"\\n\\n "],[10,3],[15,6,[30,1,["lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[32,1],[[30,1,["fancyTitle"]]],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@unreadPosts","@unseen","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,1,["lastUnreadUrl"]]]],null],[1,"\\n\\n "],[11,3],[16,6,[30,1,["lastPostUrl"]]],[24,0,"last-posted-at"],[4,[32,3],["click",[32,4]],null],[12],[1,[28,[32,5],[[30,1,["last_posted_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/featured-topic.js",scope:()=>[o.default,s.htmlSafe,r.default,i.on,p,a.default],isStrictMode:!0}),(0,d.default)(void 0,"featured-topic:FeaturedTopic"))},90961:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(83357),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"e0ShBmTH",block:'[[[1,"\\n "],[10,"tr"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[8,[30,2,["value","header"]],null,[["@sortable","@activeOrder","@changeSort","@ascending","@category","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],[[28,[32,0],["topic-list-header-sortable-column",[30,3],[28,[32,1],null,[["category","name"],[[30,4],[30,5]]]]],null],[30,6],[30,7],[30,8],[30,4],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],["@columns","entry","@sortable","@category","@name","@order","@changeSort","@ascending","@listTitle","@bulkSelectEnabled","@toggleInTitle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header.js",scope:()=>[s.applyValueTransformer,i.hash],isStrictMode:!0}),(0,a.default)(void 0,"header:Header"))},75886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"9QgYS1Y0",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","activity",[30,2],[30,3],[30,4],"activity"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/activity-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"activity-cell:ActivityCell"))},85438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(87075),s=n(21237),r=n(51969),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"OPHKh4QR",block:'[[[1,"\\n "],[10,"th"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[11,"button"],[16,"title",[28,[32,0],["topics.bulk.toggle"],null]],[24,0,"btn-flat bulk-select"],[4,[32,1],["click",[30,2,["toggleBulkSelect"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["list-check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@canBulkSelect","@bulkSelectHelper"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/bulk-select-cell.js",scope:()=>[r.i18n,i.on,s.default],isStrictMode:!0}),(0,l.default)(void 0,"bulk-select-cell:BulkSelectCell"))},99623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"kRIR9Sry",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","likes",[30,2],[30,3],[30,4],"likes"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/likes-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"likes-cell:LikesCell"))},36655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"ZMY80UXK",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","op_likes",[30,2],[30,3],[30,4],"likes"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/op-likes-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"op-likes-cell:OpLikesCell"))},76185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(51969),s=n(70299),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"xp7eYsLe",block:'[[[1,"\\n "],[8,[32,0],[[16,"aria-label",[28,[32,1],["category.sort_options.posters"],null]]],[["@order","@activeOrder","@changeSort","@ascending","@name","@screenreaderOnly"],["posters",[30,1],[30,2],[30,3],"posters",true]],null],[1,"\\n"]],["@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/posters-cell.js",scope:()=>[s.default,i.i18n],isStrictMode:!0}),(0,a.default)(void 0,"posters-cell:PostersCell"))},30383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"1okflZmY",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","posts",[30,2],[30,3],[30,4],"replies"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/replies-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"replies-cell:RepliesCell"))},70299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(59874),u=n(64602),c=n(92673),d=n(27147),p=n(21237),h=n(51969),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();get localizedName(){return this.args.forceName?this.args.forceName:this.args.name?(0,h.i18n)(this.args.name):""}get isSorting(){return this.args.sortable&&this.args.order===this.args.activeOrder}get ariaSort(){if(this.isSorting)return this.args.ascending?"ascending":"descending"}bulkSelectAll(){this.args.bulkSelectHelper.autoAddTopicsToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}static #n=(()=>dt7948.n(this.prototype,"bulkSelectAll",[o.action]))();bulkClearAll(){this.args.bulkSelectHelper.autoAddTopicsToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}static #i=(()=>dt7948.n(this.prototype,"bulkClearAll",[o.action]))();onClick(e){e.preventDefault(),this.args.changeSort(this.args.order)}static #l=(()=>dt7948.n(this.prototype,"onClick",[o.action]))();onKeyDown(e){("Enter"===e.key||" "===e.key)&&(this.args.changeSort(this.args.order),e.preventDefault())}static #u=(()=>dt7948.n(this.prototype,"onKeyDown",[o.action]))();afterBulkActionComplete(){return this.router.refresh()}static #c=(()=>dt7948.n(this.prototype,"afterBulkActionComplete",[o.action]))();static #d=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pC2ZK1Bw",block:'[[[1,"\\n "],[11,"th"],[16,"data-sort-order",[30,1]],[24,"scope","col"],[16,"aria-sort",[30,0,["ariaSort"]]],[16,0,[28,[32,0],["topic-list-data",[30,1],[52,[30,2],"sortable"],[52,[30,0,["isSorting"]],"sorting"],[52,[30,3],"num"]],null]],[17,4],[4,[52,[30,2],[50,[32,1],2,["click",[30,0,["onClick"]]],null]],null,null],[4,[52,[30,2],[50,[32,1],2,["keydown",[30,0,["onKeyDown"]]],null]],null,null],[12],[1,"\\n"],[41,[30,5],[[[41,[30,6],[[[1," "],[11,"button"],[16,"title",[28,[32,2],["topics.bulk.toggle"],null]],[24,0,"btn-flat bulk-select"],[4,[32,1],["click",[30,7,["toggleBulkSelect"]]],null],[12],[1,"\\n "],[1,[28,[32,3],["list-check"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,8],[[[1," "],[10,1],[14,0,"bulk-select-topics"],[12],[1,"\\n"],[41,[30,9],[[[1," "],[8,[32,4],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,7],[30,0,["afterBulkActionComplete"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[11,"button"],[24,0,"btn btn-default bulk-select-all"],[4,[32,1],["click",[30,0,["bulkSelectAll"]]],null],[12],[1,[28,[32,2],["topics.bulk.select_all"],null]],[13],[1,"\\n "],[11,"button"],[24,0,"btn btn-default bulk-clear-all"],[4,[32,1],["click",[30,0,["bulkClearAll"]]],null],[12],[1,[28,[32,2],["topics.bulk.clear_all"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[51,[30,8]],[[[41,[30,10],[[[1," "],[8,[32,5],null,[["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,11],[30,12],[30,13],[30,14]]],null],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[10,"button"],[15,"aria-pressed",[30,0,["isSorting"]]],[12],[1,"\\n "],[1,[30,0,["localizedName"]]],[1,"\\n"],[41,[30,0,["isSorting"]],[[[1," "],[1,[28,[32,3],[[52,[30,15],"chevron-up","chevron-down"]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,0,[52,[30,16],"sr-only"]],[12],[1,"\\n "],[1,[30,0,["localizedName"]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]],null],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["topic-list-heading-bottom",[28,[32,7],null,[["name","bulkSelectEnabled"],[[30,17],[30,8]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@order","@sortable","@number","&attrs","@canBulkSelect","@showBulkToggle","@bulkSelectHelper","@bulkSelectEnabled","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset","@ascending","@screenreaderOnly","@name"],false,["if","modifier","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/sortable-column.js",scope:()=>[d.default,r.on,h.i18n,p.default,c.default,u.default,l.default,s.hash],isStrictMode:!0}),this))()}},4546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"LHZomcgH",block:'[[[1,"\\n "],[8,[32,0],null,[["@order","@category","@activeOrder","@changeSort","@ascending","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],["default",[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,"\\n"]],["@category","@activeOrder","@changeSort","@ascending","@name","@bulkSelectEnabled","@showBulkToggle","@canBulkSelect","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@bulkSelectHelper","@changeNewListSubset"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/topic-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"topic-cell:TopicCell"))},12889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70299),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"Bcyvi4Fx",block:'[[[1,"\\n "],[8,[32,0],null,[["@sortable","@number","@order","@activeOrder","@changeSort","@ascending","@name"],[[30,1],"true","views",[30,2],[30,3],[30,4],"views"]],null],[1,"\\n"]],["@sortable","@activeOrder","@changeSort","@ascending"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/header/views-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"views-cell:ViewsCell"))},12167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(68741),l=n(42433),u=n(54729),c=n(79635),d=n(64151),p=n(59874),h=n(74541),m=n(14657),g=n(62426),f=n(59567),_=n(96487),y=n(41087),b=n(12223),w=n(27147),k=n(17307),x=n(25614),T=n(38303),S=n(3737),C=n(83357),E=n(56839),A=n(51969),D=n(76417),I=n(82739);class P extends i.default{static #e=(()=>dt7948.g(this.prototype,"historyStore",[u.service]))();#tv=(()=>void dt7948.i(this,"historyStore"))();static #n=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();highlightIfNeeded=(()=>(0,c.modifier)(e=>{this.args.topic.id===this.historyStore.get("lastTopicIdViewed")?(e.dataset.isLastViewedTopic=!0,this.highlightRow(e),(0,l.next)(()=>this.historyStore.delete("lastTopicIdViewed")),this.shouldFocusLastVisited&&e.querySelector(".main-link .title")?.focus()):this.args.topic.get("highlight")&&(this.highlightRow(e),(0,l.next)(()=>this.args.topic.set("highlight",!1)))}))();get isSelected(){return this.args.selected?.includes(this.args.topic)}get tagClassNames(){return this.args.topic.tags?.map(e=>`tag-${e}`)}get expandPinned(){return!!this.args.topic.pinned&&(!this.site.mobileView||!!this.siteSettings.show_pinned_excerpt_mobile)&&(!this.site.desktopView||!!this.siteSettings.show_pinned_excerpt_desktop)&&(this.args.expandGloballyPinned&&this.args.topic.pinned_globally||this.args.expandAllPinned)}get shouldFocusLastVisited(){return this.site.desktopView&&this.args.focusLastVisitedTopic}navigateToTopic(e,t){this.historyStore.set("lastTopicIdViewed",e.id),E.default.routeTo(t||e.url)}highlightRow(e){e.addEventListener("animationend",()=>e.classList.remove("highlighted"),{once:!0}),e.classList.add("highlighted")}onTitleFocus(e){e.target.closest(".topic-list-item").classList.add("selected")}static #l=(()=>dt7948.n(this.prototype,"onTitleFocus",[o.action]))();onTitleBlur(e){e.target.closest(".topic-list-item").classList.remove("selected")}static #u=(()=>dt7948.n(this.prototype,"onTitleBlur",[o.action]))();applyTitleDecorators(e){let t=e.querySelector(".raw-topic-link");t&&_.topicTitleDecorators?.forEach(e=>e(this.args.topic,t,"topic-list-item-title"))}static #c=(()=>dt7948.n(this.prototype,"applyTitleDecorators",[o.action]))();onBulkSelectToggle(e){if(e.target.checked){if(this.args.selected.addObject(this.args.topic),this.args.bulkSelectHelper.lastCheckedElementId&&e.shiftKey){let t=[...document.querySelectorAll("input.bulk-select")],n=t.indexOf(e.target),i=t.findIndex(e=>e.id===this.args.bulkSelectHelper.lastCheckedElementId);t.slice(Math.min(n,i),Math.max(n,i)).filter(e=>!e.checked).forEach(e=>e.click())}this.args.bulkSelectHelper.lastCheckedElementId=e.target.id}else this.args.selected.removeObject(this.args.topic),this.args.bulkSelectHelper.lastCheckedElementId=null}static #d=(()=>dt7948.n(this.prototype,"onBulkSelectToggle",[o.action]))();click(e){if(e.target.classList.contains("raw-topic-link")||e.target.classList.contains("post-activity")){if((0,S.wantsNewWindow)(e))return;e.preventDefault(),this.navigateToTopic(this.args.topic,e.target.href);return}if(this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")){if((0,S.wantsNewWindow)(e))return;e.preventDefault(),this.navigateToTopic(this.args.topic,this.args.topic.lastUnreadUrl);return}}static #p=(()=>dt7948.n(this.prototype,"click",[o.action]))();keyDown(e){"Enter"===e.key&&e.target.classList.contains("post-activity")&&(e.preventDefault(),this.navigateToTopic(this.args.topic,e.target.href))}static #h=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();get useMobileLayout(){return(0,C.applyValueTransformer)("topic-list-item-mobile-layout",this.site.mobileView,{topic:this.args.topic})}static #m=(()=>(0,D.setComponentTemplate)((0,I.createTemplateFactory)({id:"lhiy8y/F",block:'[[[1,"\\n "],[11,"tr"],[16,"data-topic-id",[30,1,["id"]]],[16,"role",[30,0,["role"]]],[16,"aria-level",[30,0,["ariaLevel"]]],[16,0,[28,[32,0],["topic-list-item",[52,[30,1,["category"]],[28,[32,1],["category-",[30,1,["category","fullSlug"]]],null]],[52,[28,[32,2],[[30,1],[30,2]],null],"last-visit"],[52,[30,1,["visited"]],"visited"],[52,[30,1,["hasExcerpt"]],"has-excerpt"],[52,[30,1,["unseen"]],"unseen-topic"],[52,[30,1,["unread_posts"]],"unread-posts"],[52,[30,1,["liked"]],"liked"],[52,[30,1,["archived"]],"archived"],[52,[30,1,["bookmarked"]],"bookmarked"],[52,[30,1,["pinned"]],"pinned"],[52,[30,1,["closed"]],"closed"],[30,0,["tagClassNames"]],[28,[32,3],["topic-list-item-class",[28,[32,4],null,null],[28,[32,5],null,[["topic","index"],[[30,1],[30,3]]]]],null]],null]],[4,[32,6],[[30,0,["applyTitleDecorators"]]],null],[4,[30,0,["highlightIfNeeded"]],null,null],[4,[32,7],["keydown",[30,0,["keyDown"]]],null],[4,[32,7],["click",[30,0,["click"]]],null],[12],[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["above-topic-list-item",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n"],[41,[30,0,["useMobileLayout"]],[[[1," "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n "],[10,0],[14,0,"pull-left"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[11,"input"],[16,"checked",[30,0,["isSelected"]]],[16,1,[29,["bulk-select-",[30,1,["id"]]]]],[24,0,"bulk-select"],[24,4,"checkbox"],[4,[32,7],["click",[30,0,["onBulkSelectToggle"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[15,"aria-label",[28,[32,9],["latest_poster_link"],[["username"],[[30,1,["lastPosterUser","username"]]]]]],[15,"data-user-card",[30,1,["lastPosterUser","username"]]],[12],[1,[28,[32,10],[[30,1,["lastPosterUser"]]],[["imageSize"],["large"]]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-item-metadata right"],[12],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-before-link",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"main-link"],[12],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-before-status",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[8,[32,11],null,[["@topic"],[[30,1]]],null],[8,[32,12],[[24,0,"raw-link raw-topic-link"],[4,[32,7],["focus",[30,0,["onTitleFocus"]]],null],[4,[32,7],["blur",[30,0,["onTitleBlur"]]],null]],[["@topic"],[[30,1]]],null],[41,[30,1,["featured_link"]],[[[1," "],[1,[28,[32,13],[[30,1]],null]]],[]],null],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-after-title",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[41,[30,1,["unseen"]],[[[10,1],[14,0,"topic-post-badges"],[12],[1," "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[13]],[]],null],[41,[30,0,["expandPinned"]],[[[8,[32,14],null,[["@topic"],[[30,1]]],null]],[]],null],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-main-link-bottom",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-after-main-link",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"pull-right"],[12],[1,"\\n "],[8,[32,15],null,[["@topic","@postBadgesEnabled"],[[30,1],[30,5]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-item-stats clearfix"],[12],[1,"\\n "],[10,1],[14,0,"topic-item-stats__category-tags"],[12],[1,"\\n"],[41,[51,[30,6]],[[[1," "],[8,[32,8],null,[["@name","@outletArgs"],["topic-list-before-category",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,16],[[30,1,["category"]]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,17],[[30,1]],[["mode"],["list"]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"num activity last"],[12],[1,"\\n "],[10,1],[15,"title",[30,1,["bumpedAtTitle"]]],[14,0,"age activity"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[12],[1,[28,[32,18],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[42,[28,[31,3],[[28,[31,3],[[30,7]],null]],null],null,[[[1," "],[8,[30,8,["value","item"]],null,[["@topic","@bulkSelectEnabled","@onBulkSelectToggle","@isSelected","@showTopicPostBadges","@hideCategory","@tagsForUser","@expandPinned"],[[30,1],[30,4],[30,0,["onBulkSelectToggle"]],[30,0,["isSelected"]],[30,5],[30,6],[30,9],[30,0,["expandPinned"]]]],null],[1,"\\n"]],[8]],null]],[]]],[1," "],[13],[1,"\\n "]],["@topic","@lastVisitedTopic","@index","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@columns","entry","@tagsForUser"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item.js",scope:()=>[w.default,s.concat,d.eq,C.applyValueTransformer,s.array,s.hash,a.default,r.on,p.default,A.i18n,y.default,f.default,g.default,T.default,m.default,h.default,b.default,k.default,x.default],isStrictMode:!0}),this))()}},13423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(39882),s=n(35804),r=n(59874),o=n(93743),a=n(27147),l=n(25614),u=n(76417),c=n(82739),d=n(88606);let p=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"+pdwS3Gg",block:'[[[1,"\\n "],[10,"td"],[15,"title",[28,[32,0],[[30,1,["bumpedAtTitle"]]],null]],[15,0,[28,[32,1],["activity num topic-list-data",[28,[32,2],[[30,1,["createdAt"]]],[["startDate","class"],[[30,1,["bumpedAt"]],""]]]],null]],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[14,0,"post-activity"],[12],[8,[32,3],null,[["@name","@outletArgs"],["topic-list-before-relative-date",[28,[32,4],null,[["topic"],[[30,1]]]]]],null],[1,[28,[32,5],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/activity-cell.js",scope:()=>[s.htmlSafe,a.default,o.default,r.default,i.hash,l.default],isStrictMode:!0}),(0,d.default)(void 0,"activity-cell:ActivityCell"))},51200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(87075),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"nY6zB+Ly",block:'[[[1,"\\n "],[10,"td"],[14,0,"bulk-select topic-list-data"],[12],[1,"\\n "],[10,"label"],[15,"for",[29,["bulk-select-",[30,1,["id"]]]]],[12],[1,"\\n "],[11,"input"],[16,"checked",[30,2]],[16,1,[29,["bulk-select-",[30,1,["id"]]]]],[24,0,"bulk-select"],[24,4,"checkbox"],[4,[32,0],["click",[30,3]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@topic","@isSelected","@onBulkSelectToggle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/bulk-select-cell.js",scope:()=>[i.on],isStrictMode:!0}),(0,o.default)(void 0,"bulk-select-cell:BulkSelectCell"))},90841:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(64151),s=n(15523),r=n(21237),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"7U35UaQA",block:'[[[1,"\\n "],[10,"td"],[14,0,"num likes topic-list-data"],[12],[1,"\\n"],[41,[28,[32,0],[[30,1,["like_count"]],0],null],[[[1," "],[10,3],[15,6,[30,1,["summaryUrl"]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["like_count"]]],null]],[1,"\\n "],[1,[28,[32,2],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/likes-cell.js",scope:()=>[i.gt,s.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"likes-cell:LikesCell"))},50097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(64151),s=n(15523),r=n(21237),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"F00R7qZB",block:'[[[1,"\\n "],[10,"td"],[14,0,"num likes"],[12],[1,"\\n"],[41,[28,[32,0],[[30,1,["op_like_count"]],0],null],[[[1," "],[10,3],[15,6,[30,1,["summaryUrl"]]],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["op_like_count"]]],null]],[1,"\\n "],[1,[28,[32,2],["heart"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/op-likes-cell.js",scope:()=>[i.gt,s.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"op-likes-cell:OpLikesCell"))},56683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(41087),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"oXMc+Q4Q",block:'[[[1,"\\n "],[10,"td"],[14,0,"posters topic-list-data"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["featuredUsers"]]],null]],null],null,[[[41,[30,2,["moreCount"]],[[[1," "],[10,3],[14,0,"posters-more-count"],[12],[1,[30,2,["moreCount"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,3],[15,6,[30,2,["user","path"]]],[15,"data-user-card",[30,2,["user","username"]]],[15,0,[30,2,["extraClasses"]]],[12],[1,[28,[32,0],[[30,2]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["user.avatar_template","user.username","user.name","small"]]]],[13],[1,"\\n"]],[]]]],[2]],null],[1," "],[13],[1,"\\n"]],["@topic","poster"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/posters-cell.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"posters-cell:PostersCell"))},21169:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(39882),r=n(54729),o=n(59874),a=n(31496),l=n(15523),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();get ratio(){let e=parseFloat(this.args.topic.like_count),t=parseFloat(this.args.topic.posts_count);return t<10?0:(e||0)/t}get title(){return u.default.messageFormat("posts_likes_MF",{count:this.args.topic.replyCount,ratio:this.ratioText}).trim()}get ratioText(){return this.ratio>this.siteSettings.topic_post_like_heat_high?"high":this.ratio>this.siteSettings.topic_post_like_heat_medium?"med":this.ratio>this.siteSettings.topic_post_like_heat_low?"low":""}get likesHeat(){if(this.ratioText?.length)return`heatmap-${this.ratioText}`}get wrapperElement(){return(0,a.default)(this.args.tagName??"td")}static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"RO6joLyd",block:'[[[1,"\\n "],[8,[30,0,["wrapperElement"]],[[16,0,[29,["num posts-map posts ",[30,0,["likesHeat"]]," topic-list-data"]]]],null,[["default"],[[[[1,"\\n "],[10,3],[15,6,[30,1,["firstPostUrl"]]],[14,0,"badge-posts"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-reply-count",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,2],[[30,1,["replyCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/replies-cell.js",scope:()=>[o.default,s.hash,l.default],isStrictMode:!0}),this))()}},85956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(59874),u=n(81535),c=n(16375),d=n(14657),p=n(62426),h=n(88543),m=n(65868),g=n(59567),f=n(12223),_=n(17307),y=n(38303),b=n(56839),w=n(51969),k=n(76417),x=n(82739);class T extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"messageBus",[a.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();get newDotText(){return this.currentUser?.trust_level>0?"":(0,w.i18n)("filters.new.lower_title")}get participantGroups(){return this.args.topic.get("participant_groups")?this.args.topic.get("participant_groups").map(e=>({name:e,url:(0,b.groupPath)(e)})):[]}onTitleFocus(e){e.target.closest(".topic-list-item").classList.add("selected")}static #i=(()=>dt7948.n(this.prototype,"onTitleFocus",[o.action]))();onTitleBlur(e){e.target.closest(".topic-list-item").classList.remove("selected")}static #l=(()=>dt7948.n(this.prototype,"onTitleBlur",[o.action]))();static #u=(()=>(0,k.setComponentTemplate)((0,x.createTemplateFactory)({id:"HXOF+D1L",block:'[[[1,"\\n "],[10,"td"],[14,0,"main-link clearfix topic-list-data"],[14,"colspan","1"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-link",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,1],[14,0,"link-top-line"],[12],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-status",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[8,[32,2],null,[["@topic"],[[30,1]]],null],[8,[32,3],[[24,0,"raw-link raw-topic-link"],[4,[32,4],["focus",[30,0,["onTitleFocus"]]],null],[4,[32,4],["blur",[30,0,["onTitleBlur"]]],null]],[["@topic"],[[30,1]]],null],[41,[30,1,["featured_link"]],[[[1," "],[1,[28,[32,5],[[30,1]],null]]],[]],null],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-after-title",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[8,[32,6],null,[["@topic"],[[30,1]]],null],[41,[30,2],[[[8,[32,7],null,[["@unreadPosts","@unseen","@newDotText","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,0,["newDotText"]],[30,1,["lastUnreadUrl"]]]],null]],[]],null],[13],[1,"\\n\\n "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n"],[41,[51,[30,3]],[[[41,[51,[30,1,["isPinnedUncategorized"]]],[[[1," "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-before-category",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,8],[[30,1,["category"]]],null]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[1,[28,[32,9],[[30,1]],[["mode","tagsForUser"],["list",[30,4]]]]],[1,"\\n\\n"],[41,[30,0,["participantGroups"]],[[[1," "],[8,[32,10],null,[["@groups"],[[30,0,["participantGroups"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,11],[[24,0,"likes"]],[["@topic","@postNumbers","@icon"],[[30,1],[30,1,["liked_post_numbers"]],"heart"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,5],[[[1," "],[8,[32,12],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-list-main-link-bottom",[28,[32,1],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@topic","@showTopicPostBadges","@hideCategory","@tagsForUser","@expandPinned"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/topic-cell.js",scope:()=>[l.default,s.hash,g.default,p.default,r.on,y.default,h.default,m.default,f.default,_.default,c.default,u.default,d.default],isStrictMode:!0}),this))()}},63855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(39882),s=n(59874),r=n(27147),o=n(15523),a=n(76417),l=n(82739),u=n(88606);let c=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2+2Q2rJD",block:'[[[1,"\\n "],[10,"td"],[15,0,[28,[32,0],["num views topic-list-data",[30,1,["viewsHeat"]]],null]],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["topic-list-before-view-count",[28,[32,2],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[1,[28,[32,3],[[30,1,["views"]]],[["numberKey"],["views_long"]]]],[1,"\\n "],[13],[1,"\\n"]],["@topic"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/views-cell.js",scope:()=>[r.default,s.default,i.hash,o.default],isStrictMode:!0}),(0,u.default)(void 0,"views-cell:ViewsCell"))},92572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(37138),s=n(39882),r=n(59874),o=n(21169),a=n(65868),l=n(59567),u=n(13593),c=n(14541),d=n(41087),p=n(12223),h=n(27147),m=n(17307),g=n(25614),f=n(38303),_=n(70320),y=n(76417),b=n(82739);class w extends i.default{get tagClassNames(){return this.args.topic.tags?.map(e=>`tag-${e}`)}static #e=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"ArUL0Ewu",block:'[[[1,"\\n "],[10,0],[15,"data-topic-id",[30,1,["id"]]],[15,0,[28,[32,0],["latest-topic-list-item",[30,0,["tagClassNames"]],[52,[30,1,["category"]],[28,[32,1],["category-",[30,1,["category","fullSlug"]]],null]],[52,[30,1,["liked"]],"liked"],[52,[30,1,["archived"]],"archived"],[52,[30,1,["bookmarked"]],"bookmarked"],[52,[30,1,["pinned"]],"pinned"],[52,[30,1,["closed"]],"closed"],[52,[30,1,["visited"]],"visited"]],null]],[12],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item","div",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"topic-poster"],[12],[1,"\\n "],[8,[32,4],null,[["@user"],[[30,1,["lastPosterUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,5],[[30,1,["lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,6],null,[["@user"],[[30,1,["lastPosterUser"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"top-row"],[12],[1,"\\n "],[8,[32,7],null,[["@topic"],[[30,1]]],null],[1,"\\n\\n "],[1,[28,[32,8],[[30,1]],null]],[41,[30,1,["featured_link"]],[[[1,"  "],[1,[28,[32,9],[[30,1]],null]],[1,"\\n"]],[]],null],[8,[32,10],null,[["@unreadPosts","@unseen","@url"],[[30,1,["unread_posts"]],[30,1,["unseen"]],[30,1,["lastUnreadUrl"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n "],[1,[28,[32,11],[[30,1,["category"]]],null]],[1,[28,[32,12],[[30,1]],[["mode"],["list"]]]],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["below-latest-topic-list-item-bottom-row","span",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"topic-stats"],[12],[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[32,3],null,[["topic"],[[30,1]]]]]],null],[1,"\\n\\n "],[8,[32,13],null,[["@topic","@tagName"],[[30,1],"div"]],null],[1,"\\n\\n "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["lastPostUrl"]]],[15,"title",[30,1,["bumpedAtTitle"]]],[12],[1,[28,[32,14],[[30,1,["bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/latest-topic-list-item.js",scope:()=>[h.default,s.concat,r.default,s.hash,c.default,d.default,u.default,l.default,_.default,f.default,a.default,p.default,m.default,o.default,g.default],isStrictMode:!0}),this))()}},59260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var i=n(37138);n(28564);var s=n(39882),r=n(54729),o=n(64151),a=n(59874),l=n(90961),u=n(12167),c=n(27147),d=n(31222),p=n(83357),h=n(51969),m=n(75886),g=n(85438),f=n(99623),_=n(36655),y=n(76185),b=n(30383),w=n(4546),k=n(12889),x=n(13423),T=n(51200),S=n(90841),C=n(50097),E=n(56683),A=n(21169),D=n(85956),I=n(63855),P=n(76417),M=n(82739);let F=(0,n(41664).A)(n(28564)).cached;class N extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"topicTrackingState",[r.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();get columns(){let e=new d.default({onReplaceItem(e,t,n){t.header??=n.header,t.item??=n.item}});this.bulkSelectEnabled&&e.add("bulk-select",{header:g.default,item:T.default}),e.add("topic",{header:w.default,item:D.default}),this.args.showPosters&&e.add("posters",{header:y.default,item:E.default}),e.add("replies",{header:b.default,item:A.default}),"likes"===this.args.order?e.add("likes",{header:f.default,item:S.default}):"op_likes"===this.args.order&&e.add("op-likes",{header:_.default,item:C.default}),e.add("views",{header:k.default,item:I.default}),e.add("activity",{header:m.default,item:x.default});let t=this;return(0,p.applyValueTransformer)("topic-list-columns",e,{get category(){return t.topicTrackingState.get("filterCategory")},get filter(){return t.topicTrackingState.get("filter")}}).resolve()}static #i=(()=>dt7948.n(this.prototype,"columns",[F]))();get selected(){return this.args.bulkSelectHelper?.selected}get bulkSelectEnabled(){return this.args.bulkSelectHelper?.bulkSelectEnabled}get canDoBulkActions(){return this.currentUser?.canManageTopic&&this.selected?.length}get toggleInTitle(){return!this.bulkSelectEnabled&&this.args.canBulkSelect}get showTopicPostBadges(){return this.args.showTopicPostBadges??!0}get lastVisitedTopic(){let e,t;let{topics:n,order:i,ascending:s,top:r,hot:o}=this.args;if(!this.args.highlightLastVisited||r||o||s||!n||1===n.length||i&&"activity"!==i||!this.currentUser?.get("previous_visit_at"))return;let a=Math.max(n.findIndex(e=>!e.get("pinned")),0);for(let i=n.length-1;i>=a;i--){if(n[i].get("bumpedAt")>this.currentUser.get("previousVisitAt")){e=n[i];break}t=n[i]}if(!(!e||!t||t.get("bumpedAt")>this.currentUser.get("previousVisitAt")))return e}get additionalClasses(){return(0,p.applyValueTransformer)("topic-list-class",[],{topics:this.args.topics})}static #l=(()=>(0,P.setComponentTemplate)((0,M.createTemplateFactory)({id:"4INH2Rk5",block:'[[[1,"\\n"],[1," "],[10,"table"],[15,0,[28,[32,0],["topic-list",[52,[30,0,["bulkSelectEnabled"]],"sticky-header"],[30,0,["additionalClasses"]]],null]],[12],[1,"\\n "],[10,"caption"],[14,0,"sr-only"],[12],[1,[28,[32,1],["sr_topic_list_caption"],null]],[13],[1,"\\n "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n "],[8,[32,2],null,[["@columns","@canBulkSelect","@toggleInTitle","@category","@hideCategory","@order","@changeSort","@ascending","@sortable","@listTitle","@bulkSelectHelper","@bulkSelectEnabled","@canDoBulkActions","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,0,["columns"]],[30,1],[30,0,["toggleInTitle"]],[30,2],[30,3],[30,4],[30,5],[30,6],[30,5],[28,[32,3],[[30,7],"topic.title"],null],[30,8],[30,0,["bulkSelectEnabled"]],[30,0,["canDoBulkActions"]],[30,9],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[32,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,14],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,15],[30,3]]]]]],null],[1,"\\n\\n "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,14]],null]],null],null,[[[1," "],[8,[32,6],null,[["@columns","@topic","@bulkSelectHelper","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,0,["columns"]],[30,16],[30,8],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,3],[30,18],[30,19],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,20],[30,21],[30,17]]],null],[1,"\\n\\n"],[41,[28,[32,7],[[30,16],[30,0,["lastVisitedTopic"]]],null],[[[1," "],[10,"tr"],[14,0,"topic-list-item-separator"],[12],[1,"\\n "],[10,"td"],[14,0,"topic-list-data"],[14,"colspan","6"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,1],["topics.new_messages_marker"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,4],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[32,5],null,[["topic","index"],[[30,16],[30,17]]]],"tr"]],null],[1,"\\n"]],[16,17]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[32,5],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,14],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,15],[30,3]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@canBulkSelect","@category","@hideCategory","@order","@changeSort","@ascending","@listTitle","@bulkSelectHelper","@showTopicsAndRepliesToggle","@newListSubset","@newRepliesCount","@newTopicsCount","@changeNewListSubset","@topics","@discoveryList","topic","index","@expandGloballyPinned","@expandAllPinned","@tagsForUser","@focusLastVisitedTopic"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/list.js",scope:()=>[c.default,h.i18n,l.default,o.or,a.default,s.hash,u.default,o.eq],isStrictMode:!0}),this))()}},64602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(39882),r=n(87075),o=n(27147),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{get topicsActive(){return"topics"===this.args.current}get repliesActive(){return"replies"===this.args.current}get allActive(){return!this.topicsActive&&!this.repliesActive}get repliesButtonLabel(){return this.args.newRepliesCount>0?(0,a.i18n)("filters.new.replies_with_count",{count:this.args.newRepliesCount}):(0,a.i18n)("filters.new.replies")}get topicsButtonLabel(){return this.args.newTopicsCount>0?(0,a.i18n)("filters.new.topics_with_count",{count:this.args.newTopicsCount}):(0,a.i18n)("filters.new.topics")}get staticLabel(){return this.args.noStaticLabel||this.args.newTopicsCount>0&&this.args.newRepliesCount>0?void 0:this.args.newTopicsCount>0?this.topicsButtonLabel:this.repliesButtonLabel}static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"ZkiV61Jr",block:'[[[1,"\\n"],[41,[30,0,["staticLabel"]],[[[1," "],[10,1],[14,0,"static-label"],[12],[1,[30,0,["staticLabel"]]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --all",[52,[30,0,["allActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],null],null]],null],[12],[1,"\\n "],[1,[28,[32,3],["filters.new.all"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --topics",[52,[30,0,["topicsActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],"topics"],null]],null],[12],[1,"\\n "],[1,[30,0,["topicsButtonLabel"]]],[1,"\\n "],[13],[1,"\\n\\n "],[11,"button"],[16,0,[28,[32,0],["topics-replies-toggle --replies",[52,[30,0,["repliesActive"]],"active"]],null]],[4,[32,1],["click",[28,[32,2],[[30,1],"replies"],null]],null],[12],[1,"\\n "],[1,[30,0,["repliesButtonLabel"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@changeNewListSubset"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/new-list-header-controls.js",scope:()=>[o.default,r.on,s.fn,a.i18n],isStrictMode:!0}),this))()}},16375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(21237),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"A/QzGagl",block:'[[[1,"\\n "],[10,0],[14,"role","list"],[15,"aria-label",[28,[32,0],["topic.participant_groups"],null]],[14,0,"participant-group-wrapper"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1]],null]],null],null,[[[1," "],[10,0],[14,0,"participant-group"],[12],[1,"\\n "],[10,3],[15,6,[30,2,["url"]]],[15,"data-group-card",[30,2,["name"]]],[14,0,"user-group trigger-group-card"],[12],[1,"\\n "],[1,[28,[32,1],["users"],null]],[1,"\\n "],[1,[30,2,["name"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],["@groups","group"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/participant-groups.js",scope:()=>[s.i18n,i.default],isStrictMode:!0}),(0,a.default)(void 0,"participant-groups:ParticipantGroups"))},74541:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(64151),s=n(21169),r=n(65868),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"/EQB/oEZ",block:'[[[1,"\\n"],[41,[28,[32,0],[[30,1],[30,2,["unread_posts"]]],null],[[[1," "],[8,[32,1],null,[["@unreadPosts","@unseen","@url"],[[30,2,["unread_posts"]],[30,2,["unseen"]],[30,2,["lastUnreadUrl"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@topic","@tagName"],[[30,2],"div"]],null],[1,"\\n"]],[]]]],["@postBadgesEnabled","@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/post-count-or-badges.js",scope:()=>[i.and,r.default,s.default],isStrictMode:!0}),(0,l.default)(void 0,"post-count-or-badges:PostCountOrBadges"))},92673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(3791),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"K0reyWoS",block:'[[[1,"\\n "],[10,0],[14,0,"bulk-select-topics-dropdown"],[12],[1,"\\n "],[10,1],[14,0,"bulk-select-topic-dropdown__count"],[12],[1,"\\n "],[1,[28,[32,0],["topics.bulk.selected_count"],[["count"],[[30,1,["selected","length"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],null,[["@bulkSelectHelper","@afterBulkActionComplete"],[[30,1],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],["@bulkSelectHelper","@afterBulkActionComplete"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-bulk-select-dropdown.js",scope:()=>[s.i18n,i.default],isStrictMode:!0}),(0,a.default)(void 0,"topic-bulk-select-dropdown:TopicBulkSelectDropdown"))},14657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70800),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"LOJTbWPr",block:'[[[1,"\\n"],[41,[30,1,["hasExcerpt"]],[[[1," "],[10,3],[15,6,[30,1,["url"]]],[14,0,"topic-excerpt"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["escapedExcerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n\\n"],[41,[30,1,["excerptTruncated"]],[[[1," "],[10,1],[14,0,"topic-excerpt-more"],[12],[1,[28,[32,1],["read_more"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-excerpt.js",scope:()=>[i.default,s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"topic-excerpt:TopicExcerpt"))},62426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(35804),r=n(76417),o=n(82739);class a extends i.default{get url(){return this.args.topic.linked_post_number?this.args.topic.urlForPostNumber(this.args.topic.linked_post_number):this.args.topic.lastUnreadUrl}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"Or2lEQ2m",block:'[[[11,3],[16,6,[30,0,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[24,"role","heading"],[24,"aria-level","2"],[24,0,"title"],[17,2],[12],[1,[28,[32,0],[[30,1,["fancyTitle"]]],null]],[13]],["@topic","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/topic-link.js",scope:()=>[s.htmlSafe],isStrictMode:!0}),this))()}},88543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(21237),o=n(62797),a=n(51969),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();constructor(){super(...arguments),this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage)}onMessage(e){this.args.topic.set("unread_by_group_member",e.show_indicator)}static #n=(()=>dt7948.n(this.prototype,"onMessage",[o.bind]))();get unreadIndicatorChannel(){return`/private-messages/unread-indicator/${this.args.topic.id}`}static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"0Ndbfukh",block:'[[[41,[30,1,["unread_by_group_member"]],[[[1," "],[10,1],[15,"title",[28,[32,0],["topic.unread_indicator"],null]],[14,0,"badge badge-notification unread-indicator"],[12],[1,[28,[32,1],["asterisk"],null]],[13]],[]],null]],["@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/unread-indicator.js",scope:()=>[a.i18n,r.default],isStrictMode:!0}),this))()}},93992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(39882),s=n(59874),r=n(99546),o=n(35545),a=n(76417),l=n(82739),u=n(88606);let c=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"OCmHKk8D",block:'[[[1,"\\n"],[41,[51,[30,1,["postStream","loadingFilter"]]],[[[1," "],[10,"section"],[14,0,"topic-map__contents"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@topicDetails","@postStream"],[[30,1],[30,2],[30,3]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"topic-map__additional-contents toggle-summary"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@defaultGlimmer","@outletArgs"],["topic-map-expanded-after",true,[28,[32,2],null,[["topic","postStream"],[[30,1],[30,3]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,4],[[[1," "],[10,"section"],[14,0,"topic-map__private-message-map"],[12],[1,"\\n "],[8,[32,3],null,[["@topicDetails","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,2],[30,5],[30,6],[30,7]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],["@model","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/index.js",scope:()=>[o.default,s.default,i.hash,r.default],isStrictMode:!0}),(0,u.default)(void 0,"topic-map:TopicMap"))},99546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(54729),l=n(64151),u=n(92976),c=n(15767),d=n(56839),p=n(21237),h=n(51969),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"isEditing",[s.tracked],function(){return!1}))();#oT=(()=>void dt7948.i(this,"isEditing"))();get participantsClasses(){return!this.isEditing&&this.site.mobileView&&this.args.topicDetails.allowed_groups.length>4?"participants hide-names":"participants"}get canInvite(){return this.args.topicDetails.can_invite_to}get canRemove(){return this.args.topicDetails.can_remove_allowed_users||this.args.topicDetails.can_remove_self_id}get canShowControls(){return this.canInvite||this.canRemove}get actionAllowed(){return this.canRemove?this.toggleEditing:this.args.showInvite}get actionAllowedLabel(){return this.canInvite&&this.canRemove?"private_message_info.edit":!this.canInvite&&this.canRemove?"private_message_info.remove":"private_message_info.add"}toggleEditing(){this.isEditing=!this.isEditing}static #i=(()=>dt7948.n(this.prototype,"toggleEditing",[o.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"SYFKBNrO",block:'[[[1,"\\n "],[10,0],[15,0,[30,0,["participantsClasses"]]],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["allowed_groups"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@model","@isEditing","@canRemoveAllowedUsers","@removeAllowedGroup"],[[30,2],[30,0,["isEditing"]],[30,1,["can_remove_allowed_users"]],[30,3]]],null],[1,"\\n"]],[2]],null],[42,[28,[31,1],[[28,[31,1],[[30,1,["allowed_users"]]],null]],null],null,[[[1," "],[8,[32,1],null,[["@model","@isEditing","@canRemoveAllowedUsers","@canRemoveSelfId","@removeAllowedUser"],[[30,4],[30,0,["isEditing"]],[30,1,["can_remove_allowed_users"]],[30,1,["can_remove_self_id"]],[30,5]]],null],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["canShowControls"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-default add-remove-participant-btn"]],[["@action","@label"],[[30,0,["actionAllowed"]],[30,0,["actionAllowedLabel"]]]],null],[1,"\\n\\n"],[41,[28,[32,3],[[30,0,["canInvite"]],[30,0,["isEditing"]]],null],[[[1," "],[8,[32,2],[[24,0,"btn-default add-participant-btn"]],[["@action","@icon"],[[30,6],"plus"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@topicDetails","group","@removeAllowedGroup","user","@removeAllowedUser","@showInvite"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[_,b,u.default,l.and],isStrictMode:!0}),this))()}class _ extends i.default{get canRemoveLink(){return this.args.isEditing&&this.args.canRemoveAllowedUsers}get groupUrl(){return(0,d.groupPath)(this.args.model.name)}static #e=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"isLeg0lP",block:'[[[1,"\\n "],[10,0],[14,0,"user group"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["groupUrl"]]],[14,0,"group-link"],[12],[1,"\\n "],[1,[28,[32,0],["users"],null]],[1,"\\n "],[10,1],[14,0,"group-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["canRemoveLink"]],[[[1," "],[8,[32,1],null,[["@model","@removeAllowedGroup"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","@removeAllowedGroup"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[p.default,y],isStrictMode:!0}),this))()}class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();showConfirmDialog(){this.dialog.deleteConfirm({message:(0,h.i18n)("private_message_info.remove_allowed_group",{name:this.args.model.name}),confirmButtonLabel:"private_message_info.remove_group",didConfirm:()=>this.args.removeAllowedGroup(this.args.model)})}static #n=(()=>dt7948.n(this.prototype,"showConfirmDialog",[o.action]))();static #i=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pYHtg6/s",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"remove-invited"]],[["@action","@icon"],[[30,0,["showConfirmDialog"]],"xmark"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[u.default],isStrictMode:!0}),this))()}class b extends i.default{get avatarTitle(){return this.args.model.name||this.args.model.username}get isCurrentUser(){return this.args.canRemoveSelfId===this.args.model.id}get canRemoveLink(){return this.args.isEditing&&(this.args.canRemoveAllowedUsers||this.isCurrentUser)}static #e=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"oXyjIykc",block:'[[[1,"\\n "],[10,0],[14,0,"user"],[12],[1,"\\n "],[10,3],[14,0,"user-link"],[15,6,[30,1,["path"]]],[12],[1,"\\n "],[10,3],[14,0,"trigger-user-card"],[15,"data-user-card",[30,1,["username"]]],[15,"title",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["avatar_template"]],"tiny",[28,[32,1],null,[["title"],[[30,0,["avatarTitle"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["canRemoveLink"]],[[[1," "],[8,[32,2],null,[["@model","@isCurrentUser","@removeAllowedUser"],[[30,1],[30,0,["isCurrentUser"]],[30,2]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","@removeAllowedUser"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[c.default,r.hash,w],isStrictMode:!0}),this))()}class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();showConfirmDialog(){let e=this.args.isCurrentUser?"private_message_info.leave_message":"private_message_info.remove_allowed_user";this.dialog.deleteConfirm({message:(0,h.i18n)(e,{name:this.args.model.username}),confirmButtonLabel:this.args.isCurrentUser?"private_message_info.leave":"private_message_info.remove_user",didConfirm:()=>this.args.removeAllowedUser(this.args.model)})}static #n=(()=>dt7948.n(this.prototype,"showConfirmDialog",[o.action]))();static #i=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"pYHtg6/s",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"remove-invited"]],[["@action","@icon"],[[30,0,["showConfirmDialog"]],"xmark"]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/private-message-map.js",scope:()=>[u.default],isStrictMode:!0}),this))()}},25373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(34991),r=n(51969),o=n(22467),a=n(76417),l=n(82739);class u extends i.default{get linkClasses(){return this.args.attachment?"topic-link track-link attachment":"topic-link track-link"}get truncatedContent(){let e=this.args.title||this.args.url;return e.length>85?`${e.slice(0,85).trim()}...`:e}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"2vA5cxfG",block:'[[[1,"\\n "],[10,3],[15,0,[30,0,["linkClasses"]]],[15,6,[30,1]],[15,"title",[30,1]],[15,"data-user-id",[30,2]],[14,"data-ignore-post-id","true"],[14,"target","_blank"],[14,"rel","nofollow ugc noopener noreferrer"],[15,"data-clicks",[30,3]],[15,"aria-label",[28,[32,0],["topic_map.clicks"],[["count"],[[30,3]]]]],[12],[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,1],[[30,0,["truncatedContent"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["truncatedContent"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"],[41,[28,[32,2],[[30,4],[30,5]],null],[[[1," "],[10,1],[14,0,"domain"],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@url","@userId","@clickCount","@title","@rootDomain"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-map-link.js",scope:()=>[r.i18n,s.default,o.default],isStrictMode:!0}),this))()}},35545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MIN_POSTS_COUNT:()=>A,default:()=>D});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(68741),l=n(54729),u=n(35804),c=n(59602),d=n(92976),p=n(59874),h=n(25373),m=n(28902),g=n(10868),f=n(53685),_=n(15767),y=n(27147),b=n(15523),w=n(6610),k=n(62167),x=n(21237),T=n(51969),S=n(99676),C=n(76417),E=n(82739);let A=3;class D extends i.default{static #e=(()=>dt7948.g(this.prototype,"site",[l.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"mapCache",[l.service]))();#oS=(()=>void dt7948.i(this,"mapCache"))();static #l=(()=>dt7948.g(this.prototype,"dialog",[l.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #u=(()=>dt7948.g(this.prototype,"allLinksShown",[s.tracked],function(){return!1}))();#oC=(()=>void dt7948.i(this,"allLinksShown"))();static #c=(()=>dt7948.g(this.prototype,"top3LikedPosts",[s.tracked],function(){return[]}))();#oE=(()=>void dt7948.i(this,"top3LikedPosts"))();static #d=(()=>dt7948.g(this.prototype,"views",[s.tracked],function(){return[]}))();#oA=(()=>void dt7948.i(this,"views"))();static #p=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!0}))();#k=(()=>void dt7948.i(this,"loading"))();get shouldShowParticipants(){return this.args.topic.posts_count>=A&&this.args.topicDetails.participants?.length>=2&&!this.site.mobileView}get first5Participants(){return this.args.topicDetails.participants.slice(0,5)}get readTimeMinutes(){let e=Math.ceil(Math.max(this.args.topic.word_count/this.siteSettings.read_time_word_count,4*this.args.topic.posts_count/60));return e>3?e:null}get topRepliesSummaryEnabled(){return this.args.postStream.summary}get topRepliesTitle(){if(!this.topRepliesSummaryEnabled)return(0,T.i18n)("summary.short_title")}get topRepliesIcon(){return this.topRepliesSummaryEnabled?"up-down":"layer-group"}get topRepliesLabel(){return this.topRepliesSummaryEnabled?(0,T.i18n)("summary.show_all_label"):(0,T.i18n)("summary.short_label")}get loneStat(){return!this.args.topic.has_summary&&[this.hasLikes,this.hasUsers,this.hasLinks].every(e=>!e)}get manyStats(){return[this.hasLikes,this.hasUsers,this.hasLinks].every(Boolean)}get minViewsCount(){return Math.max(this.args.topic.views,1)}get shouldShowViewsChart(){return this.views.stats.length>2}get linksCount(){return this.args.topicDetails.links?.length??0}get topicLinks(){return this.args.topicDetails.links}get linksToShow(){return this.allLinksShown?this.topicLinks:this.topicLinks?.slice(0,5)}get hasMoreLinks(){return!this.allLinksShown&&this.linksCount>5}get hasLikes(){return this.args.topic.like_count>5&&this.args.topic.posts_count>A}get hasUsers(){return this.args.topic.participant_count>5}get hasLinks(){return this.linksCount>0}showAllLinks(){this.allLinksShown=!0}static #h=(()=>dt7948.n(this.prototype,"showAllLinks",[o.action]))();showTopReplies(){this.args.postStream.showTopReplies()}static #m=(()=>dt7948.n(this.prototype,"showTopReplies",[o.action]))();cancelFilter(){this.args.postStream.cancelFilter(),this.args.postStream.refresh()}static #g=(()=>dt7948.n(this.prototype,"cancelFilter",[o.action]))();postUrl(e){return this.args.topic.urlForPostNumber(e.post_number)}static #E=(()=>dt7948.n(this.prototype,"postUrl",[o.action]))();fetchMostLiked(){let e=`top3LikedPosts_${this.args.topic.id}`,t=this.mapCache.get(e);if(this.loading=!0,t){this.top3LikedPosts=t,this.loading=!1;return}let n=`/search.json?q=" " topic%3A${this.args.topic.id} order%3Alikes`;(0,w.ajax)(n).then(t=>{let n=t.posts.filter(e=>e.post_number>1&&e.like_count>0).sort((e,t)=>t.like_count-e.like_count).slice(0,3);this.mapCache.set(e,n),this.top3LikedPosts=n}).catch(e=>{this.dialog.alert((0,T.i18n)("generic_error_with_reason",{error:`http: ${e.status} - ${e.body}`}))}).finally(()=>{this.loading=!1})}static #A=(()=>dt7948.n(this.prototype,"fetchMostLiked",[o.action]))();fetchViews(){let e=`topicViews_${this.args.topic.id}`,t=this.mapCache.get(e);if(this.loading=!0,t){this.views=t,this.loading=!1;return}(0,w.ajax)(`/t/${this.args.topic.id}/view-stats.json`).then(t=>{t.stats.length||t.stats.push({viewed_at:new Date().toISOString().split("T")[0],views:this.args.topic.views}),this.views=t,this.mapCache.set(e,t)}).catch(e=>{this.dialog.alert((0,T.i18n)("generic_error_with_reason",{error:`http: ${e.status} - ${e.body}`}))}).finally(()=>{this.loading=!1})}static #D=(()=>dt7948.n(this.prototype,"fetchViews",[o.action]))();static #I=(()=>(0,C.setComponentTemplate)((0,E.createTemplateFactory)({id:"CT51yNE1",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["topic-map__stats",[52,[30,0,["loneStat"]],"--single-stat"],[52,[30,0,["manyStats"]],"--many-stats"]],null]],[12],[1,"\\n "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@placement","@groupIdentifier","@inline","@onShow"],[true,"topic-map__views",true,"click",true,"right","topic-map",true,[30,0,["fetchViews"]]]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,0,["minViewsCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["views_lowercase"],[["count"],[[30,0,["minViewsCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,"h3"],[12],[1,[28,[32,3],["topic_map.menu_titles.views"],null]],[13],[1,"\\n "],[8,[32,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["shouldShowViewsChart"]],[[[1," "],[8,[32,5],null,[["@views","@created"],[[30,0,["views"]],[30,1,["created_at"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,6],null,[["@views"],[[30,0,["views"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["hasLikes"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@placement","@groupIdentifier","@inline"],[true,"topic-map__likes",true,"click",true,"right","topic-map",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1,["like_count"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["likes_lowercase"],[["count"],[[30,1,["like_count"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[11,"h3"],[4,[32,7],[[30,0,["fetchMostLiked"]]],null],[12],[1,[28,[32,3],["topic_map.menu_titles.replies"],null]],[13],[1,"\\n "],[8,[32,4],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["most-liked-replies",[28,[32,9],null,[["posts"],[[30,0,["top3LikedPosts"]]]]]]],[["default"],[[[[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["top3LikedPosts"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[10,3],[15,6,[28,[30,0,["postUrl"]],[[30,2]],null]],[12],[1,"\\n "],[10,1],[14,0,"like-section__user"],[12],[1,"\\n "],[1,[28,[32,10],[[30,2,["avatar_template"]],"tiny",[28,[32,9],null,[["title"],[[30,2,["username"]]]]]],null]],[1,"\\n "],[1,[30,2,["username"]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"like-section__likes"],[12],[1,"\\n "],[1,[30,2,["like_count"]]],[1,"\\n "],[1,[28,[32,11],["heart"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,12],[[28,[32,13],[[30,2,["blurb"]]],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["linksCount"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@modalForMobile","@groupIdentifier","@placement","@inline"],[true,"topic-map__links",true,"click",true,"topic-map","right",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,0,["linksCount"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["links_lowercase"],[["count"],[[30,0,["linksCount"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[10,"h3"],[12],[1,[28,[32,3],["topic_map.links_title"],null]],[13],[1,"\\n "],[10,"ul"],[14,0,"topic-links"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["linksToShow"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,14],null,[["@attachment","@title","@rootDomain","@url","@userId","@clickCount"],[[30,3,["attachment"]],[30,3,["title"]],[30,3,["root_domain"]],[30,3,["url"]],[30,3,["user_id"]],[30,3,["clicks"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["hasMoreLinks"]],[[[1," "],[8,[32,15],[[24,0,"link-summary btn-flat"]],[["@action","@title","@icon"],[[30,0,["showAllLinks"]],"topic_map.links_shown","chevron-down"]],null],[1,"\\n\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasUsers"]],[[[1," "],[8,[32,1],null,[["@arrow","@identifier","@interactive","@triggers","@placement","@modalForMobile","@groupIdentifier","@inline"],[true,"topic-map__users",true,"click","right",true,"topic-map",true]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1,["participant_count"]]],[["noTitle"],["true"]]]],[1,"\\n "],[10,1],[14,0,"topic-map__stat-label"],[12],[1,"\\n "],[1,[28,[32,3],["users_lowercase"],[["count"],[[30,1,["participant_count"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,16],null,[["@title","@userFilters","@participants"],[[28,[32,3],["topic_map.participants_title"],null],[30,4,["userFilters"]],[30,5,["participants"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldShowParticipants"]],[[[1," "],[8,[32,16],null,[["@participants","@userFilters"],[[30,0,["first5Participants"]],[30,4,["userFilters"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"topic-map__buttons"],[12],[1,"\\n"],[41,[30,0,["readTimeMinutes"]],[[[1," "],[10,0],[14,0,"estimated-read-time"],[12],[1,"\\n "],[10,1],[12],[1," "],[1,[28,[32,3],["topic_map.read"],null]],[1," "],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[30,0,["readTimeMinutes"]]],[1,"\\n "],[1,[28,[32,3],["topic_map.minutes"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["has_summary"]],[[[1," "],[10,0],[14,0,"summarization-button"],[12],[1,"\\n "],[8,[32,15],[[24,0,"top-replies"]],[["@action","@translatedTitle","@translatedLabel","@icon"],[[52,[30,4,["summary"]],[30,0,["cancelFilter"]],[30,0,["showTopReplies"]]],[30,0,["topRepliesTitle"]],[30,0,["topRepliesLabel"]],[30,0,["topRepliesIcon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@topic","post","link","@postStream","@topicDetails"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-map-summary.js",scope:()=>[y.default,S.default,b.default,T.i18n,c.default,f.default,g.default,a.default,p.default,r.hash,_.default,x.default,u.htmlSafe,k.emojiUnescape,h.default,d.default,m.default],isStrictMode:!0}),this))()}},62979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addTopicParticipantClassesCallback:()=>m,default:()=>g});var i=n(37138),s=n(39882),r=n(35804),o=n(64151),a=n(59874),l=n(13593),u=n(56839),c=n(79356),d=n(76417),p=n(82739);let h=[];function m(e){h.push(e)}class g extends i.default{get avatarImage(){return(0,r.htmlSafe)((0,c.avatarImg)({avatarTemplate:this.args.participant.avatar_template,size:"medium",title:this.args.participant.name||this.args.participant.username}))}get participantClasses(){let{primary_group_name:e}=this.args.participant;return[e?`group-${e}`:null,h.map(e=>e(this.args.participant))].filter(Boolean).flat(3).join(" ")}get linkClasses(){return["poster","trigger-user-card",this.args.toggledUsers?.has(this.args.participant.username)?"toggled":null].filter(Boolean).join(" ")}get userUrl(){return(0,u.userPath)(this.args.participant.username)}static #e=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"cpZXiaHH",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["topic-participant",[28,[32,1],null,[["participant"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[15,0,[30,0,["participantClasses"]]],[12],[1,"\\n "],[10,3],[15,0,[30,0,["linkClasses"]]],[15,"data-user-card",[30,1,["username"]]],[15,"title",[30,1,["username"]]],[15,6,[30,0,["userUrl"]]],[12],[1,"\\n "],[1,[30,0,["avatarImage"]]],[1,"\\n"],[41,[28,[32,2],[[30,1,["post_count"]],1],null],[[[1," "],[10,1],[14,0,"post-count"],[12],[1,[30,1,["post_count"]]],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@user"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@participant"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participant.js",scope:()=>[a.default,s.hash,o.gt,l.default],isStrictMode:!0}),this))()}},28902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(62979),r=n(76417),o=n(82739);class a extends i.default{toggledUsers=(()=>new Set(this.args.userFilters))();static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"doMtkXus",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,"h3"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[15,0,[29,["topic-map__users-list ",[52,[51,[30,1]],"--users-summary"]]]],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,2]],null]],null],null,[[[1," "],[8,[32,0],null,[["@participant","@toggledUsers"],[[30,3],[30,0,["toggledUsers"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "]],["@title","@participants","participant"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participants.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},53685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(70001),r=n(68741),o=n(2406),a=n(51969),l=n(76417),u=n(82739);let c=new Date,d=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate());class p extends i.default{chart=null;noData=!1;async renderChart(e){if(await (0,o.default)("/javascripts/Chart.min.js"),!this.args.views?.stats||this.args.views?.stats?.length===0){this.noData=!0;return}let t=this.args.views.stats.map(e=>({x:new Date(`${e.viewed_at}T00:00:00Z`).getTime(),y:e.views})),n=(t=function(e){let t=[],n=e[0].x;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:3,n=Array.from({length:t},(e,t)=>t+1),i=n.reduce((e,t)=>e+t,0),s=[];for(let r=0;r=n?i+(i-n)*(1-s):i+n*(1-s),i))}(t),s={x:n.x,y:i};(t=t.slice(0,t.length-1)).push(s);let r=e.getContext("2d"),l=t[0].x,u=n.x,p=document.querySelector(".topic-map"),h=getComputedStyle(p).getPropertyValue("--chart-line-color"),m=getComputedStyle(p).getPropertyValue("--chart-point-color"),g=getComputedStyle(p).getPropertyValue("--chart-prediction-color");this.chart&&this.chart.destroy(),this.chart=new window.Chart(r,{type:"line",data:{datasets:[{label:"Views",data:t.slice(0,-1),showLine:!0,borderColor:m,backgroundColor:h,pointBackgroundColor:m},{label:"Predicted Views",data:[t[t.length-2],t[t.length-1]],showLine:!0,borderDash:[5,5],borderColor:g,backgroundColor:g,pointBackgroundColor:g}]},options:{scales:{x:{type:"linear",position:"bottom",min:l,max:u,ticks:{autoSkip:!1,stepSize:864e5,maxTicksLimit:15,callback:function(e){return new Date(e+864e5).toLocaleDateString(a.default.currentBcp47Locale,{month:"2-digit",day:"2-digit"})}}},y:{beginAtZero:!0,ticks:{callback:function(e){return e}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(e){let t=new Date(e[0]?.parsed?.x+864e5);return 0===e.length&&(t=new Date().getUTCDate()),t.toLocaleDateString(a.default.currentBcp47Locale,{month:"2-digit",day:"2-digit",year:"numeric"})},label:function(e){let t=e?.parsed?.x===d?(0,a.i18n)("topic_map.predicted_views"):(0,a.i18n)("topic_map.views");return`${t}: ${e?.parsed?.y}`}},filter:function(e){return!(e?.parsed?.x===d-864e5&&e?.datasetIndex===1)}}}}})}static #e=(()=>dt7948.n(this.prototype,"renderChart",[s.action]))();static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"eakT4/Ve",block:'[[[1,"\\n"],[41,[30,0,["noData"]],[[[1," "],[1,[28,[32,0],["topic_map.chart_error"],null]],[1,"\\n"]],[]],[[[1," "],[11,"canvas"],[4,[32,1],[[30,0,["renderChart"]]],null],[12],[13],[1,"\\n "],[10,0],[14,0,"view-explainer"],[12],[1,[28,[32,0],["topic_map.view_explainer"],null]],[13],[1,"\\n"]],[]]],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-views-chart.js",scope:()=>[a.i18n,r.default],isStrictMode:!0}),this))()}},10868:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(51969),r=n(76417),o=n(82739);class a extends i.default{adjustAggregatedData(e){let t=[];return e.forEach(e=>{let n=new Date(`${e.viewed_at}T00:00:00Z`),i=n.toLocaleDateString(s.default.currentBcp47Locale,{year:"numeric",month:"2-digit",day:"2-digit"}),r=t.find(e=>e.dateStr===i);r?r.views+=e.views:t.push({dateStr:i,views:e.views,localDate:n})}),t.map(e=>({viewed_at:e.localDate.toISOString().split("T")[0],views:e.views}))}formatDate(e){return e.toLocaleDateString(s.default.currentBcp47Locale,{month:"2-digit",day:"2-digit"})}get updatedStats(){let e=this.adjustAggregatedData(this.args.views.stats).map(e=>{let t=new Date(new Date(`${e.viewed_at}T00:00:00`).getTime());return{...e,statDate:t,label:this.formatDate(t)}}),t=e[e.length-1];return t.views=Math.max(t.views,1),e}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"bsuWRop4",block:'[[[1,"\\n "],[10,0],[14,0,"topic-views__wrapper"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["updatedStats"]]],null]],null],null,[[[1," "],[10,0],[14,0,"topic-views"],[12],[1,"\\n "],[10,0],[14,0,"topic-views__count"],[12],[1,"\\n "],[1,[30,1,["views"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-views__date"],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["stat"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-views.js",isStrictMode:!0}),this))()}},18504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(92976),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"keyValueStore",[o.service]))();#tM=(()=>void dt7948.i(this,"keyValueStore"))();static #n=(()=>dt7948.g(this.prototype,"hidden",[s.tracked],function(){return!1}))();#eh=(()=>void dt7948.i(this,"hidden"))();constructor(){if(super(...arguments),this.popupKey){let e=this.keyValueStore.getItem(this.popupKey);!0===e||e>+new Date?this.hidden=!0:this.keyValueStore.removeItem(this.popupKey)}}get popupKey(){if(this.args.popupId)return`dismiss_topic_nav_popup_${this.args.popupId}`}close(){if(this.hidden=!0,this.popupKey){if(this.args.dismissDuration){let e=+new Date+this.args.dismissDuration;this.keyValueStore.setItem(this.popupKey,e)}else this.keyValueStore.setItem(this.popupKey,!0)}}static #i=(()=>dt7948.n(this.prototype,"close",[r.action]))();static #l=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"4FFptR8s",block:'[[[1,"\\n"],[41,[51,[30,0,["hidden"]]],[[[1," "],[10,0],[14,0,"topic-navigation-popup"],[12],[1,"\\n "],[8,[32,0],[[24,0,"close btn-flat"]],[["@action","@icon"],[[30,0,["close"]],"xmark"]],null],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["unless","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-navigation-popup.js",scope:()=>[a.default],isStrictMode:!0}),this))()}},95632:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(76417),s=n(70001),r=n(42433),o=n(54729),a=n(93223),l=n(9630),u=n(14682),c=n.n(u),d=n(8032),p=n(13600),h=n(84262),m=n(86211),g=n(62797),f=n(96350);let _=(0,n(82739).createTemplateFactory)({id:"Je3pbzQj",block:'[[[41,[30,0,["canRender"]],[[[1," "],[18,1,[[30,0,["info"]]]],[1,"\\n"]],[]],null]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/topic-navigation.hbs",isStrictMode:!1}),y=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();composerOpen=null;info=(()=>s.default.create())();canRender=!0;_lastTopicId=null;_swipeEvents=null;didUpdateAttrs(){super.didUpdateAttrs(...arguments),this._lastTopicId!==this.topic.id&&(this._lastTopicId=this.topic.id,this.set("canRender",!1),(0,r.next)(()=>this.set("canRender",!0)))}_performCheckSize(){if(this.element&&!this.isDestroying&&!this.isDestroyed){if(this.info.topicProgressExpanded)this.info.set("renderTimeline",!0);else if(this.site.mobileView)this.info.set("renderTimeline",!1);else{let e=document.querySelector("#reply-control")?.offsetHeight||0,t=window.innerHeight-e-(0,d.headerOffset)();this.info.set("renderTimeline",this.mediaQuery.matches&&t>325)}}}_checkSize(){(0,h.default)(this,this._performCheckSize,200,!0)}static #n=(()=>dt7948.n(this.prototype,"_checkSize",[g.bind]))();_topicScrolled(e){this.set("info.prevEvent",e)}_expanded(){this.get("info.topicProgressExpanded")?c()(window).on("click.hide-fullscreen",e=>{let t=c()(e.target),n=t.parents();!(!t.is(".widget-button")&&!n.is(".widget-button")&&!n.is("#discourse-modal")&&!t.is("#discourse-modal")&&(t.is(".topic-timeline")||!n.is("#topic-progress-wrapper")))||n.is(".timeline-open-jump-to-post-prompt-btn")||t.is(".timeline-open-jump-to-post-prompt-btn")||this._collapseFullscreen()}):c()(window).off("click.hide-fullscreen"),this._checkSize()}static #i=(()=>dt7948.n(this.prototype,"_expanded",[(0,l.observes)("info.topicProgressExpanded")]))();composerOpened(){this.set("composerOpen",!0),this._checkSize()}composerClosed(){this.set("composerOpen",!1),this._checkSize()}_collapseFullscreen(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;this.get("info.topicProgressExpanded")&&(c()(".timeline-fullscreen").removeClass("show"),(0,m.default)(()=>{!this.element||this.isDestroying||this.isDestroyed||(this.set("info.topicProgressExpanded",!1),this._checkSize())},t))}keyboardTrigger(e){"jump"===e.type&&this.modal.show(f.default,{model:{topic:this.topic,jumpToIndex:this.jumpToIndex,jumpToDate:this.jumpToDate}})}onSwipeStart(e){let t=e.detail,n=t.originalEvent.target;if(n.classList.contains("docked")||!n.closest(".timeline-container")){e.preventDefault();return}t.originalEvent.preventDefault(),document.elementFromPoint(t.center.x,t.center.y).closest(".timeline-scrollarea-wrapper")?e.preventDefault():("up"===t.direction||"down"===t.direction)&&(this.movingElement=document.querySelector(".timeline-container"))}static #l=(()=>dt7948.n(this.prototype,"onSwipeStart",[g.bind]))();onSwipeCancel(){let e=this._swipeEvents.getMaxAnimationTimeMs();document.querySelector(".timeline-container").animate([{transform:"translate3d(0, 0, 0)"}],{duration:e,fill:"forwards",easing:"ease-out"})}static #u=(()=>dt7948.n(this.prototype,"onSwipeCancel",[g.bind]))();onSwipeEnd(e){let t=e.detail,n=document.querySelector(".timeline-container"),i=n.offsetHeight,s=this._swipeEvents.getMaxAnimationTimeMs();if(this._swipeEvents.shouldCloseMenu(t,"bottom")){let e=i-this.pxClosed;s=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),n.animate([{transform:`translate3d(0, ${i}px, 0)`}],{duration:s,fill:"forwards"}).finished.then(()=>this._collapseFullscreen(null,0))}else{let e=this.pxClosed;s=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),n.animate([{transform:"translate3d(0, 0, 0)"}],{duration:s,fill:"forwards",easing:"ease-out"})}}static #c=(()=>dt7948.n(this.prototype,"onSwipeEnd",[g.bind]))();onSwipe(e){let t=e.detail;t.originalEvent.preventDefault(),this.pxClosed=Math.max(0,t.deltaY),this.movingElement.animate([{transform:`translate3d(0, ${this.pxClosed}px, 0)`}],{fill:"forwards"})}static #d=(()=>dt7948.n(this.prototype,"onSwipe",[g.bind]))();didInsertElement(){super.didInsertElement(...arguments),this._lastTopicId=this.topic.id,this.appEvents.on("topic:current-post-scrolled",this,this._topicScrolled).on("topic:jump-to-post",this,this._collapseFullscreen).on("topic:keyboard-trigger",this,this.keyboardTrigger),this.site.desktopView&&(this.mediaQuery=matchMedia("(min-width: 925px)"),this.mediaQuery.addEventListener("change",this._checkSize),this.appEvents.on("composer:opened",this,this.composerOpened),this.appEvents.on("composer:resize-ended",this,this.composerOpened),this.appEvents.on("composer:closed",this,this.composerClosed),c()("#reply-control").on("div-resized",this._checkSize)),this._checkSize(),this._swipeEvents=new p.default(this.element),this.site.mobileView&&(this._swipeEvents.addTouchListeners(),this.element.addEventListener("swipestart",this.onSwipeStart),this.element.addEventListener("swipeend",this.onSwipeEnd),this.element.addEventListener("swipecancel",this.onSwipeCancel),this.element.addEventListener("swipe",this.onSwipe))}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("topic:current-post-scrolled",this,this._topicScrolled).off("topic:jump-to-post",this,this._collapseFullscreen).off("topic:keyboard-trigger",this,this.keyboardTrigger),c()(window).off("click.hide-fullscreen"),this.site.desktopView&&(this.mediaQuery.removeEventListener("change",this._checkSize),this.appEvents.off("composer:opened",this,this.composerOpened),this.appEvents.off("composer:resize-ended",this,this.composerOpened),this.appEvents.off("composer:closed",this,this.composerClosed),c()("#reply-control").off("div-resized",this._checkSize)),this.site.mobileView&&(this.element.removeEventListener("swipestart",this.onSwipeStart),this.element.removeEventListener("swipeend",this.onSwipeEnd),this.element.removeEventListener("swipecancel",this.onSwipeCancel),this.element.removeEventListener("swipe",this.onSwipe),this._swipeEvents.removeTouchListeners())}},[(0,a.classNameBindings)("info.topicProgressExpanded:topic-progress-expanded","info.renderTimeline:with-timeline:with-topic-progress")]),b=(0,i.setComponentTemplate)(_,y)},50843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(49409),r=n(18523),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{get suffix(){return this.args.topic?.archetype==="private_message"?"_pm":""}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"xDbmczrp",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"topic-notifications-tracking"]],[["@onChange","@levelId","@showCaret","@showFullTitle","@prefix","@title","@levels","@suffix"],[[30,1],[30,2],[30,3],[30,4],"topic.notifications",[28,[32,1],["topic.notifications.title"],null],[32,2],[30,0,["suffix"]]]],null],[1,"\\n "]],["@onChange","@levelId","@showCaret","@showFullTitle"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-notifications-tracking.js",scope:()=>[s.default,o.i18n,r.topicLevels],isStrictMode:!0}),this))()}},65868:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(54729),r=n(51969),o=n(76417),a=n(82739);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get displayUnreadPosts(){return this.args.newPosts||this.args.unreadPosts}get newDotText(){return this.currentUser?.trust_level>0?" ":(0,r.i18n)("filters.new.lower_title")}static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"vRrgRhYz",block:'[[[10,1],[14,0,"topic-post-badges"],[12],[41,[30,0,["displayUnreadPosts"]],[[[1," "],[10,3],[15,6,[30,1]],[15,"title",[28,[32,0],["topic.unread_posts"],[["count"],[[30,0,["displayUnreadPosts"]]]]]],[14,0,"badge badge-notification unread-posts"],[12],[1,[30,0,["displayUnreadPosts"]]],[13]],[]],null],[41,[30,2],[[[1," "],[10,3],[15,6,[30,1]],[15,"title",[28,[32,0],["topic.new"],null]],[14,0,"badge badge-notification new-topic"],[12],[1,[30,0,["newDotText"]]],[13]],[]],null],[13]],["@url","@unseen"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-post-badges.js",scope:()=>[r.i18n],isStrictMode:!0}),this))()}},83262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(76417),s=n(70001),r=n(5938),o=n(42433),a=n(93223),l=n(45929),u=n(86211),c=n(62797);let d=(0,n(82739).createTemplateFactory)({id:"unr4AHzT",block:'[[[41,[51,[30,0,["hideProgress"]]],[[[1," "],[18,1,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showBackButton"]],[[[1," "],[10,0],[14,0,"progress-back-container"],[12],[1,"\\n "],[8,[39,4],[[24,0,"btn-primary progress-back"]],[["@label","@action","@icon"],["topic.timeline.back",[30,0,["goBack"]],"arrow-down"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"nav"],[15,"title",[28,[37,6],["topic.progress.title"],null]],[15,"aria-label",[28,[37,6],["topic.progress.title"],null]],[15,0,[52,[30,0,["hideProgress"]],"hidden"]],[14,1,"topic-progress"],[15,5,[28,[37,7],[[30,0,["progressStyle"]]],null]],[12],[1,"\\n "],[10,0],[14,0,"nums"],[12],[1,"\\n "],[10,1],[12],[1,[30,0,["progressPosition"]]],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,"/"],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,[30,0,["postStream","filteredPostsCount"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"bg"],[12],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@name","@connectorTagName"],["after-topic-progress","div"]],null]],["&default"],false,["unless","yield","if","div","d-button","nav","i18n","html-safe","span","plugin-outlet"]]',moduleName:"discourse/components/topic-progress.hbs",isStrictMode:!1}),p=(0,l.isTesting)()?0:500,h=dt7948.c(class extends i.default{elementId="topic-progress-wrapper";docked=!1;withTransitions=null;progressPosition=null;static #e=(()=>dt7948.g(this.prototype,"postStream",[(0,r.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();_streamPercentage=null;hideProgress(e,t,n){let i=this.site.desktopView&&n<2;return!e||!t||i}static #n=(()=>dt7948.n(this.prototype,"hideProgress",[(0,c.default)("postStream.loaded","topic.currentPost","postStream.filteredPostsCount")]))();hugeNumberOfPosts(e){return e>=this.siteSettings.short_progress_text_threshold}static #i=(()=>dt7948.n(this.prototype,"hugeNumberOfPosts",[(0,c.default)("postStream.filteredPostsCount")]))();showBackButton(e,t){if(!t)return;let n=this.get("postStream.stream"),i=n.indexOf(t)||0;return ie}static #l=(()=>dt7948.n(this.prototype,"showBackButton",[(0,c.default)("progressPosition","topic.last_read_post_id")]))();_topicScrolled(e){this.docked?this.setProperties({progressPosition:this.get("postStream.filteredPostsCount"),_streamPercentage:100}):this.setProperties({progressPosition:e.postIndex,_streamPercentage:(100*e.percent).toFixed(2)})}progressStyle(e){return`--progress-bg-width: ${e||0}%`}static #u=(()=>dt7948.n(this.prototype,"progressStyle",[(0,c.default)("_streamPercentage")]))();didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("composer:resized",this,this._composerEvent).on("topic:current-post-scrolled",this,this._topicScrolled),this.prevEvent&&(0,o.scheduleOnce)("afterRender",this,this._topicScrolled,this.prevEvent),(0,o.scheduleOnce)("afterRender",this,this._startObserver),(0,u.default)(this._addCssTransitions,p)}willDestroyElement(){super.willDestroyElement(...arguments),this._topicBottomObserver?.disconnect(),this.appEvents.off("composer:resized",this,this._composerEvent).off("topic:current-post-scrolled",this,this._topicScrolled)}_addCssTransitions(){this.isDestroying||this.isDestroyed||this.set("withTransitions",!0)}static #c=(()=>dt7948.n(this.prototype,"_addCssTransitions",[c.bind]))();_startObserver(){"IntersectionObserver"in window&&(this._topicBottomObserver=this._setupObserver(),this._topicBottomObserver.observe(document.querySelector("#topic-bottom")))}_setupObserver(){let e=document.querySelector("#reply-control")?.clientHeight||50;return new IntersectionObserver(this._intersectionHandler,{threshold:1,rootMargin:`0px 0px -${e}px 0px`})}_composerEvent(){"IntersectionObserver"in window&&(this._topicBottomObserver?.disconnect(),this._startObserver())}_intersectionHandler(e){if(!this.element||this.isDestroying||this.isDestroyed)return;let t=document.querySelector("#reply-control")?.clientHeight||0;if(this.site.desktopView&&t){this.set("docked",!1),this.element.style.setProperty("bottom",`${t}px`);return}if(!0===e[0].isIntersecting)this.set("docked",!0),this.element.style.removeProperty("bottom");else if(e[0].boundingClientRect.top>0){if(this.set("docked",!1),0===t){let e=document.querySelector(".posts-filtered-notice")?.clientHeight||0;0===e?this.element.style.removeProperty("bottom"):this.element.style.setProperty("bottom",`${e}px`)}else this.element.style.setProperty("bottom",`${t}px`)}}static #d=(()=>dt7948.n(this.prototype,"_intersectionHandler",[c.bind]))();click(e){e.target.closest("#topic-progress")&&this.toggleProperty("expanded")}goBack(){this.jumpToPost(this.get("topic.last_read_post_number"))}static #p=(()=>dt7948.n(this.prototype,"goBack",[s.action]))()},[(0,a.classNameBindings)("docked","withTransitions")]),m=(0,i.setComponentTemplate)(d,h)},59567:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(54729),l=n(64151),u=n(59874),c=n(21237),d=n(51969),p=n(76417),h=n(82739);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get canAct(){return this.currentUser&&!this.args.disableActions}togglePinned(e){let{topic:t}=this.args;t.pinned?t.clearPin():t.rePin(),e.preventDefault()}static #n=(()=>dt7948.n(this.prototype,"togglePinned",[o.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"+lICzoQs",block:'[[[10,1],[14,0,"topic-statuses"],[12],[41,[28,[32,0],[[30,1,["closed"]],[30,1,["archived"]]],null],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.locked_and_archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["lock"],null]],[13]],[]],[[[41,[30,1,["closed"]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.locked.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["lock"],null]],[13]],[]],[[[41,[30,1,["archived"]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["lock"],null]],[13]],[]],null]],[]]]],[]]],[41,[30,1,["is_warning"]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.warning.help"],null]],[14,0,"topic-status topic-status-warning"],[12],[1,[28,[32,2],["envelope"],null]],[13]],[]],[[[41,[28,[32,0],[[30,2],[30,1,["isPrivateMessage"]]],null],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.personal_message.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["envelope"],null]],[13]],[]],null]],[]]],[41,[30,1,["pinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,1],["topic_statuses.pinned.help"],null]],[24,0,"topic-status"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,2],["thumbtack"],null]],[13]],[]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.pinned.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["thumbtack"],null]],[13]],[]]]],[]],[[[41,[30,1,["unpinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,1],["topic_statuses.unpinned.help"],null]],[24,0,"topic-status"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,2],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.unpinned.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,2],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]]]],[]],null]],[]]],[41,[30,1,["invisible"]],[[[10,1],[15,"title",[28,[32,1],["topic_statuses.unlisted.help"],[["unlistedReason"],[[30,1,["visibilityReasonTranslated"]]]]]],[14,0,"topic-status"],[12],[1,[28,[32,2],["far-eye-slash"],null]],[13]],[]],null],[8,[32,4],null,[["@name","@outletArgs"],["after-topic-status",[28,[32,5],null,[["topic"],[[30,1]]]]]],null],[13]],["@topic","@showPrivateMessageIcon"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-status.js",scope:()=>[l.and,d.i18n,c.default,r.on,u.default,s.hash],isStrictMode:!0}),this))()}},97278:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(28564),r=n(70001),o=n(79635),a=n(54150),l=n(27147),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"docked",[s.tracked],function(){return!1}))();#oD=(()=>void dt7948.i(this,"docked"))();static #n=(()=>dt7948.g(this.prototype,"dockedBottom",[s.tracked],function(){return!1}))();#oI=(()=>void dt7948.i(this,"dockedBottom"))();enteredIndex=(()=>this.args.prevEvent?this.args.prevEvent.postIndex-1:this.args.enteredIndex)();addShowClass=(()=>(0,o.modifier)(e=>{this.args.fullscreen&&e.classList.add("show")}))();setDocked(e){this.docked!==e&&(this.docked=e)}static #i=(()=>dt7948.n(this.prototype,"setDocked",[r.action]))();setDockedBottom(e){this.dockedBottom!==e&&(this.dockedBottom=e)}static #l=(()=>dt7948.n(this.prototype,"setDockedBottom",[r.action]))();static #u=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"0CnzALOn",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["timeline-container",[52,[30,1],"timeline-fullscreen"],[52,[30,0,["docked"]],"timeline-docked"],[52,[30,0,["dockedBottom"]],"timeline-docked-bottom"]],null]],[4,[30,0,["addShowClass"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"topic-timeline"],[12],[1,"\\n "],[8,[32,1],null,[["@model","@enteredIndex","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost","@setDocked","@setDockedBottom"],[[30,2],[30,0,["enteredIndex"]],[30,3],[30,4],[30,5],[30,6],[30,7],[30,1],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,0,["setDocked"]],[30,0,["setDockedBottom"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@fullscreen","@model","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline.js",scope:()=>[l.default,a.default],isStrictMode:!0}),this))()}},17243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(92976),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"RacGJQty",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary btn-small back-button"]],[["@action","@label","@title"],[[30,1],"topic.timeline.back","topic.timeline.back_description"]],null],[1,"\\n"]],["@onGoBack"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/back-button.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"back-button:BackButton"))},54150:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SCROLLER_HEIGHT:()=>M,default:()=>R,setDesktopScrollAreaHeight:()=>O,timelineDate:()=>L});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(68741),u=n(54729),c=n(35804),d=n(64151),p=n(92976),h=n(59874),m=n(9164),g=n(30280),f=n(98358),_=n(12223),y=n(17307),b=n(38303),w=n(8032),k=n(75957),x=n(21237),T=n(62797),S=n(9475),C=n(51969),E=n(6449),A=n(17243),D=n(22227),I=n(76417),P=n(82739);let M=50,F=170,N=300;function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{min:170,max:300};F=e.min,N=e.max}function L(e){let t=e.getFullYear()===new Date().getFullYear()?"long_no_year_no_time":"timeline_date";return moment(e).format((0,C.i18n)(`dates.${t}`))}class R extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"site",[u.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"showButton",[s.tracked],function(){return!1}))();#oP=(()=>void dt7948.i(this,"showButton"))();static #c=(()=>dt7948.g(this.prototype,"current",[s.tracked]))();#oM=(()=>void dt7948.i(this,"current"))();static #d=(()=>dt7948.g(this.prototype,"percentage",[s.tracked],function(){return this._percentFor(this.args.model,this.args.enteredIndex)}))();#oF=(()=>void dt7948.i(this,"percentage"))();static #p=(()=>dt7948.g(this.prototype,"total",[s.tracked]))();#oN=(()=>void dt7948.i(this,"total"))();static #h=(()=>dt7948.g(this.prototype,"date",[s.tracked]))();#nU=(()=>void dt7948.i(this,"date"))();static #m=(()=>dt7948.g(this.prototype,"lastReadPercentage",[s.tracked],function(){return null}))();#oO=(()=>void dt7948.i(this,"lastReadPercentage"))();static #g=(()=>dt7948.g(this.prototype,"lastRead",[s.tracked]))();#oL=(()=>void dt7948.i(this,"lastRead"))();static #E=(()=>dt7948.g(this.prototype,"lastReadTop",[s.tracked]))();#oR=(()=>void dt7948.i(this,"lastReadTop"))();static #A=(()=>dt7948.g(this.prototype,"before",[s.tracked]))();#oU=(()=>void dt7948.i(this,"before"))();static #D=(()=>dt7948.g(this.prototype,"after",[s.tracked]))();#oj=(()=>void dt7948.i(this,"after"))();static #I=(()=>dt7948.g(this.prototype,"timelineScrollareaStyle",[s.tracked]))();#oB=(()=>void dt7948.i(this,"timelineScrollareaStyle"))();static #G=(()=>dt7948.g(this.prototype,"dragging",[s.tracked],function(){return!1}))();#oz=(()=>void dt7948.i(this,"dragging"))();static #Y=(()=>dt7948.g(this.prototype,"excerpt",[s.tracked],function(){return""}))();#o$=(()=>void dt7948.i(this,"excerpt"))();intersectionObserver=null;scrollareaElement=null;scrollerElement=null;dragOffset=null;constructor(){super(...arguments),this.site.desktopView&&(this.appEvents.on("topic:current-post-scrolled",this.postScrolled),this.appEvents.on("composer:opened",this.calculatePosition),this.appEvents.on("composer:resized",this.calculatePosition),this.appEvents.on("composer:closed",this.calculatePosition),this.appEvents.on("post-stream:posted",this.calculatePosition)),this.intersectionObserver=new IntersectionObserver(e=>{for(let t of e){let e=t.boundingClientRect;"topic-bottom"===t.target.id?this.topicBottom=e.y+window.scrollY:this.topicTop=e.y+window.scrollY}});let e=[document.querySelector(".container.posts"),document.querySelector("#topic-bottom")];for(let t=0;t0}get style(){return(0,c.htmlSafe)(`height: ${this.scrollareaHeight}px`)}get beforePadding(){return(0,c.htmlSafe)(`height: ${this.before}px`)}get afterPadding(){return(0,c.htmlSafe)(`height: ${this.after}px`)}get showDockedButton(){return this.site.desktopView&&this.hasBackPosition&&!this.showButton}get hasBackPosition(){return this.lastRead&&this.lastRead>3&&this.lastRead>this.current&&Math.abs(this.lastRead-this.current)>3&&Math.abs(this.lastRead-this.total)>1&&this.lastRead!==this.total}get lastReadStyle(){return(0,c.htmlSafe)(`height: 20px; top: ${this.topPosition}px`)}get topPosition(){let e=this.scrollareaHeight-10;return this.lastReadTop>e?e:this.lastReadTop}get scrollareaHeight(){let e=document.getElementById("reply-control").offsetHeight||0,t=document.querySelector(".d-header")?.offsetHeight||0,n=(window.innerHeight-e-t)/2;return Math.max(this.site.mobileView?170:F,Math.min(n,this.site.mobileView?300:N))}get startDate(){return L(this.args.model.createdAt)}get nowDateOptions(){return{customTitle:(0,C.i18n)("topic_entrance.jump_bottom_button_title"),addAgo:!0,defaultFormat:L}}get nowDate(){return this.args.model.get("last_posted_at")||this.args.model.get("created_at")}get lastReadHeight(){return Math.round(this.lastReadPercentage*this.scrollareaHeight)}calculatePosition(){let e;this.timelineScrollareaStyle=(0,c.htmlSafe)(`height: ${this.scrollareaHeight}px`);let t=this.args.model,n=t.postStream;this.total=n.filteredPostsCount,this.scrollPosition=this.clamp(Math.floor(this.total*this.percentage),0,this.total)+1,this.current=this.clamp(this.scrollPosition,1,this.total);let i=n.closestDaysAgoFor(this.current);if(void 0===i){let t=n.posts.findBy("id",n.stream[this.current]);t&&(e=new Date(t.created_at))}else null!==i?(e=new Date).setDate(e.getDate()-i||0):e=null;this.date=e;let s=t.last_read_post_number,r=t.last_read_post_id;if(r&&s){let e=n.stream.indexOf(r)+1;this.lastRead=e,this.lastReadPercentage=this._percentFor(t,e)}this.position!==this.scrollPosition&&(this.position=this.scrollPosition,this.updateScrollPosition(this.current)),this.before=this.scrollareaRemaining()*this.percentage,this.after=this.scrollareaHeight-this.before-M,null!==this.percentage&&this.hasBackPosition&&(this.lastReadTop=Math.round(this.lastReadPercentage*this.scrollareaHeight),this.showButton=this.before+M-5this.lastReadTop+25)}static #Q=(()=>dt7948.n(this.prototype,"calculatePosition",[T.bind]))();updateScrollPosition(e){if(!this.args.fullscreen)return;let t=this.args.model.postStream;!this.position!==e&&t.excerpt(e-1).then(t=>{if(t&&this.position===e){let e="";t.username&&(e=""+t.username+": "),t.excerpt?this.excerpt=e+t.excerpt:t.action_code&&(this.excerpt=`${e} ${(0,k.actionDescriptionHtml)(t.action_code,t.created_at,t.username)}`)}})}static #J=(()=>dt7948.n(this.prototype,"updateScrollPosition",[(0,T.debounce)(50)]))();updatePercentage(e){e.preventDefault();let t=(e.pageY||e.touches[0].pageY)-this.dragOffset,n=S.default.offset(this.scrollareaElement).top,i=this.scrollareaElement.offsetHeight,s=this.scrollerElement.offsetHeight;this.percentage=this.clamp(parseFloat(t-(n+s/2))/(i-s)),this.commit()}static #X=(()=>dt7948.n(this.prototype,"updatePercentage",[a.action]))();didStartDrag(e){let t=e.pageY||e.touches[0].pageY,n=S.default.offset(this.scrollerElement).top+this.scrollerElement.offsetHeight/2;this.dragOffset=t-n,this.dragging=!0}static #Z=(()=>dt7948.n(this.prototype,"didStartDrag",[T.bind]))();dragMove(e){e.stopPropagation(),e.preventDefault(),this.updatePercentage(e)}static #ee=(()=>dt7948.n(this.prototype,"dragMove",[T.bind]))();didEndDrag(){this.dragging=!1,this.dragOffset=null,this.commit()}static #et=(()=>dt7948.n(this.prototype,"didEndDrag",[T.bind]))();postScrolled(e){this.current=e.postIndex,this.percentage=e.percent,this.calculatePosition(),this.dockCheck()}static #en=(()=>dt7948.n(this.prototype,"postScrolled",[T.bind]))();goBack(){this.args.jumpToIndex(this.lastRead)}static #ei=(()=>dt7948.n(this.prototype,"goBack",[a.action]))();dockCheck(){let e=document.querySelector(".timeline-container"),t=e&&e.offsetHeight||400,n=this.dockAt,i=(0,w.headerOffset)()+window.pageYOffset;this.dockBottom=!1,ithis.topicBottom?(this.dockAt=parseInt(this.topicBottom-t,10),this.dockBottom=!0,this.dockAt<0&&(this.dockAt=0)):this.dockAt=null,this.dockAt!==n&&(this.dockAt?(this.args.setDocked(!0),this.dockBottom&&this.args.setDockedBottom(!0)):(this.args.setDocked(!1),this.args.setDockedBottom(!1)))}commit(){this.calculatePosition(),this.dragging||(this.current===this.scrollPosition?this.args.jumpToIndex(this.current):this.args.jumpEnd())}clamp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(Math.min(e,n),t)}scrollareaRemaining(){return this.scrollareaHeight-M}_percentFor(e,t){let n=e.postStream.filteredPostsCount;switch(t){case 0:return 0;case n-1:return 1;default:return this.clamp(parseFloat(t)/n)}}registerScrollarea(e){this.scrollareaElement=e}static #es=(()=>dt7948.n(this.prototype,"registerScrollarea",[a.action]))();registerScroller(e){this.scrollerElement=e}static #er=(()=>dt7948.n(this.prototype,"registerScroller",[a.action]))();static #eo=(()=>(0,I.setComponentTemplate)((0,P.createTemplateFactory)({id:"+qWPqGik",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"title"],[12],[1,"\\n "],[10,"h2"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["firstPostUrl"]]],[24,0,"fancy-title"],[4,[32,0],["click",[30,3]],null],[12],[1,[30,0,["topicTitle"]]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[28,[32,1],[[30,0,["siteSettings","topic_featured_link_enabled"]],[30,0,["showTags"]]],null],[[[1," "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["showTags"]],[[[1," "],[10,0],[14,0,"list-tags"],[12],[1,"\\n "],[1,[28,[32,2],[[30,2]],[["mode","tags"],["list",[30,2,["tags"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1," "],[1,[28,[32,3],[[30,2]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[28,[32,5],[[30,2,["isPrivateMessage"]]],null],[30,2,["category"]]],null],[[[1," "],[10,0],[14,0,"topic-category"],[12],[1,"\\n"],[41,[30,2,["category","parentCategory"]],[[[1," "],[1,[28,[32,6],[[30,2,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,6],[[30,2,["category"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["excerpt"]],[[[1," "],[10,0],[14,0,"post-excerpt"],[12],[1,[28,[32,7],[[30,0,["excerpt"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[28,[32,5],[[30,1]],null],[30,0,["currentUser"]]],null],[[[1," "],[10,0],[14,0,"timeline-controls"],[12],[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["timeline-controls-before",[28,[32,9],null,[["model"],[[30,2]]]]]],null],[1,"\\n "],[8,[32,10],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,2],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTimeLineScrollArea"]],[[[1," "],[8,[32,11],null,[["@id","@titleText","@contentText","@placement","@triggerSelector","@priority"],["topic_timeline",[28,[32,12],["user_tips.topic_timeline.title"],null],[28,[32,12],["user_tips.topic_timeline.content"],null],"left",".timeline-scrollarea-wrapper",900]],null],[1,"\\n\\n "],[10,0],[14,0,"timeline-scrollarea-wrapper"],[12],[1,"\\n "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["firstPostUrl"]]],[16,"title",[28,[32,12],["topic_entrance.jump_top_button_title"],null]],[24,0,"start-date"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[30,0,["startDate"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[11,0],[24,0,"timeline-scrollarea"],[16,5,[30,0,["timelineScrollareaStyle"]]],[4,[32,13],[[30,0,["registerScrollarea"]]],null],[12],[1,"\\n "],[11,0],[16,5,[30,0,["beforePadding"]]],[24,0,"timeline-padding"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[13],[1,"\\n\\n "],[8,[32,14],[[4,[32,13],[[30,0,["registerScroller"]]],null]],[["@current","@total","@onGoBack","@fullscreen","@showDockedButton","@date","@didStartDrag","@dragMove","@didEndDrag"],[[30,0,["current"]],[30,0,["total"]],[30,0,["onGoBack"]],[30,1],[30,0,["showDockedButton"]],[30,0,["date"]],[30,0,["didStartDrag"]],[30,0,["dragMove"]],[30,0,["didEndDrag"]]]],null],[1,"\\n\\n "],[11,0],[16,5,[30,0,["afterPadding"]]],[24,0,"timeline-padding"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[13],[1,"\\n\\n"],[41,[28,[32,4],[[30,0,["hasBackPosition"]],[30,0,["showButton"]]],null],[[[1," "],[10,0],[14,0,"timeline-last-read"],[15,5,[30,0,["lastReadStyle"]]],[12],[1,"\\n "],[1,[28,[32,15],["minus"],[["class"],["progress"]]]],[1,"\\n "],[8,[32,16],null,[["@onGoBack"],[[30,0,["goBack"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n "],[11,3],[16,6,[30,2,["lastPostUrl"]]],[24,0,"now-date"],[4,[32,0],["click",[30,0,["updatePercentage"]]],null],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,17],[[30,0,["nowDate"]],[30,0,["nowDateOptions"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"timeline-footer-controls"],[12],[1,"\\n"],[41,[30,0,["displaySummary"]],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["summary.short_title"],null]],[24,0,"show-summary btn-small"]],[["@action","@icon","@label"],[[30,17],"layer-group","summary.short_label"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[30,0,["currentUser"]],[28,[32,5],[[30,1]],null]],null],[[[41,[30,0,["canCreatePost"]],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["topic.reply.help"],null]],[24,0,"btn-default create reply-to-post"]],[["@action","@icon"],[[28,[32,19],[[30,18],null],null],"reply"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,18],[[16,"title",[28,[32,12],["topic.progress.jump_prompt_long"],null]],[24,0,"timeline-open-jump-to-post-prompt-btn jump-to-post"]],[["@action","@label"],[[30,19],"topic.progress.jump_prompt"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,4],[[30,0,["currentUser"]],[30,0,["site","desktopView"]]],null],[[[1," "],[8,[32,20],null,[["@topic","@expanded"],[[30,2],false]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,8],null,[["@name","@outletArgs"],["timeline-footer-controls-after",[28,[32,9],null,[["model","fullscreen"],[[30,2],[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@fullscreen","@model","@jumpTop","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@showTopReplies","@replyToPost","@jumpToPostPrompt"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/container.js",scope:()=>[o.on,d.or,y.default,b.default,d.and,d.not,_.default,c.htmlSafe,h.default,r.hash,m.default,g.default,C.i18n,l.default,D.default,x.default,A.default,f.default,p.default,r.fn,E.default],isStrictMode:!0}),this))()}},22227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(35804),r=n(64151),o=n(54150),a=n(37492),l=n(51969),u=n(17243),c=n(76417),d=n(82739);class p extends i.default{style=(()=>(0,s.htmlSafe)(`height: ${o.SCROLLER_HEIGHT}px`))();get repliesShort(){return(0,l.i18n)("topic.timeline.replies_short",{current:this.args.current,total:this.args.total})}get timelineAgo(){return(0,o.timelineDate)(this.args.date)}static #e=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"/B3sS+Np",block:'[[[1,"\\n "],[11,0],[16,5,[30,0,["style"]]],[24,0,"timeline-scroller"],[17,1],[4,[32,0],null,[["didStartDrag","didEndDrag","dragMove"],[[30,2],[30,3],[30,4]]]],[12],[1,"\\n"],[41,[30,5],[[[1," "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n "],[1,[30,0,["repliesShort"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n "],[1,[30,0,["timelineAgo"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,1],[[30,7],[28,[32,2],[[30,8]],null]],null],[[[1," "],[8,[32,3],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n "],[1,[30,0,["repliesShort"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n "],[1,[30,0,["timelineAgo"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,1],[[30,7],[28,[32,2],[[30,8]],null]],null],[[[1," "],[8,[32,3],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["&attrs","@didStartDrag","@didEndDrag","@dragMove","@fullscreen","@date","@showDockedButton","@dragging","@onGoBack"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-timeline/scroller.js",scope:()=>[a.default,r.and,r.not,u.default],isStrictMode:!0}),this))()}},28420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var i=n(76417),s=n(42433),r=n(35804),o=n(93223),a=n(9630),l=n(37436),u=n(88253),c=n(45929),d=n(20762),p=n(86211),h=n(62797),m=n(51969);let g=(0,n(82739).createTemplateFactory)({id:"bf8cHgkG",block:'[[[41,[30,0,["showTopicTimer"]],[[[1," "],[10,"h3"],[14,0,"topic-timer-heading"],[12],[1,"\\n "],[10,1],[15,"title",[30,0,["title"]]],[12],[1,"\\n "],[1,[30,0,["clockIcon"]]],[1,"\\n "],[1,[30,0,["notice"]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-timer-modify"],[12],[1,"\\n"],[41,[30,0,["showEdit"]],[[[1," "],[8,[39,4],[[24,0,"topic-timer-edit no-text"]],[["@title","@icon","@action"],["post.controls.edit_timer","pencil",[30,0,["showTopicTimerModal"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showTrashCan"]],[[[1," "],[8,[39,4],[[24,0,"topic-timer-remove no-text"]],[["@title","@icon","@action"],["post.controls.remove_timer","trash-can",[30,0,["removeTopicTimer"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","h3","span","div","d-button"]]',moduleName:"discourse/components/topic-timer-info.hbs",isStrictMode:!1}),f=dt7948.c(class extends i.default{clockIcon=(()=>(0,r.htmlSafe)(`${(0,d.iconHTML)("far-clock")}`))();trashLabel=(()=>(0,m.i18n)("post.controls.remove_timer"))();title=null;notice=null;showTopicTimer=null;showTopicTimerModal=null;removeTopicTimer=null;_delayedRerender=null;setupRenderer(){this.renderTopicTimer()}static #e=(()=>dt7948.n(this.prototype,"setupRenderer",[(0,a.on)("didReceiveAttrs")]))();cancelDelayedRenderer(){this._delayedRerender&&(0,s.cancel)(this._delayedRerender)}static #n=(()=>dt7948.n(this.prototype,"cancelDelayedRenderer",[(0,a.on)("willDestroyElement")]))();canModifyTimer(){return this.currentUser&&this.currentUser.get("canManageTopic")}static #i=(()=>dt7948.n(this.prototype,"canModifyTimer",[h.default]))();showTrashCan(e,t){return e&&t}static #l=(()=>dt7948.n(this.prototype,"showTrashCan",[(0,h.default)("canModifyTimer","removeTopicTimer")]))();showEdit(e,t){return e&&t}static #u=(()=>dt7948.n(this.prototype,"showEdit",[(0,h.default)("canModifyTimer","showTopicTimerModal")]))();additionalOpts(){return{}}renderTopicTimer(){let e=this.statusType===l.DELETE_REPLIES_TYPE;if(!e&&!this.basedOnLastPost&&(!this.executeAt||this.executeAtthis.set("executeAt",null));return}let o=moment(this.executeAt),a=moment.duration(o-moment()),d=a.asMinutes();if(d>0||e||this.basedOnLastPost){if(!this.executeAt)return;let e=parseInt(this.durationMinutes,10)||0,t={timeLeft:a.humanize(!0),duration:moment.duration(e,"minutes").humanize({s:60,m:60,h:24})},n=this.categoryId;if(n){let e=u.default.findById(n);t=Object.assign({categoryName:e.get("slug"),categoryUrl:e.get("url")},t)}t=Object.assign(t,this.additionalOpts()),this.setProperties({title:(0,r.htmlSafe)(`${moment(this.executeAt).format("LLLL")}`),notice:(0,r.htmlSafe)(`${(0,m.i18n)(this._noticeKey(),t)}`),showTopicTimer:!0}),(0,c.isTesting)()||(this._delayedRerender=(0,p.default)(()=>{this.renderTopicTimer()},this.rerenderDelay(d)))}else this.set("showTopicTimer",null)}rerenderDelay(e){return e>2160?432e5:e>1410?36e5:e>90?18e5:e>2?6e4:1e3}_noticeKey(){let e=this.statusType;return"silent_close"===e&&(e="close"),this.basedOnLastPost&&"close"===e&&(e="close_after_last_post"),`topic.status_update_notice.auto_${e}`}},[(0,o.classNames)("topic-timer-info")]),_=(0,i.setComponentTemplate)(g,f)},96487:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addTopicTitleDecorator:()=>f,default:()=>y,resetTopicTitleDecorators:()=>_,topicTitleDecorators:()=>g});var i=n(37138),s=n(39882),r=n(87075),o=n(70001),a=n(68741),l=n(77843),u=n(54729),c=n(59874),d=n(20802),p=n(8381),h=n(76417),m=n(82739);let g=[];function f(e){g.push(e)}function _(){g.length=0}class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"header",[u.service]))();#tI=(()=>void dt7948.i(this,"header"))();applyDecorators(e){let t=e.querySelector(".fancy-title");t&&g.forEach(e=>e(this.args.model,t,"topic-title"))}static #n=(()=>dt7948.n(this.prototype,"applyDecorators",[o.action]))();keyDown(e){"Escape"===e.key?(e.preventDefault(),this.args.cancelled()):"Enter"===e.key&&(e.ctrlKey||e.metaKey||(0,d.isiPad)()&&e.altKey)&&(e.preventDefault(),this.args.save(void 0,e))}static #i=(()=>dt7948.n(this.prototype,"keyDown",[o.action]))();handleIntersectionChange(e){this.header.mainTopicTitleVisible=e.isIntersecting||e.boundingClientRect.top>0}static #l=(()=>dt7948.n(this.prototype,"handleIntersectionChange",[o.action]))();handleTitleDestroy(){this.header.mainTopicTitleVisible=!1}static #u=(()=>dt7948.n(this.prototype,"handleTitleDestroy",[o.action]))();static #c=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"fnHpDzzS",block:'[[[1,"\\n"],[1," "],[11,0],[24,1,"topic-title"],[24,0,"container"],[4,[32,0],[[30,0,["applyDecorators"]]],null],[4,[32,1],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],[[30,0,["handleIntersectionChange"]]],null],[4,[32,3],[[30,0,["handleTitleDestroy"]]],null],[12],[1,"\\n "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["topic-title","div",[28,[32,5],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@model","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-title.js",scope:()=>[a.default,r.on,p.default,l.default,c.default,s.hash],isStrictMode:!0}),this))()}},87564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(87075),r=n(70001),o=n(76417),a=n(82739);class l extends i.default{onToggle(e){e.target.checked?this.args.selectedList.addObject(this.args.selectedId):this.args.selectedList.removeObject(this.args.selectedId)}static #e=(()=>dt7948.n(this.prototype,"onToggle",[r.action]))();static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"dXV51MTU",block:'[[[1,"\\n "],[11,1],[16,0,[30,1]],[17,2],[12],[1,"\\n "],[11,"input"],[24,4,"checkbox"],[4,[32,0],["input",[30,0,["onToggle"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "]],["@class","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/track-selected.js",scope:()=>[s.on],isStrictMode:!0}),this))()}},91416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){let e=[];return e.push({id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")}),this.secondFactorBackupEnabled&&e.push({id:"disable",icon:"trash-can",name:(0,r.i18n)("user.second_factor.disable")}),e}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){switch(e){case"edit":this.editSecondFactorBackup();break;case"disable":this.disableSecondFactorBackup()}}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("two-factor-backup-dropdown")])},5960:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var i=n(76417),s=n(70001),r=n(5938),o=n(38075),a=n(71597),l=n(42433),u=n(35804),c=n(97355),d=n(93223),p=n(9630),h=n(14682),m=n.n(h),g=n(57177),f=n(67816),_=n(21765),y=n(87389),b=n(62797),w=n(51969);let k=(0,n(82739).createTemplateFactory)({id:"FDTwb441",block:'[[[10,0],[14,0,"uploaded-image-preview input-xxlarge"],[15,5,[30,0,["backgroundStyle"]]],[12],[1,"\\n"],[41,[30,0,["showingPlaceholder"]],[[[1," "],[10,0],[14,0,"placeholder-overlay"],[15,5,[30,0,["placeholderStyle"]]],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"image-upload-controls"],[12],[1,"\\n "],[11,"label"],[16,0,[29,["btn btn-default pad-left no-text ",[52,[30,0,["disabled"]],"disabled"]]]],[16,"title",[30,0,["disabledReason"]]],[16,"for",[30,0,["computedId"]]],[24,"tabindex","0"],[4,[38,3],["keydown",[30,0,["handleKeyboardActivation"]]],null],[12],[1,"\\n "],[1,[28,[35,4],["far-image"],null]],[1,"\\n "],[8,[39,5],null,[["@registerFileInput","@fileInputDisabled","@acceptedFormatsOverride","@fileInputId"],[[30,0,["uppyUpload","setup"]],[30,0,["disabled"]],"image/*",[30,0,["computedId"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1," "],[8,[39,6],[[24,0,"btn-danger pad-left no-text"]],[["@action","@icon"],[[28,[37,7],[[30,0],"trash"],null],"trash-can"]],null],[1,"\\n "],[8,[39,6],[[16,"data-lightbox-trigger",[52,[30,0,["experimentalLightboxEnabled"]],"true"]],[24,0,"btn-default image-uploader-lightbox-btn no-text"]],[["@icon","@title","@disabled","@action"],["discourse-expand","expand",[30,0,["loadingLightbox"]],[52,[51,[30,0,["experimentalLightboxEnabled"]]],[30,0,["toggleLightbox"]]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uppyUpload","uploading"]]],"hidden"]]]],[12],[1,[28,[35,10],["upload_selector.uploading"],null]],[1,"\\n "],[1,[30,0,["uppyUpload","uploadProgress"]]],[1,"%"],[13],[1,"\\n "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uppyUpload","processing"]]],"hidden"]]]],[12],[1,[28,[35,10],["upload_selector.processing"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1," "],[10,3],[14,0,"lightbox"],[15,6,[30,0,["imageCDNURL"]]],[15,"title",[30,0,["imageFilename"]]],[14,"rel","nofollow ugc noopener"],[12],[1,"\\n\\n "],[10,0],[14,0,"meta"],[12],[1,"\\n "],[10,1],[14,0,"informations"],[12],[1,"\\n "],[1,[30,0,["imageWidth"]]],[1,"x"],[1,[30,0,["imageHeight"]]],[1,"\\n "],[1,[30,0,["imageFilesize"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","if","label","on","d-icon","pick-files-button","d-button","action","unless","span","i18n","a"]]',moduleName:"discourse/components/uppy-image-uploader.hbs",isStrictMode:!1}),x=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"disabled",[(0,r.or)("notAllowed","uppyUpload.uploading","uppyUpload.processing")]))();#F=(()=>void dt7948.i(this,"disabled"))();uppyUpload=null;setupUppyUpload(){this.uppyUpload=new _.default((0,a.getOwner)(this),{id:this.id,type:this.type,additionalParams:this.additionalParams,validateUploadedFilesOptions:{imagesOnly:!0},uploadDropTargetOptions:()=>({target:document.querySelector(`#${this.id} .uploaded-image-preview`)}),uploadDone:e=>{this.setProperties({imageFilesize:e.human_filesize,imageFilename:e.original_filename,imageWidth:e.width,imageHeight:e.height}),this.onUploadDone?this.onUploadDone(e):this.set("imageUrl",e.url)}})}static #n=(()=>dt7948.n(this.prototype,"setupUppyUpload",[(0,p.on)("init")]))();computedId(e){return e?`${e}__input`:`${(0,o.guidFor)(this)}__input`}static #i=(()=>dt7948.n(this.prototype,"computedId",[(0,b.default)("id")]))();experimentalLightboxEnabled(e){return e}static #l=(()=>dt7948.n(this.prototype,"experimentalLightboxEnabled",[(0,b.default)("siteSettings.enable_experimental_lightbox")]))();disabledReason(e,t){if(e&&t)return(0,w.i18n)("post.errors.no_uploads_authorized")}static #u=(()=>dt7948.n(this.prototype,"disabledReason",[(0,b.default)("disabled","notAllowed")]))();notAllowed(){return!(0,f.authorizesOneOrMoreExtensions)(this.currentUser?.staff,this.siteSettings)}static #c=(()=>dt7948.n(this.prototype,"notAllowed",[(0,b.default)("currentUser.staff","siteSettings.{authorized_extensions,authorized_extensions_for_staff}")]))();showingPlaceholder(e,t){return!e&&t}static #d=(()=>dt7948.n(this.prototype,"showingPlaceholder",[(0,b.default)("imageUrl","placeholderUrl")]))();placeholderStyle(e){return(0,c.isEmpty)(e)?(0,u.htmlSafe)(""):(0,u.htmlSafe)(`background-image: url(${e})`)}static #p=(()=>dt7948.n(this.prototype,"placeholderStyle",[(0,b.default)("placeholderUrl")]))();imageCDNURL(e){return(0,c.isEmpty)(e)?(0,u.htmlSafe)(""):(0,y.getURLWithCDN)(e)}static #h=(()=>dt7948.n(this.prototype,"imageCDNURL",[(0,b.default)("imageUrl")]))();backgroundStyle(e){return(0,u.htmlSafe)(`background-image: url(${e})`)}static #m=(()=>dt7948.n(this.prototype,"backgroundStyle",[(0,b.default)("imageCDNURL")]))();imageBaseName(e){if(!(0,c.isEmpty)(e))return e.split("/").slice(-1)[0]}static #g=(()=>dt7948.n(this.prototype,"imageBaseName",[(0,b.default)("imageUrl")]))();_applyLightbox(){this.experimentalLightboxEnabled?(0,g.setupLightboxes)({container:this.element,selector:".lightbox"}):(0,l.next)(()=>(0,g.default)(this.element,this.siteSettings))}static #E=(()=>dt7948.n(this.prototype,"_applyLightbox",[(0,p.on)("didRender")]))();_closeOnRemoval(){this.experimentalLightboxEnabled?(0,g.cleanupLightboxes)():m().magnificPopup?.instance&&m().magnificPopup.instance.close()}static #A=(()=>dt7948.n(this.prototype,"_closeOnRemoval",[(0,p.on)("willDestroyElement")]))();toggleLightbox(){m()(this.element.querySelector("a.lightbox"))?.magnificPopup("open")}static #D=(()=>dt7948.n(this.prototype,"toggleLightbox",[s.action]))();trash(){this.onUploadDeleted?this.onUploadDeleted():this.setProperties({imageUrl:null})}static #I=(()=>dt7948.n(this.prototype,"trash",[s.action]))();handleKeyboardActivation(e){if("Enter"===e.key||" "===e.key){e.preventDefault();let t=document.getElementById(this.computedId);t&&!this.disabled&&t.click()}}static #G=(()=>dt7948.n(this.prototype,"handleKeyboardActivation",[s.action]))()},[(0,d.classNames)("image-uploader")]),T=(0,i.setComponentTemplate)(k,x)},13593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(55990),o=n(62797);let a=(0,n(82739).createTemplateFactory)({id:"/5P0TS+t",block:'[[[41,[30,0,["flair"]],[[[1," "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["flair","flairName"]],[30,0,["flair","flairUrl"]],[30,0,["flair","flairBgColor"]],[30,0,["flair","flairColor"]]]],null],[1,"\\n"]],[]],null]],[],false,["if","avatar-flair"]]',moduleName:"discourse/components/user-avatar-flair.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{flair(e){if(!e||!e.flair_group_id)return;if(e.flair_url||e.flair_bg_color)return{flairName:e.flair_name,flairUrl:e.flair_url,flairBgColor:e.flair_bg_color,flairColor:e.flair_color};let t=(0,r.default)(this.site,e);if(t)return{flairName:t.flair_name,flairUrl:t.flair_url,flairBgColor:t.flair_bg_color,flairColor:t.flair_color}}static #e=(()=>dt7948.n(this.prototype,"flair",[(0,o.default)("user")]))()},[(0,s.tagName)("")]),u=(0,i.setComponentTemplate)(a,l)},2674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(78141),r=n(76417),o=n(82739);class a extends i.default{get showGrantCount(){return this.args.count>1}get badgeUrl(){let e=this.args.user?.username_lower;return e=e?`?username=${e}`:"",this.args.badge.url+e}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"vai7UlNK",block:'[[[1,"\\n "],[10,3],[14,0,"user-card-badge-link"],[15,6,[30,0,["badgeUrl"]]],[12],[1,"\\n "],[8,[32,0],null,[["@badge","@showName"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showGrantCount"]],[[[1," "],[10,1],[14,0,"count"],[12],[1," (×"],[1,[30,3]],[1,")"],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@badge","@showName","@count"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-badge.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},43349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(70001),s=n(5938),r=n(54836),o=n(97355),a=n(93223),l=n(9630),u=n(82048),c=n(43900),d=n(28147),p=n(38536),h=n(3737),m=n(59621),g=n(62167),f=n(20802),_=n(41958),y=n(87389),b=n(62797),w=n(51969);let k=(0,n(82739).createTemplateFactory)({id:"y6vY65DC",block:'[[[41,[30,0,["visible"]],[[[1," "],[8,[39,1],null,[["@name","@outletArgs"],["before-user-card-content",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["user-card-main-info",[28,[37,2],null,[["user","post","contentHidden","handleShowUser"],[[30,0,["user"]],[30,0,["post"]],[30,0,["contentHidden"]],[30,0,["handleShowUser"]]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-card-avatar"],[14,"aria-hidden","true"],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1," "],[10,1],[14,0,"card-huge-avatar"],[12],[1,[28,[35,5],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"card-huge-avatar"],[24,"tabindex","-1"],[4,[38,7],["click",[30,0,["handleShowUser"]]],null],[12],[1,[28,[35,5],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[39,8],null,[["@user"],[[30,0,["user"]]]],null],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-avatar-flair","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"names"],[12],[1,"\\n "],[10,0],[15,0,[29,["names__primary\\n ",[30,0,["staff"]],"\\n ",[30,0,["newUser"]],"\\n ",[52,[30,0,["nameFirst"]],"full-name","username"]]]],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1," "],[10,1],[14,0,"name-username-wrapper"],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,9],[[30,0,["user","username"]]],null]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"user-profile-link"],[16,"aria-label",[28,[37,10],["user.profile_link"],[["username"],[[30,0,["user","username"]]]]]],[4,[38,7],["click",[30,0,["handleShowUser"]]],null],[12],[1,"\\n "],[10,1],[14,0,"name-username-wrapper"],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,9],[[30,0,["user","username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,11],[[30,0,["user"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-username","div",[28,[37,2],null,[["user","showUser"],[[30,0,["user"]],[30,0,["handleShowUser"]]]]]]],null],[1,"\\n"],[41,[30,0,["nameFirst"]],[[[1," "],[10,0],[14,0,"names__secondary username"],[12],[1,[30,0,["user","username"]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","name"]],[[[1," "],[10,0],[14,0,"names__secondary full-name"],[12],[1,[30,0,["user","name"]]],[13],[1,"\\n"]],[]],null]],[]]],[41,[30,0,["user","title"]],[[[1," "],[10,0],[14,0,"names__secondary"],[12],[1,[30,0,["user","title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","staged"]],[[[1," "],[10,0],[14,0,"names__secondary staged"],[12],[1,[28,[35,10],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasStatus"]],[[[1," "],[10,0],[14,0,"user-status"],[12],[1,"\\n "],[1,[28,[35,12],[[30,0,["userStatusEmoji"]]],null]],[1,"\\n "],[10,1],[14,0,"user-status__description"],[12],[1,"\\n "],[1,[30,0,["user","status","description"]]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","status","ends_at"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-post-names","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[10,"ul"],[14,0,"usercard-controls"],[12],[1,"\\n"],[41,[30,0,["user","can_send_private_message_to_user"]],[[[1," "],[10,"li"],[14,0,"compose-pm"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"composePM"],null],[30,0,["user"]],[30,0,["post"]]],null],"envelope","user.private_message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-below-message-button","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showFilter"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-default"]],[["@action","@icon","@translatedLabel"],[[28,[37,17],[[30,0,["handleFilterPosts"]],[30,0,["user"]]],null],"filter",[30,0,["filterPostsLabel"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasUserFilters"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],null,[["@action","@icon","@label"],[[28,[37,18],[[30,0],"cancelFilter"],null],"xmark","topic.filters.cancel"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDelete"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[39,16],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"deleteUser"],null],[30,0,["user"]]],null],"triangle-exclamation","admin.user.delete"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-buttons","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-controls","div",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,18],[[30,0],"close"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["user","profile_hidden"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"profile-hidden"],[12],[1,"\\n "],[10,1],[14,"role","alert"],[12],[1,[28,[35,10],["user.profile_hidden"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","inactive"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n "],[10,0],[14,0,"inactive-user"],[12],[1,"\\n "],[10,1],[14,"role","alert"],[12],[1,[28,[35,10],["user.inactive_user"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isSuspendedOrHasBio"]],[[[1," "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n"],[41,[30,0,["user","suspend_reason"]],[[[1," "],[10,0],[14,0,"suspended"],[12],[1,"\\n "],[10,0],[14,0,"suspension-date"],[12],[1,"\\n "],[1,[28,[35,19],["ban"],null]],[1,"\\n"],[41,[30,0,["user","suspendedForever"]],[[[1," "],[1,[28,[35,10],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,10],["user.suspended_notice"],[["date"],[[30,0,["user","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"suspension-reason"],[12],[1,"\\n "],[10,1],[14,0,"suspension-reason-title"],[12],[1,[28,[35,10],["user.suspended_reason"],null]],[13],[1,"\\n "],[10,1],[14,0,"suspension-reason-description"],[12],[1,[30,0,["user","suspend_reason"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","bio_excerpt"]],[[[1," "],[10,0],[14,0,"bio"],[12],[1,"\\n "],[8,[39,20],null,null,[["default"],[[[[1,"\\n "],[1,[28,[35,12],[[30,0,["user","bio_excerpt"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"featured-topic"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["user.featured_topic"],null]],[13],[1,"\\n "],[8,[39,21],null,[["@route","@models"],["topic",[28,[37,22],[[30,0,["user","featured_topic","slug"]],[30,0,["user","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,23],[[28,[37,12],[[30,0,["user","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasLocaleOrWebsite"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"location-and-website"],[12],[1,"\\n"],[41,[30,0,["user","website_name"]],[[[1," "],[10,1],[14,0,"website-name"],[12],[1,"\\n "],[1,[28,[35,19],["globe"],null]],[1,"\\n"],[41,[30,0,["linkWebsite"]],[[[1," "],[10,3],[15,6,[30,0,["user","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,"title",[30,0,["user","website"]]],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","location"]],[[[1," "],[10,1],[14,0,"location"],[12],[1,"\\n "],[1,[28,[35,19],["location-dot"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["user","location"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showUserLocalTime"]],[[[1," "],[10,1],[14,0,"local-time"],[15,"title",[28,[37,10],["local_time"],null]],[12],[1,"\\n "],[1,[28,[35,19],["far-clock"],null]],[1,"\\n "],[10,1],[12],[1,[30,0,["formattedUserLocalTime"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-location-and-website","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"card-row metadata-row"],[12],[1,"\\n"],[41,[51,[30,0,["contentHidden"]]],[[[1," "],[10,0],[14,0,"metadata"],[12],[1,"\\n"],[41,[30,0,["user","last_posted_at"]],[[[1," "],[10,0],[14,0,"metadata__last-posted"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["last_post"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","last_posted_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"metadata__user-created"],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["joined"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,0,["user","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[41,[30,0,["user","time_read"]],[[[1," "],[10,0],[14,0,"metadata__time-read"],[15,"title",[30,0,["timeReadTooltip"]]],[12],[1,"\\n "],[10,1],[14,0,"desc"],[12],[1,[28,[35,10],["time_read"],null]],[13],[1,"\\n "],[1,[28,[35,25],[[30,0,["user","time_read"]]],null]],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1," "],[10,1],[12],[1,"\\n ("],[1,[28,[35,10],["time_read_recently"],[["time_read"],[[30,0,["recentTimeRead"]]]]]],[1,")\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCheckEmail"]],[[[1," "],[10,0],[14,0,"metadata__email"],[12],[1,"\\n "],[1,[28,[35,19],["envelope"],[["title"],["user.email.title"]]]],[1,"\\n"],[41,[30,0,["user","email"]],[[[1," "],[1,[30,0,["user","email"]]],[1,"\\n"]],[]],[[[1," "],[8,[39,16],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,17],[[28,[37,18],[[30,0],"checkEmail"],null],[30,0,["user"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1," "],[10,0],[15,0,[29,["public-user-field public-user-field__",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[1,":"],[13],[1,"\\n "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,1,["value"]]],null]],null],null,[[[1," "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,"\\n"],[41,[30,1,["field","searchable"]],[[[1," "],[8,[39,21],[[4,[38,7],["click",[28,[37,17],[[30,0,["refreshRoute"]],[30,2]],null]],null]],[["@route","@query"],["users",[28,[37,2],null,[["name"],[[30,2]]]]]],[["default"],[[[[1,[30,2]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[2]],[[[1," "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-before-badges","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showBadges"]],[[[1," "],[10,0],[14,0,"card-row"],[12],[1,"\\n "],[8,[39,1],null,[["@name","@outletArgs"],["user-card-badges",[28,[37,2],null,[["user","post"],[[30,0,["user"]],[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["user","featured_user_badges"]],[[[1," "],[10,0],[14,0,"badge-section"],[12],[1,"\\n"],[42,[28,[37,27],[[28,[37,27],[[30,0,["user","featured_user_badges"]]],null]],null],null,[[[1," "],[8,[39,28],null,[["@badge","@user"],[[30,3,["badge"]],[30,0,["user"]]]],null],[1,"\\n"]],[3]],null],[41,[30,0,["showMoreBadges"]],[[[1," "],[10,1],[14,0,"more-user-badges"],[12],[1,"\\n "],[8,[39,21],null,[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,10],["badges.more_badges"],[["count"],[[30,0,["moreBadgesCount"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null]],["uf","v","ub"],false,["if","plugin-outlet","hash","div","span","bound-avatar","a","on","user-avatar-flair","format-username","i18n","user-status","html-safe","format-date","ul","li","d-button","fn","action","d-icon","html-with-links","link-to","array","replace-emoji","unless","format-duration","each","-track-array","user-badge"]]',moduleName:"discourse/components/user-card-contents.hbs",isStrictMode:!1});var x=n(76417);let T=dt7948.c(class extends u.default{elementId="user-card";avatarSelector="[data-user-card]";avatarDataAttrKey="userCard";mentionSelector="a.mention";ariaLabel=(()=>(0,w.i18n)("user.card"))();static #e=(()=>dt7948.g(this.prototype,"allowBackgrounds",[(0,d.setting)("allow_profile_backgrounds")]))();#tF=(()=>void dt7948.i(this,"allowBackgrounds"))();static #n=(()=>dt7948.g(this.prototype,"showBadges",[(0,d.setting)("enable_badges")]))();#tN=(()=>void dt7948.i(this,"showBadges"))();static #i=(()=>dt7948.g(this.prototype,"showUserLocalTime",[(0,d.setting)("display_local_time_in_user_card")]))();#oq=(()=>void dt7948.i(this,"showUserLocalTime"))();static #l=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,d.setting)("moderators_view_emails")]))();#oH=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #u=(()=>dt7948.g(this.prototype,"postStream",[(0,s.alias)("topic.postStream")]))();#B=(()=>void dt7948.i(this,"postStream"))();static #c=(()=>dt7948.g(this.prototype,"enoughPostsForFiltering",[(0,s.gte)("topicPostCount",2)]))();#oV=(()=>void dt7948.i(this,"enoughPostsForFiltering"))();static #d=(()=>dt7948.g(this.prototype,"showFilter",[(0,s.and)("viewingTopic","postStream.hasNoFilters","enoughPostsForFiltering")]))();#oW=(()=>void dt7948.i(this,"showFilter"))();static #p=(()=>dt7948.g(this.prototype,"hasUserFilters",[(0,s.gt)("postStream.userFilters.length",0)]))();#oK=(()=>void dt7948.i(this,"hasUserFilters"))();static #h=(()=>dt7948.g(this.prototype,"showMoreBadges",[(0,s.gt)("moreBadgesCount",0)]))();#oG=(()=>void dt7948.i(this,"showMoreBadges"))();static #m=(()=>dt7948.g(this.prototype,"showDelete",[(0,s.and)("viewingAdmin","showName","user.canBeDeleted")]))();#ng=(()=>void dt7948.i(this,"showDelete"))();static #g=(()=>dt7948.g(this.prototype,"linkWebsite",[(0,s.not)("user.isBasic")]))();#oY=(()=>void dt7948.i(this,"linkWebsite"))();static #E=(()=>dt7948.g(this.prototype,"isSuspendedOrHasBio",[(0,s.or)("user.suspend_reason","user.bio_excerpt")]))();#oQ=(()=>void dt7948.i(this,"isSuspendedOrHasBio"))();static #A=(()=>dt7948.g(this.prototype,"showCheckEmail",[(0,s.and)("user.staged","canCheckEmails")]))();#oJ=(()=>void dt7948.i(this,"showCheckEmail"))();user=null;topicPostCount=null;static #D=(()=>dt7948.g(this.prototype,"showFeaturedTopic",[(0,s.and)("user.featured_topic","siteSettings.allow_featured_topic_on_user_profiles")]))();#oX=(()=>void dt7948.i(this,"showFeaturedTopic"))();get showName(){return this.user.name!==this.user.username}static #I=(()=>dt7948.n(this.prototype,"showName",[(0,i.computed)("user.name","user.username")]))();get canCheckEmails(){return new c.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #G=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,i.computed)("model.id","currentUser.id")]))();hasLocaleOrWebsite(e){return e.location||e.website_name||this.userTimezone}static #Y=(()=>dt7948.n(this.prototype,"hasLocaleOrWebsite",[(0,b.default)("user")]))();hasStatus(){return this.siteSettings.enable_user_status&&this.user.status}static #Q=(()=>dt7948.n(this.prototype,"hasStatus",[(0,b.default)("user.status")]))();userStatusEmoji(e){return(0,g.emojiUnescape)((0,f.escapeExpression)(`:${e}:`))}static #J=(()=>dt7948.n(this.prototype,"userStatusEmoji",[(0,b.default)("user.status.emoji")]))();staff(e){return e?"staff":""}static #X=(()=>dt7948.n(this.prototype,"staff",[(0,b.default)("user.staff")]))();newUser(e){return 0===e?"new-user":""}static #Z=(()=>dt7948.n(this.prototype,"newUser",[(0,b.default)("user.trust_level")]))();nameFirst(e){return(0,m.prioritizeNameInUx)(e)}static #ee=(()=>dt7948.n(this.prototype,"nameFirst",[(0,b.default)("user.name")]))();userTimezone(e){if(this.showUserLocalTime)return e.get("user_option.timezone")}static #et=(()=>dt7948.n(this.prototype,"userTimezone",[(0,b.default)("user")]))();formattedUserLocalTime(e){return moment.tz(e).format((0,w.i18n)("dates.time"))}static #en=(()=>dt7948.n(this.prototype,"formattedUserLocalTime",[(0,b.default)("userTimezone")]))();usernameClass(e){return e?`user-card-${e}`:""}static #ei=(()=>dt7948.n(this.prototype,"usernameClass",[(0,b.default)("username")]))();filterPostsLabel(e,t){return(0,w.i18n)("topic.filter_to",{username:e,count:t})}static #es=(()=>dt7948.n(this.prototype,"filterPostsLabel",[(0,b.default)("username","topicPostCount")]))();publicUserFields(){let e=this.site.get("user_fields");if(!(0,o.isEmpty)(e)){let t=this.get("user.user_fields");return e.filterBy("show_on_user_card",!0).sortBy("position").map(e=>{(0,i.set)(e,"dasherized_name",(0,r.dasherize)(e.get("name")));let n=t?t[e.get("id")]:null;return(0,o.isEmpty)(n)?null:i.default.create({value:n,field:e})}).compact()}}static #er=(()=>dt7948.n(this.prototype,"publicUserFields",[(0,b.default)("user.user_fields.@each.value")]))();removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow}static #eo=(()=>dt7948.n(this.prototype,"removeNoFollow",[(0,b.default)("user.trust_level")]))();moreBadgesCount(e,t){return e-t}static #ea=(()=>dt7948.n(this.prototype,"moreBadgesCount",[(0,b.default)("user.badge_count","user.featured_user_badges.length")]))();showRecentTimeRead(e,t){return e!==t&&0!==t}static #el=(()=>dt7948.n(this.prototype,"showRecentTimeRead",[(0,b.default)("user.time_read","user.recent_time_read")]))();recentTimeRead(e){return(0,p.durationTiny)(e)}static #eu=(()=>dt7948.n(this.prototype,"recentTimeRead",[(0,b.default)("user.recent_time_read")]))();timeReadTooltip(e,t,n){return e?(0,w.i18n)("time_read_recently_tooltip",{time_read:(0,p.durationTiny)(t),recent_time_read:n}):(0,w.i18n)("time_read_tooltip",{time_read:(0,p.durationTiny)(t)})}static #ec=(()=>dt7948.n(this.prototype,"timeReadTooltip",[(0,b.default)("showRecentTimeRead","user.time_read","recentTimeRead")]))();addBackground(){if(!this.allowBackgrounds||!this.element)return;let e=this.get("user.card_background_upload_url"),t=(0,o.isEmpty)(e)?"":`url(${(0,y.getURLWithCDN)(e)})`;this.element.style.backgroundImage=t}static #ed=(()=>dt7948.n(this.prototype,"addBackground",[(0,l.observes)("user.card_background_upload_url")]))();primaryGroup(e){return`group-${e}`}static #nG=(()=>dt7948.n(this.prototype,"primaryGroup",[(0,b.default)("user.primary_group_name")]))();contentHidden(e,t){return e||t}static #nY=(()=>dt7948.n(this.prototype,"contentHidden",[(0,b.default)("user.profile_hidden","user.inactive")]))();_inserted(){this.appEvents.on("dom:clean",this,this.cleanUp)}static #nQ=(()=>dt7948.n(this.prototype,"_inserted",[(0,l.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this.cleanUp)}static #oZ=(()=>dt7948.n(this.prototype,"_destroyed",[(0,l.on)("didDestroyElement")]))();async _showCallback(e){this.setProperties({visible:!0,loading:!0});let t={forCard:!0,include_post_count_for:this.get("topic.id")};try{let n=await _.default.findByUsername(e,t);return n.topic_post_count&&this.set("topicPostCount",n.topic_post_count[t.include_post_count_for]),this.setProperties({user:n}),this.user.statusManager.trackStatus(),n}catch{this._close()}finally{this.set("loading",null)}}_close(){this.user?.statusManager.stopTrackingStatus(),this.setProperties({user:null,topicPostCount:null}),super._close(...arguments)}cleanUp(){this._close()}refreshRoute(e){this.router.transitionTo({queryParams:{name:e}})}static #o1=(()=>dt7948.n(this.prototype,"refreshRoute",[i.action]))();handleShowUser(e){(0,h.wantsNewWindow)(e)||(e.preventDefault(),this.showUser(this.user),this._close())}static #o0=(()=>dt7948.n(this.prototype,"handleShowUser",[i.action]))();close(){this._close()}static #o3=(()=>dt7948.n(this.prototype,"close",[i.action]))();composePM(e,t){this._close(),this.composePrivateMessage(e,t)}static #o2=(()=>dt7948.n(this.prototype,"composePM",[i.action]))();cancelFilter(){this.postStream.cancelFilter(),this.postStream.refresh(),this._close()}static #o8=(()=>dt7948.n(this.prototype,"cancelFilter",[i.action]))();handleFilterPosts(){this.filterPosts(this.user),this._close()}static #o4=(()=>dt7948.n(this.prototype,"handleFilterPosts",[i.action]))();deleteUser(){this.user.delete(),this._close()}static #o7=(()=>dt7948.n(this.prototype,"deleteUser",[i.action]))();checkEmail(e){e.checkEmail()}static #o9=(()=>dt7948.n(this.prototype,"checkEmail",[i.action]))()},[(0,a.attributeBindings)("ariaLabel:aria-label"),(0,a.classNameBindings)("visible:show","showBadges","user.card_background_upload_url::no-bg","isFixed:fixed","usernameClass","primaryGroup"),(0,a.classNames)("user-card")]),S=(0,x.setComponentTemplate)(k,T)},47929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(39882),s=n(80374),r=n(63936),o=n(55812),a=n(98086),l=n(76417),u=n(82739),c=n(88606);let d={confirm:s.default,dropdown:r.default,multiselect:o.default,text:a.default},p=(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"pLhYAedh",block:'[[[1,"\\n"],[44,[[28,[32,0],[[32,1],[30,1,["field_type"]]],null]],[[[1," "],[8,[30,2],[[17,3]],[["@field","@value","@validation"],[[30,1],[30,4],[30,5]]],null],[1,"\\n"]],[2]]]],["@field","Component","&attrs","@value","@validation"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-field.js",scope:()=>[i.get,d],isStrictMode:!0}),(0,c.default)(void 0,"user-field:UserField"))},55790:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(93223),r=n(62797);let o=dt7948.c(class extends i.default{didInsertElement(){super.didInsertElement(...arguments);let e=this.element.querySelector(".user-field.dropdown .select-kit-header");e=e||this.element.querySelector("input"),this.field.element=e}noneLabel(){return"user_fields.none"}static #e=(()=>dt7948.n(this.prototype,"noneLabel",[r.default]))();customFieldClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`user-field-${e}`}static #n=(()=>dt7948.n(this.prototype,"customFieldClass",[(0,r.default)("field.name")]))()},[(0,s.classNameBindings)(":user-field","field.field_type","customFieldClass")])},80374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(55790);let s=(0,n(82739).createTemplateFactory)({id:"Tt7UOnG/",block:'[[[41,[30,0,["field","name"]],[[[1," "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label checkbox-label"],[12],[1,"\\n "],[8,[39,5],[[16,1,[28,[37,6],["user-",[30,0,["elementId"]]],null]]],[["@checked","@type"],[[30,0,["value"]],"checkbox"]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[35,8],[[30,0,["field","description"]]],null]],[1,"\\n "],[41,[51,[30,0,["field","name"]]],[[[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null]],[]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,9],[[16,0,[52,[51,[30,1,["reason"]]],"hidden"]]],[["@validation"],[[30,1]]],null],[1,"\\n"],[13]],["@validation"],false,["if","label","unless","i18n","div","input","concat","span","html-safe","input-tip"]]',moduleName:"discourse/components/user-fields/confirm.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},63936:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(55790);let s=(0,n(82739).createTemplateFactory)({id:"4+LLzEKc",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,5],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,1],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,6],[[28,[37,7],[[30,0,["value"]]],null]],null],[28,[37,8],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,9],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["label","concat","unless","i18n","div","combo-box","fn","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/dropdown.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},55812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(55790);let s=(0,n(82739).createTemplateFactory)({id:"htfXJnFM",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,3],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,5],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,1],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,6],[[28,[37,7],[[30,0,["value"]]],null]],null],[28,[37,8],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,9],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["label","concat","unless","i18n","div","multi-select","fn","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/multiselect.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},98086:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(55790);let s=(0,n(82739).createTemplateFactory)({id:"cX7d1GTM",block:'[[[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[39,1],[[16,1,[28,[37,2],["user-",[30,0,["elementId"]]],null]],[16,"maxlength",[30,0,["site","user_field_max_length"]]]],[["@value"],[[30,0,["value"]]]],null],[1,"\\n "],[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,2],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[35,5],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n "],[8,[39,6],[[16,0,[52,[51,[30,0,["validation"]]],"hidden"]]],[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n"],[41,[51,[30,0,["validation"]]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,7],[[30,0,["field","description"]]],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["div","input","concat","label","unless","i18n","input-tip","html-safe"]]',moduleName:"discourse/components/user-fields/text.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{}(0,r.setComponentTemplate)(s,o)},91689:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(76417),s=n(93223),r=n(62797),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"K2oDvHlS",block:'[[[41,[30,0,["showPercentage"]],[[[1," "],[10,0],[15,"title",[30,0,["percentage","title"]]],[14,0,"user-flag-percentage"],[12],[1,"\\n "],[10,1],[15,0,[29,["percentage-label ",[30,0,["percentage","className"]]]]],[12],[1,[30,0,["percentage","label"]]],[13],[1,"\\n "],[1,[28,[35,3],[[30,0,["percentage","icon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","div","span","d-icon"]]',moduleName:"discourse/components/user-flag-percentage.hbs",isStrictMode:!1}),l=dt7948.c(class extends i.default{showPercentage(e){return e.total>=3}static #e=(()=>dt7948.n(this.prototype,"showPercentage",[(0,r.default)("percentage")]))();percentage(e,t,n){let i=e+t+n,s={total:i};i>0&&(s.agreed=Math.round(e/i*100),s.disagreed=Math.round(t/i*100),s.ignored=Math.round(n/i*100));let r=Math.max(e,t,n);return r===e?(s.icon="thumbs-up",s.className="agreed",s.label=`${s.agreed}%`):r===t?(s.icon="thumbs-down",s.className="disagreed",s.label=`${s.disagreed}%`):(s.icon="up-right-from-square",s.className="ignored",s.label=`${s.ignored}%`),s.title=(0,o.i18n)("review.user_percentage.summary",{agreed:(0,o.i18n)("review.user_percentage.agreed",{count:s.agreed}),disagreed:(0,o.i18n)("review.user_percentage.disagreed",{count:s.disagreed}),ignored:(0,o.i18n)("review.user_percentage.ignored",{count:s.ignored}),count:i}),s}static #n=(()=>dt7948.n(this.prototype,"percentage",[(0,r.default)("agreed","disagreed","ignored")]))()},[(0,s.tagName)("")]),u=(0,i.setComponentTemplate)(a,l)},38200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(76417),s=n(5938),r=n(93223),o=n(59621),a=n(56839),l=n(62797);let u=(0,n(82739).createTemplateFactory)({id:"QYh91uzd",block:'[[[41,[30,0,["includeAvatar"]],[[[1," "],[10,0],[14,0,"user-image"],[12],[1,"\\n "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,[28,[35,3],[[30,1]],[["imageSize"],["large"]]]],[13],[1,"\\n "],[8,[39,4],null,[["@user"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"user-detail"],[12],[1,"\\n "],[10,0],[14,0,"name-line"],[12],[1,"\\n"],[41,[30,0,["includeLink"]],[[[1," "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,6],[[30,1,["username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[28,[37,6],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,6],[[30,1,["username"]]],null]]],[1,"\\n "],[13],[1,"\\n "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n "],[1,[52,[30,0,["nameFirst"]],[28,[37,6],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[41,[28,[37,7],[[30,2],[30,1,["status"]]],null],[[[1," "],[8,[39,8],null,[["@status","@showDescription"],[[30,1,["status"]],[30,3]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-user-name","span",[28,[37,10],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n"],[41,[48,[30,4]],[[[1," "],[10,0],[14,0,"details"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-user-info","div",[28,[37,10],null,[["user"],[[30,0,["user"]]]]]]],null]],["@user","@showStatus","@showStatusDescription","&default"],false,["if","div","a","avatar","user-avatar-flair","span","format-username","and","user-status-message","plugin-outlet","hash","has-block","yield"]]',moduleName:"discourse/components/user-info.hbs",isStrictMode:!1}),c=dt7948.c(class extends i.default{size="small";includeLink=!0;includeAvatar=!0;static #e=(()=>dt7948.g(this.prototype,"dataUsername",[(0,s.alias)("user.username")]))();#o5=(()=>void dt7948.i(this,"dataUsername"))();didInsertElement(){super.didInsertElement(...arguments),this.user?.statusManager?.trackStatus()}willDestroyElement(){super.willDestroyElement(...arguments),this.user?.statusManager?.stopTrackingStatus()}userPath(e){return(0,a.userPath)(e)}static #n=(()=>dt7948.n(this.prototype,"userPath",[(0,l.default)("user.username")]))();nameFirst(e){return(0,o.prioritizeNameInUx)(e)}static #i=(()=>dt7948.n(this.prototype,"nameFirst",[(0,l.default)("user.name")]))()},[(0,r.attributeBindings)("dataUsername:data-username"),(0,r.classNameBindings)(":user-info","size")]),d=(0,i.setComponentTemplate)(u,c)},14541:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(5938),r=n(93223);let o=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"href",[(0,s.alias)("user.path")]))();#o6=(()=>void dt7948.i(this,"href"))();static #n=(()=>dt7948.g(this.prototype,"dataUserCard",[(0,s.alias)("user.username")]))();#ae=(()=>void dt7948.i(this,"dataUserCard"))()},[(0,r.attributeBindings)("href","dataUserCard:data-user-card"),(0,r.tagName)("a")])},78332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"9PxmOCfL",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_bookmarks_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_bookmarks_body"],[["icon"],[[28,[37,5],["bookmark"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon"]]',moduleName:"discourse/components/user-menu/bookmarks-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"bookmarks-list-empty-state"))},54309:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(40530),s=n(6610),r=n(63444),o=n(20665),a=n(10157),l=n(99602),u=n(51969);class c extends i.default{get dismissTypes(){return["bookmark_reminder"]}get showAllHref(){return`${this.currentUser.path}/activity/bookmarks`}get showAllTitle(){return(0,u.i18n)("user_menu.view_all_bookmarks")}get showDismiss(){return this.#at>0}get dismissTitle(){return(0,u.i18n)("user.dismiss_bookmarks_tooltip")}get itemsCacheKey(){return"user-menu-bookmarks-tab"}get emptyStateComponent(){return"user-menu/bookmarks-list-empty-state"}get #at(){let e=`grouped_unread_notifications.${this.site.notification_types.bookmark_reminder}`;return this.currentUser.get(e)||0}get dismissConfirmationText(){return(0,u.i18n)("notifications.dismiss_confirmation.body.bookmarks",{count:this.#at})}async fetchItems(){let e=await (0,s.ajax)(`/u/${this.currentUser.username}/user-menu-bookmarks`),t=[],n=e.notifications.map(e=>l.default.create(e));await l.default.applyTransformations(n),n.forEach(e=>{t.push(new o.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))});let i=e.bookmarks.map(e=>a.default.create(e));return await a.default.applyTransformations(i),t.push(...i.map(e=>new r.default({bookmark:e,siteSettings:this.siteSettings,site:this.site}))),t}}},70600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(27147),s=n(21237),r=n(79356),o=n(76417),a=n(82739),l=n(88606);let u=(0,r.translateSize)("medium"),c=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"XPfRti71",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["icon-avatar",[30,1,["classNames"]]],null]],[12],[1,"\\n"],[1," "],[10,"img"],[14,"lazy","lazy"],[15,"src",[28,[32,1],[[30,1,["avatarTemplate"]],"medium"],null]],[15,"width",[32,2]],[15,"height",[32,2]],[14,0,"avatar"],[12],[13],[1,"\\n "],[10,0],[14,0,"icon-avatar__icon-wrapper"],[12],[1,"\\n "],[1,[28,[32,3],[[30,1,["icon"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@data"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/icon-avatar.js",scope:()=>[i.default,r.avatarUrl,u,s.default],isStrictMode:!0}),(0,l.default)(void 0,"icon-avatar:IconAvatar"))},91595:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Fjtjlpdy",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user_menu.generic_no_items"],null]],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n"]]',moduleName:"discourse/components/user-menu/items-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"items-list-empty-state"))},63283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(28564),r=n(70001),o=n(54729),a=n(56839);let l=(0,n(82739).createTemplateFactory)({id:"is92ZaKs",block:'[[[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["items","length"]],[[[1," "],[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["items"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@item","@closeUserMenu"],[[30,2],[30,3]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"panel-body-bottom"],[12],[1,"\\n"],[41,[30,0,["showAllHref"]],[[[1," "],[8,[39,6],[[24,0,"show-all"]],[["@action","@translatedAriaLabel","@translatedTitle"],[[30,0,["showAll"]],[30,0,["showAllTitle"]],[30,0,["showAllTitle"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["chevron-down"],[["aria-label"],[[30,0,["showAllTitle"]]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["showDismiss"]],[[[1," "],[11,"button"],[24,0,"btn btn-default notifications-dismiss btn-icon-text"],[16,"title",[30,0,["dismissTitle"]]],[24,4,"button"],[4,[38,9],["click",[30,0,["dismissButtonClick"]]],null],[12],[1,"\\n "],[1,[28,[35,7],["check"],null]],[1,"\\n "],[1,[28,[35,10],["user.dismiss"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,11],null,[["@name","@outletArgs"],["panel-body-bottom",[28,[37,12],null,[["itemsCacheKey","closeUserMenu","showDismiss","dismissButtonClick"],[[30,0,["itemsCacheKey"]],[30,3],[30,0,["showDismiss"]],[30,0,["dismissButtonClick"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,11],null,[["@name","@outletArgs"],["user-menu-items-list-empty-state",[28,[37,12],null,[["model"],[[30,0]]]]]],[["default"],[[[[1,"\\n "],[46,[30,0,["emptyStateComponent"]],null,null,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]]],[8,[39,11],null,[["@name","@outletArgs"],["after-panel-body",[28,[37,12],null,[["closeUserMenu"],[[30,3]]]]]],null]],["@ariaLabelledby","item","@closeUserMenu"],false,["if","div","ul","each","-track-array","user-menu/menu-item","d-button","d-icon","button","on","i18n","plugin-outlet","hash","component"]]',moduleName:"discourse/components/user-menu/items-list.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"loading",[s.tracked],function(){return!1}))();#k=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"items",[s.tracked],function(){return[]}))();#eC=(()=>void dt7948.i(this,"items"))();constructor(){super(...arguments),this.#an()}get itemsCacheKey(){}get showAllHref(){}get showAllTitle(){}get showDismiss(){return!1}get dismissTitle(){}get emptyStateComponent(){return"user-menu/items-list-empty-state"}get renderDismissConfirmation(){return!1}async fetchItems(){throw Error(`the fetchItems method must be implemented in ${this.constructor.name}`)}async refreshList(){await this.#an()}async #an(){let e=this.#ai();e?.length?this.items=e:this.loading=!0;try{let e=await this.fetchItems();this.#as(e),this.items=e}catch(e){console.error(`an error occurred when loading items for ${this.constructor.name}`,e)}finally{this.loading=!1}}#ai(){let e=this.itemsCacheKey;if(e)return this.session[`user-menu-items:${e}`]}#as(e){let t=this.itemsCacheKey;t&&this.session.set(`user-menu-items:${t}`,e)}dismissButtonClick(){throw Error(`dismissButtonClick must be implemented in ${this.constructor.name}.`)}static #l=(()=>dt7948.n(this.prototype,"dismissButtonClick",[r.action]))();showAll(){a.default.routeTo(this.showAllHref),this.args.closeUserMenu()}static #u=(()=>dt7948.n(this.prototype,"showAll",[r.action]))()}(0,u.setComponentTemplate)(l,c)},64926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"pcqwxZI/",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_likes_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_likes_body"],[["preferencesUrl"],[[28,[37,5],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","get-url"]]',moduleName:"discourse/components/user-menu/likes-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"likes-list-empty-state"))},65349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(40530);class s extends i.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/likes-list-empty-state"}}},8451:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(35804),o=n(62167),a=n(20802);let l=(0,n(82739).createTemplateFactory)({id:"jDq7qX/i",block:'[[[10,"li"],[15,0,[30,0,["className"]]],[12],[1,"\\n "],[11,3],[16,6,[30,0,["linkHref"]]],[16,"title",[30,0,["linkTitle"]]],[4,[38,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n"],[41,[30,0,["iconComponent"]],[[[1," "],[8,[30,0,["iconComponent"]],null,[["@data"],[[30,0,["iconComponentArgs"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]]],[1," "],[10,0],[12],[1,"\\n"],[41,[30,0,["label"]],[[[1," "],[10,1],[15,0,[28,[37,7],["item-label ",[30,0,["labelClass"]]],null]],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["description"]],[[[1," "],[10,1],[15,0,[28,[37,7],["item-description ",[30,0,["descriptionClass"]]],null]],[15,"data-topic-id",[30,0,["topicId"]]],[12],[1,"\\n "],[1,[30,0,["description"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["endComponent"]],[[[1," "],[8,[30,0,["endComponent"]],null,null,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[39,8],null,[["@name","@outletArgs"],["menu-item-end",[30,0,["endOutletArgs"]]]],null],[1,"\\n"],[13]],[],false,["li","a","on","if","d-icon","div","span","concat","plugin-outlet"]]',moduleName:"discourse/components/user-menu/menu-item.hbs",isStrictMode:!1});var u=n(76417);class c extends i.default{get className(){return this.#ar.className}get linkHref(){return this.#ar.linkHref}get linkTitle(){return this.#ar.linkTitle}get icon(){return this.#ar.icon}get label(){return this.#ar.label}get labelClass(){return this.#ar.labelClass}get description(){let e=this.#ar.description;if(e)return"string"==typeof e?(0,r.htmlSafe)((0,o.emojiUnescape)((0,a.escapeExpression)(e))):e}get descriptionClass(){return this.#ar.descriptionClass}get topicId(){return this.#ar.topicId}get iconComponent(){return this.#ar.iconComponent}get iconComponentArgs(){return this.#ar.iconComponentArgs}get endComponent(){return this.#ar.endComponent}get endOutletArgs(){return this.#ar.endOutletArgs}get #ar(){return this.args.item}onClick(e){return this.#ar.onClick({event:e,closeUserMenu:this.args.closeUserMenu})}static #e=(()=>dt7948.n(this.prototype,"onClick",[s.action]))()}(0,u.setComponentTemplate)(l,c)},96156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(37138);let s=(0,n(82739).createTemplateFactory)({id:"Yrl+kXIJ",block:'[[[11,3],[24,"role","tab"],[16,0,[30,0,["classNames"]]],[16,1,[30,0,["id"]]],[16,"tabindex",[30,0,["tabIndex"]]],[16,"title",[30,1,["title"]]],[16,"aria-label",[30,1,["title"]]],[16,"aria-selected",[52,[30,0,["isActive"]],"true","false"]],[16,"aria-controls",[30,0,["ariaControls"]]],[16,"data-tab-number",[30,1,["position"]]],[16,6,[30,1,["linkWhenActive"]]],[4,[38,2],["click",[30,2]],null],[4,[38,2],["keydown",[30,2]],null],[12],[1,"\\n "],[1,[28,[35,3],[[30,1,["icon"]]],null]],[1,"\\n"],[41,[30,1,["count"]],[[[1," "],[10,1],[14,"aria-hidden","true"],[14,0,"badge-notification"],[12],[1,[30,1,["count"]]],[13],[1,"\\n"]],[]],null],[1," "],[18,3,null],[1,"\\n"],[13]],["@tab","@onTabClick","&default"],false,["a","if","on","d-icon","span","yield"]]',moduleName:"discourse/components/user-menu/menu-tab.hbs",isStrictMode:!1});var r=n(76417);class o extends i.default{get isActive(){return this.args.tab.id===this.args.currentTabId}get classNames(){let e=["btn","btn-flat","btn-icon","no-text","user-menu-tab"];return this.isActive&&e.push("active"),e.join(" ")}get id(){return`user-menu-button-${this.args.tab.id}`}get tabIndex(){return this.isActive?"0":"-1"}get ariaControls(){return`quick-access-${this.args.tab.id}`}}(0,r.setComponentTemplate)(s,o)},95119:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>F});var i=n(37138),s=n(28564),r=n(70001),o=n(71597),a=n(54729),l=n(3737),u=n(82975),c=n(10157),d=n(54216),p=n(87389),h=n(62797),m=n(54309),g=n(65349),f=n(6074),_=n(40530),y=n(67015),b=n(2034),w=n(7917),k=n(67985);let x=(0,n(82739).createTemplateFactory)({id:"XpLFv8Vv",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[16,"data-tab-id",[30,0,["currentTabId"]]],[24,"data-max-width","320"],[4,[38,1],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n "],[10,0],[14,0,"panel-body"],[12],[1,"\\n "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n "],[10,0],[14,0,"menu-tabs-container"],[14,"role","tablist"],[14,"aria-orientation","vertical"],[15,"aria-label",[28,[37,2],["user_menu.sr_menu_tabs"],null]],[12],[1,"\\n "],[11,0],[24,0,"top-tabs tabs-list"],[4,[38,1],[[30,0,["focusFirstTab"]]],null],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["topTabs"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@tab","@currentTabId","@onTabClick"],[[30,1],[30,0,["currentTabId"]],[28,[37,6],[[30,0,["handleTabClick"]],[30,1]],null]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"bottom-tabs tabs-list"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["bottomTabs"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@tab","@currentTabId","@onTabClick"],[[30,2],[30,0,["currentTabId"]],[28,[37,6],[[30,0,["handleTabClick"]],[30,2]],null]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,1,[28,[37,7],["quick-access-",[30,0,["currentTabId"]]],null]],[14,0,"quick-access-panel"],[14,"tabindex","-1"],[12],[1,"\\n "],[8,[30,0,["currentPanelComponent"]],null,[["@closeUserMenu","@filterByTypes","@ariaLabelledby"],[[30,3],[30,0,["currentNotificationTypes"]],[28,[37,7],["user-menu-button-",[30,0,["currentTabId"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["tab","tab","@closeUserMenu"],false,["div","did-insert","i18n","each","-track-array","user-menu/menu-tab","fn","concat"]]',moduleName:"discourse/components/user-menu/menu.hbs",isStrictMode:!1});var T=n(41664),S=n(76417);let C=(0,T.A)(n(28564)).cached,E="all-notifications",A=_.default,D="review-queue",I=[class extends u.default{id=(()=>E)();icon="bell";panelComponent=(()=>A)();get linkWhenActive(){return`${this.currentUser.path}/notifications`}},class extends u.default{id="replies";icon="user_menu.replies";panelComponent=(()=>w.default)();notificationTypes=["mentioned","group_mentioned","posted","quoted","replied"];get count(){return this.getUnreadCountForType("mentioned")+this.getUnreadCountForType("group_mentioned")+this.getUnreadCountForType("posted")+this.getUnreadCountForType("quoted")+this.getUnreadCountForType("replied")}get linkWhenActive(){return`${this.currentUser.path}/notifications/responses`}},class extends u.default{id="likes";icon="heart";panelComponent=(()=>g.default)();get shouldDisplay(){return!this.currentUser.user_option.likes_notifications_disabled}get count(){return this.getUnreadCountForType("liked")+this.getUnreadCountForType("liked_consolidated")+this.getUnreadCountForType("reaction")}get notificationTypes(){return["liked","liked_consolidated","reaction"]}get linkWhenActive(){return`${this.currentUser.path}/notifications/likes-received`}},class extends u.default{id="messages";icon="notification.private_message";panelComponent=(()=>f.default)();notificationTypes=["private_message","group_message_summary"];get count(){return this.getUnreadCountForType("private_message")}get shouldDisplay(){return this.currentUser?.can_send_private_messages}get linkWhenActive(){return`${this.currentUser.path}/messages`}},class extends u.default{id="bookmarks";icon=(()=>c.NO_REMINDER_ICON)();panelComponent=(()=>m.default)();notificationTypes=["bookmark_reminder"];get count(){return this.getUnreadCountForType("bookmark_reminder")}get linkWhenActive(){return`${this.currentUser.path}/activity/bookmarks`}},class extends u.default{id=(()=>D)();icon="flag";panelComponent=(()=>k.default)();linkWhenActive=(()=>(0,p.default)("/review"))();get shouldDisplay(){return this.currentUser.can_review&&this.currentUser.get("reviewable_count")}get count(){return this.currentUser.get("reviewable_count")}}],P=[class extends u.default{id="profile";icon="user";panelComponent=(()=>b.default)();get linkWhenActive(){return`${this.currentUser.path}/summary`}}],M=class extends u.default{id="other-notifications";icon="discourse-other-tab";panelComponent=(()=>y.default)();constructor(e,t,n,i){super(...arguments),this.otherNotificationTypes=i}get count(){return this.otherNotificationTypes.reduce((e,t)=>e+this.getUnreadCountForType(t),0)}get notificationTypes(){return this.otherNotificationTypes}};class F extends i.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"currentTabId",[s.tracked],function(){return E}))();#ao=(()=>void dt7948.i(this,"currentTabId"))();static #d=(()=>dt7948.g(this.prototype,"currentPanelComponent",[s.tracked],function(){return A}))();#aa=(()=>void dt7948.i(this,"currentPanelComponent"))();static #p=(()=>dt7948.g(this.prototype,"currentNotificationTypes",[s.tracked]))();#al=(()=>void dt7948.i(this,"currentNotificationTypes"))();constructor(){super(...arguments),this.router.on("routeDidChange",this.onRouteChange)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeDidChange",this.onRouteChange)}onRouteChange(){this.args.closeUserMenu()}static #h=(()=>dt7948.n(this.prototype,"onRouteChange",[h.bind]))();get classNames(){let e=["user-menu","revamped","menu-panel","drop-down"];return this.siteSettings.show_user_menu_avatars&&e.push("show-avatars"),e.join(" ")}get topTabs(){let e=[];I.forEach(t=>{let n=new t(this.currentUser,this.siteSettings,this.site);n.shouldDisplay&&e.push(n)});let t=e.findIndex(e=>e.id===D);return u.CUSTOM_TABS_CLASSES.forEach(n=>{let i=new n(this.currentUser,this.siteSettings,this.site);i.shouldDisplay&&(-1===t?e.push(i):(e.insertAt(t,i),t++))}),e.push(new M(this.currentUser,this.siteSettings,this.site,this.#au(e))),e.map((e,t)=>(e.position=t,e))}static #m=(()=>dt7948.n(this.prototype,"topTabs",[C]))();get bottomTabs(){let e=[];P.forEach(t=>{let n=new t(this.currentUser,this.siteSettings,this.site);n.shouldDisplay&&e.push(n)});let t=this.topTabs.length;return e.map((e,n)=>(e.position=n+t,e))}static #g=(()=>dt7948.n(this.prototype,"bottomTabs",[C]))();#au(e){let t=e.filter(e=>e.notificationTypes).map(e=>e.notificationTypes).flat();return Object.keys(this.site.notification_types).filter(e=>!t.includes(e))}handleTabClick(e,t){(0,l.wantsNewWindow)(t)||this.currentTabId===e.id||"keydown"===t.type&&13!==t.keyCode||(t.preventDefault(),this.currentTabId=e.id,this.currentPanelComponent=function(e,t){if("string"==typeof t){let n=JSON.stringify(t);return(0,d.default)(`user-menu tab panelComponent must be passed as a component class (passed ${n})`,{id:"discourse.user-menu.panel-component-class"}),e.resolveRegistration(`component:${t}`)}return t}((0,o.getOwner)(this),e.panelComponent),this.appEvents.trigger("user-menu:tab-click",e.id),this.currentNotificationTypes=e.notificationTypes)}static #E=(()=>dt7948.n(this.prototype,"handleTabClick",[r.action]))();triggerRenderedAppEvent(){this.appEvents.trigger("user-menu:rendered")}static #A=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[r.action]))();focusFirstTab(e){e.querySelector(".btn.active")?.focus()}static #D=(()=>dt7948.n(this.prototype,"focusFirstTab",[r.action]))()}(0,S.setComponentTemplate)(x,F)},69664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"28tKF4zz",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_messages_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_messages_body"],[["icon","aboutUrl"],[[28,[37,5],["envelope"],null],[28,[37,6],["/about"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/messages-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"messages-list-empty-state"))},6074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(54729),s=n(40530),r=n(6610),o=n(86559),a=n(20665),l=n(20802),u=n(99602),c=n(46606),d=n(51969);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"store",[i.service]))();#f=(()=>void dt7948.i(this,"store"))();get dismissTypes(){return this.filterByTypes}get showAllHref(){return`${this.currentUser.path}/messages`}get showAllTitle(){return(0,d.i18n)("user_menu.view_all_messages")}get showDismiss(){return this.#ac>0}get dismissTitle(){return(0,d.i18n)("user.dismiss_messages_tooltip")}get itemsCacheKey(){return"user-menu-messages-tab"}get emptyStateComponent(){return"user-menu/messages-list-empty-state"}get #ac(){let e=`grouped_unread_notifications.${this.site.notification_types.private_message}`;return this.currentUser.get(e)||0}get dismissConfirmationText(){return(0,d.i18n)("notifications.dismiss_confirmation.body.messages",{count:this.#ac})}async fetchItems(){let e=await (0,r.ajax)(`/u/${this.currentUser.username}/user-menu-private-messages`),t=[];(await u.default.initializeNotifications(e.unread_notifications)).forEach(e=>{t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))});let n=e.topics.map(e=>this.store.createRecord("topic",e));if(await c.default.applyTransformations(n),this.siteSettings.show_user_menu_avatars){let t=new Map(e.users.map(e=>[e.id,e]));n.forEach(e=>{e.last_poster_avatar_template=t.get(e.lastPoster.user_id)?.avatar_template})}let i=await u.default.initializeNotifications(e.read_notifications);return(0,l.mergeSortedLists)(i,n,(e,t)=>{let n=new Date(e.created_at);return new Date(t.bumped_at)>n}).forEach(e=>{e instanceof u.default?t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site})):t.push(new o.default({message:e,siteSettings:this.siteSettings,site:this.site}))}),t}}},1036:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"g+XWYjxM",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_notifications_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_notifications_body"],[["icon","preferencesUrl"],[[28,[37,5],["bell"],null],[28,[37,6],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/notifications-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"notifications-list-empty-state"))},40530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,setNotificationsLimit:()=>_});var i=n(70001),s=n(54729),r=n(99208),o=n(63283),a=n(6610),l=n(69391),u=n(20665),c=n(51004),d=n(20802),p=n(99602),h=n(60885),m=n(51969);let g=l.MAX_NOTIFICATIONS_LIMIT_PARAMS,f=30;function _(e){if(e<=0||e>g){console.error(`Error: Invalid limit of ${e} passed to setNotificationsLimit. Must be greater than 0 and less than ${g}`);return}f=e}class y extends o.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[s.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"store",[s.service]))();#f=(()=>void dt7948.i(this,"store"))();static #c=(()=>dt7948.g(this.prototype,"modal",[s.service]))();#x=(()=>void dt7948.i(this,"modal"))();get filterByTypes(){return this.args.filterByTypes}get dismissTypes(){return null}get showAllHref(){return`${this.currentUser.path}/notifications`}get showAllTitle(){return(0,m.i18n)("user_menu.view_all_notifications")}get showDismiss(){return Object.keys(this.currentUser.get("grouped_unread_notifications")||{}).any(e=>this.currentUser.get(`grouped_unread_notifications.${e}`)>0)}get dismissTitle(){return(0,m.i18n)("user.dismiss_notifications_tooltip")}get itemsCacheKey(){let e="recent-notifications",t=this.filterByTypes;return t?.length>0&&(e+=`-type-${t.join(",")}`),e}get emptyStateComponent(){return this.constructor===y?"user-menu/notifications-list-empty-state":super.emptyStateComponent}get renderDismissConfirmation(){return!0}get dismissConfirmationText(){return(0,m.i18n)("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications})}get alwaysRenderDismissConfirmation(){return!1}async fetchItems(){let e={limit:f,recent:!0,bump_last_seen_reviewable:!0};this.currentUser.enforcedSecondFactor&&(e.silent=!0);let t=this.filterByTypes;t?.length>0&&(e.filter_by_types=t.join(","),e.silent=!0);let n=[],i=await (0,a.ajax)("/notifications",{data:e}),s=await p.default.initializeNotifications(i.notifications),r=i.pending_reviewables?.map(e=>h.default.create(e));if(r?.length){let e=s.findIndex(e=>e.read),t=s.splice(0,e);(0,d.mergeSortedLists)(t,r,(e,t)=>{let n=new Date(e.created_at);return new Date(t.created_at)>n}).forEach(e=>{let t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site};e instanceof p.default?(t.notification=e,n.push(new u.default(t))):(t.reviewable=e,n.push(new c.default(t)))})}return s.forEach(e=>{n.push(new u.default({notification:e,appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}),n}async performDismiss(){let e={type:"PUT"},t=this.dismissTypes;if(t?.length>0&&(e.data={dismiss_types:t.join(",")}),await (0,a.ajax)("/notifications/mark-read",e),t){let e={...this.currentUser.grouped_unread_notifications};t.forEach(t=>{let n=this.site.notification_types[t];n&&delete e[n]}),this.currentUser.set("grouped_unread_notifications",e)}else this.currentUser.set("all_unread_notifications_count",0),this.currentUser.set("unread_high_priority_notifications",0),this.currentUser.set("grouped_unread_notifications",{});this.refreshList(),(0,d.postRNWebviewMessage)("markRead","1")}dismissWarningModal(){this.modal.show(r.default,{model:{confirmationMessage:this.dismissConfirmationText,dismissNotifications:()=>this.performDismiss()}})}dismissButtonClick(){(this.renderDismissConfirmation||this.alwaysRenderDismissConfirmation)&&(this.currentUser.unread_high_priority_notifications>0||this.alwaysRenderDismissConfirmation)?this.dismissWarningModal():this.performDismiss()}static #d=(()=>dt7948.n(this.prototype,"dismissButtonClick",[i.action]))()}},56566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"X8KiRdnB",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[35,2],["user.no_other_notifications_title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[35,4],[[28,[37,2],["user.no_other_notifications_body"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["div","span","i18n","p","html-safe"]]',moduleName:"discourse/components/user-menu/other-notifications-list-empty-state.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"other-notifications-list-empty-state"))},67015:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(40530);class s extends i.default{get dismissTypes(){return this.filterByTypes}get emptyStateComponent(){return"user-menu/other-notifications-list-empty-state"}get renderDismissConfirmation(){return!1}}},2034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addUserMenuProfileTabItem:()=>m,default:()=>f,resetUserMenuProfileTabItems:()=>g});var i=n(37138),s=n(70001),r=n(54729),o=n(59202),a=n(13157),l=n(6610),u=n(74583),c=n(56839);let d=(0,n(82739).createTemplateFactory)({id:"ov0fBVFn",block:'[[[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[41,[30,0,["siteSettings","enable_user_status"]],[[[1," "],[10,"li"],[14,0,"set-user-status"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["setUserStatusClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1," "],[1,[28,[35,4],[[30,0,["currentUser","status","emoji"]]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[30,0,["currentUser","status","description"]]],[1,"\\n"],[41,[30,0,["currentUser","status","ends_at"]],[[[1," "],[1,[28,[35,6],[[30,0,["currentUser","status","ends_at"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["circle-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user_status.set_custom_status"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[15,0,[28,[37,9],["presence-toggle",[52,[51,[30,0,["isPresenceHidden"]]],"enabled"]],null]],[15,"title",[28,[37,8],["presence_toggle.title"],null]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["togglePresence"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["isPresenceHidden"]],"toggle-off","toggle-on"]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isPresenceHidden"]],[[[1," "],[1,[28,[35,8],["presence_toggle.offline"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],["presence_toggle.online"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[15,0,[28,[37,9],["do-not-disturb",[52,[30,0,["isInDoNotDisturb"]],"enabled"]],null]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["doNotDisturbClick"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],[[52,[30,0,["isInDoNotDisturb"]],"toggle-on","toggle-off"]],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1," "],[10,1],[12],[1,[28,[35,8],["pause_notifications.label"],null]],[13],[1,"\\n"],[41,[30,0,["showDoNotDisturbEndDate"]],[[[1," "],[1,[28,[35,6],[[30,0,["doNotDisturbDateTime"]]],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[35,8],["pause_notifications.label"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"hr"],[12],[13],[1,"\\n\\n "],[10,"li"],[14,0,"summary"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["user.summary",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.summary.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"activity"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userActivity",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["bars-staggered"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.activity_stream"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1," "],[10,"li"],[14,0,"invites"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userInvited",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.invited.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"li"],[14,0,"drafts"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["userActivity.drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["user_menu.drafts"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["currentUser","draft_count"]],[[[1," "],[1,[28,[35,8],["drafts.label_with_count"],[["count"],[[30,0,["currentUser","draft_count"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,8],["drafts.label"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"preferences"],[12],[1,"\\n "],[8,[39,12],null,[["@route","@model"],["preferences",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["gear"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.preferences.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showToggleAnonymousButton"]],[[[1," "],[10,"li"],[15,0,[52,[30,0,["currentUser","is_anonymous"]],"disable-anonymous","enable-anonymous"]],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["toggleAnonymous"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","is_anonymous"]],[[[1," "],[1,[28,[35,7],["ban"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["switch_from_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,7],["user-secret"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["switch_to_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["extraItems"]]],null]],null],null,[[[1," "],[10,"li"],[15,0,[30,2,["className"]]],[12],[1,"\\n "],[10,3],[15,6,[30,2,["href"]]],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1," "],[1,[28,[35,7],[[30,2,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[30,2,["content"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1,"\\n "],[10,"li"],[14,0,"logout"],[12],[1,"\\n "],[8,[39,3],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[28,[37,16],["logout"],null]]],[["default"],[[[[1,"\\n "],[1,[28,[35,7],["right-from-bracket"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[35,8],["user.log_out"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"],[13]],["@ariaLabelledby","item"],false,["ul","if","li","d-button","emoji","span","format-age","d-icon","i18n","concat-class","unless","hr","link-to","each","-track-array","a","route-action"]]',moduleName:"discourse/components/user-menu/profile-tab-content.hbs",isStrictMode:!1});var p=n(76417);let h=[];function m(e){h.push(e)}function g(){h.clear()}class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"userStatus",[r.service]))();#ad=(()=>void dt7948.i(this,"userStatus"))();static #l=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#x=(()=>void dt7948.i(this,"modal"))();saving=!1;get showToggleAnonymousButton(){return this.currentUser.can_post_anonymously||this.currentUser.is_anonymous}get isInDoNotDisturb(){return!!this.#ap}get doNotDisturbDateTime(){return this.#ap.getTime()}get showDoNotDisturbEndDate(){return!u.default.isEternal(this.currentUser.get("do_not_disturb_until"))}get extraItems(){return h}get #ap(){if(!this.currentUser.get("do_not_disturb_until"))return;let e=new Date(this.currentUser.get("do_not_disturb_until"));if(!(e{this.saving=!1});this.saving=!1,this.args.closeUserMenu(),this.modal.show(o.default)}}static #u=(()=>dt7948.n(this.prototype,"doNotDisturbClick",[s.action]))();togglePresence(){this.currentUser.set("user_option.hide_presence",!this.isPresenceHidden),this.currentUser.save(["hide_presence"])}static #c=(()=>dt7948.n(this.prototype,"togglePresence",[s.action]))();setUserStatusClick(){this.args.closeUserMenu(),this.modal.show(a.default,{model:{status:this.currentUser.status,pauseNotifications:this.currentUser.isInDoNotDisturb(),saveAction:(e,t)=>this.userStatus.set(e,t),deleteAction:()=>this.userStatus.clear()}})}static #d=(()=>dt7948.n(this.prototype,"setUserStatusClick",[s.action]))();async toggleAnonymous(){await (0,l.ajax)((0,c.userPath)("toggle-anon"),{type:"POST"}),window.location.reload()}static #p=(()=>dt7948.n(this.prototype,"toggleAnonymous",[s.action]))()}(0,p.setComponentTemplate)(d,f)},7917:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(40530);class s extends i.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/notifications-list-empty-state"}}},67985:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(54729),s=n(63283),r=n(6610),o=n(51004),a=n(60885),l=n(87389),u=n(51969);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[i.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[i.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"site",[i.service]))();#S=(()=>void dt7948.i(this,"site"))();get showAllHref(){return(0,l.default)("/review")}get showAllTitle(){return(0,u.i18n)("user_menu.reviewable.view_all")}get itemsCacheKey(){return"pending-reviewables"}fetchItems(){return(0,r.ajax)("/review/user-menu-list").then(e=>(this.currentUser.updateReviewableCount(e.reviewable_count),e.reviewables.map(e=>new o.default({reviewable:a.default.create(e),currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))))}}},2703:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"GCeIm9DC",block:'[[[10,"section"],[14,0,"user-navigation user-navigation-primary"],[12],[1,"\\n "],[8,[39,1],[[24,0,"main-nav nav user-nav"]],[["@ariaLabel"],["User primary"]],[["default"],[[[[1,"\\n"],[41,[51,[30,1,["profile_hidden"]]],[[[1," "],[8,[39,3],[[24,0,"user-nav__summary"]],[["@route"],["user.summary"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.summary.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[39,3],[[24,0,"user-nav__activity"]],[["@route","@ariaCurrentContext"],["userActivity","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.activity_stream"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,3],[[[1," "],[8,[39,3],[[24,0,"user-nav__notifications"]],[["@route","@ariaCurrentContext"],["userNotifications","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["bell"],[["class"],["glyph"]]]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.notifications"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[39,3],[[24,0,"user-nav__personal-messages"]],[["@route","@ariaCurrentContext"],["userPrivateMessages","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.private_messages"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[39,3],[[24,0,"user-nav__invites"]],[["@route","@ariaCurrentContext"],["userInvited","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["user-plus"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.invited.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,6],[[[1," "],[8,[39,3],[[24,0,"user-nav__badges"]],[["@route"],["user.badges"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["certificate"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["badges.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-main-nav","li",[28,[37,9],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["can_edit"]],[[[1," "],[8,[39,3],[[24,0,"user-nav__preferences"]],[["@route","@ariaCurrentContext"],["preferences","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[35,4],["gear"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["user.preferences.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,10],[[30,7],[30,8]],null],[[[1," "],[10,"li"],[14,0,"user-nav__admin"],[12],[1,"\\n "],[10,3],[15,6,[30,1,["adminPath"]]],[12],[1,"\\n "],[1,[28,[35,4],["wrench"],null]],[1,"\\n "],[10,1],[12],[1,[28,[35,6],["admin.user.manage_user"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"],[13]],["@user","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@isMobileView","@isStaff"],false,["section","horizontal-overflow-nav","unless","d-navigation-item","d-icon","span","i18n","if","plugin-outlet","hash","and","li","a"]]',moduleName:"discourse/components/user-nav.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"user-nav"))},59345:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(93223),s=n(17784),r=n(53349);let o=dt7948.c(class extends s.default{},[(0,r.pluginApiIdentifiers)("user-nav-messages-dropdown"),(0,r.selectKitOptions)({caretDownIcon:"caret-right",caretUpIcon:"caret-down"}),(0,i.classNames)("user-nav-messages-dropdown")])},85864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(37138),s=n(76417),r=n(82739);class o extends i.default{get messagesNav(){return document.getElementById("user-navigation-secondary__horizontal-nav")}static #e=(()=>(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"e9ozi6Gf",block:'[[[1,"\\n"],[40,[[[1," "],[18,1,null],[1,"\\n"]],[]],"%cursor:0%",[28,[31,1],[[30,0,["messagesNav"]]],null]],[1," "]],["&default"],false,["in-element","-in-el-null","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-nav/messages-secondary-nav.js",isStrictMode:!0}),this))()}},15114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(28147);let o=(0,n(82739).createTemplateFactory)({id:"d7o3ru8a",block:'[[[10,"tr"],[15,0,[29,["day ",[30,0,["dayLabel"]]]]],[12],[1,"\\n "],[10,"td"],[14,0,"day-label"],[12],[1,[30,0,["dayLabel"]]],[13],[1,"\\n "],[10,"td"],[14,0,"starts-at"],[12],[1,"\\n "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["startTimeOptions"]],[30,0,["startTimeValue"]],[30,0,["onChangeStartTime"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["endTimeOptions"]],[[[1," "],[10,"td"],[14,0,"to"],[12],[1,[28,[35,4],["user.notification_schedule.to"],null]],[13],[1,"\\n "],[10,"td"],[14,0,"ends-at"],[12],[1,"\\n "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["endTimeOptions"]],[30,0,["endTimeValue"]],[30,0,["onChangeEndTime"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],[],false,["tr","td","combo-box","if","i18n"]]',moduleName:"discourse/components/user-notification-schedule-day.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"dayLabel",[(0,r.i18n)("day","user.notification_schedule.%@")]))();#ah=(()=>void dt7948.i(this,"dayLabel"))()},[(0,s.tagName)("")]),l=(0,i.setComponentTemplate)(o,a)},89997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(76417),s=n(70001),r=n(62797),o=n(51969);let a=(0,n(82739).createTemplateFactory)({id:"WhrMHxjj",block:'[[[10,0],[14,0,"control-group notification-schedule"],[14,"data-setting-name","user-notification-schedule"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.notification_schedule.title"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@labelKey","@checked"],["user.notification_schedule.label",[30,0,["model","user_notification_schedule","enabled"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","user_notification_schedule","enabled"]],[[[1," "],[10,0],[14,0,"instruction"],[12],[1,[28,[35,2],["user.notification_schedule.tip"],null]],[13],[1,"\\n\\n "],[10,"table"],[14,0,"notification-schedule-table"],[12],[1,"\\n "],[10,"tbody"],[14,0,"notification-schedule-tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["days"]]],null]],null],null,[[[1," "],[8,[39,9],null,[["@day","@startTimeOptions","@startTimeValue","@onChangeStartTime","@endTimeOptions","@endTimeValue","@onChangeEndTime"],[[30,1,["day"]],[30,1,["startTimeOptions"]],[30,1,["startTimeValue"]],[30,1,["onChangeStartTime"]],[30,1,["endTimeOptions"]],[30,1,["endTimeValue"]],[30,1,["onChangeEndTime"]]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["day"],false,["div","label","i18n","preference-checkbox","if","table","tbody","each","-track-array","user-notification-schedule-day"]]',moduleName:"discourse/components/user-notification-schedule.hbs",isStrictMode:!1}),l=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"];class u extends s.default{id=null;startTimeOptions=null;model=null;onChangeStartTime(e){this.startingTimeChangedForDay(e)}static #e=(()=>dt7948.n(this.prototype,"onChangeStartTime",[s.action]))();onChangeEndTime(e){this.set(`model.user_notification_schedule.day_${this.id}_end_time`,e)}static #n=(()=>dt7948.n(this.prototype,"onChangeEndTime",[s.action]))();startTimeValue(e){return e[`day_${this.id}_start_time`]}static #i=(()=>dt7948.n(this.prototype,"startTimeValue",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time")]))();endTimeOptions(e){return this.buildEndTimeOptionsFor(e[`day_${this.id}_start_time`])}static #l=(()=>dt7948.n(this.prototype,"endTimeOptions",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time")]))();endTimeValue(e){return e[`day_${this.id}_end_time`]}static #u=(()=>dt7948.n(this.prototype,"endTimeValue",[(0,r.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_end_time")]))();startingTimeChangedForDay(e){e=parseInt(e,10),this.model.set(`user_notification_schedule.day_${this.id}_start_time`,e),"-1"!==e&&this.model.user_notification_schedule[`day_${this.id}_end_time`]<=e&&this.model.set(`user_notification_schedule.day_${this.id}_end_time`,e+30)}buildEndTimeOptionsFor(e){return -1===(e=parseInt(e,10))?null:this.buildTimeOptions(e+30,{includeNone:!1,showMidnight:!0})}}class c extends i.default{days=null;didInsertElement(){super.didInsertElement(...arguments),this.set("startTimeOptions",this.buildTimeOptions(0,{includeNone:!0,showMidnight:!1})),this.set("days",[]),l.forEach((e,t)=>{this.days.pushObject(u.create({id:t,day:e,model:this.model,buildTimeOptions:this.buildTimeOptions,startTimeOptions:this.startTimeOptions}))})}buildTimeOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeNone:!1,showMidnight:!0},n=[];t.includeNone&&n.push({name:(0,o.i18n)("user.notification_schedule.none"),value:-1});for(let i=e;i<=1440;i+=30){let e=Math.floor(i/60),s=i%60;if(0===s&&(s="00"),24===e){t.showMidnight&&n.push({name:(0,o.i18n)("user.notification_schedule.midnight"),value:1440});break}n.push({name:moment().set("hour",e).set("minute",s).format("LT"),value:i})}return n}}(0,i.setComponentTemplate)(a,c)},53573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"Xqcdc1vm",block:'[[[10,0],[14,0,"control-group category-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.categories_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-watching"],null]],[1," "],[1,[28,[35,2],["user.watched_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["watchingTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["watchedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.watched_categories_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-tracking"],null]],[1," "],[1,[28,[35,2],["user.tracked_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["trackingTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["trackedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["trackedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.tracked_categories_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-watching-first"],null]],[1,"\\n "],[1,[28,[35,2],["user.watched_first_post_categories"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedFirstPostCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["watchedFirstPostCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.watched_first_post_categories_instructions"],null]],[13],[1,"\\n\\n"],[41,[30,4,["mute_all_categories_by_default"]],[[[1," "],[10,0],[14,0,"controls tracking-controls tracking-controls__regular-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-regular"],null]],[1," "],[1,[28,[35,2],["user.regular_categories"],null]],[13],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["regularCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["regularCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],["user.regular_categories_instructions"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-categories"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,3],["d-muted"],null]],[1," "],[1,[28,[35,2],["user.muted_categories"],null]],[13],[1,"\\n\\n"],[41,[30,1],[[[1," "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["mutedTopicsPath"]]],[12],[1,[28,[35,2],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[39,6],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["mutedCategories"]],[30,3],[28,[37,7],[[28,[37,8],[[30,2,["mutedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,2],[[52,[30,5],"user.muted_categories_instructions","user.muted_categories_instructions_dont_hide"]],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-categories","div",[28,[37,11],null,[["model","save"],[[30,2],[30,6]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,11],null,[["model"],[[30,2]]]]]],null],[1,"\\n"],[13]],["@canSee","@model","@selectedCategories","@siteSettings","@hideMutedTags","@save"],false,["div","label","i18n","d-icon","if","a","category-selector","fn","mut","span","plugin-outlet","hash","br"]]',moduleName:"discourse/components/user-preferences/categories.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"categories"))},53497:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(93223),r=n(51969),o=n(25318),a=n(53349);let l=dt7948.c(class extends o.default{get content(){return[{id:"edit",icon:"pencil",name:(0,r.i18n)("user.second_factor.edit")},{id:"delete",icon:"trash-can",name:(0,r.i18n)("user.second_factor.delete")}]}static #e=(()=>dt7948.n(this.prototype,"content",[i.computed]))();onChange(e){switch(e){case"edit":this.renamePasskey();break;case"delete":this.deletePasskey()}}static #n=(()=>dt7948.n(this.prototype,"onChange",[i.action]))()},[(0,a.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,s.classNames)("passkey-options-dropdown")])},95461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(28564),r=n(76417),o=n(70001),a=n(54729),l=n(92976),u=n(6610),c=n(64149),d=n(51969),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"passkeyName",[s.tracked]))();#am=(()=>void dt7948.i(this,"passkeyName"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked]))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();instructions=(()=>(0,d.i18n)("user.passkeys.rename_passkey_instructions"))();constructor(){super(...arguments),this.passkeyName=this.args.model.name}async saveRename(){try{await (0,u.ajax)(`/u/rename_passkey/${this.args.model.id}`,{type:"PUT",data:{name:this.passkeyName}}),this.errorMessage=null,this.router.refresh(),this.dialog.didConfirmWrapped()}catch(e){this.errorMessage=(0,c.extractError)(e)}}static #u=(()=>dt7948.n(this.prototype,"saveRename",[o.action]))();static #c=(()=>(0,r.setComponentTemplate)((0,p.createTemplateFactory)({id:"RNNTbKZI",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n "],[1,[30,0,["errorMessage"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"rename-passkey__form"],[12],[1,"\\n "],[10,0],[14,0,"rename-passkey__message"],[12],[1,"\\n "],[10,2],[12],[1,[30,0,["instructions"]]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[10,0],[14,0,"rename-passkey__form inline-form"],[12],[1,"\\n "],[8,[32,0],[[16,"autofocus",true]],[["@value","@type"],[[30,0,["passkeyName"]],"text"]],null],[1,"\\n "],[8,[32,1],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["saveRename"]],"user.passkeys.save"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/rename-passkey.js",scope:()=>[r.Input,l.default],isStrictMode:!0}),this))()}},9088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"9pvFq76B",block:'[[[41,[30,1,["tagging_enabled"]],[[[1," "],[10,0],[14,0,"control-group tag-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,3],["user.tag_settings"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching"],[["class"],["icon watching"]]]],[1,"\\n "],[1,[28,[35,3],["user.watched_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watched_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.watched_tags_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-tracking"],[["class"],["icon tracking"]]]],[1,"\\n "],[1,[28,[35,3],["user.tracked_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["tracked_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.tracked_tags_instructions"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-post-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-watching-first"],[["class"],["icon watching-first-post"]]]],[1,"\\n "],[1,[28,[35,3],["user.watched_first_post_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watching_first_post_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[35,3],["user.watched_first_post_tags_instructions"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-tags"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,4],["d-muted"],[["class"],["icon muted"]]]],[1,"\\n "],[1,[28,[35,3],["user.muted_tags"],null]],[13],[1,"\\n "],[8,[39,5],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["muted_tags"]],[30,3],true,true,[28,[37,6],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,3],["user.muted_tags_instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-tags","div",[28,[37,6],null,[["model","save"],[[30,2],[30,4]]]]]],null],[1,"\\n "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,6],null,[["model"],[[30,2]]]]]],null],[1,"\\n"]],[]],null]],["@siteSettings","@model","@selectedTags","@save"],false,["if","div","label","i18n","d-icon","tag-chooser","hash","plugin-outlet"]]',moduleName:"discourse/components/user-preferences/tags.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"tags"))},88150:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"ZHGcYAHN",block:'[[[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.new_topic_duration.label"],null]],[13],[1,"\\n "],[8,[39,3],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,1],[30,2,["user_option","new_topic_duration_minutes"]],[28,[37,4],[[28,[37,5],[[30,2,["user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.auto_track_topics"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,3],[30,2,["user_option","auto_track_topics_after_msecs"]],[28,[37,6],[[30,0],[28,[37,5],[[30,2,["user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[35,2],["user.notification_level_when_replying"],null]],[13],[1,"\\n "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,4],[30,2,["user_option","notification_level_when_replying"]],[28,[37,6],[[30,0],[28,[37,5],[[30,2,["user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@considerNewTopicOptions","@model","@autoTrackDurations","@notificationLevelsForReplying"],false,["div","label","i18n","combo-box","fn","mut","action"]]',moduleName:"discourse/components/user-preferences/topic-tracking.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"topic-tracking"))},2518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(88606);let s=(0,n(82739).createTemplateFactory)({id:"qxmsLSMp",block:'[[[41,[30,1,["userApiKeys"]],[[[1," "],[10,0],[14,0,"control-group pref-user-api-keys"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label pref-user-api-keys__label"],[12],[1,[28,[35,3],["user.apps"],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1,["userApiKeys"]]],null]],null],null,[[[1," "],[10,0],[12],[1,"\\n "],[10,1],[14,0,"pref-user-api-keys__application-name"],[12],[1,[30,2,["application_name"]]],[13],[1,"\\n\\n"],[41,[30,2,["revoked"]],[[[1," "],[8,[39,7],null,[["@action","@label"],[[28,[37,8],[[28,[37,9],["undoRevokeApiKey"],null],[30,2]],null],"user.undo_revoke_access"]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@action","@label"],[[28,[37,8],[[28,[37,9],["revokeApiKey"],null],[30,2]],null],"user.revoke_access"]],null],[1,"\\n"]],[]]],[1,"\\n "],[10,2],[12],[1,"\\n "],[10,"ul"],[14,0,"pref-user-api-keys__scopes-list"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,2,["scopes"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"pref-user-api-keys__scopes-list-item"],[12],[1,[30,3]],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"pref-user-api-keys__created-at"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.api_approved"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,2,["created_at"]]],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,2],[14,0,"pref-user-api-keys__last-used-at"],[12],[1,"\\n "],[10,1],[12],[1,[28,[35,3],["user.api_last_used_at"],null]],[13],[1,"\\n "],[1,[28,[35,13],[[30,2,["last_used_at"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@model","key","scope"],false,["if","div","label","i18n","each","-track-array","span","d-button","fn","route-action","p","ul","li","bound-date"]]',moduleName:"discourse/components/user-preferences/user-api-keys.hbs",isStrictMode:!1}),r=(0,n(76417).setComponentTemplate)(s,(0,i.default)(void 0,"user-api-keys"))},69187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(37138),s=n(39882),r=n(70001),o=n(42433),a=n(54729),l=n(35804),u=n(92976),c=n(86170),d=n(53497),p=n(95461),h=n(25614),m=n(64149),g=n(2262),f=n(51969),_=n(76417),y=n(82739);class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[a.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();get showActions(){return this.currentUser.id===this.args.model.id&&!this.capabilities.isAppWebview}async createPasskey(){try{let e=await this.args.model.createPasskey(),t={challenge:Uint8Array.from(e.challenge,e=>e.charCodeAt(0)),rp:{name:e.rp_name,id:e.rp_id},user:{id:Uint8Array.from(e.user_secure_id,e=>e.charCodeAt(0)),name:this.currentUser.username,displayName:this.currentUser.username},pubKeyCredParams:e.supported_algorithms.map(e=>({type:"public-key",alg:e})),excludeCredentials:e.existing_passkey_credential_ids.map(e=>({type:"public-key",id:(0,g.stringToBuffer)(atob(e))})),authenticatorSelection:{userVerification:"required",requireResidentKey:!0}},n=await navigator.credentials.create({publicKey:t,signal:g.WebauthnAbortHandler.signal()}),i={id:n.id,rawId:(0,g.bufferToBase64)(n.rawId),type:n.type,attestation:(0,g.bufferToBase64)(n.response.attestationObject),clientData:(0,g.bufferToBase64)(n.response.clientDataJSON),name:(0,f.i18n)("user.passkeys.name.default")},s=await this.args.model.registerPasskey(i);if(s.error){this.dialog.alert(s.error);return}this.router.refresh(),this.dialog.dialog({title:(0,f.i18n)("user.passkeys.passkey_successfully_created"),type:"notice",bodyComponent:p.default,bodyComponentModel:s})}catch(e){console.error(e),this.errorMessage="InvalidStateError"===e.name?(0,f.i18n)("user.passkeys.already_added_error"):(0,f.i18n)("user.passkeys.not_allowed_error"),this.dialog.alert(this.errorMessage)}}confirmDelete(e){(0,o.schedule)("afterRender",()=>{this.dialog.deleteConfirm({title:(0,f.i18n)("user.passkeys.confirm_delete_passkey"),didConfirm:()=>{this.args.model.deletePasskey(e).then(()=>{this.router.refresh()})}})})}async addPasskey(){try{(await this.args.model.trustedSession()).success?await this.createPasskey():this.dialog.dialog({title:(0,f.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:c.default,didConfirm:()=>this.createPasskey()})}catch(e){(0,m.popupAjaxError)(e)}}static #u=(()=>dt7948.n(this.prototype,"addPasskey",[r.action]))();async deletePasskey(e){try{(await this.args.model.trustedSession()).success?this.confirmDelete(e):this.dialog.dialog({title:(0,f.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:c.default,didConfirm:()=>this.confirmDelete(e)})}catch(e){(0,m.popupAjaxError)(e)}}static #c=(()=>dt7948.n(this.prototype,"deletePasskey",[r.action]))();renamePasskey(e,t){this.dialog.dialog({title:(0,f.i18n)("user.passkeys.rename_passkey"),type:"notice",bodyComponent:p.default,bodyComponentModel:{id:e,name:t}})}static #d=(()=>dt7948.n(this.prototype,"renamePasskey",[r.action]))();static #p=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"WtAUhyvw",block:'[[[1,"\\n "],[10,0],[14,0,"control-group pref-passkeys"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n "],[1,[28,[32,0],["user.passkeys.title"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.passkeys.short_description"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"pref-passkeys__rows"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["user_passkeys"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row"],[12],[1,"\\n "],[10,0],[14,0,"passkey-left"],[12],[1,"\\n "],[10,0],[14,0,"row-passkey__name"],[12],[1,[30,2,["name"]]],[13],[1,"\\n "],[10,0],[14,0,"row-passkey__created-date"],[12],[1,"\\n "],[1,[28,[32,1],[[28,[32,0],["user.passkeys.added_date"],[["date"],[[28,[32,2],[[30,2,["created_at"]]],[["format","leaveAgo"],["medium","true"]]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"row-passkey__used-date"],[12],[1,"\\n"],[41,[30,2,["last_used"]],[[[1," "],[1,[28,[32,1],[[28,[32,0],["user.passkeys.last_used_date"],[["date"],[[28,[32,2],[[30,2,["last_used"]]],[["format","leaveAgo"],["medium","true"]]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["user.passkeys.never_used"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["showActions"]],[[[1," "],[10,0],[14,0,"passkey-right"],[12],[1,"\\n "],[10,0],[14,0,"actions"],[12],[1,"\\n "],[8,[32,3],null,[["@deletePasskey","@renamePasskey"],[[28,[32,4],[[30,0,["deletePasskey"]],[30,2,["id"]]],null],[28,[32,4],[[30,0,["renamePasskey"]],[30,2,["id"]],[30,2,["name"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["showActions"]],[[[1," "],[10,0],[14,0,"controls pref-passkeys__add"],[12],[1,"\\n "],[8,[32,5],null,[["@action","@icon","@label"],[[30,0,["addPasskey"]],"plus","user.passkeys.add_passkey"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@model","passkey"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/user-passkeys.js",scope:()=>[f.i18n,l.htmlSafe,h.default,d.default,s.fn,u.default],isStrictMode:!0}),this))()}},31841:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"P0/QGfUU",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-wrapper",[28,[37,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-profile-avatar"],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-img-wrapper",[28,[37,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[35,3],[[30,1],"huge"],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[39,4],null,[["@user"],[[30,1]]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-avatar-flair",[28,[37,1],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@user"],false,["plugin-outlet","hash","div","bound-avatar","user-avatar-flair"]]',moduleName:"discourse/components/user-profile-avatar.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},23527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(35804),r=n(31594),o=n(15523),a=n(21237),l=n(51969),u=n(76417),c=n(82739);class d extends i.default{get type(){return this.args.type??"number"}get isNumber(){return"number"===this.type}get isDuration(){return"duration"===this.type}static #e=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"Emlxa88I",block:'[[[1,"\\n "],[10,0],[14,0,"user-stat"],[12],[1,"\\n "],[10,1],[14,0,"value"],[15,"title",[30,1]],[12],[1,"\\n"],[41,[30,0,["isNumber"]],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDuration"]],[[[1," "],[1,[28,[32,1],[[30,2]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "],[10,1],[14,0,"label"],[12],[1,"\\n "],[41,[30,3],[[[1,[28,[32,2],[[30,3]],null]]],[]],null],[1,"\\n "],[1,[28,[32,3],[[28,[32,4],[[30,4]],[["count"],[[30,2]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@rawTitle","@value","@icon","@label"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-stat.js",scope:()=>[o.default,r.default,a.default,s.htmlSafe,l.i18n],isStrictMode:!0}),this))()}},61325:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(54729),r=n(70530),o=n(38536),a=n(92296),l=n(76417),u=n(82739);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get until(){if(!this.args.status.ends_at)return;let e=this.currentUser?this.currentUser.user_option?.timezone:moment.tz.guess();return(0,o.until)(this.args.status.ends_at,e,this.currentUser?.locale)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"OPUNPPco",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],[[24,0,"user-status-message"],[17,2]],[["@identifier"],["user-status-message-tooltip"]],[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,1],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"user-status-message-description"],[12],[1,"\\n "],[1,[30,1,["description"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[1,[28,[32,1],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n "],[10,1],[14,0,"user-status-tooltip-description"],[12],[1,"\\n "],[1,[30,1,["description"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["until"]],[[[1," "],[10,0],[14,0,"user-status-tooltip-until"],[12],[1,"\\n "],[1,[30,0,["until"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@status","&attrs","@showDescription"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-status-message.js",scope:()=>[a.default,r.default],isStrictMode:!0}),this))()}},57322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(42433),l=n(35804),u=n(92976),c=n(63334),d=n(27147),p=n(62167),h=n(20802),m=n(59481),g=n(51969),f=n(76417),_=n(82739);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"isFocused",[s.tracked],function(){return!1}))();#ag=(()=>void dt7948.i(this,"isFocused"))();static #n=(()=>dt7948.g(this.prototype,"emojiPickerIsActive",[s.tracked],function(){return!1}))();#af=(()=>void dt7948.i(this,"emojiPickerIsActive"))();get emojiHtml(){return(0,p.emojiUnescape)((0,h.escapeExpression)(`:${this.args.status.emoji}:`))}focusEmojiButton(){document.querySelector(".user-status-picker .btn-emoji")?.focus()}blur(){this.isFocused=!1}static #i=(()=>dt7948.n(this.prototype,"blur",[o.action]))();emojiSelected(e){this.args.status.emoji=e,this.emojiPickerIsActive=!1,(0,a.scheduleOnce)("afterRender",this,this.focusEmojiButton)}static #l=(()=>dt7948.n(this.prototype,"emojiSelected",[o.action]))();focus(){this.isFocused=!0}static #u=(()=>dt7948.n(this.prototype,"focus",[o.action]))();onEmojiPickerOutsideClick(){this.emojiPickerIsActive=!1}static #c=(()=>dt7948.n(this.prototype,"onEmojiPickerOutsideClick",[o.action]))();updateDescription(e){this.args.status.description=e.target.value,this.args.status.emoji||="speech_balloon"}static #d=(()=>dt7948.n(this.prototype,"updateDescription",[o.action]))();toggleEmojiPicker(){this.emojiPickerIsActive=!this.emojiPickerIsActive}static #p=(()=>dt7948.n(this.prototype,"toggleEmojiPicker",[o.action]))();static #h=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"LfhjvDPl",block:'[[[1,"\\n "],[10,0],[14,0,"user-status-picker-wrap"],[12],[1,"\\n "],[10,0],[15,0,[28,[32,0],["emoji-picker-anchor user-status-picker",[52,[30,0,["isFocused"]],"focused"]],null]],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-emoji btn-transparent"],[4,[32,3],["focus",[30,0,["focus"]]],null],[4,[32,3],["blur",[30,0,["blur"]]],null]],[["@action","@icon","@translatedLabel"],[[30,0,["toggleEmojiPicker"]],[52,[51,[30,1,["emoji"]]],"discourse-emojis"],[52,[30,1,["emoji"]],[28,[32,2],[[30,0,["emojiHtml"]]],null]]]],null],[1,"\\n\\n "],[11,"input"],[16,2,[30,1,["description"]]],[16,"placeholder",[28,[32,4],["user_status.what_are_you_doing"],null]],[24,"maxlength","100"],[24,0,"user-status-description"],[24,4,"text"],[4,[32,3],["input",[30,0,["updateDescription"]]],null],[4,[32,3],["focus",[30,0,["focus"]]],null],[4,[32,3],["blur",[30,0,["blur"]]],null],[4,[32,5],null,null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,6],null,[["@isActive","@emojiSelected","@onEmojiPickerClose","@placement"],[[30,0,["emojiPickerIsActive"]],[30,0,["emojiSelected"]],[30,0,["onEmojiPickerOutsideClick"]],"bottom"]],null],[1,"\\n "]],["@status"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-status-picker.js",scope:()=>[d.default,u.default,l.htmlSafe,r.on,g.i18n,m.default,c.default],isStrictMode:!0}),this))()}},95646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(76417),s=n(70001),r=n(93223),o=n(28147),a=n(56839),l=n(75957),u=n(62797);let c=(0,n(82739).createTemplateFactory)({id:"lZtNLb9G",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["user-stream-item-above",[28,[37,1],null,[["item"],[[30,1]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[28,[37,4],[[30,1,["draft_username"]],[30,1,["username"]]],null]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[35,5],[[30,1]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n "],[8,[39,6],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n "],[10,1],[14,0,"title"],[12],[1,"\\n"],[41,[30,1,["postUrl"]],[[[1," "],[10,3],[15,6,[30,1,["postUrl"]]],[12],[1,[28,[35,9],[[30,1,["title"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[35,9],[[30,1,["title"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["draftType"]],[[[1," "],[10,1],[14,0,"draft-type"],[12],[1,[28,[35,9],[[30,1,["draftType"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,11],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"user-stream-item__metadata"],[12],[1,"\\n "],[10,1],[14,0,"time"],[12],[1,[28,[35,12],[[30,1,["created_at"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["deleted_by"]],[[[1," "],[10,1],[14,0,"delete-info"],[12],[1,"\\n "],[1,[28,[35,13],["trash-can"],null]],[1,"\\n "],[1,[28,[35,5],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n "],[1,[28,[35,12],[[30,1,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[37,1],null,[["item"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["actionDescription"]],[[[1," "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["actionDescription"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[15,"data-topic-id",[30,1,["topic_id"]]],[15,"data-post-id",[30,1,["post_id"]]],[15,"data-user-id",[30,1,["user_id"]]],[14,0,"excerpt"],[12],[41,[30,1,["expandedExcerpt"]],[[[1,[28,[35,9],[[30,1,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[35,9],[[30,1,["excerpt"]]],null]]],[]]],[13],[1,"\\n\\n"],[42,[28,[37,16],[[28,[37,16],[[30,1,["children"]]],null]],null],null,[[[1," "],[10,0],[14,0,"user-stream-item-actions child-actions"],[12],[1,"\\n "],[1,[28,[35,13],[[30,2,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[37,16],[[28,[37,16],[[30,2,["items"]]],null]],null],null,[[[1," "],[10,3],[15,6,[30,3,["userUrl"]]],[15,"data-user-card",[30,3,["username"]]],[14,0,"avatar-link"],[12],[1,"\\n "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n "],[1,[28,[35,5],[[30,3]],[["imageSize","extraClasses","ignoreTitle","avatarTemplatePath"],["tiny","actor","true","acting_avatar_template"]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,3,["edit_reason"]],[[[1," —\\n "],[10,1],[14,0,"edit-reason"],[12],[1,[30,3,["edit_reason"]]],[13]],[]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,1,["editableDraft"]],[[[1," "],[10,0],[14,0,"user-stream-item-draft-actions"],[12],[1,"\\n "],[8,[39,17],[[24,0,"btn-default resume-draft"]],[["@action","@icon","@label"],[[28,[37,18],[[30,4],[30,1]],null],"pencil","drafts.resume"]],null],[1,"\\n "],[8,[39,17],[[24,0,"btn-danger remove-draft"]],[["@action","@icon","@title"],[[28,[37,18],[[30,5],[30,1]],null],"trash-can","drafts.remove"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,6,null]],["@item","child","grandChild","@resumeDraft","@removeDraft","&bottom"],false,["plugin-outlet","hash","div","a","or","avatar","topic-status","span","if","html-safe","category-link","expand-post","format-date","d-icon","p","each","-track-array","d-button","fn","yield"]]',moduleName:"discourse/components/user-stream-item.hbs",isStrictMode:!1}),d=dt7948.c(class extends i.default{static #e=(()=>dt7948.g(this.prototype,"moderatorAction",[(0,o.propertyEqual)("item.post_type","site.post_types.moderator_action")]))();#tR=(()=>void dt7948.i(this,"moderatorAction"))();static #n=(()=>dt7948.g(this.prototype,"actionDescription",[(0,l.actionDescription)("item.action_code","item.created_at","item.action_code_who","item.action_code_path")]))();#a_=(()=>void dt7948.i(this,"actionDescription"))();get hidden(){return this.get("item.hidden")&&!(this.currentUser&&this.currentUser.staff)}static #i=(()=>dt7948.n(this.prototype,"hidden",[(0,s.computed)("item.hidden")]))();userUrl(e,t){return(0,a.userPath)((e||t).toLowerCase())}static #l=(()=>dt7948.n(this.prototype,"userUrl",[(0,u.default)("item.draft_username","item.username")]))()},[(0,r.classNameBindings)(":user-stream-item",":item","hidden","item.deleted:deleted","moderatorAction"),(0,r.tagName)("li")]),p=(0,i.setComponentTemplate)(c,d)},97267:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(76417),s=n(70001),r=n(71597),o=n(42433),a=n(54729),l=n(93223),u=n(9630),c=n(14682),d=n.n(c),p=n(64149),h=n(31800),m=n(56839),g=n(69863),f=n(2151),_=n(82154),y=n(69883),b=n(51969);let w=(0,n(82739).createTemplateFactory)({id:"3ZQh1mmf",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1,["content"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@item","@removeBookmark","@resumeDraft","@removeDraft"],[[30,2],[28,[37,3],[[30,0],"removeBookmark"],null],[28,[37,3],[[30,0],"resumeDraft"],null],[28,[37,3],[[30,0],"removeDraft"],null]]],null],[1,"\\n"]],[2]],null]],["@stream","item"],false,["each","-track-array","user-stream-item","action"]]',moduleName:"discourse/components/user-stream.hbs",isStrictMode:!1}),k=dt7948.c(class extends i.default.extend(g.default){static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#K=(()=>void dt7948.i(this,"composer"))();loading=!1;eyelineSelector=".user-stream .item";_lastDecoratedElement=null;_initialize(){let e=this.get("stream.filter");e&&this.set("classNames",["user-stream","filter-"+e.toString().replace(",","-")])}static #i=(()=>dt7948.n(this.prototype,"_initialize",[(0,u.on)("init")]))();_inserted(){d()(this.element).on("click.details-disabled","details.disabled",()=>!1),d()(this.element).on("click.discourse-redirect",".excerpt a",e=>h.default.trackClick(e,(0,r.getOwner)(this))),this._updateLastDecoratedElement(),this.appEvents.trigger("decorate-non-stream-cooked-element",this.element)}static #l=(()=>dt7948.n(this.prototype,"_inserted",[(0,u.on)("didInsertElement")]))();_destroyed(){d()(this.element).off("click.details-disabled","details.disabled"),d()(this.element).off("click.discourse-redirect",".excerpt a")}static #u=(()=>dt7948.n(this.prototype,"_destroyed",[(0,u.on)("willDestroyElement")]))();_updateLastDecoratedElement(){let e=this.element.querySelectorAll(".user-stream-item");if(0===e.length)return;let t=e[e.length-1];t!==this._lastDecoratedElement&&(this._lastDecoratedElement=t)}removeBookmark(e){let t=this.stream;y.default.updateBookmark(e.get("post_id"),!1).then(()=>{t.remove(e)}).catch(p.popupAjaxError)}static #c=(()=>dt7948.n(this.prototype,"removeBookmark",[s.action]))();resumeDraft(e){this.composer.get("model.viewOpen")&&this.composer.close(),e.get("postUrl")?m.default.routeTo(e.get("postUrl")):_.default.get(e.draft_key).then(t=>{let n=t.draft||e.data;n&&this.composer.open({draft:n,draftKey:e.draft_key,draftSequence:t.draft_sequence})}).catch(e=>{(0,p.popupAjaxError)(e)})}static #d=(()=>dt7948.n(this.prototype,"resumeDraft",[s.action]))();removeDraft(e){let t=this.stream;this.dialog.yesNoConfirm({message:(0,b.i18n)("drafts.remove_confirmation"),didConfirm:()=>{_.default.clear(e.draft_key,e.sequence).then(()=>{t.remove(e),e.draft_key===f.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1)}).catch(e=>{(0,p.popupAjaxError)(e)})}})}static #p=(()=>dt7948.n(this.prototype,"removeDraft",[s.action]))();loadMore(){this.loading||(this.set("loading",!0),this.stream.findItems().then(()=>{this.set("loading",!1),(0,o.later)(()=>{let e=this._lastDecoratedElement?.nextElementSibling;for(;e;)this.trigger("user-stream:new-item-inserted",e),this.appEvents.trigger("decorate-non-stream-cooked-element",e),e=e.nextElementSibling;this._updateLastDecoratedElement()})}))}static #h=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()},[(0,l.classNames)("user-stream"),(0,l.tagName)("ul")]),x=(0,i.setComponentTemplate)(w,k)},13304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"flfRzyWe",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@route","@query"],["full-page-search",[28,[37,2],null,[["q"],[[30,0,["searchParams"]]]]]]],[["default"],[[[[1,"\\n "],[1,[30,1]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," –\\n"]],[]]]],["@count"],false,["if","link-to","hash"]]',moduleName:"discourse/components/user-summary-category-search.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{searchParams(){let e=`@${this.get("user.username")} #${this.get("category.slug")}`;return this.searchOnlyFirstPosts&&(e+=" in:first"),e}static #e=(()=>dt7948.n(this.prototype,"searchParams",[(0,r.default)("user","category")]))()},[(0,s.tagName)("")]),l=(0,i.setComponentTemplate)(o,a)},83727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(51969),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"jqFJC3+O",block:'[[[1,"\\n "],[11,0],[24,0,"top-sub-section"],[17,1],[12],[1,"\\n "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[32,0],[[28,[32,1],["user.summary.",[30,2]],null]],null]],[13],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@title","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-summary-section.js",scope:()=>[s.i18n,i.concat],isStrictMode:!0}),(0,a.default)(void 0,"user-summary-section:UserSummarySection"))},91487:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"C8ZkVjS9",block:'[[[10,1],[14,0,"topic-info"],[12],[1,"\\n "],[1,[28,[35,1],[[30,1]],[["format","noTitle"],["tiny","true"]]]],[1,"\\n"],[41,[30,2],[[[1," ·\\n "],[1,[28,[35,3],["heart"],null]],[1," "],[10,1],[14,0,"like-count"],[12],[1,[28,[35,4],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,"br"],[12],[13],[1,"\\n"],[10,3],[15,6,[30,3]],[12],[1,[28,[35,7],[[30,4,["fancyTitle"]]],null]],[13]],["@createdAt","@likes","@url","@topic"],false,["span","format-date","if","d-icon","number","br","a","html-safe"]]',moduleName:"discourse/components/user-summary-topic.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("li")]),a=(0,i.setComponentTemplate)(r,o)},35788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(93223),r=n(62797);let o=(0,n(82739).createTemplateFactory)({id:"mmhVXHVH",block:'[[[41,[30,1],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1," "],[18,5,[[30,2]]],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["hasMore"]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[39,6],[[24,0,"more"]],[["@route","@model"],[[28,[37,7],["userActivity.",[30,3]],null],[30,4]]],[["default"],[[[[1,"\\n "],[1,[28,[35,8],[[28,[37,7],["user.summary.more_",[30,3]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,2],[12],[1,[28,[35,8],[[28,[37,7],["user.summary.no_",[30,3]],null]],null]],[13],[1,"\\n"]],[]]]],["@items","item","@type","@user","&default"],false,["if","ul","each","-track-array","yield","p","link-to","concat","i18n"]]',moduleName:"discourse/components/user-summary-topics-list.hbs",isStrictMode:!1}),a=dt7948.c(class extends i.default{hasMore(e){return e>=6}static #e=(()=>dt7948.n(this.prototype,"hasMore",[(0,r.default)("items.length")]))()},[(0,s.tagName)("")]),l=(0,i.setComponentTemplate)(o,a)},6991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(76417),s=n(93223);let r=(0,n(82739).createTemplateFactory)({id:"cKcl9xqX",block:'[[[8,[39,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n "],[10,1],[15,0,[30,3]],[12],[1,[28,[35,3],[[30,1,["count"]]],null]],[13],[1,"\\n"]],[]]]]]],["@user","@icon","@countClass"],false,["user-info","d-icon","span","number"]]',moduleName:"discourse/components/user-summary-user.hbs",isStrictMode:!1}),o=dt7948.c(class extends i.default{},[(0,s.tagName)("li")]),a=(0,i.setComponentTemplate)(r,o)},417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76417);let s=(0,n(82739).createTemplateFactory)({id:"DbNSM1lZ",block:'[[[41,[30,0,["users"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["users"]]],null]],null],null,[[[1," "],[18,2,[[30,1]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[35,6],[[28,[37,7],["user.summary.",[30,0,["none"]]],null]],null]],[13],[1,"\\n"]],[]]]],["user","&default"],false,["if","ul","each","-track-array","yield","p","i18n","concat"]]',moduleName:"discourse/components/user-summary-users-list.hbs",isStrictMode:!1});class r extends i.default{}(0,i.setComponentTemplate)(s,r)},65634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(87075),r=n(70001),o=n(54729),a=n(35804),l=n(92976),u=n(76417),c=n(82739);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"userTips",[o.service]))();#ay=(()=>void dt7948.i(this,"userTips"))();get safeHtmlContent(){return(0,a.htmlSafe)(this.args.data.contentHtml)}get showSkipButton(){return this.args.data.showSkipButton}handleDismiss(e,t){t.preventDefault(),this.args.close(),this.userTips.hideUserTipForever(this.args.data.id)}static #n=(()=>dt7948.n(this.prototype,"handleDismiss",[r.action]))();handleSkip(e,t){t.preventDefault(),this.args.close(),this.userTips.skipTips()}static #i=(()=>dt7948.n(this.prototype,"handleSkip",[r.action]))();onClick(e){"A"===e.target.nodeName&&this.args.close()}static #l=(()=>dt7948.n(this.prototype,"onClick",[r.action]))();static #u=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"L+Hs1ZMu",block:'[[[1,"\\n "],[10,0],[14,0,"user-tip__container"],[12],[1,"\\n "],[10,0],[14,0,"user-tip__title"],[12],[1,[30,1,["titleText"]]],[13],[1,"\\n"],[1," "],[11,0],[24,0,"user-tip__content"],[4,[32,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n"],[41,[30,1,["contentHtml"]],[[[1," "],[1,[30,0,["safeHtmlContent"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["contentText"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"user-tip__buttons"],[12],[1,"\\n "],[8,[32,1],[[24,0,"btn-primary"]],[["@translatedLabel","@action","@forwardEvent"],[[30,1,["buttonText"]],[30,0,["handleDismiss"]],true]],null],[1,"\\n\\n"],[41,[30,0,["showSkipButton"]],[[[1," "],[8,[32,1],[[24,0,"btn-flat btn-text"]],[["@translatedLabel","@action","@forwardEvent"],[[30,1,["buttonSkipText"]],[30,0,["handleSkip"]],true]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@data"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip-container.js",scope:()=>[s.on,l.default],isStrictMode:!0}),this))()}},30280:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(37138),s=n(71597),r=n(42433),o=n(54729),a=n(79635),l=n(65634),u=n(90687),c=n(29166),d=n(20762),p=n(51969),h=n(48859),m=n(76417),g=n(82739);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"userTips",[o.service]))();#ay=(()=>void dt7948.i(this,"userTips"))();static #i=(()=>dt7948.g(this.prototype,"tooltip",[o.service]))();#ab=(()=>void dt7948.i(this,"tooltip"))();registerTip=(()=>(0,u.default)((e,t)=>{let n={id:this.args.id,priority:this.args.priority??0};this.userTips.addAvailableTip(n),t.cleanup(()=>{this.userTips.removeAvailableTip(n)})}))();tip=(()=>(0,a.modifier)(e=>{let t;return(0,r.schedule)("afterRender",()=>{let n=this.args.triggerSelector&&document.querySelector(this.args.triggerSelector),i=(0,c.default)((0,p.i18n)(this.args.buttonLabel||"user_tips.button"));this.args.buttonIcon&&(i=`${(0,d.iconHTML)(this.args.buttonIcon)} ${i}`),(t=new h.default((0,s.getOwner)(this),{identifier:"user-tip",interactive:!0,closeOnScroll:!1,closeOnClickOutside:!0,placement:this.args.placement,component:l.default,data:{id:this.args.id,titleText:(0,c.default)(this.args.titleText),contentHtml:this.args.contentHtml||null,contentText:this.args.contentText?(0,c.default)(this.args.contentText):null,buttonText:i,buttonSkipText:(0,p.i18n)("user_tips.skip"),showSkipButton:this.args.showSkipButton}})).trigger=n||e,t.detachedTrigger=!0,this.tooltip.show(t),this.shouldRenderTip&&this.userTips.markAsSeen(this.args.id)}),()=>{t?.destroy()}}))();get shouldRenderTip(){return this.userTips.shouldRender(this.args.id)}static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"/kvuteim",block:'[[[1,"\\n "],[1,[30,0,["registerTip"]]],[1,"\\n"],[41,[30,0,["shouldRenderTip"]],[[[1," "],[11,1],[4,[30,0,["tip"]],null,null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip.js",isStrictMode:!0}),this))()}},82357:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(37138),s=n(28564),r=n(76417),o=n(87075),a=n(70001),l=n(5938),u=n(54729),c=n(35804),d=n(97355),p=n(92976),h=n(48491),m=n(64149),g=n(28147),f=n(56839),_=n(41958),y=n(51969),b=n(82739);class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[u.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"editing",[s.tracked],function(){return!1}))();#av=(()=>void dt7948.i(this,"editing"))();static #l=(()=>dt7948.g(this.prototype,"newUsername",[s.tracked],function(){return this.args.user.username}))();#aw=(()=>void dt7948.i(this,"newUsername"))();static #u=(()=>dt7948.g(this.prototype,"errorMessage",[s.tracked],function(){return null}))();#eQ=(()=>void dt7948.i(this,"errorMessage"))();static #c=(()=>dt7948.g(this.prototype,"saving",[s.tracked],function(){return!1}))();#nN=(()=>void dt7948.i(this,"saving"))();static #d=(()=>dt7948.g(this.prototype,"taken",[s.tracked],function(){return!1}))();#ak=(()=>void dt7948.i(this,"taken"))();static #p=(()=>dt7948.g(this.prototype,"maxLength",[(0,g.setting)("max_username_length")]))();#ax=(()=>void dt7948.i(this,"maxLength"))();static #h=(()=>dt7948.g(this.prototype,"minLength",[(0,g.setting)("min_username_length")]))();#aT=(()=>void dt7948.i(this,"minLength"))();static #m=(()=>dt7948.g(this.prototype,"newUsernameEmpty",[(0,l.empty)("newUsername")]))();#aS=(()=>void dt7948.i(this,"newUsernameEmpty"))();static #g=(()=>dt7948.g(this.prototype,"saveDisabled",[(0,l.or)("saving","newUsernameEmpty","taken","unchanged","errorMessage")]))();#is=(()=>void dt7948.i(this,"saveDisabled"))();get unchanged(){return this.newUsername===this.args.user.username}get saveButtonText(){return this.saving?(0,y.i18n)("saving"):(0,y.i18n)("user.change")}toggleEditing(){this.editing=!this.editing,this.newUsername=this.args.user.username,this.errorMessage=null,this.saving=!1,this.taken=!1}static #E=(()=>dt7948.n(this.prototype,"toggleEditing",[a.action]))();async onInput(e){if(this.newUsername=e.target.value,this.taken=!1,this.errorMessage=null,(0,d.isEmpty)(this.newUsername)||this.newUsername===this.args.user.username)return;if(this.newUsername.lengthdt7948.n(this.prototype,"onInput",[a.action]))();changeUsername(){return this.dialog.yesNoConfirm({title:(0,y.i18n)("user.change_username.confirm"),didConfirm:async()=>{this.saving=!0;try{await this.args.user.changeUsername(this.newUsername),f.default.redirectTo((0,f.userPath)(this.newUsername.toLowerCase()+"/preferences"))}catch(e){(0,m.popupAjaxError)(e)}finally{this.saving=!1}}})}static #D=(()=>dt7948.n(this.prototype,"changeUsername",[a.action]))();static #I=(()=>(0,r.setComponentTemplate)((0,b.createTemplateFactory)({id:"WRMmXW7m",block:'[[[1,"\\n"],[41,[30,0,["editing"]],[[[1," "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,0],[[16,"maxlength",[30,0,["maxLength"]]],[24,0,"input-xxlarge username-preference__input"],[4,[32,1],["input",[30,0,["onInput"]]],null]],[["@value"],[[30,0,["newUsername"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1," "],[1,[28,[32,2],["user.change_username.taken"],null]],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-primary username-preference__submit"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[30,0,["changeUsername"]],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n\\n "],[8,[32,4],null,[["@close"],[[30,0,["toggleEditing"]]]],null],[1,"\\n\\n "],[41,[30,0,["saved"]],[[[1,[28,[32,2],["saved"],null]]],[]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[10,1],[14,0,"static username-preference__current-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n\\n"],[41,[30,1,["can_edit_username"]],[[[1," "],[8,[32,3],[[24,0,"btn-small username-preference__edit-username"]],[["@action","@icon","@title"],[[30,0,["toggleEditing"]],"pencil","user.username.edit"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,5],[[28,[32,2],["user.username.short_instructions"],[["username"],[[30,1,["username"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "]],["@user"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/username-preference.js",scope:()=>[r.Input,o.on,y.i18n,p.default,h.default,c.htmlSafe],isStrictMode:!0}),this))()}},14173:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(54729),r=n(6610),o=n(94412),a=n(56839),l=n(62797);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){if(super(...arguments),!this.currentUser||this.currentUser.read_faq)return;this._checkIfRead(),window.addEventListener("resize",this._checkIfRead,!1),window.addEventListener("scroll",this._checkIfRead,!1)}willDestroy(){super.willDestroy(...arguments),window.removeEventListener("resize",this._checkIfRead),window.removeEventListener("scroll",this._checkIfRead)}async _checkIfRead(){let e=document.querySelector("[itemprop='mainContentOfPage'] > *:last-child");(0,o.default)(e)&&(await (0,r.ajax)((0,a.userPath)("read-faq"),{type:"POST"}),this.currentUser.set("read_faq",!0))}static #n=(()=>dt7948.n(this.prototype,"_checkIfRead",[l.bind]))()}},88021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"815VqEfi",block:'[[[1,"\\n "],[11,0],[24,0,"login-welcome-header"],[17,1],[12],[1,"\\n "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,2]],[13],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","@header","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/welcome-header.js",isStrictMode:!0}),(0,r.default)(void 0,"welcome-header:WelcomeHeader"))},67436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=function(){try{var e="discourse/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))};return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw Error('Could not read config from meta tag with name "'+e+'".')}}().default},16069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(5938);class r extends i.default{static #e=(()=>dt7948.g(this.prototype,"faqOverridden",[(0,s.gt)("siteSettings.faq_url.length",0)]))();#aC=(()=>void dt7948.i(this,"faqOverridden"))();static #n=(()=>dt7948.g(this.prototype,"renameFaqToGuidelines",[(0,s.alias)("siteSettings.experimental_rename_faq_to_guidelines")]))();#aE=(()=>void dt7948.i(this,"renameFaqToGuidelines"))()}},74294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(54729),o=n(64149),a=n(48400),l=n(62797);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();accountCreated;newEmail;submitDisabled(e,t){return e===t}static #n=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,l.default)("newEmail","accountCreated.email")]))();updateNewEmail(e){this.set("newEmail",e)}static #i=(()=>dt7948.n(this.prototype,"updateNewEmail",[s.action]))();async changeEmail(){try{await (0,a.changeEmail)({email:this.newEmail}),this.set("accountCreated.email",this.newEmail),this.router.transitionTo("account-created.resent")}catch(e){(0,o.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"changeEmail",[s.action]))();cancel(){this.router.transitionTo("account-created.index")}static #u=(()=>dt7948.n(this.prototype,"cancel",[s.action]))()}},80615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(54729),o=n(48400),a=n(62797),l=n(51969);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();welcomeTitle(){return(0,l.i18n)("invites.welcome_to",{site_name:this.siteSettings.title})}static #n=(()=>dt7948.n(this.prototype,"welcomeTitle",[a.default]))();sendActivationEmail(){(0,o.resendActivationEmail)(this.get("accountCreated.username")).then(()=>{this.router.transitionTo("account-created.resent")})}static #i=(()=>dt7948.n(this.prototype,"sendActivationEmail",[s.action]))();editActivationEmail(){this.router.transitionTo("account-created.edit-email")}static #l=(()=>dt7948.n(this.prototype,"editActivationEmail",[s.action]))()}},3842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(82806),s=n(70001),r=n(54729),o=n(38557),a=n(45929),l=n(84262),u=n(54216),c=n(62797);let d="sidebar-hidden";class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"footer",[r.service]))();#aA=(()=>void dt7948.i(this,"footer"))();static #i=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tI=(()=>void dt7948.i(this,"header"))();static #l=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();queryParams=[{navigationMenuQueryParamOverride:"navigation_menu"}];showTop=!0;showSidebar=this.calculateShowSidebar();sidebarDisabledRouteOverride=!1;navigationMenuQueryParamOverride=null;showSiteHeader=!0;get showFooter(){return this.footer.showFooter}set showFooter(e){(0,u.default)("showFooter state is now stored in the `footer` service, and should be controlled by adding the {{hide-application-footer}} helper to an Ember template.",{id:"discourse.application-show-footer"}),this.footer.showFooter=e}get showPoweredBy(){return this.showFooter&&this.siteSettings.enable_powered_by_discourse}canSignUp(){return!this.siteSettings.invite_only&&this.siteSettings.allow_new_registrations&&!this.siteSettings.enable_discourse_connect}static #u=(()=>dt7948.n(this.prototype,"canSignUp",[c.default]))();canDisplaySidebar(){return this.currentUser||!this.siteSettings.login_required}static #c=(()=>dt7948.n(this.prototype,"canDisplaySidebar",[c.default]))();loginRequired(){return this.siteSettings.login_required&&!this.currentUser}static #d=(()=>dt7948.n(this.prototype,"loginRequired",[c.default]))();showFooterNav(){return this.capabilities.isAppWebview||this.capabilities.isiOSPWA}static #p=(()=>dt7948.n(this.prototype,"showFooterNav",[c.default]))();_mainOutletAnimate(){document.body.classList.remove("sidebar-animate")}get sidebarEnabled(){return!!this.canDisplaySidebar&&!this.sidebarState.sidebarHidden&&!this.sidebarDisabledRouteOverride&&("sidebar"===this.navigationMenuQueryParamOverride||"header_dropdown"!==this.navigationMenuQueryParamOverride&&!this.site.mobileView&&(!!this.sidebarState.isForcingAdminSidebar&&!!this.sidebarState.currentUserUsingAdminSidebar||"sidebar"===this.siteSettings.navigation_menu))}calculateShowSidebar(){return this.canDisplaySidebar&&!this.keyValueStore.getItem(d)&&!this.site.narrowDesktopView}toggleSidebar(){document.body.classList.add("sidebar-animate"),(0,l.default)(this,this._mainOutletAnimate,250),this.toggleProperty("showSidebar"),this.site.desktopView&&(this.showSidebar?this.keyValueStore.removeItem(d):this.keyValueStore.setItem(d,"true"))}static #h=(()=>dt7948.n(this.prototype,"toggleSidebar",[s.action]))();trackDiscoursePainted(){(0,a.isTesting)()||(0,o.default)(()=>{performance.mark("discourse-paint");try{performance.measure("discourse-init-to-paint","discourse-init","discourse-paint")}catch(e){console.warn("Failed to measure init-to-paint",e)}})}static #m=(()=>dt7948.n(this.prototype,"trackDiscoursePainted",[s.action]))()}},68597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(62797);function r(e){let t=e.get("badge_grouping.position"),n=e.get("badge_type_id"),i=e.get("name");return("000"+t).slice(-4)+(10-n)+i}class o extends i.default{badgeGroups(e){let t,n=e.sort((e,t)=>r(e).localeCompare(r(t))),i=[],s=[];return n.forEach(function(e){t!==e.badge_grouping_id&&(s&&s.length>0&&i.push({badges:s,badgeGrouping:s[0].badge_grouping}),s=[],t=e.badge_grouping_id),s.push(e)}),s&&s.length>0&&i.push({badges:s,badgeGrouping:s[0].badge_grouping}),i}static #e=(()=>dt7948.n(this.prototype,"badgeGroups",[(0,s.default)("model")]))()}},4968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(79298),o=n(12696),a=n(62797),l=n(51969);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();queryParams=["username"];noMoreBadges=!1;userBadges=null;hiddenSetTitle=!0;filteredList(e){return e.filterBy("badge.allow_title",!0)}static #n=(()=>dt7948.n(this.prototype,"filteredList",[(0,a.default)("userBadgesAll")]))();selectableUserBadges(e){return[s.default.create({id:0,badge:r.default.create({name:(0,l.i18n)("badges.none")})}),...e.uniqBy("badge.name")]}static #i=(()=>dt7948.n(this.prototype,"selectableUserBadges",[(0,a.default)("filteredList")]))();user(e){if(e)return this.userBadges[0].get("user")}static #l=(()=>dt7948.n(this.prototype,"user",[(0,a.default)("username")]))();grantCount(e,t,n){return e?n:t}static #u=(()=>dt7948.n(this.prototype,"grantCount",[(0,a.default)("username","model.grant_count","userBadges.grant_count")]))();othersCount(e,t){return e-t}static #c=(()=>dt7948.n(this.prototype,"othersCount",[(0,a.default)("model.grant_count","userBadges.grant_count")]))();canSelectTitle(e,t){return this.siteSettings.enable_badges&&e&&t}static #d=(()=>dt7948.n(this.prototype,"canSelectTitle",[(0,a.default)("model.allow_title","model.has_badge","model")]))();canLoadMore(e,t,n){return!e&&t>(n||0)}static #p=(()=>dt7948.n(this.prototype,"canLoadMore",[(0,a.default)("noMoreBadges","grantCount","userBadges.length")]))();canShowOthers(e,t){return!!e&&t>1}static #h=(()=>dt7948.n(this.prototype,"canShowOthers",[(0,a.default)("user","model.grant_count")]))();loadMore(){if(!this.canLoadMore||this.loadingMore)return;this.set("loadingMore",!0);let e=this.userBadges;o.default.findByBadgeId(this.get("model.id"),{offset:e.length,username:this.username}).then(t=>{e.pushObjects(t),0===e.length&&this.set("noMoreBadges",!0)}).finally(()=>{this.set("loadingMore",!1)})}static #m=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();toggleSetUserTitle(){return this.toggleProperty("hiddenSetTitle")}static #g=(()=>dt7948.n(this.prototype,"toggleSetUserTitle",[s.action]))()}},1156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addComposerSaveErrorCallback:()=>s.addComposerSaveErrorCallback,addPopupMenuOption:()=>i.addPopupMenuOption,clearComposerSaveErrorCallback:()=>s.clearComposerSaveErrorCallback,clearPopupMenuOptions:()=>i.clearPopupMenuOptions,clearPopupMenuOptionsCallback:()=>a,default:()=>o,toggleCheckDraftPopup:()=>s.toggleCheckDraftPopup});var i=n(15642),s=n(66861),r=n(54216);let o=s.default;function a(){(0,r.default)("`clearPopupMenuOptionsCallback` is deprecated without replacement as the cleanup is handled automatically.",{id:"discourse.composer-controller.clear-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),(0,i.clearPopupMenuOptions)()}},38738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(6610),l=n(64149),u=n(51969);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"loading",[i.tracked]))();#k=(()=>void dt7948.i(this,"loading"))();async confirm(){this.loading=!0;try{await (0,a.ajax)(`/u/confirm-new-email/${this.model.token}.json`,{type:"PUT"})}catch(t){let e=t.jqXHR?.responseJSON?.second_factor_challenge_nonce;e?this.router.transitionTo("second-factor-auth",{queryParams:{nonce:e}}):(0,l.popupAjaxError)(t);return}finally{this.loading=!1}await new Promise(e=>this.dialog.dialog({message:(0,u.i18n)("user.change_email.confirm_success"),type:"alert",didConfirm:e})),this.router.transitionTo("/my/preferences/account")}static #l=(()=>dt7948.n(this.prototype,"confirm",[r.action]))()}},49709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(6610),l=n(64149),u=n(51969);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"loading",[i.tracked]))();#k=(()=>void dt7948.i(this,"loading"))();async confirm(){this.loading=!0;try{await (0,a.ajax)(`/u/confirm-old-email/${this.model.token}.json`,{type:"PUT"})}catch(e){(0,l.popupAjaxError)(e);return}finally{this.loading=!1}await new Promise(e=>this.dialog.dialog({message:(0,u.i18n)("user.change_email.authorizing_old.confirm_success"),type:"alert",didConfirm:e})),this.router.transitionTo("/my/preferences/account")}static #l=(()=>dt7948.n(this.prototype,"confirm",[r.action]))()}},22741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(62797);class l extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.reads)("currentUser.staff")]))();#tH=(()=>void dt7948.i(this,"canEdit"))();isCategoriesRoute(){return"discovery.categories"===this.router.currentRouteName}static #l=(()=>dt7948.n(this.prototype,"isCategoriesRoute",[a.default]))();showInserted(e){e?.preventDefault();let t=this.topicTrackingState;this.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()}static #u=(()=>dt7948.n(this.prototype,"showInserted",[s.action]))();createTopic(){this.composer.openNewTopic({preferDraft:!0})}static #c=(()=>dt7948.n(this.prototype,"createTopic",[s.action]))();refresh(){this.send("triggerRefresh")}static #d=(()=>dt7948.n(this.prototype,"refresh",[s.action]))()}},33075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(28564),s=n(82806),r=n(70001),o=n(76546);let a=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"q",[i.tracked],function(){return""}))();#aI=(()=>void dt7948.i(this,"q"))();queryParams=["q"];bulkSelectHelper=(()=>new o.default(this))();get canBulkSelect(){return this.currentUser?.canManageTopic}updateTopicsListQueryParams(e){this.q=e}static #n=(()=>dt7948.n(this.prototype,"updateTopicsListQueryParams",[r.action]))()}},15385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addDiscoveryQueryParam:()=>g,default:()=>f,queryParams:()=>h,resetParams:()=>m});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(78662),l=n(76546),u=n(63252),c=n(47642),d=n(31570),p=n(46606);let h={order:{replace:!0,refreshModel:!0},ascending:{replace:!0,refreshModel:!0,default:!1},status:{replace:!0,refreshModel:!0},state:{replace:!0,refreshModel:!0},search:{replace:!0,refreshModel:!0},max_posts:{replace:!0,refreshModel:!0},min_posts:{replace:!0,refreshModel:!0},q:{replace:!0,refreshModel:!0},before:{replace:!0,refreshModel:!0},bumped_before:{replace:!0,refreshModel:!0},f:{replace:!0,refreshModel:!0},subset:{replace:!0,refreshModel:!0},period:{replace:!0,refreshModel:!0},topic_ids:{replace:!0,refreshModel:!0},group_name:{replace:!0,refreshModel:!0},tags:{replace:!0,refreshModel:!0},match_all_tags:{replace:!0,refreshModel:!0},no_subcategories:{replace:!0,refreshModel:!0},no_tags:{replace:!0,refreshModel:!0},exclude_tag:{replace:!0,refreshModel:!0}};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let[t,n]of Object.entries(h))e.includes(t)||this.controller.set(t,n.default)}function g(e,t){h[e]=t}let f=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #c=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();static #d=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #p=(()=>dt7948.g(this.prototype,"model",[i.tracked]))();#aP=(()=>void dt7948.i(this,"model"))();queryParams=(()=>Object.keys(h))();bulkSelectHelper=(()=>new l.default(this))();constructor(){for(let[e,t]of(super(...arguments),Object.entries(h)))(0,d.defineTrackedProperty)(this,e,t.default)}get canBulkSelect(){return this.currentUser?.canManageTopic||this.showDismissRead||this.showResetNew}get showDismissRead(){return"unread"===(0,u.filterTypeForMode)(this.model.list?.filter)&&this.model.list.get("topics.length")>0}get showResetNew(){return"new"===(0,u.filterTypeForMode)(this.model.list?.filter)&&this.model.list?.get("topics.length")>0}get createTopicTargetCategory(){let{category:e}=this.model;return e?.canCreateTopic?e:this.siteSettings.default_subcategory_on_read_only_category?e?.subcategoryWithCreateTopicPermission:void 0}get createTopicDisabled(){return this.model.category&&!this.createTopicTargetCategory}get resolvedAscending(){return(this.ascending??this.model.list.get("params.ascending"))==="true"}get resolvedOrder(){return this.order??this.model.list.get("params.order")??"activity"}async callResetNew(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter),s=this.bulkSelectHelper.selected.map(e=>e.id),r=await p.default.resetNew(this.model.category,!this.model.noSubcategories,{tracked:i,tag:this.model.tag,topicIds:s,dismissPosts:e,dismissTopics:t,untrack:n});r.topic_ids&&this.topicTrackingState.removeTopics(r.topic_ids),this.router.refresh()}resetNew(){if(!this.currentUser.new_new_view_enabled)return this.callResetNew();this.modal.show(a.default,{model:{selectedTopics:this.bulkSelectHelper.selected,subset:this.model.listParams?.subset,dismissCallback:e=>{let{dismissPosts:t,dismissTopics:n,untrack:i}=e;this.callResetNew(t,n,i)}}})}static #h=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();createTopic(){this.composer.openNewTopic({category:this.createTopicTargetCategory,tags:[this.model.tag?.id,...this.model.additionalTags??[]].filter(Boolean).reject(e=>["none","all"].includes(e)).join(","),preferDraft:!0})}static #m=(()=>dt7948.n(this.prototype,"createTopic",[r.action]))();changePeriod(e){this.period=e}static #g=(()=>dt7948.n(this.prototype,"changePeriod",[r.action]))();changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}static #E=(()=>dt7948.n(this.prototype,"changeSort",[r.action]))();changeNewListSubset(e){this.subset=e,this.model.list.updateNewListSubsetParam(e)}static #A=(()=>dt7948.n(this.prototype,"changeNewListSubset",[r.action]))();toggleTagInfo(){this.toggleProperty("showTagInfo")}static #D=(()=>dt7948.n(this.prototype,"toggleTagInfo",[r.action]))();dismissRead(e){this.bulkSelectHelper.dismissRead(e?"topics":"posts",{categoryId:this.model.category?.id,tagName:this.model.tag?.id,includeSubcategories:!this.model.noSubcategories})}static #I=(()=>dt7948.n(this.prototype,"dismissRead",[r.action]))()},[c.disableImplicitInjections])},82207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(54836),l=n(64149),u=n(18523),c=n(56839),d=n(88253),p=n(30975),h=n(62797),m=n(51969);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();selectedTab="general";saving=!1;deleting=!1;panels=[];showTooltip=!1;createdCategory=!1;expandedMenu=!1;parentParams=null;validators=[];static #l=(()=>dt7948.g(this.prototype,"showDeleteReason",[(0,r.and)("showTooltip","model.cannot_delete_reason")]))();#aM=(()=>void dt7948.i(this,"showDeleteReason"))();disabled(e,t,n,i){return!!e||!!i||!t||!n}static #u=(()=>dt7948.n(this.prototype,"disabled",[(0,h.default)("saving","model.name","model.color","deleting")]))();deleteDisabled(e,t){return t||e||!1}static #c=(()=>dt7948.n(this.prototype,"deleteDisabled",[(0,h.default)("saving","deleting")]))();categoryName(e){return(e=e||"").trim().length>0?e:(0,m.i18n)("preview")}static #d=(()=>dt7948.n(this.prototype,"categoryName",[(0,h.default)("name")]))();saveLabel(e,t){return e?"saving":t?"category.save":"category.create"}static #p=(()=>dt7948.n(this.prototype,"saveLabel",[(0,h.default)("saving","model.id")]))();title(e,t){return e?(0,m.i18n)("category.edit_dialog_title",{categoryName:t}):(0,m.i18n)("category.create")}static #h=(()=>dt7948.n(this.prototype,"title",[(0,h.default)("model.id","model.name")]))();selectedTabTitle(e){return(0,m.i18n)(`category.${(0,a.underscore)(e)}`)}static #m=(()=>dt7948.n(this.prototype,"selectedTabTitle",[(0,h.default)("selectedTab")]))();registerValidator(e){this.validators.push(e)}static #g=(()=>dt7948.n(this.prototype,"registerValidator",[s.action]))();saveCategory(){this.validators.some(e=>e())||(this.set("saving",!0),this.model.save().then(e=>{this.model.id||(this.model.setProperties({slug:e.category.slug,id:e.category.id,can_edit:e.category.can_edit,permission:p.default.FULL,notification_level:u.NotificationLevels.REGULAR}),this.site.updateCategory(this.model),this.router.transitionTo("editCategory",d.default.slugFor(this.model)))}).catch(e=>{(0,l.popupAjaxError)(e),this.model.set("parent_category_id",void 0)}).finally(()=>{this.set("saving",!1)}))}static #E=(()=>dt7948.n(this.prototype,"saveCategory",[s.action]))();deleteCategory(){this.set("deleting",!0),this.dialog.yesNoConfirm({message:(0,m.i18n)("category.delete_confirm"),didConfirm:()=>{this.model.destroy().then(()=>{this.router.transitionTo("discovery.categories")}).catch(()=>{this.displayErrors([(0,m.i18n)("category.delete_error")])}).finally(()=>{this.set("deleting",!1)})},didCancel:()=>this.set("deleting",!1)})}static #A=(()=>dt7948.n(this.prototype,"deleteCategory",[s.action]))();toggleDeleteTooltip(){this.toggleProperty("showTooltip")}static #D=(()=>dt7948.n(this.prototype,"toggleDeleteTooltip",[s.action]))();goBack(){c.default.routeTo(this.model.url)}static #I=(()=>dt7948.n(this.prototype,"goBack",[s.action]))()}},19772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(82806),s=n(70001),r=n(54729),o=n(6610),a=n(64149),l=n(56839),u=n(2262),c=n(87389),d=n(62797);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();secondFactorMethod;secondFactorToken;lockImageUrl=(()=>(0,c.default)("/images/lock.svg"))();secondFactorRequired(e){return e.security_key_required||e.second_factor_required}static #n=(()=>dt7948.n(this.prototype,"secondFactorRequired",[(0,d.default)("model")]))();async finishLogin(){let e={second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()};this.securityKeyCredential?e.second_factor_token=this.securityKeyCredential:e.second_factor_token=this.secondFactorToken;try{let t=await (0,o.ajax)({url:`/session/email-login/${this.model.token}`,type:"POST",data:e});if(!t.success){this.set("model.error",t.error);return}let n="/",i=new URL(this.router.currentURL,window.location.origin).searchParams.get("safe_mode");if(i){let e=new URLSearchParams;e.set("safe_mode",i),n+=`?${e.toString()}`}l.default.redirectTo(n)}catch(e){(0,a.popupAjaxError)(e)}}static #i=(()=>dt7948.n(this.prototype,"finishLogin",[s.action]))();authenticateSecurityKey(){(0,u.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.set("securityKeyCredential",e),this.send("finishLogin")},e=>{this.set("model.error",e)})}static #l=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[s.action]))()}},76061:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RouteException:()=>d,default:()=>p}),n(28564);var i=n(82806),s=n(70001),r=n(5938),o=n(42433),a=n(56839),l=n(62797),u=n(51969);let c=(0,n(41664).A)(n(28564)).cached;class d{status;reason;constructor(e){let{status:t,reason:n,desc:i}=e;this.status=t,this.reason=n,this.desc=i}}class p extends i.default{thrown;lastTransition;static #e=(()=>dt7948.g(this.prototype,"isNotFound",[(0,r.equal)("thrown.status",404)]))();#aF=(()=>void dt7948.i(this,"isNotFound"))();static #n=(()=>dt7948.g(this.prototype,"isForbidden",[(0,r.equal)("thrown.status",403)]))();#aN=(()=>void dt7948.i(this,"isForbidden"))();static #i=(()=>dt7948.g(this.prototype,"isServer",[(0,r.gte)("thrown.status",500)]))();#aO=(()=>void dt7948.i(this,"isServer"))();static #l=(()=>dt7948.g(this.prototype,"isUnknown",[(0,r.none)("isNetwork","isServer")]))();#aL=(()=>void dt7948.i(this,"isUnknown"))();static #u=(()=>dt7948.g(this.prototype,"errorHtml",[(0,r.alias)("thrown.responseJSON.extras.html")]))();#aR=(()=>void dt7948.i(this,"errorHtml"))();networkFixed=!1;loading=!1;static #c=(()=>dt7948.g(this.prototype,"requestUrl",[(0,r.alias)("thrown.requestedUrl")]))();#aU=(()=>void dt7948.i(this,"requestUrl"))();isNetwork(e){return!!e&&0===e.readyState||!!e&&"timeout"===e.jqTextStatus}static #d=(()=>dt7948.n(this.prototype,"isNetwork",[(0,l.default)("thrown")]))();reason(e,t,n){return n.reason?n.reason:e?(0,u.i18n)("errors.reasons.network"):t>=500?(0,u.i18n)("errors.reasons.server"):404===t?(0,u.i18n)("errors.reasons.not_found"):403===t?(0,u.i18n)("errors.reasons.forbidden"):null===n?(0,u.i18n)("errors.reasons.unknown"):(0,u.i18n)("errors.reasons.unknown")}static #p=(()=>dt7948.n(this.prototype,"reason",[(0,l.default)("isNetwork","thrown.status","thrown")]))();desc(e,t,n,i,s){if(s.desc)return s.desc;if(e)return(0,u.i18n)("errors.desc.network_fixed");if(t)return(0,u.i18n)("errors.desc.network");if(404===n)return(0,u.i18n)("errors.desc.not_found");if(403===n)return(0,u.i18n)("errors.desc.forbidden");if(n>=500)return(0,u.i18n)("errors.desc.server",{status:n+" "+i});if(null===s)return(0,u.i18n)("errors.desc.unknown");else return(0,u.i18n)("errors.desc.unknown")}static #h=(()=>dt7948.n(this.prototype,"desc",[(0,l.default)("networkFixed","isNetwork","thrown.status","thrown.statusText","thrown")]))();get buttons(){return{ButtonBackBright:{classes:"btn-primary",action:this.back,key:"errors.buttons.back"},ButtonBackDim:{classes:"",action:this.back,key:"errors.buttons.back"},ButtonTryAgain:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.again",icon:"arrows-rotate"},ButtonLoadPage:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.fixed"}}}static #m=(()=>dt7948.n(this.prototype,"buttons",[c]))();enabledButtons(e,t,n){return e?[this.buttons.ButtonLoadPage]:t?[this.buttons.ButtonBackDim,this.buttons.ButtonTryAgain]:n?[this.buttons.ButtonBackBright,this.buttons.ButtonTryAgain]:[this.buttons.ButtonBackBright]}static #g=(()=>dt7948.n(this.prototype,"enabledButtons",[(0,l.default)("networkFixed","isNetwork","lastTransition")]))();back(){let e=a.default.router.location.getURL();this.lastTransition?.method==="replace"?(this.setProperties({lastTransition:null,thrown:null}),a.default.handleURL(e)):window.history.back()}static #E=(()=>dt7948.n(this.prototype,"back",[s.action]))();tryLoading(){this.set("loading",!0),(0,o.schedule)("afterRender",()=>{let e=this.lastTransition;this.setProperties({lastTransition:null,thrown:null}),e.retry(),this.set("loading",!1)})}static #A=(()=>dt7948.n(this.prototype,"tryLoading",[s.action]))()}},78872:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SEARCH_TYPE_CATS_TAGS:()=>T,SEARCH_TYPE_DEFAULT:()=>x,SEARCH_TYPE_USERS:()=>S,default:()=>A,registerFullPageSearchType:()=>E});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(97355),l=n(9630),u=n(35223),c=n(6610),d=n(76546),p=n(37186),h=n(63022),m=n(84188),g=n(52864),f=n(20802),_=n(91502),y=n(88253),b=n(2151),w=n(62797),k=n(51969);let x="topics_posts",T="categories_tags",S="users",C=[];function E(e,t,n){C.push({translationKey:e,searchTypeId:t,searchFunc:n})}class A extends i.default{static #e=(()=>dt7948.g(this.prototype,"composer",[o.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #u=(()=>dt7948.g(this.prototype,"searchPreferencesManager",[o.service]))();#aj=(()=>void dt7948.i(this,"searchPreferencesManager"))();static #c=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #d=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();bulkSelectEnabled=null;loading=!1;queryParams=["q","expanded","context_id","context","skip_context","search_type"];q;context_id=null;search_type=(()=>x)();context=null;searching=!1;sortOrder=0;sortOrders=null;invalidSearch=!1;page=1;resultCount=null;searchTypes=null;additionalSearchResults=[];error=null;static #p=(()=>dt7948.g(this.prototype,"hasSelection",[(0,r.gt)("bulkSelectHelper.selected.length",0)]))();#aB=(()=>void dt7948.i(this,"hasSelection"))();static #h=(()=>dt7948.g(this.prototype,"searchButtonDisabled",[(0,r.or)("searching","loading")]))();#az=(()=>void dt7948.i(this,"searchButtonDisabled"))();_searchOnSortChange=!0;init(){super.init(...arguments),this.set("sortOrder",this.searchPreferencesManager.sortOrder||this.siteSettings.search_default_sort_order);let e=[{name:(0,k.i18n)("search.type.default"),id:x},{name:this.siteSettings.tagging_enabled?(0,k.i18n)("search.type.categories_and_tags"):(0,k.i18n)("search.type.categories"),id:T},{name:(0,k.i18n)("search.type.users"),id:S}];C.forEach(t=>{e.push({name:(0,k.i18n)(t.translationKey),id:t.searchTypeId})}),this.set("searchTypes",e),this.sortOrders=[{name:(0,k.i18n)("search.relevance"),id:0},{name:(0,k.i18n)("search.latest_post"),id:1,term:"order:latest"},{name:(0,k.i18n)("search.most_liked"),id:2,term:"order:likes"},{name:(0,k.i18n)("search.most_viewed"),id:3,term:"order:views"},{name:(0,k.i18n)("search.latest_topic"),id:4,term:"order:latest_topic"}],this.bulkSelectHelper=new d.default(this)}hasResults(e){return(e||0)>0}static #m=(()=>dt7948.n(this.prototype,"hasResults",[(0,w.default)("resultCount")]))();expandFilters(e){return"true"===e}static #g=(()=>dt7948.n(this.prototype,"expandFilters",[(0,w.default)("expanded")]))();hasAutofocus(e){return(0,a.isEmpty)(e)}static #E=(()=>dt7948.n(this.prototype,"hasAutofocus",[(0,w.default)("q")]))();highlightQuery(e){if(e)return e.split(/\s+/).filter(e=>"l"!==e).join(" ")}static #A=(()=>dt7948.n(this.prototype,"highlightQuery",[(0,w.default)("q")]))();get searchContextEnabled(){return!this.skip_context&&this.context||"false"===this.skip_context}static #D=(()=>dt7948.n(this.prototype,"searchContextEnabled",[(0,s.computed)("skip_context","context")]))();set searchContextEnabled(e){this.set("skip_context",!e)}searchContextDescription(e,t){let n=t;if("category"===e){let e=y.default.findById(t);if(!e)return;n=e.get("name")}return(0,m.searchContextDescription)(e,n)}static #I=(()=>dt7948.n(this.prototype,"searchContextDescription",[(0,w.default)("context","context_id")]))();searchActive(e){return(0,m.isValidSearchTerm)(e,this.siteSettings)}static #G=(()=>dt7948.n(this.prototype,"searchActive",[(0,w.default)("q")]))();noSortQ(e){return e=this.cleanTerm(e),(0,f.escapeExpression)(e)}static #Y=(()=>dt7948.n(this.prototype,"noSortQ",[(0,w.default)("q")]))();showSuggestion(e,t){return e||!t}static #Q=(()=>dt7948.n(this.prototype,"showSuggestion",[(0,w.default)("canCreateTopic","siteSettings.login_required")]))();setSearchTerm(e){this._searchOnSortChange=!1,e=this.cleanTerm(e),this._searchOnSortChange=!0,this.set("searchTerm",e)}cleanTerm(e){return e&&this.sortOrders.forEach(t=>{t.term&&e.match(RegExp(`${t.term}\\b`))&&(this.set("sortOrder",t.id),e=(e=e.replace(RegExp(`${t.term}\\b`,"g"),"")).trim())}),e}triggerSearch(){this._searchOnSortChange&&(this.set("page",1),this._search())}static #J=(()=>dt7948.n(this.prototype,"triggerSearch",[(0,l.observes)("sortOrder")]))();triggerSearchOnTypeChange(){this.searchActive&&(this.set("page",1),this._search())}static #X=(()=>dt7948.n(this.prototype,"triggerSearchOnTypeChange",[(0,l.observes)("search_type")]))();modelChanged(){this.searchTerm!==this.q&&this.setSearchTerm(this.q)}static #Z=(()=>dt7948.n(this.prototype,"modelChanged",[(0,l.observes)("model")]))();showLikeCount(e){return e?.includes("order:likes")}static #ee=(()=>dt7948.n(this.prototype,"showLikeCount",[(0,w.default)("q")]))();qChanged(){this.model&&this.get("model.q")!==this.q&&(this.setSearchTerm(this.q),this.send("search"))}static #et=(()=>dt7948.n(this.prototype,"qChanged",[(0,l.observes)("q")]))();isPrivateMessage(e){return e&&this.currentUser&&(e.includes("in:messages")||e.includes("in:personal")||e.includes(`personal_messages:${this.currentUser.get("username_lower")}`))}static #en=(()=>dt7948.n(this.prototype,"isPrivateMessage",[(0,w.default)("q")]))();resultCountLabel(e,t){return(0,k.i18n)("search.result_count",{count:e,plus:e%50==0?"+":"",term:t})}static #ei=(()=>dt7948.n(this.prototype,"resultCountLabel",[(0,w.default)("resultCount","noSortQ")]))();resultCountChanged(){if(!this.model.posts)return 0;this.set("resultCount",this.searchResultPosts.length+this.model.categories.length+this.model.tags.length+this.model.users.length)}static #es=(()=>dt7948.n(this.prototype,"resultCountChanged",[(0,l.observes)("model.{posts,categories,tags,users}.length","searchResultPosts")]))();canBulkSelect(e){return this.currentUser&&this.currentUser.staff&&e}static #er=(()=>dt7948.n(this.prototype,"canBulkSelect",[(0,w.default)("hasResults")]))();hasUnselectedResults(e,t){return edt7948.n(this.prototype,"hasUnselectedResults",[(0,w.default)("bulkSelectHelper.selected.length","searchResultPosts.length")]))();canCreateTopic(e){return this.currentUser&&e}static #ea=(()=>dt7948.n(this.prototype,"canCreateTopic",[(0,w.default)("model.grouped_search_result.can_create_topic")]))();isLastPage(e){return 10===e}static #el=(()=>dt7948.n(this.prototype,"isLastPage",[(0,w.default)("page")]))();usingDefaultSearchType(e){return e===x}static #eu=(()=>dt7948.n(this.prototype,"usingDefaultSearchType",[(0,w.default)("search_type")]))();customSearchType(e){return C.find(t=>e===t.searchTypeId)}static #ec=(()=>dt7948.n(this.prototype,"customSearchType",[(0,w.default)("search_type")]))();searchInfoClassNames(e){return e?"search-info bulk-select-visible":"search-info"}static #ed=(()=>dt7948.n(this.prototype,"searchInfoClassNames",[(0,w.default)("bulkSelectEnabled")]))();searchResultPosts(e,t){return t?.list?.length>0?(0,m.reciprocallyRankedList)([e,t.list],["topic_id",t.identifier]):e}static #nG=(()=>dt7948.n(this.prototype,"searchResultPosts",[(0,w.default)("model.posts","additionalSearchResults")]))();_search(){if(this.searching)return;this.set("invalidSearch",!1);let e=this.searchTerm;if(!(0,m.isValidSearchTerm)(e,this.siteSettings)){this.set("invalidSearch",!0);return}let t={q:e,page:this.page};1===t.page?(this.set("bulkSelectEnabled",!1),this.bulkSelectHelper.selected.clear(),this.set("searching",!0),(0,_.scrollTop)()):this.set("loading",!0);let n=this.sortOrder;n&&this.sortOrders[n].term&&(t.q+=" "+this.sortOrders[n].term),this.set("q",t.q);let i=this.skip_context;(!i&&this.context||"false"===i)&&(t.search_context={type:this.context,id:this.context_id});let s=(0,m.getSearchKey)(t);if(this.customSearchType){(0,this.customSearchType.searchFunc)(this,t,s);return}switch(this.search_type){case T:let r=(0,p.search)(e,this.siteSettings);u.Promise.resolve(r).then(async e=>{let t=e.filter(e=>!!e.model),n=e.filter(e=>!e.model),i=await (0,m.translateResults)({categories:t,tags:n})||{};this.set("model",i)}).finally(()=>{this.setProperties({searching:!1,loading:!1})});break;case S:(0,g.default)({term:e,limit:20}).then(async e=>{let t=await (0,m.translateResults)({users:e})||{};this.set("model",t)}).finally(()=>{this.setProperties({searching:!1,loading:!1})});break;default:this.currentUser&&(0,m.updateRecentSearches)(this.currentUser,e),(0,c.ajax)("/search",{data:t}).then(async e=>{let n=await (0,m.translateResults)(e)||{};e.grouped_search_result&&this.set("q",e.grouped_search_result.term),t.page>1?n&&(this.model.posts.pushObjects(n.posts),this.model.topics.pushObjects(n.topics),this.model.set("grouped_search_result",e.grouped_search_result)):((0,h.setTransient)("lastSearch",{searchKey:s,model:n},5),n.grouped_search_result=e.grouped_search_result,this.set("model",n)),this.set("error",null)}).catch(e=>{this.set("error",e.jqXHR.responseJSON?.message)}).finally(()=>{this.setProperties({searching:!1,loading:!1})})}}static #nY=(()=>dt7948.n(this.prototype,"_search",[w.bind]))();_afterTransition(){0===Object.keys(this.model).length&&this.reset()}reset(){this.setProperties({searching:!1,page:1,resultCount:null}),this.bulkSelectHelper.clear()}afterBulkActionComplete(){return u.Promise.resolve(this._search())}static #nQ=(()=>dt7948.n(this.prototype,"afterBulkActionComplete",[s.action]))();createTopic(e,t){let n;if(t?.preventDefault(),e.includes("category:")){let t=e.match(/category:(\S*)/);t&&t[1]&&(n=t[1])}this.composer.open({action:b.default.CREATE_TOPIC,draftKey:b.default.NEW_TOPIC_KEY,topicCategory:n})}static #oZ=(()=>dt7948.n(this.prototype,"createTopic",[s.action]))();addSearchResults(e,t){this.set("additionalSearchResults",{list:e,identifier:t})}static #o1=(()=>dt7948.n(this.prototype,"addSearchResults",[s.action]))();setSortOrder(e){this.set("sortOrder",e),this.searchPreferencesManager.sortOrder=e}static #o0=(()=>dt7948.n(this.prototype,"setSortOrder",[s.action]))();selectAll(){this.bulkSelectHelper.selected.addObjects(this.get("searchResultPosts").mapBy("topic")),document.querySelectorAll(".fps-result input[type=checkbox]").forEach(e=>{e.checked=!0})}static #o3=(()=>dt7948.n(this.prototype,"selectAll",[s.action]))();clearAll(){this.bulkSelectHelper.selected.clear(),document.querySelectorAll(".fps-result input[type=checkbox]").forEach(e=>{e.checked=!1})}static #o2=(()=>dt7948.n(this.prototype,"clearAll",[s.action]))();toggleBulkSelect(){this.toggleProperty("bulkSelectEnabled"),this.bulkSelectHelper.selected.clear()}static #o8=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[s.action]))();search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.searching||(e.collapseFilters&&document.querySelector("details.advanced-filters")?.removeAttribute("open"),this.set("page",1),this.appEvents.trigger("full-page-search:trigger-search"),this._search())}static #o4=(()=>dt7948.n(this.prototype,"search",[s.action]))();loadMore(){let e=this.page;this.get("model.grouped_search_result.more_full_page_results")&&!this.loading&&e<10&&(this.incrementProperty("page"),this._search())}static #o7=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();logClick(e){this.get("model.grouped_search_result.search_log_id")&&e&&(0,m.logSearchLinkClick)({searchLogId:this.get("model.grouped_search_result.search_log_id"),searchResultId:e,searchResultType:"topic"})}static #o9=(()=>dt7948.n(this.prototype,"logClick",[s.action]))()}},22431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(70001),r=n(28147);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"group",[i.inject]))();#a$=(()=>void dt7948.i(this,"group"))();static #n=(()=>dt7948.g(this.prototype,"groupActivity",[i.inject]))();#aq=(()=>void dt7948.i(this,"groupActivity"))();static #i=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();static #l=(()=>dt7948.g(this.prototype,"emptyText",[(0,r.fmt)("type","groups.empty.%@")]))();#aH=(()=>void dt7948.i(this,"emptyText"))();canLoadMore=!0;loading=!1;loadMore(){if(!this.canLoadMore||this.loading)return;this.set("loading",!0);let e=this.model;if(e&&e.length){let t=e[e.length-1].get("created_at"),n=this.get("group.model"),i=this.get("groupActivity.category_id"),s={before:t,type:this.type,categoryId:i};n.findPosts(s).then(t=>{e.addObjects(t),0===t.length&&this.set("canLoadMore",!1)}).finally(()=>{this.set("loading",!1)})}}static #u=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()}},18930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(70001);class r extends i.default{loadMore(){this.model.loadMore()}static #e=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()}},32265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(54729);class r extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();queryParams=["category_id"]}},926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(5938),o=n(9630),a=n(6610),l=n(64149),u=n(62797);class c extends i.default{queryParams=["order","asc","filter"];order=null;asc=!0;filter=null;filterInput=null;loading=!1;isBulk=!1;showActions=!1;bulkSelection=null;static #e=(()=>dt7948.g(this.prototype,"hasMembers",[(0,r.gt)("model.members.length",0)]))();#aV=(()=>void dt7948.i(this,"hasMembers"))();get canLoadMore(){return this.get("model.members")?.lengthdt7948.n(this.prototype,"filterInputChanged",[(0,o.observes)("filterInput")]))();_setFilter(){this.set("filter",this.filterInput)}static #i=(()=>dt7948.n(this.prototype,"_setFilter",[(0,u.debounce)(500)]))();_filtersChanged(){this.reloadMembers(!0)}static #l=(()=>dt7948.n(this.prototype,"_filtersChanged",[(0,o.observes)("order","asc","filter")]))();reloadMembers(e){!this.loading&&this.model&&(e||this.canLoadMore)&&(this.set("loading",!0),this.model.reloadMembers(this.memberParams,e).finally(()=>{this.set("loading",!1),this.refresh&&this.set("bulkSelection",[])}))}memberParams(e,t,n){return{order:e,asc:t,filter:n}}static #u=(()=>dt7948.n(this.prototype,"memberParams",[(0,u.default)("order","asc","filter")]))();canManageGroup(e){return this.currentUser?.canManageGroup(e)}static #c=(()=>dt7948.n(this.prototype,"canManageGroup",[(0,u.default)("model")]))();filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"}static #d=(()=>dt7948.n(this.prototype,"filterPlaceholder",[u.default]))();emptyMessageKey(e,t,n){return n?e?"groups.members.no_filter_matches":"groups.empty.members":"groups.members.forbidden"}static #p=(()=>dt7948.n(this.prototype,"emptyMessageKey",[(0,u.default)("filter","members","model.can_see_members")]))();loadMore(){this.reloadMembers()}static #h=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();toggleActions(){this.toggleProperty("showActions")}static #m=(()=>dt7948.n(this.prototype,"toggleActions",[s.action]))();actOnGroup(e,t){switch(t){case"removeMember":this.removeMember(e);break;case"makeOwner":this.makeOwner(e.username);break;case"removeOwner":this.removeOwner(e);break;case"makePrimary":e.setPrimaryGroup(this.model.id).then(()=>e.set("primary",!0));break;case"removePrimary":e.setPrimaryGroup(null).then(()=>e.set("primary",!1))}}static #g=(()=>dt7948.n(this.prototype,"actOnGroup",[s.action]))();actOnSelection(e,t){if(e&&0!==e.length)switch(t){case"removeMembers":return(0,a.ajax)(`/groups/${this.model.id}/members.json`,{type:"DELETE",data:{user_ids:e.mapBy("id").join(",")}}).then(()=>{this.model.reloadMembers(this.memberParams,!0),this.set("isBulk",!1)});case"makeOwners":return(0,a.ajax)(`/groups/${this.model.id}/owners.json`,{type:"PUT",data:{usernames:e.mapBy("username").join(",")}}).then(()=>{e.forEach(e=>e.set("owner",!0)),this.set("isBulk",!1)});case"removeOwners":return(0,a.ajax)(`/admin/groups/${this.model.id}/owners.json`,{type:"DELETE",data:{group:{usernames:e.map(e=>e.username).join(",")}}}).then(()=>{e.forEach(e=>e.set("owner",!1)),this.set("isBulk",!1)});case"setPrimary":case"unsetPrimary":let n="setPrimary"===t;return(0,a.ajax)(`/admin/groups/${this.model.id}/primary.json`,{type:"PUT",data:{group:{usernames:e.map(e=>e.username).join(",")},primary:n}}).then(()=>{e.forEach(e=>e.set("primary",n)),this.set("isBulk",!1)})}}static #E=(()=>dt7948.n(this.prototype,"actOnSelection",[s.action]))();removeMember(e){this.model.removeMember(e,this.memberParams)}static #A=(()=>dt7948.n(this.prototype,"removeMember",[s.action]))();makeOwner(e){this.model.addOwners(e)}static #D=(()=>dt7948.n(this.prototype,"makeOwner",[s.action]))();removeOwner(e){this.model.removeOwner(e)}static #I=(()=>dt7948.n(this.prototype,"removeOwner",[s.action]))();addMembers(){this.usernames&&this.usernames.length>0&&this.model.addMembers(this.usernames).then(()=>this.set("usernames",[])).catch(l.popupAjaxError)}static #G=(()=>dt7948.n(this.prototype,"addMembers",[s.action]))();toggleBulkSelect(){this.setProperties({isBulk:!this.isBulk,bulkSelection:[]})}static #Y=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[s.action]))();bulkSelectAll(){document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>{e.checked||e.click()})}static #Q=(()=>dt7948.n(this.prototype,"bulkSelectAll",[s.action]))();bulkClearAll(){document.querySelectorAll("input.bulk-select:checked").forEach(e=>{e.checked&&e.click()})}static #J=(()=>dt7948.n(this.prototype,"bulkClearAll",[s.action]))();selectMember(e,t){this.set("bulkSelection",this.bulkSelection||[]),t.target.checked?this.bulkSelection.pushObject(e):this.bulkSelection.removeObject(e)}static #X=(()=>dt7948.n(this.prototype,"selectMember",[s.action]))();updateOrder(e,t){this.setProperties({order:e,asc:t})}static #Z=(()=>dt7948.n(this.prototype,"updateOrder",[s.action]))()}},90656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(62797);class r extends i.default{selectedCategories(e,t,n,i,s){return[].concat(e,t,n,i,s).filter(Boolean)}static #e=(()=>dt7948.n(this.prototype,"selectedCategories",[(0,s.default)("model.watchingCategories.[]","model.watchingFirstPostCategories.[]","model.trackingCategories.[]","model.regularCategories.[]","model.mutedCategories.[]")]))()}},62851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(70001),r=n(9630),o=n(62797);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"group",[i.inject]))();#a$=(()=>void dt7948.i(this,"group"))();static #n=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();loading=!1;offset=0;filters=(()=>s.default.create())();filterParams(e,t,n,i){return{action:e,acting_user:t,target_user:n,subject:i}}static #i=(()=>dt7948.n(this.prototype,"filterParams",[(0,o.default)("filters.action","filters.acting_user","filters.target_user","filters.subject")]))();_refreshModel(){this.get("group.model").findLogs(0,this.filterParams).then(e=>{this.set("offset",0),this.model.setProperties({logs:e.logs,all_loaded:e.all_loaded})})}static #l=(()=>dt7948.n(this.prototype,"_refreshModel",[(0,r.observes)("filters.action","filters.acting_user","filters.target_user","filters.subject")]))();reset(){this.setProperties({offset:0,filters:s.default.create()})}loadMore(){this.get("model.all_loaded")||(this.set("loading",!0),this.get("group.model").findLogs(this.offset+1,this.filterParams).then(e=>{e.logs.forEach(e=>this.get("model.logs").addObject(e)),this.incrementProperty("offset"),this.set("model.all_loaded",e.all_loaded)}).finally(()=>this.set("loading",!1)))}static #u=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();clearFilter(e){this.set(`filters.${e}`,"")}static #c=(()=>dt7948.n(this.prototype,"clearFilter",[s.action]))()}},60087:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82806);class s extends i.default{saving=null}},67109:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(62797);class r extends i.default{selectedTags(e,t,n,i,s){return[].concat(e,t,n,i,s).filter(e=>e)}static #e=(()=>dt7948.n(this.prototype,"selectedTags",[(0,s.default)("model.watching_tags.[]","model.watching_first_post_tags.[]","model.tracking_tags.[]","model.regular_tags.[]","model.muted_tags.[]")]))()}},52487:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(82806),s=n(62797);class r extends i.default{tabs(e){let t=[{route:"group.manage.profile",title:"groups.manage.profile.title"},{route:"group.manage.interaction",title:"groups.manage.interaction.title"},{route:"group.manage.categories",title:"groups.manage.categories.title"}];return this.siteSettings.tagging_enabled&&t.push({route:"group.manage.tags",title:"groups.manage.tags.title"}),t.push({route:"group.manage.logs",title:"groups.manage.logs.title"}),e||(this.siteSettings.enable_smtp&&t.splice(2,0,{route:"group.manage.email",title:"groups.manage.email.title"}),t.splice(1,0,{route:"group.manage.membership",title:"groups.manage.membership.title"})),t}static #e=(()=>dt7948.n(this.prototype,"tabs",[(0,s.default)("model.automatic")]))()}},32156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82806);class s extends i.default{}},75522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82806);class s extends i.default{}},21802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(9630),o=n(6610),a=n(64149),l=n(62797);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();queryParams=["order","asc","filter"];order="";asc=null;filter=null;filterInput=null;loading=!1;get canLoadMore(){return this.get("model.requesters")?.lengthdt7948.n(this.prototype,"filterInputChanged",[(0,r.observes)("filterInput")]))();_setFilter(){this.set("filter",this.filterInput)}static #i=(()=>dt7948.n(this.prototype,"_setFilter",[(0,l.debounce)(500)]))();_filtersChanged(){this.findRequesters(!0)}static #l=(()=>dt7948.n(this.prototype,"_filtersChanged",[(0,r.observes)("order","asc","filter")]))();findRequesters(e){if(this.loading)return;let t=this.model;t&&(e||this.canLoadMore)&&(this.set("loading",!0),t.findRequesters(this.memberParams,e).finally(()=>{this.set("loading",!1)}))}memberParams(e,t,n){return{order:e,asc:t,filter:n}}static #u=(()=>dt7948.n(this.prototype,"memberParams",[(0,l.default)("order","asc","filter")]))();hasRequesters(e){return e&&e.length>0}static #c=(()=>dt7948.n(this.prototype,"hasRequesters",[(0,l.default)("model.requesters.[]")]))();filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"}static #d=(()=>dt7948.n(this.prototype,"filterPlaceholder",[l.default]))();handleRequest(e){(0,o.ajax)(`/groups/${this.get("model.id")}/handle_membership_request.json`,{data:e,type:"PUT"}).catch(a.popupAjaxError)}loadMore(){this.findRequesters()}static #p=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();acceptRequest(e){this.handleRequest({user_id:e.get("id"),accept:!0}),e.setProperties({request_accepted:!0,request_denied:!1})}static #h=(()=>dt7948.n(this.prototype,"acceptRequest",[s.action]))();undoAcceptRequest(e){(0,o.ajax)("/groups/"+this.get("model.id")+"/members.json",{type:"DELETE",data:{user_id:e.get("id")}}).then(()=>{e.set("request_undone",!0)})}static #m=(()=>dt7948.n(this.prototype,"undoAcceptRequest",[s.action]))();denyRequest(e){this.handleRequest({user_id:e.get("id")}),e.setProperties({request_accepted:!1,request_denied:!0})}static #g=(()=>dt7948.n(this.prototype,"denyRequest",[s.action]))();updateOrder(e,t){this.setProperties({order:e,asc:t})}static #E=(()=>dt7948.n(this.prototype,"updateOrder",[s.action]))()}},53455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(54729),o=n(68166),a=n(62797),l=n(51969);class u extends s.default{init(){super.init(...arguments),this.setProperties({route:this.route||`group.${this.name}`,message:(0,l.i18n)(`groups.${this.i18nKey||this.name}`)})}}class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #u=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();counts=null;showing="members";destroying=null;showTooltip=!1;tabs(e,t,n,i,s){let r=[u.create({name:"members",route:"group.index",icon:"users",i18nKey:"members.title",count:t}),u.create({name:"activity"})];return i&&s&&r.push(u.create({name:"requests",i18nKey:"requests.title",icon:"user-plus",count:n})),e&&r.push(u.create({name:"messages",i18nKey:"messages"})),i&&r.push(u.create({name:"manage",i18nKey:"manage.title",icon:"wrench"})),r.push(u.create({name:"permissions",i18nKey:"permissions.title"})),r}static #c=(()=>dt7948.n(this.prototype,"tabs",[(0,a.default)("showMessages","model.user_count","model.request_count","canManageGroup","model.allow_membership_requests")]))();showMessages(e,t){return!!this.currentUser?.can_send_private_messages&&!!e&&(t||this.currentUser&&this.currentUser.admin)}static #d=(()=>dt7948.n(this.prototype,"showMessages",[(0,a.default)("model.has_messages","model.is_group_user","currentUser.can_send_private_messages")]))();displayGroupMessageButton(e){return this.currentUser&&e}static #p=(()=>dt7948.n(this.prototype,"displayGroupMessageButton",[(0,a.default)("model.messageable")]))();canManageGroup(e){return this.currentUser?.canManageGroup(e)}static #h=(()=>dt7948.n(this.prototype,"canManageGroup",[(0,a.default)("model","model.automatic")]))();messageGroup(){this.composer.openNewMessage({recipients:this.get("model.name"),hasGroups:!0})}static #m=(()=>dt7948.n(this.prototype,"messageGroup",[s.action]))();destroyGroup(){this.set("destroying",!0);let e=this.model;this.dialog.deleteConfirm({title:(0,l.i18n)("admin.groups.delete_confirm",{group:e.name}),bodyComponent:o.default,bodyComponentModel:e,didConfirm:()=>{e.destroy().catch(e=>{console.error(e),this.dialog.alert((0,l.i18n)("admin.groups.delete_failed"))}).then(()=>{this.router.transitionTo("groups.index")}).finally(()=>{this.set("destroying",!1)})},didCancel:()=>this.set("destroying",!1)})}static #g=(()=>dt7948.n(this.prototype,"destroyGroup",[s.action]))();toggleDeleteTooltip(){this.toggleProperty("showTooltip")}static #E=(()=>dt7948.n(this.prototype,"toggleDeleteTooltip",[s.action]))()}},17407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(54729),o=n(45929),a=n(84262),l=n(62797),u=n(51969);class c extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();queryParams=["order","asc","filter","type"];order=null;asc=null;filter="";type=null;groups=null;isLoading=!1;types(e){let t=[];return e&&e.forEach(e=>t.push({id:e,name:(0,u.i18n)(`groups.index.${e}_groups`)})),t}static #n=(()=>dt7948.n(this.prototype,"types",[(0,l.default)("groups.extras.type_filters")]))();onFilterChanged(e){(0,a.default)(this,this._debouncedFilter,e,o.INPUT_DELAY)}static #i=(()=>dt7948.n(this.prototype,"onFilterChanged",[s.action]))();loadMore(){this.groups&&this.groups.loadMore()}static #l=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();new(){this.router.transitionTo("groups.new")}static #u=(()=>dt7948.n(this.prototype,"new",[s.action]))();_debouncedFilter(e){this.set("filter",e)}}},92965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,popupAutomaticMembershipAlert:()=>c});var i=n(82806),s=n(70001),r=n(54729),o=n(6610),a=n(64149),l=n(62797),u=n(51969);function c(e,t){if(!t)return;let n={};n.automatic_membership_email_domains=t,e&&(n.id=e),(0,o.ajax)("/admin/groups/automatic_membership_count.json",{type:"PUT",data:n}).then(e=>{let t=e.user_count;t>0&&this.dialog.alert((0,u.i18n)("admin.groups.manage.membership.automatic_membership_user_count",{count:t}))})}class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();saving=null;splitOwnerUsernames(e){return e&&e.length?e.split(","):[]}static #i=(()=>dt7948.n(this.prototype,"splitOwnerUsernames",[(0,l.default)("model.ownerUsernames")]))();splitUsernames(e){return e&&e.length?e.split(","):[]}static #l=(()=>dt7948.n(this.prototype,"splitUsernames",[(0,l.default)("model.usernames")]))();save(){this.set("saving",!0);let e=this.model;c(e.id,e.automatic_membership_email_domains),e.create().then(()=>{this.router.transitionTo("group.members",e.name)}).catch(a.popupAjaxError).finally(()=>this.set("saving",!1))}static #u=(()=>dt7948.n(this.prototype,"save",[s.action]))();updateOwnerUsernames(e){this.set("model.ownerUsernames",e.join(","))}static #c=(()=>dt7948.n(this.prototype,"updateOwnerUsernames",[s.action]))();updateUsernames(e){this.set("model.usernames",e.join(","))}static #d=(()=>dt7948.n(this.prototype,"updateUsernames",[s.action]))()}},41522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(82806),s=n(70001),r=n(5938),o=n(97355),a=n(6610),l=n(64149),u=n(56839),c=n(20802),d=n(66380),p=n(68358),h=n(60568),m=n(35217),g=n(93512),f=n(87389),_=n(62797),y=n(51969);class b extends i.default.extend(p.default,m.default,d.default,h.default){queryParams=["t"];static #e=(()=>dt7948.g(this.prototype,"invitedBy",[(0,r.readOnly)("model.invited_by")]))();#aW=(()=>void dt7948.i(this,"invitedBy"))();static #n=(()=>dt7948.g(this.prototype,"email",[(0,r.alias)("model.email")]))();#aK=(()=>void dt7948.i(this,"email"))();static #i=(()=>dt7948.g(this.prototype,"accountEmail",[(0,r.alias)("email")]))();#nV=(()=>void dt7948.i(this,"accountEmail"))();static #l=(()=>dt7948.g(this.prototype,"existingUserId",[(0,r.readOnly)("model.existing_user_id")]))();#aG=(()=>void dt7948.i(this,"existingUserId"))();static #u=(()=>dt7948.g(this.prototype,"existingUserCanRedeem",[(0,r.readOnly)("model.existing_user_can_redeem")]))();#aY=(()=>void dt7948.i(this,"existingUserCanRedeem"))();static #c=(()=>dt7948.g(this.prototype,"existingUserCanRedeemError",[(0,r.readOnly)("model.existing_user_can_redeem_error")]))();#aQ=(()=>void dt7948.i(this,"existingUserCanRedeemError"))();static #d=(()=>dt7948.g(this.prototype,"existingUserRedeeming",[(0,r.bool)("existingUserId")]))();#aJ=(()=>void dt7948.i(this,"existingUserRedeeming"))();static #p=(()=>dt7948.g(this.prototype,"hiddenEmail",[(0,r.alias)("model.hidden_email")]))();#aX=(()=>void dt7948.i(this,"hiddenEmail"))();static #h=(()=>dt7948.g(this.prototype,"emailVerifiedByLink",[(0,r.alias)("model.email_verified_by_link")]))();#aZ=(()=>void dt7948.i(this,"emailVerifiedByLink"))();static #m=(()=>dt7948.g(this.prototype,"differentExternalEmail",[(0,r.alias)("model.different_external_email")]))();#a1=(()=>void dt7948.i(this,"differentExternalEmail"))();static #g=(()=>dt7948.g(this.prototype,"accountUsername",[(0,r.alias)("model.username")]))();#nW=(()=>void dt7948.i(this,"accountUsername"))();static #E=(()=>dt7948.g(this.prototype,"passwordRequired",[(0,r.not)("externalAuthsOnly")]))();#a0=(()=>void dt7948.i(this,"passwordRequired"))();static #A=(()=>dt7948.g(this.prototype,"isInviteLink",[(0,r.readOnly)("model.is_invite_link")]))();#a3=(()=>void dt7948.i(this,"isInviteLink"))();successMessage=null;errorMessage=null;userFields=null;authOptions=null;rejectedEmails=[];maskPassword=!0;authenticationComplete(e){let t={accountUsername:e.username,accountName:e.name,authOptions:s.default.create(e)};this.isInviteLink&&(t.email=e.email),this.setProperties(t)}discourseConnectEnabled(){return this.siteSettings.enable_discourse_connect}static #D=(()=>dt7948.n(this.prototype,"discourseConnectEnabled",[_.default]))();welcomeTitle(){return(0,y.i18n)("invites.welcome_to",{site_name:this.siteSettings.title})}static #I=(()=>dt7948.n(this.prototype,"welcomeTitle",[_.default]))();yourEmailMessage(e){return(0,y.i18n)("invites.your_email",{email:e})}static #G=(()=>dt7948.n(this.prototype,"yourEmailMessage",[(0,_.default)("email")]))();externalAuthsEnabled(){return(0,g.findAll)().length>0}static #Y=(()=>dt7948.n(this.prototype,"externalAuthsEnabled",[_.default]))();externalAuthsOnly(){return!this.siteSettings.enable_local_logins&&this.externalAuthsEnabled&&!this.siteSettings.enable_discourse_connect}static #Q=(()=>dt7948.n(this.prototype,"externalAuthsOnly",[_.default]))();submitDisabled(e,t,n,i,s,r,o){return r?!o:e||t||n||i||s}static #J=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,_.default)("emailValidation.failed","usernameValidation.failed","passwordValidation.failed","nameValidation.failed","userFieldsValidation.failed","existingUserRedeeming","existingUserCanRedeem")]))();showSocialLoginAvailable(e,t,n){return e&&!t&&!n}static #X=(()=>dt7948.n(this.prototype,"showSocialLoginAvailable",[(0,_.default)("externalAuthsEnabled","externalAuthsOnly","discourseConnectEnabled")]))();shouldDisplayForm(e,t,n,i){return(this.siteSettings.enable_local_logins||e&&t&&!n)&&!this.siteSettings.enable_discourse_connect&&!i}static #Z=(()=>dt7948.n(this.prototype,"shouldDisplayForm",[(0,_.default)("externalAuthsOnly","authOptions","emailValidation.failed","existingUserRedeeming")]))();showFullname(){return this.siteSettings.enable_names}static #ee=(()=>dt7948.n(this.prototype,"showFullname",[_.default]))();fullnameRequired(){return this.siteSettings.full_name_required}static #et=(()=>dt7948.n(this.prototype,"fullnameRequired",[_.default]))();emailValidation(e,t,n,i,r,a,l){if(r&&!l)return s.default.create({ok:!0,reason:(0,y.i18n)("user.email.ok")});if((0,o.isEmpty)(e))return s.default.create({failed:!0});if(t.includes(e))return s.default.create({failed:!0,reason:(0,y.i18n)("user.email.invalid")});if(n&&i){let t=this.authProviderDisplayName(this.get("authOptions.auth_provider"));return n===e?s.default.create({ok:!0,reason:(0,y.i18n)("user.email.authenticated",{provider:t})}):s.default.create({failed:!0,reason:(0,y.i18n)("user.email.invite_auth_email_invalid",{provider:t})})}return a?s.default.create({ok:!0,reason:(0,y.i18n)("user.email.authenticated_by_invite")}):(0,c.emailValid)(e)?s.default.create({ok:!0,reason:(0,y.i18n)("user.email.ok")}):s.default.create({failed:!0,reason:(0,y.i18n)("user.email.invalid")})}static #en=(()=>dt7948.n(this.prototype,"emailValidation",[(0,_.default)("email","rejectedEmails.[]","authOptions.email","authOptions.email_valid","hiddenEmail","emailVerifiedByLink","differentExternalEmail")]))();authProviderDisplayName(e){let t=(0,g.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}ssoPath(){return(0,f.default)("/session/sso")}static #ei=(()=>dt7948.n(this.prototype,"ssoPath",[_.default]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,y.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #es=(()=>dt7948.n(this.prototype,"disclaimerHtml",[_.default]))();associateHtml(e,t){if(e)return(0,y.i18n)("create_account.associate",{associate_link:e,provider:(0,y.i18n)(`login.${t}.name`)})}static #er=(()=>dt7948.n(this.prototype,"associateHtml",[(0,_.default)("authOptions.associate_url","authOptions.auth_provider")]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #eo=(()=>dt7948.n(this.prototype,"togglePasswordMask",[s.action]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #ea=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[s.action]))();submit(){let e=this.userFields,t={};(0,o.isEmpty)(e)||e.forEach(function(e){t[e.get("field.id")]=e.get("value")});let n={username:this.accountUsername,name:this.accountName,password:this.accountPassword,user_custom_fields:t,timezone:moment.tz.guess()};this.isInviteLink?n.email=this.email:n.email_token=this.t,(0,a.ajax)({url:`/invites/show/${this.get("model.token")}.json`,type:"PUT",data:n}).then(e=>{e.success?(this.set("successMessage",e.message||(0,y.i18n)("invites.success")),e.redirect_to&&u.default.redirectTo(e.redirect_to)):(e.errors&&e.errors.email&&e.errors.email.length>0&&e.values&&this.rejectedEmails.pushObject(e.values.email),e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.message&&this.set("errorMessage",e.message))}).catch(e=>{this.set("errorMessage",(0,l.extractError)(e))})}static #el=(()=>dt7948.n(this.prototype,"submit",[s.action]))();externalLogin(e){e.doLogin({signup:!0,params:{origin:window.location.href}})}static #eu=(()=>dt7948.n(this.prototype,"externalLogin",[s.action]))()}},59601:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(35804),l=n(97355),u=n(39203),c=n(29296),d=n(6610),p=n(64149),h=n(84266),m=n(3737),g=n(20802),f=n(2262),_=n(93512),y=n(41958),b=n(29166),w=n(87389),k=n(51969);class x extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #u=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #c=(()=>dt7948.g(this.prototype,"login",[o.service]))();#t6=(()=>void dt7948.i(this,"login"))();static #d=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #p=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#aD=(()=>void dt7948.i(this,"application"))();static #h=(()=>dt7948.g(this.prototype,"loggingIn",[i.tracked],function(){return!1}))();#iY=(()=>void dt7948.i(this,"loggingIn"))();static #m=(()=>dt7948.g(this.prototype,"loggedIn",[i.tracked],function(){return!1}))();#iQ=(()=>void dt7948.i(this,"loggedIn"))();static #g=(()=>dt7948.g(this.prototype,"showLoginButtons",[i.tracked],function(){return!0}))();#iJ=(()=>void dt7948.i(this,"showLoginButtons"))();static #E=(()=>dt7948.g(this.prototype,"showLogin",[i.tracked],function(){return!0}))();#a2=(()=>void dt7948.i(this,"showLogin"))();static #A=(()=>dt7948.g(this.prototype,"showSecondFactor",[i.tracked],function(){return!1}))();#iX=(()=>void dt7948.i(this,"showSecondFactor"))();static #D=(()=>dt7948.g(this.prototype,"loginPassword",[i.tracked],function(){return""}))();#iZ=(()=>void dt7948.i(this,"loginPassword"))();static #I=(()=>dt7948.g(this.prototype,"loginName",[i.tracked],function(){return""}))();#i1=(()=>void dt7948.i(this,"loginName"))();static #G=(()=>dt7948.g(this.prototype,"canLoginLocal",[i.tracked],function(){return this.siteSettings.enable_local_logins}))();#i0=(()=>void dt7948.i(this,"canLoginLocal"))();static #Y=(()=>dt7948.g(this.prototype,"canLoginLocalWithEmail",[i.tracked],function(){return this.siteSettings.enable_local_logins_via_email}))();#i3=(()=>void dt7948.i(this,"canLoginLocalWithEmail"))();static #Q=(()=>dt7948.g(this.prototype,"secondFactorMethod",[i.tracked],function(){return y.SECOND_FACTOR_METHODS.TOTP}))();#i2=(()=>void dt7948.i(this,"secondFactorMethod"))();static #J=(()=>dt7948.g(this.prototype,"securityKeyCredential",[i.tracked]))();#i8=(()=>void dt7948.i(this,"securityKeyCredential"))();static #X=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[i.tracked]))();#i4=(()=>void dt7948.i(this,"otherMethodAllowed"))();static #Z=(()=>dt7948.g(this.prototype,"secondFactorRequired",[i.tracked]))();#i7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #ee=(()=>dt7948.g(this.prototype,"backupEnabled",[i.tracked]))();#i9=(()=>void dt7948.i(this,"backupEnabled"))();static #et=(()=>dt7948.g(this.prototype,"totpEnabled",[i.tracked]))();#i5=(()=>void dt7948.i(this,"totpEnabled"))();static #en=(()=>dt7948.g(this.prototype,"showSecurityKey",[i.tracked]))();#i6=(()=>void dt7948.i(this,"showSecurityKey"))();static #ei=(()=>dt7948.g(this.prototype,"securityKeyChallenge",[i.tracked]))();#se=(()=>void dt7948.i(this,"securityKeyChallenge"))();static #es=(()=>dt7948.g(this.prototype,"securityKeyAllowedCredentialIds",[i.tracked]))();#st=(()=>void dt7948.i(this,"securityKeyAllowedCredentialIds"))();static #er=(()=>dt7948.g(this.prototype,"secondFactorToken",[i.tracked]))();#sn=(()=>void dt7948.i(this,"secondFactorToken"))();static #eo=(()=>dt7948.g(this.prototype,"flash",[i.tracked]))();#nt=(()=>void dt7948.i(this,"flash"))();static #ea=(()=>dt7948.g(this.prototype,"flashType",[i.tracked]))();#iE=(()=>void dt7948.i(this,"flashType"))();get isAwaitingApproval(){return this.awaitingApproval&&!this.canLoginLocal&&!this.canLoginLocalWithEmail}get loginDisabled(){return this.loggingIn||this.loggedIn}get bodyClasses(){let e=["login-body"];return this.isAwaitingApproval&&e.push("awaiting-approval"),!this.hasAtLeastOneLoginButton||this.showSecondFactor||this.showSecurityKey||e.push("has-alt-auth"),this.canLoginLocal||e.push("no-local-login"),(this.showSecondFactor||this.showSecurityKey)&&e.push("second-factor"),e.join(" ")}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,f.isWebauthnSupported)()}get hasAtLeastOneLoginButton(){return(0,_.findAll)().length>0||this.canUsePasskeys}get hasNoLoginOptions(){return!this.hasAtLeastOneLoginButton&&!this.canLoginLocal}get loginButtonLabel(){return this.loggingIn?"login.logging_in":"login.title"}get showSignupLink(){return this.canSignUp&&!this.showSecondFactor}get adminLoginPath(){return(0,w.default)("/u/admin-login")}get shouldTriggerRouteAction(){return!this.siteSettings.full_page_login||this.siteSettings.enable_discourse_connect}showFullPageLogin(){this.showLogin=!0}static #el=(()=>dt7948.n(this.prototype,"showFullPageLogin",[r.action]))();async passkeyLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"optional";try{let t=await (0,f.getPasskeyCredential)(e=>this.dialog.alert(e),e,this.capabilities.isFirefox);if(t){let e;try{e=await (0,d.ajax)("/session/passkey/auth.json",{type:"POST",data:{publicKeyCredential:t}})}catch(e){(0,p.popupAjaxError)(e);return}if(e&&!e.error){let e=(0,h.default)("destination_url"),t=(0,h.default)("sso_destination_url");t?((0,h.removeCookie)("sso_destination_url"),window.location.assign(t)):e?((0,h.removeCookie)("destination_url"),window.location.assign(e)):window.location.reload()}else this.dialog.alert(e.error)}}catch(e){(0,p.popupAjaxError)(e)}}static #eu=(()=>dt7948.n(this.prototype,"passkeyLogin",[r.action]))();preloadLogin(){let e=document.querySelector("#hidden-login-form input[name=username]")?.value;e?(this.loginName=e,this.loginPassword=document.querySelector("#hidden-login-form input[name=password]").value):(0,h.default)("email")&&(this.loginName=(0,h.default)("email"))}static #ec=(()=>dt7948.n(this.prototype,"preloadLogin",[r.action]))();securityKeyCredentialChanged(e){this.securityKeyCredential=e}static #ed=(()=>dt7948.n(this.prototype,"securityKeyCredentialChanged",[r.action]))();flashChanged(e){this.flash=e}static #nG=(()=>dt7948.n(this.prototype,"flashChanged",[r.action]))();flashTypeChanged(e){this.flashType=e}static #nY=(()=>dt7948.n(this.prototype,"flashTypeChanged",[r.action]))();loginNameChanged(e){this.loginName=e.target.value}static #nQ=(()=>dt7948.n(this.prototype,"loginNameChanged",[r.action]))();showCreateAccount(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.site.isReadOnly?this.dialog.alert((0,k.i18n)("read_only_mode.login_disabled")):this.handleShowCreateAccount(e)}static #oZ=(()=>dt7948.n(this.prototype,"showCreateAccount",[r.action]))();handleShowCreateAccount(e){if(this.siteSettings.enable_discourse_connect){let e=encodeURIComponent(window.location.pathname);window.location=(0,w.default)("/session/sso?return_path="+e)}else this.isOnlyOneExternalLoginMethod?this.login.externalLogin(this.externalLoginMethods[0],{signup:!0}):this.router.transitionTo("signup").then(t=>{Object.keys(e||{}).forEach(n=>{t.controller.set(n,e[n])})})}showNotActivated(e){this.modal.show(c.default,{model:e})}static #o1=(()=>dt7948.n(this.prototype,"showNotActivated",[r.action]))();async triggerLogin(){if(!this.loginDisabled){if((0,l.isEmpty)(this.loginName)||(0,l.isEmpty)(this.loginPassword)){this.flash=(0,k.i18n)("login.blank_username_or_password"),this.flashType="error";return}try{this.loggingIn=!0;let e=await (0,d.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}});if(e&&e.error){if(this.loggingIn=!1,this.flash=null,(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired){this.otherMethodAllowed=e.multiple_second_factor_methods,this.secondFactorRequired=!0,this.showLoginButtons=!1,this.backupEnabled=e.backup_enabled,this.totpEnabled=e.totp_enabled,this.showSecondFactor=e.totp_enabled,this.showSecurityKey=e.security_key_enabled,this.secondFactorMethod=e.security_key_enabled?y.SECOND_FACTOR_METHODS.SECURITY_KEY:y.SECOND_FACTOR_METHODS.TOTP,this.securityKeyChallenge=e.challenge,this.securityKeyAllowedCredentialIds=e.allowed_credential_ids;return}"not_activated"===e.reason?this.showNotActivated({username:this.loginName,sentTo:(0,b.default)(e.sent_to_email),currentEmail:(0,b.default)(e.current_email)}):"suspended"===e.reason?this.dialog.alert(e.error):("expired"===e.reason?this.flash=(0,a.htmlSafe)((0,k.i18n)("login.password_expired",{reset_url:(0,w.default)("/password-reset")})):this.flash=e.error,this.flashType="error")}else{this.loggedIn=!0;let e=document.getElementById("hidden-login-form"),t=(t,n)=>{e&&(e.querySelector(`input[name=${n}]`).value=t)},n=(0,h.default)("destination_url"),i=(0,h.default)("sso_destination_url");if(t(this.loginName,"username"),t(this.loginPassword,"password"),i){(0,h.removeCookie)("sso_destination_url"),window.location.assign(i);return}n?((0,h.removeCookie)("destination_url"),t(n,"redirect")):t(window.location.href,"redirect"),e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit());return}}catch(e){e.jqXHR&&429===e.jqXHR.status?this.flash=(0,k.i18n)("login.rate_limit"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?this.flash=(0,k.i18n)("read_only_mode.login_disabled"):(0,g.areCookiesEnabled)()?this.flash=(0,k.i18n)("login.error"):this.flash=(0,k.i18n)("login.cookies_error"),this.flashType="error",this.loggingIn=!1}}}static #o0=(()=>dt7948.n(this.prototype,"triggerLogin",[r.action]))();externalLoginAction(e){this.loginDisabled||this.login.externalLogin(e,{signup:!1,setLoggingIn:e=>this.loggingIn=e})}static #o3=(()=>dt7948.n(this.prototype,"externalLoginAction",[r.action]))();createAccount(){let e={};this.loginName&&this.loginName.indexOf("@")>0?(e.accountEmail=this.loginName,e.accountUsername=null):(e.accountUsername=this.loginName,e.accountEmail=null),this.showCreateAccount(e)}static #o2=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))();interceptResetLink(e){!(0,m.wantsNewWindow)(e)&&e.target.href&&new URL(e.target.href).pathname===(0,w.default)("/password-reset")&&(e.preventDefault(),e.stopPropagation(),this.modal.show(u.default,{model:{emailOrUsername:this.loginName}}))}static #o8=(()=>dt7948.n(this.prototype,"interceptResetLink",[r.action]))()}},17317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(82806),s=n(70001),r=n(5938),o=n(6610),a=n(3737),l=n(56839),u=n(2262),c=n(68358),d=n(41958),p=n(87389),h=n(62797),m=n(51969);class g extends i.default.extend(c.default){static #e=(()=>dt7948.g(this.prototype,"isDeveloper",[(0,r.alias)("model.is_developer")]))();#a8=(()=>void dt7948.i(this,"isDeveloper"))();static #n=(()=>dt7948.g(this.prototype,"admin",[(0,r.alias)("model.admin")]))();#a4=(()=>void dt7948.i(this,"admin"))();static #i=(()=>dt7948.g(this.prototype,"secondFactorRequired",[(0,r.alias)("model.second_factor_required")]))();#i7=(()=>void dt7948.i(this,"secondFactorRequired"))();static #l=(()=>dt7948.g(this.prototype,"securityKeyRequired",[(0,r.alias)("model.security_key_required")]))();#a7=(()=>void dt7948.i(this,"securityKeyRequired"))();static #u=(()=>dt7948.g(this.prototype,"backupEnabled",[(0,r.alias)("model.backup_enabled")]))();#i9=(()=>void dt7948.i(this,"backupEnabled"))();static #c=(()=>dt7948.g(this.prototype,"securityKeyOrSecondFactorRequired",[(0,r.or)("model.second_factor_required","model.security_key_required")]))();#a9=(()=>void dt7948.i(this,"securityKeyOrSecondFactorRequired"))();static #d=(()=>dt7948.g(this.prototype,"otherMethodAllowed",[(0,r.readOnly)("model.multiple_second_factor_methods")]))();#i4=(()=>void dt7948.i(this,"otherMethodAllowed"))();passwordRequired=!0;errorMessage=null;successMessage=null;requiresApproval=!1;redirected=!1;maskPassword=!0;passwordValidationVisible=!1;lockImageUrl=(()=>(0,p.default)("/images/lock.svg"))();displaySecurityKeyForm(e,t){return e&&t===d.SECOND_FACTOR_METHODS.SECURITY_KEY}static #p=(()=>dt7948.n(this.prototype,"displaySecurityKeyForm",[(0,h.default)("securityKeyRequired","selectedSecondFactorMethod")]))();initSelectedSecondFactorMethod(){this.model.security_key_required?this.set("selectedSecondFactorMethod",d.SECOND_FACTOR_METHODS.SECURITY_KEY):this.model.second_factor_required?this.set("selectedSecondFactorMethod",d.SECOND_FACTOR_METHODS.TOTP):this.model.backup_enabled&&this.set("selectedSecondFactorMethod",d.SECOND_FACTOR_METHODS.BACKUP_CODE)}continueButtonText(){return(0,m.i18n)("password_reset.continue",{site_name:this.siteSettings.title})}static #h=(()=>dt7948.n(this.prototype,"continueButtonText",[(0,h.default)()]))();redirectHref(e){return(0,p.default)(e||"/")}static #m=(()=>dt7948.n(this.prototype,"redirectHref",[(0,h.default)("redirectTo")]))();showPasswordValidation(e,t,n){return e||t&&n}static #g=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,h.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();togglePasswordValidation(){this.set("passwordValidationVisible",!!this.passwordValidation.reason)}static #E=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[s.action]))();done(e){(0,a.wantsNewWindow)(e)||(e.preventDefault(),this.set("redirected",!0),l.default.redirectTo(this.redirectTo||"/"))}static #A=(()=>dt7948.n(this.prototype,"done",[s.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #D=(()=>dt7948.n(this.prototype,"togglePasswordMask",[s.action]))();async submit(){try{let e=await (0,o.ajax)({url:(0,l.userPath)(`password-reset/${this.get("model.token")}.json`),type:"PUT",data:{password:this.accountPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.selectedSecondFactorMethod,timezone:moment.tz.guess()}});e.success?(this.set("successMessage",e.message),this.set("redirectTo",e.redirect_to),e.requires_approval?this.set("requiresApproval",!0):(this.set("redirected",!0),l.default.redirectTo(e.redirect_to||"/"))):(e.errors.security_keys||e.errors.user_second_factors?this.setProperties({secondFactorRequired:this.secondFactorRequired,securityKeyRequired:this.securityKeyRequired,password:null,errorMessage:e.message}):this.secondFactorRequired||this.securityKeyRequired?this.setProperties({secondFactorRequired:!1,securityKeyRequired:!1,errorMessage:null}):e.errors?.password?.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,(e.friendly_messages||[]).join("\n"))),e.message&&this.set("errorMessage",e.message))}catch(e){if(e.jqXHR?.status===429)this.set("errorMessage",(0,m.i18n)("user.second_factor.rate_limit"));else throw Error(e)}}static #I=(()=>dt7948.n(this.prototype,"submit",[s.action]))();authenticateSecurityKey(){this.set("selectedSecondFactorMethod",d.SECOND_FACTOR_METHODS.SECURITY_KEY),(0,u.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.set("securityKeyCredential",e),this.send("submit")},e=>{this.setProperties({securityKeyRequired:!0,password:null,errorMessage:e})})}static #G=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[s.action]))()}},16378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82806);class s extends i.default{}},83486:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(82806),s=n(70001),r=n(5938),o=n(42433),a=n(54729),l=n(13157),u=n(64149),c=n(43900),d=n(28147),p=n(5335),h=n(56839),m=n(93512),g=n(87389),f=n(62797),_=n(51969);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();static #l=(()=>dt7948.g(this.prototype,"canEditName",[(0,d.setting)("enable_names")]))();#a6=(()=>void dt7948.i(this,"canEditName"))();static #u=(()=>dt7948.g(this.prototype,"canSelectUserStatus",[(0,d.setting)("enable_user_status")]))();#le=(()=>void dt7948.i(this,"canSelectUserStatus"))();static #c=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,d.setting)("moderators_view_emails")]))();#oH=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #d=(()=>dt7948.g(this.prototype,"canDownloadPosts",[(0,r.alias)("user.viewingSelf")]))();#lt=(()=>void dt7948.i(this,"canDownloadPosts"))();static #p=(()=>dt7948.g(this.prototype,"cannotDeleteAccount",[(0,r.not)("currentUser.can_delete_account")]))();#ln=(()=>void dt7948.i(this,"cannotDeleteAccount"))();static #h=(()=>dt7948.g(this.prototype,"deleteDisabled",[(0,r.or)("model.isSaving","deleting","cannotDeleteAccount")]))();#li=(()=>void dt7948.i(this,"deleteDisabled"))();static #m=(()=>dt7948.g(this.prototype,"canSelectTitle",[(0,r.gt)("model.availableTitles.length",0)]))();#ls=(()=>void dt7948.i(this,"canSelectTitle"))();static #g=(()=>dt7948.g(this.prototype,"canSelectFlair",[(0,r.gt)("model.availableFlairs.length",0)]))();#lr=(()=>void dt7948.i(this,"canSelectFlair"))();static #E=(()=>dt7948.g(this.prototype,"disableConnectButtons",[(0,d.propertyNotEqual)("model.id","currentUser.id")]))();#lo=(()=>void dt7948.i(this,"disableConnectButtons"))();canSaveUser=!0;newNameInput=null;newTitleInput=null;newPrimaryGroupInput=null;newStatus=null;revoking=null;init(){super.init(...arguments),this.saveAttrNames=["name","title","primary_group_id","flair_group_id","status"],this.set("revoking",{})}reset(){this.set("passwordProgress",null)}get canCheckEmails(){return new c.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #A=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,s.computed)("model.id","currentUser.id")]))();nameInstructions(){return(0,_.i18n)(this.siteSettings.full_name_required?"user.name.instructions_required":"user.name.instructions")}static #D=(()=>dt7948.n(this.prototype,"nameInstructions",[(0,f.default)()]))();canSelectPrimaryGroup(e){return e.length>0&&this.siteSettings.user_selected_primary_groups}static #I=(()=>dt7948.n(this.prototype,"canSelectPrimaryGroup",[(0,f.default)("model.filteredGroups")]))();associatedAccountsLoaded(e){return void 0!==e}static #G=(()=>dt7948.n(this.prototype,"associatedAccountsLoaded",[(0,f.default)("model.associated_accounts")]))();authProviders(e){return(0,m.findAll)().map(t=>({method:t,account:e.find(e=>e.name===t.name)})).filter(e=>e.account||e.method.can_connect)}static #Y=(()=>dt7948.n(this.prototype,"authProviders",[(0,f.default)("model.associated_accounts.[]")]))();emails(e,t,n){let i=[];return e&&i.push(s.default.create({email:e,primary:!0,confirmed:!0})),t&&t.forEach(e=>{i.push(s.default.create({email:e,confirmed:!0}))}),n&&n.forEach(e=>{i.push(s.default.create({email:e}))}),i.sort((e,t)=>e.email.localeCompare(t.email))}static #Q=(()=>dt7948.n(this.prototype,"emails",[(0,f.default)("model.email","model.secondary_emails.[]","model.unconfirmed_emails.[]")]))();canUpdateAssociatedAccounts(e,t,n){return!e&&!!t&&!n&&(0,m.findAll)().length>0}static #J=(()=>dt7948.n(this.prototype,"canUpdateAssociatedAccounts",[(0,f.default)("model.second_factor_enabled","canCheckEmails","model.is_anonymous")]))();canAddEmail(e,t){return e>0&&t}static #X=(()=>dt7948.n(this.prototype,"canAddEmail",[(0,f.default)("siteSettings.max_allowed_secondary_emails","model.can_edit_email")]))();resendConfirmationEmail(e,t){t?.preventDefault(),e.set("resending",!0),this.model.addEmail(e.email).then(()=>{e.set("resent",!0)}).finally(()=>{e.set("resending",!1)})}static #Z=(()=>dt7948.n(this.prototype,"resendConfirmationEmail",[s.action]))();showUserStatusModal(e){this.modal.show(l.default,{model:{status:e,hidePauseNotifications:!0,saveAction:e=>this.set("newStatus",e),deleteAction:()=>this.set("newStatus",null)}})}static #ee=(()=>dt7948.n(this.prototype,"showUserStatusModal",[s.action]))();save(){return this.set("saved",!1),this.model.setProperties({name:this.newNameInput,title:this.newTitleInput,primary_group_id:this.newPrimaryGroupInput,flair_group_id:this.newFlairGroupId,status:this.newStatus}),this.model.save(this.saveAttrNames).then(()=>this.set("saved",!0)).catch(u.popupAjaxError)}static #et=(()=>dt7948.n(this.prototype,"save",[s.action]))();setPrimaryEmail(e){this.model.setPrimaryEmail(e).catch(u.popupAjaxError)}static #en=(()=>dt7948.n(this.prototype,"setPrimaryEmail",[s.action]))();destroyEmail(e){this.model.destroyEmail(e)}static #ei=(()=>dt7948.n(this.prototype,"destroyEmail",[s.action]))();delete(){this.dialog.alert({message:(0,_.i18n)("user.delete_account_confirm"),buttons:[{icon:"triangle-exclamation",label:(0,_.i18n)("user.delete_account"),class:"btn-danger",action:()=>this.model.delete().then(()=>{(0,o.next)(()=>{this.dialog.alert({message:(0,_.i18n)("user.deleted_yourself"),didConfirm:()=>h.default.redirectAbsolute((0,g.default)("/")),didCancel:()=>h.default.redirectAbsolute((0,g.default)("/"))})})},()=>{(0,o.next)(()=>this.dialog.alert((0,_.i18n)("user.delete_yourself_not_allowed"))),this.set("deleting",!1)})},{label:(0,_.i18n)("composer.cancel")}]})}static #es=(()=>dt7948.n(this.prototype,"delete",[s.action]))();revokeAccount(e){this.set(`revoking.${e.name}`,!0),this.model.revokeAssociatedAccount(e.name).then(t=>{t.success?this.model.associated_accounts.removeObject(e):this.dialog.alert(t.message)}).catch(u.popupAjaxError).finally(()=>this.set(`revoking.${e.name}`,!1))}static #er=(()=>dt7948.n(this.prototype,"revokeAccount",[s.action]))();connectAccount(e){e.doLogin({reconnect:!0})}static #eo=(()=>dt7948.n(this.prototype,"connectAccount",[s.action]))();exportUserArchive(){this.dialog.yesNoConfirm({message:(0,_.i18n)("user.download_archive.confirm"),didConfirm:()=>(0,p.exportUserArchive)()})}static #ea=(()=>dt7948.n(this.prototype,"exportUserArchive",[s.action]))()}},53473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(5938),o=n(28147),a=n(20802),l=n(62797),u=n(51969);class c extends i.default{queryParams=["new"];taken=!1;saving=!1;error=!1;success=!1;oldEmail=null;newEmail=null;successMessage=null;static #e=(()=>dt7948.g(this.prototype,"newEmailEmpty",[(0,r.empty)("newEmail")]))();#la=(()=>void dt7948.i(this,"newEmailEmpty"))();static #n=(()=>dt7948.g(this.prototype,"saveDisabled",[(0,r.or)("saving","newEmailEmpty","taken","unchanged","invalidEmail")]))();#is=(()=>void dt7948.i(this,"saveDisabled"))();static #i=(()=>dt7948.g(this.prototype,"unchanged",[(0,o.propertyEqual)("newEmailLower","oldEmail")]))();#ll=(()=>void dt7948.i(this,"unchanged"))();newEmailLower(e){return e.toLowerCase().trim()}static #l=(()=>dt7948.n(this.prototype,"newEmailLower",[(0,l.default)("newEmail")]))();saveButtonText(e,t){return e?(0,u.i18n)("saving"):t?(0,u.i18n)("user.add_email.add"):(0,u.i18n)("user.change")}static #u=(()=>dt7948.n(this.prototype,"saveButtonText",[(0,l.default)("saving","new")]))();invalidEmail(e){return!(0,a.emailValid)(e)}static #c=(()=>dt7948.n(this.prototype,"invalidEmail",[(0,l.default)("newEmail")]))();emailValidation(e,t,n){if(e&&(t||n))return s.default.create({failed:!0,reason:(0,u.i18n)("user.email.invalid")})}static #d=(()=>dt7948.n(this.prototype,"emailValidation",[(0,l.default)("invalidEmail","oldEmail","newEmail")]))();reset(){this.setProperties({taken:!1,saving:!1,error:!1,success:!1,newEmail:null})}saveEmail(){return this.set("saving",!0),(this.new?this.model.addEmail(this.newEmail):this.model.changeEmail(this.newEmail)).then(()=>{this.set("success",!0),this.model.staff?this.set("successMessage",(0,u.i18n)("user.change_email.success_staff")):this.currentUser.admin?this.set("successMessage",(0,u.i18n)("user.change_email.success_via_admin")):this.set("successMessage",(0,u.i18n)("user.change_email.success"))},e=>{this.setProperties({error:!0,saving:!1}),e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors&&e.jqXHR.responseJSON.errors[0]?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",(0,u.i18n)("user.change_email.error"))})}static #p=(()=>dt7948.n(this.prototype,"saveEmail",[s.action]))()}},21556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(5938),o=n(64149),a=n(62797),l=n(51969);let u={ALWAYS:0,ONLY_WHEN_AWAY:1,NEVER:2};class c extends i.default{subpageTitle=(()=>(0,l.i18n)("user.preferences_nav.emails"))();static #e=(()=>dt7948.g(this.prototype,"emailMessagesLevelAway",[(0,r.equal)("model.user_option.email_messages_level",u.ONLY_WHEN_AWAY)]))();#lu=(()=>void dt7948.i(this,"emailMessagesLevelAway"))();static #n=(()=>dt7948.g(this.prototype,"emailLevelAway",[(0,r.equal)("model.user_option.email_level",u.ONLY_WHEN_AWAY)]))();#lc=(()=>void dt7948.i(this,"emailLevelAway"))();saveAttrNames=["email_level","email_messages_level","mailing_list_mode","mailing_list_mode_frequency","email_digests","email_in_reply_to","email_previous_replies","digest_after_minutes","include_tl0_in_digests"];previousRepliesOptions=(()=>[{name:(0,l.i18n)("user.email_previous_replies.always"),value:0},{name:(0,l.i18n)("user.email_previous_replies.unless_emailed"),value:1},{name:(0,l.i18n)("user.email_previous_replies.never"),value:2}])();emailLevelOptions=(()=>[{name:(0,l.i18n)("user.email_level.always"),value:u.ALWAYS},{name:(0,l.i18n)("user.email_level.only_when_away"),value:u.ONLY_WHEN_AWAY},{name:(0,l.i18n)("user.email_level.never"),value:u.NEVER}])();digestFrequencies=(()=>[{name:(0,l.i18n)("user.email_digests.every_30_minutes"),value:30},{name:(0,l.i18n)("user.email_digests.every_hour"),value:60},{name:(0,l.i18n)("user.email_digests.daily"),value:1440},{name:(0,l.i18n)("user.email_digests.weekly"),value:10080},{name:(0,l.i18n)("user.email_digests.every_month"),value:43200},{name:(0,l.i18n)("user.email_digests.every_six_months"),value:259200}])();frequencyEstimate(){let e=this.get("model.mailing_list_posts_per_day");return!e||e<2?(0,l.i18n)("user.mailing_list_mode.few_per_day"):(0,l.i18n)("user.mailing_list_mode.many_per_day",{dailyEmailEstimate:e})}static #i=(()=>dt7948.n(this.prototype,"frequencyEstimate",[(0,a.default)()]))();mailingListModeOptions(){return[{name:this.frequencyEstimate,value:1},{name:(0,l.i18n)("user.mailing_list_mode.individual_no_echo"),value:2}]}static #l=(()=>dt7948.n(this.prototype,"mailingListModeOptions",[(0,a.default)()]))();emailFrequencyInstructions(){return this.siteSettings.email_time_window_mins?(0,l.i18n)("user.email.frequency",{count:this.siteSettings.email_time_window_mins}):null}static #u=(()=>dt7948.n(this.prototype,"emailFrequencyInstructions",[(0,a.default)()]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(o.popupAjaxError)}static #c=(()=>dt7948.n(this.prototype,"save",[s.action]))()}},67610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(72400),l=n(64149),u=n(84424),c=n(28147),d=n(94113),p=n(20802),h=n(10157),m=n(62797),g=n(51969);let f={1:"latest",2:"categories",3:"unread",4:"new",5:"top",6:"bookmarks",7:"unseen",8:"hot"},_=["smallest","smaller","normal","larger","largest"],y=["notifications","contextual"];class b extends i.default{static #e=(()=>dt7948.g(this.prototype,"session",[o.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"preferencesController",[(0,i.inject)("preferences")]))();#ld=(()=>void dt7948.i(this,"preferencesController"))();currentThemeId=(()=>-1)();previewingColorScheme=!1;selectedDarkColorSchemeId=null;makeColorSchemeDefault=!0;static #i=(()=>dt7948.g(this.prototype,"canPreviewColorScheme",[(0,c.propertyEqual)("model.id","currentUser.id")]))();#lp=(()=>void dt7948.i(this,"canPreviewColorScheme"))();subpageTitle=(()=>(0,g.i18n)("user.preferences_nav.interface"))();static #l=(()=>dt7948.g(this.prototype,"showColorSchemeSelector",[(0,r.reads)("userSelectableColorSchemes.length")]))();#lh=(()=>void dt7948.i(this,"showColorSchemeSelector"))();static #u=(()=>dt7948.g(this.prototype,"showColorSchemeNoneItem",[(0,r.not)("currentSchemeCanBeSelected")]))();#lm=(()=>void dt7948.i(this,"showColorSchemeNoneItem"))();selectedColorSchemeNoneLabel=(()=>(0,g.i18n)("user.color_schemes.default_description"))();init(){super.init(...arguments),this.set("selectedDarkColorSchemeId",this.session.userDarkSchemeId),this.set("enableDarkMode",-1!==this.get("model.user_option.dark_scheme_id")),this.set("selectedColorSchemeId",this.getSelectedColorSchemeId())}saveAttrNames(e){let t=["locale","external_links_in_new_tab","dynamic_favicon","enable_quoting","enable_smart_lists","enable_defer","automatically_unpin_topics","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile","hide_presence","text_size","title_count_mode","skip_new_user_tips","seen_popups","color_scheme_id","dark_scheme_id","bookmark_auto_delete_preference"];return e&&t.push("theme_ids"),t}static #c=(()=>dt7948.n(this.prototype,"saveAttrNames",[(0,m.default)("makeThemeDefault")]))();availableLocales(){return JSON.parse(this.siteSettings.available_locales)}static #d=(()=>dt7948.n(this.prototype,"availableLocales",[(0,m.default)()]))();defaultDarkSchemeId(){return this.siteSettings.default_dark_mode_color_scheme_id}static #p=(()=>dt7948.n(this.prototype,"defaultDarkSchemeId",[m.default]))();textSizes(){return _.map(e=>({name:(0,g.i18n)(`user.text_size.${e}`),value:e}))}static #h=(()=>dt7948.n(this.prototype,"textSizes",[m.default]))();get homepageId(){return this.model.user_option.homepage_id||this.userSelectableHome.firstObject.value}static #m=(()=>dt7948.n(this.prototype,"homepageId",[(0,s.computed)("model.user_option.homepage_id","userSelectableHome.[]")]))();titleCountModes(){return y.map(e=>({name:(0,g.i18n)(`user.title_count_mode.${e}`),value:e}))}static #g=(()=>dt7948.n(this.prototype,"titleCountModes",[m.default]))();bookmarkAfterNotificationModes(){return Object.keys(h.AUTO_DELETE_PREFERENCES).map(e=>({value:h.AUTO_DELETE_PREFERENCES[e],name:(0,g.i18n)(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))}static #E=(()=>dt7948.n(this.prototype,"bookmarkAfterNotificationModes",[m.default]))();userSelectableThemes(){return(0,d.listThemes)(this.site)}static #A=(()=>dt7948.n(this.prototype,"userSelectableThemes",[m.default]))();showThemeSelector(e){return e&&e.length>1}static #D=(()=>dt7948.n(this.prototype,"showThemeSelector",[(0,m.default)("userSelectableThemes")]))();themeIdChanged(e){return -1===this.currentThemeId?(this.set("currentThemeId",e),!1):this.currentThemeId!==e}static #I=(()=>dt7948.n(this.prototype,"themeIdChanged",[(0,m.default)("themeId")]))();userSelectableColorSchemes(){return(0,u.listColorSchemes)(this.site)}static #G=(()=>dt7948.n(this.prototype,"userSelectableColorSchemes",[m.default]))();currentSchemeCanBeSelected(e,t,n){if(!e||!n)return!1;let i=e.findBy("id",n);return!!i&&t.findBy("id",i.color_scheme_id)}static #Y=(()=>dt7948.n(this.prototype,"currentSchemeCanBeSelected",[(0,m.default)("userSelectableThemes","userSelectableColorSchemes","themeId")]))();showThemeSetDefault(e,t){return!e||e[0]!==t}static #Q=(()=>dt7948.n(this.prototype,"showThemeSetDefault",[(0,m.default)("model.user_option.theme_ids","themeId")]))();showTextSetDefault(e,t){return e!==t}static #J=(()=>dt7948.n(this.prototype,"showTextSetDefault",[(0,m.default)("model.user_option.text_size","textSize")]))();homeChanged(){let e=this.siteSettings.top_menu.split("|")[0].split(",")[0];this.model.canPickThemeWithCustomHomepage&&(f[-1]="custom");let t=f[this.get("model.user_option.homepage_id")];(0,p.setDefaultHomepage)(t||e)}userSelectableHome(){let e={};Object.keys(f).forEach(t=>{e[f[t]]=t});let t=[];this.model.canPickThemeWithCustomHomepage&&t.push({name:(0,g.i18n)("user.homepage.default"),value:-1});let n=this.siteSettings.top_menu.split("|"),i=f[this.get("model.user_option.homepage_id")];return i&&!n.includes(i)&&n.push(f[this.homepageId]),n.forEach(n=>{let i=e[n];i&&t.push({name:(0,g.i18n)(`filters.${n}.title`),value:Number(i)})}),t}static #X=(()=>dt7948.n(this.prototype,"userSelectableHome",[(0,m.default)()]))();showDarkModeToggle(){return this.defaultDarkSchemeId>0&&!this.showDarkColorSchemeSelector}static #Z=(()=>dt7948.n(this.prototype,"showDarkModeToggle",[m.default]))();userSelectableDarkColorSchemes(){return(0,u.listColorSchemes)(this.site,{darkOnly:!0})}static #ee=(()=>dt7948.n(this.prototype,"userSelectableDarkColorSchemes",[m.default]))();showDarkColorSchemeSelector(e){let t=this.defaultDarkSchemeId>0?2:1;return e&&e.length>t}static #et=(()=>dt7948.n(this.prototype,"showDarkColorSchemeSelector",[(0,m.default)("userSelectableDarkColorSchemes")]))();getSelectedColorSchemeId(){if(!this.session.userColorSchemeId)return;let e=this.userSelectableThemes?.findBy("id",this.themeId);if(e?.color_scheme_id!==this.session.userColorSchemeId||this.userSelectableColorSchemes.findBy("id",this.session.userColorSchemeId))return this.session.userColorSchemeId}save(){this.set("saved",!1);let e=this.makeThemeDefault;e&&this.set("model.user_option.theme_ids",[this.themeId]);let t=this.makeTextSizeDefault;return t&&this.set("model.user_option.text_size",this.textSize),this.showColorSchemeSelector?this.makeColorSchemeDefault&&this.set("model.user_option.color_scheme_id",this.selectedColorSchemeId):this.set("model.user_option.color_scheme_id",null),this.showDarkModeToggle?this.set("model.user_option.dark_scheme_id",this.enableDarkMode?null:-1):this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?this.set("model.user_option.dark_scheme_id",null):this.set("model.user_option.dark_scheme_id",this.selectedDarkColorSchemeId),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0),e?(0,d.setLocalTheme)([]):(0,d.setLocalTheme)([this.themeId],this.get("model.user_option.theme_key_seq")),t?this.model.updateTextSizeCookie(null):this.model.updateTextSizeCookie(this.textSize),this.makeColorSchemeDefault?((0,u.updateColorSchemeCookie)(null),(0,u.updateColorSchemeCookie)(null,{dark:!0})):((0,u.updateColorSchemeCookie)(this.selectedColorSchemeId),this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?(0,u.updateColorSchemeCookie)(null,{dark:!0}):(0,u.updateColorSchemeCookie)(this.selectedDarkColorSchemeId,{dark:!0})),this.homeChanged(),this.themeId&&this.themeId!==this.currentThemeId&&(0,a.reload)()}).catch(l.popupAjaxError)}static #en=(()=>dt7948.n(this.prototype,"save",[s.action]))();selectTextSize(e){let t=document.documentElement.classList;_.forEach(n=>{let i=`text-size-${n}`;e===n?t.add(i):t.remove(i)}),this.session.requiresRefresh=!0,this.set("textSize",e)}static #ei=(()=>dt7948.n(this.prototype,"selectTextSize",[s.action]))();loadColorScheme(e){if(this.setProperties({selectedColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme){if(e<0){let t=this.userSelectableThemes.findBy("id",this.themeId);t&&t.color_scheme_id&&(e=t.color_scheme_id)}(0,u.loadColorSchemeStylesheet)(e,this.themeId),-1===this.selectedDarkColorSchemeId&&(0,u.loadColorSchemeStylesheet)(e,this.themeId,!0)}}static #es=(()=>dt7948.n(this.prototype,"loadColorScheme",[s.action]))();loadDarkColorScheme(e){this.setProperties({selectedDarkColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme&&(-1===e?((0,u.loadColorSchemeStylesheet)(this.selectedColorSchemeId,this.themeId,!0),this.session.set("darkModeAvailable",!1)):((0,u.loadColorSchemeStylesheet)(e,this.themeId,!0),this.session.set("darkModeAvailable",!0)))}static #er=(()=>dt7948.n(this.prototype,"loadDarkColorScheme",[s.action]))();undoColorSchemePreview(){this.setProperties({selectedColorSchemeId:this.session.userColorSchemeId,selectedDarkColorSchemeId:this.session.userDarkSchemeId,previewingColorScheme:!1});let e=document.querySelector("link#cs-preview-dark"),t=document.querySelector("link#cs-preview-light");e&&e.remove(),t&&t.remove()}static #eo=(()=>dt7948.n(this.prototype,"undoColorSchemePreview",[s.action]))();resetSeenUserTips(){return this.model.set("user_option.skip_new_user_tips",!1),this.model.set("user_option.seen_popups",null),this.model.save(["skip_new_user_tips","seen_popups"])}static #ea=(()=>dt7948.n(this.prototype,"resetSeenUserTips",[s.action]))()}},43223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(28564),s=n(82806),r=n(70001),o=n(64149),a=n(51969);let l=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"saved",[i.tracked],function(){return!1}))();#lg=(()=>void dt7948.i(this,"saved"))();subpageTitle=(()=>(0,a.i18n)("user.preferences_nav.navigation_menu"))();saveAttrNames=["sidebar_link_to_filtered_list","sidebar_show_count_of_new_items"];save(){let e=this.model.sidebarLinkToFilteredList,t=this.model.sidebarShowCountOfNewItems;this.model.set("user_option.sidebar_link_to_filtered_list",this.newSidebarLinkToFilteredList),this.model.set("user_option.sidebar_show_count_of_new_items",this.newSidebarShowCountOfNewItems),this.model.save(this.saveAttrNames).then(()=>{this.saved=!0}).catch(n=>{this.model.set("user_option.sidebar_link_to_filtered_list",e),this.model.set("user_option.sidebar_show_count_of_new_items",t),(0,o.popupAjaxError)(n)})}static #n=(()=>dt7948.n(this.prototype,"save",[r.action]))()}},31561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(70001),r=n(64149),o=n(51969);class a extends i.default{subpageTitle=(()=>(0,o.i18n)("user.preferences_nav.notifications"))();init(){super.init(...arguments),this.saveAttrNames=["muted_usernames","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","allow_private_messages","enable_allowed_pm_users","user_notification_schedule"],this.likeNotificationFrequencies=[{name:(0,o.i18n)("user.like_notification_frequency.always"),value:0},{name:(0,o.i18n)("user.like_notification_frequency.first_time_and_daily"),value:1},{name:(0,o.i18n)("user.like_notification_frequency.first_time"),value:2},{name:(0,o.i18n)("user.like_notification_frequency.never"),value:3}]}save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(r.popupAjaxError)}static #e=(()=>dt7948.n(this.prototype,"save",[s.action]))()}},63980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(97355),l=n(74298),u=n(6610),c=n(64149),d=n(62797),p=n(51969);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();subpageTitle=(()=>(0,p.i18n)("user.preferences_nav.profile"))();static #i=(()=>dt7948.g(this.prototype,"canChangeBio",[(0,r.readOnly)("model.can_change_bio")]))();#lf=(()=>void dt7948.i(this,"canChangeBio"))();static #l=(()=>dt7948.g(this.prototype,"canChangeLocation",[(0,r.readOnly)("model.can_change_location")]))();#l_=(()=>void dt7948.i(this,"canChangeLocation"))();static #u=(()=>dt7948.g(this.prototype,"canChangeWebsite",[(0,r.readOnly)("model.can_change_website")]))();#ly=(()=>void dt7948.i(this,"canChangeWebsite"))();static #c=(()=>dt7948.g(this.prototype,"canUploadProfileHeader",[(0,r.readOnly)("model.can_upload_profile_header")]))();#lb=(()=>void dt7948.i(this,"canUploadProfileHeader"))();static #d=(()=>dt7948.g(this.prototype,"canUploadUserCardBackground",[(0,r.readOnly)("model.can_upload_user_card_background")]))();#lv=(()=>void dt7948.i(this,"canUploadUserCardBackground"))();saveAttrNames=["bio_raw","website","location","custom_fields","user_fields","profile_background_upload_url","card_background_upload_url","date_of_birth","timezone","default_calendar"];calendarOptions=(()=>[{name:(0,p.i18n)("download_calendar.google"),value:"google"},{name:(0,p.i18n)("download_calendar.ics"),value:"ics"}])();userFields(){let e=this.site.user_fields;return(0,a.isEmpty)(e)?void 0:this.showEnforcedRequiredFieldsNotice?this._missingRequiredFields(this.site.user_fields,this.model.user_fields):(this.currentUser.staff||(e=e.filterBy("editable",!0)),e.sortBy("position").map(e=>{let t=this.model.user_fields?.[e.id.toString()];return s.default.create({field:e,value:t})}))}static #p=(()=>dt7948.n(this.prototype,"userFields",[(0,d.default)("model.user_fields.@each.value")]))();showEnforcedRequiredFieldsNotice(e){return e}static #h=(()=>dt7948.n(this.prototype,"showEnforcedRequiredFieldsNotice",[(0,d.default)("currentUser.needs_required_fields_check")]))();canChangeDefaultCalendar(e){return"none_selected"!==e}static #m=(()=>dt7948.n(this.prototype,"canChangeDefaultCalendar",[(0,d.default)("model.user_option.default_calendar")]))();async showFeaturedTopicModal(){await this.modal.show(l.default,{model:{user:this.model,setFeaturedTopic:e=>this.set("model.featured_topic",e)}}),document.querySelector(".feature-topic-on-profile-btn")?.focus()}static #g=(()=>dt7948.n(this.prototype,"showFeaturedTopicModal",[s.action]))();_missingRequiredFields(e,t){return e.filter(e=>"for_all_users"===e.requirement&&(0,a.isEmpty)(t[e.id])).map(e=>s.default.create({field:e,value:""}))}clearFeaturedTopicFromProfile(){this.dialog.yesNoConfirm({message:(0,p.i18n)("user.feature_topic_on_profile.clear.warning"),didConfirm:()=>(0,u.ajax)(`/u/${this.model.username}/clear-featured-topic`,{type:"PUT"}).then(()=>{this.model.set("featured_topic",null)}).catch(c.popupAjaxError)})}static #E=(()=>dt7948.n(this.prototype,"clearFeaturedTopicFromProfile",[s.action]))();useCurrentTimezone(){this.model.set("user_option.timezone",moment.tz.guess())}static #A=(()=>dt7948.n(this.prototype,"useCurrentTimezone",[s.action]))();_updateUserFields(){let e=this.model,t=this.userFields;if(!(0,a.isEmpty)(t)){let n=e.get("user_fields");(0,a.isEmpty)(n)||t.forEach(function(e){let t=e.get("value");n[e.get("field.id").toString()]=(0,a.isEmpty)(t)?null:t})}}static #D=(()=>dt7948.n(this.prototype,"_updateUserFields",[s.action]))();save(){return this.set("saved",!1),this.send("_updateUserFields"),this.model.save(this.saveAttrNames).then(e=>{let{user:t}=e;return this.model.set("bio_cooked",t.bio_cooked)}).catch(c.popupAjaxError).finally(()=>{this.currentUser.set("needs_required_fields_check",!1),this.set("saved",!0)})}static #I=(()=>dt7948.n(this.prototype,"save",[s.action]))()}},8117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(86170),l=n(37159),u=n(31544),c=n(4888),d=n(98039),p=n(26418),h=n(34428),m=n(64149),g=n(56839),f=n(93512),_=n(41958),y=n(62797),b=n(51969);class w extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();loading=!1;dirty=!1;errorMessage=null;newUsername=null;static #l=(()=>dt7948.g(this.prototype,"backupEnabled",[(0,r.alias)("model.second_factor_backup_enabled")]))();#i9=(()=>void dt7948.i(this,"backupEnabled"))();secondFactorMethod=(()=>_.SECOND_FACTOR_METHODS.TOTP)();totps=[];security_keys=[];get isCurrentUser(){return this.currentUser?.id===this.model.id}hasOAuth(){return(0,f.findAll)().length>0}static #u=(()=>dt7948.n(this.prototype,"hasOAuth",[y.default]))();displayOAuthWarning(){return this.hasOAuth&&this.siteSettings.enforce_second_factor_on_external_auth}static #c=(()=>dt7948.n(this.prototype,"displayOAuthWarning",[y.default]))();showEnforcedWithOAuthNotice(e){return e&&e.enforcedSecondFactor&&this.hasOAuth&&!this.siteSettings.enforce_second_factor_on_external_auth}static #d=(()=>dt7948.n(this.prototype,"showEnforcedWithOAuthNotice",[(0,y.default)("currentUser")]))();showEnforcedNotice(e){return e&&e.enforcedSecondFactor&&this.siteSettings.enforce_second_factor_on_external_auth}static #p=(()=>dt7948.n(this.prototype,"showEnforcedNotice",[(0,y.default)("currentUser")]))();hasSecondFactors(e,t){return e.length>0||t.length>0}static #h=(()=>dt7948.n(this.prototype,"hasSecondFactors",[(0,y.default)("totps","security_keys")]))();async createToTpModal(){try{await this.modal.show(c.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}catch(e){(0,m.popupAjaxError)(e)}}async createSecurityKeyModal(){try{await this.modal.show(u.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:this.markDirty,onError:this.handleError}}),this.loadSecondFactors()}catch(e){(0,m.popupAjaxError)(e)}}handleError(e){if(e.jqXHR&&(e=e.jqXHR),"invalid_access"===e.responseJSON.error_type){let e=this.model.username.toLowerCase();g.default.redirectTo((0,g.userPath)(`${e}/preferences/second-factor`))}else(0,m.popupAjaxError)(e)}static #m=(()=>dt7948.n(this.prototype,"handleError",[s.action]))();setBackupEnabled(e){this.set("backupEnabled",e)}static #g=(()=>dt7948.n(this.prototype,"setBackupEnabled",[s.action]))();setCodesRemaining(e){this.model.set("second_factor_remaining_backup_codes",e)}static #E=(()=>dt7948.n(this.prototype,"setCodesRemaining",[s.action]))();loadSecondFactors(){!1!==this.dirty&&(this.set("loading",!0),this.model.loadSecondFactorCodes().then(e=>{if(e.error){this.set("errorMessage",e.error);return}this.setProperties({errorMessage:null,totps:e.totps,security_keys:e.security_keys,dirty:!1})}).catch(e=>this.handleError(e)).finally(()=>this.set("loading",!1)))}static #A=(()=>dt7948.n(this.prototype,"loadSecondFactors",[s.action]))();markDirty(){this.set("dirty",!0)}static #D=(()=>dt7948.n(this.prototype,"markDirty",[s.action]))();async createTotp(){try{(await this.model.trustedSession()).success?await this.createToTpModal():this.dialog.dialog({title:(0,b.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.createToTpModal()})}catch(e){(0,m.popupAjaxError)(e)}}static #I=(()=>dt7948.n(this.prototype,"createTotp",[s.action]))();async createSecurityKey(){try{(await this.model.trustedSession()).success?await this.createSecurityKeyModal():this.dialog.dialog({title:(0,b.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.createSecurityKeyModal()})}catch(e){(0,m.popupAjaxError)(e)}}static #G=(()=>dt7948.n(this.prototype,"createSecurityKey",[s.action]))();disableAllSecondFactors(){this.loading||this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.disable_confirm"),bodyComponent:l.default,bodyComponentModel:{totps:this.totps,security_keys:this.security_keys},confirmButtonLabel:"user.second_factor.disable",confirmButtonDisabled:!0,confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.model.disableAllSecondFactors().then(()=>{let e=this.model.username.toLowerCase();g.default.redirectTo((0,g.userPath)(`${e}/preferences`))}).catch(e=>this.handleError(e)).finally(()=>this.set("loading",!1))}})}static #Y=(()=>dt7948.n(this.prototype,"disableAllSecondFactors",[s.action]))();disableSingleSecondFactor(e){if(1===this.totps.concat(this.security_keys).length){this.send("disableAllSecondFactors");return}this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.delete_single_confirm_title"),message:(0,b.i18n)("user.second_factor.delete_single_confirm_message",{name:e.name}),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.totps.includes(e)&&this.currentUser.updateSecondFactor(e.id,e.name,!0,e.method).then(t=>{t.error||(this.markDirty(),this.set("totps",this.totps.filter(t=>t.id!==e.id||t.method!==e.method)))}).catch(e=>this.handleError(e)).finally(()=>{this.set("loading",!1)}),this.security_keys.includes(e)&&this.currentUser.updateSecurityKey(e.id,e.name,!0).then(t=>{t.error||(this.markDirty(),this.set("security_keys",this.security_keys.filter(t=>t.id!==e.id)))}).catch(e=>this.handleError(e)).finally(()=>{this.set("loading",!1)})}})}static #Q=(()=>dt7948.n(this.prototype,"disableSingleSecondFactor",[s.action]))();disableSecondFactorBackup(){this.dialog.deleteConfirm({title:(0,b.i18n)("user.second_factor.delete_backup_codes_confirm_title"),message:(0,b.i18n)("user.second_factor.delete_backup_codes_confirm_message"),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.set("backupCodes",[]),this.set("loading",!0),this.model.updateSecondFactor(0,"",!0,_.SECOND_FACTOR_METHODS.BACKUP_CODE).then(e=>{if(e.error){this.set("errorMessage",e.error);return}this.set("errorMessage",null),this.model.set("second_factor_backup_enabled",!1),this.markDirty(),this.send("closeModal")}).catch(e=>{this.send("closeModal"),this.onError(e)}).finally(()=>this.set("loading",!1))}})}static #J=(()=>dt7948.n(this.prototype,"disableSecondFactorBackup",[s.action]))();async editSecurityKey(e){await this.modal.show(h.default,{model:{securityKey:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}static #X=(()=>dt7948.n(this.prototype,"editSecurityKey",[s.action]))();async editSecondFactor(e){await this.modal.show(p.default,{model:{secondFactor:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}static #Z=(()=>dt7948.n(this.prototype,"editSecondFactor",[s.action]))();async editSecondFactorBackup(){await this.modal.show(d.default,{model:{secondFactor:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e),setBackupEnabled:e=>this.setBackupEnabled(e),setCodesRemaining:e=>this.setCodesRemaining(e)}})}static #ee=(()=>dt7948.n(this.prototype,"editSecondFactorBackup",[s.action]))()}},11411:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(86170),l=n(95694),u=n(6610),c=n(64149),d=n(43900),p=n(28147),h=n(71554),m=n(56839),g=n(2262),f=n(62797),_=n(51969);class y extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #u=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,p.setting)("moderators_view_emails")]))();#oH=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();passwordProgress=null;subpageTitle=(()=>(0,_.i18n)("user.preferences_nav.security"))();showAllAuthTokens=!1;static #c=(()=>dt7948.g(this.prototype,"canShowAllAuthTokens",[(0,r.gt)("model.user_auth_tokens.length",2)]))();#lw=(()=>void dt7948.i(this,"canShowAllAuthTokens"))();get canCheckEmails(){return new d.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #d=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,s.computed)("model.id","currentUser.id")]))();get isCurrentUser(){return this.currentUser?.id===this.model.id}get canUsePasskeys(){return!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,g.isWebauthnSupported)()}canChangePassword(e){return!e&&!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins}static #p=(()=>dt7948.n(this.prototype,"canChangePassword",[(0,f.default)("model.is_anonymous")]))();authTokens(e,t){return t.sort((e,t)=>e.is_active?-1:t.is_active?1:t.seen_at.localeCompare(e.seen_at)),e?t:t.slice(0,2)}static #h=(()=>dt7948.n(this.prototype,"authTokens",[(0,f.default)("showAllAuthTokens","model.user_auth_tokens")]))();changePassword(e){if(e?.preventDefault(),!this.passwordProgress)return this.set("passwordProgress",(0,_.i18n)("user.change_password.in_progress")),this.model.changePassword().then(()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:(0,_.i18n)("user.change_password.success")})}).catch(()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:(0,_.i18n)("user.change_password.error")})})}static #m=(()=>dt7948.n(this.prototype,"changePassword",[s.action]))();toggleShowAllAuthTokens(e){e?.preventDefault(),this.toggleProperty("showAllAuthTokens")}static #g=(()=>dt7948.n(this.prototype,"toggleShowAllAuthTokens",[s.action]))();revokeAuthToken(e,t){t?.preventDefault(),(0,u.ajax)((0,m.userPath)(`${this.get("model.username_lower")}/preferences/revoke-auth-token`),{type:"POST",data:e?{token_id:e.id}:{}}).then(()=>{e||(0,h.default)()}).catch(c.popupAjaxError)}static #E=(()=>dt7948.n(this.prototype,"revokeAuthToken",[s.action]))();async manage2FA(){try{(await this.model.trustedSession()).success?await this.router.transitionTo("preferences.second-factor"):this.dialog.dialog({title:(0,_.i18n)("user.confirm_access.title"),type:"notice",bodyComponent:a.default,didConfirm:()=>this.router.transitionTo("preferences.second-factor")})}catch(e){(0,c.popupAjaxError)(e)}}static #A=(()=>dt7948.n(this.prototype,"manage2FA",[s.action]))();save(){return this.set("saved",!1),this.model.then(()=>this.set("saved",!0)).catch(c.popupAjaxError)}static #D=(()=>dt7948.n(this.prototype,"save",[s.action]))();showToken(e){this.modal.show(l.default,{model:e})}static #I=(()=>dt7948.n(this.prototype,"showToken",[s.action]))()}},53608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(70001),r=n(64149),o=n(62797);class a extends i.default{saveAttrNames=["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"];selectedTags(e,t,n,i){return[].concat(e,t,n,i).filter(e=>e)}static #e=(()=>dt7948.n(this.prototype,"selectedTags",[(0,o.default)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]")]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>{this.set("saved",!0)}).catch(r.popupAjaxError)}static #n=(()=>dt7948.n(this.prototype,"save",[s.action]))()}},43148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(64149),l=n(18523),u=n(51969);let c=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"saved",[i.tracked],function(){return!1}))();#lg=(()=>void dt7948.i(this,"saved"))();likeNotificationFrequencies=(()=>[{name:(0,u.i18n)("user.like_notification_frequency.always"),value:0},{name:(0,u.i18n)("user.like_notification_frequency.first_time_and_daily"),value:1},{name:(0,u.i18n)("user.like_notification_frequency.first_time"),value:2},{name:(0,u.i18n)("user.like_notification_frequency.never"),value:3}])();autoTrackDurations=(()=>[{name:(0,u.i18n)("user.auto_track_options.never"),value:-1},{name:(0,u.i18n)("user.auto_track_options.immediately"),value:0},{name:(0,u.i18n)("user.auto_track_options.after_30_seconds"),value:3e4},{name:(0,u.i18n)("user.auto_track_options.after_1_minute"),value:6e4},{name:(0,u.i18n)("user.auto_track_options.after_2_minutes"),value:12e4},{name:(0,u.i18n)("user.auto_track_options.after_3_minutes"),value:18e4},{name:(0,u.i18n)("user.auto_track_options.after_4_minutes"),value:24e4},{name:(0,u.i18n)("user.auto_track_options.after_5_minutes"),value:3e5},{name:(0,u.i18n)("user.auto_track_options.after_10_minutes"),value:6e5}])();notificationLevelsForReplying=(()=>[{name:(0,u.i18n)("topic.notifications.watching.title"),value:l.NotificationLevels.WATCHING},{name:(0,u.i18n)("topic.notifications.tracking.title"),value:l.NotificationLevels.TRACKING},{name:(0,u.i18n)("topic.notifications.regular.title"),value:l.NotificationLevels.REGULAR}])();considerNewTopicOptions=(()=>[{name:(0,u.i18n)("user.new_topic_duration.not_viewed"),value:-1},{name:(0,u.i18n)("user.new_topic_duration.after_1_day"),value:1440},{name:(0,u.i18n)("user.new_topic_duration.after_2_days"),value:2880},{name:(0,u.i18n)("user.new_topic_duration.after_1_week"),value:10080},{name:(0,u.i18n)("user.new_topic_duration.after_2_weeks"),value:20160},{name:(0,u.i18n)("user.new_topic_duration.last_here"),value:-2}])();get canSee(){return this.currentUser.id===this.model.id}get selectedTags(){return[].concat(this.model.watched_tags,this.model.watching_first_post_tags,this.model.tracked_tags,this.model.muted_tags).filter(e=>e)}static #l=(()=>dt7948.n(this.prototype,"selectedTags",[(0,r.computed)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]")]))();get showMutePrecedenceSetting(){let e=this.model.watchedCategories?.length>0&&this.model.muted_tags?.length>0||this.model.watched_tags?.length>0&&this.model.mutedCategories?.length>0;return e&&null===this.model.user_option.watched_precedence_over_muted&&(this.model.user_option.watched_precedence_over_muted=this.siteSettings.watched_precedence_over_muted),e}static #u=(()=>dt7948.n(this.prototype,"showMutePrecedenceSetting",[(0,r.computed)("model.watchedCategories","model.mutedCategories","model.watched_tags.[]","model.muted_tags.[]")]))();get selectedCategories(){return[].concat(this.model.watchedCategories,this.model.watchedFirstPostCategories,this.model.trackedCategories,this.siteSettings.mute_all_categories_by_default?this.model.regularCategories:this.model.mutedCategories).filter(Boolean)}static #c=(()=>dt7948.n(this.prototype,"selectedCategories",[(0,r.computed)("model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories","siteSettings.mute_all_categories_by_default")]))();get hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest}static #d=(()=>dt7948.n(this.prototype,"hideMutedTags",[(0,r.computed)("siteSettings.remove_muted_tags_from_latest")]))();get canSave(){return this.canSee||this.currentUser.admin}get saveAttrNames(){let e=["new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying",this.siteSettings.mute_all_categories_by_default?"regular_category_ids":"muted_category_ids","watched_category_ids","tracked_category_ids","watched_first_post_category_ids","watched_precedence_over_muted","topics_unread_when_closed"];return this.siteSettings.tagging_enabled&&e.push("muted_tags","tracked_tags","watched_tags","watching_first_post_tags"),e}static #p=(()=>dt7948.n(this.prototype,"saveAttrNames",[(0,r.computed)("siteSettings.tagging_enabled","siteSettings.mute_all_categories_by_default")]))();save(){return this.saved=!1,this.model.save(this.saveAttrNames).then(()=>{this.saved=!0}).catch(a.popupAjaxError)}static #h=(()=>dt7948.n(this.prototype,"save",[r.action]))()}},32949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(5938),o=n(64149),a=n(11508),l=n(62797);class u extends i.default{static #e=(()=>dt7948.g(this.prototype,"allowPmUsersEnabled",[(0,r.and)("model.user_option.enable_allowed_pm_users","model.user_option.allow_private_messages")]))();#lk=(()=>void dt7948.i(this,"allowPmUsersEnabled"))();init(){super.init(...arguments),this.saveAttrNames=["allow_private_messages","muted_usernames","allowed_pm_usernames","enable_allowed_pm_users"]}get mutedUsernames(){let e=this.model.muted_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,a.makeArray)(e).uniq()}static #n=(()=>dt7948.n(this.prototype,"mutedUsernames",[(0,s.computed)("model.muted_usernames")]))();get allowedPmUsernames(){let e=this.model.allowed_pm_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,a.makeArray)(e).uniq()}static #i=(()=>dt7948.n(this.prototype,"allowedPmUsernames",[(0,s.computed)("model.allowed_pm_usernames")]))();onChangeMutedUsernames(e){this.model.set("muted_usernames",e.uniq().join(","))}static #l=(()=>dt7948.n(this.prototype,"onChangeMutedUsernames",[s.action]))();onChangeAllowedPmUsernames(e){this.model.set("allowed_pm_usernames",e.uniq().join(","))}static #u=(()=>dt7948.n(this.prototype,"onChangeAllowedPmUsernames",[s.action]))();disableAllowPmUsersSetting(e){return!e}static #c=(()=>dt7948.n(this.prototype,"disableAllowPmUsersSetting",[(0,l.default)("model.user_option.allow_private_messages")]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>this.set("saved",!0)).catch(o.popupAjaxError)}static #d=(()=>dt7948.n(this.prototype,"save",[s.action]))()}},54219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(82806),s=n(70001),r=n(42433),o=n(54836),a=n(97355),l=n(62797),u=n(51969);class c extends i.default{queryParams=["priority","type","status","category_id","topic_id","username","reviewed_by","from_date","to_date","sort_order","additional_filters","flagged_by","score_type"];type=null;status="pending";priority=this.siteSettings.reviewable_default_visibility;category_id=null;reviewables=null;topic_id=null;filtersExpanded=this.site.desktopView;username="";reviewed_by="";flagged_by="";from_date=null;to_date=null;sort_order=null;additional_filters=null;filterScoreType=null;allTypes(){return(this.reviewableTypes||[]).map(e=>{let t=(0,o.underscore)(e).replace(/[^\w]+/g,"_");return{id:e,name:(0,u.i18n)(`review.types.${t}.title`)}})}static #e=(()=>dt7948.n(this.prototype,"allTypes",[(0,l.default)("reviewableTypes")]))();allScoreTypes(){return this.scoreTypes||[]}static #n=(()=>dt7948.n(this.prototype,"allScoreTypes",[(0,l.default)("scoreTypes")]))();priorities(){return["any","low","medium","high"].map(e=>({id:e,name:(0,u.i18n)(`review.filters.priority.${e}`)}))}static #i=(()=>dt7948.n(this.prototype,"priorities",[l.default]))();sortOrders(){return["score","score_asc","created_at","created_at_asc"].map(e=>({id:e,name:(0,u.i18n)(`review.filters.orders.${e}`)}))}static #l=(()=>dt7948.n(this.prototype,"sortOrders",[l.default]))();statuses(){return["pending","approved","rejected","deleted","ignored","reviewed","all"].map(e=>({id:e,name:(0,u.i18n)(`review.statuses.${e}.title`)}))}static #u=(()=>dt7948.n(this.prototype,"statuses",[l.default]))();toggleFiltersIcon(e){return e?"chevron-up":"chevron-down"}static #c=(()=>dt7948.n(this.prototype,"toggleFiltersIcon",[(0,l.default)("filtersExpanded")]))();setRange(e){this.setProperties(e)}refreshModel(){(0,r.next)(()=>this.send("refreshRoute"))}remove(e){if(!e)return;let t=this.reviewables.reject(t=>e.includes(t.id));0===t.length?this.refreshModel():this.reviewables.setObjects(t)}static #d=(()=>dt7948.n(this.prototype,"remove",[s.action]))();resetTopic(){this.set("topic_id",null),this.refreshModel()}static #p=(()=>dt7948.n(this.prototype,"resetTopic",[s.action]))();refresh(){let e=this.status,t=this.filterStatus,n=this.sort_order,i=this.filterSortOrder,s=["reviewed","all"],r=["approved","rejected","deleted","ignored","pending"];s.includes(e)&&"created_at"===n&&r.includes(t)&&"created_at"===i&&(i="score"),r.includes(e)&&"score"===n&&s.includes(t)&&"score"===i&&(i="created_at"),this.setProperties({type:this.filterType,priority:this.filterPriority,status:this.filterStatus,category_id:this.filterCategoryId,username:this.filterUsername,reviewed_by:this.filterReviewedBy,flagged_by:this.filterFlaggedBy,score_type:this.filterScoreType,from_date:(0,a.isPresent)(this.filterFromDate)?this.filterFromDate.toISOString(!0).split("T")[0]:null,to_date:(0,a.isPresent)(this.filterToDate)?this.filterToDate.toISOString(!0).split("T")[0]:null,sort_order:i,additional_filters:JSON.stringify(this.additionalFilters)}),this.refreshModel()}static #h=(()=>dt7948.n(this.prototype,"refresh",[s.action]))();loadMore(){return this.reviewables.loadMore()}static #m=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();toggleFilters(){this.toggleProperty("filtersExpanded")}static #g=(()=>dt7948.n(this.prototype,"toggleFilters",[s.action]))();updateFilterReviewedBy(e){this.set("filterReviewedBy",e.firstObject)}static #E=(()=>dt7948.n(this.prototype,"updateFilterReviewedBy",[s.action]))();updateFilterFlaggedBy(e){this.set("filterFlaggedBy",e.firstObject)}static #A=(()=>dt7948.n(this.prototype,"updateFilterFlaggedBy",[s.action]))();updateFilterUsername(e){this.set("filterUsername",e.firstObject)}static #D=(()=>dt7948.n(this.prototype,"updateFilterUsername",[s.action]))()}},48062:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(82806),s=n(70001),r=n(6610),o=n(64149),a=n(62797),l=n(51969);class u extends i.default{saving=!1;saved=!1;save(){let e={};this.scoreTypes.forEach(t=>{e[t.id]=parseFloat(t.reviewable_priority)}),this.set("saving",!0),(0,r.ajax)("/review/settings",{type:"PUT",data:{reviewable_priorities:e}}).then(()=>{this.set("saved",!0)}).catch(o.popupAjaxError).finally(()=>this.set("saving",!1))}static #e=(()=>dt7948.n(this.prototype,"save",[s.action]))();scoreTypes(e){let t=(0,l.i18n)("review.example_username");return e.map(e=>({...e,title:e.title.replace("%{username}",t)}))}static #n=(()=>dt7948.n(this.prototype,"scoreTypes",[(0,a.default)("settings.reviewable_score_types")]))()}},3483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(82806),s=n(70001),r=n(5938),o=n(6610),a=n(64149),l=n(56839),u=n(2262),c=n(41958),d=n(62797),p=n(51969);let{TOTP:h,BACKUP_CODE:m,SECURITY_KEY:g}=c.SECOND_FACTOR_METHODS;class f extends i.default{TOTP=(()=>h)();BACKUP_CODE=(()=>m)();SECURITY_KEY=(()=>g)();queryParams=["nonce"];message=null;loadError=!1;messageIsError=!1;secondFactorToken=null;userSelectedMethod=null;static #e=(()=>dt7948.g(this.prototype,"totpEnabled",[(0,r.readOnly)("model.totp_enabled")]))();#i5=(()=>void dt7948.i(this,"totpEnabled"))();static #n=(()=>dt7948.g(this.prototype,"backupCodesEnabled",[(0,r.readOnly)("model.backup_enabled")]))();#lx=(()=>void dt7948.i(this,"backupCodesEnabled"))();static #i=(()=>dt7948.g(this.prototype,"securityKeysEnabled",[(0,r.readOnly)("model.security_keys_enabled")]))();#lT=(()=>void dt7948.i(this,"securityKeysEnabled"))();static #l=(()=>dt7948.g(this.prototype,"allowedMethods",[(0,r.readOnly)("model.allowed_methods")]))();#lS=(()=>void dt7948.i(this,"allowedMethods"))();static #u=(()=>dt7948.g(this.prototype,"customDescription",[(0,r.readOnly)("model.description")]))();#lC=(()=>void dt7948.i(this,"customDescription"))();static #c=(()=>dt7948.g(this.prototype,"showTotpForm",[(0,r.equal)("shownSecondFactorMethod",h)]))();#lE=(()=>void dt7948.i(this,"showTotpForm"))();static #d=(()=>dt7948.g(this.prototype,"showSecurityKeyForm",[(0,r.equal)("shownSecondFactorMethod",g)]))();#lA=(()=>void dt7948.i(this,"showSecurityKeyForm"))();static #p=(()=>dt7948.g(this.prototype,"showBackupCodesForm",[(0,r.equal)("shownSecondFactorMethod",m)]))();#lD=(()=>void dt7948.i(this,"showBackupCodesForm"))();totpAvailable(){return this.totpEnabled&&this.allowedMethods.includes(h)}static #h=(()=>dt7948.n(this.prototype,"totpAvailable",[(0,d.default)("allowedMethods.[]","totpEnabled")]))();backupCodesAvailable(){return this.backupCodesEnabled&&this.allowedMethods.includes(m)}static #m=(()=>dt7948.n(this.prototype,"backupCodesAvailable",[(0,d.default)("allowedMethods.[]","backupCodesEnabled")]))();securityKeysAvailable(){return this.securityKeysEnabled&&this.allowedMethods.includes(g)}static #g=(()=>dt7948.n(this.prototype,"securityKeysAvailable",[(0,d.default)("allowedMethods.[]","securityKeysEnabled")]))();shownSecondFactorMethod(e,t,n,i){if(null!==e)return e;if(t)return g;if(n)return h;if(i)return m;throw Error("unexpected state of user 2fa settings!")}static #E=(()=>dt7948.n(this.prototype,"shownSecondFactorMethod",[(0,d.default)("userSelectedMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable")]))();alternativeMethods(e,t,n,i){let s=[];return t&&e!==g&&s.push({id:g,translationKey:"login.second_factor_toggle.security_key",class:"security-key"}),n&&e!==h&&s.push({id:h,translationKey:"login.second_factor_toggle.totp",class:"totp"}),i&&e!==m&&s.push({id:m,translationKey:"login.second_factor_toggle.backup_code",class:"backup-code"}),s}static #A=(()=>dt7948.n(this.prototype,"alternativeMethods",[(0,d.default)("shownSecondFactorMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable")]))();secondFactorTitle(e){switch(e){case h:case g:return(0,p.i18n)("login.second_factor_title");case m:return(0,p.i18n)("login.second_factor_backup_title")}}static #D=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,d.default)("shownSecondFactorMethod")]))();secondFactorDescription(e){switch(e){case h:return(0,p.i18n)("login.second_factor_description");case g:return(0,p.i18n)("login.security_key_description");case m:return(0,p.i18n)("login.second_factor_backup_description")}}static #I=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,d.default)("shownSecondFactorMethod")]))();alertClass(e){return e?"alert-error":"alert-success"}static #G=(()=>dt7948.n(this.prototype,"alertClass",[(0,d.default)("messageIsError")]))();inputFormClass(e,t){return e?"totp-token":t?"backup-code-token":void 0}static #Y=(()=>dt7948.n(this.prototype,"inputFormClass",[(0,d.default)("showTotpForm","showBackupCodesForm")]))();resetState(){this.set("message",null),this.set("messageIsError",!1),this.set("secondFactorToken",null),this.set("userSelectedMethod",null),this.set("loadError",!1)}displayError(e){this.set("message",e),this.set("messageIsError",!0)}displaySuccess(e){this.set("message",e),this.set("messageIsError",!1)}verifySecondFactor(e){return(0,o.ajax)("/session/2fa",{type:"POST",data:{...e,second_factor_method:this.shownSecondFactorMethod,nonce:this.nonce}}).then(e=>{this.displaySuccess((0,p.i18n)("second_factor_auth.redirect_after_success")),(0,o.ajax)(e.callback_path,{type:e.callback_method,data:{second_factor_nonce:this.nonce,...e.callback_params}}).then(t=>{let n=t.redirect_url||e.redirect_url;l.default.routeTo(n)}).catch(e=>this.displayError((0,a.extractError)(e)))}).catch(e=>{this.displayError((0,a.extractError)(e))})}useAnotherMethod(e,t){t?.preventDefault(),this.set("userSelectedMethod",e)}static #Q=(()=>dt7948.n(this.prototype,"useAnotherMethod",[s.action]))();authenticateSecurityKey(){(0,u.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,e=>{this.verifySecondFactor({second_factor_token:e})},e=>{this.displayError(e)})}static #J=(()=>dt7948.n(this.prototype,"authenticateSecurityKey",[s.action]))();authenticateToken(){this.verifySecondFactor({second_factor_token:this.secondFactorToken})}static #X=(()=>dt7948.n(this.prototype,"authenticateToken",[s.action]))()}},6398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var i=n(89711),s=n(82806),r=n(70001),o=n(5938),a=n(54729),l=n(97355),u=n(9630),c=n(35223),d=n(6610),p=n(28147),h=n(84266),m=n(56839),g=n(20802),f=n(66380),_=n(68358),y=n(60568),b=n(35217),w=n(93512),k=n(41958),x=n(84262),T=n(62797),S=n(51969);class C extends s.default.extend(_.default,b.default,f.default,y.default){static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"login",[a.service]))();#t6=(()=>void dt7948.i(this,"login"))();accountChallenge=0;accountHoneypot=0;formSubmitted=!1;rejectedEmails=(()=>(0,i.A)())();prefilledUsername=null;userFields=null;isDeveloper=!1;maskPassword=!0;passwordValidationVisible=!1;emailValidationVisible=!1;static #l=(()=>dt7948.g(this.prototype,"hasAuthOptions",[(0,o.notEmpty)("authOptions")]))();#nz=(()=>void dt7948.i(this,"hasAuthOptions"))();static #u=(()=>dt7948.g(this.prototype,"canCreateLocal",[(0,p.setting)("enable_local_logins")]))();#n$=(()=>void dt7948.i(this,"canCreateLocal"))();static #c=(()=>dt7948.g(this.prototype,"requireInviteCode",[(0,p.setting)("require_invite_code")]))();#nq=(()=>void dt7948.i(this,"requireInviteCode"))();init(){super.init(...arguments),(0,h.default)("email")&&this.set("accountEmail",(0,h.default)("email")),this.fetchConfirmationValue()}actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}static #d=(()=>dt7948.n(this.prototype,"actionOnEnter",[T.bind]))();selectKitFocus(e){let t=document.getElementById(e.target.getAttribute("for"));t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())}static #p=(()=>dt7948.n(this.prototype,"selectKitFocus",[T.bind]))();showCreateForm(e,t,n){return(e||t)&&!n}static #h=(()=>dt7948.n(this.prototype,"showCreateForm",[(0,T.default)("hasAuthOptions","canCreateLocal","skipConfirmation")]))();showExternalLoginButtons(e,t){return e&&!t}static #m=(()=>dt7948.n(this.prototype,"showExternalLoginButtons",[(0,T.default)("site.desktopView","hasAuthOptions")]))();submitDisabled(){return this.formSubmitted}static #g=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,T.default)("formSubmitted")]))();bodyClasses(e,t,n){let i=[];return e&&i.push("has-user-fields"),t&&!n&&i.push("has-alt-auth"),this.canCreateLocal||i.push("no-local-logins"),i.join(" ")}static #E=(()=>dt7948.n(this.prototype,"bodyClasses",[(0,T.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions")]))();usernameDisabled(e,t){return e&&!t}static #A=(()=>dt7948.n(this.prototype,"usernameDisabled",[(0,T.default)("authOptions","authOptions.can_edit_username")]))();nameDisabled(e,t){return e&&!t}static #D=(()=>dt7948.n(this.prototype,"nameDisabled",[(0,T.default)("authOptions","authOptions.can_edit_name")]))();showFullname(){return this.siteSettings.enable_names}static #I=(()=>dt7948.n(this.prototype,"showFullname",[T.default]))();fullnameRequired(){return this.siteSettings.full_name_required}static #G=(()=>dt7948.n(this.prototype,"fullnameRequired",[T.default]))();showEmailValidation(e,t,n){return e||t&&n}static #Y=(()=>dt7948.n(this.prototype,"showEmailValidation",[(0,T.default)("emailValidation.ok","emailValidation.reason","emailValidationVisible")]))();showPasswordValidation(e,t,n){return e||t&&n}static #Q=(()=>dt7948.n(this.prototype,"showPasswordValidation",[(0,T.default)("passwordValidation.ok","passwordValidation.reason","passwordValidationVisible")]))();showUsernameInstructions(e){return this.siteSettings.show_signup_form_username_instructions&&!e}static #J=(()=>dt7948.n(this.prototype,"showUsernameInstructions",[(0,T.default)("usernameValidation.reason")]))();passwordRequired(e){return(0,l.isEmpty)(e)}static #X=(()=>dt7948.n(this.prototype,"passwordRequired",[(0,T.default)("authOptions.auth_provider")]))();disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,S.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #Z=(()=>dt7948.n(this.prototype,"disclaimerHtml",[T.default]))();emailValidation(e,t,n,i,s){let o={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===n&&t?t:(0,l.isEmpty)(n)?r.default.create(Object.assign(o,{message:(0,S.i18n)("user.email.required"),reason:s?(0,S.i18n)("user.email.required"):null})):i.includes(n)||!(0,g.emailValid)(n)?r.default.create(Object.assign(o,{reason:(0,S.i18n)("user.email.invalid")})):this.get("authOptions.email")===n&&this.get("authOptions.email_valid")?r.default.create({ok:!0,reason:(0,S.i18n)("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("authOptions.auth_provider"))})}):r.default.create({ok:!0,reason:(0,S.i18n)("user.email.ok")})}static #ee=(()=>dt7948.n(this.prototype,"emailValidation",[(0,T.default)("serverAccountEmail","serverEmailValidation","accountEmail","rejectedEmails.[]","forceValidationReason")]))();togglePasswordValidation(){this.passwordValidation.reason?this.set("passwordValidationVisible",!0):this.set("passwordValidationVisible",!1)}static #et=(()=>dt7948.n(this.prototype,"togglePasswordValidation",[r.action]))();checkEmailAvailability(){if(this.emailValidation.reason?this.set("emailValidationVisible",!0):this.set("emailValidationVisible",!1),this.emailValidation.ok&&this.serverAccountEmail!==this.accountEmail)return k.default.checkEmail(this.accountEmail).then(e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:r.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:r.default.create({ok:!0,reason:(0,S.i18n)("user.email.ok")})}))}).catch(()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})})}static #en=(()=>dt7948.n(this.prototype,"checkEmailAvailability",[r.action]))();emailDisabled(){return this.get("authOptions.email")===this.accountEmail&&this.get("authOptions.email_valid")}static #ei=(()=>dt7948.n(this.prototype,"emailDisabled",[(0,T.default)("accountEmail","authOptions.email","authOptions.email_valid")]))();authProviderDisplayName(e){let t=(0,w.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.accountUsername===this.prefilledUsername&&this.set("accountUsername",""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,l.isEmpty)(this.accountUsername)||this.get("authOptions.email"))&&(0,x.default)(this,this.fetchExistingUsername,500)}static #es=(()=>dt7948.n(this.prototype,"prefillUsername",[(0,u.observes)("emailValidation","accountEmail")]))();hasAtLeastOneLoginButton(){return(0,w.findAll)().length>0}static #er=(()=>dt7948.n(this.prototype,"hasAtLeastOneLoginButton",[T.default]))();fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,d.ajax)("/session/hp.json").then(e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))}).finally(()=>this._hpPromise=void 0)),this._hpPromise}handleSkipConfirmation(){this.skipConfirmation&&this.performAccountCreation().finally(()=>this.set("skipConfirmation",!1))}performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then(()=>this.performAccountCreation());let e={accountName:this.accountName,accountEmail:this.accountEmail,accountPassword:this.accountPassword,accountUsername:this.accountUsername,accountChallenge:this.accountChallenge,inviteCode:this.inviteCode,accountPasswordConfirm:this.accountHoneypot},t=this.get("authOptions.destination_url");return(0,l.isEmpty)(t)||(0,h.default)("destination_url",t,{path:"/"}),(0,l.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach(t=>e.userFields[t.get("field.id")]=t.get("value"))),this.set("formSubmitted",!0),k.default.createAccount(e).then(t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.set("isDeveloper",!1),t.success){this._challengeExpiry=1;let t=document.querySelector("#hidden-login-form");return t&&(t.querySelector("input[name=username]").value=e.accountUsername,t.querySelector("input[name=password]").value=e.accountPassword,t.querySelector("input[name=redirect]").value=(0,m.userPath)("account-created"),t.submit()),new c.Promise(()=>{})}this.set("flash",t.message||(0,S.i18n)("create_account.failed")),t.is_developer&&this.set("isDeveloper",!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors&&t.errors.password&&t.errors.password.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,h.removeCookie)("destination_url")}},()=>(this.set("formSubmitted",!1),(0,h.removeCookie)("destination_url"),this.set("flash",(0,S.i18n)("create_account.failed"))))}associateHtml(e,t){if(e)return(0,S.i18n)("create_account.associate",{associate_link:e,provider:(0,S.i18n)(`login.${t}.name`)})}static #eo=(()=>dt7948.n(this.prototype,"associateHtml",[(0,T.default)("authOptions.associate_url","authOptions.auth_provider")]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #ea=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[r.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #el=(()=>dt7948.n(this.prototype,"togglePasswordMask",[r.action]))();externalLogin(e){this.login.externalLogin(e,{signup:!0})}static #eu=(()=>dt7948.n(this.prototype,"externalLogin",[r.action]))();createAccount(){this.set("flash",""),this.set("forceValidationReason",!0),this.set("emailValidationVisible",!0),this.set("passwordValidationVisible",!0);let e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find(e=>e.failed);if(e){let t=e.element;t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus());return}this.set("forceValidationReason",!1),this.performAccountCreation()}static #ec=(()=>dt7948.n(this.prototype,"createAccount",[r.action]))()}},16662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(70001),r=n(54729);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"tagGroups",[i.inject]))();#lI=(()=>void dt7948.i(this,"tagGroups"))();onDestroy(){this.tagGroups.model.removeObject(this.model),this.router.transitionTo("tagGroups.index")}static #i=(()=>dt7948.n(this.prototype,"onDestroy",[s.action]))()}},53718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(70001),r=n(54729);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"tagGroups",[i.inject]))();#lI=(()=>void dt7948.i(this,"tagGroups"))();onSave(){this.tagGroups.model.pushObject(this.model),this.router.transitionTo("tagGroups.index")}static #i=(()=>dt7948.n(this.prototype,"onSave",[s.action]))()}},50265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(70001),r=n(54729);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#N=(()=>void dt7948.i(this,"router"))();newTagGroup(){this.router.transitionTo("tagGroups.new")}static #n=(()=>dt7948.n(this.prototype,"newTagGroup",[s.action]))()}},52570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(9773),l=n(6610),u=n(64149),c=n(62797),d=n(51969);class p extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();sortedByCount=!0;sortedByName=!1;static #i=(()=>dt7948.g(this.prototype,"sortAlphabetically",[(0,r.alias)("siteSettings.tags_sort_alphabetically")]))();#lP=(()=>void dt7948.i(this,"sortAlphabetically"))();static #l=(()=>dt7948.g(this.prototype,"canAdminTags",[(0,r.alias)("currentUser.staff")]))();#lM=(()=>void dt7948.i(this,"canAdminTags"))();static #u=(()=>dt7948.g(this.prototype,"groupedByCategory",[(0,r.notEmpty)("model.extras.categories")]))();#lF=(()=>void dt7948.i(this,"groupedByCategory"))();static #c=(()=>dt7948.g(this.prototype,"groupedByTagGroup",[(0,r.notEmpty)("model.extras.tag_groups")]))();#lN=(()=>void dt7948.i(this,"groupedByTagGroup"))();init(){super.init(...arguments);let e=this.sortAlphabetically;this.setProperties({sortedByCount:!e,sortedByName:!!e,sortProperties:e?["id"]:["totalCount:desc","id"]})}otherTagsTitleKey(e,t){return e||t?"tagging.other_tags":"tagging.all_tags"}static #d=(()=>dt7948.n(this.prototype,"otherTagsTitleKey",[(0,c.default)("groupedByCategory","groupedByTagGroup")]))();actionsMapping(){return{manageGroups:()=>this.send("showTagGroups"),uploadTags:()=>this.send("showUploader"),deleteUnusedTags:()=>this.send("deleteUnused")}}static #p=(()=>dt7948.n(this.prototype,"actionsMapping",[c.default]))();sortByCount(e){e?.preventDefault(),this.setProperties({sortProperties:["totalCount:desc","id"],sortedByCount:!0,sortedByName:!1})}static #h=(()=>dt7948.n(this.prototype,"sortByCount",[s.action]))();sortById(e){e?.preventDefault(),this.setProperties({sortProperties:["id"],sortedByCount:!1,sortedByName:!0})}static #m=(()=>dt7948.n(this.prototype,"sortById",[s.action]))();showUploader(){this.modal.show(a.default)}static #g=(()=>dt7948.n(this.prototype,"showUploader",[s.action]))();deleteUnused(){(0,l.ajax)("/tags/unused",{type:"GET"}).then(e=>{let t=e.tags;if(0===t.length){this.dialog.alert((0,d.i18n)("tagging.delete_no_unused_tags"));return}let n=t.slice(0,20).join((0,d.i18n)("tagging.tag_list_joiner")),i=Math.max(0,t.length-20),s=0===i?n:(0,d.i18n)("tagging.delete_unused_confirmation_more_tags",{count:i,tags:n}),r=(0,d.i18n)("tagging.delete_unused_confirmation",{count:t.length,tags:s});this.dialog.deleteConfirm({message:r,confirmButtonLabel:"tagging.delete_unused",didConfirm:()=>(0,l.ajax)("/tags/unused",{type:"DELETE"}).then(()=>this.send("triggerRefresh")).catch(u.popupAjaxError)})}).catch(u.popupAjaxError)}static #E=(()=>dt7948.n(this.prototype,"deleteUnused",[s.action]))()}},79465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(15385);class s extends i.default{queryParams=(()=>[...Object.keys(i.queryParams),{categoryParam:"category"}])()}},86183:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>V,registerCustomPostMessageCallback:()=>H,resetCustomPostMessageCallbacks:()=>q});var i=n(82806),s=n(70001),r=n(5938),o=n(42433),a=n(54729),l=n(97355),u=n(9630),c=n(35223),d=n(72491),p=n(18430),h=n(41919),m=n(29978),g=n(38111),f=n(96350),_=n(35545),y=n(70264),b=n(6610),w=n(64149),k=n(84568),x=n(77149),T=n(3737),S=n(69970),C=n(17482),E=n(55950),A=n(56839),D=n(20802),I=n(26038),P=n(10157),M=n(88253),F=n(2151),N=n(69883),O=n(46606),L=n(91450),R=n(45929),U=n(86211),j=n(482),B=n(62797),z=n(51969);let $={};function q(){$={}}function H(e,t){if($[e])throw Error(`Error ${e} is an already registered post message!`);$[e]=t}class V extends i.default.extend((0,I.bufferedProperty)("model")){static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#K=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"documentTitle",[a.service]))();#eT=(()=>void dt7948.i(this,"documentTitle"))();static #l=(()=>dt7948.g(this.prototype,"screenTrack",[a.service]))();#rL=(()=>void dt7948.i(this,"screenTrack"))();static #u=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #c=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #d=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #p=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #h=(()=>dt7948.g(this.prototype,"site",[a.service]))();#S=(()=>void dt7948.i(this,"site"))();static #m=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();queryParams=["filter","username_filters","replies_to_post_number"];static #g=(()=>dt7948.g(this.prototype,"canRemoveTopicFeaturedLink",[(0,r.and)("canEditTopicFeaturedLink","buffered.featured_link")]))();#lO=(()=>void dt7948.i(this,"canRemoveTopicFeaturedLink"))();static #E=(()=>dt7948.g(this.prototype,"showCategoryChooser",[(0,r.not)("model.isPrivateMessage")]))();#lL=(()=>void dt7948.i(this,"showCategoryChooser"))();static #A=(()=>dt7948.g(this.prototype,"hasError",[(0,r.or)("model.errorHtml","model.errorMessage")]))();#lR=(()=>void dt7948.i(this,"hasError"))();static #D=(()=>dt7948.g(this.prototype,"noErrorYet",[(0,r.not)("hasError")]))();#lU=(()=>void dt7948.i(this,"noErrorYet"))();static #I=(()=>dt7948.g(this.prototype,"categories",[(0,r.alias)("site.categoriesList")]))();#lj=(()=>void dt7948.i(this,"categories"))();static #G=(()=>dt7948.g(this.prototype,"selectedPostsCount",[(0,r.alias)("selectedPostIds.length")]))();#lB=(()=>void dt7948.i(this,"selectedPostsCount"))();static #Y=(()=>dt7948.g(this.prototype,"canDeselectAll",[(0,r.alias)("selectedAllPosts")]))();#lz=(()=>void dt7948.i(this,"canDeselectAll"))();static #Q=(()=>dt7948.g(this.prototype,"loadedAllPosts",[(0,r.or)("model.postStream.loadedAllPosts","model.postStream.loadingLastPost")]))();#l$=(()=>void dt7948.i(this,"loadedAllPosts"))();multiSelect=!1;selectedPostIds=[];editingTopic=!1;enteredAt=null;enteredIndex=null;retrying=!1;userTriggeredProgress=null;hasScrolled=null;username_filters=null;replies_to_post_number=null;filter=null;quoteState=(()=>new C.default)();currentPostId=null;userLastReadPostNumber=null;highestPostNumber=null;_progressIndex=null;_retryInProgress=!1;_retryRateLimited=!1;_newPostsInStream=[];init(){super.init(...arguments),this.appEvents.on("post:show-revision",this,"_showRevision"),this.appEvents.on("post:created",this,()=>{this._removeDeleteOnOwnerReplyBookmarks(),this.appEvents.trigger("post-stream:refresh",{force:!0})})}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("post:show-revision",this,"_showRevision")}updateQueryParams(){let e=this.get("model.postStream.streamFilters");Object.keys(e).length>0?this.setProperties(e):this.setProperties({username_filters:null,filter:null,replies_to_post_number:null})}_titleChanged(){let e=this.get("model.title");(0,l.isEmpty)(e)||this.send("refreshTitle")}static #J=(()=>dt7948.n(this.prototype,"_titleChanged",[(0,u.observes)("model.title","category")]))();showSharedDraftControls(e,t){return e&&t}static #X=(()=>dt7948.n(this.prototype,"showSharedDraftControls",[(0,B.default)("model.postStream.loaded","model.is_shared_draft")]))();showSelectedPostsAtBottom(e,t){return e&&t>3}static #Z=(()=>dt7948.n(this.prototype,"showSelectedPostsAtBottom",[(0,B.default)("site.mobileView","model.posts_count")]))();postsToRender(e,t){return this.capabilities.isAndroid?e:t}static #ee=(()=>dt7948.n(this.prototype,"postsToRender",[(0,B.default)("model.postStream.posts","model.postStream.postsWithPlaceholders")]))();androidLoading(e){return this.capabilities.isAndroid&&e}static #et=(()=>dt7948.n(this.prototype,"androidLoading",[(0,B.default)("model.postStream.loadingFilter")]))();pmPath(e){return this.currentUser&&this.currentUser.pmPath(e)}static #en=(()=>dt7948.n(this.prototype,"pmPath",[(0,B.default)("model")]))();_showRevision(e,t){let n=this.model.get("postStream").postForPostNumber(e);n&&n.version>1&&n.can_view_edit_history&&(0,o.schedule)("afterRender",()=>this.send("showHistory",n,t))}gotoInbox(e){let t=(0,A.userPath)(`${this.get("currentUser.username_lower")}/messages`);e&&(t=`${t}/group/${e}`),A.default.routeTo(t)}selectedQuery(){return e=>this.postSelected(e)}static #ei=(()=>dt7948.n(this.prototype,"selectedQuery",[B.default]))();canEditTopicFeaturedLink(e,t){if(this.currentUser&&0===this.currentUser.trust_level||!this.siteSettings.topic_featured_link_enabled||e)return!1;let n=this.site.get("topic_featured_link_allowed_category_ids");return void 0===n||!n.length||n.includes(t)}static #es=(()=>dt7948.n(this.prototype,"canEditTopicFeaturedLink",[(0,B.default)("model.isPrivateMessage","model.category.id")]))();featuredLinkDomain(e){return(0,E.extractLinkMeta)(e).domain}static #er=(()=>dt7948.n(this.prototype,"featuredLinkDomain",[(0,B.default)("model")]))();canEditTags(e){return this.site.get("can_tag_topics")&&(!e||this.site.get("can_tag_pms"))}static #eo=(()=>dt7948.n(this.prototype,"canEditTags",[(0,B.default)("model.isPrivateMessage")]))();canSendPms(){return this.currentUser?.can_send_private_messages}static #ea=(()=>dt7948.n(this.prototype,"canSendPms",[(0,B.default)("currentUser.can_send_private_messages")]))();minimumRequiredTags(e){return M.default.findById(e)?.minimumRequiredTags||0}static #el=(()=>dt7948.n(this.prototype,"minimumRequiredTags",[(0,B.default)("buffered.category_id")]))();showBottomTopicMap(e,t,n){let i=e?.filter(e=>3!==e.post_type).length||0,s=!!R.isTesting||t>200;return this.siteSettings.show_bottom_topic_map&&!n&&i>_.MIN_POSTS_COUNT&&s}static #eu=(()=>dt7948.n(this.prototype,"showBottomTopicMap",[(0,B.default)("model.postStream.posts","model.word_count","model.postStream.loadingFilter")]))();_removeDeleteOnOwnerReplyBookmarks(){if(!this.model)return;let e=this.get("model.postStream.posts");e&&e.filter(e=>e.bookmarked&&e.bookmark_auto_delete_preference===P.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY).forEach(e=>{e.clearBookmark(),this.model.removeBookmark(e.bookmark_id)});let t=this.model.bookmarks.findBy("bookmarkable_type","Topic");t?.auto_delete_preference===P.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY&&this.model.removeBookmark(t.id)}_forceRefreshPostStream(){this.appEvents.trigger("post-stream:refresh",{force:!0})}_updateSelectedPostIds(e){let t=this._smallActionPostIds();this.selectedPostIds.pushObjects(e.filter(e=>!t.has(e))),this.set("selectedPostIds",[...new Set(this.selectedPostIds)]),this._forceRefreshPostStream()}_smallActionPostIds(){let e=new Set,t=this.get("model.postStream.posts");if(t&&this.site){let n=this.site.get("post_types.small_action"),i=this.site.get("post_types.whisper");t.forEach(t=>{t.post_type!==n&&(t.cooked||t.post_type!==i)||e.add(t.id)})}return e}_loadPostIds(e){if(this.loadingPostIds)return;let t=this.get("model.postStream"),n=`/t/${this.get("model.id")}/post_ids.json`;return this.set("loadingPostIds",!0),(0,b.ajax)(n,{data:(0,j.deepMerge)({post_number:e.get("post_number")},t.get("streamFilters"))}).then(t=>{t.post_ids.pushObject(e.get("id")),this._updateSelectedPostIds(t.post_ids)}).finally(()=>{this.set("loadingPostIds",!1)})}editTopic(e){e?.preventDefault(),this.get("model.details.can_edit")&&this.set("editingTopic",!0)}static #ec=(()=>dt7948.n(this.prototype,"editTopic",[s.action]))();jumpTop(e){e&&(0,T.wantsNewWindow)(e)||(e?.preventDefault(),A.default.routeTo(this.get("model.firstPostUrl"),{skipIfOnScreen:!1,keepFilter:!0}))}static #ed=(()=>dt7948.n(this.prototype,"jumpTop",[s.action]))();removeFeaturedLink(e){e?.preventDefault(),this.set("buffered.featured_link",null)}static #nG=(()=>dt7948.n(this.prototype,"removeFeaturedLink",[s.action]))();selectAll(e){e?.preventDefault();let t=this._smallActionPostIds();this.set("selectedPostIds",[...this.get("model.postStream.stream").filter(e=>!t.has(e))]),this._forceRefreshPostStream()}static #nY=(()=>dt7948.n(this.prototype,"selectAll",[s.action]))();deselectAll(e){e?.preventDefault(),this.set("selectedPostIds",[]),this._forceRefreshPostStream()}static #nQ=(()=>dt7948.n(this.prototype,"deselectAll",[s.action]))();toggleMultiSelect(e){e?.preventDefault(),this.toggleProperty("multiSelect"),this._forceRefreshPostStream()}static #oZ=(()=>dt7948.n(this.prototype,"toggleMultiSelect",[s.action]))();topicCategoryChanged(e){this.set("buffered.category_id",e)}static #o1=(()=>dt7948.n(this.prototype,"topicCategoryChanged",[s.action]))();topicTagsChanged(e){this.set("buffered.tags",e)}static #o0=(()=>dt7948.n(this.prototype,"topicTagsChanged",[s.action]))();deletePending(e){return(0,b.ajax)(`/review/${e.id}`,{type:"DELETE"}).then(()=>{this.get("model.pending_posts").removeObject(e)}).catch(w.popupAjaxError)}static #o3=(()=>dt7948.n(this.prototype,"deletePending",[s.action]))();showPostFlags(e){return this.send("showFlags",e)}static #o2=(()=>dt7948.n(this.prototype,"showPostFlags",[s.action]))();openFeatureTopic(){this.send("showFeatureTopic")}static #o8=(()=>dt7948.n(this.prototype,"openFeatureTopic",[s.action]))();selectText(){let{postId:e,buffer:t,opts:n}=this.quoteState,i=this.get("model.postStream").findLoadedPost(e);return(i?c.Promise.resolve(i):this.get("model.postStream").loadPost(e)).then(e=>{let i=this.composer;if(!i.get("model.viewOpen")&&!this.get("model.details.can_create_post")){this.send("replyAsNewTopic",e);return}let s={action:F.default.REPLY,draftSequence:e.get("topic.draft_sequence"),draftKey:e.get("topic.draft_key")};1===e.get("post_number")?s.topic=e.get("topic"):s.post=e;let r=i.get("model.post");r&&r.get("id")!==this.get("post.id")&&(s.post=r);let o=(0,S.buildQuote)(e,t,n);if(s.quote=o,i.get("model.viewOpen"))this.appEvents.trigger("composer:insert-block",o);else if(i.get("model.viewDraft")){let e=i.get("model");e.set("reply",e.get("reply")+"\n"+o),i.openIfDraft()}else i.open(s)})}static #o4=(()=>dt7948.n(this.prototype,"selectText",[s.action]))();fillGapBefore(e){return this.get("model.postStream").fillGapBefore(e.post,e.gap)}static #o7=(()=>dt7948.n(this.prototype,"fillGapBefore",[s.action]))();fillGapAfter(e){return this.get("model.postStream").fillGapAfter(e.post,e.gap)}static #o9=(()=>dt7948.n(this.prototype,"fillGapAfter",[s.action]))();currentPostChanged(e){let{post:t}=e;if(!t)return;this.set("currentPostId",t.id);let n=t.get("post_number"),i=this.model;i.set("currentPost",n),n>(i.get("last_read_post_number")||0)&&(i.set("last_read_post_id",t.get("id")),i.set("last_read_post_number",n)),this.send("postChangedRoute",n),this._progressIndex=i.get("postStream").progressIndexOfPost(t),this.appEvents.trigger("topic:current-post-changed",{post:t})}static #lq=(()=>dt7948.n(this.prototype,"currentPostChanged",[s.action]))();currentPostScrolled(e){let t=this.get("model.postStream.filteredPostsCount"),n=parseFloat(this._progressIndex+e.percent-1)/t;this.appEvents.trigger("topic:current-post-scrolled",{postIndex:this._progressIndex,percent:Math.max(Math.min(n,1),0)})}static #lH=(()=>dt7948.n(this.prototype,"currentPostScrolled",[s.action]))();topVisibleChanged(e){let{post:t,refresh:n}=e;if(!t)return;let i=this.get("model.postStream"),s=i.get("posts.firstObject");(!t.get||1!==t.get("post_number"))&&s&&s===t&&i.prependMore().then(()=>n())}static #lV=(()=>dt7948.n(this.prototype,"topVisibleChanged",[s.action]))();bottomVisibleChanged(e){let{post:t,refresh:n}=e,i=this.get("model.postStream"),s=i.get("posts.lastObject");s&&s===t&&i.get("canAppendMore")&&(i.appendMore().then(()=>n()),n())}static #lW=(()=>dt7948.n(this.prototype,"bottomVisibleChanged",[s.action]))();showTopReplies(){return this.get("model.postStream").showTopReplies().then(()=>{this.updateQueryParams()})}static #lK=(()=>dt7948.n(this.prototype,"showTopReplies",[s.action]))();cancelFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.get("model.postStream");if(!e){let n=t.findLoadedPost(this.currentPostId);n?e=n.post_number:t.findPostsByIds([this.currentPostId]).then(t=>{e=t[0].post_number})}t.cancelFilter(),t.refresh({nearPost:e,forceLoad:!0}).then(()=>{A.default.routeTo(this.model.urlForPostNumber(e)),this.updateQueryParams()})}static #lG=(()=>dt7948.n(this.prototype,"cancelFilter",[s.action]))();removeAllowedUser(e){return this.get("model.details").removeAllowedUser(e).then(()=>{this.currentUser.id===e.id&&this.router.transitionTo("userPrivateMessages",e)})}static #lY=(()=>dt7948.n(this.prototype,"removeAllowedUser",[s.action]))();removeAllowedGroup(e){return this.get("model.details").removeAllowedGroup(e)}static #lQ=(()=>dt7948.n(this.prototype,"removeAllowedGroup",[s.action]))();toggleArchiveMessage(){let e=this.model;if(!e||e.get("archiving")||!e.isPrivateMessage)return;let t=()=>{(0,x.resetCachedTopicList)(this.session),this.gotoInbox(e.get("inboxGroupName"))};e.get("message_archived")?e.moveToInbox().then(t):e.archiveMessage().then(t)}static #lJ=(()=>dt7948.n(this.prototype,"toggleArchiveMessage",[s.action]))();deferTopic(){let{screenTrack:e,currentUser:t}=this,n=this.model;e.reset(),e.stop();let i=n.get("isPrivateMessage")?t.pmPath(n):"/";(0,b.ajax)("/t/"+n.get("id")+"/timings.json?last=1",{type:"DELETE"}).then(()=>{this.session.get("highestSeenByTopic")[n.get("id")]=null,A.default.routeTo(i)}).catch(w.popupAjaxError)}static #lX=(()=>dt7948.n(this.prototype,"deferTopic",[s.action]))();editFirstPost(){this.model.firstPost().then(e=>this.send("editPost",e))}static #lZ=(()=>dt7948.n(this.prototype,"editFirstPost",[s.action]))();replyToPost(e){let t=this.composer,n=e?e.get("topic"):this.model,i=this.quoteState,s=this.get("model.postStream");if(this.appEvents.trigger("page:compose-reply",n),!s||!n||!n.get("details.can_create_post"))return;let r=s.findLoadedPost(i.postId),o=(0,S.buildQuote)(r,i.buffer,i.opts);if(i.clear(),t.get("model.topic.id")===n.get("id")&&t.get("model.action")===F.default.REPLY&&e?.get("post_number")!==1)t.set("model.post",e),t.set("model.composeState",F.default.OPEN),this.appEvents.trigger("composer:insert-block",o.trim());else{let i={action:F.default.REPLY,draftKey:n.get("draft_key"),draftSequence:n.get("draft_sequence")};o&&(i.quote=o),e&&1!==e.get("post_number")?i.post=e:i.topic=n,t.open(i)}return!1}static #l1=(()=>dt7948.n(this.prototype,"replyToPost",[s.action]))();recoverPost(e){1===e.get("post_number")?this.recoverTopic():e.recover()}static #l0=(()=>dt7948.n(this.prototype,"recoverPost",[s.action]))();deletePost(e,t){if(1===e.get("post_number"))return this.deleteTopic(t);if(!t?.force_destroy&&!e.can_delete||t?.force_destroy&&!e.can_permanently_delete)return!1;let n=this.currentUser,i=()=>this.appEvents.trigger("post-stream:refresh"),s=e.get("reply_count")>0,r=this.get("model.postStream.posts");if(!n.get("staff")||!s)return e.destroy(n,t).then(i).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()});(0,b.ajax)(`/posts/${e.id}/reply-ids.json`).then(s=>{if(0===s.length)return e.destroy(n,t).then(i).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()});let o=[],a=s.filter(e=>1===e.level).map(e=>e.id);o.push({label:(0,z.i18n)("post.controls.delete_replies.direct_replies",{count:a.length}),class:"btn-primary",action:()=>{r.forEach(t=>(t===e||a.includes(t.id))&&t.setDeletedState(n)),N.default.deleteMany([e.id,...a]).then(i).catch(w.popupAjaxError)}}),s.some(e=>e.level>1)&&o.push({label:(0,z.i18n)("post.controls.delete_replies.all_replies",{count:s.length}),action:()=>{r.forEach(t=>(t===e||s.some(e=>e.id===t.id))&&t.setDeletedState(n)),N.default.deleteMany([e.id,...s.map(e=>e.id)]).then(i).catch(w.popupAjaxError)}}),o.push({label:(0,z.i18n)("post.controls.delete_replies.just_the_post"),action:()=>{e.destroy(n,t).then(i).catch(t=>{(0,w.popupAjaxError)(t),e.undoDeleteState()})}}),o.push({label:(0,z.i18n)("cancel"),class:"btn-flat"}),this.dialog.alert({title:(0,z.i18n)("post.controls.delete_replies.confirm"),buttons:o})})}static #l3=(()=>dt7948.n(this.prototype,"deletePost",[s.action]))();deletePostWithConfirmation(e,t){this.dialog.yesNoConfirm({message:(0,z.i18n)("post.confirm_delete"),didConfirm:()=>this.send("deletePost",e,t)})}static #l2=(()=>dt7948.n(this.prototype,"deletePostWithConfirmation",[s.action]))();permanentlyDeletePost(e){return this.dialog.yesNoConfirm({message:(0,z.i18n)("post.controls.permanently_delete_confirmation"),didConfirm:()=>{this.send("deletePost",e,{force_destroy:!0})}})}static #l8=(()=>dt7948.n(this.prototype,"permanentlyDeletePost",[s.action]))();editPost(e){if(!this.currentUser)return this.dialog.alert((0,z.i18n)("post.controls.edit_anonymous"));if(!e.can_edit)return!1;let t=this.model,n=!1,i=this.get("site.shared_drafts_category_id");i&&i===t.get("category.id")&&(n=e.get("firstPost"));let s={post:e,action:n?F.default.EDIT_SHARED_DRAFT:F.default.EDIT,draftKey:e.get("topic.draft_key"),draftSequence:e.get("topic.draft_sequence")};n&&(s.destinationCategoryId=t.get("destination_category_id"));let{composer:r}=this,o=r.get("model");return s.post.id===o?.post?.id&&s.action===o?.action&&s.draftKey===o?.draftKey?r.unshrink():r.open(s)}static #l4=(()=>dt7948.n(this.prototype,"editPost",[s.action]))();toggleBookmark(e){if(!this.currentUser)return this.dialog.alert((0,z.i18n)("bookmarks.not_bookmarked"));if(!e)return this._toggleTopicLevelBookmark().then(e=>{e&&e.forEach(e=>this.appEvents.trigger("post-stream:refresh",{id:e}))});{let t=this.model.bookmarks.find(t=>t.bookmarkable_id===e.id&&"Post"===t.bookmarkable_type);return this._modifyPostBookmark(t||P.default.createFor(this.currentUser,"Post",e.id),e)}}static #l7=(()=>dt7948.n(this.prototype,"toggleBookmark",[s.action]))();jumpToIndex(e){this._jumpToIndex(e)}static #l9=(()=>dt7948.n(this.prototype,"jumpToIndex",[s.action]))();jumpToDate(e){this._jumpToDate(e)}static #l5=(()=>dt7948.n(this.prototype,"jumpToDate",[s.action]))();jumpToPostPrompt(){this.modal.show(f.default,{model:{topic:this.model,jumpToIndex:e=>this.send("jumpToIndex",e),jumpToDate:e=>this.send("jumpToDate",e)}})}static #l6=(()=>dt7948.n(this.prototype,"jumpToPostPrompt",[s.action]))();jumpToPost(e){this._jumpToPostNumber(e)}static #ue=(()=>dt7948.n(this.prototype,"jumpToPost",[s.action]))();jumpBottom(){let e=this.model.highest_post_number;document.getElementById(`post_${e}`)||A.default.routeTo(this.get("model.lastPostUrl"),{skipIfOnScreen:!1,jumpEnd:!1,keepFilter:!0})}static #ut=(()=>dt7948.n(this.prototype,"jumpBottom",[s.action]))();jumpEnd(){this.appEvents.trigger("topic:jump-to-post",this.get("model.highest_post_number")),A.default.routeTo(this.get("model.lastPostUrl"),{jumpEnd:!0,keepFilter:!0})}static #un=(()=>dt7948.n(this.prototype,"jumpEnd",[s.action]))();jumpUnread(){this._jumpToPostId(this.get("model.last_read_post_id"))}static #ui=(()=>dt7948.n(this.prototype,"jumpUnread",[s.action]))();jumpToPostId(e){this._jumpToPostId(e)}static #us=(()=>dt7948.n(this.prototype,"jumpToPostId",[s.action]))();togglePostSelection(e){let t=this.selectedPostIds;t.includes(e.id)?t.removeObject(e.id):t.addObject(e.id)}static #ur=(()=>dt7948.n(this.prototype,"togglePostSelection",[s.action]))();selectReplies(e){(0,b.ajax)(`/posts/${e.id}/reply-ids.json`).then(t=>{let n=t.map(e=>e.id),i=[...this.selectedPostIds,e.id,...n];this.set("selectedPostIds",[...new Set(i)]),this._forceRefreshPostStream()})}static #uo=(()=>dt7948.n(this.prototype,"selectReplies",[s.action]))();selectBelow(e){if(this.get("model.postStream.isMegaTopic"))this._loadPostIds(e);else{let t=[...this.get("model.postStream.stream")],n=t.slice(t.indexOf(e.id));this._updateSelectedPostIds(n)}}static #ua=(()=>dt7948.n(this.prototype,"selectBelow",[s.action]))();deleteSelected(){let e=this.currentUser;this.dialog.yesNoConfirm({message:(0,z.i18n)("post.delete.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{if(this.selectedAllPosts)return this.deleteTopic();N.default.deleteMany(this.selectedPostIds),this.get("model.postStream.posts").forEach(t=>this.postSelected(t)&&t.setDeletedState(e)),this.send("toggleMultiSelect")}})}static #ul=(()=>dt7948.n(this.prototype,"deleteSelected",[s.action]))();mergePosts(){this.dialog.yesNoConfirm({message:(0,z.i18n)("post.merge.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{N.default.mergePosts(this.selectedPostIds),this.send("toggleMultiSelect")}})}static #uu=(()=>dt7948.n(this.prototype,"mergePosts",[s.action]))();changePostOwner(e){this.set("selectedPostIds",[e.id]),this.send("changeOwner")}static #uc=(()=>dt7948.n(this.prototype,"changePostOwner",[s.action]))();lockPost(e){return e.updatePostField("locked",!0)}static #ud=(()=>dt7948.n(this.prototype,"lockPost",[s.action]))();unlockPost(e){return e.updatePostField("locked",!1)}static #up=(()=>dt7948.n(this.prototype,"unlockPost",[s.action]))();grantBadge(e){this.set("selectedPostIds",[e.id]),this.send("showGrantBadgeModal")}static #uh=(()=>dt7948.n(this.prototype,"grantBadge",[s.action]))();async changeNotice(e){await this.modal.show(h.default,{model:{post:e}})}static #um=(()=>dt7948.n(this.prototype,"changeNotice",[s.action]))();filterParticipant(e){this.get("model.postStream").filterParticipant(e.username).then(()=>this.updateQueryParams)}static #ug=(()=>dt7948.n(this.prototype,"filterParticipant",[s.action]))();cancelEditingTopic(){this.set("editingTopic",!1),this.rollbackBuffer()}static #uf=(()=>dt7948.n(this.prototype,"cancelEditingTopic",[s.action]))();finishedEditingTopic(){if(!this.editingTopic)return;let e=this.get("buffered.buffer");O.default.update(this.model,e,{fastEdit:!0}).then(()=>{this.rollbackBuffer(),this.set("editingTopic",!1)}).catch(w.popupAjaxError)}static #u_=(()=>dt7948.n(this.prototype,"finishedEditingTopic",[s.action]))();expandHidden(e){return e.expandHidden()}static #uy=(()=>dt7948.n(this.prototype,"expandHidden",[s.action]))();toggleVisibility(){this.model.toggleStatus("visible")}static #ub=(()=>dt7948.n(this.prototype,"toggleVisibility",[s.action]))();toggleClosed(){let e=this.model;this.model.toggleStatus("closed").then(t=>{e.set("topic_status_update",t.topic_status_update)})}static #uv=(()=>dt7948.n(this.prototype,"toggleClosed",[s.action]))();makeBanner(){this.model.makeBanner()}static #uw=(()=>dt7948.n(this.prototype,"makeBanner",[s.action]))();removeBanner(){this.model.removeBanner()}static #uk=(()=>dt7948.n(this.prototype,"removeBanner",[s.action]))();togglePinned(){let e=!this.get("model.pinned_at"),t=this.model,n=this.get("model.pinnedInCategoryUntil");return t.setProperties({pinned_at:e?moment():null,pinned_globally:!1,pinned_until:e?n:null}),t.saveStatus("pinned",e,n)}static #ux=(()=>dt7948.n(this.prototype,"togglePinned",[s.action]))();pinGlobally(){let e=this.model,t=this.get("model.pinnedGloballyUntil");return e.setProperties({pinned_at:moment(),pinned_globally:!0,pinned_until:t}),e.saveStatus("pinned_globally",!0,t)}static #uT=(()=>dt7948.n(this.prototype,"pinGlobally",[s.action]))();toggleArchived(){this.model.toggleStatus("archived")}static #uS=(()=>dt7948.n(this.prototype,"toggleArchived",[s.action]))();clearPin(){this.model.clearPin()}static #uC=(()=>dt7948.n(this.prototype,"clearPin",[s.action]))();togglePinnedForUser(){if(this.get("model.pinned_at")){let e=this.model;e.get("pinned")?e.clearPin():e.rePin()}}static #uE=(()=>dt7948.n(this.prototype,"togglePinnedForUser",[s.action]))();replyAsNewTopic(e){let t;let n=this.composer,{quoteState:i}=this,s=(0,S.buildQuote)(e,i.buffer,i.opts);if(i.clear(),this.get("model.isPrivateMessage")){let n=this.get("model.details.allowed_users"),i=this.get("model.details.allowed_groups"),s=[];n.forEach(e=>s.push(e.username)),i.forEach(e=>s.push(e.name)),s=s.join(),t={action:F.default.PRIVATE_MESSAGE,archetypeId:"private_message",draftKey:e.topic.draft_key,recipients:s}}else t={action:F.default.CREATE_TOPIC,draftKey:e.topic.draft_key,topicCategoryId:this.get("model.category.id"),prioritizedCategoryId:this.get("model.category.id")};n.open(t).then(()=>{let t=(0,D.escapeExpression)(this.model.title),i=`${location.protocol}//${location.host}${e.url}`,r=`[${t}](${i})`,o=`${(0,z.i18n)("post.continue_discussion",{postLink:r})} ${s}`;n.model.prependText(o,{new_line:!0})})}static #uA=(()=>dt7948.n(this.prototype,"replyAsNewTopic",[s.action]))();retryLoading(){this.set("retrying",!0);let e=()=>this.set("retrying",!1);this.get("model.postStream").refresh().then(e,e)}static #uD=(()=>dt7948.n(this.prototype,"retryLoading",[s.action]))();toggleWiki(e){return e.updatePostField("wiki",!e.get("wiki"))}static #uI=(()=>dt7948.n(this.prototype,"toggleWiki",[s.action]))();togglePostType(e){let t=this.site.get("post_types.regular"),n=this.site.get("post_types.moderator_action");return e.updatePostField("post_type",e.get("post_type")===n?t:n)}static #uP=(()=>dt7948.n(this.prototype,"togglePostType",[s.action]))();rebakePost(e){return e.rebake()}static #uM=(()=>dt7948.n(this.prototype,"rebakePost",[s.action]))();unhidePost(e){return e.unhide()}static #uF=(()=>dt7948.n(this.prototype,"unhidePost",[s.action]))();convertToPublicTopic(){this.modal.show(m.default,{model:{topic:this.model}})}static #uN=(()=>dt7948.n(this.prototype,"convertToPublicTopic",[s.action]))();convertToPrivateMessage(){this.model.convertTopic("private").then(()=>window.location.reload()).catch(w.popupAjaxError)}static #uO=(()=>dt7948.n(this.prototype,"convertToPrivateMessage",[s.action]))();resetBumpDate(){this.model.resetBumpDate()}static #uL=(()=>dt7948.n(this.prototype,"resetBumpDate",[s.action]))();removeTopicTimer(e,t){L.default.update(this.get("model.id"),null,null,e,null).then(()=>this.set(`model.${t}`,s.default.create({}))).catch(e=>(0,w.popupAjaxError)(e))}static #uR=(()=>dt7948.n(this.prototype,"removeTopicTimer",[s.action]))();_jumpToIndex(e){let t=this.get("model.postStream");if(t.get("isMegaTopic"))this._jumpToPostNumber(e);else{let n=t.get("stream"),i=Math.max(1,Math.min(n.length,e));this._jumpToPostId(n[i-1])}}_jumpToDate(e){let t=this.get("model.postStream");t.loadNearestPostToDate(e).then(e=>{A.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))}).catch(()=>{this._jumpToIndex(t.get("topic.highest_post_number"))})}_jumpToPostNumber(e){let t=this.get("model.postStream"),n=t.get("posts").findBy("post_number",e);n?A.default.routeTo(this.model.urlForPostNumber(n.get("post_number"))):t.loadPostByPostNumber(e).then(e=>{A.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))})}_jumpToPostId(e){if(!e){console.warn("jump-post code broken - requested an index outside the stream array");return}this.appEvents.trigger("topic:jump-to-post",e);let t=this.model,n=t.get("postStream"),i=n.findLoadedPost(e);i?A.default.routeTo(t.urlForPostNumber(i.get("post_number")),{keepFilter:!0}):n.findPostsByIds([e]).then(e=>{A.default.routeTo(t.urlForPostNumber(e[0].get("post_number")),{keepFilter:!0})})}_modifyTopicBookmark(e){this.modal.show(p.default,{model:{bookmark:new k.BookmarkFormData(e),afterSave:t=>{this._syncBookmarks(t.saveData),this.model.set("bookmarking",!1),this.model.set("bookmarked",!0),this.model.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",t.saveData,e.attachedTo())},afterDelete:(e,t)=>{this.model.removeBookmark(t)}}})}_modifyPostBookmark(e,t){this.modal.show(p.default,{model:{bookmark:new k.BookmarkFormData(e),afterSave:e=>(this._syncBookmarks(e),this.model.set("bookmarking",!1),t.createBookmark(e),this.model.afterPostBookmarked(t,e),[t.id]),afterDelete:(e,n)=>{this.model.removeBookmark(n),t.deleteBookmark(e)}}}).then(n=>{n&&(n.closeWithoutSaving||n.initiatedBy===d.CLOSE_INITIATED_BY_ESC||n.initiatedBy===d.CLOSE_INITIATED_BY_BUTTON)&&t.appEvents.trigger("post-stream:refresh",{id:e.bookmarkable_id})})}_syncBookmarks(e){this.model.bookmarks||this.model.set("bookmarks",[]);let t=this.model.bookmarks.findBy("id",e.id);t?(t.reminder_at=e.reminder_at,t.name=e.name,t.auto_delete_preference=e.auto_delete_preference):this.model.bookmarks.pushObject(P.default.create(e))}async _toggleTopicLevelBookmark(){if(this.model.bookmarking)return c.Promise.resolve();if(this.model.bookmarkCount>1)return this._maybeClearAllBookmarks();if(1===this.model.bookmarkCount){let e=this.model.bookmarks.findBy("bookmarkable_type","Topic");if(e)return this._modifyTopicBookmark(e);{let e=this.model.bookmarks[0],t=await this.model.postById(e.bookmarkable_id);return this._modifyPostBookmark(e,t)}}if(0===this.model.bookmarkCount)return this._modifyTopicBookmark(P.default.createFor(this.currentUser,"Topic",this.model.id))}_maybeClearAllBookmarks(){return new c.Promise(e=>{this.dialog.yesNoConfirm({message:(0,z.i18n)("bookmarks.confirm_clear"),didConfirm:()=>this.model.deleteBookmarks().then(()=>e(this.model.clearBookmarks())).catch(w.popupAjaxError).finally(()=>{this.model.set("bookmarking",!1)}),didCancel:()=>{this.model.set("bookmarking",!1),e()}})})}togglePinnedState(){this.send("togglePinnedForUser")}print(){this.siteSettings.max_prints_per_hour_per_user>0&&window.open(this.get("model.printUrl"),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=600,height=315")}selectedPosts(e,t){return e.map(e=>t.find(t=>t.id===e)).filter(e=>void 0!==e)}static #uU=(()=>dt7948.n(this.prototype,"selectedPosts",[(0,B.default)("selectedPostIds","model.postStream.posts","selectedPostIds.[]","model.postStream.posts.[]")]))();selectedPostsUsername(e,t){if(t.length<1||e>t.length)return;let n=t[0].username;return t.every(e=>e.username===n)?n:void 0}static #uj=(()=>dt7948.n(this.prototype,"selectedPostsUsername",[(0,B.default)("selectedPostsCount","selectedPosts","selectedPosts.[]")]))();selectedAllPosts(e,t,n,i){return t?e>=i:e>=n}static #uB=(()=>dt7948.n(this.prototype,"selectedAllPosts",[(0,B.default)("selectedPostsCount","model.postStream.isMegaTopic","model.postStream.stream.length","model.posts_count")]))();canSelectAll(e,t){return!t&&!e}static #uz=(()=>dt7948.n(this.prototype,"canSelectAll",[(0,B.default)("selectedAllPosts","model.postStream.isMegaTopic")]))();canDeleteSelected(e,t,n,i){return t>0&&(n&&e||i.every(e=>e.can_delete))}static #u$=(()=>dt7948.n(this.prototype,"canDeleteSelected",[(0,B.default)("currentUser.staff","selectedPostsCount","selectedAllPosts","selectedPosts","selectedPosts.[]")]))();canMergeTopic(e,t){return e&&t>0}static #uq=(()=>dt7948.n(this.prototype,"canMergeTopic",[(0,B.default)("model.details.can_move_posts","selectedPostsCount")]))();canChangeOwner(e,t,n,i,s){return(e||n&&t)&&i>0&&void 0!==s}static #uH=(()=>dt7948.n(this.prototype,"canChangeOwner",[(0,B.default)("currentUser.admin","currentUser.staff","siteSettings.moderators_change_post_ownership","selectedPostsCount","selectedPostsUsername")]))();canMergePosts(e,t,n){return e>1&&void 0!==t&&n.every(e=>e.can_delete)}static #uV=(()=>dt7948.n(this.prototype,"canMergePosts",[(0,B.default)("selectedPostsCount","selectedPostsUsername","selectedPosts","selectedPosts.[]")]))();_multiSelectChanged(){this.set("selectedPostIds",[])}static #uW=(()=>dt7948.n(this.prototype,"_multiSelectChanged",[(0,u.observes)("multiSelect")]))();postSelected(e){return this.selectedAllPost||this.selectedPostIds.includes(e.id)}loadingHTML(){return y.spinnerHTML}static #uK=(()=>dt7948.n(this.prototype,"loadingHTML",[B.default]))();recoverTopic(){this.model.recover()}static #uG=(()=>dt7948.n(this.prototype,"recoverTopic",[s.action]))();buildQuoteMarkdown(){let{postId:e,buffer:t,opts:n}=this.quoteState,i=this.get("model.postStream").findLoadedPost(e);return(i?c.Promise.resolve(i):this.get("model.postStream").loadPost(e)).then(e=>(0,S.buildQuote)(e,t,n))}static #uY=(()=>dt7948.n(this.prototype,"buildQuoteMarkdown",[s.action]))();deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.force_destroy)return this.model.destroy(this.currentUser,e);this.model.views>this.siteSettings.min_topic_views_for_delete_confirm?this.deleteTopicModal():this.model.destroy(this.currentUser,e)}static #uQ=(()=>dt7948.n(this.prototype,"deleteTopic",[s.action]))();deleteTopicModal(){this.modal.show(g.default,{model:{topic:this.model}})}retryOnRateLimit(e,t,n){let i=this.get("model.id");if((n=n||i)===i&&!this._retryRateLimited&&!(e<=0)){if(this._retryInProgress){(0,U.default)(()=>{this.retryOnRateLimit(e,t,n)},100);return}this._retryInProgress=!0,t().catch(i=>{let s=i.jqXHR;if(s&&429===s.status&&s.responseJSON&&s.responseJSON.extras&&s.responseJSON.extras.wait_seconds){let i=s.responseJSON.extras.wait_seconds;i<5&&(i=5),this._retryRateLimited=!0,(0,U.default)(()=>{this._retryRateLimited=!1,this.retryOnRateLimit(e-1,t,n)},1e3*i)}}).finally(()=>{this._retryInProgress=!1})}}subscribe(){this.unsubscribe(),this.messageBus.subscribe(`/topic/${this.get("model.id")}`,this.onMessage,this.get("model.message_bus_last_id"))}unsubscribe(){this.get("model.id")&&this.messageBus.unsubscribe("/topic/*",this.onMessage)}onMessage(e){let t=this.model,n=e=>this.appEvents.trigger("post-stream:refresh",e);if((0,l.isPresent)(e.notification_level_change)){t.set("details.notification_level",e.notification_level_change),t.set("details.notifications_reason_id",e.notifications_reason_id);return}let i=this.get("model.postStream");if(e.reload_topic){t.reload().then(()=>{this.send("postChangedRoute",t.get("post_number")||1),this.appEvents.trigger("header:update-topic",t),e.refresh_stream&&i.refresh()});return}switch(e.type){case"acted":i.triggerChangedPost(e.id,e.updated_at,{preserveCooked:!0}).then(()=>n({id:e.id,refreshLikes:!0}));break;case"read":i.triggerReadPost(e.id,e.readers_count).then(()=>n({id:e.id,refreshLikes:!0}));break;case"liked":case"unliked":i.triggerLikedPost(e.id,e.likes_count,e.user_id,e.type).then(()=>n({id:e.id,refreshLikes:!0}));break;case"revised":case"rebaked":i.triggerChangedPost(e.id,e.updated_at).then(()=>n({id:e.id}));break;case"deleted":i.triggerDeletedPost(e.id).then(()=>n({id:e.id}));break;case"destroyed":i.triggerDestroyedPost(e.id).then(()=>n({id:e.id}));break;case"recovered":i.triggerRecoveredPost(e.id).then(()=>n({id:e.id}));break;case"created":this._newPostsInStream.push(e.id),this.retryOnRateLimit(4,()=>{let e=this._newPostsInStream;return this._newPostsInStream=[],i.triggerNewPostsInStream(e,{background:!0}).then(()=>n()).catch(t=>{throw this._newPostsInStream=e.concat(this._newPostsInStream),t})}),this.get("currentUser.id")!==e.user_id&&this.documentTitle.incrementBackgroundContextCount();break;case"move_to_inbox":t.set("message_archived",!1);break;case"archived":t.set("message_archived",!0);break;case"stats":{let s=!1;["last_posted_at","like_count","posts_count"].forEach(n=>{let i=e[n];void 0!==i&&(t.set(n,i),s=!0)}),e.last_poster&&(t.details.set("last_poster",e.last_poster),s=!0),s&&i.triggerChangedTopicStats().then(e=>n({id:e}));break}default:{let t=$[e.type];t?t(this,e):console.warn("unknown topic bus message type",e)}}}static #uJ=(()=>dt7948.n(this.prototype,"onMessage",[B.bind]))();reply(){this.replyToPost()}readPosts(e,t){let n=this.model,i=n.get("postStream");if(n.get("id")===e&&(i.get("posts").forEach(e=>{!e.read&&t.includes(e.post_number)&&(e.set("read",!0),this.appEvents.trigger("post-stream:refresh",{id:e.get("id")}))}),this.siteSettings.automatically_unpin_topics&&this.currentUser&&this.currentUser.user_option.automatically_unpin_topics)){let e=Math.max(...t);n.get("pinned")&&e>=n.get("highest_post_number")&&(0,o.next)(()=>n.clearPin())}}}},99327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(35804),l=n(35223),u=n(6610),c=n(76546),d=n(10157),p=n(20762),h=n(62797),m=n(51969);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"application",[i.inject]))();#aD=(()=>void dt7948.i(this,"application"))();static #i=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();queryParams=["q"];q=null;loading=!1;loadingMore=!1;permissionDenied=!1;bulkSelectHelper=(()=>new c.default(this))();static #l=(()=>dt7948.g(this.prototype,"inSearchMode",[(0,r.notEmpty)("q")]))();#uX=(()=>void dt7948.i(this,"inSearchMode"))();static #u=(()=>dt7948.g(this.prototype,"noContent",[(0,r.equal)("model.bookmarks.length",0)]))();#uZ=(()=>void dt7948.i(this,"noContent"))();get searchTerm(){return this._searchTerm||this.q}static #c=(()=>dt7948.n(this.prototype,"searchTerm",[(0,s.computed)("q")]))();set searchTerm(e){this._searchTerm=e}emptyStateBody(){return(0,a.htmlSafe)((0,m.i18n)("user.no_bookmarks_body",{icon:(0,p.iconHTML)("bookmark")}))}static #d=(()=>dt7948.n(this.prototype,"emptyStateBody",[(0,h.default)()]))();userDoesNotHaveBookmarks(e,t){return!e&&t}static #p=(()=>dt7948.n(this.prototype,"userDoesNotHaveBookmarks",[(0,h.default)("inSearchMode","noContent")]))();nothingFound(e,t){return e&&t}static #h=(()=>dt7948.n(this.prototype,"nothingFound",[(0,h.default)("inSearchMode","noContent")]))();search(){this.router.transitionTo({queryParams:{q:this._searchTerm}})}static #m=(()=>dt7948.n(this.prototype,"search",[s.action]))();reload(){this.send("triggerRefresh")}static #g=(()=>dt7948.n(this.prototype,"reload",[s.action]))();loadMore(){return this.loadingMore?l.Promise.resolve():(this.set("loadingMore",!0),this._loadMoreBookmarks(this.q).then(e=>this._processLoadResponse(this.q,e)).catch(()=>this._bookmarksListDenied()).finally(()=>this.set("loadingMore",!1)))}static #E=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))();updateAutoAddBookmarksToBulkSelect(e){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=e}static #A=(()=>dt7948.n(this.prototype,"updateAutoAddBookmarksToBulkSelect",[s.action]))();_loadMoreBookmarks(e){if(!this.model.loadMoreUrl)return l.Promise.resolve();let t=this.model.loadMoreUrl;if(e){let n=t.includes("?")?"&":"?",i=encodeURIComponent(e);t+=`${n}q=${i}`}return(0,u.ajax)({url:t})}_bookmarksListDenied(){this.set("permissionDenied",!0)}async _processLoadResponse(e,t){if(!t||!t.user_bookmark_list){this.model.loadMoreUrl=null;return}if(t=t.user_bookmark_list,this.model.searchTerm=e,this.model.loadMoreUrl=t.more_bookmarks_url,t.bookmarks){let e=t.bookmarks.map(this.transform);await d.default.applyTransformations(e),this.model.bookmarks.pushObjects(e),this.session.set("bookmarksModel",this.model)}}transform(e){let t=d.default.create(e);return t.topicStatus=s.default.create({closed:e.closed,archived:e.archived,is_warning:e.is_warning,pinned:!1,unpinned:!1,invisible:e.invisible}),t}}},68455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(54729),r=n(62797),o=n(51969);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();userActionType=null;draftLabel(e){return e>0?(0,o.i18n)("drafts.label_with_count",{count:e}):(0,o.i18n)("drafts.label")}static #i=(()=>dt7948.n(this.prototype,"draftLabel",[(0,r.default)("currentUser.draft_count")]))();pendingLabel(e){return e>0?(0,o.i18n)("pending_posts.label_with_count",{count:e}):(0,o.i18n)("pending_posts.label")}static #l=(()=>dt7948.n(this.prototype,"pendingLabel",[(0,r.default)("model.pending_posts_count")]))()}},49198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(70001),r=n(5938),o=n(62797);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();static #n=(()=>dt7948.g(this.prototype,"username",[(0,r.alias)("user.model.username_lower")]))();#u1=(()=>void dt7948.i(this,"username"))();static #i=(()=>dt7948.g(this.prototype,"sortedBadges",[(0,r.sort)("model","badgeSortOrder")]))();#u0=(()=>void dt7948.i(this,"sortedBadges"))();static #l=(()=>dt7948.g(this.prototype,"favoriteBadges",[(0,r.filterBy)("model","is_favorite",!0)]))();#u3=(()=>void dt7948.i(this,"favoriteBadges"))();badgeSortOrder=["badge.badge_type.sort_order:desc","badge.name"];canFavoriteMoreBadges(e){return edt7948.n(this.prototype,"canFavoriteMoreBadges",[(0,o.default)("favoriteBadges.length")]))();favorite(e){return e.favorite()}static #c=(()=>dt7948.n(this.prototype,"favorite",[s.action]))()}},40677:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(9630),l=n(27659),u=n(71370),c=n(64149),d=n(59928),p=n(45929),h=n(62797),m=n(51969);class g extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();user=null;model=null;filter=null;invitesCount=null;canLoadMore=!0;invitesLoading=!1;reinvitedAll=!1;removedAll=!1;searchTerm="";static #i=(()=>dt7948.g(this.prototype,"inviteRedeemed",[(0,r.equal)("filter","redeemed")]))();#u2=(()=>void dt7948.i(this,"inviteRedeemed"))();static #l=(()=>dt7948.g(this.prototype,"inviteExpired",[(0,r.equal)("filter","expired")]))();#u8=(()=>void dt7948.i(this,"inviteExpired"))();static #u=(()=>dt7948.g(this.prototype,"invitePending",[(0,r.equal)("filter","pending")]))();#u4=(()=>void dt7948.i(this,"invitePending"))();static #c=(()=>dt7948.g(this.prototype,"canInviteToForum",[(0,r.reads)("currentUser.can_invite_to_forum")]))();#u7=(()=>void dt7948.i(this,"canInviteToForum"))();static #d=(()=>dt7948.g(this.prototype,"canBulkInvite",[(0,r.reads)("currentUser.admin")]))();#u9=(()=>void dt7948.i(this,"canBulkInvite"))();searchTermChanged(){this._searchTermChanged()}static #p=(()=>dt7948.n(this.prototype,"searchTermChanged",[(0,a.observes)("searchTerm")]))();_searchTermChanged(){d.default.findInvitedBy(this.user,this.filter,this.searchTerm).then(e=>this.set("model",e))}static #h=(()=>dt7948.n(this.prototype,"_searchTermChanged",[(0,h.debounce)(p.INPUT_DELAY)]))();hasEmailInvites(e){return e.invites.some(e=>e.email)}static #m=(()=>dt7948.n(this.prototype,"hasEmailInvites",[(0,h.default)("model")]))();showBulkActionButtons(e){return"pending"===e&&this.model.invites.length>0&&this.currentUser.staff}static #g=(()=>dt7948.n(this.prototype,"showBulkActionButtons",[(0,h.default)("filter")]))();showSearch(e,t){return e[t]>5}static #E=(()=>dt7948.n(this.prototype,"showSearch",[(0,h.default)("invitesCount","filter")]))();createInvite(){this.modal.show(l.default,{model:{invites:this.model.invites}})}static #A=(()=>dt7948.n(this.prototype,"createInvite",[s.action]))();createInviteCsv(){this.modal.show(u.default)}static #D=(()=>dt7948.n(this.prototype,"createInviteCsv",[s.action]))();editInvite(e){this.modal.show(l.default,{model:{editing:!0,invite:e}})}static #I=(()=>dt7948.n(this.prototype,"editInvite",[s.action]))();destroyInvite(e){e.destroy(),this.model.invites.removeObject(e)}static #G=(()=>dt7948.n(this.prototype,"destroyInvite",[s.action]))();destroyAllExpired(){this.dialog.deleteConfirm({message:(0,m.i18n)("user.invited.remove_all_confirm"),didConfirm:()=>d.default.destroyAllExpired().then(()=>{this.set("removedAll",!0),this.send("triggerRefresh")}).catch(c.popupAjaxError)})}static #Y=(()=>dt7948.n(this.prototype,"destroyAllExpired",[s.action]))();reinvite(e){return e.reinvite(),!1}static #Q=(()=>dt7948.n(this.prototype,"reinvite",[s.action]))();reinviteAll(){this.dialog.yesNoConfirm({message:(0,m.i18n)("user.invited.reinvite_all_confirm"),didConfirm:()=>d.default.reinviteAll().then(()=>this.set("reinvitedAll",!0)).catch(c.popupAjaxError)})}static #J=(()=>dt7948.n(this.prototype,"reinviteAll",[s.action]))();loadMore(){let e=this.model;this.canLoadMore&&!this.invitesLoading&&(this.set("invitesLoading",!0),d.default.findInvitedBy(this.user,this.filter,this.searchTerm,e.invites.length).then(t=>{this.set("invitesLoading",!1),e.invites.pushObjects(t.invites),(0===t.invites.length||t.invites.lengthdt7948.n(this.prototype,"loadMore",[s.action]))()}},4327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(62797),r=n(51969);class o extends i.default{pendingLabel(e,t){return e>0?(0,r.i18n)("user.invited.pending_tab_with_count",{count:t}):(0,r.i18n)("user.invited.pending_tab")}static #e=(()=>dt7948.n(this.prototype,"pendingLabel",[(0,s.default)("invitesCount.total","invitesCount.pending")]))();expiredLabel(e,t){return e>0?(0,r.i18n)("user.invited.expired_tab_with_count",{count:t}):(0,r.i18n)("user.invited.expired_tab")}static #n=(()=>dt7948.n(this.prototype,"expiredLabel",[(0,s.default)("invitesCount.total","invitesCount.expired")]))();redeemedLabel(e,t){return e>0?(0,r.i18n)("user.invited.redeemed_tab_with_count",{count:t}):(0,r.i18n)("user.invited.redeemed_tab")}static #i=(()=>dt7948.n(this.prototype,"redeemedLabel",[(0,s.default)("invitesCount.total","invitesCount.redeemed")]))()}},83792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBeforeLoadMoreCallback:()=>w,default:()=>k});var i=n(28564),s=n(82806),r=n(70001),o=n(54729),a=n(35804),l=n(99208),u=n(32184),c=n(6610),d=n(20665),p=n(87389),h=n(20762),m=n(62797),g=n(51969),f=n(76417),_=n(82739),y=n(88606);let b=[];function w(e){b.push(e)}class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"site",[o.service]))();#S=(()=>void dt7948.i(this,"site"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"filter",[i.tracked],function(){return"all"}))();#rZ=(()=>void dt7948.i(this,"filter"))();queryParams=["filter"];get listContainerClassNames(){return`user-notifications-list ${this.siteSettings.show_user_menu_avatars?"show-avatars":""}`}isFiltered(){return this.filter&&"all"!==this.filter}static #d=(()=>dt7948.n(this.prototype,"isFiltered",[(0,m.default)("filter")]))();items(){return this.model.map(e=>{let t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site,notification:e,endComponent:(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"Nwrbyhur",block:'[[[1,"\\n "],[8,[32,0],null,[["@date"],[[32,1,["created_at"]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/controllers/user-notifications.js",scope:()=>[u.default,e],isStrictMode:!0}),(0,y.default)(void 0,void 0))};return new d.default(t)})}static #p=(()=>dt7948.n(this.prototype,"items",[(0,m.default)("model.content.@each")]))();allNotificationsRead(){return!this.get("model.content").some(e=>!e.get("read"))}static #h=(()=>dt7948.n(this.prototype,"allNotificationsRead",[(0,m.default)("model.content.@each.read")]))();doesNotHaveNotifications(e,t,n){return!n&&!e&&0===t}static #m=(()=>dt7948.n(this.prototype,"doesNotHaveNotifications",[(0,m.default)("isFiltered","model.content.length","loading")]))();nothingFound(e,t){return e&&0===t}static #g=(()=>dt7948.n(this.prototype,"nothingFound",[(0,m.default)("isFiltered","model.content.length")]))();emptyStateBody(){return(0,a.htmlSafe)((0,g.i18n)("user.no_notifications_page_body",{preferencesUrl:(0,p.default)("/my/preferences/notifications"),icon:(0,h.iconHTML)("bell")}))}static #E=(()=>dt7948.n(this.prototype,"emptyStateBody",[(0,m.default)()]))();async markRead(){await (0,c.ajax)("/notifications/mark-read",{type:"PUT"}),this.model.forEach(e=>e.set("read",!0))}updateFilter(e){this.loading=!0,this.filter=e}static #A=(()=>dt7948.n(this.prototype,"updateFilter",[r.action]))();async resetNew(){this.currentUser.unread_high_priority_notifications>0?this.modal.show(l.default,{model:{confirmationMessage:(0,g.i18n)("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications}),dismissNotifications:()=>this.markRead()}}):this.markRead()}static #D=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();loadMore(){(!b.length||b.some(e=>e(this)))&&this.model.loadMore()}static #I=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))()}},18759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82806);class s extends i.default{}},58522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(70001),r=n(54729),o=n(51969);let a=class extends i.default{static #e=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[r.service]))();#sZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #n=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();get viewingSelf(){return this.user.get("viewingSelf")}get newLinkText(){return this.#iz("new")}get unreadLinkText(){return this.#iz("unread")}get navigationControlsButton(){return document.getElementById("navigation-controls__button")}#iz(e){let t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"group",groupName:this.group.name});return 0===t?(0,o.i18n)(`user.messages.${e}`):(0,o.i18n)(`user.messages.${e}_with_count`,{count:t})}changeGroupNotificationLevel(e){this.group.setNotification(e,this.get("user.model.id"))}static #i=(()=>dt7948.n(this.prototype,"changeGroupNotificationLevel",[s.action]))()}},52501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(28564),s=n(82806),r=n(70001);let o=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"tagsForUser",[i.tracked],function(){return null}))();#u5=(()=>void dt7948.i(this,"tagsForUser"))();static #n=(()=>dt7948.g(this.prototype,"sortedByCount",[i.tracked],function(){return!0}))();#u6=(()=>void dt7948.i(this,"sortedByCount"))();static #i=(()=>dt7948.g(this.prototype,"sortedByName",[i.tracked],function(){return!1}))();#ce=(()=>void dt7948.i(this,"sortedByName"))();static #l=(()=>dt7948.g(this.prototype,"sortProperties",[i.tracked],function(){return["count:desc","id"]}))();#ct=(()=>void dt7948.i(this,"sortProperties"))();sortByCount(e){e?.preventDefault(),this.sortProperties=["count:desc","id"],this.sortedByCount=!0,this.sortedByName=!1}static #u=(()=>dt7948.n(this.prototype,"sortByCount",[r.action]))();sortById(e){e?.preventDefault(),this.sortProperties=["id"],this.sortedByCount=!1,this.sortedByName=!0}static #c=(()=>dt7948.n(this.prototype,"sortById",[r.action]))()}},68964:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(28564),s=n(82806);let r=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"tagName",[i.tracked],function(){return null}))();#cn=(()=>void dt7948.i(this,"tagName"))()}},41706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82806),s=n(54729),r=n(51969);let o=class extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"user",[i.inject]))();#a5=(()=>void dt7948.i(this,"user"))();get viewingSelf(){return this.user.get("viewingSelf")}get showWarningsWarning(){return"userPrivateMessages.user.warnings"===this.router.currentRoute.name&&!this.viewingSelf&&!this.currentUser.isAdmin}get newLinkText(){return this.#iz("new")}get unreadLinkText(){return this.#iz("unread")}#iz(e){let t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"user"});return 0===t?(0,r.i18n)(`user.messages.${e}`):(0,r.i18n)(`user.messages.${e}_with_count`,{count:t})}}},93172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,registerCustomUserNavMessagesDropdownRow:()=>p,resetCustomUserNavMessagesDropdownRows:()=>h});var i=n(28564),s=n(82806),r=n(70001),o=n(5938),a=n(54729),l=n(56839),u=n(51969);let c=(0,n(41664).A)(n(28564)).cached,d=[];function p(e,t,n){d.push({routeName:e,name:t,icon:n})}function h(){d.length=0}let m=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#a5=(()=>void dt7948.i(this,"user"))();static #i=(()=>dt7948.g(this.prototype,"userTopicsList",[s.inject]))();#ci=(()=>void dt7948.i(this,"userTopicsList"))();static #l=(()=>dt7948.g(this.prototype,"group",[i.tracked]))();#a$=(()=>void dt7948.i(this,"group"))();static #u=(()=>dt7948.g(this.prototype,"tagId",[i.tracked]))();#cs=(()=>void dt7948.i(this,"tagId"))();static #c=(()=>dt7948.g(this.prototype,"groupFilter",[(0,o.alias)("group.name")]))();#cr=(()=>void dt7948.i(this,"groupFilter"))();static #d=(()=>dt7948.g(this.prototype,"showNewPM",[(0,o.and)("user.viewingSelf","currentUser.can_send_private_messages")]))();#co=(()=>void dt7948.i(this,"showNewPM"))();static #p=(()=>dt7948.g(this.prototype,"isGroup",[(0,o.equal)("currentParentRouteName","userPrivateMessages.group")]))();#ca=(()=>void dt7948.i(this,"isGroup"))();static #h=(()=>dt7948.g(this.prototype,"viewingSelf",[(0,o.readOnly)("user.viewingSelf")]))();#cl=(()=>void dt7948.i(this,"viewingSelf"))();static #m=(()=>dt7948.g(this.prototype,"currentParentRouteName",[(0,o.readOnly)("router.currentRoute.parent.name")]))();#cu=(()=>void dt7948.i(this,"currentParentRouteName"))();static #g=(()=>dt7948.g(this.prototype,"pmTaggingEnabled",[(0,o.readOnly)("site.can_tag_pms")]))();#cc=(()=>void dt7948.i(this,"pmTaggingEnabled"))();get bulkSelectHelper(){return this.userTopicsList.bulkSelectHelper}get messagesDropdownValue(){let e;let t=this.router.currentURL.toLowerCase();for(let n=this.messagesDropdownContent.length-1;n>=0;n--){let i=this.messagesDropdownContent[n];if(t.includes(i.id.toLowerCase().replace(this.router.rootURL,"/"))){e=i.id;break}}return e}get messagesDropdownContent(){let e=this.model.username_lower,t=[{id:this.router.urlFor("userPrivateMessages.user",e),name:(0,u.i18n)("user.messages.inbox")}];return this.model.groupsWithMessages.forEach(n=>{t.push({id:this.router.urlFor("userPrivateMessages.group",e,n.name),name:n.name,icon:"inbox"})}),this.pmTaggingEnabled&&t.push({id:this.router.urlFor("userPrivateMessages.tags",e),name:(0,u.i18n)("user.messages.tags"),icon:"tags"}),d.forEach(n=>{t.push({id:this.router.urlFor(n.routeName,e),name:n.name,icon:n.icon})}),t}static #E=(()=>dt7948.n(this.prototype,"messagesDropdownContent",[c]))();onMessagesDropdownChange(e){return l.default.routeTo(e)}static #A=(()=>dt7948.n(this.prototype,"onMessagesDropdownChange",[r.action]))()}},1740:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(82806),s=n(5938),r=n(38536),o=n(62797);class a extends i.default{static #e=(()=>dt7948.g(this.prototype,"userController",[(0,i.inject)("user")]))();#cd=(()=>void dt7948.i(this,"userController"))();static #n=(()=>dt7948.g(this.prototype,"user",[(0,s.alias)("userController.model")]))();#a5=(()=>void dt7948.i(this,"user"))();moreBadges(e){return e>=6}static #i=(()=>dt7948.n(this.prototype,"moreBadges",[(0,o.default)("model.badges.length")]))();timeRead(e){return(0,r.duration)(e,{format:"tiny"})}static #l=(()=>dt7948.n(this.prototype,"timeRead",[(0,o.default)("model.time_read")]))();timeReadMedium(e){return(0,r.duration)(e,{format:"medium"})}static #u=(()=>dt7948.n(this.prototype,"timeReadMedium",[(0,o.default)("model.time_read")]))();showRecentTimeRead(e,t){return e!==t&&0!==t}static #c=(()=>dt7948.n(this.prototype,"showRecentTimeRead",[(0,o.default)("model.time_read","model.recent_time_read")]))();recentTimeRead(e){return e>0?(0,r.duration)(e,{format:"tiny"}):null}static #d=(()=>dt7948.n(this.prototype,"recentTimeRead",[(0,o.default)("model.recent_time_read")]))();recentTimeReadMedium(e){return e>0?(0,r.duration)(e,{format:"medium"}):null}static #p=(()=>dt7948.n(this.prototype,"recentTimeReadMedium",[(0,o.default)("model.recent_time_read")]))()}},40099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(28564),s=n(82806),r=n(70001),o=n(53067),a=n(5938),l=n(97355),u=n(64149),c=n(76546),d=n(31570),p=n(46606),h=n(5979),m=n(44973),g=n(62797);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"model",[i.tracked]))();#aP=(()=>void dt7948.i(this,"model"))();hideCategory=!1;showPosters=!1;channel=null;tagsForUser=null;queryParams=(()=>Object.keys(m.QUERY_PARAMS))();bulkSelectHelper=(()=>new c.default(this))();static #n=(()=>dt7948.g(this.prototype,"canBulkSelect",[(0,a.or)("currentUser.canManageTopic","showDismissRead","showResetNew")]))();#cp=(()=>void dt7948.i(this,"canBulkSelect"))();constructor(){for(let[e,t]of(super(...arguments),Object.entries(m.QUERY_PARAMS)))(0,d.defineTrackedProperty)(this,e,t.default)}get incomingCount(){return this.pmTopicTrackingState.newIncoming.length}static #i=(()=>dt7948.n(this.prototype,"incomingCount",[o.dependentKeyCompat]))();get bulkSelectEnabled(){return this.bulkSelectHelper.bulkSelectEnabled}get selected(){return this.bulkSelectHelper.selected}noContent(e,t){return 0===e&&0===t}static #l=(()=>dt7948.n(this.prototype,"noContent",[(0,g.default)("model.topics.length","incomingCount")]))();showResetNew(e,t){return e===h.NEW_FILTER&&t}static #u=(()=>dt7948.n(this.prototype,"showResetNew",[(0,g.default)("filter","model.topics.length")]))();showDismissRead(e,t){return e===h.UNREAD_FILTER&&t}static #c=(()=>dt7948.n(this.prototype,"showDismissRead",[(0,g.default)("filter","model.topics.length")]))();subscribe(){this.pmTopicTrackingState.trackIncoming(this.inbox,this.filter)}unsubscribe(){this.pmTopicTrackingState.stopIncomingTracking()}changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}static #d=(()=>dt7948.n(this.prototype,"changeSort",[r.action]))();get resolvedAscending(){return(0,l.isNone)(this.ascending)?"true"===this.model.get("params.ascending"):"true"===this.ascending.toString()}get resolvedOrder(){return this.order??this.model.get("params.order")??"activity"}resetNew(){let e=this.selected?this.selected.map(e=>e.id):null,t={inbox:this.inbox,topicIds:e};this.group&&(t.groupName=this.group.name),p.default.pmResetNew(t).then(e=>{e&&e.topic_ids.length>0&&(this.pmTopicTrackingState.removeTopics(e.topic_ids),this.send("refresh"))})}static #p=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();loadMore(){this.model.loadMore()}static #h=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))();async showInserted(e){if(e?.preventDefault(),!this.model.loadingBefore)try{let e=[...this.pmTopicTrackingState.newIncoming];await this.model.loadBefore(e),this.pmTopicTrackingState.resetIncomingTracking(e)}catch(e){(0,u.popupAjaxError)(e)}}static #m=(()=>dt7948.n(this.prototype,"showInserted",[r.action]))();refresh(){this.send("triggerRefresh")}static #g=(()=>dt7948.n(this.prototype,"refresh",[r.action]))();toggleBulkSelect(){this.bulkSelectHelper.toggleBulkSelect()}static #E=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[r.action]))();dismissRead(e,t){this.bulkSelectHelper.dismissRead(e,t)}static #A=(()=>dt7948.n(this.prototype,"dismissRead",[r.action]))();updateAutoAddTopicsToBulkSelect(e){this.bulkSelectHelper.autoAddTopicsToBulkSelect=e}static #D=(()=>dt7948.n(this.prototype,"updateAutoAddTopicsToBulkSelect",[r.action]))();addTopicsToBulkSelect(e){this.bulkSelectHelper.addTopics(e)}static #I=(()=>dt7948.n(this.prototype,"addTopicsToBulkSelect",[r.action]))()}},42558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(54836),l=n(97355),u=n(43900),c=n(28147),d=n(40710),p=n(59621),h=n(87389),m=n(62797),g=n(51969);class f extends i.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"adminTools",[d.default]))();#ig=(()=>void dt7948.i(this,"adminTools"))();static #u=(()=>dt7948.g(this.prototype,"userNotifications",[(0,i.inject)("user-notifications")]))();#ch=(()=>void dt7948.i(this,"userNotifications"))();static #c=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,c.setting)("moderators_view_emails")]))();#oH=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #d=(()=>dt7948.g(this.prototype,"isSummaryRoute",[(0,r.equal)("router.currentRouteName","user.summary")]))();#cm=(()=>void dt7948.i(this,"isSummaryRoute"))();static #p=(()=>dt7948.g(this.prototype,"canMuteOrIgnoreUser",[(0,r.or)("model.can_ignore_user","model.can_mute_user")]))();#cg=(()=>void dt7948.i(this,"canMuteOrIgnoreUser"))();static #h=(()=>dt7948.g(this.prototype,"hasGivenFlags",[(0,r.gt)("model.number_of_flags_given",0)]))();#cf=(()=>void dt7948.i(this,"hasGivenFlags"))();static #m=(()=>dt7948.g(this.prototype,"hasFlaggedPosts",[(0,r.gt)("model.number_of_flagged_posts",0)]))();#c_=(()=>void dt7948.i(this,"hasFlaggedPosts"))();static #g=(()=>dt7948.g(this.prototype,"hasDeletedPosts",[(0,r.gt)("model.number_of_deleted_posts",0)]))();#cy=(()=>void dt7948.i(this,"hasDeletedPosts"))();static #E=(()=>dt7948.g(this.prototype,"hasBeenSuspended",[(0,r.gt)("model.number_of_suspensions",0)]))();#cb=(()=>void dt7948.i(this,"hasBeenSuspended"))();static #A=(()=>dt7948.g(this.prototype,"hasReceivedWarnings",[(0,r.gt)("model.warnings_received_count",0)]))();#cv=(()=>void dt7948.i(this,"hasReceivedWarnings"))();static #D=(()=>dt7948.g(this.prototype,"hasRejectedPosts",[(0,r.gt)("model.number_of_rejected_posts",0)]))();#cw=(()=>void dt7948.i(this,"hasRejectedPosts"))();static #I=(()=>dt7948.g(this.prototype,"isTrustLevelZero",[(0,r.equal)("model.trust_level",0)]))();#ck=(()=>void dt7948.i(this,"isTrustLevelZero"))();static #G=(()=>dt7948.g(this.prototype,"hasTrustLevel",[(0,r.or)("isTrustLevelZero","model.trust_level")]))();#cx=(()=>void dt7948.i(this,"hasTrustLevel"))();static #Y=(()=>dt7948.g(this.prototype,"showStaffCounters",[(0,r.or)("hasGivenFlags","hasFlaggedPosts","hasDeletedPosts","hasBeenSuspended","hasReceivedWarnings","hasRejectedPosts")]))();#cT=(()=>void dt7948.i(this,"showStaffCounters"))();static #Q=(()=>dt7948.g(this.prototype,"showFeaturedTopic",[(0,r.and)("model.featured_topic","siteSettings.allow_featured_topic_on_user_profiles")]))();#oX=(()=>void dt7948.i(this,"showFeaturedTopic"))();static #J=(()=>dt7948.g(this.prototype,"linkWebsite",[(0,r.not)("model.isBasic")]))();#oY=(()=>void dt7948.i(this,"linkWebsite"))();static #X=(()=>dt7948.g(this.prototype,"canDeleteUser",[(0,r.and)("model.can_be_deleted","model.can_delete_all_posts")]))();#cS=(()=>void dt7948.i(this,"canDeleteUser"))();static #Z=(()=>dt7948.g(this.prototype,"currentParentRoute",[(0,r.readOnly)("router.currentRoute.parent.name")]))();#cC=(()=>void dt7948.i(this,"currentParentRoute"))();viewingSelf(e){return this.currentUser&&e===this.currentUser?.get("username")}static #ee=(()=>dt7948.n(this.prototype,"viewingSelf",[(0,m.default)("model.username")]))();canExpandProfile(e,t){return!t&&e}static #et=(()=>dt7948.n(this.prototype,"canExpandProfile",[(0,m.default)("viewingSelf","model.profile_hidden")]))();hasProfileBackgroundUrl(e){return!(0,l.isEmpty)(e.toString())}static #en=(()=>dt7948.n(this.prototype,"hasProfileBackgroundUrl",[(0,m.default)("model.profileBackgroundUrl")]))();collapsedInfo(e,t,n,i){return!!e||(!t||n)&&!i}static #ei=(()=>dt7948.n(this.prototype,"collapsedInfo",[(0,m.default)("model.profile_hidden","isSummaryRoute","viewingSelf","forceExpand")]))();get collapsedInfoState(){return{isExpanded:!this.collapsedInfo,icon:this.collapsedInfo?"angles-down":"angles-up",label:this.collapsedInfo?"expand_profile":"collapse_profile",ariaLabel:this.collapsedInfo?"user.sr_expand_profile":"user.sr_collapse_profile",action:"toggleProfile"}}static #es=(()=>dt7948.n(this.prototype,"collapsedInfoState",[(0,s.computed)("collapsedInfo")]))();isNotSuspendedOrIsStaff(e,t){return!e||t}static #er=(()=>dt7948.n(this.prototype,"isNotSuspendedOrIsStaff",[(0,m.default)("model.suspended","currentUser.staff")]))();removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow}static #eo=(()=>dt7948.n(this.prototype,"removeNoFollow",[(0,m.default)("model.trust_level")]))();showBookmarks(e,t){return e||t}static #ea=(()=>dt7948.n(this.prototype,"showBookmarks",[(0,m.default)("viewingSelf","currentUser.admin")]))();showDrafts(e){return e}static #el=(()=>dt7948.n(this.prototype,"showDrafts",[(0,m.default)("viewingSelf")]))();showRead(e){return e}static #eu=(()=>dt7948.n(this.prototype,"showRead",[(0,m.default)("viewingSelf")]))();showPrivateMessages(e,t){return this.currentUser?.can_send_private_messages&&(e||t)}static #ec=(()=>dt7948.n(this.prototype,"showPrivateMessages",[(0,m.default)("viewingSelf","currentUser.admin","currentUser.can_send_private_messages")]))();showActivityTab(e,t){return e||t||!this.siteSettings.hide_user_activity_tab}static #ed=(()=>dt7948.n(this.prototype,"showActivityTab",[(0,m.default)("viewingSelf","currentUser.admin")]))();showNotificationsTab(e,t){return e||t}static #nG=(()=>dt7948.n(this.prototype,"showNotificationsTab",[(0,m.default)("viewingSelf","currentUser.admin")]))();nameFirst(e){return(0,p.prioritizeNameInUx)(e)}static #nY=(()=>dt7948.n(this.prototype,"nameFirst",[(0,m.default)("model.name")]))();showBadges(e){return this.siteSettings.enable_badges&&e>0}static #nQ=(()=>dt7948.n(this.prototype,"showBadges",[(0,m.default)("model.badge_count")]))();canInviteToForum(){return this.currentUser?.get("can_invite_to_forum")}static #oZ=(()=>dt7948.n(this.prototype,"canInviteToForum",[(0,m.default)()]))();publicUserFields(){let e=this.site.get("user_fields");if(!(0,l.isEmpty)(e)){let t=this.get("model.user_fields");return e.filterBy("show_on_profile",!0).sortBy("position").map(e=>{(0,s.set)(e,"dasherized_name",(0,a.dasherize)(e.get("name")));let n=t?t[e.get("id").toString()]:null;return(0,l.isEmpty)(n)?null:s.default.create({value:n,field:e})}).compact()}}static #o1=(()=>dt7948.n(this.prototype,"publicUserFields",[(0,m.default)("model.user_fields.@each.value")]))();primaryGroup(e){if(e)return`group-${e}`}static #o0=(()=>dt7948.n(this.prototype,"primaryGroup",[(0,m.default)("model.primary_group_name")]))();get userNotificationLevel(){return this.get("model.ignored")?"changeToIgnored":this.get("model.muted")?"changeToMuted":"changeToNormal"}static #o3=(()=>dt7948.n(this.prototype,"userNotificationLevel",[(0,s.computed)("currentUser.ignored_ids","model.ignored","model.muted")]))();set userNotificationLevel(e){}get canCheckEmails(){return new u.default(this.model,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #o2=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,s.computed)("model.id","currentUser.id")]))();get displayTopLevelAdminButton(){return!!this.currentUser?.staff&&this.site.desktopView}showSuspensions(e){e?.preventDefault(),this.adminTools.showActionLogs(this,{target_user:this.get("model.username"),action_name:"suspend_user"})}static #o8=(()=>dt7948.n(this.prototype,"showSuspensions",[s.action]))();toggleProfile(){this.toggleProperty("forceExpand")}static #o4=(()=>dt7948.n(this.prototype,"toggleProfile",[s.action]))();adminDelete(){let e=this.get("model.id"),t=document.location.pathname,n=n=>{this.dialog.notice((0,g.i18n)("admin.user.deleting_user"));let i={context:t};return n&&(i.block_email=!0,i.block_urls=!0,i.block_ip=!0),i.delete_posts=!0,this.adminTools.deleteUser(e,i).then(e=>{e.deleted?document.location=(0,h.default)("/admin/users/list/active"):this.dialog.alert((0,g.i18n)("admin.user.delete_failed"))}).catch(()=>this.dialog.alert((0,g.i18n)("admin.user.delete_failed")))};this.dialog.alert({title:(0,g.i18n)("admin.user.delete_confirm_title"),message:(0,g.i18n)("admin.user.delete_confirm"),class:"delete-user-modal",buttons:[{label:(0,g.i18n)("admin.user.delete_dont_block"),class:"btn-primary",action:()=>n(!1)},{icon:"triangle-exclamation",label:(0,g.i18n)("admin.user.delete_and_block"),class:"btn-danger",action:()=>n(!0)},{label:(0,g.i18n)("composer.cancel")}]})}static #o7=(()=>dt7948.n(this.prototype,"adminDelete",[s.action]))();updateNotificationLevel(e){return this.model.updateNotificationLevel(e)}static #o9=(()=>dt7948.n(this.prototype,"updateNotificationLevel",[s.action]))()}},32740:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(82806),s=n(70001),r=n(5938),o=n(54729),a=n(6285),l=n(38536),u=n(27174),c=n(84262);class d extends i.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();queryParams=["period","order","asc","name","group","exclude_usernames","exclude_groups"];period="weekly";order="";asc=null;name="";group=null;nameInput=null;exclude_usernames=null;exclude_groups=null;isLoading=!1;columns=null;groupOptions=null;params=null;static #n=(()=>dt7948.g(this.prototype,"showGroupFilter",[(0,r.and)("currentUser","groupOptions")]))();#cE=(()=>void dt7948.i(this,"showGroupFilter"))();static #i=(()=>dt7948.g(this.prototype,"showTimeRead",[(0,r.equal)("period","all")]))();#cA=(()=>void dt7948.i(this,"showTimeRead"))();loadUsers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&this.set("params",e),this.setProperties({isLoading:!0,nameInput:this.params.name,order:this.params.order});let t=this.columns.filter(e=>"user_field"===e.type).map(e=>e.user_field_id).join("|"),n=this.columns.filter(e=>"plugin"===e.type).map(e=>e.id).join("|");return this.store.find("directoryItem",Object.assign(this.params,{user_field_ids:t,plugin_column_ids:n})).then(e=>{let t=e.get("resultSetMeta.last_updated_at");this.setProperties({model:e,lastUpdatedAt:t?(0,l.longDate)(t):null,period:this.params.period})}).finally(()=>{this.set("isLoading",!1)})}loadGroups(){if(this.currentUser)return u.default.findAll({ignore_automatic:!0}).then(e=>{let t=e.filter(e=>e.can_see_members).map(e=>({name:e.full_name||e.name,id:e.name}));this.set("groupOptions",t)})}groupChanged(e,t){this.set("group",t?.id)}static #l=(()=>dt7948.n(this.prototype,"groupChanged",[s.action]))();showEditColumnsModal(){this.modal.show(a.default)}static #u=(()=>dt7948.n(this.prototype,"showEditColumnsModal",[s.action]))();onUsernameFilterChanged(e){(0,c.default)(this,this._setUsernameFilter,e,500)}static #c=(()=>dt7948.n(this.prototype,"onUsernameFilterChanged",[s.action]))();_setUsernameFilter(e){this.setProperties({name:e,"params.name":e}),this.loadUsers()}loadMore(){this.model.loadMore()}static #d=(()=>dt7948.n(this.prototype,"loadMore",[s.action]))()}},96708:(e,t,n)=>{"use strict";n.r(t);var i=n(3753),s=n(88477);(0,i.default)({workflow:s.default})},51635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(21237),r=n(76417),o=n(82739);class a extends i.default{get type(){return this.args.type||"info"}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"8cxEw1Wf",block:'[[[1,"\\n "],[11,0],[16,0,[29,["form-kit__alert alert alert-",[30,0,["type"]]]]],[17,1],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[14,0,"form-kit__alert-message"],[12],[18,3,null],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@icon","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/alert.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},20256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(64151),r=n(27147),o=n(76417),a=n(82739);class l extends i.default{get currentLength(){return this.args.value?.length||0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"4J/bO9r/",block:'[[[1,"\\n "],[11,1],[16,0,[28,[32,0],["form-kit__char-counter",[52,[28,[32,1],[[30,0,["currentLength"]],[30,1]],null],"--exceeded"],[52,[28,[32,2],[[30,0,["currentLength"]],[30,2]],null],"--insufficient"]],null]],[17,3],[12],[1,"\\n "],[1,[30,0,["currentLength"]]],[1,"/"],[1,[30,1]],[1,"\\n "],[13],[1,"\\n "]],["@maxLength","@minLength","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/char-counter.js",scope:()=>[r.default,s.gt,s.lt],isStrictMode:!0}),this))()}},47126:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39882),s=n(52405),r=n(4925),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"wIsai0iZ",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__checkbox-group"]],[["@title","@description"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n "],[18,11,[[28,[32,1],null,[["Field"],[[50,[32,2],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor","showMeta","showTitle"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],false,false]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],["@title","@description","@errors","@addError","@data","@set","@remove","@registerField","@unregisterField","@triggerRevalidationFor","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/checkbox-group.js",scope:()=>[r.default,i.hash,s.default],isStrictMode:!0}),(0,l.default)(void 0,"checkbox-group:FKCheckboxGroup"))},83579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(27147),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"rez9encz",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__col",[52,[30,1],[28,[32,1],["--col-",[30,1]],null]]],null]],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],["@size","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/col.js",scope:()=>[s.default,i.concat],isStrictMode:!0}),(0,a.default)(void 0,"col:FKCol"))},87593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(37138),s=n(39882),r=n(70001),o=n(52405),a=n(8102),l=n(31496),u=n(76417),c=n(82739);class d extends i.default{remove(e){this.args.remove(this.name,e)}static #e=(()=>dt7948.n(this.prototype,"remove",[r.action]))();get collectionData(){return this.args.data.get(this.name)}get name(){return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get tagName(){return this.args.tagName||"div"}static #n=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"2NuTOciD",block:'[[[1,"\\n"],[44,[[28,[32,0],[[30,0,["tagName"]]],null]],[[[42,[28,[31,2],[[28,[31,2],[[30,0,["collectionData"]]],null]],null],"index",[[[1," "],[8,[30,1],[[24,0,"form-kit__collection"]],null,[["default"],[[[[1,"\\n "],[18,12,[[28,[32,1],null,[["Field","Object","Collection","remove"],[[50,[32,2],0,null,[["errors","collectionIndex","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,4],[30,3],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null]]]],[50,[32,4],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null]]]],[50,[32,5],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName","remove"],[[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[28,[32,3],[[30,0,["name"]],".",[30,3]],null],[30,11]]]],[30,0,["remove"]]]]],[30,3],[28,[32,6],[[30,0,["collectionData"]],[30,3]],null]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[2,3]],null]],[1]]],[1," "]],["Wrapper","data","index","@errors","@addError","@data","@set","@registerField","@unregisterField","@triggerRevalidationFor","@remove","&default"],false,["let","each","-track-array","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/collection.js",scope:()=>[l.default,s.hash,o.default,s.concat,a.default,d,r.get],isStrictMode:!0}),this))()}},46814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(62278),s=n(27147),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"1YhtsGZF",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["form-kit__container",[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"form-kit__container-title"],[12],[1,"\\n "],[1,[30,3]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[32,1],[[24,0,"form-kit__container-subtitle"]],null,[["default"],[[[[1,[30,4]]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"form-kit__container-content"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@title","@subtitle","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/container.js",scope:()=>[s.default,i.default],isStrictMode:!0}),(0,a.default)(void 0,"container:FKContainer"))},47302:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(39882),r=n(77843),o=n(64151),a=n(31147),l=n(45424),u=n(62278),c=n(27147),d=n(51969),p=n(76417),h=n(82739);class m extends i.default{get controlType(){return"input"===this.args.component.controlType?this.args.component.controlType+"-"+(this.args.type||"text"):this.args.component.controlType}get error(){return(this.args.errors??{})[this.args.field.name]}normalizeName(e){return e.replace(/\./g,"-")}static #e=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"cX0igq6c",block:'[[[1,"\\n "],[11,0],[16,1,[28,[32,0],["control-",[28,[30,0,["normalizeName"]],[[30,1,["name"]]],null]],null]],[16,0,[28,[32,1],["form-kit__container","form-kit__field",[28,[32,0],["form-kit__field-",[30,0,["controlType"]]],null],[52,[30,0,["error"]],"has-error"],[52,[30,1,["disabled"]],"is-disabled"],[52,[28,[32,2],[[30,1,["format"]],"full"],null],"--full"]],null]],[16,"data-disabled",[30,1,["disabled"]]],[16,"data-name",[30,1,["name"]]],[16,"data-control-type",[30,0,["controlType"]]],[4,[32,3],[[28,[32,4],[[30,2],[30,1,["name"]]],null]],null],[12],[1,"\\n"],[41,[30,1,["showTitle"]],[[[1," "],[8,[32,5],[[24,0,"form-kit__container-title"]],[["@fieldId"],[[30,1,["id"]]]],[["default"],[[[[1,"\\n "],[1,[30,1,["title"]]],[1,"\\n\\n"],[41,[51,[30,1,["required"]]],[[[1," "],[10,1],[14,0,"form-kit__container-optional"],[12],[1,"("],[1,[28,[32,6],["form_kit.optional"],null]],[1,")"],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[8,[32,7],[[24,0,"form-kit__container-description"]],null,[["default"],[[[[1,[30,1,["description"]]]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[15,0,[28,[32,1],["form-kit__container-content",[52,[30,1,["format"]],[28,[32,0],["--",[30,1,["format"]]],null]]],null]],[12],[1,"\\n "],[8,[30,3],[[16,1,[30,1,["id"]]],[16,3,[30,1,["name"]]],[16,"aria-invalid",[52,[30,0,["error"]],"true"]],[16,"aria-describedby",[52,[30,0,["error"]],[30,1,["errorId"]]]],[17,4]],[["@field","@value","@type","@yesLabel","@noLabel","@lang","@before","@after","@height","@selection"],[[30,1],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13]]],[["default"],[[[[1,"\\n "],[18,15,[[30,14]]],[1,"\\n "]],[14]]]]],[1,"\\n\\n "],[8,[32,8],null,[["@field","@error"],[[30,1],[30,0,["error"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@field","@unregisterField","@component","&attrs","@value","@type","@yesLabel","@noLabel","@lang","@before","@after","@height","@selection","components","&default"],false,["if","unless","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control-wrapper.js",scope:()=>[s.concat,c.default,o.eq,r.default,s.fn,a.default,d.i18n,u.default,l.default],isStrictMode:!0}),this))()}},99542:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(87075),r=n(70001),o=n(64151),a=n(31147),l=n(76417),u=n(82739);class c extends i.default{static controlType="checkbox";handleInput(){this.args.field.set(!this.args.field.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"XXbK0+xD",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-checkbox-label"]],null,[["default"],[[[[1,"\\n "],[11,"input"],[24,4,"checkbox"],[16,"checked",[28,[32,1],[[30,1,["value"]],true],null]],[24,0,"form-kit__control-checkbox"],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,2],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"form-kit__control-checkbox-content"],[12],[1,"\\n "],[10,1],[14,0,"form-kit__control-checkbox-title"],[12],[1,"\\n "],[1,[30,1,["title"]]],[1,"\\n "],[13],[1,"\\n"],[41,[48,[30,3]],[[[1," "],[10,1],[14,0,"form-kit__control-checkbox-description"],[12],[18,3,null],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","&attrs","&default"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/checkbox.js",scope:()=>[a.default,o.eq,s.on],isStrictMode:!0}),this))()}},20706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(35804),o=n(25852),a=n(20802),l=n(76417),u=n(82739);class c extends i.default{static controlType="code";initialValue=(()=>this.args.field.value||"")();handleInput(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[s.action]))();get style(){if(this.args.height)return(0,r.htmlSafe)(`height: ${(0,a.escapeExpression)(this.args.height)}px`)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"/mqoIPm9",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-code"],[16,5,[30,0,["style"]]],[17,1]],[["@content","@onChange","@mode","@disabled"],[[30,0,["initialValue"]],[30,0,["handleInput"]],[30,2],[30,3,["disabled"]]]],null],[1,"\\n "]],["&attrs","@lang","@field"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/code.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},76745:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(35804),o=n(85984),a=n(20802),l=n(76417),u=n(82739);class c extends i.default{static controlType="composer";handleInput(e){this.args.field.set(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[s.action]))();get style(){if(!this.args.height)return(0,r.htmlSafe)(`height: ${(0,a.escapeExpression)(this.args.height)}px`)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"TY4k8971",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-composer"],[16,5,[30,0,["style"]]]],[["@value","@change","@disabled","@textAreaId"],[[28,[31,0],[[30,1,["value"]]],null],[30,0,["handleInput"]],[30,1,["disabled"]],[30,1,["id"]]]],null],[1,"\\n "]],["@field"],false,["readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/composer.js",scope:()=>[o.default],isStrictMode:!0}),this))()}},45035:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(21037),l=n(65657),u=n(76417),c=n(82739),d=n(88606);let p=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"YWz5JxSS",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__inline-radio"],[12],[1,"\\n "],[18,3,[[50,[32,0],0,null,[["activeName","setCondition"],[[30,1],[30,2]]]]]],[1,"\\n "],[13],[1,"\\n"]],["@activeName","@setCondition","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[a.default],isStrictMode:!0}),(0,d.default)(void 0,"conditional-content:Conditions")),h=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"TWiPdggF",block:'[[[1,"\\n "],[18,2,[[50,[32,0],0,null,[["activeName"],[[30,1]]]]]],[1,"\\n"]],["@activeName","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[l.default],isStrictMode:!0}),(0,d.default)(void 0,"conditional-content:Contents"));class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"activeName",[s.tracked],function(){return this.args.activeName}))();#cD=(()=>void dt7948.i(this,"activeName"))();setCondition(e){this.activeName=e}static #n=(()=>dt7948.n(this.prototype,"setCondition",[o.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"biThpBVH",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__conditional-display"],[12],[1,"\\n "],[18,1,[[28,[32,0],null,[["Conditions","Contents"],[[50,[32,1],0,null,[["activeName","setCondition"],[[30,0,["activeName"]],[30,0,["setCondition"]]]]],[50,[32,2],0,null,[["activeName"],[[30,0,["activeName"]]]]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content.js",scope:()=>[r.hash,p,h],isStrictMode:!0}),this))()}},21037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(39882),s=n(87075),r=n(64151),o=n(31147),a=n(14063),l=n(76417),u=n(82739),c=n(88606);let d=(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"KjqHsv7p",block:'[[[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,1,[30,1]],[16,2,[30,2]],[16,"checked",[28,[32,2],[[30,2],[30,3]],null]],[24,0,"form-kit__control-radio"],[24,4,"radio"],[4,[32,3],["change",[28,[32,4],[[30,4],[30,2]],null]],null],[12],[13],[1,"\\n\\n "],[10,1],[12],[18,5,null],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]]]],["uuid","@name","@activeName","@setCondition","&default"],false,["let","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content/condition.js",scope:()=>[a.default,o.default,r.eq,s.on,i.fn],isStrictMode:!0}),(0,c.default)(void 0,"condition:FKControlConditionalContentOption"))},65657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(64151),s=n(27147),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fdQQ0LVi",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__conditional-display-content",[52,[28,[32,1],[[30,1],[30,2]],null],"hidden"]],null]],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["@name","@activeName","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/conditional-content/content.js",scope:()=>[s.default,i.notEq],isStrictMode:!0}),(0,a.default)(void 0,"content:FKControlConditionalContentItem"))},18204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(37138),s=n(76417),r=n(82739);class o extends i.default{static controlType="custom";static #e=(()=>(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"dQm5PXT/",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__control-custom"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/custom.js",isStrictMode:!0}),this))()}},13158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(39882),r=n(70001),o=n(60416),a=n(76417),l=n(82739);class u extends i.default{static controlType="icon";handleInput(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"zkQKCYt8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-icon"]],[["@value","@onlyAvailable","@options","@onChange"],[[28,[31,0],[[30,1,["value"]]],null],true,[28,[32,1],null,[["maximum","disabled","caretDownIcon","caretUpIcon","icons"],[1,[30,1,["disabled"]],"angle-down","angle-up",[30,1,["value"]]]]],[30,0,["handleInput"]]]],null],[1,"\\n "]],["@field"],false,["readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/icon.js",scope:()=>[o.default,s.hash],isStrictMode:!0}),this))()}},31722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(39882),r=n(70001),o=n(97355),a=n(5960),l=n(76417),u=n(82739);class c extends i.default{static controlType="image";setImage(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"setImage",[r.action]))();removeImage(){this.setImage(void 0)}static #n=(()=>dt7948.n(this.prototype,"removeImage",[r.action]))();get imageUrl(){return(0,o.isBlank)(this.args.field.value)?null:this.args.field.value}static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"wK75HdmC",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-image no-repeat contain-image"]],[["@id","@imageUrl","@onUploadDone","@onUploadDeleted","@type"],[[28,[32,1],[[30,1,["id"]],"-",[30,1,["name"]]],null],[30,0,["imageUrl"]],[30,0,["setImage"]],[30,0,["removeImage"]],[30,2]]],null],[1,"\\n "]],["@field","@type"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/image.js",scope:()=>[a.default,s.concat],isStrictMode:!0}),this))()}},94935:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(87075),r=n(70001),o=n(27147),a=n(76417),l=n(82739);let u=["color","date","datetime-local","email","hidden","month","number","password","range","search","tel","text","time","url","week"];class c extends i.default{static controlType="input";constructor(e,t){if(super(...arguments),["checkbox","radio"].includes(t.type))throw Error(`input component does not support @type="${t.type}" as there is a dedicated component for this.`);if(t.type&&!u.includes(t.type))throw Error(`input component does not support @type="${t.type}", must be one of ${u.join(", ")}!`)}get type(){return this.args.type??"text"}handleInput(e){let t=""===e.target.value?void 0:"number"===this.type?parseFloat(e.target.value):e.target.value;this.args.field.set(t)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"9gu/ApTy",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__control-input-wrapper"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,1],[14,0,"form-kit__before-input"],[12],[1,[30,1]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,2,[30,2,["value"]]],[16,0,[28,[32,0],["form-kit__control-input",[52,[30,1],"has-prefix"],[52,[30,3],"has-suffix"]],null]],[16,"disabled",[30,2,["disabled"]]],[17,4],[4,[32,1],["input",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,3],[[[1," "],[10,1],[14,0,"form-kit__after-input"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@before","@field","@after","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/input.js",scope:()=>[o.default,s.on],isStrictMode:!0}),this))()}},11664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(37138),s=n(28564),r=n(39882),o=n(70001),a=n(79754),l=n(85052),u=n(56536),c=n(11102),d=n(9232),p=n(21237),h=n(76417),m=n(82739);class g extends i.default{static controlType="menu";static #e=(()=>dt7948.g(this.prototype,"menuApi",[s.tracked]))();#cI=(()=>void dt7948.i(this,"menuApi"))();registerMenuApi(e){this.menuApi=e}static #n=(()=>dt7948.n(this.prototype,"registerMenuApi",[o.action]))();static #i=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"uUu2H3nf",block:'[[[1,"\\n "],[8,[32,0],[[16,1,[30,1,["id"]]],[16,"data-value",[30,1,["value"]]]],[["@onRegisterApi","@triggerClass","@disabled","@placement","@offset","@modalForMobile"],[[30,0,["registerMenuApi"]],"form-kit__control-menu",[30,1,["disabled"]],"bottom-start",5,true]],[["trigger","content"],[[[[1,"\\n "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],["angle-down"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],null,null,[["default"],[[[[1,"\\n "],[18,4,[[28,[32,3],null,[["Item","Divider","Container"],[[50,[32,4],0,null,[["item","field","menuApi"],[[30,3,["item"]],[30,1],[30,0,["menuApi"]]]]],[50,[32,5],0,null,[["divider"],[[30,3,["divider"]]]]],[32,6]]]]]],[1,"\\n "]],[3]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","@selection","menu","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu.js",scope:()=>[a.default,p.default,l.default,r.hash,d.default,c.default,u.default],isStrictMode:!0}),this))()}},56536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"TKNpZ7dB",block:'[[[1,"\\n "],[10,"li"],[14,0,"form-kit__control-menu-container"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/container.js",isStrictMode:!0}),(0,r.default)(void 0,"container:FKControlMenuContainer"))},11102:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"e3bbHlKa",block:'[[[1,"\\n "],[8,[30,1],[[24,0,"form-kit__control-menu-divider"]],null,null],[1,"\\n"]],["@divider"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/divider.js",isStrictMode:!0}),(0,r.default)(void 0,"divider:FKControlMenuDivider"))},9232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(70001),r=n(92976),o=n(76417),a=n(82739);class l extends i.default{handleInput(){this.args.menuApi.close(),this.args.action?this.args.action(this.args.value,{set:this.args.set}):this.args.field.set(this.args.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[s.action]))();static #n=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ljDoDPGu",block:'[[[1,"\\n "],[8,[30,1],[[24,0,"form-kit__control-menu-item"],[16,"data-value",[30,2]]],null,[["default"],[[[[1,"\\n "],[8,[32,0],[[24,0,"btn-flat"],[17,3]],[["@action","@icon"],[[30,0,["handleInput"]],[30,4]]],[["default"],[[[[1,"\\n "],[18,5,null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@item","@value","&attrs","@icon","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/menu/item.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},67214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(37138),s=n(28564),r=n(87075),o=n(70001),a=n(79635),l=n(64151),u=n(92976),c=n(27147),d=n(76417),p=n(82739);let h={text:"text",password:"password"};class m extends i.default{static controlType="password";static #e=(()=>dt7948.g(this.prototype,"type",[s.tracked],function(){return h.password}))();#rW=(()=>void dt7948.i(this,"type"))();static #n=(()=>dt7948.g(this.prototype,"isFocused",[s.tracked],function(){return!1}))();#ag=(()=>void dt7948.i(this,"isFocused"))();focusState=(()=>(0,a.modifier)(e=>{let t=()=>{this.isFocused=!0},n=()=>{this.isFocused=!1};return e.addEventListener("focusin",t),e.addEventListener("focusout",n),()=>{e.removeEventListener("focusin",t),e.removeEventListener("focusout",n)}}))();get iconForType(){return this.type===h.password?"far-eye":"far-eye-slash"}handleInput(e){let t=""===e.target.value?void 0:e.target.value;this.args.field.set(t)}static #i=(()=>dt7948.n(this.prototype,"handleInput",[o.action]))();toggleVisibility(){this.type=this.type===h.password?h.text:h.password}static #l=(()=>dt7948.n(this.prototype,"toggleVisibility",[o.action]))();static #u=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"A/Hk9VAs",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["form-kit__control-password-wrapper",[52,[30,0,["isFocused"]],"is-focused"]],null]],[12],[1,"\\n "],[11,"input"],[16,4,[30,0,["type"]]],[16,2,[30,1,["value"]]],[24,0,"form-kit__control-password"],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,1],["input",[30,0,["handleInput"]]],null],[4,[30,0,["focusState"]],null,null],[12],[13],[1,"\\n\\n "],[8,[32,2],[[24,0,"btn-transparent form-kit__control-password-toggle"],[24,"role","switch"],[16,"aria-checked",[28,[32,3],[[30,0,["type"]],[32,4,["text"]]],null]]],[["@action","@icon"],[[30,0,["toggleVisibility"]],[30,0,["iconForType"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@field","&attrs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/password.js",scope:()=>[c.default,r.on,u.default,l.eq,h],isStrictMode:!0}),this))()}},9839:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(37138),s=n(87075),r=n(70001),o=n(64151),a=n(31147),l=n(14063),u=n(51969),c=n(76417),d=n(82739);class p extends i.default{static controlType="question";handleInput(e){this.args.field.set("true"===e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #n=(()=>(0,c.setComponentTemplate)((0,d.createTemplateFactory)({id:"2JyI9QHP",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__inline-radio"],[12],[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label --yes"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[24,2,"true"],[16,"checked",[28,[32,2],[[30,2,["value"]],true],null]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,3],[16,1,[30,1]],[4,[32,3],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,4],[[[1," "],[1,[30,4]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["yes_value"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[1]]],[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[8,[32,1],[[24,0,"form-kit__control-radio-label --no"]],[["@fieldId"],[[30,5]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[24,2,"false"],[16,"checked",[28,[32,2],[[30,2,["value"]],false],null]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,3],[16,1,[30,5]],[4,[32,3],["change",[30,0,["handleInput"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,6],[[[1," "],[1,[30,6]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["no_value"],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[5]]],[1," "],[13],[1,"\\n "]],["uuid","@field","&attrs","@yesLabel","uuid","@noLabel"],false,["let","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/question.js",scope:()=>[l.default,a.default,o.eq,s.on,u.i18n],isStrictMode:!0}),this))()}},62794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(39882),r=n(4925),o=n(1194),a=n(76417),l=n(82739);class u extends i.default{static controlType="radio-group";static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"Fhjsu3U8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-radio-group"],[17,1]],[["@title","@subtitle"],[[30,2],[30,3]]],[["default"],[[[[1,"\\n "],[18,6,[[28,[32,1],null,[["Radio"],[[50,[32,2],0,null,[["value","field"],[[30,4],[30,5]]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@title","@subtitle","@value","@field","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group.js",scope:()=>[r.default,s.hash,o.default],isStrictMode:!0}),this))()}},1194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(39882),s=n(87075),r=n(64151),o=n(31147),a=n(14063),l=n(20171),u=n(76417),c=n(82739),d=n(88606);let p=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"HRWyCQma",block:'[[[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-title"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",isStrictMode:!0}),(0,d.default)(void 0,"radio:radioTitle")),h=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"4aCKKZli",block:'[[[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-description"],[12],[18,1,null],[13],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",isStrictMode:!0}),(0,d.default)(void 0,"radio:radioDescription")),m=(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"2EoODoD3",block:'[[[1,"\\n"],[44,[[28,[32,0],null,null]],[[[1," "],[10,0],[14,0,"form-kit__field form-kit__field-radio"],[12],[1,"\\n "],[8,[32,1],[[24,0,"form-kit__control-radio-label"]],[["@fieldId"],[[30,1]]],[["default"],[[[[1,"\\n "],[11,"input"],[16,3,[30,2,["name"]]],[24,4,"radio"],[16,2,[30,3]],[16,"checked",[28,[32,2],[[30,2,["value"]],[30,3]],null]],[16,1,[30,1]],[24,0,"form-kit__control-radio"],[16,"disabled",[30,2,["disabled"]]],[17,4],[4,[32,3],["change",[28,[32,4],[[30,2,["set"]]],null]],null],[12],[13],[1,"\\n "],[10,1],[14,0,"form-kit__control-radio-content"],[12],[1,"\\n "],[18,5,[[28,[32,5],null,[["Title","Description"],[[32,6],[32,7]]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[1]]]],["uuid","@field","@value","&attrs","&default"],false,["let","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/radio-group/radio.js",scope:()=>[a.default,o.default,r.eq,s.on,l.default,i.hash,p,h],isStrictMode:!0}),(0,d.default)(void 0,"radio:FKControlRadioGroupRadio"))},60483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(39882),r=n(36992),o=n(76417),a=n(82739),l=n(88606);let u=(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"xRTqTd92",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-option"]],[["@value","@selected"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n "],[18,3,null],[1,"\\n "]],[]]]]],[1,"\\n"]],["@value","@selected","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/select.js",scope:()=>[r.DSelectOption],isStrictMode:!0}),(0,l.default)(void 0,"select:SelectOption"));class c extends i.default{static controlType="select";get includeNone(){return"required"!==this.args.field.validation}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"pCZPYI8q",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-select"],[16,"disabled",[30,1,["disabled"]]],[17,2]],[["@value","@onChange","@includeNone"],[[30,1,["value"]],[30,1,["set"]],[30,0,["includeNone"]]]],[["default"],[[[[1,"\\n "],[18,3,[[28,[32,1],null,[["Option"],[[50,[32,2],0,null,[["selected"],[[30,1,["value"]]]]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@field","&attrs","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/select.js",scope:()=>[r.default,s.hash,u],isStrictMode:!0}),this))()}},17401:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(87075),r=n(70001),o=n(35804),a=n(20802),l=n(76417),u=n(82739);class c extends i.default{static controlType="textarea";handleInput(e){this.args.field.set(e.target.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();get style(){if(this.args.height)return(0,o.htmlSafe)(`height: ${(0,a.escapeExpression)(this.args.height)}px`)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"hQRPm0/K",block:'[[[1,"\\n "],[11,"textarea"],[24,0,"form-kit__control-textarea"],[16,5,[30,0,["style"]]],[16,"disabled",[30,1,["disabled"]]],[17,2],[4,[32,0],["input",[30,0,["handleInput"]]],null],[12],[1,[30,1,["value"]]],[13],[1,"\\n "]],["@field","&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/textarea.js",scope:()=>[s.on],isStrictMode:!0}),this))()}},2559:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(87075),r=n(70001),o=n(75433),a=n(76417),l=n(82739);class u extends i.default{static controlType="toggle";handleInput(){this.args.field.set(!this.args.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #n=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"WA+g4Vh1",block:'[[[1,"\\n "],[8,[32,0],[[16,"disabled",[30,1,["disabled"]]],[24,0,"form-kit__control-toggle"],[4,[32,1],["click",[30,0,["handleInput"]]],null]],[["@state"],[[30,1,["value"]]]],null],[1,"\\n "]],["@field"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/control/toggle.js",scope:()=>[o.default,s.on],isStrictMode:!0}),this))()}},12947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(39882),r=n(21237),o=n(51969),a=n(76417),l=n(82739);class u extends i.default{concatErrors(e){return e.join(", ")}get hasErrors(){return Object.keys(this.args.errors).length>0}normalizeName(e){return e.replace(/\./g,"-")}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"cB6pll1C",block:'[[[1,"\\n"],[41,[30,0,["hasErrors"]],[[[1," "],[11,0],[24,0,"form-kit__errors-summary"],[24,"aria-live","assertive"],[17,1],[12],[1,"\\n "],[10,"h2"],[14,0,"form-kit__errors-summary-title"],[12],[1,"\\n "],[1,[28,[32,0],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[32,1],["form_kit.errors_summary_title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"ul"],[14,0,"form-kit__errors-summary-list"],[12],[1,"\\n"],[42,[28,[31,2],[[30,2]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[10,3],[14,"rel","noopener noreferrer"],[15,6,[28,[32,2],["#control-",[28,[30,0,["normalizeName"]],[[30,4]],null]],null]],[12],[1,[30,3,["title"]]],[13],[1,":\\n "],[1,[28,[30,0,["concatErrors"]],[[30,3,["messages"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[3,4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["&attrs","@errors","error","name"],false,["if","each","-each-in"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/errors-summary.js",scope:()=>[r.default,o.i18n,s.concat],isStrictMode:!0}),this))()}},93402:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(21237),r=n(76417),o=n(82739);class a extends i.default{concatErrors(e){return e.join(", ")}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"fQmBKq8+",block:'[[[1,"\\n "],[11,2],[24,0,"form-kit__errors"],[16,1,[30,1]],[24,"aria-live","assertive"],[17,2],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[30,0,["concatErrors"]],[[30,3,["messages"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@id","&attrs","@error"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/errors.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},38110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(37138),s=n(70001),r=n(95705),o=n(75126),a=n(14063),l=n(76417),u=n(82739);class c extends i.default{id=(()=>(0,a.default)())();errorId=(()=>(0,a.default)())();type;constructor(){if(super(...arguments),!this.args.title?.length)throw Error("@title is required on ``.");this.args.registerField(this.name,this)}get value(){return this.args.data.get(this.name)}get rules(){return this.args.validation?r.default.parse(this.args.validation):null}async set(e){this.args.onSet?await this.args.onSet(e,{set:this.args.set,index:this.args.collectionIndex}):await this.args.set(this.name,e,{index:this.args.collectionIndex}),this.args.triggerRevalidationFor(this.name)}static #e=(()=>dt7948.n(this.prototype,"set",[s.action]))();get title(){return this.args.title}get format(){return this.args.format}get disabled(){return this.args.disabled??!1}get description(){return this.args.description}get showTitle(){return this.args.showTitle??!0}get addError(){return this.args.addError}get name(){if("string"!=typeof this.args.name)throw Error("@name is required and must be a string on ``.");if(this.args.name.includes(".")||this.args.name.includes("-"))throw Error("@name can't include `.` or `-`.");return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get validation(){return this.args.validation}get customValidate(){return this.args.validate}get required(){return this.rules?.required??!1}get maxLength(){return this.rules?.length?.max??null}get minLength(){return this.rules?.length?.min??null}async validate(e,t,n){if(this.disabled)return;await this.customValidate?.(e,t,{data:n,type:this.type,addError:this.addError});let i=new o.default(t,this.rules);(await i.validate(this.type)).forEach(t=>{let n=this.title;void 0!==this.args.collectionIndex&&(n+=` #${this.args.collectionIndex+1}`),this.addError(e,{title:n,message:t})})}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"BXcbNW7J",block:'[[[1,"\\n "],[18,1,[[30,0]]],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field-data.js",isStrictMode:!0}),this))()}},52405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var i=n(37138),s=n(39882),r=n(99542),o=n(20706),a=n(76745),l=n(18204),u=n(13158),c=n(31722),d=n(94935),p=n(11664),h=n(67214),m=n(9839),g=n(62794),f=n(60483),_=n(17401),y=n(2559),b=n(47302),w=n(38110),k=n(29997),x=n(76417),T=n(82739),S=n(88606);let C=(0,x.setComponentTemplate)((0,T.createTemplateFactory)({id:"CsG8ZtZr",block:'[[[1,"\\n "],[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[8,[30,1,["Col"]],null,[["@size"],[[30,2]]],[["default"],[[[[1,"\\n "],[18,3,null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1]]]]],[1,"\\n"]],["row","@size","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",scope:()=>[k.default],isStrictMode:!0}),(0,S.default)(void 0,"field:RowColWrapper")),E=(0,x.setComponentTemplate)((0,T.createTemplateFactory)({id:"n5XyIG/O",block:'[[[1,"\\n"],[1," "],[18,1,null],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",isStrictMode:!0}),(0,S.default)(void 0,"field:EmptyWrapper"));class A extends i.default{get wrapper(){return this.args.size?C:E}static #e=(()=>(0,x.setComponentTemplate)((0,T.createTemplateFactory)({id:"/6ruhUhx",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@data","@triggerRevalidationFor","@title","@description","@showTitle","@collectionIndex","@set","@addError","@validate","@validation","@onSet","@registerField","@format","@disabled","@parentName"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],[["default"],[[[[1,"\\n "],[8,[30,0,["wrapper"]],null,[["@size"],[[30,18]]],[["default"],[[[[1,"\\n "],[18,21,[[28,[32,1],null,[["Custom","Code","Question","Textarea","Checkbox","Image","Password","Composer","Icon","Toggle","Menu","Select","Input","RadioGroup","errorId","id","name","set","value"],[[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,3],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,4],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,5],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,6],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,7],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,8],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,9],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,10],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,11],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,12],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,13],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,14],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,15],[30,17]]]],[50,[32,2],0,null,[["unregisterField","errors","component","field"],[[30,19],[30,20],[32,16],[30,17]]]],[30,17,["errorId"]],[30,17,["id"]],[30,17,["name"]],[30,17,["set"]],[30,17,["value"]]]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[17]]]]],[1,"\\n "]],["@name","@data","@triggerRevalidationFor","@title","@description","@showTitle","@collectionIndex","@set","@addError","@validate","@validation","@onSet","@registerField","@format","@disabled","@parentName","field","@size","@unregisterField","@errors","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/field.js",scope:()=>[w.default,s.hash,b.default,l.default,o.default,m.default,_.default,r.default,c.default,h.default,a.default,u.default,y.default,p.default,f.default,d.default,g.default],isStrictMode:!0}),this))()}},4925:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(62278),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"rrv8SmR9",block:'[[[1,"\\n "],[11,"fieldset"],[16,3,[30,1]],[24,0,"form-kit__fieldset"],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"legend"],[14,0,"form-kit__fieldset-title"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[32,0],[[24,0,"form-kit__fieldset-description"]],null,[["default"],[[[[1,"\\n "],[1,[30,4]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],["@name","&attrs","@title","@description","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/fieldset.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"fieldset:FKFieldset"))},47919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var i=n(37138),s=n(28564),r=n(39882),o=n(87075),a=n(70001),l=n(54729),u=n(92976),c=n(51635),d=n(47126),p=n(87593),h=n(46814),m=n(45035),g=n(12947),f=n(52405),_=n(4925),y=n(80987),b=n(8102),w=n(29997),k=n(17874),x=n(6337),T=n(37297),S=n(55272),C=n(51969),E=n(76417),A=n(82739),D=n(88606);class I extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[l.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[l.service]))();#N=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"isValidating",[s.tracked],function(){return!1}))();#cP=(()=>void dt7948.i(this,"isValidating"))();static #l=(()=>dt7948.g(this.prototype,"isSubmitting",[s.tracked],function(){return!1}))();#cM=(()=>void dt7948.i(this,"isSubmitting"))();fields=(()=>new Map)();formData=(()=>new S.default(this.args.data??{}))();constructor(){super(...arguments),this.args.onRegisterApi?.({set:this.set,setProperties:this.setProperties,submit:this.onSubmit,reset:this.onReset,addError:this.addError,removeError:this.removeError}),this.router.on("routeWillChange",this.checkIsDirty)}willDestroy(){super.willDestroy(),this.router.off("routeWillChange",this.checkIsDirty)}async checkIsDirty(e){!this.formData.isDirty||e.isAborted||e.queryParamsOnly||(e.abort(),this.dialog.yesNoConfirm({message:(0,C.i18n)("form_kit.dirty_form"),didConfirm:async()=>{await this.onReset(),e.retry()}}))}static #u=(()=>dt7948.n(this.prototype,"checkIsDirty",[a.action]))();get validateOn(){return this.args.validateOn??T.VALIDATION_TYPES.submit}get fieldValidationEvent(){let{validateOn:e}=this;if(e!==T.VALIDATION_TYPES.submit)return e}addError(e,t){let{title:n,message:i}=t;this.formData.addError(e,{title:n,message:i})}static #c=(()=>dt7948.n(this.prototype,"addError",[a.action]))();removeError(e){this.formData.removeError(e)}static #d=(()=>dt7948.n(this.prototype,"removeError",[a.action]))();async addItemToCollection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.formData.get(e)??[];this.formData.set(e,n.concat(t))}static #p=(()=>dt7948.n(this.prototype,"addItemToCollection",[a.action]))();async remove(e,t){let n=this.formData.get(e)??[];this.formData.set(e,n.filter((e,n)=>n!==t)),Object.keys(this.formData.errors).forEach(n=>{n.startsWith(`${e}.${t}.`)&&this.formData.removeError(n)})}static #h=(()=>dt7948.n(this.prototype,"remove",[a.action]))();async set(e,t){this.formData.set(e,t),this.fieldValidationEvent===T.VALIDATION_TYPES.change&&await this.triggerRevalidationFor(e)}static #m=(()=>dt7948.n(this.prototype,"set",[a.action]))();async setProperties(e){for(let[t,n]of Object.entries(e))await this.set(t,n)}static #g=(()=>dt7948.n(this.prototype,"setProperties",[a.action]))();registerField(e,t){if(!e)throw Error("@name is required on ``.");if(this.fields.has(e))throw Error(`@name="${e}", is already in use. Names of \`\` must be unique!`);return this.fields.set(e,t),t}static #E=(()=>dt7948.n(this.prototype,"registerField",[a.action]))();unregisterField(e){this.fields.delete(e),this.removeError(e)}static #A=(()=>dt7948.n(this.prototype,"unregisterField",[a.action]))();async onSubmit(e){if(e?.preventDefault(),!this.isSubmitting)try{this.isSubmitting=!0,await this.validate(this.fields.values()),this.formData.isValid&&(this.formData.save(),await this.args.onSubmit?.(this.formData.draftData))}finally{this.isSubmitting=!1}}static #D=(()=>dt7948.n(this.prototype,"onSubmit",[a.action]))();async onReset(e){e?.preventDefault(),this.formData.removeErrors(),await this.formData.rollback(),await this.args.onReset?.(this.formData.draftData)}static #I=(()=>dt7948.n(this.prototype,"onReset",[a.action]))();async triggerRevalidationFor(e){let t=this.fields.get(e);t&&this.formData.errors[e]&&await this.validate([t])}static #G=(()=>dt7948.n(this.prototype,"triggerRevalidationFor",[a.action]))();async validate(e){if(!this.isValidating){this.isValidating=!0;try{for(let t of e)this.formData.removeError(t.name),await t.validate?.(t.name,this.formData.get(t.name),this.formData.draftData);await this.args.validate?.(this.formData.draftData,{addError:this.addError,removeError:this.removeError})}finally{this.isValidating=!1}}}static #Y=(()=>(0,E.setComponentTemplate)((0,A.createTemplateFactory)({id:"NzZJxmEK",block:'[[[1,"\\n "],[11,"form"],[24,"novalidate",""],[24,0,"form-kit"],[17,1],[4,[32,0],["submit",[30,0,["onSubmit"]]],null],[4,[32,0],["reset",[30,0,["onReset"]]],null],[12],[1,"\\n "],[8,[32,1],null,[["@errors"],[[30,0,["formData","errors"]]]],null],[1,"\\n\\n "],[18,2,[[28,[32,2],null,[["Row","Section","Fieldset","ConditionalContent","Container","Actions","Button","Alert","Submit","Reset","Field","Collection","Object","InputGroup","CheckboxGroup","set","setProperties","addItemToCollection"],[[32,3],[32,4],[32,5],[50,[32,6],0,null,null],[32,7],[50,[32,4],0,null,[["class"],["form-kit__actions"]]],[50,[32,8],0,null,[["class"],["form-kit__button"]]],[32,9],[50,[32,10],0,null,[["action","forwardEvent","class","type","isLoading"],[[30,0,["onSubmit"]],true,"btn-primary form-kit__button","submit",[30,0,["isSubmitting"]]]]],[50,[32,8],0,null,[["action","forwardEvent","class","label"],[[30,0,["onReset"]],true,"form-kit__button","form_kit.reset"]]],[50,[32,11],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor"],[[30,0,["formData","errors"]],[30,0,["addError"]],[30,0,["formData"]],[30,0,["set"]],[30,0,["registerField"]],[30,0,["unregisterField"]],[30,0,["triggerRevalidationFor"]]]]],[50,[32,12],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor"],[[30,0,["formData","errors"]],[30,0,["addError"]],[30,0,["formData"]],[30,0,["set"]],[30,0,["remove"]],[30,0,["registerField"]],[30,0,["unregisterField"]],[30,0,["triggerRevalidationFor"]]]]],[50,[32,13],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","remove"],[[30,0,["formData","errors"]],[30,0,["addError"]],[30,0,["formData"]],[30,0,["set"]],[30,0,["registerField"]],[30,0,["unregisterField"]],[30,0,["triggerRevalidationFor"]],[30,0,["remove"]]]]],[50,[32,14],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor"],[[30,0,["formData","errors"]],[30,0,["addError"]],[30,0,["formData"]],[30,0,["set"]],[30,0,["remove"]],[30,0,["registerField"]],[30,0,["unregisterField"]],[30,0,["triggerRevalidationFor"]]]]],[50,[32,15],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor"],[[30,0,["formData","errors"]],[30,0,["addError"]],[30,0,["formData"]],[30,0,["set"]],[30,0,["remove"]],[30,0,["registerField"]],[30,0,["unregisterField"]],[30,0,["triggerRevalidationFor"]]]]],[30,0,["set"]],[30,0,["setProperties"]],[30,0,["addItemToCollection"]]]]],[30,0,["formData","draftData"]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/form.js",scope:()=>[o.on,g.default,r.hash,w.default,k.default,_.default,m.default,h.default,u.default,c.default,x.default,f.default,p.default,b.default,y.default,d.default],isStrictMode:!0}),this))()}let P=(0,E.setComponentTemplate)((0,A.createTemplateFactory)({id:"5b7SwWEc",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[28,[32,0],[[30,1]],null]],null]],null],null,[[[1," "],[8,[32,1],[[17,3]],[["@data","@onSubmit","@validate","@validateOn","@onRegisterApi","@onReset"],[[30,2],[30,4],[30,5],[30,6],[30,7],[30,8]]],[["default"],[[[[1,"\\n "],[18,11,[[30,9],[30,10]]],[1,"\\n "]],[9,10]]]]],[1,"\\n"]],[2]],null]],["@data","data","&attrs","@onSubmit","@validate","@validateOn","@onRegisterApi","@onReset","components","draftData","&default"],false,["each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/form.js",scope:()=>[r.array,I],isStrictMode:!0}),(0,D.default)(void 0,"form:Form"))},80987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(52405),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"YRUquOU1",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__input-group"],[12],[1,"\\n "],[18,9,[[28,[32,0],null,[["Field"],[[50,[32,1],0,null,[["errors","addError","data","set","remove","registerField","unregisterField","triggerRevalidationFor","showMeta"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],false]]]]]]]],[1,"\\n "],[13],[1,"\\n"]],["@errors","@addError","@data","@set","@remove","@registerField","@unregisterField","@triggerRevalidationFor","&default"],false,["yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/input-group.js",scope:()=>[i.hash,s.default],isStrictMode:!0}),(0,a.default)(void 0,"input-group:FKInputGroup"))},31147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"/t8VX6sR",block:'[[[1,"\\n "],[11,"label"],[16,"for",[30,1]],[17,2],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],["@fieldId","&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/label.js",isStrictMode:!0}),(0,r.default)(void 0,"label:FKLabel"))},45424:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(37138),s=n(20256),r=n(93402),o=n(76417),a=n(82739);class l extends i.default{get shouldRenderCharCounter(){return this.args.field.maxLength>0&&!this.args.field.disabled}get shouldRenderMeta(){return this.showMeta&&(this.shouldRenderCharCounter||this.args.error)}get showMeta(){return this.args.showMeta??!0}static #e=(()=>(0,o.setComponentTemplate)((0,a.createTemplateFactory)({id:"ln0RNVQn",block:'[[[1,"\\n"],[41,[30,0,["shouldRenderMeta"]],[[[1," "],[10,0],[14,0,"form-kit__meta"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@id","@error"],[[30,2,["errorId"]],[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldRenderCharCounter"]],[[[1," "],[8,[32,1],null,[["@value","@minLength","@maxLength"],[[30,2,["value"]],[30,2,["minLength"]],[30,2,["maxLength"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["@error","@field"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/meta.js",scope:()=>[r.default,s.default],isStrictMode:!0}),this))()}},8102:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(37138),s=n(39882),r=n(87593),o=n(52405),a=n(76417),l=n(82739);class u extends i.default{get objectData(){return this.args.data.get(this.name)}get name(){return this.args.parentName?`${this.args.parentName}.${this.args.name}`:this.args.name}get keys(){return Object.keys(this.objectData)}entryData(e){return this.objectData[e]}static #e=(()=>(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"kAHbdPCW",block:'[[[1,"\\n "],[10,0],[14,0,"form-kit__object"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["keys"]]],null]],null],"index",[[[1," "],[18,10,[[28,[32,0],null,[["Field","Object","Collection"],[[50,[32,1],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]]]]],[50,[32,2],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]]]]],[50,[32,3],0,null,[["errors","addError","data","set","registerField","unregisterField","triggerRevalidationFor","parentName","remove"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,0,["name"]],[30,9]]]]]]],[30,1],[28,[30,0,["entryData"]],[[30,1]],null]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["name","@errors","@addError","@data","@set","@registerField","@unregisterField","@triggerRevalidationFor","@remove","&default"],false,["each","-track-array","yield","component"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/object.js",scope:()=>[s.hash,o.default,u,r.default],isStrictMode:!0}),this))()}},29997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(39882),s=n(83579),r=n(76417),o=n(82739),a=n(88606);let l=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"ziBXeloV",block:'[[[1,"\\n "],[11,0],[24,0,"form-kit__row"],[17,1],[12],[1,"\\n "],[18,2,[[28,[32,0],null,[["Col"],[[32,1]]]]]],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/row.js",scope:()=>[i.hash,s.default],isStrictMode:!0}),(0,a.default)(void 0,"row:FKRow"))},17874:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(27147),s=n(76417),r=n(82739),o=n(88606);let a=(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"wG10/z8Q",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["form-kit__section",[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[10,"h2"],[14,0,"form-kit__section-title"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[10,1],[14,0,"form-kit__section-subtitle"],[12],[1,[30,4]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n"]],["@class","&attrs","@title","@subtitle","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/section.js",scope:()=>[i.default],isStrictMode:!0}),(0,o.default)(void 0,"section:FKSection"))},6337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(37138),s=n(92976),r=n(76417),o=n(82739);class a extends i.default{get label(){return this.args.label??"submit"}static #e=(()=>(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"GV7MEAfH",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary form-kit__button"],[24,4,"submit"],[17,1]],[["@label","@action","@forwardEvent","@isLoading"],[[30,0,["label"]],[30,2],"true",[30,3]]],null],[1,"\\n "]],["&attrs","@onSubmit","@isLoading"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/submit.js",scope:()=>[s.default],isStrictMode:!0}),this))()}},62278:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"ftVkxDau",block:'[[[1,"\\n "],[11,2],[24,0,"form-kit-text"],[17,1],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/text.js",isStrictMode:!0}),(0,r.default)(void 0,"text:FKText"))},37297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NO_VALUE_OPTION:()=>s,VALIDATION_TYPES:()=>i});let i={submit:"submit",change:"change",focusout:"focusout",input:"input"},s="__NONE__"},55272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Q});var i,s=n(28564),r=n(42433),o=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),l=Symbol.for("immer-state");function u(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function d(e){return!!e&&!!e[l]}function p(e){return!!e&&(m(e)||Array.isArray(e)||!!e[a]||!!e.constructor?.[a]||w(e)||k(e))}var h=Object.prototype.constructor.toString();function m(e){if(!e||"object"!=typeof e)return!1;let t=c(e);if(null===t)return!0;let n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===h}function g(e,t){0===f(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function f(e){let t=e[l];return t?t.type_:Array.isArray(e)?1:w(e)?2:k(e)?3:0}function _(e,t){return 2===f(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y(e,t){return 2===f(e)?e.get(t):e[t]}function b(e,t,n){let i=f(e);2===i?e.set(t,n):3===i?e.add(n):e[t]=n}function w(e){return e instanceof Map}function k(e){return e instanceof Set}function x(e){return e.copy_||e.base_}function T(e,t){if(w(e))return new Map(e);if(k(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=m(e);if(!0!==t&&("class_only"!==t||n)){let t=c(e);return null!==t&&n?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[l];let n=Reflect.ownKeys(t);for(let i=0;i1&&void 0!==arguments[1]&&arguments[1];return E(e)||d(e)||!p(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=C),Object.freeze(e),t&&Object.entries(e).forEach(e=>{let[t,n]=e;return S(n,!0)})),e}function C(){u(2)}function E(e){return Object.isFrozen(e)}var A={};function D(e){let t=A[e];return t||u(0,e),t}function I(){return i}function P(e,t){t&&(D("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function M(e){F(e),e.drafts_.forEach(O),e.drafts_=null}function F(e){e===i&&(i=e.parent_)}function N(e){return i=function(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}(i,e)}function O(e){let t=e[l];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return void 0!==e&&e!==n?(n[l].modified_&&(M(t),u(4)),p(e)&&(e=R(t,e),t.parent_||j(t,e)),t.patches_&&D("Patches").generateReplacementPatches_(n[l].base_,e,t.patches_,t.inversePatches_)):e=R(t,n,[]),M(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==o?e:void 0}function R(e,t,n){if(E(t))return t;let i=t[l];if(!i)return g(t,(s,r)=>U(e,i,t,s,r,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return j(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,s=t,r=!1;3===i.type_&&(s=new Set(t),t.clear(),r=!0),g(s,(s,o)=>U(e,i,t,s,o,n,r)),j(e,t,!1),n&&e.patches_&&D("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function U(e,t,n,i,s,r,o){if(d(s)){let o=R(e,s,r&&t&&3!==t.type_&&!_(t.assigned_,i)?r.concat(i):void 0);if(b(n,i,o),!d(o))return;e.canAutoFreeze_=!1}else o&&n.add(s);if(p(s)&&!E(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R(e,s),(!t||!t.scope_.parent_)&&"symbol"!=typeof i&&Object.prototype.propertyIsEnumerable.call(n,i)&&j(e,s)}}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&S(t,n)}var B={get(e,t){if(t===l)return e;let n=x(e);if(!_(n,t))return function(e,t,n){let i=q(t,n);return i?"value"in i?i.value:i.get?.call(e.draft_):void 0}(e,n,t);let i=n[t];return e.finalized_||!p(i)?i:i===$(e.base_,t)?(V(e),e.copy_[t]=W(i,e)):i},has:(e,t)=>t in x(e),ownKeys:e=>Reflect.ownKeys(x(e)),set(e,t,n){let i=q(x(e),t);if(i?.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){let i=$(x(e),t),s=i?.[l];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||_(e.base_,t)))return!0;V(e),H(e)}return!!(e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==$(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,V(e),H(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let n=x(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},defineProperty(){u(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){u(12)}},z={};function $(e,t){let n=e[l];return(n?x(n):e)[t]}function q(e,t){if(!(t in e))return;let n=c(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=c(n)}}function H(e){!e.modified_&&(e.modified_=!0,e.parent_&&H(e.parent_))}function V(e){e.copy_||(e.copy_=T(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function W(e,t){let n=w(e)?D("MapSet").proxyMap_(e,t):k(e)?D("MapSet").proxySet_(e,t):function(e,t){let n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},s=i,r=B;n&&(s=[i],r=z);let{revoke:o,proxy:a}=Proxy.revocable(s,r);return i.draft_=a,i.revoke_=o,a}(e,t);return(t?t.scope_:I()).drafts_.push(n),n}g(B,(e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)},z.set=function(e,t,n){return B.set.call(this,e[0],t,n,e[0])};var K=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{let i;if("function"==typeof e&&"function"!=typeof t){let n=t;t=e;let i=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var s=arguments.length,r=Array(s>1?s-1:0),o=1;ot.call(this,e,...r))}}if("function"!=typeof t&&u(6),void 0!==n&&"function"!=typeof n&&u(7),p(e)){let s=N(this),r=W(e,void 0),o=!0;try{i=t(r),o=!1}finally{o?M(s):F(s)}return P(s,n),L(i,s)}if(e&&"object"==typeof e)u(1,e);else{if(void 0===(i=t(e))&&(i=e),i===o&&(i=void 0),this.autoFreeze_&&S(i,!0),n){let t=[],s=[];D("Patches").generateReplacementPatches_(e,i,t,s),n(t,s)}return i}},this.produceWithPatches=(e,n)=>{let i,s;return"function"==typeof e?function(n){for(var i=arguments.length,s=Array(i>1?i-1:0),r=1;re(t,...s))}:[this.produce(e,n,(e,t)=>{i=e,s=t}),i,s]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){p(e)||u(8),d(e)&&(e=function(e){return d(e)||u(10,e),function e(t){let n;if(!p(t)||E(t))return t;let i=t[l];if(i){if(!i.modified_)return i.base_;i.finalized_=!0,n=T(t,i.scope_.immer_.useStrictShallowCopy_)}else n=T(t,!0);return g(n,(t,i)=>{b(n,t,e(i))}),i&&(i.finalized_=!1),n}(e)}(e));let t=N(this),n=W(e,void 0);return n[l].isManual_=!0,F(t),n}finishDraft(e,t){let n=e&&e[l];n&&n.isManual_||u(9);let{scope_:i}=n;return P(i,t),L(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));let i=D("Patches").applyPatches_;return d(e)?i(e,t):this.produce(e,e=>i(e,t))}},G=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseStrictShallowCopy.bind(K);var Y=K.applyPatches.bind(K);K.createDraft.bind(K),K.finishDraft.bind(K),function(){let e="replace",t="remove";function n(e){if(!p(e))return e;if(Array.isArray(e))return e.map(n);if(w(e))return new Map(Array.from(e.entries()).map(e=>{let[t,i]=e;return[t,n(i)]}));if(k(e))return new Set(Array.from(e).map(n));let t=Object.create(c(e));for(let i in e)t[i]=n(e[i]);return _(e,a)&&(t[a]=e[a]),t}function i(e){return d(e)?n(e):e}!function(e,t){A[e]||(A[e]=t)}("Patches",{applyPatches_:function(i,s){return s.forEach(s=>{let{path:r,op:o}=s,a=i;for(let e=0;e{let c=y(a,n),d=y(l,n),p=u?_(a,n)?e:"add":t;if(c===d&&p===e)return;let h=s.concat(n);r.push(p===t?{op:p,path:h}:{op:p,path:h,value:d}),o.push("add"===p?{op:t,path:h}:p===t?{op:"add",path:h,value:i(c)}:{op:e,path:h,value:i(c)})})}(n,s,r,o);case 1:return function(n,s,r,o){let{base_:a,assigned_:l}=n,u=n.copy_;u.length{if(!o.has(e)){let r=n.concat([a]);i.push({op:t,path:r,value:e}),s.unshift({op:"add",path:r,value:e})}a++}),a=0,o.forEach(e=>{if(!r.has(e)){let r=n.concat([a]);i.push({op:"add",path:r,value:e}),s.unshift({op:t,path:r,value:e})}a++})}(n,s,r,o)}},generateReplacementPatches_:function(t,n,i,s){i.push({op:e,path:[],value:n===o?void 0:n}),s.push({op:e,path:[],value:t})}})}();class Q{static #e=(()=>dt7948.g(this.prototype,"data",[s.tracked]))();#cF=(()=>void dt7948.i(this,"data"))();static #n=(()=>dt7948.g(this.prototype,"draftData",[s.tracked]))();#cN=(()=>void dt7948.i(this,"draftData"))();static #i=(()=>dt7948.g(this.prototype,"errors",[s.tracked],function(){return{}}))();#nP=(()=>void dt7948.i(this,"errors"))();patches=[];inversePatches=[];constructor(e){try{this.data=G(e,()=>{}),this.draftData=G(e,()=>{})}catch(e){if(e.message.includes("[Immer]"))throw Error("[FormKit]: the @data property expects a POJO.")}}get isValid(){return 0===Object.keys(this.errors).length}get isInvalid(){return!this.isValid}get isPristine(){return this.patches.length+this.inversePatches.length===0}get isDirty(){return!this.isPristine}execute(){this.data=Y(this.data,this.patches)}unexecute(){this.data=Y(this.data,this.inversePatches)}save(){this.execute(),this.resetPatches()}async rollback(){for(;this.inversePatches.length>0;)this.draftData=Y(this.draftData,[this.inversePatches.pop()]);this.resetPatches(),await new Promise(e=>(0,r.next)(e))}addError(e,t){this.errors.hasOwnProperty(e)?(this.errors[e].messages.push(t.message),this.errors={...this.errors}):this.errors={...this.errors,[e]:{title:t.title,messages:[t.message]}}}removeError(e){delete this.errors[e],this.errors={...this.errors}}removeErrors(){this.errors={}}get(e){let t=e.split("."),n=this.draftData[t.shift()];for(;t.length;)n=n[t.shift()];return n}set(e,t){this.draftData=G(this.draftData,n=>{let i=e.split(".");for(;i.length>1;)n=n[i.shift()];n[i[0]]=t},(e,t)=>{this.patches.push(...e),this.inversePatches.push(...t)})}resetPatches(){this.patches=[],this.inversePatches=[]}}},95705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{static parse(e){return new i().parse(e)}parse(e){let t={};return(e?.split("|")??[]).forEach(e=>{let[n,i]=e.split(":").filter(Boolean);this[n+"Rule"]?t[n]=this[n+"Rule"](i):t[n]={}}),t}requiredRule(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t]=e.split(",");return{trim:"trim"===t}}betweenRule(e){if(!e)throw Error("`between` rule expects min/max, eg: between:1,10");let[t,n]=e.split(",").map(Number);return{min:t,max:n}}lengthRule(e){if(!e)throw Error("`length` rule expects min/max, eg: length:1,10");let[t,n]=e.split(",").map(Number);return{min:t,max:n}}}},75126:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(97355),s=n(51969);class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=e,this.rules=t}async validate(e){let t=[];for(let n in this.rules)if(this[n+"Validator"]){let i=await this[n+"Validator"](this.value,this.rules[n],e);i&&t.push(i)}else throw Error(`Unknown validator: ${n}`);return t}integerValidator(e){if(!Number.isInteger(Number(e)))return(0,s.i18n)("form_kit.errors.not_an_integer")}lengthValidator(e,t){return t.max&&e?.length>t.max?(0,s.i18n)("form_kit.errors.too_long",{count:t.max}):t.min&&e?.lengtht.max?(0,s.i18n)("form_kit.errors.too_high",{count:t.max}):t.min&&e{"use strict";n.r(t);var i=n(14682),s=n.n(i),r=n(94802),o=n.n(r),a=n(98448);window.__widget_helpers=a.default,window.virtualDom=o(),window.$||(window.$=window.jQuery=s())},98358:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.htmlSafe)((0,s.autoUpdatingRelativeAge)(new Date(e),{customTitle:t.customTitle,title:!0,addAgo:t.addAgo||!1,...t.defaultFormat&&{defaultFormat:t.defaultFormat}}))}(0,n(11508).registerRawHelper)("age-with-tooltip",r)},41087:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{addExtraUserClasses:()=>p,classesForUser:()=>h,default:()=>g,registerCustomAvatarHelper:()=>d,renderAvatar:()=>m});var s=n(70001),r=n(35804),o=n(59621),a=n(20802),l=n(79356),u=n(11508),c=n(51969);function d(e){(i=i||[]).push(e)}function p(e,t){let n=h(e).join(" ");return n&&n.length&&(t.extraClasses=n),t}function h(e){let t=[];if(i)for(let n=0;n0&&(d=(0,c.i18n)("user.avatar.name_and_description",{name:u,description:t}))}return(0,l.avatarImg)({size:t.imageSize,extraClasses:(0,s.get)(e,"extras")||t.extraClasses,title:d||u,avatarTemplate:r})}}function g(e,t){return(0,r.htmlSafe)(m.call(this,e,t))}(0,u.registerRawHelper)("avatar",g)},77315:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(2905),s=n(54729);class r extends i.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[s.service]))();#cO=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.body,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},74766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804);let s=["top","right","bottom","left"];function r(e,t){let n=t&&s.includes(t)?`border-${t}-color`:"border-color";return(0,i.htmlSafe)(`${n}: #${e} `)}},15767:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(97355),r=n(79356);function o(e,t,n){return(0,s.isEmpty)(e)?(0,i.htmlSafe)("
"):(0,i.htmlSafe)((0,r.avatarImg)({size:t,avatarTemplate:e,...n}))}},56220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(35804),s=n(97355),r=n(87239),o=n(79356);function a(e,t){return(0,s.isEmpty)(e)?(0,i.htmlSafe)("
"):(0,i.htmlSafe)((0,o.avatarImg)((0,r.addExtraUserClasses)(e,{size:t,avatarTemplate:e.avatar_template})))}},68838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.categoryLinkHTML});var i=n(12223)},73093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){return(0,i.htmlSafe)((0,s.autoUpdatingRelativeAge)(new Date(e),{format:"medium",title:!0}))}},90924:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(54216);function s(e){return(0,i.default)("capitalize-string helper is deprecated",{id:"discourse.capitalize-string",since:"3.1.0.beta6"}),e[0].toUpperCase()+e.slice(1)}},5152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(97355),s=n(12223);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.categoryLinkHTML)(e,{hideParent:t.hideParent,allowUncategorized:t.allowUncategorized,categoryStyle:t.categoryStyle,link:!!(0,i.isPresent)(t.link)&&t.link})}(0,n(11508).registerRawHelper)("category-badge",r)},15205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(35804);function s(e){return(0,i.htmlSafe)(`--category-badge-color: #${e};`)}},12223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addExtraIconRenderer:()=>f,categoryBadgeHTML:()=>_,categoryLinkHTML:()=>y,default:()=>b,defaultCategoryLinkRenderer:()=>w,replaceCategoryLinkRenderer:()=>m});var i=n(70001),s=n(35804),r=n(22994),o=n(83357),a=n(20802),l=n(88253),u=n(87389),c=n(11508),d=n(20762),p=n(51969);let h=w;function m(e){h=e}let g=[];function f(e){g.push(e)}function _(e,t){let{site:n,siteSettings:s}=(0,c.helperContext)();if(t=t||{},!e||!t.allowUncategorized&&(0,i.get)(e,"id")===n.uncategorized_category_id&&s.suppress_uncategorized_badge)return"";let r=(t.depth||1)+1;if(t.ancestors){let{ancestors:n,...i}=t;return[e,...n].reverse().map(e=>_(e,i)).join("")}if(t.recursive&&r<=s.max_category_nesting){let n=l.default.findById(e.parent_category_id),i=!t.depth;t.depth=r;let s=_(n,t);return t.lastSubcategory=i,s+h(e,t)}return h(e,t)}function y(e,t){let n={};return t&&t.hash&&(t=t.hash),t&&(t.allowUncategorized&&(n.allowUncategorized=!0),void 0!==t.link&&(n.link=t.link),t.previewColor&&(n.previewColor=!0),t.extraClasses&&(n.extraClasses=t.extraClasses),t.hideParent&&(n.hideParent=!0),t.recursive&&(n.recursive=!0),t.ancestors&&(n.ancestors=t.ancestors)),(0,s.htmlSafe)(_(e,n))}let b=y;function w(e,t){let n=(0,o.applyValueTransformer)("category-description-text",(0,a.escapeExpression)((0,i.get)(e,"description_text")),{category:e}),s=(0,i.get)(e,"read_restricted"),h=t.url?t.url:(0,u.default)(`/c/${l.default.slugFor(e)}/${(0,i.get)(e,"id")}`),m=!1===t.link?"":h,f=!1===t.link||"false"===t.link?"span":"a",_=t.extraClasses?" "+t.extraClasses:"",y=`${(0,r.default)(e)}`,b="",w=null,k="",x=e?`data-category-id="${(0,i.get)(e,"id")}"`:"";t.hideParent||(w=l.default.findById((0,i.get)(e,"parent_category_id")));let T=(0,c.helperContext)().siteSettings,S="badge-category";s&&(S+=" restricted"),w&&(S+=" --has-parent",x+=` data-parent-category-id="${w.id}"`),b+=``;let C=(0,o.applyValueTransformer)("category-display-name",(0,a.escapeExpression)((0,i.get)(e,"name")),{category:e});return T.support_mixed_text_direction&&(k='dir="auto"'),s&&(b+=(0,d.iconHTML)("lock")),g.forEach(t=>{let n=t(e);n&&(b+=(0,d.iconHTML)(n))}),b+=`${C}`,b+="",t.topicCount&&(b+=function(e){return`× ${e}`}(t.topicCount)),t.subcategoryCount&&(b+=`${(0,p.i18n)("category_row.subcategory_count",{count:t.subcategoryCount})}`),m&&(m=` href="${m}" `),`<${f} class="badge-category__wrapper ${_}" ${y.length>0?`style="${y}"`:""} ${m}>${b}`}(0,c.registerRawHelper)("category-link",y)},22994:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(35804);function s(e){let t="";return e.color&&(t+=`--category-badge-color: #${e.color};`),e.text_color&&(t+=`--category-badge-text-color: #${e.text_color};`),e.parentCategory?.color&&(t+=`--parent-category-badge-color: #${e.parentCategory.color};`),e.parentCategory?.text_color&&(t+=`--parent-category-badge-text-color: #${e.parentCategory.text_color};`),(0,i.htmlSafe)(t)}},93743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(11508);function s(e){return e.getTime()/864e5}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.class||"age";if(!e)return n;let r=s(t.startDate||new Date),o=s(new Date(e)),a=(0,i.helperContext)().siteSettings;return r-o>a.cold_age_days_high?n+" coldmap-high":r-o>a.cold_age_days_medium?n+" coldmap-med":r-o>a.cold_age_days_low?n+" coldmap-low":n}(0,i.registerRawHelper)("cold-age-class",r)},27147:(e,t,n)=>{"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;ni})},97367:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearHTMLCache:()=>a,getCustomHTML:()=>o,setCustomHTML:()=>l});var i=n(35804),s=n(83611);let r={};function o(e){let t=r[e];if(t)return(0,i.htmlSafe)(t);let n=s.default.get("customHTML");if(n&&n[e]&&n[e].length)return(0,i.htmlSafe)(n[e])}function a(){r={}}function l(e,t){r[e]=t}},64100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(97355);function r(e){return(0,s.isEmpty)(e)?(0,i.htmlSafe)("—"):e}},82083:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(54836);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,i.dasherize)(e.replace(".","-"))}},85578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addUsernameSelectorDecorator:()=>o,decorateUsername:()=>l,default:()=>u,resetUsernameDecorators:()=>a});var i=n(35804),s=n(11508);let r=[];function o(e){r.push(e)}function a(){r=[]}function l(e){let t=[];return r.forEach(n=>{t.push(n(e))}),t.length?(0,i.htmlSafe)(t.join("")):""}function u(e){return l(e)}(0,s.registerRawHelper)("decorate-username-selector",u)},96029:(e,t,n)=>{"use strict";function i(e){return new r(e)}function s(e){return e instanceof r}n.r(t),n.d(t,{default:()=>i,isDeprecatedOutletArgument:()=>s});class r{#ib;#cL;#cR;constructor(e){this.#ib=e.message,this.#cR=()=>e.value,this.#cL=e.silence,this.options={id:e.id||"discourse.plugin-connector.deprecated-arg",since:e.since,dropFrom:e.dropFrom,url:e.url,raiseError:e.raiseError}}get message(){return this.#ib}get silence(){return this.#cL}get value(){return this.#cR()}}},70800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(20802),r=n(11508);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;t.htmlSafe&&(n="true"===t.htmlSafe);let o=n?e:(0,s.escapeExpression)(e);return(0,i.htmlSafe)(function(e){let t=(0,r.helperContext)().siteSettings.support_mixed_text_direction;return`${e||""}`}(o))}(0,r.registerRawHelper)("dir-span",o)},34209:(e,t,n)=>{"use strict";function i(e){return"automatic"===e.column.type}n.r(t),n.d(t,{default:()=>i})},40738:(e,t,n)=>{"use strict";function i(e){return"user_field"===e.column.type}n.r(t),n.d(t,{default:()=>i})},13912:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(51969);function r(e){let t=e.item.get(e.column.name),n="automatic"===e.column.type?"directory.":"";return(0,i.htmlSafe)((0,s.i18n)(`${n}${e.column.name}`,{count:t}))}},19743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){return(0,i.htmlSafe)(`${(0,s.number)(e.item.get(e.column.name))}`)}},19193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(20762),r=n(51969);function o(e){let t="";e.icon&&(t+=(0,s.iconHTML)(e.icon));let n=e.labelKey||`directory.${e.field}`;return t+=e.translated?e.field:(0,r.i18n)(n+"_long",{defaultValue:(0,r.i18n)(n)}),(0,i.htmlSafe)(t)}},71540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(95733);function r(e,t){return(0,i.htmlSafe)((0,s.default)(e,t))}(0,n(11508).registerRawHelper)("discourse-tag",r)},17307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(40928);function r(e,t){return(0,i.htmlSafe)((0,s.default)(e,t))}(0,n(11508).registerRawHelper)("discourse-tags",r)},47042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(70001);function s(e,t){"category_id"===t&&(t="category.id");let n=(0,i.get)(e,t);return Array.isArray(n)?n.slice(0):n}},31496:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(76417),s=n(82739),r=n(88606);let o=(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"DyUIISDx",block:'[[[1,"\\n "],[18,1,null],[1,"\\n"]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,"element:empty")),a={div:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"0CMDnJf1",block:'[[[11,0],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),span:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"sIZx3Mbo",block:'[[[11,1],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),form:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"aHMeDlWT",block:'[[[11,"form"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),a:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"DMPGWHcK",block:'[[[11,3],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),button:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"s28TA0CZ",block:'[[[11,"button"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0)),td:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"/nlPcyNB",block:'[[[11,"td"],[17,1],[12],[18,2,null],[13]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",isStrictMode:!0}),(0,r.default)(void 0,void 0))};function l(e){if("string"!=typeof e)throw Error(`element helper only accepts string literals, you passed ${e}`);return null==e?null:""===e?o:a[e]?a[e]:(0,i.setComponentTemplate)((0,s.createTemplateFactory)({id:"xtqLwga7",block:'[[[1,"\\n "],[8,[32,0],[[17,1]],[["@tagName"],[[32,1]]],[["default"],[[[[18,2,null]],[]]]]],[1,"\\n "]],["&attrs","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/element.js",scope:()=>[i.default,e],isStrictMode:!0}),(0,r.default)(void 0,void 0))}},70530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(62167),r=n(20802);function o(e,t){let n=(0,r.escapeExpression)(`:${e}:`);return(0,i.htmlSafe)((0,s.emojiUnescape)(n,t))}(0,n(11508).registerRawHelper)("emoji",o)},95038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{iconNode:()=>s});var i=n(20762);function s(e,t){return(0,i.renderIcon)("node",e,t)}},98122:(e,t,n)=>{"use strict";function i(e){return parseFloat(e).toFixed(1)}n.r(t),n.d(t,{default:()=>i})},58143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){return e=new Date(e),(0,i.htmlSafe)((0,s.autoUpdatingRelativeAge)(e))}(0,n(11508).registerRawHelper)("format-age",r)},25614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n,r="medium",o=!0;if(t.leaveAgo&&(n="true"===t.leaveAgo),t.format&&(r=t.format),t.noTitle&&(o=!1),e){let a=new Date(e);return(0,i.htmlSafe)((0,s.autoUpdatingRelativeAge)(a,{format:r,title:o,leaveAgo:n,prefix:t.prefix}))}}(0,n(11508).registerRawHelper)("format-date",r)},31594:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){return(0,i.htmlSafe)((0,s.durationTiny)(e))}(0,n(11508).registerRawHelper)("format-duration",r)},99278:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(20802),s=n(11508);let r=i.formatUsername;(0,s.registerRawHelper)("format-username",i.formatUsername)},90687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(2905),s=n(23348),r=n(62797);function o(e){return class extends i.default{cleanupFn=null;constructor(){super(...arguments),(0,s.registerDestructor)(this,this.cleanup)}compute(t,n){if(t.length)throw Error("Positional arguments are not permitted for helperFn-defined helpers. Use named arguments instead.");return this.cleanup(),e(n,{cleanup:e=>{if(this.cleanupFn)throw Error("on.cleanup can only be called once");this.cleanupFn=e}})}cleanup(){this.cleanupFn?.(),this.cleanupFn=null}static #e=(()=>dt7948.n(this.prototype,"cleanup",[r.bind]))()}}},41949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(2905),s=n(54729);class r extends i.default{static #e=(()=>dt7948.g(this.prototype,"footer",[s.service]))();#aA=(()=>void dt7948.i(this,"footer"))();constructor(){super(...arguments),this.footer.registerHider(this)}compute(){}}},15611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(2905),s=n(42433),r=n(54729);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"header",[r.service]))();#tI=(()=>void dt7948.i(this,"header"))();registerHider(e){this.header.registerHider(this,e)}compute(e){let[...t]=e;(0,s.scheduleOnce)("afterRender",this,this.registerHider,t)}}},96652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(2905),s=n(42433),r=n(54729);class o extends i.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#tK=(()=>void dt7948.i(this,"sidebarState"))();constructor(){super(...arguments),(0,s.scheduleOnce)("afterRender",this,this.registerHider)}registerHider(){this.sidebarState.registerHider(this)}compute(){}}},75718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(2905),s=n(54729);class r extends i.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[s.service]))();#cO=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.documentElement,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},14749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70001),s=n(35804),r=n(97355),o=n(20762);function a(e){let t=(0,i.get)(e,"icon"),n=(0,i.get)(e,"image");return(0,r.isEmpty)(n)?(0,r.isEmpty)(t)?"":(0,s.htmlSafe)((0,o.iconHTML)((0,o.convertIconClass)(t))):(0,s.htmlSafe)(``)}},68784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38536),s=n(54216);function r(e){return(0,s.default)("inline-date helper is deprecated",{id:"discourse.inline-date",since:"3.1.0.beta6"}),e.value&&(e=e.value()),(0,i.relativeAge)(new Date(e))}},70264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,renderSpinner:()=>s,spinnerHTML:()=>r});var i=n(35804);function s(e){let t="
"}let r=s();function o(){let{size:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.htmlSafe)(s(e))}},36642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dateNode:()=>r,numberNode:()=>o});var i=n(94802),s=n(38536);function r(e){if("string"==typeof e&&(e=new Date(e)),e){let t={title:(0,s.longDate)(e),"data-time":e.getTime(),"data-format":"tiny"};return(0,i.h)("span.relative-date",{attributes:t},(0,s.relativeAge)(e))}}function o(e,t){t=t||{},isNaN(e=parseInt(e,10))&&(e=0);let n=e.toString(),r={},o=(0,s.number)(e);return o!==n&&(r.title=n),(0,i.h)("span.number",{className:t.className,attributes:r},o)}},9426:(e,t,n)=>{"use strict";function i(){return()=>{}}n.r(t),n.d(t,{default:()=>i})},15523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(35804),s=n(38536),r=n(20802),o=n(11508),a=n(51969);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isNaN(e=Math.round(parseFloat(e)))&&(e=0);let n=a.default.toNumber(e,{precision:0});t.numberKey&&(n=(0,a.i18n)(t.numberKey,{number:n,count:parseInt(e,10)}));let o="number";t.class&&(o+=" "+t.class);let l="",(0,i.htmlSafe)(l)}(0,o.registerRawHelper)("number",l)},72400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{reload:()=>s});var i=n(45929);function s(){(0,i.isTesting)()||location.reload()}},62052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(51969);let r={all:"all_time",yearly:"this_year",quarterly:"this_quarter",monthly:"this_month",daily:"today"};function o(e){let t,{showDateRange:n,fullDay:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,s.i18n)("filters.top."+(r[e]||"this_week"));if(!n)return(0,i.htmlSafe)(a);let l="";switch(t=o?moment().utc().subtract(1,"days"):moment(),e){case"yearly":l=t.clone().subtract(1,"year").format((0,s.i18n)("dates.long_with_year_no_time"))+" – "+t.format((0,s.i18n)("dates.long_with_year_no_time"));break;case"quarterly":l=t.clone().subtract(3,"month").format((0,s.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,s.i18n)("dates.long_no_year_no_time"));break;case"weekly":l=(o?t.clone().subtract(1,"week"):t.clone().subtract(6,"days")).format((0,s.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,s.i18n)("dates.long_no_year_no_time"));break;case"monthly":l=t.clone().subtract(1,"month").format((0,s.i18n)("dates.long_no_year_no_time"))+" – "+t.format((0,s.i18n)("dates.long_no_year_no_time"));break;case"daily":l=t.clone().format((0,s.i18n)("dates.full_no_year_no_time"))}return(0,i.htmlSafe)(`${a}${l}`)}},74323:(e,t,n)=>{"use strict";n.r(t);var i=n(35804),s=n(59874),r=n(50628),o=n(19491),a=n(84584),l=n(76417),u=n(82739),c=n(88606);let d=(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"dnRM2iyr",block:'[[[8,[32,0],null,[["@name","@outletArgs"],[[30,1,["name"]],[30,1,["outletArgs"]]]],null]],["@data"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/helpers/plugin-outlet.js",scope:()=>[s.default],isStrictMode:!0}),(0,c.default)(void 0,"plugin-outlet:GlimmerPluginOutletWrapper"));a.default.registerHelper("plugin-outlet",function(e){let{name:t,tagName:n,outletArgs:s}=e.hash;return(0,r.connectorsExist)(t)?(0,i.htmlSafe)((0,o.default)(this,`${n||"span"}.hbr-ember-outlet`,d,{name:t,outletArgs:s})):(0,i.htmlSafe)("")})},23139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(38536);function r(e){return(0,i.htmlSafe)((0,s.longDate)(new Date(e)))}(0,n(11508).registerRawHelper)("raw-date",r)},72767:(e,t,n)=>{"use strict";n.r(t),(0,n(11508).registerRawHelper)("raw-hash",function(e){return e})},42308:(e,t,n)=>{"use strict";n.r(t);var i=n(35804),s=n(50628);n(84584).default.registerHelper("raw-plugin-outlet",function(e){let t=(0,s.rawConnectorsFor)(e.hash.name);if(t.length){let e=t.map(e=>e.template({context:this}));return(0,i.htmlSafe)(e.join(""))}})},58830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=n(2905),s=n(23348),r=n(71597),o=n(42433),a=n(54729),l=n(35804),u=n(11508),c=n(7380),d=n(37441),p=n(62797);let h=function(e,t){e=e.replace(".","/");let n=(0,d.findRawTemplate)(e);if(!n){console.warn("Could not find raw template: "+e);return}return function(e,t,n,i){i={...i},i.parent||=e;let s=(0,u.helperContext)();if(!i.view){let e=s.registry.resolve(`raw-view:${n}`);e&&((0,r.setOwner)(i,(0,r.getOwner)(s)),i.view=e.create(i,s)),i.view||(i={...i,...s})}return(0,l.htmlSafe)(t(i,c.RUNTIME_OPTIONS))}(this,n,e,t)};(0,u.registerRawHelper)("raw",h);class m extends i.default{static #e=(()=>dt7948.g(this.prototype,"renderGlimmer",[a.service]))();#rx=(()=>void dt7948.i(this,"renderGlimmer"))();compute(e,t){return(0,s.registerDestructor)(this,this.cleanup),h(...e,t)}cleanup(){(0,o.schedule)("afterRender",()=>this.renderGlimmer.cleanup())}static #n=(()=>dt7948.n(this.prototype,"cleanup",[p.bind]))()}},34991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(62167),r=n(20802);function o(e,t){return e=(0,i.isHTMLSafe)(e)?e.toString():(0,r.escapeExpression)(e),(0,i.htmlSafe)((0,s.emojiUnescape)(e,t))}(0,n(11508).registerRawHelper)("replace-emoji",o)},36320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(35804),s=n(97869),r=n(16136),o=n(20762),a=n(51969);function l(e){return e.reviewable_history_type===r.EDITED?(0,i.htmlSafe)((0,o.iconHTML)("pencil")+" "+(0,a.i18n)("review.history.edited")):(0,i.htmlSafe)((0,s.htmlStatus)(e.status))}},97869:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,htmlStatus:()=>a});var i=n(35804),s=n(217),r=n(20762),o=n(51969);function a(e,t){let n=function(e,t){switch(e){case s.PENDING:return{name:"pending"};case s.APPROVED:switch(t){case"ReviewableQueuedPost":return{icon:"check",name:"approved_post",cssClass:"approved"};case"ReviewableUser":return{icon:"check",name:"approved_user",cssClass:"approved"};default:return{icon:"check",name:"approved_flag",cssClass:"approved"}}case s.REJECTED:switch(t){case"ReviewableQueuedPost":return{icon:"xmark",name:"rejected_post",cssClass:"rejected"};case"ReviewableUser":return{icon:"xmark",name:"rejected_user",cssClass:"rejected"};default:return{icon:"xmark",name:"rejected_flag",cssClass:"rejected"}}case s.IGNORED:return{icon:"up-right-from-square",name:"ignored"};case s.DELETED:return{icon:"trash-can",name:"deleted"}}}(e,t);if(!n)return;let i=n.icon?(0,r.iconHTML)(n.icon):"";return` ${i} ${(0,o.i18n)("review.statuses."+n.name+".title")} `}function l(e,t){return(0,i.htmlSafe)(a(e,t))}},40516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(89711),s=n(2905),r=n(38389),o=n(70001),a=n(71597),l=n(42433),u=n(45929);function c(e,t){let n;let s=(0,i.A)(function(e){return(0,i.A)(function(e){return(e._routerMicrolib||e.router).currentRouteInfos}(e)).mapBy("_route").reverse()}(e)).find(e=>"function"==typeof(n=(e.actions||e._actions)[t]));return{action:n,handler:s}}class d extends s.default{get router(){return(0,a.getOwner)(this).lookup("router:main")}static #e=(()=>dt7948.n(this.prototype,"router",[o.computed]))();compute(e){let[t,...n]=e;return function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),s=2;s{let{handler:n}=c(t,e)}),function(){let{action:n,handler:s}=c(t,e);for(var r=arguments.length,o=Array(r),a=0;a{"use strict";n.r(t),n.d(t,{resolveShareUrl:()=>s});var i=n(11508);function s(e,t){let n=(0,i.helperContext)().siteSettings,s=n.enable_badges,r=n.allow_username_in_share_links;return e+(t&&s&&r?`?u=${t.username_lower}`:"")}},84557:(e,t,n)=>{"use strict";function i(e){let t=e.match(/\//g);return t&&3===t.length&&(e=e.replace(/\/$/,"")),(e=(e=e.replace(/^https?:\/\//,"")).replace(/^www\./,"")).substring(0,80)}n.r(t),n.d(t,{default:()=>i}),(0,n(11508).registerRawHelper)("shorten-url",i)},58798:(e,t,n)=>{"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;ni})},63019:(e,t,n)=>{"use strict";function i(e){let t=e,n=Math.trunc(t/3600);n>=1?t-=3600*n:n=0;let i=Math.trunc(t/60);return i>=1?t-=60*i:i=0,{hours:n,minutes:i,seconds:t}}function s(e,t,n){return n+3600*e+60*t}function r(e){return moment.duration(e,"seconds").humanize()}function o(e,t,n){let i=new Date(n);return i=new Date(i.getTime()+1e3*t),!e.staff&&new Dateo,durationTextFromSeconds:()=>r,fromSeconds:()=>i,toSeconds:()=>s})},14374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(11508),s=n(51969);function r(e,t,n){if("number"!=typeof e)throw Error(`The theme-i18n helper is not supported in this context. In a theme .gjs file, use '{{i18n (themePrefix "${e}")}}' instead. 'themePrefix' is available automatically, and does not need to be imported. `);return(0,s.i18n)(`theme_translations.${e}.${t}`,n)}(0,i.registerRawHelper)("theme-i18n",r)},44974:(e,t,n)=>{"use strict";function i(e,t){return`theme_translations.${e}.${t}`}n.r(t),n.d(t,{default:()=>i}),(0,n(11508).registerRawHelper)("theme-prefix",i)},16268:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(71905);function s(e,t){if("number"!=typeof e)throw Error(`The theme-setting helper is not supported in this context. In a theme .gjs file, use '{{settings.${e}}}' instead. 'settings' is available automatically, and does not need to be imported. `);return(0,i.getSetting)(e,t)}(0,n(11508).registerRawHelper)("theme-setting",s)},38303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(55950);function r(e,t){return(0,i.htmlSafe)((0,s.default)(e,t))}(0,n(11508).registerRawHelper)("topic-featured-link",r)},70320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(35804);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.get("fancyTitle"),s=e.linked_post_number?e.urlForPostNumber(e.linked_post_number):e.get("lastUnreadUrl"),r=["title"];return t.class&&t.class.split(" ").forEach(e=>r.push(e)),(0,i.htmlSafe)(`${n}`)}(0,n(11508).registerRawHelper)("topic-link",s)},83189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(50827);class s extends i.default{render(e,t){let n=(n,i,s)=>{e.get(n)&&t(i,s)};e.get("closed")&&e.get("archived")?t("lock","locked_and_archived"):(n("closed","lock","locked"),n("archived","lock","archived")),this.forEach(e=>n(...e))}}let r=s.create({content:[["is_warning","envelope","warning"],["pinned","thumbtack","pinned"],["unpinned","thumbtack","unpinned"],["invisible","far-eye-slash","unlisted"]]})},14063:(e,t,n)=>{"use strict";function i(){return"30000000-1000-4000-2000-100000000000".replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16))}n.r(t),n.d(t,{default:()=>i})},87239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addExtraUserClasses:()=>i.addExtraUserClasses,classesForUser:()=>i.classesForUser,registerCustomAvatarHelper:()=>i.registerCustomAvatarHelper,renderAvatar:()=>i.renderAvatar});var i=n(41087)},34376:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(35804),s=n(20802),r=n(20762),o=n(51969);function a(e){let{currentUser:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let n=(0,s.escapeExpression)(e.name);return e.admin&&t?.staff?(0,i.htmlSafe)((0,r.iconHTML)("shield-halved",{label:(0,o.i18n)("user.admin",{user:n})})):e.moderator?(0,i.htmlSafe)((0,r.iconHTML)("shield-halved",{label:(0,o.i18n)("user.moderator",{user:n})})):void 0}},50575:(e,t,n)=>{"use strict";function i(e){return e&&e.length>0?"value-entered":""}n.r(t),n.d(t,{default:()=>i}),(0,n(11508).registerRawHelper)("value-entered",i)},20171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(70001);function s(e){return function(t){return e((0,i.get)(t,"target.value"))}}},82927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={initialize(){let e=new URLSearchParams(window.location.search);if(e.get("safe_mode")?.split(",").includes("deprecation_errors")){window.EmberENV.RAISE_ON_DEPRECATION=!0;return}}}},14039:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38389),s=n(55481);let r=!1,o={initialize(){r||((0,i.registerDeprecationHandler)((e,t,n)=>{let i=(0,s.consolePrefix)();n(i?`${i} ${e}`:e,t)}),r=!0)}}},66671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(38389),s=n(55481);let r=!1,o=new Set,a={initialize(){r||((0,i.registerDeprecationHandler)((e,t,n)=>{if("ember-this-fallback.this-property-fallback"!==t.id){n(e,t);return}let i=e.match(/\/plugins\/([\w-]+)\//)?.[1],r=e.match(/\/theme-(\d+)\//)?.[1];if(i||r){let n={type:i?"plugin":"theme",name:i||(0,s.getThemeInfo)(parseInt(r,10)).name,id:r};t.source=n,e=`${(0,s.consolePrefix)(null,n)} ${e}`}o.has(e)||(o.add(e),t.url="https://meta.discourse.org/t/337276",n(e,t))}),r=!0)}}},52104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p}),n(42433);var i=n(35223),s=n(83611),r=n(56839),o=n(20177),a=n(45929),l=n(26399),u=n(87389),c=n(20762),d=n(51969);let p={initialize(e){let t,n;if((0,r.setURLContainer)(e.__container__),(0,l.setDefaultOwner)(e.__container__),(0,a.isTesting)())return;let p=document.getElementById("data-discourse-setup");p&&(t=p.dataset);let h=document.getElementById("data-preloaded");h&&(n=JSON.parse(h.dataset.preloaded));let m=Object.keys(n);if(0===m.length)throw"No preload data found in #data-preloaded. Unable to boot Discourse.";m.forEach(function(e){s.default.store(e,JSON.parse(n[e])),"true"===t.debugPreloadedAppData&&console.log(e,s.default.get(e))}),(0,u.setupURL)(t.cdn,t.baseUrl,t.baseUri),(0,a.setEnvironment)(t.environment),d.default.defaultLocale=t.defaultLocale,window.Logster=window.Logster||{},window.Logster.enabled="true"===t.enableJsErrorReporting;let g=o.default.current();g.serviceWorkerURL=t.serviceWorkerUrl,g.assetVersion=t.assetVersion,g.disableCustomCSS="true"===t.disableCustomCss,t.mbLastFileChangeId&&(g.mbLastFileChangeId=parseInt(t.mbLastFileChangeId,10)),t.safeMode&&(g.safe_mode=t.safeMode),g.darkModeAvailable=document.querySelectorAll('link[media="(prefers-color-scheme: dark)"]').length>0,g.defaultColorSchemeIsDark="true"===t.colorSchemeIsDark,g.highlightJsPath=t.highlightJsPath,g.svgSpritePath=t.svgSpritePath,g.userColorSchemeId=parseInt(t.userColorSchemeId,10)||null,g.userDarkSchemeId=parseInt(t.userDarkSchemeId,10)||-1;let f=t.svgIconList;(0,a.isDevelopment)()&&f&&(0,c.setIconList)("string"==typeof f?JSON.parse(f):f),t.s3BaseUrl&&(0,u.setupS3CDN)(t.s3BaseUrl,t.s3Cdn),i.default.configure("onerror",function(e){e&&"TransitionAborted"===e.message||((0,a.isProduction)()||(e?e.message||e.stack?(console.log(e.message),console.log(e.stack)):console.log("Uncaught promise: ",e):console.log("A promise failed but was not caught.")),window.onerror(e&&e.message,null,null,null,e))})}}},62312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(54836),s=n(89882),r=n(38770),o=n(76591),a=n(42627);let l={after:"inject-discourse-objects",initialize(e){e.register("route:discovery.category",(0,r.default)({filter:"default"})),e.register("route:discovery.category-none",(0,r.default)({filter:"default",no_subcategories:!0})),e.register("route:discovery.category-all",(0,r.default)({filter:"default",no_subcategories:!1}));let t=s.default.current();t.get("filters").forEach(t=>{let n=(0,i.dasherize)(t);e.register(`route:discovery.${n}`,(0,o.default)(t)),e.register(`route:discovery.${n}-category`,(0,r.default)({filter:t})),e.register(`route:discovery.${n}-category-none`,(0,r.default)({filter:t,no_subcategories:!0}))}),e.register("route:tags.show-category",(0,a.buildTagRoute)()),e.register("route:tags.show-category-none",(0,a.buildTagRoute)({noSubcategories:!0})),e.register("route:tags.show-category-all",(0,a.buildTagRoute)({noSubcategories:!1})),t.get("filters").forEach(function(t){let n=(0,i.dasherize)(t);e.register(`route:tag.show-${n}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-${n}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-none-${n}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!0})),e.register(`route:tags.show-category-all-${n}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!1}))})}}},91537:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(83357);let s={before:"inject-discourse-objects",after:"discourse-bootstrap",initialize(){(0,i._freezeValidTransformerNames)()}}},57684:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(20177),s=n(89882),r=n(47866),o=n(41958);let a={after:"discourse-bootstrap",initialize(e){let t=e.__container__.lookup("service:site-settings"),n=o.default.current();e.register("service:current-user",n,{instantiate:!1}),this.topicTrackingState=r.default.create({messageBus:e.__container__.lookup("service:message-bus"),siteSettings:t,currentUser:n}),e.register("service:topic-tracking-state",this.topicTrackingState,{instantiate:!1});let a=s.default.current();e.register("service:site",a,{instantiate:!1});let l=i.default.current();e.register("service:session",l,{instantiate:!1}),(0,r.startTracking)(this.topicTrackingState)},teardown(){this.topicTrackingState.willDestroy()}}},65687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82940);let s={after:"inject-discourse-objects",initialize(e){this.routerClass=(0,i.mapRoutes)(),e.register("router:main",this.routerClass)},teardown(){this.routerClass.dslCallbacks.length=0}}},88728:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(83618),s=n(20802),r=n(20762);let o={};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("canvas");n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0,e.width,e.height),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),t.manualPause&&e.classList.add("manually-paused"),e.parentNode.classList.add("paused-animated-image"),e.parentNode.insertBefore(n,e)}function l(e){e.previousSibling&&"CANVAS"===e.previousSibling.nodeName&&e.previousSibling.remove(),e.parentNode.classList.remove("paused-animated-image")}function u(){return document.querySelectorAll(".topic-post img.animated:not(.manually-paused)")}let c={initialize(){(0,i.withPluginApi)("0.8.7",e=>{function t(e){let t=e.target;t&&!t.previousSibling?a(t,{manualPause:!0}):l(t)}e.decorateCookedElement(function(e,n){n&&e.querySelectorAll("img.animated:not(.onebox-avatar)").forEach(e=>{if(e.parentNode.querySelectorAll("img").length>1)return;o[e.src]&&(o[e.src].removeEventListener("click",t),o[e.src].removeEventListener("load",t),delete o[e.src]),o[e.src]=e,e.addEventListener("click",t,!1),(0,s.prefersReducedMotion)()&&e.addEventListener("load",t,!1);let n=document.createElement("div"),i=document.createElement("div");e.parentNode.insertBefore(n,e),n.classList.add("pausable-animated-image"),n.appendChild(e),i.classList.add("animated-image-overlay"),i.setAttribute("aria-hidden","true"),i.setAttribute("role","presentation"),i.innerHTML=`${(0,r.iconHTML)("pause")}${(0,r.iconHTML)("play")}`,n.appendChild(i)})},{onlyStream:!0}),e.cleanupStream(function(){Object.values(o||{}).forEach(e=>{e.removeEventListener("click",t),e.removeEventListener("load",t)}),o={}}),(0,s.prefersReducedMotion)()||(window.addEventListener("blur",this.blurEvent),window.addEventListener("focus",this.focusEvent))})},blurEvent(){u().forEach(e=>{1!==e.parentNode.querySelectorAll("img").length||e.previousSibling||a(e)})},focusEvent(){u().forEach(e=>{1===e.parentNode.querySelectorAll("img").length&&e.previousSibling&&l(e)})},teardown(){window.removeEventListener("blur",this.blurEvent),window.removeEventListener("focus",this.focusEvent)}}},86832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBeforeAuthCompleteCallback:()=>h,default:()=>g,resetBeforeAuthCompleteCallbacks:()=>m});var i=n(70001),s=n(42433),r=n(35804),o=n(45744),a=n(7607),l=n(84266),u=n(56839),c=n(51969);let d=["requires_invite","awaiting_approval","awaiting_activation","admin_not_allowed_from_ip_address","not_allowed_from_ip_address"],p=[];function h(e){p.push(e)}function m(){p.length=0}let g={after:"inject-objects",initialize(e){let t;if(document.getElementById("data-authentication")&&(t=document.getElementById("data-authentication").dataset.authenticationData),t){let n=e.lookup("service:router");n.one("routeDidChange",()=>{(0,s.next)(()=>{let h=JSON.parse(t);if(p.every(e=>e(h))){if("invites.show"===n.currentRouteName)e.lookup("controller:invites-show").authenticationComplete(h);else{let t=e.lookup("service:modal"),p=e.lookup("service:site-settings"),m=(i,r,o,l)=>{let u=e.lookup("route:application"),c={canSignUp:e.lookup("controller:application").canSignUp,flash:i,flashType:r||"success",awaitingApproval:h.awaiting_approval,...o};p.full_page_login?n.transitionTo("login").then(e=>{Object.keys(c||{}).forEach(t=>{e.controller.set(t,c[t])})}):t.show(a.default,{model:{showNotActivated:e=>u.send("showNotActivated",e),showCreateAccount:e=>u.send("showCreateAccount",e),...c}}),(0,s.next)(()=>l?.())};if(h.omniauth_disallow_totp)return m((0,c.i18n)("login.omniauth_disallow_totp"),"error",{loginName:h.email,showLoginButtons:!1},()=>document.getElementById("login-account-password").focus());for(let e=0;e{let s={accountEmail:h.email,accountUsername:h.username,accountName:h.name,authOptions:i.default.create(h),skipConfirmation:p.auth_skip_create_confirm};p.full_page_login?n.transitionTo("signup").then(t=>{let n=t.controller||e.lookup("controller:signup");Object.keys(s||{}).forEach(e=>{n.set(e,s[e])}),n.handleSkipConfirmation()}):t.show(o.default,{model:s})})}}})})}}}},56364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoLoadModules:()=>u,default:()=>c});var i=n(71597),s=n(62021),r=n.n(s),o=n(11508),a=n(84584),l=n(7380);function u(e,t){Object.keys(requirejs.entries).forEach(e=>{(function(e){return e.includes("/helpers/")&&(e.startsWith("discourse/theme-")||e.startsWith("discourse/plugins/"))&&!e.endsWith("-test")})(e)&&requirejs(e,null,null,!0),e.includes("/widgets/")&&!e.endsWith("-test")&&requirejs(e,null,null,!0)});let n={siteSettings:e.lookup("service:site-settings"),keyValueStore:e.lookup("service:key-value-store"),capabilities:e.lookup("service:capabilities"),currentUser:e.lookup("service:current-user"),site:e.lookup("service:site"),session:e.lookup("service:session"),topicTrackingState:e.lookup("service:topic-tracking-state"),registry:t};(0,i.setOwner)(n,e),(0,o.createHelperContext)(n),(0,o.registerHelpers)(t),(0,l.registerRawHelpers)(a.default,r(),e)}let c={after:"inject-objects",initialize:e=>{u(e,e.__container__.registry)}}},67522:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={after:"message-bus",initialize(e){if(!navigator.setAppBadge)return;let t=e.lookup("service:current-user");t&&e.lookup("service:app-events").on("notifications:changed",()=>{let e;e=t.all_unread_notifications_count,t.unseen_reviewable_count&&(e+=t.unseen_reviewable_count),navigator.setAppBadge(e)})}}},54354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(70001),s=n(71597),r=n(54729),o=n(83611),a=n(62797);class l{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#S=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"messageBus",[r.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();constructor(e){(0,s.setOwner)(this,e);let t=i.default.create(o.default.get("banner")||{});this.site.set("banner",t),this.messageBus.subscribe("/site/banner",this.onMessage)}teardown(){this.messageBus.unsubscribe("/site/banner",this.onMessage)}onMessage(e){e?this.site.set("banner",i.default.create(e)):this.site.set("banner",null)}static #i=(()=>dt7948.n(this.prototype,"onMessage",[a.bind]))()}let u={after:"message-bus",initialize(e){this.instance=new l(e)},teardown(){this.instance.teardown(),this.instance=null}}},17182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(83618),s=n(39149),r=n(54216);let o={name:"discourse-bookmark-menu",initialize(e){let t=e.lookup("service:current-user");(0,i.withPluginApi)("0.10.1",n=>{t&&(0,r.withSilencedDeprecations)("discourse.post-menu-widget-overrides",()=>{n.replacePostMenuButton("bookmark",{name:"bookmark-menu-shim",shouldRender:()=>!0,buildAttrs:t=>({post:t.findAncestorModel(),bookmarkManager:new s.default(e,t.findAncestorModel())})})})})}}},57625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={initialize(e){e.lookup("service:client-error-handler"),e.lookup("service:deprecation-warning-handler")}}},38575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(42433),s=n(14682),r=n.n(s);function o(e){window.MiniProfiler&&e.from&&window.MiniProfiler.pageTransition(),document.querySelectorAll("header ul.icons li").forEach(e=>{e.classList.remove("active")}),document.querySelectorAll('[data-toggle="dropdown"]').forEach(e=>{e.parentElement.classList.remove("open")}),r().magnificPopup?.instance&&(r().magnificPopup.instance.close(),document.body.classList.remove("mfp-zoom-out-cur"));let{activeElement:t}=document;t&&!t.classList.contains("no-blur")&&t.blur(),this.lookup("route:application").send("closeModal"),this.lookup("service:app-events").trigger("dom:clean"),this.lookup("service:document-title").updateContextCount(0)}let a={after:"inject-objects",initialize(e){e.lookup("service:router").on("routeDidChange",t=>{t.isAborted||(0,i.scheduleOnce)("afterRender",e,o,t)})}}},11804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(3737),s=n(56839);let r={initialize(e){this.selector=e.rootElement,document.querySelector(this.selector).addEventListener("click",i.default),window.addEventListener("hashchange",this.hashChanged)},hashChanged(){s.default.routeTo(document.location.hash)},teardown(){document.querySelector(this.selector).removeEventListener("click",i.default),window.removeEventListener("hashchange",this.hashChanged)}}},41672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(42433),s=n(73160),r=n(83618);let o=[],a={initialize(e){let t=e.lookup("service:site-settings");(0,r.withPluginApi)("0.8.7",e=>{e.decorateCookedElement((e,n)=>{(0,i.schedule)("afterRender",()=>{!function(e,n){if(!n||!t.show_copy_button_on_codeblocks)return;let i=n.getModel(),r=new s.default({showFullscreen:!0,showCopy:!0});r.attachToPost(i,e),o.push(r)}(e,n)})},{onlyStream:!0}),e.cleanupStream(function(){o.forEach(e=>e.cleanup()),o.length=0})})}}},54311:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c,overrideThrowGjsError:()=>u});var i=n(60465),s=n(76417),r=n(45929),o=n(54216),a=n(82224);let l=(0,r.isTesting)();function u(e){l=e}let c={after:["populate-template-map","mobile"],initialize(e){this.site=e.lookup("service:site"),this.eachThemePluginTemplate((t,n,r)=>{if(!r&&a.default.coreTemplates.has(t))return;let u=t;r&&((0,o.default)(`Mobile-specific hbs templates are deprecated. Use responsive CSS or {{#if this.site.mobileView}} instead. [${t}]`,{id:"discourse.mobile-templates"}),this.site.mobileView&&(u=u.slice(7))),u=u.slice(11);let c=e.resolveRegistration(`component:${u}`);if(!c){e.register(`component:${u}`,s.default);return}let d=i.getComponentTemplate(c),p=d?.()?.parsedLayout?.isStrictMode,h=n[n.length-1];if(p){let e=`[${h}] ${u} was authored using gjs and its template cannot be overridden. Ignoring override. For more information on the future of template overrides, see https://meta.discourse.org/t/247487`;if(l)throw Error(e);console.error(e)}else if(d){(0,o.default)(`[${h}] Overriding component templates is deprecated, and will soon be disabled. Use plugin outlets, CSS, or other customization APIs instead.`,{id:"discourse.component-template-overrides",url:"https://meta.discourse.org/t/247487"});let e=window.require(h).default;i.setComponentTemplate(e,c)}})},eachThemePluginTemplate(e){let{coreTemplates:t,pluginTemplates:n,themeTemplates:i}=a.default;for(let[s,r,o]of[[n,"components/",!1],[i,"components/",!1],[t,"mobile/components/",!0],[n,"mobile/components/",!0],[i,"mobile/components/",!0]])for(let[t,n]of s)t.startsWith(r)&&e(t,n,o)},teardown(){i.clearTemplateOverrides()}}},34970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(14682),s=n.n(i);let r=!1,o=s().Callbacks(),a={initialize(e){let t=e.lookup("service:session");t.set("csrfToken",document.head.querySelector("meta[name=csrf-token]")?.content),r||(s().ajaxPrefilter(o.fire),r=!0),o.add(function(e,n,i){e.crossDomain||i.setRequestHeader("X-CSRF-Token",t.get("csrfToken"))})},teardown(){o.empty()}}},80390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(70001),s=n(53067),r=n(54729),o=n(54216);let a=[];function l(e,t){return class extends i.default{static printDeprecation(){(0,o.default)(`${e} no longer exists, and this shim will eventually be removed. To fetch information about the current discovery route, use the discovery service instead.`,{id:t})}static reopen(){return this.printDeprecation(),a.push(e),super.reopen(...arguments)}static #e=(()=>dt7948.g(this.prototype,"discovery",[r.service]))();#cU=(()=>void dt7948.i(this,"discovery"))();constructor(){super(...arguments),this.constructor.printDeprecation()}}}class u extends l("controller:navigation/category","discourse.navigation-category-controller"){get category(){return this.constructor.printDeprecation(),this.discovery.category}static #e=(()=>dt7948.n(this.prototype,"category",[s.dependentKeyCompat]))()}class c extends l("controller:discovery/topics","discourse.discovery-topics-controller"){get model(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.currentTopicList}static #e=(()=>dt7948.n(this.prototype,"model",[s.dependentKeyCompat]))();get category(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.category}static #n=(()=>dt7948.n(this.prototype,"category",[s.dependentKeyCompat]))()}class d extends l("controller:tag-show","discourse.tag-show-controller"){get tag(){return this.constructor.printDeprecation(),this.discovery.tag}static #e=(()=>dt7948.n(this.prototype,"tag",[s.dependentKeyCompat]))()}let p={initialize(e){e.register("controller:navigation/category",u),e.register("controller:discovery/topics",c),e.register("controller:tag-show",d),e.lookup("service:router").on("routeDidChange",t=>{let n=t.to?.name;(n?.startsWith("discovery.")||n?.startsWith("tags.show")||"tag.show"===n)&&a.forEach(t=>e.lookup(t))})}}},19783:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={async initialize(e){if(e.lookup("service:site-settings").enable_experimental_lightbox){let e=window.innerWidth-document.body.getBoundingClientRect().width;e=e=Math.round(100*e)/100,document.documentElement.style.setProperty("--document-scrollbar-width",`${e}px`)}}}},69130:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(37441);let s={initialize(){(0,i.eagerLoadRawTemplateModules)()}}},3600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(96768),s=n(83618),r=n(83611);let o={initialize(e){e.lookup("service:site-settings").enable_emoji&&((0,s.withPluginApi)("0.1",e=>{e.onToolbarCreate(e=>{e.addButton({id:"emoji",group:"extras",icon:"far-face-smile",action:()=>e.context.send("emoji"),title:"composer.emoji",className:"emoji insert-emoji"})})}),(r.default.get("customEmoji")||[]).forEach(e=>(0,i.registerEmoji)(e.name,e.url,e.group)))}}},91200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(42433),s=n(84424),r=n(94113),o=n(41958);let a=(0,n(45929).isTesting)()?0:5e3,l={initialize(){(0,i.later)(()=>{(0,r.extendThemeCookie)(),(0,s.extendColorSchemeCookies)(),(0,o.extendTextSizeCookie)()},a)}}},832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(34663);let s={after:"register-hashtag-types",initialize(){let e=document.createElement("style");e.id="hashtag-css-generator",e.innerHTML=Object.values((0,i.getHashtagTypeClasses)()).map(e=>e.generatePreloadedCssClasses()).flat().join("\n"),document.head.appendChild(e)}}},48991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(50110),s=n(83618);let r={after:"hashtag-css-generator",initialize(e){let t=e.lookup("service:site");(0,s.withPluginApi)("0.8.7",e=>{e.decorateCookedElement(e=>(0,i.decorateHashtags)(e,t))})}}},42757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(55481),s=n(54216),r=n(37441);let o={before:"inject-objects",initialize(){(0,s.registerDeprecationHandler)((e,t)=>{t?.id==="discourse.hbr-topic-list-overrides"&&((0,r.needsHbrTopicList)(!0),console.debug((0,i.consolePrefix)(),e))})}}},20167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(83618);let s={initialize(){(0,i.withPluginApi)("1.36.0",e=>{e.registerValueTransformer("mentions-class",t=>{let{value:n,context:i}=t,{user:s}=i;return s.id<0?n.push("--bot"):s.id===e.getCurrentUser()?.id?n.push("--current"):("here"===s.username||"all"===s.username)&&n.push("--wide"),n})})}}},93062:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(83618);let s={initWithApi(e){let t=CSS.supports("aspect-ratio: 1");e.decorateCookedElement(e=>{e.querySelectorAll("img").forEach(e=>{let n=parseFloat(e.getAttribute("height")),i=parseFloat(e.getAttribute("width"));if(!(isNaN(n)||isNaN(i))&&!e.style.aspectRatio){if(t)e.style.setProperty("aspect-ratio",`${i} / ${n}`);else{let t=e.width/(i/n);e.style.setProperty("--calculated-height",`${t}px`)}}})})},initialize(){(0,i.withPluginApi)("1.2.0",this.initWithApi)}}},52988:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={initialize(e){e.lookup("service:route-scroll-manager")}}},15984:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(89882),s=n(41958),r=n(54216),o=n(26399);let a={after:"sniff-capabilities",initialize(e){(0,o.setDefaultOwner)(e.__container__),window.Discourse=e,Object.defineProperty(e,"SiteSettings",{get:()=>((0,r.default)("use injected siteSettings instead of Discourse.SiteSettings",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site-settings"}),e.lookup("service:site-settings"))}),Object.defineProperty(e,"User",{get:()=>((0,r.default)("import discourse/models/user instead of using Discourse.User",{since:"2.8",dropFrom:"3.2",id:"discourse.global.user"}),s.default)}),Object.defineProperty(e,"Site",{get:()=>((0,r.default)("import discourse/models/site instead of using Discourse.Site",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site"}),i.default)})},teardown(){delete window.Discourse}}},94503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(14682),s=n.n(i),r=n(21640),o=n(55905);let a=!1,l={initialize(){a||(s().fn.autocomplete=r.default,s().fn.caret=o.caret,s().fn.caretPosition=o.caretPosition,a=!0)}}},1899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(90945),s=n.n(i),r=n(56907);let o={initialize(e){r.default.init(s(),e),r.default.bindEvents()},teardown(){r.default.teardown()}}},61674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(71597),s=n(54729),r=n(86211),o=n(62797);class a{static #e=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"session",[s.service]))();#eK=(()=>void dt7948.i(this,"session"))();constructor(e){(0,i.setOwner)(this,e);let t=new URLSearchParams(window.location.search),n=["preview_theme_id","pp","safe_mode"].map(e=>[e,t.get(e)]).filter(e=>{let[,t]=e;return t});n.length&&["replaceState","pushState"].forEach(e=>{let t=window.history[e];window.history[e]=(e,i,s)=>{let r=new URL(s,window.location);for(let[e,t]of n)r.searchParams.set(e,t);return t.call(window.history,e,i,r.href)}}),this.messageBus.subscribe("/file-change",this.onFileChange,this.session.mbLastFileChangeId)}teardown(){this.messageBus.unsubscribe("/file-change",this.onFileChange)}onFileChange(e){e.forEach(e=>{if("refresh"===e)document.location.reload(!0);else if("development-mode-theme-changed"===e)window.location.pathname.startsWith("/admin/customize/themes")||window.location.pathname.startsWith("/admin/config/look-and-feel")?this.session.requiresRefresh=!0:document.location.reload(!0);else if(e.new_href&&e.target){let t=`link[data-target='${e.target}']`;e.theme_id&&(t+=`[data-theme-id='${e.theme_id}']`);let n=document.querySelectorAll(t);if(n.length>0){let t=n[n.length-1];t.href.split("/").pop()!==e.new_href.split("/").pop()&&this.refreshCSS(t,e.new_href)}}})}static #i=(()=>dt7948.n(this.prototype,"onFileChange",[o.bind]))();refreshCSS(e,t){let n=e.cloneNode(!0);n.href=t,e.insertAdjacentElement("afterend",n),(0,r.default)(()=>e?.parentNode?.removeChild(e),500)}}let l={initialize(e){this.instance=new a(e)},teardown(){this.instance.teardown(),this.instance=null}}},13017:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(51969);let s={after:"inject-objects",isVerboseLocalizationEnabled(e){if(e.lookup("service:site-settings").verbose_localization)return!0;try{return sessionStorage&&sessionStorage.getItem("verbose_localization")}catch{return!1}},initialize(e){for(let[t,n]of(this.isVerboseLocalizationEnabled(e)&&i.default.enableVerboseLocalization(),Object.entries(i.default._overrides||{}))){for(let[e,s]of Object.entries(n)){let n=e.replace(/^admin_js\./,"js.").split("."),r=i.default.translations[t]||{};for(let e=0;e{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(71597),s=n(54729),r=n(71554),o=n(62797),a=n(51969);let l=!1;class u{static #e=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[s.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(e){(0,i.setOwner)(this,e),this.currentUser&&this.messageBus.subscribe(`/logout/${this.currentUser.id}`,this.onMessage)}teardown(){this.currentUser&&this.messageBus.unsubscribe(`/logout/${this.currentUser.id}`,this.onMessage)}onMessage(){l||(l=!0,this.dialog.alert({message:(0,a.i18n)("logout"),confirmButtonLabel:"home",didConfirm:r.default,didCancel:r.default,shouldDisplayCancel:!1}))}static #l=(()=>dt7948.n(this.prototype,"onMessage",[o.bind]))()}let c={after:"message-bus",initialize(e){this.instance=new u(e)},teardown(){this.instance.teardown(),this.instance=null}}},55896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(82176),s=n(83013);let r=!1,o={after:"message-bus",initialize(e){if(r)return;let t=e.lookup("service:site-settings"),n=e.lookup("service:message-bus"),o=e.lookup("service:key-value-store"),a=e.lookup("service:current-user");s.default.reopenClass(i.default,{createCurrent(){return this.create({messageBus:n,keyValueStore:o,siteSettings:t,currentUser:a})}}),r=!0}}},75294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,sendDeferredPageview:()=>d});var i=n(14682),s=n.n(i),r=n(6610),o=n(33837),a=n(45929),l=n(87389);let u=!1,c=null;function d(){u=!0}let p={after:"inject-objects",initialize(e){if((0,a.isTesting)())return;let t=e.lookup("service:message-bus"),n=e.lookup("service:current-user"),i=e.lookup("service:site-settings"),d=e.lookup("service:router");if(t.alwaysLongPoll=!(0,a.isProduction)(),t.shouldLongPollCallback=()=>(0,o.default)({userUnseenTime:12e5}),t.stop(),(0,o.onPresenceChange)({unseenTime:12e5,callback:e=>{e&&t.onVisibilityChange&&t.onVisibilityChange()}}),i.login_required&&!n)return;let p=setInterval(()=>{"complete"===document.readyState&&(("topic.fromParams"===d.currentRouteName||"topic.fromParamsNear"===d.currentRouteName)&&(c=d.currentRoute.parent.params.id),clearInterval(p),t.start())},500);t.callbackInterval=i.anon_polling_interval,t.backgroundCallbackInterval=i.background_polling_interval,t.baseUrl=i.long_polling_base_url.replace(/\/$/,"")+"/",t.enableChunkedEncoding=i.enable_chunked_encoding,t.ajax=e=>(function(e,t){if(t.headers||={},"/"!==e.baseUrl){let e=document.querySelector("meta[name=shared_session_key]")?.content;t.headers["X-Shared-Session-Key"]=e}(0,o.default)()&&(t.headers["Discourse-Present"]="true"),u&&(t.headers["Discourse-Deferred-Track-View"]="true",c&&(t.headers["Discourse-Deferred-Track-View-Topic-Id"]=c),u=!1,c=null);let n=t.complete;return t.complete=function(e,t){(0,r.handleLogoff)(e),n?.(e,t)},s().ajax(t)})(t,e),t.baseUrl=(0,l.default)("/"),n&&(t.callbackInterval=i.polling_interval)}}},77552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(56839),s=n(87389);let r={initialize(e){let t=document.querySelector("meta[property='og:title']"),n=document.querySelector("meta[property='og:url']"),r=document.querySelector("meta[name='twitter:title']"),o=document.querySelector("meta[name='twitter:url']"),a=document.querySelector("link[rel='canonical']");e.lookup("service:app-events").on("page:changed",e=>{let{title:l,url:u}=e,c=(0,s.getAbsoluteURL)(u);t?.setAttribute("content",l),n?.setAttribute("content",c),r?.setAttribute("content",l),o?.setAttribute("content",c),a&&a.setAttribute("href",(0,i.getCanonicalUrl)(c))})}}},72034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(76578),s=n(50042);let r={after:"inject-objects",initialize(e){i.default.init();let t=e.lookup("service:site");t.set("mobileView",i.default.mobileView),t.set("desktopView",!i.default.mobileView),t.set("isMobileDevice",i.default.isMobileDevice),(0,s.setResolverOption)("mobileView",i.default.mobileView)}}},53892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={after:"message-bus",initialize(){moment.tz.link(["Asia/Kolkata|IST","Asia/Seoul|KST","Asia/Tokyo|JST"]),delete moment.tz._links["us_pacific-new"]}}},25179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(86561),s=n(66221),r=n(83618),o=n(51969);let a={initialize(){(0,r.withPluginApi)("1.37.2",e=>{e.registerMoreTopicsTab({id:"related-messages",name:(0,o.i18n)("related_messages.pill"),component:i.default,condition:e=>{let{context:t,topic:n}=e;return"pm"===t&&n.relatedMessages?.length>0}}),e.registerMoreTopicsTab({id:"suggested-topics",name:(0,o.i18n)("suggested_topics.pill"),component:s.default,condition:e=>{let{topic:t}=e;return t.suggestedTopics?.length>0}})})}}},69694:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(83454);let s={initialize(e){i.default.init();let t=e.lookup("service:site");t.set("narrowDesktopView",i.default.narrowDesktopView),this._resizeObserver=new ResizeObserver(n=>{if(!e.isDestroyed)for(let s of n){let n=t.narrowDesktopView,r=i.default.isNarrowDesktopView(s.contentRect.width);if(n!==r){let n=e.lookup("controller:application");t.set("narrowDesktopView",r),n.set("showSidebar",n.calculateShowSidebar()),n.appEvents.trigger("site-header:force-refresh"),e.lookup("service:header").hamburgerVisible=!1}}}),this._resizeObserver.observe(document.body)}}},98564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decorateGithubOneboxBody:()=>r,default:()=>l});var i=n(83618);let s=[];function r(e){e.querySelectorAll(".onebox.githubcommit .show-more-container, .onebox.githubpullrequest .show-more-container, .onebox.githubissue .show-more-container").length&&(s.push(e),e.addEventListener("click",o,!1))}function o(e){if(!e.target.classList.contains("show-more"))return;e.preventDefault();let t=e.target.parentNode,n=t.parentNode;return t.classList.add("hidden"),n.querySelector(".excerpt.hidden").classList.remove("hidden"),!1}function a(){(s||[]).forEach(e=>{e.removeEventListener("click",o)}),s=[]}let l={initialize(){(0,i.withPluginApi)("0.8.42",e=>{e.decorateCookedElement(e=>{r(e)}),e.cleanupStream(a)})}}},95905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6610),s=n(63022),r=n(75294);let o={after:"inject-objects",before:"message-bus",initialize(e){document.querySelector("meta#discourse-error")?.dataset.discourseError!=="true"&&(0,r.sendDeferredPageview)();let t=e.lookup("router:main");t.on("routeWillChange",this.handleRouteWillChange);let n=e.lookup("service:app-events"),i=e.lookup("service:document-title");if((0,s.startPageTracking)(t,n,i),void 0!==window._gaq){n.on("page:changed",e=>{e.replacedOnlyQueryParams||(window._gaq.push(["_set","title",e.title]),window._gaq.push(["_trackPageview",e.url]))});return}void 0!==window.ga&&void 0===window.gtag&&n.on("page:changed",e=>{e.replacedOnlyQueryParams||window.ga("send","pageview",{page:e.url,title:e.title})}),void 0!==window.gtag&&n.on("page:changed",e=>{e.replacedOnlyQueryParams||window.gtag("event","page_view",{page_location:e.url,page_title:e.title})}),void 0!==window.dataLayer&&n.on("page:changed",e=>{e.replacedOnlyQueryParams||(0,s.googleTagManagerPageChanged)(e)})},handleRouteWillChange(e){e.from&&!e.isIntermediate&&((0,i.trackNextAjaxAsPageview)(),("topic.fromParamsNear"===e.to.name||"topic.fromParams"===e.to.name)&&(0,i.trackNextAjaxAsTopicView)(e.to.parent.params.id))},teardown(){(0,s.resetPageTracking)(),(0,i.resetAjax)()}}},60134:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(82224);let s={initialize(){i.default.setModuleNames(Object.keys(requirejs.entries))}}},36088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var i=n(42433),s=n(94802),r=n(18469),o=n(91825),a=n(6610),l=n(64149),u=n(72613),c=n(18672),d=n(9162),p=n(57177),h=n(13603),m=n(83618),g=n(62167),f=n(64055),_=n(20802),y=n(20762),b=n(51969);let w={initialize(e){(0,m.withPluginApi)("0.1",t=>{let n=e.lookup("service:site-settings"),m=e.lookup("service:session"),w=e.lookup("service:site"),k=e.lookup("service:capabilities"),x=e.lookup("service:modal"),T=e.lookup("service:lightbox");t.decorateCookedElement(e=>(0,c.default)(e,n,m)),n.enable_experimental_lightbox?(t.decorateCookedElement((e,t)=>t&&e.querySelector(h.SELECTORS.DEFAULT_ITEM_SELECTOR)?T.setupLightboxes({container:e,selector:h.SELECTORS.DEFAULT_ITEM_SELECTOR}):null,{onlyStream:!0}),t.cleanupStream(T.cleanupLightboxes)):t.decorateCookedElement(e=>(0,p.default)(e,n)),t.decorateCookedElement(e=>{let t=e.querySelectorAll(".d-image-grid");t.length&&t.forEach(e=>new u.default(e,{columns:w.mobileView?2:3}))}),n.support_mixed_text_direction&&t.decorateCookedElement(f.setTextDirections,{}),(0,d.nativeLazyLoading)(t),t.decorateCookedElement(e=>{e.querySelectorAll("audio").forEach(n=>{n.addEventListener("play",()=>{let n=parseInt(e.closest("article")?.dataset.postId,10);n&&t.preventCloak(n)})})});let S={amazon:"discourse-amazon",githubactions:"fab-github",githubblob:"fab-github",githubcommit:"fab-github",githubpullrequest:"fab-github",githubissue:"fab-github",githubfile:"fab-github",githubgist:"fab-github",twitterstatus:"fab-twitter",wikipedia:"fab-wikipedia-w"};function C(e){let t=document.createElement("button"),n=["open-popup-link","btn-default","btn","btn-icon",...e.label?["no-text"]:[]];if(t.classList.add(...n),e.classes&&t.classList.add(...e.classes),e.title&&(t.title=(0,b.i18n)(e.title)),e.label&&k.touch&&(t.innerHTML=` ${(0,b.i18n)(e.label)}
`),e.icon){let n=(0,s.create)((0,y.iconNode)(e.icon.name,{class:e.icon?.class}));t.prepend(n)}return t}function E(e){let t=e.currentTarget.parentElement.nextElementSibling.cloneNode(!0),i=document.createElement("div");i.classList.add("cooked"),n.display_footnotes_inline&&i.classList.add("inline-footnotes"),i.dataset.refPostId=this.id,i.appendChild(t),x.show(r.default,{model:{tableHtml:i}})}function A(){let e=this.tableIndex;return(0,a.ajax)(`/posts/${this.id}`,{type:"GET"}).then(t=>{(0,g.parseAsync)(t.raw).then(n=>{let i=(0,_.tokenRange)(n,"table_open","table_close")[e];x.show(o.default,{model:{post:t,tableIndex:e,tableTokens:i}})})}).catch(l.popupAjaxError)}t.decorateCookedElement(e=>{e.querySelectorAll(".onebox").forEach(e=>{Object.entries(S).forEach(t=>{let[n,i]=t;e.classList.contains(n)&&e.querySelector(".source").insertAdjacentHTML("afterbegin",(0,y.iconHTML)(i))})})}),t.decorateCookedElement((e,t)=>{(0,i.schedule)("afterRender",()=>{!function(e,t){e.forEach((e,n)=>{let i=document.createElement("div");i.classList.add("fullscreen-table-wrapper__buttons");let s=C({classes:["btn-edit-table"],title:"table_builder.edit.btn_edit",label:"table_builder.edit.btn_edit",icon:{name:"pencil",class:"edit-table-icon"}});if(e.parentNode.setAttribute("data-table-index",n),e.parentNode.classList.add("fullscreen-table-wrapper"),t.canEdit&&(i.append(s),s.addEventListener("click",A.bind({tableIndex:n,...t}),!1)),e.parentNode.insertBefore(i,e),!function(e){let{clientWidth:t,scrollWidth:n}=e;return n>t}(e.parentNode)||w.isMobileDevice)return;let r=C({classes:["btn-expand-table"],title:"fullscreen_table.expand_btn",icon:{name:"discourse-expand",class:"expand-table-icon"}});i.append(r),r.addEventListener("click",E.bind(t),!1),e.parentNode.insertBefore(i,e)})}(e.querySelectorAll(".md-table table"),t.widget.attrs)})},{onlyStream:!0,id:"table-wrapper"}),t.cleanupStream(function(){let e=document.querySelector(".open-popup-link.btn-edit-table"),t=document.querySelector(".open-popup-link.btn-expand-table");t?.removeEventListener("click",E),e?.removeEventListener("click",A)})})}}},42259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(71597),s=n(54729),r=n(62797);class o{static #e=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();constructor(e){(0,i.setOwner)(this,e),this.messageBus.subscribe("/site/read-only",this.onMessage)}teardown(){this.messageBus.unsubscribe("/site/read-only",this.onMessage)}onMessage(e){this.site.set("isReadOnly",e)}static #i=(()=>dt7948.n(this.prototype,"onMessage",[r.bind]))()}let a={after:"message-bus",initialize(e){this.instance=new o(e)},teardown(){this.instance.teardown(),this.instance=null}}},80996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(52757),s=n(87725),r=n(83618);let o={before:"hashtag-css-generator",initialize(e){(0,r.withPluginApi)("0.8.7",t=>{t.registerHashtagType("category",new i.default(e)),t.registerHashtagType("tag",new s.default(e))})}}},23161:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35223),s=n(31753),r=n(47445);let o={initialize(e){let t=e.lookup("service:site-settings"),n=e.lookup("service:capabilities");if(t.composer_media_optimization_image_enabled){if(n.isIOS&&!t.composer_ios_media_optimisation_image_enabled||"undefined"==typeof OffscreenCanvas||!("createImageBitmap"in self))return;let o=window.navigator.userAgent.match(/Mobile\/([0-9]+)\./),a=o?parseInt(o[1],10):null;if(n.isSafari&&a&&a<18)return;(0,s.addComposerUploadPreProcessor)(r.default,t=>{let{isMobileDevice:n}=t;return{optimizeFn:(t,n)=>e.isDestroyed||e.isDestroying?i.Promise.resolve():e.lookup("service:media-optimization-worker").optimizeImage(t,n),runParallel:!n}})}}}},66450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(92242);let s={initialize(e){let{serviceWorkerURL:t}=e.lookup("service:session");(0,i.registerServiceWorker)(t)}}},86137:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(38536);let s={initialize(){this._interval=setInterval(function(){(0,i.updateRelativeAge)(document.querySelectorAll(".relative-date"))},6e4)},teardown(){this._interval&&(clearInterval(this._interval),this._interval=null)}}},26497:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(53674),s=n(51969);let r={initialize(e){let t=e.lookup("service:site-settings");i.default.addSource({id:"twitter",icon:"fab-x-twitter",generateUrl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=n?`"${n}" -- `:t;return`http://x.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(i)}`},shouldOpenInPopup:!0,title:(0,s.i18n)("share.twitter"),popupHeight:265}),i.default.addSource({id:"facebook",icon:"fab-facebook",title:(0,s.i18n)("share.facebook"),generateUrl(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=t.facebook_app_id?`https://www.facebook.com/dialog/share?app_id=${t.facebook_app_id}"e=${encodeURIComponent(i)}&href=`:"https://www.facebook.com/sharer.php?u=";return`${s}${encodeURIComponent(e)}`},shouldOpenInPopup:!0}),i.default.addSource({id:"email",icon:"envelope",title:(0,s.i18n)("share.email"),generateUrl(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=i?`${i} ${e}`:e;return"mailto:?to=&subject="+encodeURIComponent("["+t.title+"] "+n)+"&body="+encodeURIComponent(s)},showInPrivateContext:!0})}}},70167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(20177);let s={initialize(e){let t=e.lookup("service:screen-track"),n=i.default.current(),s=e.lookup("service:site-settings"),r=e.lookup("service:key-value-store"),o=e.lookup("service:current-user"),a=e.lookup("service:app-events");function l(){if(n.get("showSignupCta")||n.get("hideSignupCta")||r.get("anon-cta-never"))return;let e=Date.now();if(r.getInt("anon-cta-hidden",0)>e-864e5||12e4>r.getInt("anon-topic-time"))return;let t=r.get("anon-topic-ids");t&&!(t.split(",").length<2)&&(n.set("showSignupCta",!0),a.trigger("cta:shown"))}o||r.get("anon-cta-never")||!s.allow_new_registrations||s.invite_only||s.login_required||!s.enable_signup_cta||(t.registerAnonCallback(l),l())}}},53681:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={initialize(e){let t=e.lookup("service:capabilities"),n=document.documentElement;t.touch?n.classList.add("touch","discourse-touch"):n.classList.add("no-touch","discourse-no-touch")}}},6116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={initialize(){let e=window.location.search;if(e.includes("user_api_public_key")){let t=e.startsWith("?")?e.slice(1).split("&"):[];e=(t=t.filter(e=>!e.startsWith("user_api_public_key=")&&!e.startsWith("auth_redirect="))).length>0?`?${t.join("&")}`:"",window.history&&window.history.replaceState&&window.history.replaceState(null,null,`${location.pathname}${e}${location.hash}`)}}}},3013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(71597),s=n(54729),r=n(20643),o=n(38449),a=n(99602),l=n(45929),u=n(62797);class c{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"messageBus",[s.service]))();#rQ=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"store",[s.service]))();#f=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[s.service]))();#o=(()=>void dt7948.i(this,"appEvents"))();static #u=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #c=(()=>dt7948.g(this.prototype,"site",[s.service]))();#S=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"router",[s.service]))();#N=(()=>void dt7948.i(this,"router"))();constructor(e){if((0,i.setOwner)(this,e),!this.currentUser)return;this.reviewableCountsChannel=`/reviewable_counts/${this.currentUser.id}`,this.messageBus.subscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.subscribe(`/notification/${this.currentUser.id}`,this.onNotification,this.currentUser.notification_channel_position),this.messageBus.subscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.subscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb,this.currentUser.do_not_disturb_channel_position),this.messageBus.subscribe("/user-status",this.onUserStatus,this.currentUser.status?.message_bus_last_id),this.messageBus.subscribe("/categories",this.onCategories),this.messageBus.subscribe("/client_settings",this.onClientSettings),(0,l.isTesting)()||(this.messageBus.subscribe((0,r.alertChannel)(this.currentUser),this.onAlert),(0,r.init)(this.messageBus),(0,o.isPushNotificationsEnabled)(this.currentUser)?((0,r.disable)(),(0,o.register)(this.currentUser,this.router,this.appEvents)):(0,o.unsubscribe)(this.currentUser))}teardown(){this.currentUser&&(this.messageBus.unsubscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.unsubscribe(`/notification/${this.currentUser.id}`,this.onNotification),this.messageBus.unsubscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.unsubscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.unsubscribe("/user-status",this.onUserStatus),this.messageBus.unsubscribe("/categories",this.onCategories),this.messageBus.unsubscribe("/client_settings",this.onClientSettings),this.messageBus.unsubscribe((0,r.alertChannel)(this.currentUser),this.onAlert))}onReviewableCounts(e){e.reviewable_count>=0&&this.currentUser.updateReviewableCount(e.reviewable_count),this.currentUser.set("unseen_reviewable_count",e.unseen_reviewable_count)}static #p=(()=>dt7948.n(this.prototype,"onReviewableCounts",[u.bind]))();onNotification(e){let t=this.currentUser.unread_notifications,n=this.currentUser.unread_high_priority_notifications,i=this.currentUser.all_unread_notifications_count;this.currentUser.setProperties({unread_notifications:e.unread_notifications,unread_high_priority_notifications:e.unread_high_priority_notifications,read_first_notification:e.read_first_notification,all_unread_notifications_count:e.all_unread_notifications_count,grouped_unread_notifications:e.grouped_unread_notifications,new_personal_messages_notifications_count:e.new_personal_messages_notifications_count}),(t!==e.unread_notifications||n!==e.unread_high_priority_notifications||i!==e.all_unread_notifications_count)&&(this.appEvents.trigger("notifications:changed"),this.site.mobileView&&(e.unread_notifications-t>0||e.unread_high_priority_notifications-n>0||e.all_unread_notifications_count-i>0)&&this.appEvents.trigger("header:update-topic",null,5e3));let s=this.store.findStale("notification",{},{cacheKey:"recent-notifications"}),r=e.last_notification?.notification;if(s?.hasResults&&r){let t=s.results.get("content");if(-1===t.findIndex(e=>e.id===r.id)){let e=0;if(!r.high_priority||r.read){let n=t.findIndex(e=>!e.high_priority||e.read);-1!==n&&(e=n)}t.insertAt(e,a.default.create(r))}let n=Object.fromEntries(e.recent),i=t.map(e=>{if(void 0!==n[e.id])return e.set("read",n[e.id]),e}).filter(Boolean);s.results.set("content",i)}}static #h=(()=>dt7948.n(this.prototype,"onNotification",[u.bind]))();onUserDrafts(e){this.currentUser.updateDraftProperties(e)}static #m=(()=>dt7948.n(this.prototype,"onUserDrafts",[u.bind]))();onDoNotDisturb(e){this.currentUser.updateDoNotDisturbStatus(e.ends_at)}static #g=(()=>dt7948.n(this.prototype,"onDoNotDisturb",[u.bind]))();onUserStatus(e){this.appEvents.trigger("user-status:changed",e)}static #E=(()=>dt7948.n(this.prototype,"onUserStatus",[u.bind]))();onCategories(e){(e.categories||[]).forEach(e=>{let t=this.currentUser.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids);return t&&t.includes(e.parent_category_id)&&!t.includes(e.id)&&this.currentUser.set("indirectly_muted_category_ids",this.currentUser.indirectly_muted_category_ids.concat(e.id)),this.site.updateCategory(e)}),(e.deleted_categories||[]).forEach(e=>this.site.removeCategory(e))}static #A=(()=>dt7948.n(this.prototype,"onCategories",[u.bind]))();onClientSettings(e){this.siteSettings[e.name]=e.value}static #D=(()=>dt7948.n(this.prototype,"onClientSettings",[u.bind]))();onAlert(e){if(this.site.desktopView)return(0,r.onNotification)(e,this.siteSettings,this.currentUser,this.appEvents)}static #I=(()=>dt7948.n(this.prototype,"onAlert",[u.bind]))()}let d={after:"message-bus",initialize(e){this.instance=new c(e)},teardown(){this.instance.teardown(),this.instance=null}}},5549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(71358);let s={initialize(e){let t=e.lookup("service:session");t.svgSpritePath&&(0,i.loadSprites)(t.svgSpritePath,"fontawesome")}}},24137:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(33462),s=n(98860);let r={initialize(e){(0,s.registerTopicFooterButton)({id:"share-and-invite",icon:"d-topic-share",priority:1e3,label(){if(!this.get("topic.isPrivateMessage")||this.site.mobileView)return"footer_nav.share"},title:"topic.share.help",action(){e.lookup("service:modal").show(i.default,{model:{category:this.topic.category,topic:this.topic,allowInvites:this.currentUser.can_invite_to_forum&&this.canInviteTo&&!this.inviteDisabled}})},classNames:["share-and-invite"],dependentKeys:["topic.shareUrl","topic.isPrivateMessage","canInviteTo","inviteDisabled","isPM","invitingToTopic"]}),(0,s.registerTopicFooterButton)({id:"flag",icon:"flag",priority:700,label:"topic.flag_topic.title",title:"topic.flag_topic.help",action:"showFlagTopic",dropdown(){return this.site.mobileView},classNames:["flag-topic"],dependentKeys:["topic.details.can_flag_topic","topic.isPrivateMessage"],displayed(){return this.get("topic.details.can_flag_topic")&&!this.get("topic.isPrivateMessage")}}),(0,s.registerTopicFooterButton)({dependentKeys:["topic.bookmarked","topic.bookmarksWereChanged"],id:"bookmark",priority:900,action:"toggleBookmark",icon:()=>null,translatedTitle:()=>null}),(0,s.registerTopicFooterButton)({id:"archive",priority:800,icon(){return this.archiveIcon},label(){return this.archiveLabel},title(){return this.archiveTitle},action:"toggleArchiveMessage",classNames:["standard","archive-topic"],dependentKeys:["canArchive","archiveIcon","archiveLabel","archiveTitle","toggleArchiveMessage"],dropdown(){return this.site.mobileView},displayed(){return this.canArchive}}),(0,s.registerTopicFooterButton)({id:"defer",icon:"circle",priority:500,label:"topic.defer.title",title:"topic.defer.help",action:"deferTopic",classNames:["defer-topic"],displayed(){return this.canDefer},dropdown(){return this.site.mobileView}})}}},28115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(56839),s=n(20802);let r={after:"inject-objects",initialize(e){i.default.rewrite(/^\/group\//,"/groups/"),i.default.rewrite(/^\/groups$/,"/g"),i.default.rewrite(/^\/groups\//,"/g/");let t=e.lookup("service:current-user"),n=e.lookup("service:site-settings");t?i.default.rewrite(/^\/my\//,`/u/${t.username_lower}/`):i.default.rewrite(/^\/my\/.*/,"/login-preferences"),(0,s.initializeDefaultHomepage)(n)}}},66237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70264),s=n(83618),r=n(20762),o=n(86211),a=n(51969);let l={initialize(e){(0,s.withPluginApi)("0.8.7",t=>{function n(t,n){let s=n.target.closest(".video-placeholder-container"),l=s.querySelector(".video-placeholder-wrapper"),u=l.querySelector(".video-placeholder-overlay");s.style.cursor="",u.innerHTML=i.spinnerHTML;let c=` `;s.insertAdjacentHTML("beforeend",c),s.classList.add("video-container");let d=s.querySelector("video"),p=e.lookup("service:capabilities");if(p.isSafari||p.isIOS){let e=d.querySelector("source");e&&e.parentElement.load()}d.addEventListener("loadeddata",()=>{(0,o.default)(()=>{if(0===d.videoWidth||0===d.videoHeight){let e=document.createElement("div");e.className="notice",e.innerHTML=(0,r.iconHTML)("triangle-exclamation")+" "+(0,a.i18n)("cannot_render_video"),s.appendChild(e)}},500)}),d.addEventListener("canplay",function(){p.isIOS?(0,o.default)(()=>{d.play()},100):d.play(),l.remove(),d.style.display="",s.classList.remove("video-placeholder-container"),s.style.backgroundImage="none"})}t.decorateCookedElement(function(e,t){t&&e.querySelectorAll(".video-placeholder-container").forEach(e=>{if(e.dataset.thumbnailSrc){let t=new Image;t.onload=function(){e.style.backgroundImage="url('"+t.src+"')"},t.src=e.dataset.thumbnailSrc}let i=document.createElement("div"),s=document.createElement("div");i.classList.add("video-placeholder-wrapper"),e.appendChild(i),s.classList.add("video-placeholder-overlay"),e.style.cursor="pointer",e.addEventListener("click",n.bind(null,t),{once:!0}),s.innerHTML=`${(0,r.iconHTML)("play")}`,i.appendChild(s)})},{onlyStream:!0})})}}},44558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(20802),s=n(86211);let r={after:"inject-objects",retryCount:0,isAppWebview:void 0,mediaQuery:"(prefers-color-scheme: dark)",initialize(e){if(void 0===this.isAppWebview){let t=e.lookup("service:capabilities");this.isAppWebview=t.isAppWebview}this.isAppWebview&&(window.matchMedia(this.mediaQuery).addEventListener("change",this.updateAppBackground.bind(this)),this.updateAppBackground())},updateAppBackground(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;(0,s.default)(()=>{this.headerBgColor()?(0,i.postRNWebviewMessage)("headerBg",this.headerBgColor()):this.retry()},e)},headerBgColor(){let e=document.querySelector(".d-header-wrap .d-header");if(e)return window.getComputedStyle(e)?.backgroundColor},retry(){this.retryCount<2&&(this.retryCount++,this.updateAppBackground(1e3))},teardown(){this.isAppWebview&&window.matchMedia(this.mediaQuery).removeEventListener("change",this.updateAppBackground.bind(this))}}},84176:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PLUGIN_NAV_MODE_SIDEBAR:()=>i,PLUGIN_NAV_MODE_TOP:()=>s,configNavForPlugin:()=>l,registerAdminPluginConfigNav:()=>o,resetAdminPluginConfigNav:()=>a});let i="sidebar",s="top",r={};function o(e,t,n){r[e]={mode:t,links:n}}function a(){r={}}function l(e){return r[e]}},26529:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPluginHeaderActionComponents:()=>r,headerActionComponentForPlugin:()=>o,registerPluginHeaderActionComponent:()=>s});let i=new Map;function s(e,t){i.set(e,t)}function r(){i=new Map}function o(e){return i.get(e)}},53912:(e,t,n)=>{"use strict";function i(e,t){try{return t.use_new_show_route?e.urlFor(t.full_location,t.location):e.urlFor(t.full_location),!0}catch{return!1}}n.r(t),n.d(t,{adminRouteValid:()=>i})},38557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});let i=(0,n(21959).lQ)("after-frame-paint");function s(e){let t=i.beginAsync();requestAnimationFrame(()=>{let n=new MessageChannel;n.port1.onmessage=()=>{i.endAsync(t),e()},n.port2.postMessage(void 0)})}},64149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractError:()=>u,flashAjaxError:()=>d,popupAjaxError:()=>p,throwAjaxError:()=>c});var i=n(35804),s=n(14682),r=n.n(s),o=n(26399),a=n(51969);function l(e,t){e instanceof Error&&console.error(e.stack),"string"==typeof e&&console.error(e),e.jqXHR&&(e=e.jqXHR);let n=!1,i,s;if(e.responseJSON&&(s=e.responseJSON),!s&&e.responseText)try{s=r().parseJSON(e.responseText)}catch(e){console.error(e.stack)}return s&&(s.html_message&&(n=!0),s.errors?.length>1?i=(0,a.i18n)("multiple_errors",{errors:s.errors.map((e,t)=>`${t+1}) ${e}`).join(" ")}):s.errors?.length>0?i=(0,a.i18n)("generic_error_with_reason",{error:s.errors[0]}):s.error?i=s.error:s.message?i=s.message:s.failed&&(i=s.failed)),!i&&e.status&&e.status>=400&&(i=e.status+" "+e.statusText),{html:n,message:i||t||(0,a.i18n)("generic_error")}}function u(e,t){return l(e,t).message}function c(e,t){return function(n){throw e&&e(n),u(n,t)}}function d(e,t){return n=>{e.flash(u(n,t),"error")}}function p(e){let t=(0,o.getOwnerWithFallback)(this).lookup("service:dialog"),n=l(e);n.html?t.alert({message:(0,i.htmlSafe)(n.message)}):t.alert(n.message)}},6610:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{ajax:()=>S,handleLogoff:()=>x,resetAjax:()=>w,setLogoffCallback:()=>k,setTransientHeader:()=>_,trackNextAjaxAsPageview:()=>b,trackNextAjaxAsTopicView:()=>y,updateCsrfToken:()=>T});var s=n(42433),r=n(14682),o=n.n(r),a=n(35223),l=n(33837),u=n(20177),c=n(89882),d=n(41958),p=n(45929),h=n(87389);let m=!1,g=null,f=null;function _(e,t){f={key:e,value:t}}function y(e){g=e}function b(){m=!0}function w(){m=!1}function k(e){i=e}function x(e){e&&e.getResponseHeader("Discourse-Logged-Out")&&i&&i()}function T(){return S("/session/csrf").then(e=>{u.default.currentProp("csrfToken",e.csrf)})}function S(){let e,t,n,i;1==arguments.length?"string"==typeof arguments[0]?(e=arguments[0],t={}):(t=arguments[0],e=t.url,delete t.url):2==arguments.length&&(e=arguments[0],t=arguments[1]),e=(0,h.default)(e);let r=!0;function _(i,a){t.headers=t.headers||{},d.default.current()&&(t.headers["Discourse-Logged-In"]="true"),f&&(t.headers[f.key]=f.value,f=null),m&&(!t.type||"GET"===t.type)&&(m=!1,t.headers["Discourse-Track-View"]="true",g&&(t.headers["Discourse-Track-View-Topic-Id"]=g),g=null),(0,l.default)()&&(t.headers["Discourse-Present"]="true"),t.success=(e,n,r)=>{(function(e){e&&e.getResponseHeader("Discourse-Xhr-Redirect")&&(window.location=e.responseText)})(r),x(r),(0,s.run)(()=>{c.default.currentProp("isReadOnly",!!(r&&r.getResponseHeader("Discourse-Readonly")))}),t.returnXHR&&(e={result:e,xhr:r}),(0,s.run)(null,i,e)},t.error=(n,i,o)=>{if(r&&0===n.readyState){if("error"===i&&(0,p.isTesting)())throw o;return}if(x(n),403===n.status&&'["BAD CSRF"]'===n.responseText&&u.default.current().set("csrfToken",null),200===n.status)return t.success(n);n.jqTextStatus=i,n.requestedUrl=e,(0,s.run)(null,a,{jqXHR:n,textStatus:i,errorThrown:o})},t.method&&(t.type=t.method,delete t.method),t.type||(t.type="GET"),t.dataType||"GET"!==t.type.toUpperCase()||(t.dataType="json"),"script"===t.dataType&&(t.headers["Discourse-Script"]=!0),n=o().ajax(e,t)}return void 0!==t.ignoreUnsent&&(r=t.ignoreUnsent,delete t.ignoreUnsent),(i=new a.Promise(t.type&&"GET"!==t.type.toUpperCase()&&e!==(0,h.default)("/clicks/track")&&!u.default.currentProp("csrfToken")?(e,t)=>{n=T().then(()=>{_(e,t)})}:_)).abort=()=>{n&&n.abort()},i}},61718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{apiInitializer:()=>r});var i=n(83618);let s=0;function r(e,t,n){return{name:`api-initializer${s++}`,after:"inject-objects",initialize:()=>(0,i.withPluginApi)(e,t,n)}}},21640:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{CANCELLED_STATUS:()=>_,SKIP:()=>f,default:()=>w});var r=n(42433),o=n(60984),a=n(14682),l=n.n(a),u=n(64055),c=n(47876),d=n(89882),p=n(45929),h=n(84262),m=n(20762),g=n(86211);let f="skip",_="__CANCELLED",y=/[\s[{(/]/,b={backSpace:8,tab:9,enter:13,shift:16,esc:27,upArrow:38,rightArrow:39,downArrow:40};function w(e){if(0===this.length||("destroy"===e||e.updateData)&&((0,r.cancel)(s),this[0].removeEventListener("keydown",H),this[0].removeEventListener("keyup",z),this[0].removeEventListener("paste",D),this[0].removeEventListener("click",P),window.removeEventListener("click",P),"destroy"===e))return;if(e&&e.cancel&&this.data("closeAutocomplete"))return this.data("closeAutocomplete")(),this;if(1!==this.length)return window.console&&(window.console.log("WARNING: passed multiple elements to $.autocomplete, skipping."),window.Error&&window.console.log(new window.Error().stack)),this;e&&void 0===e.preserveKey&&(e.preserveKey=!0);let t=e&&e.disabled,n=null,a=null,w=null,k=null,x=this,T=null,S=null,C=null;"autoSelectFirstSuggestion"in e||(e.autoSelectFirstSuggestion=!0);let E="INPUT"===x[0].tagName&&!e.treatAsTextarea,A=[];function D(){(0,g.default)(()=>x.trigger("keydown"),50)}function I(){if(!S&&!T)return;let e=S?.length>0?S[0]:T[0],t=O(),n=t.offsetTop,i=n+t.clientHeight;n<=e.scrollTop?e.scrollTo(0,n):i>=e.scrollTop+e.clientHeight&&e.scrollTo(0,e.scrollTop+t.clientHeight)}function P(){i?.destroy(),e.onClose?.(),T?.hide()?.remove(),T=null,S=null,k=null,a=null,C=null,i=null}function M(t,n){let i=t;e.transformComplete&&(i=e.transformComplete(i)),e.single&&(A=[]);let s=(Array.isArray(i)?i:[i||t]).map(e=>{let t=l()(``),n=x.parent().find(".item:last");return 0===n.length?x.parent().prepend(t):n.after(t),A.push(e),t[0]});e.onChangeItems&&n&&e.onChangeItems(A),l()(s).find("a").click(function(){return P(),A.splice(l().inArray(i,A),1),l()(this).parent().parent().remove(),e.single&&x.show(),e.onChangeItems&&e.onChangeItems(A),!1})}e.textHandler??=new c.TextareaAutocompleteHandler(x[0]);let F=async function(t,n){if(t){if(E)x.val(""),e.single&&x.hide(),M(t,!0);else if(e.transformComplete&&(t=await e.transformComplete(t,n)),t){let i=await q({completeTerm:!0}),s=null;void 0!==i.completeStart&&void 0!==i.completeEnd?(k=i.completeStart,s=i.completeEnd):k=s=e.textHandler.getCaretPosition(),e.textHandler.replaceTerm({start:k,end:s,term:(e.preserveKey&&e.key||"")+t}),e&&e.afterComplete&&e.afterComplete(e.textHandler.value,n)}}P()};if(E){let i=Math.max(this.width(),200);e.updateData?((n=this.parent()).find(".item").remove(),x.show()):(n=this.wrap("
").parent(),e.fullWidthWrap||n.width(i)),e.single&&!e.width?this.attr("class",`${this.attr("class")} fullwidth-input`):e.width&&this.css("width",e.width),this.attr("name",e.updateData?this.attr("name"):this.attr("name")+"-renamed"),this.val().split(",").forEach(t=>{""!==t&&(e.reverseTransform&&(t=e.reverseTransform(t)),e.single&&x.hide(),M(t,!1))}),e.items&&e.items.forEach(t=>{e.single&&x.hide(),M(t,!0)}),this.val(""),k=0,n.click(function(){return this.focus(),!0})}function N(){return L().removeClass("selected"),l()(O()).addClass("selected")}function O(){return L()[w]}function L(){return T.find("li a")}function R(e,t){let n=t._gboard_hack_force_lookup;return(n&&delete t._gboard_hack_force_lookup,C!==e||n)?(C=e,0!==e.length&&0===e.trim().length)?(P(),null):t.dataSource(e):f}function U(t){if(null!==k&&t!==f){if(t&&t.then&&"function"==typeof t.then){T&&T.hide().remove(),t.then(U);return}t!==_&&(a=t,t&&0!==t.length?function(){let t;if(T&&T.hide().remove(),0===a.length)return;let n=(T=l()(e.template({options:a}))).find("ul");if(e.autoSelectFirstSuggestion?(w=0,N()):w=-1,n.find("li").click(async function(t){let{originalEvent:i}=t;if(i.preventDefault(),i.stopPropagation(),w=n.find("li").index(this),null==a){let t={...e,_gboard_hack_force_lookup:!0},n=await R(C,t);n&&(U(n),await F(a[w],i),e.single||x.focus())}else await F(a[w],i),e.single||x.focus()}),e.appendSelector?x.parents(e.appendSelector).append(T):x.parent().append(T),e.scrollElementSelector&&(S=T.find(e.scrollElementSelector)),e.onRender&&e.onRender(a),E||e.treatAsTextarea)return i&&i.destroy(),i=(0,o.n4)(x[0],T[0],{placement:`${d.default.currentProp("mobileView")?"top":"bottom"}-start`,modifiers:[{name:"offset",options:{offset:[0,2]}}]});let s=0,r=e.textHandler.getCaretCoords(k);e.treatAsTextarea&&(s=-32),!E&&!e.treatAsTextarea&&(s=T.height(),window.innerHeight-x.outerHeight()-l()("header.d-header").innerHeight()r.top&&(s=-32),d.default.currentProp("mobileView")&&x.height()/2>=r.top&&(s=-32));let c=x.position();if((0,u.isDocumentRTL)())t=c.left+r.left-T.width();else{let e=10;d.default.currentProp("mobileView")&&x.width()/2<=r.left&&(e=-T.width()),t=c.left+r.left+e}t<0&&(t=0);let p=x.offset().top,h=parseInt(x.css("border-top-width"),10)||0;c.top+r.top+h-s+p<30&&(s=-32),T.css({position:"absolute",top:`${c.top+r.top-s+h}px`,left:`${t}px`})}():P())}}let j=x.data("closeAutocomplete");async function B(t){let n={...t,inCodeBlock:()=>e.textHandler.inCodeBlock()};return await e.triggerRule?.(x[0],n)??!0}async function z(t){e.debounced?(0,h.default)(this,$,t,p.INPUT_DELAY):await $(t)}async function $(t){if([b.esc,b.enter].includes(t.which))return!0;let n=e.textHandler.getCaretPosition(),i=e.textHandler.value[n-1];if(e.key&&e.onKeyUp&&i!==e.key){let t=e.onKeyUp(e.textHandler.value,n);t&&(k=n-t[0].length,U(R(t[0].substring(1,t[0].length),e)))}if(null===k&&n>0){if(i===e.key){let t=e.textHandler.value.charAt(n-2);await B()&&(!t||y.test(t))&&(k=n-1,U(R("",e)))}}else null!==k&&U(R(e.textHandler.value.substring(k+(e.key?1:0),n),e))}async function q(t){let n,i;let s=!0,r=t?.backSpace,o=t?.completeTerm,a=e.textHandler.getCaretPosition();r&&(a-=1);let l=null,u=null,c=a;for(;s&&a>=0;){if(a-=1,(n=e.textHandler.value[a])===e.key&&(n=e.textHandler.value[a-1],await B({backSpace:r})&&(void 0===n||y.test(n)))){l=a,i=e.textHandler.value.substring(a+1,c),u=a+i.length;break}s=!/\s/.test(n),o&&(s||=" "===n)}return{completeStart:l,completeEnd:u,term:i}}async function H(t){let i,o,l,u,c;if(t.ctrlKey||t.altKey||t.metaKey)return!0;if(e.allowAny&&((0,r.cancel)(s),s=(0,g.default)(()=>{0===A.length&&A.push("");let t=e.textHandler.value;"string"==typeof A[0]&&t.length>0&&(A.pop(),A.push(t),e.onChangeItems&&e.onChangeItems(A))},50)),e.key||(k=0),t.which!==b.shift){if(null===k&&t.which===b.backSpace&&e.key){let t=await q({backSpace:!0});if(k=t.completeStart,t.completeEnd)return U(R(t.term,e)),!0}if(t.which===b.esc)return null===T||(P(),t.preventDefault(),t.stopImmediatePropagation(),!1);if(null!==k){if(c=e.textHandler.getCaretPosition(),t.which===b.rightArrow&&" "===e.textHandler.value[c]||c<=k&&e.key)return P(),!0;switch(t.which){case b.tab:case b.enter:if(!a)return P(),!0;if(!(w>=0)||!(u=a[w]))return!0;return await F(u,t),t.stopImmediatePropagation(),t.preventDefault(),!1;case b.upArrow:return(w-=1)<0&&(w=0),N(),I(),t.preventDefault(),!1;case b.downArrow:if(!a)return P(),!0;return l=a.length,(w+=1)>=l&&(w=l-1),w<0&&(w=0),N(),I(),t.preventDefault(),!1;case b.backSpace:if(a=null,--c<0)return P(),E&&(i=n.find("a:last"))&&i.click(),!0;return o=e.textHandler.value.substring(k+(e.key?1:0),c),k===c&&o===e.key&&P(),U(R(o,e)),!0;default:return a=null,!0}}}}return x.data("closeAutocomplete",function(){j&&j(),P()}),window.addEventListener("click",P),this[0].addEventListener("click",P),this[0].addEventListener("paste",D),this[0].addEventListener("keyup",z),this[0].addEventListener("keydown",H),this}},55990:(e,t,n)=>{"use strict";let i,s;function r(e,t){if(i||function(e){i={},s=!0,["admins","moderators","staff","trust_level_0","trust_level_1","trust_level_2","trust_level_3","trust_level_4"].forEach(t=>{let n=e.groups?.findBy("name",t);n&&n.flair_url&&(s=!1,i[t]={flair_name:n.name.replace(/_/g," "),flair_url:n.flair_url,flair_bg_color:n.flair_bg_color,flair_color:n.flair_color})})}(e),s)return null;if(t.admin&&i.admins)return i.admins;if(t.moderator&&i.moderators)return i.moderators;if(i.staff&&(t.admin||t.moderator))return i.staff;let n=t.trust_level||t.trustLevel;if(n){for(let e=n;e>=0;e--)if(i[`trust_level_${e}`])return i[`trust_level_${e}`]}}function o(){i=null,s=null}n.r(t),n.d(t,{default:()=>r,resetFlair:()=>o})},47050:(e,t,n)=>{"use strict";let i,s,r;n.r(t),n.d(t,{clearAllBodyScrollLocks:()=>k,disableBodyScroll:()=>w,enableBodyScroll:()=>x});let o=!1;if("undefined"!=typeof window){let e={get passive(){o=!0;return}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}let a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),l=[],u=new Map,c=!1,d=-1,p=e=>l.some(t=>!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))),h=e=>{let t=e||window.event;return!!p(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},m=e=>{if(void 0===r){let t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.getBoundingClientRect().width;if(t&&n>0){let e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);r=document.body.style.paddingRight,document.body.style.paddingRight=`${e+n}px`}}},g=()=>{void 0!==r&&(document.body.style.paddingRight=r,r=void 0)},f=()=>window.requestAnimationFrame(()=>{let e=document.documentElement,t=document.body;if(void 0===s){i={...e.style},s={...t.style};let{scrollY:n,scrollX:r,innerHeight:o}=window;e.style.height="100%",e.style.overflow="hidden",t.style.position="fixed",t.style.top=`${-n}px`,t.style.left=`${-r}px`,t.style.width="100%",t.style.height="auto"}}),_=()=>{if(void 0!==s){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10),n=document.documentElement,r=document.body;n.style.height=(null==i?void 0:i.height)||"",n.style.overflow=(null==i?void 0:i.overflow)||"",r.style.position=s.position||"",r.style.top=s.top||"",r.style.left=s.left||"",r.style.width=s.width||"",r.style.height=s.height||"",r.style.overflow=s.overflow||"",window.scrollTo(t,e),s=void 0}},y=e=>!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight,b=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.targetTouches[0].clientY-d;if(p(e.target))return!1;let{reverse:s}=n,r=0===t.scrollTop,o=y(t);if(s){if(o&&i>0||r&&i<0)return h(e)}else if(r&&i>0||o&&i<0)return h(e);return e.stopPropagation(),!0},w=(e,t)=>{if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}u.set(e,(null==u?void 0:u.get(e))?(null==u?void 0:u.get(e))+1:1),!l.some(t=>t.targetElement===e)&&(l=[...l,{targetElement:e,options:t||{}}],a?f():m(t),a&&(e.ontouchstart=e=>{1===e.targetTouches.length&&(d=e.targetTouches[0].clientY)},e.ontouchmove=n=>{1===n.targetTouches.length&&b(n,e,t)},c||(document.addEventListener("touchmove",h,o?{passive:!1}:void 0),c=!0)))},k=()=>{a&&(l.forEach(e=>{e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),c&&(document.removeEventListener("touchmove",h,o?{passive:!1}:void 0),c=!1),d=-1),a?_():g(),l=[],u.clear()},x=e=>{if(!e){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}u.set(e,(null==u?void 0:u.get(e))?(null==u?void 0:u.get(e))-1:0),(null==u?void 0:u.get(e))===0&&(l=l.filter(t=>t.targetElement!==e),null==u||u.delete(e)),a&&(e.ontouchstart=null,e.ontouchmove=null,c&&0===l.length&&(document.removeEventListener("touchmove",h,o?{passive:!1}:void 0),c=!1)),0===l.length&&(a?_():g())}},84568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BookmarkFormData:()=>a});var i=n(28564),s=n(90808),r=n(32644),o=n(10157);class a{static #e=(()=>dt7948.g(this.prototype,"selectedDatetime",[i.tracked]))();#cj=(()=>void dt7948.i(this,"selectedDatetime"))();static #n=(()=>dt7948.g(this.prototype,"selectedReminderType",[i.tracked],function(){return r.TIME_SHORTCUT_TYPES.NONE}))();#cB=(()=>void dt7948.i(this,"selectedReminderType"))();static #i=(()=>dt7948.g(this.prototype,"id",[i.tracked]))();#cz=(()=>void dt7948.i(this,"id"))();static #l=(()=>dt7948.g(this.prototype,"reminderAt",[i.tracked]))();#c$=(()=>void dt7948.i(this,"reminderAt"))();static #u=(()=>dt7948.g(this.prototype,"autoDeletePreference",[i.tracked]))();#cq=(()=>void dt7948.i(this,"autoDeletePreference"))();static #c=(()=>dt7948.g(this.prototype,"name",[i.tracked]))();#sR=(()=>void dt7948.i(this,"name"))();static #d=(()=>dt7948.g(this.prototype,"bookmarkableId",[i.tracked]))();#cH=(()=>void dt7948.i(this,"bookmarkableId"))();static #p=(()=>dt7948.g(this.prototype,"bookmarkableType",[i.tracked]))();#cV=(()=>void dt7948.i(this,"bookmarkableType"))();constructor(e){this.id=e.id,this.reminderAt=e.reminder_at,this.name=e.name,this.bookmarkableId=e.bookmarkable_id,this.bookmarkableType=e.bookmarkable_type,this.autoDeletePreference=e.auto_delete_preference??o.AUTO_DELETE_PREFERENCES.CLEAR_REMINDER}get reminderAtISO(){return this.selectedReminderType===r.TIME_SHORTCUT_TYPES.NONE?null:this.selectedReminderType&&this.selectedDatetime?this.selectedDatetime.toISOString():this.reminderAt?this.reminderAt.toISOString():null}get saveData(){return{reminder_at:this.reminderAtISO,name:this.name,id:this.id,auto_delete_preference:this.autoDeletePreference,bookmarkable_id:this.bookmarkableId,bookmarkable_type:this.bookmarkableType}}formattedReminder(e){return(0,s.formattedReminderTime)(this.reminderAt,e)}}},90808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{formattedReminderTime:()=>s});var i=n(51969);function s(e,t){let n=moment.tz(e,t),s=n.format((0,i.i18n)("dates.time")),r=moment.tz(t),o=moment(r).add(1,"day");return n.isSame(o,"date")?(0,i.i18n)("bookmarks.reminders.tomorrow_with_time",{time:s}):n.isSame(r,"date")?(0,i.i18n)("bookmarks.reminders.today_with_time",{time:s}):(0,i.i18n)("bookmarks.reminders.at_time",{date_time:n.format((0,i.i18n)("dates.long_with_year"))})}},76546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(28564),s=n(70001),r=n(71597),o=n(54729),a=n(28360),l=n(18523),u=n(46606);class c{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#N=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#x=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[o.service]))();#sZ=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#e9=(()=>void dt7948.i(this,"topicTrackingState"))();static #u=(()=>dt7948.g(this.prototype,"bulkSelectEnabled",[i.tracked],function(){return!1}))();#cW=(()=>void dt7948.i(this,"bulkSelectEnabled"))();static #c=(()=>dt7948.g(this.prototype,"autoAddTopicsToBulkSelect",[i.tracked],function(){return!1}))();#cK=(()=>void dt7948.i(this,"autoAddTopicsToBulkSelect"))();static #d=(()=>dt7948.g(this.prototype,"autoAddBookmarksToBulkSelect",[i.tracked],function(){return!1}))();#cG=(()=>void dt7948.i(this,"autoAddBookmarksToBulkSelect"))();static #p=(()=>dt7948.g(this.prototype,"lastCheckedElementId",[i.tracked],function(){return null}))();#cY=(()=>void dt7948.i(this,"lastCheckedElementId"))();selected=(()=>new a.TrackedArray)();constructor(e){(0,r.setOwner)(this,(0,r.getOwner)(e))}clear(){this.selected.length=0,this.lastCheckedElementId=null}addTopics(e){this.selected.concat(e)}get selectedCategoryIds(){return this.selected.mapBy("category_id").uniq()}toggleBulkSelect(e){e?.preventDefault(),this.bulkSelectEnabled=!this.bulkSelectEnabled,this.clear()}static #h=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[s.action]))();dismissRead(e,t){let n="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:l.NotificationLevels.REGULAR},i="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);(this.selected.length?u.default.bulkOperation(this.selected,n,{},i):u.default.bulkOperationByFilter("unread",n,t,i)).then(e=>{e?.topic_ids&&(t?.private_message_inbox?this.pmTopicTrackingState.removeTopics(e.topic_ids):this.topicTrackingState.removeTopics(e.topic_ids)),this.modal.close(),this.router.refresh()})}}},77149:(e,t,n)=>{"use strict";function i(e,t){e.set("topicList",t)}function s(e){e.get("topicList")}function r(e){e.setProperties({topicList:null})}function o(e,t){let n=e.get("topicList");return n&&n.filter===t?n:(r(e),!1)}n.r(t),n.d(t,{findOrResetCachedTopicList:()=>o,getCachedTopicList:()=>s,resetCachedTopicList:()=>r,setCachedTopicList:()=>i})},43900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{constructor(e,t,n){this.model=e,this.can_moderators_view_emails=t,this.currentUser=n}get canAdminCheckEmails(){return this.currentUser.admin}get canCheckEmails(){if(!this.currentUser)return!1;let e=this.can_moderators_view_emails&&this.currentUser.staff;return this.model?.id===this.currentUser.id||this.canAdminCheckEmails||e}}},55905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{caret:()=>a,caretPosition:()=>l});var i=n(14682),s=n.n(i);let r=null;function o(e){return e.selectionStart?e.selectionStart:0}function a(e){return o(e||this[0])}function l(e){let t,n,i,a,l,u,c,d,p,h,m,g,f,_,y;r&&r.remove(),_=s()(this),i=function(e){return e.currentStyle?e.currentStyle:document.defaultView.getComputedStyle(e,"")},u=function(e){return f.getPropertyValue(e)},f=i(_[0]),h=(r=s()("

").appendTo("body")).find("p");let b=s()("html").hasClass("rtl");r.css({border:"1px solid black",padding:u("padding"),resize:u("resize"),"max-height":_.height()+"px","overflow-y":"auto","word-wrap":"break-word",position:"absolute",left:b?"auto":"-7000px",right:b?"-7000px":"auto"}),h.css({margin:0,padding:0,"word-wrap":"break-word","letter-spacing":u("letter-spacing"),"font-family":u("font-family"),"font-size":u("font-size"),"line-height":u("line-height")}),r.width(_.width()),r.height(_.height()),g=e&&(e.pos||0===e.pos)?e.pos:o(_[0]),y=_.val().replace("\r",""),e&&e.key&&(y=y.substring(0,g)+e.key+y.substring(g)),n=g-1,t=g,c=!1,"\n"===y[n]&&"\n"===y[t]&&(c=!0),a=function(e){return e.replace(//g,">").replace(/[ ]/g,"​ ​").replace(/\n/g,"
")},p=function(e,t,n){let i;return"\n"===(i=y.substring(e,e+1))?"
":""+a(i)+""},l="",n>=0&&(l+=a(y.substring(0,g-1))+p(n,"before","#d0ffff"),c&&(l+=p(0,"post-before","#d0ffff"))),t>=0&&(l+=p(t,"after","#ffd0ff"),t-1{"use strict";n.r(t),n.d(t,{SEPARATOR:()=>r,categoryHashtagTriggerRule:()=>a,replaceSpan:()=>o});var i=n(15963),s=n(54216);let r=":";function o(e,t,n,i){i=i?` data-type="${i}"`:"",e.replaceWith(`#${t}`)}function a(e,t){return(0,s.default)("categoryHashtagTriggerRule is being replaced by hashtagTriggerRule and the new hashtag-autocomplete plugin APIs",{since:"2.9.0.beta10",dropFrom:"3.0.0.beta1",id:"discourse.category-hashtags.categoryHashtagTriggerRule"}),(0,i.hashtagTriggerRule)(e,t)}},37186:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{search:()=>y});var r=n(42433),o=n(35223),a=n(6610),l=n(21640),u=n(24812),c=n(9146),d=n(88253),p=n(45929),h=n(84262),m=n(86211);let g={};function f(e,t){return g[e]=t,i=new Date,t}function _(e,t,n,i){s=(0,a.ajax)("/tags/filter/search",{data:{limit:t,q:e}});let r=l.CANCELLED_STATUS;s.then(e=>{let t=n.map(e=>e.model.get("name")),i=e.results.map(e=>(e.text=t.includes(e.text)?`${e.text}${c.TAG_HASHTAG_POSTFIX}`:e.text,e));r=n.concat(i)}).finally(()=>{s=null,i(r)})}function y(e,t){s&&(s.abort(),s=null),new Date-i>3e4&&(g={});let n=g[e];if(n)return n;let a=d.default.search(e,{limit:5}),c=a.length;return(a=a.map(e=>({model:e,text:d.default.slugFor(e,u.SEPARATOR,2)})),5!==c&&t.tagging_enabled)?function(e,t,n){return new o.Promise(i=>{let s=(0,p.isTesting)()?null:(0,m.default)(()=>{i(l.CANCELLED_STATUS)},5e3);(0,h.default)(this,_,e,n,t,t=>{(0,r.cancel)(s),i(f(e,t))},300)})}(e,a,5-c):f(e,a)}},6235:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,rollbackAllPrepends:()=>c,withPrependsRolledBack:()=>u});var i=n(134);let s=["prototype","name","length"],r=["constructor"];function o(e,t){(function(e,t){let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1})(e,i.default)&&e.proto();let n=Object.getOwnPropertyDescriptors(e),o=Object.getOwnPropertyDescriptors(e.prototype);for(let i of(function(e,t,n,i){let s=a.get(e)||{klassDescs:t,protoDescs:n,modifyCallbacks:[]};s.modifyCallbacks.push(i),a.set(e,s)}(e,n,o,t),s))delete n[i];for(let e of r)delete o[e];let l=Object.getPrototypeOf(e),u=l!==Function.prototype?class extends l{}:class{};Object.defineProperties(u,n),Object.defineProperties(u.prototype,o);let c=t(u);if(Object.getPrototypeOf(c)!==u)throw Error("The class returned from the callback must extend the provided superclass");for(let[t,i]of Object.entries(Object.getOwnPropertyDescriptors(c)))n[t]===i||s.includes(t)||Object.defineProperty(e,t,i);for(let[t,n]of Object.entries(Object.getOwnPropertyDescriptors(c.prototype)))o[t]===n||r.includes(t)||Object.defineProperty(e.prototype,t,n)}let a=new Map;function l(e){let{klassDescs:t,protoDescs:n}=a.get(e);for(let[n,i]of Object.entries(t))Object.defineProperty(e,n,i);for(let n of Object.getOwnPropertyNames(e))s.includes(n)||t[n]||delete e[n];for(let[t,i]of Object.entries(n))Object.defineProperty(e.prototype,t,i);for(let t of Object.getOwnPropertyNames(e.prototype))r.includes(t)||n[t]||delete e.prototype[t];a.delete(e)}function u(e,t){let n=a.get(e);if(!n){t();return}l(e);try{t()}finally{n.modifyCallbacks.forEach(t=>o(e,t))}}function c(){for(let e of a.keys())l(e)}},31800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,isValidLink:()=>g,openLinkInNewTab:()=>_,shouldOpenInNewTab:()=>f});var i=n(14682),s=n.n(i),r=n(35223),o=n(6610),a=n(3737),l=n(56839),u=n(41958),c=n(45929),d=n(54216),p=n(26399),h=n(87389),m=n(51969);function g(e){if(e instanceof s()&&(e=e[0],(0,d.default)("isValidLink now expects an Element, not a jQuery object",{since:"2.9.0.beta7",id:"discourse.click-track.is-valid-link-jquery"})),["lightbox","no-track-link","hashtag","hashtag-cooked","back"].some(t=>e.classList.contains(t)))return!1;let t=e.closest("aside.quote, .elided, .expanded-embed");if(t&&t!==e)return!1;if(e.closest(".onebox-result, .onebox-body")){let t=e.closest(".onebox")?.querySelector("header a");if(t&&t.href===e.href)return!0}return e.classList.contains("track-link")||!e.closest(".hashtag, .hashtag-cooked, .hashtag-icon-placeholder, .badge-category, .onebox-result, .onebox-body")}function f(e){let t=l.default.isInternal(e),n=u.default.currentProp("user_option.external_links_in_new_tab");return!t&&n}function _(e,t){let n=(t.href||t.dataset.href||"").trim();if(""===n)return;let i=window.open(n,"_blank");i.opener=null,i.focus(),e.preventDefault()}let y={trackClick(e,t){let{returnPromise:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(3===e.which)return!0;let i=e.currentTarget,s=g(i);if(["mention","mention-group"].some(e=>i.classList.contains(e)))return!0;let d=(i.getAttribute("href")||i.dataset.href||"").trim();if(!d||d.startsWith("mailto:"))return!0;if(t?.lookup("service:app-events").trigger("click-tracked",d),i.classList.contains("attachment")){if(t?.lookup("service:site-settings")?.prevent_anons_from_downloading_files&&!u.default.current())(0,p.getOwnerWithFallback)(this).lookup("service:dialog").alert((0,m.i18n)("post.errors.attachment_download_requires_login"));else if((0,a.wantsNewWindow)(e)){let e=window.open(d,"_blank");e.opener=null,e.focus()}else l.default.redirectTo(d);return!1}let y=i.closest("article:not(.onebox-body), .excerpt, #revisions"),b=y.dataset.postId,w=document.querySelector("#topic")?.dataset?.topicId||y.dataset.topicId,k=i.dataset.userId||y.dataset.userId,x=k&&parseInt(k,10)===u.default.currentProp("id");if(s&&!x){let e=i.querySelector("span.badge");if(e){let t=e.innerHTML,n=`${new Date().toLocaleDateString()}-${b}-${d}`;/^\d+$/.test(t)&&!sessionStorage.getItem(n)&&(sessionStorage.setItem(n,!0),e.innerHTML=parseInt(t,10)+1)}}let T=r.Promise.resolve();if(s){if(!(0,c.isTesting)()&&navigator.sendBeacon){let e=new FormData;e.append("url",d),e.append("post_id",b),e.append("topic_id",w),navigator.sendBeacon((0,h.default)("/clicks/track"),e)}else T=(0,o.ajax)("/clicks/track",{type:"POST",data:{url:d,post_id:b,topic_id:w}})}return(0,a.wantsNewWindow)(e)?!n||T:(f(d)?_(e,i):T.finally(()=>{l.default.isInternal(d)&&(0,h.samePrefix)(d)?l.default.routeTo(d):l.default.redirectAbsolute(d)}),!!n&&T)}}},73160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(38075),s=n(42433),r=n(8304),o=n(76578),a=n(20802),l=n(26399),u=n(20762),c=n(86211),d=n(62797),p=n(51969);class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={},e=Object.assign({showFullscreen:!0,showCopy:!0},e),this.showFullscreen=e.showFullscreen,this.showCopy=e.showCopy}attachToPost(e,t){let n=this._getCodeBlocks(t);n.length&&e&&(this._createButtons(n),this._storeClickHandler(e.id,t),this._addClickEvent(t))}attachToGeneric(e){let t=this._getCodeBlocks(e);if(!t.length)return;this._createButtons(t);let n=(0,i.guidFor)(e);this._storeClickHandler(n,e),this._addClickEvent(e)}cleanup(){Object.values(this._codeblockButtonClickHandlers||{}).forEach(e=>e.removeEventListener("click",this._handleClick)),Object.values(this._fadeCopyCodeblocksRunners||{}).forEach(e=>(0,s.cancel)(e)),this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={}}_storeClickHandler(e,t){this._codeblockButtonClickHandlers[e]&&(this._codeblockButtonClickHandlers[e].removeEventListener("click",this._handleClick),delete this._codeblockButtonClickHandlers[e]),this._codeblockButtonClickHandlers[e]=t}_getCodeBlocks(e){return e.querySelectorAll(":scope > pre > code, :scope :not(article):not(blockquote) > pre > code")}_createButtons(e){e.forEach(e=>{let t=document.createElement("div");if(t.classList.add("codeblock-button-wrapper"),e.before(t),this.showCopy){let n=document.createElement("button");n.classList.add("btn","nohighlight","copy-cmd","btn-flat"),n.ariaLabel=(0,p.i18n)("copy_codeblock.copy"),n.innerHTML=(0,u.iconHTML)("copy"),t.appendChild(n),t.style.right=`${e.offsetWidth-e.clientWidth}px`}if(this.showFullscreen&&!o.default.isMobileDevice){let e=document.createElement("button");e.classList.add("btn","nohighlight","fullscreen-cmd","btn-flat"),e.ariaLabel=(0,p.i18n)("copy_codeblock.fullscreen"),e.innerHTML=(0,u.iconHTML)("discourse-expand"),t.appendChild(e)}e.parentElement.classList.add("codeblock-buttons")})}_addClickEvent(e){e.addEventListener("click",this._handleClick,!1)}_handleClick(e){if(!e.target.classList.contains("copy-cmd")&&!e.target.classList.contains("fullscreen-cmd"))return;let t=e.target.classList.contains("fullscreen-cmd")?"fullscreen":"copy",n=e.target,i=n.parentElement.parentElement.querySelector("code");if(i){let e=i.innerText.replace(/[\f\v\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/g," ").trim();if("copy"===t){let t=(0,a.clipboardCopy)(e);t?.then?t.then(()=>{this._copyComplete(n)}):t&&this._copyComplete(n)}else"fullscreen"===t&&(0,l.getOwnerWithFallback)(this).lookup("service:modal").show(r.default,{model:{code:e,codeClasses:i.className}})}}static #e=(()=>dt7948.n(this.prototype,"_handleClick",[d.bind]))();_copyComplete(e){e.classList.add("action-complete");let t=e.innerHTML;e.innerHTML=(0,p.i18n)("copy_codeblock.copied");let n=(0,i.guidFor)(e);this._fadeCopyCodeblocksRunners[n]&&((0,s.cancel)(this._fadeCopyCodeblocksRunners[n]),delete this._fadeCopyCodeblocksRunners[n]),this._fadeCopyCodeblocksRunners[n]=(0,c.default)(()=>{e.classList.remove("action-complete"),e.innerHTML=t,delete this._fadeCopyCodeblocksRunners[n]},3e3)}}},84424:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extendColorSchemeCookies:()=>h,listColorSchemes:()=>l,loadColorSchemeStylesheet:()=>u,updateColorSchemeCookie:()=>p});var i=n(6610),s=n(84266),r=n(20177),o=n(86211),a=n(51969);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.get("user_color_schemes");if(!n||!Array.isArray(n))return null;let i=[];if(t.darkOnly||(n=n.sort((e,t)=>Number(e.is_dark)-Number(t.is_dark))),n.forEach(e=>{(t.darkOnly&&e.is_dark||!t.darkOnly)&&i.push({name:e.name,id:e.id})}),t.darkOnly){let t=e.get("default_dark_color_scheme");t&&!n.findBy("id",t.id)&&i.unshift({id:t.id,name:`${t.name} ${(0,a.i18n)("user.color_schemes.default_dark_scheme")}`}),i.unshift({id:-1,name:(0,a.i18n)("user.color_schemes.disable_dark_scheme")})}return 0===i.length?null:i}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=t?`/${t}`:"";return(0,i.ajax)(`/color-scheme-stylesheet/${e}${s}.json`).then(e=>{if(e&&e.new_href){let t=n?"cs-preview-dark":"cs-preview-light",i=document.querySelector(`link#${t}`);if(i)i.href=e.new_href;else{let i=document.createElement("link");i.href=e.new_href,i.media=n?"(prefers-color-scheme: dark)":"(prefers-color-scheme: light)",i.rel="stylesheet",i.id=t,document.body.appendChild(i)}n||(0,o.default)(()=>{let e=getComputedStyle(document.body).getPropertyValue("--scheme-type");r.default.currentProp("defaultColorSchemeIsDark","dark"===e.trim())},500)}})}let c="color_scheme_id",d="dark_scheme_id";function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.dark?d:c;e?(0,s.default)(n,e,{path:"/",expires:365}):(0,s.removeCookie)(n,{path:"/"})}function h(){for(let e of[c,d]){let t=(0,s.default)(e);t&&(0,s.default)(e,t,{path:"/",expires:365})}}},72613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.container=e,this.options={columns:3,minCount:2,...t},this.items=this._prepareItems(),this.items.length>=this.options.minCount?this.render():e.dataset.disabled=!0}count(){return[2,4].includes(this.items.length)?2:this.options.columns}render(){if(!this.container.dataset.columns)return this.container.dataset.columns=this.count(),this.container.replaceChildren(...this._distributeEvenly()),this}_prepareColumns(e){return[...Array(e)].map(()=>{let e=document.createElement("div");return e.classList.add("d-image-grid-column"),e})}_prepareItems(){let e=[];for(let t of this.container.children)if("P"===t.nodeName&&t.children.length>0)for(let n of t.children)e.push(this._wrapDirectImage(n));else e.push(this._wrapDirectImage(t));return e.filter(e=>!["BR","P"].includes(e.nodeName))}_wrapDirectImage(e){if("IMG"!==e.nodeName)return e;let t=document.createElement("span");return t.classList.add("image-wrapper"),t.appendChild(e.cloneNode()),t}_distributeEvenly(){let e=this.count(),t=this._prepareColumns(e),n=Array(e).fill(0);return this.items.forEach(i=>{let s=0;for(let t=1;t{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(28564);n(38389);var s=n(71597),r=n(54729),o=n(67816),a=n(21765),l=n(51969);class u{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#v=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#s=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"session",[r.service]))();#eK=(()=>void dt7948.i(this,"session"))();static #l=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#ev=(()=>void dt7948.i(this,"capabilities"))();static #u=(()=>dt7948.g(this.prototype,"_uppyUpload",[i.tracked]))();#cQ=(()=>void dt7948.i(this,"_uppyUpload"))();constructor(e){(0,s.setOwner)(this,e)}get uploading(){this._uppyUpload.uploading}generateVideoThumbnail(e,t,n){if(!this.siteSettings.video_thumbnails_enabled||!(0,o.isVideo)(e.name))return n();let i=document.createElement("video");i.src=URL.createObjectURL(e.data),i.autoplay=!0,i.muted=!0,i.playsinline=!0;let r=t.substring(t.lastIndexOf("/")+1).split(".")[0];i[this.capabilities.isIOS?"onloadedmetadata":"oncanplaythrough"]=()=>{let e=document.createElement("canvas"),t=e.getContext("2d");setTimeout(()=>{if(0===i.videoWidth)return n();e.width=i.videoWidth,e.height=i.videoHeight,t.drawImage(i,0,0,i.videoWidth,i.videoHeight);let o=t.getImageData(0,0,i.videoWidth,i.videoHeight).data,u=!0;for(let e=0;e{this._uppyUpload=new a.default((0,s.getOwner)(this),{id:"video-thumbnail",type:"thumbnail",additionalParams:{videoSha1:r},uploadDone(){n()}}),this._uppyUpload.setup(),this._uppyUpload.uppyWrapper.uppyInstance.on("upload-error",(e,t,i)=>{let s=(0,l.i18n)("wizard.upload_error");i.body.errors&&(s=i.body.errors.join("\n")),console.error(s),n()});try{e.name=`${r}.png`,this._uppyUpload.addFiles(e)}catch(e){}})},100)},i.onerror=()=>{console.warn("Video could not be loaded or decoded for thumbnail generation"),n()}}}},15642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPopupMenuOption:()=>r,clearPopupMenuOptions:()=>s,customPopupMenuOptions:()=>i});let i=[];function s(){i.length=0}function r(e){i.push(e)}},9762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(56907),s=n(20802),r=n(51969);function o(e,t){return(0,r.i18n)(e)===t?null:e}class a{constructor(e){let{siteSettings:t,capabilities:n}=e;this.shortcuts={},this.context=null,this.groups=[{group:"fontStyles",buttons:[]},{group:"insertions",buttons:[]},{group:"extras",buttons:[]}];let i=o("composer.bold_label","B");this.addButton({id:"bold",group:"fontStyles",icon:i?null:"bold",label:i,shortcut:"B",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("**","**","bold_text")});let s=o("composer.italic_label","I");this.addButton({id:"italic",group:"fontStyles",icon:s?null:"italic",label:s,shortcut:"I",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("*","*","italic_text")}),e.showLink&&this.addButton({id:"link",icon:"link",group:"insertions",shortcut:"K",preventFocus:!0,trimLeading:!0,sendAction:e=>this.context.send("showLinkModal",e)}),this.addButton({id:"blockquote",group:"insertions",icon:"quote-right",shortcut:"Shift+9",preventFocus:!0,perform:e=>e.applyList("> ","blockquote_text",{applyEmptyLines:!0,multiline:!0})}),n.touch||(this.addButton({id:"code",group:"insertions",shortcut:"E",icon:"code",preventFocus:!0,trimLeading:!0,perform:e=>e.formatCode()}),this.addButton({id:"bullet",group:"extras",icon:"list-ul",shortcut:"Shift+8",title:"composer.ulist_title",preventFocus:!0,perform:e=>e.applyList("* ","list_item")}),this.addButton({id:"list",group:"extras",icon:"list-ol",shortcut:"Shift+7",title:"composer.olist_title",preventFocus:!0,perform:e=>e.applyList(e=>e?`${parseInt(e,10)+1}. `:"1. ","list_item")})),t.support_mixed_text_direction&&this.addButton({id:"toggle-direction",group:"extras",icon:"right-left",shortcut:"Shift+6",title:"composer.toggle_direction",preventFocus:!0,perform:e=>e.toggleDirection()}),this.groups[this.groups.length-1].lastGroup=!0}addButton(e){let t=this.groups.findBy("group",e.group);if(!t)throw Error(`Couldn't find toolbar group ${e.group}`);let n={id:e.id,tabindex:e.tabindex||"-1",className:e.className||e.id,label:e.label,icon:e.icon,action:t=>{e.action?e.action(t):this.context.send("toolbarButton",t),this.context.appEvents.trigger("d-editor:toolbar-button-clicked",t)},perform:e.perform||function(){},trimLeading:e.trimLeading,popupMenu:e.popupMenu||!1,preventFocus:e.preventFocus||!1,condition:e.condition||(()=>!0),shortcutAction:e.shortcutAction};e.sendAction&&(n.sendAction=e.sendAction);let o=(0,r.i18n)(e.title||`composer.${e.id}_title`);if(e.shortcut){let t=`${(0,s.translateModKey)(i.PLATFORM_KEY_MODIFIER+"+")}${(0,s.translateModKey)(e.shortcut)}`;n.title=`${o} (${t})`,this.shortcuts[`${i.PLATFORM_KEY_MODIFIER}+${e.shortcut}`.toLowerCase()]=n}else n.title=o;e.unshift?t.buttons.unshift(n):t.buttons.push(n)}}},28147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedI18n:()=>h,endWith:()=>_,fmt:()=>g,htmlSafe:()=>m,i18n:()=>h,propertyEqual:()=>u,propertyGreaterThan:()=>d,propertyLessThan:()=>p,propertyNotEqual:()=>c,setting:()=>y,url:()=>f});var i=n(70001),s=n(35804),r=n(87389),o=n(482),a=n(51969);function l(e,t){let n=t;if(!Array.isArray(n)||arguments.length>2){n=Array(arguments.length-1);for(let e=1,t=arguments.length;ethis.get(t)})}function p(e,t){return(0,i.computed)(e,t,function(){return this.get(e)this.get(e))))})}function m(){for(var e=arguments.length,t=Array(e),n=0;nthis.get(e)))})}function f(){for(var e=arguments.length,t=Array(e),n=0;nthis.get(e))))})}function _(){let e=Array.prototype.slice.call(arguments,0),t=e.pop();return(0,i.computed)(...e,function(){return e.map(e=>this.get(e)).every(e=>{let n=e.length-t.length,i=e.lastIndexOf(t);return -1!==i&&i===n})})}function y(e){return(0,i.computed)(function(){return this.siteSettings[e]})}},69391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AUTO_GROUPS:()=>a,GROUP_SMTP_SSL_MODES:()=>l,MAX_NOTIFICATIONS_LIMIT_PARAMS:()=>u,MAX_UNOPTIMIZED_CATEGORIES:()=>h,SEARCH_PHRASE_REGEXP:()=>s,SEARCH_PRIORITIES:()=>i,SIDEBAR_SECTION:()=>o,SIDEBAR_URL:()=>r,SITE_SETTING_REQUIRES_CONFIRMATION_TYPES:()=>p,SYSTEM_FLAG_IDS:()=>d,TOPIC_VISIBILITY_REASONS:()=>c,USER_FIELD_FLAGS:()=>m});let i={ignore:1,very_low:2,low:3,normal:0,high:4,very_high:5},s='"([^"]+)"',r={max_icon_length:40,max_name_length:80,max_value_length:1e3},o={max_title_length:30},a={everyone:{id:0,automatic:!0,name:"everyone",display_name:"everyone"},admins:{id:1,automatic:!0,name:"admins",display_name:"admins"},moderators:{id:2,automatic:!0,name:"moderators",display_name:"moderators"},staff:{id:3,automatic:!0,name:"staff",display_name:"staff"},trust_level_0:{id:10,automatic:!0,name:"trust_level_0",display_name:"trust_level_0"},trust_level_1:{id:11,automatic:!0,name:"trust_level_1",display_name:"trust_level_1"},trust_level_2:{id:12,automatic:!0,name:"trust_level_2",display_name:"trust_level_2"},trust_level_3:{id:13,automatic:!0,name:"trust_level_3",display_name:"trust_level_3"},trust_level_4:{id:14,automatic:!0,name:"trust_level_4",display_name:"trust_level_4"}},l={none:0,ssl_tls:1,starttls:2},u=60,c={op_flag_threshold_reached:0,op_unhidden:1,embedded_topic:2,manually_unlisted:3,manually_relisted:4,bulk_action:5,unknown:99},d={like:2,notify_user:6,off_topic:3,inappropriate:4,spam:8,illegal:10,notify_moderators:7},p={simple:"simple",user_option:"user_option"},h=1e3,m=["editable","show_on_profile","show_on_user_card","searchable"]},84266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,removeCookie:()=>a});var i=n(54216);let s=/\+/g;function r(e){e.startsWith('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(s," "))}catch{}}function o(e,t,n){if(void 0!==t){if("number"==typeof(n={...n||{}}).expires){let e=n.expires,t=n.expires=new Date;t.setTime(+t+864e5*e)}return document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(String(t)),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":"",";samesite=Lax"].join("")}let i=e?void 0:{},s=document.cookie?document.cookie.split("; "):[];for(let t=0,n=s.length;t{"use strict";function i(e,t){let n=!1;try{document.queryCommandSupported("copy")&&(n=!0)}catch{}if(!n)return;let i=document.createRange();i.selectNode(t);let s=window.getSelection();s.removeAllRanges(),s.addRange(i);try{if(document.execCommand("copy"))return!0}catch{}return!1}n.r(t),n.d(t,{default:()=>i})},82674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{hidePopover:()=>r,showPopover:()=>s});var i=n(54216);function s(){(0,i.default)("`showPopover` is deprecated. Use tooltip service instead.",{id:"discourse.show-popover"})}function r(){(0,i.default)("`hidePopover` is deprecated. Use tooltip service instead.",{id:"discourse.hide-popover"})}},31222:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(14757),s=n(11508),r=n(62797);class o{static from(e,t){let n=new this(t);for(let[t,i,s]of e)n.add(t,i,s);return n}#cJ;#cX;#cZ;#c1;#c0;#c3;#c2=(()=>new Map)();#c8=(()=>new i.default)();constructor(e){this.#cJ=e?.defaultPosition||{},this.#c3=e?.throwErrorOnCycle??!0,this.#cX=e?.onAddItem,this.#cZ=e?.onDeleteItem,this.#c1=e?.onReplaceItem,this.#c0=e?.onRepositionItem}#c4(e){let t={...this.#cJ};return(0,s.makeArray)(t.before).includes(e)&&delete t.before,(0,s.makeArray)(t.after).includes(e)&&delete t.after,t}add(e,t,n){if(this.has(e))return!1;let{before:i,after:s}=n||=this.#c4(e);return this.#c2.set(e,{value:t,before:i,after:s}),this.#c7(this.#c8,e,t,i,s),this.#cX?.(e,t,n),!0}delete(e){let t=this.#c2.delete(e);return this.#c9(),t&&this.#cZ?.(e),t}replace(e,t,n){return this.#c5(e,t,n)}reposition(e,t){if(!this.has(e)||!t)return!1;let{value:n}=this.#c2.get(e);return this.#c5(e,n,t,{repositionOnly:!0})}has(e){return this.#c2.has(e)}entries(){return Array.from(this.#c2.entries()).map(e=>{let[t,{value:n,before:i,after:s}]=e;return[t,n,{before:i,after:s}]})}resolve(){let e=[];return this.#c8.each((t,n)=>{if(this.has(t)){let{before:i,after:s}=this.#c2.get(t);e.push({key:t,value:n,position:{before:i,after:s}})}}),e}static #e=(()=>dt7948.n(this.prototype,"resolve",[r.bind]))();#c7(e,t,n,i,s){if(this.#c3)e.add(t,n,i,s);else try{e.add(t,n,i,s)}catch(i){if(i.message.match(/cycle/i)){let{before:i,after:s}=this.#c4(t);e.add(t,n,i,s)}}}#c5(e,t,n){let{repositionOnly:i}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{repositionOnly:!1};if(!this.has(e))return!1;let s=this.#c2.get(e),r=s.value,o={before:s.before,after:s.after};return s.value=t,n&&(s.before=n.before,s.after=n.after),this.#c9(),i?this.#c0?.(e,n,o):this.#c1?.(e,t,r,n,o),!0}#c9(){let e=new i.default;for(let[t,{value:n,before:i,after:s}]of this.#c2)this.#c7(e,t,n,i,s);this.#c8=e}}},35507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(42433),s=n(54216);function r(e,t){let n;(0,s.default)("Importing from `discourse/lib/debounce` is deprecated. Import from `discourse-common/lib/debounce` instead.",{id:"discourse.discourse-debounce",since:"3.4.0.beta3-dev"});let r=()=>{e.apply(this,n)};return function(){n=arguments,(0,i.debounce)(null,r,t)}}},11973:(e,t,n)=>{"use strict";function i(e,t,n){return void 0===n||0==+n?Math[e](t):(n=+n,isNaN(t=+t)||!("number"==typeof n&&n%1==0))?NaN:+((t=(t=Math[e](+((t=t.toString().split("e"))[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))}n.r(t),n.d(t,{default:()=>i})},20643:(e,t,n)=>{"use strict";n.r(t),n.d(t,{alertChannel:()=>C,canUserReceiveNotifications:()=>T,clearDesktopNotificationHandlers:()=>w,confirmNotification:()=>x,context:()=>f,disable:()=>A,init:()=>k,onNotification:()=>S,registerDesktopNotificationHandler:()=>b,unsubscribe:()=>E});var i=n(35223),s=n(13973),r=n(56839),o=n(20802),a=n(89882),l=n(41958),u=n(86211),c=n(51969);let d=!1,p=!1,h=null,m="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",g="focus-tracker",f="discourse_desktop_notifications_",_=new s.default(f),y=[];function b(e){y.push(e)}function w(){y=[]}function k(e){if(p=!1,m=e.clientId,l.default.current()){try{_.getItem(g)}catch{console.info("Discourse desktop notifications are disabled - localStorage denied.");return}if(!("Notification"in window)){console.info("Discourse desktop notifications are disabled - not supported by browser");return}try{if("granted"===Notification.permission)h=!0;else if("denied"===Notification.permission){h=!1;return}}catch(e){console.warn("Notification is defined on window but is not responding correctly "+e)}p=!0;try{!function(){window.addEventListener("storage",function(e){if(e.key!==`${f}${g}`)return!0;d=!1}),window.addEventListener("focus",function(){d||(d=!0,_.setItem(g,m))}),document&&void 0!==document.hidden&&document.hidden?d=!1:(d=!0,_.setItem(g,m))}()}catch(e){console.error(e)}}}function x(e){let t=new Notification((0,c.i18n)("notifications.popup.confirm_title",{site_title:e.title}),{body:(0,c.i18n)("notifications.popup.confirm_body"),icon:e.site_logo_small_url||e.site_logo_url,tag:"confirm-subscription"}),n=()=>t.close();t.addEventListener("click",n),(0,u.default)(()=>{t.close(),t.removeEventListener("click",n)},1e4)}function T(e){return!(!d||e.isInDoNotDisturb())&&"disabled"!==_.getItem("notifications-disabled")}async function S(e,t,n,s){if(T(n)&&p){let n=e.translated_title||(0,c.i18n)(function(e){return"notifications.popup."+a.default.current().get("notificationLookup")[e]}(e.notification_type),{site_title:t.title,topic:e.topic_title,username:(0,o.formatUsername)(e.username),group_name:e.group_name}),l=t.site_logo_small_url||t.site_logo_url,u="discourse-notification-"+t.title+"-"+(e.topic_id||0);await function(){return!0===h?i.Promise.resolve():!1===h?i.Promise.reject():new i.Promise(function(e,t){Notification.requestPermission(function(n){"granted"===n?e():t()})})}();let d=new Notification(n,{body:e.excerpt,icon:l,tag:u});d.addEventListener("click",()=>{r.default.routeTo(e.post_url),s.trigger("desktop-notification-opened",{url:e.post_url}),d.close()},{once:!0})}y.forEach(i=>i(e,t,n))}function C(e){return`/notification-alert/${e.get("id")}`}function E(e,t){e.unsubscribe(C(t))}function A(){_.setItem("notifications-disabled","disabled")}},74987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{constructor(e){this.name=e,this._keys={}}keyDirty(e,t){(t=t||{}).dirty=!0,this._keys[e]=t}forceAll(){this.keyDirty("*")}allDirty(){return!!this._keys["*"]}optionsFor(e){return this._keys[e]||{dirty:!1}}renderedKey(e){"*"===e?this._keys={}:delete this._keys[e]}}},74583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{static forever="3000-01-01T00:00:00.000Z";static isEternal(e){return moment.utc(e).isSame(i.forever,"day")}}},16747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{downloadCalendar:()=>a,downloadGoogle:()=>u,downloadIcs:()=>l,formatDates:()=>c,generateIcsData:()=>d});var i=n(19301),s=n(41958),r=n(26399),o=n(87389);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s.default.current(),a=c(t);switch(e=e.trim(),o?.user_option.default_calendar){case"ics":l(e,a,n);break;case"google":u(e,a,n);break;default:!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.getOwnerWithFallback)(this).lookup("service:modal").show(i.default,{model:{calendar:{title:e,dates:t,recurrenceRule:n.recurrenceRule,location:n.location,details:n.details}}})}(e,a,n)}}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new File([d(e,t,n)],{type:"text/plain"}),s=document.createElement("a");document.body.appendChild(s),s.style="display: none",s.href=window.URL.createObjectURL(i),s.download=`${e.toLowerCase().replace(/[^\w]/g,"-")}.ics`,s.click(),setTimeout(()=>window.URL.revokeObjectURL(i),2e4)}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.forEach(t=>{let i=new URL("https://www.google.com/calendar/event");i.searchParams.append("action","TEMPLATE"),i.searchParams.append("text",e),i.searchParams.append("dates",`${p(t.startsAt)}/${p(t.endsAt)}`),n.recurrenceRule&&i.searchParams.append("recur",`RRULE:${n.recurrenceRule}`),n.location&&i.searchParams.append("location",n.location),n.details&&i.searchParams.append("details",n.details),window.open((0,o.default)(i.href).trim(),"_blank","noopener","noreferrer")})}function c(e){return e.map(e=>({startsAt:e.startsAt,endsAt:e.endsAt?e.endsAt:moment.utc(e.startsAt).add(1,"hours").format()}))}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Discourse//EN\n";return t.forEach(t=>{let s=moment(t.startsAt),r=moment(t.endsAt);i=i.concat(`BEGIN:VEVENT UID:${s.utc().format("x")}_${r.format("x")} DTSTAMP:${moment().utc().format("YMMDDTHHmmss")}Z DTSTART:${s.utc().format("YMMDDTHHmmss")}Z DTEND:${r.utc().format("YMMDDTHHmmss")}Z `+(n.recurrenceRule?`RRULE:${n.recurrenceRule} `:"")+(n.location?`LOCATION:${n.location} `:"")+(n.details?`DESCRIPTION:${n.details} `:"")+`SUMMARY:${e} `+"END:VEVENT\n")}),i=i.concat("END:VCALENDAR")}function p(e){return moment(e).toISOString().replace(/-|:|\.\d\d\d/g,"")}},10742:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(69391);let s={imap:{imap_server:"imap.gmail.com",imap_port:"993",imap_ssl:!0},smtp:{smtp_server:"smtp.gmail.com",smtp_port:"587",smtp_ssl_mode:i.GROUP_SMTP_SSL_MODES.starttls}},r={smtp:{smtp_server:"smtp-mail.outlook.com",smtp_port:"587",smtp_ssl_mode:i.GROUP_SMTP_SSL_MODES.starttls}},o={smtp:{smtp_server:"smtp.office365.com",smtp_port:"587",smtp_ssl_mode:i.GROUP_SMTP_SSL_MODES.starttls}};function a(e,t){switch(e=e.toLowerCase(),t=t.toLowerCase(),e){case"gmail":return s[t];case"office365":return o[t];case"outlook":return r[t]}}},14312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{actionModifier:()=>i,isSimpleClick:()=>s});let i=(0,n(79635).modifier)((e,t,n)=>{let[i,a,...l]=t,{on:u,bubbles:c,preventDefault:d,allowedKeys:p}=n,h=e=>{let t;if("string"==typeof a?t=i.actions?.[a]??i[a]:"function"==typeof a&&(t=a),void 0===t)throw Error("Unexpected callback for `action` modifier. Please provide either a function or the name of a method on the current context.");return!function(e,t){if(null==t){if(o.test(e.type))return s(e);t=""}if(t.indexOf("any")>=0)return!0;for(let n=0;n0)?t.call(i,...l):t.call(i,e))},m=u??"click";return e.addEventListener(m,h),()=>{e.removeEventListener(m,h)}},{eager:!1});function s(e){if(!(e instanceof MouseEvent))return!1;let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}let r=["alt","shift","meta","ctrl"],o=/^click|mouse|touch/},14587:(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeEmberEventHandling:()=>a});var i=n(68112),s=n(76417),r=n(70001),o=n(14312);function a(e){(function(){i.EventDispatcher.reopen({events:{}})})(),function(e){let t={...l};if(e.customEvents)for(let[n,i]of Object.entries(e.customEvents))t[n]=i;let n={};for(let[e,i]of Object.entries(t))n[i]=e;r.default.reopen.call(s.default,{_trigger(e){for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s{let n=e.trigger.call(e,c,s,t);return!1===n&&(t.preventDefault(),t.stopPropagation()),n};i.addEventListener(r,o),n.push({event:r,listener:o})}}(this,n)},willDestroyElement(){(function(e){let t=u.get(e);if(t?.length>0){let{element:n}=e;if(n)for(let{event:e,listener:i}of t)n.removeEventListener(e,i);u.delete(e)}})(this),this._super(...arguments)}})}(e),e.instanceInitializer({name:"rewire-action-modifier",initialize:e=>(function(e){let t=e.lookup("renderer:-dom"),n=t._runtimeResolver.lookupModifier;t._runtimeResolver.lookupModifier=(e,t)=>"action"===e?o.actionModifier:n(e,t)})(e)})}let l={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"},u=new WeakMap,c=Symbol("INTERNAL")},46884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EMBER_MAJOR_VERSION:()=>i});let i=parseInt(n(49861).default.split(".")[0],10)},5335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{exportEntity:()=>u,exportUserArchive:()=>l});var i=n(6610),s=n(64149),r=n(26399),o=n(51969);function a(e,t,n){return(0,i.ajax)("/export_csv/export_entity.json",{type:"POST",data:{entity:t,args:n}})}function l(){let e=(0,r.getOwnerWithFallback)(this).lookup("service:dialog");return a("user","user_archive").then(function(){e.alert((0,o.i18n)("user.download_archive.success"))}).catch(s.popupAjaxError)}function u(e,t){return a("admin",e,t)}},54450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{outputExportResult:()=>r});var i=n(26399),s=n(51969);function r(e){let t=(0,i.getOwnerWithFallback)(this).lookup("service:dialog");e.success?t.alert((0,s.i18n)("admin.export_csv.success")):t.alert((0,s.i18n)("admin.export_csv.failed"))}},53973:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{configureEyeline:()=>c,default:()=>d});var r=n(70001),o=n(4476),a=n(14682),l=n.n(a),u=n(45929);function c(e){e?(i=e.skipUpdate,s=e.rootElement):(i=(0,u.isTesting)(),s=null)}c();class d extends r.default.extend(o.default){update(){if(i)return;let e=s?l()(s).scrollTop():l()(window).scrollTop(),t=e+(s?l()(s).height():l()(window).height()),n=l()(this.selector),r=s?n.last().position():n.last().offset(),o=r&&r.top<=t&&r.top>=e;return n.each((i,r)=>{let a=l()(r),u=s?a.position().top:a.offset().top,c=u+a.height(),d=!1;return!a.is(":visible")||(u<=t&&u>=e&&(d=!0),u<=e&&c>=t&&(d=!0),o&&c>=e&&(d=!0),!d||!!o&&(i===n.length-1?this.trigger("sawBottom",{detail:a}):void 0))})}}},16640:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c,incrementSequence:()=>u});var i=n(84301),s=n(71597),r=n(54729),o=n(18604),a=n(62167);let l=1;function u(){return l++}class c{static #e=(()=>dt7948.g(this.prototype,"store",[r.service]))();#f=(()=>void dt7948.i(this,"store"))();constructor(e){if(e&&!(e instanceof i.default))throw Error("First argument of CoreFabricators constructor must be the owning ApplicationInstance");(0,s.setOwner)(this,e)}post(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("post",{id:e.id||u(),topic:e.topic||this.topic()})}tag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("tag",{id:e.id||u(),name:e.name??(0,o.getLoadedFaker)().faker.word.noun(),description:e.description??(0,o.getLoadedFaker)().faker.lorem.sentence(),count:e.count??0,pm_count:e.pm_count??0})}topic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id||u();return this.store.createRecord("topic",{id:t,created_at:e.created_at||moment().subtract(2,"day"),updated_at:e.updated_at||moment().subtract(1,"day"),slug:e.slug||(0,o.getLoadedFaker)().faker.lorem.slug(),title:e.title||(0,o.getLoadedFaker)().faker.commerce.productName(),tags:e.tags||[],category:e.category,image_url:e.image_url??"/images/bubbles-bg.png",excerpt:e.excerpt??(0,a.excerpt)((0,o.getLoadedFaker)().faker.lorem.sentences(5),100)})}category(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name||(0,o.getLoadedFaker)().faker.commerce.product();return this.store.createRecord("category",{id:e.id||u(),color:e.color||(0,o.getLoadedFaker)().faker.color.rgb({prefix:""}),read_restricted:e.read_restricted??!1,name:t,slug:e.slug||t.toLowerCase()})}user(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("user",{id:e.id||u(),username:e.username||(0,o.getLoadedFaker)().faker.internet.domainWord(),name:e.name,avatar_template:"/letter_avatar_proxy/v3/letter/t/41988e/{size}.png",suspended_till:e.suspended_till,can_send_private_message_to_user:e.can_send_private_message_to_user??!0})}bookmark(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("bookmark",{id:e.id||u()})}group(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("group",{name:e.name||(0,o.getLoadedFaker)().faker.word.noun()})}webhook(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.createRecord("web-hook",e)}upload(){return{extension:"jpeg",filesize:126177,height:800,human_filesize:"123 KB",id:u(),original_filename:"avatar.PNG.jpg",retain_hours:null,short_path:"/images/avatar.png",short_url:"upload://yoj8pf9DdIeHRRULyw7i57GAYdz.jpeg",thumbnail_height:320,thumbnail_width:690,url:"/images/avatar.png",width:1920}}}},63252:(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateFilterMode:()=>s,filterTypeForMode:()=>r});var i=n(88253);function s(e){let{category:t,filterType:n,noSubcategories:s}=e;return t?`c/${i.default.slugFor(t)}${s?"/none":""}/l/${n}`:n}function r(e){return e?.split("/").pop()}},53738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(64149);class s{targetsTopic(){return!1}editable(){return!0}create(e,t){let n=this.postActionFor(e);e.appEvents.trigger(this.flagCreatedEvent(),e.args.model.flagModel,n,t),e.args.closeModal(),n.act(e.args.model.flagModel,t).then(()=>{e.appEvents.trigger("post-stream:refresh",{id:e.args.model.flagModel.id})}).catch(e=>(0,i.popupAjaxError)(e))}}},76569:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(53738);class s extends i.default{title(){return"flagging.title"}customSubmitLabel(){return"flagging.notify_action"}submitLabel(){return"flagging.action"}flagCreatedEvent(){return"post:flag-created"}flagsAvailable(e){let t=e.args.model.flagModel.flagsAvailable,n=(t=t.filter(e=>e.applies_to.includes("Post"))).indexOf(t.filterBy("name_key","notify_user")[0]);if(-1!==n){let e=t[n];t.splice(n,1),t.splice(0,0,e)}return t}postActionFor(e){return e.args.model.flagModel.actions_summary.findBy("id",e.selected.id)}}},83044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(70001),s=n(53738),r=n(43314);class o extends s.default{title(){return"flagging_topic.title"}targetsTopic(){return!0}customSubmitLabel(){return"flagging_topic.notify_action"}submitLabel(){return"flagging_topic.action"}flagCreatedEvent(){return"topic:flag-created"}flagsAvailable(e){let t=i.default.create();return e.args.model.flagModel.actions_summary.forEach(n=>{n.flagTopic=e.args.model.flagModel,n.actionType=e.site.topicFlagTypeById(n.id),t.set(n.actionType.name_key,r.default.create(n))}),e.topicActionByName=t,e.site.topic_flag_types.filter(t=>e.args.model.flagModel.actions_summary.some(e=>e.id===t.id&&e.can_act))}postActionFor(e){return e.topicActionByName[e.selected.name_key]}}},80101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r,getFormTemplateObject:()=>s});var i=n(51969);function s(e){let t=new FormData(e),n={};return t.forEach((e,t)=>{n[t]=e}),n}function r(e,t){let n=t.reduce((e,t)=>(e[t.id]=t.attributes.label,e),{}),s=new FormData(e);if(function(e){Array.from(e.elements).forEach(e=>{e.setAttribute("aria-invalid",!1);let t=document.createElement("div");t.classList.add("form-template-field__error","popup-tip");let n=e.id+"-error";e.addEventListener("invalid",()=>{e.setAttribute("aria-invalid",!0),t.classList.add("bad"),t.setAttribute("id",n),e.setAttribute("aria-describedby",n),e.nextElementSibling||e.insertAdjacentElement("afterend",t),function(e,t){e.validity.valueMissing?o(t,e,"form_templates.errors.value_missing",["select-one","select-multiple","checkbox"],{"select-one":"select_one","select-multiple":"select_multiple"}):e.validity.typeMismatch?o(t,e,"form_templates.errors.type_mismatch",["color","date","email","number","password","tel","text","url"]):e.validity.tooShort?t.textContent=(0,i.i18n)("form_templates.errors.too_short",{count:e.minLength}):e.validity.tooLong?t.textContent=(0,i.i18n)("form_templates.errors.too_long",{count:e.maxLength}):e.validity.rangeOverflow?t.textContent=(0,i.i18n)("form_templates.errors.range_overflow",{count:e.max}):e.validity.rangeUnderflow?t.textContent=(0,i.i18n)("form_templates.errors.range_underflow",{count:e.min}):e.validity.patternMismatch?t.textContent=(0,i.i18n)("form_templates.errors.pattern_mismatch"):e.validity.badInput&&(t.textContent=(0,i.i18n)("form_templates.errors.bad_input"))}(e,t)}),e.addEventListener("input",()=>{e.checkValidity()&&(e.setAttribute("aria-invalid",!1),t.classList.remove("bad"),t.textContent="")}),e.addEventListener("blur",()=>{e.checkValidity()})})}(e),!e.checkValidity())return!1;let r=[];for(let[e,t]of s.entries())r.push({[e]:t});let a=[],l=new Set;for(let e of r){let t=Object.keys(e)[0];l.has(t)?a[a.length-1][t]+="\n"+e[t]:(a.push(e),l.add(t))}return a.map(e=>{let t=Object.keys(e)[0],i=e[t];if(i)return`### ${n[t]} ${i}`}).join("\n\n")}function o(e,t,n,s,r){s.includes(t.type)?s.forEach(s=>{t.type===s&&(e.textContent=(0,i.i18n)(`${n}.${r&&r[s]?r[s]:s}`))}):e.textContent=(0,i.i18n)(`${n}.default`)}},38536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoUpdatingRelativeAge:()=>f,duration:()=>b,durationTiny:()=>w,ensureJSON:()=>C,longDate:()=>h,longDateNoYear:()=>m,number:()=>S,plainJSON:()=>E,prettyJSON:()=>A,relativeAge:()=>T,relativeAgeMediumSpan:()=>k,shortDate:()=>l,shortDateNoYear:()=>u,smartShortDate:()=>c,tinyDateYear:()=>d,toTitleCase:()=>p,until:()=>_,updateRelativeAge:()=>g});var i=n(14682),s=n.n(i),r=n(54216),o=n(11508),a=n(51969);function l(e){return moment(e).format((0,a.i18n)("dates.medium.date_year"))}function u(e){return moment(e).format((0,a.i18n)("dates.tiny.date_month"))}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return e.getFullYear()===new Date().getFullYear()?u(e):t(e)}function d(e){return moment(e).format((0,a.i18n)("dates.tiny.date_year"))}function p(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})}function h(e){if(e)return moment(e).format((0,a.i18n)("dates.long_with_year"))}function m(e){return e?new Date().getFullYear()!==e.getFullYear()?moment(e).format((0,a.i18n)("dates.long_date_with_year")):moment(e).format((0,a.i18n)("dates.long_date_without_year")):void 0}function g(e){e instanceof s()&&(e=e.toArray(),(0,r.default)("updateRelativeAge now expects a DOM NodeList",{since:"2.8.0.beta7",dropFrom:"2.9.0.beta1",id:"discourse.formatter.update-relative-age-node-list"})),NodeList.prototype.isPrototypeOf(e)||(e=(0,o.makeArray)(e)),e.forEach(e=>{e.innerHTML=T(new Date(parseInt(e.dataset.time,10)),{format:e.dataset.format,wrapInSpan:!1})})}function f(e,t){if(!e||+e==+new Date(0))return"";let n=(t=t||{}).format||"tiny",i="";"medium"===n&&(i=" date",t.leaveAgo&&(n="medium-with-ago"),t.wrapInSpan=!1);let s=T(e,t);"tiny"===n&&function(e){return e.match(/'[\d]{2}$/)}(s)&&(i+=" with-year"),t.customTitle?i+="' title='"+t.customTitle:t.title&&(i+="' title='"+h(e));let r="";return t.prefix&&(r=t.prefix+" "),""+r+s+""}function _(e,t,n){let i;let s=moment.tz(e,t);if(moment.tz(t).isSame(s,"day")){let e=moment.localeData(n);i=s.format(e.longDateFormat("LT"))}else i=s.format((0,a.i18n)("dates.long_no_year_no_time"));return`${(0,a.i18n)("until")} ${i}`}function y(e){return(0,a.i18n)("dates.wrap_ago",{date:e})}function b(e,t){let n;if("number"!=typeof e)return"—";let i=Math.round(e/60),s=i<1?1:i,r=function(e,n){let i=t&&t.format||"tiny",s=(0,a.i18n)("dates."+i+"."+e,n);return t&&t.addAgo?y(s):s};switch(!0){case e<=59:n=r("less_than_x_minutes",{count:1});break;case s>=0&&s<=44:n=r("x_minutes",{count:s});break;case s>=45&&s<=89:n=r("about_x_hours",{count:1});break;case s>=90&&s<=1409:n=r("about_x_hours",{count:Math.round(s/60)});break;case s>=1410&&s<=2519:n=r("x_days",{count:1});break;case s>=2520&&s<=129599:n=r("x_days",{count:Math.round(s/1440)});break;case s>=129600&&s<=525599:n=r("x_months",{count:Math.round(s/43200)});break;default:let o=s/525600,l=o%1;n=l<.25?r("about_x_years",{count:Math.floor(o)}):l<.75?r("over_x_years",{count:Math.floor(o)}):r("almost_x_years",{count:Math.floor(o)+1})}return n}function w(e,t){return b(e,Object.assign({format:"tiny"},t))}function k(e,t){let n;let i=Math.round(e/60),s=function(e,n){return(0,a.i18n)("dates.medium"+(t?"_with_ago":"")+"."+e,n)};switch(!0){case i>=1&&i<=55:n=s("x_minutes",{count:i});break;case i>=56&&i<=89:n=s("x_hours",{count:1});break;case i>=90&&i<=1409:n=s("x_hours",{count:Math.round(i/60)});break;case i>=1410&&i<=2519:n=s("x_days",{count:1});break;case i>=2520&&i<=129599:n=s("x_days",{count:Math.round((i-720)/1440)});break;case i>=129600&&i<=525599:n=s("x_months",{count:Math.round(i/43200)});break;default:n=s("x_years",{count:Math.round(i/525600)})}return n||"—"}function x(e,t){let n=!1!==t.wrapInSpan,i=t.leaveAgo,s=Math.round((new Date-e)/1e3);if(!e)return"—";let r=h(e),o="";return(s<60?o=(0,a.i18n)("now"):s>432e3?(o=c(e,l),t.wrapOn&&(o=function(e){return(0,a.i18n)("dates.wrap_on",{date:e})}(o))):o=k(s,i),n)?""+o+"":o}function T(e,t){let n=(t=t||{}).format||"tiny";return"tiny"===n?function(e,t){let n;let i=Math.round((new Date-e)/1e3);i<0&&(i=Math.round((e-new Date)/1e3));let s=Math.round(i/60),r=s<1?1:s,l=function(e,n){let i=(0,a.i18n)("dates.tiny."+e,n);return t&&t.addAgo?y(i):i},d=(0,o.helperContext)().siteSettings;switch(!0){case r>=0&&r<=44:n=l("x_minutes",{count:r});break;case r>=45&&r<=89:n=l("about_x_hours",{count:1});break;case r>=90&&r<=1409:n=l("about_x_hours",{count:Math.round(r/60)});break;case 0===d.relative_date_duration&&r<=525599:n=u(e);break;case r>=1410&&r<=2519:n=l("x_days",{count:1});break;case r>=2520&&r<=1440*(d.relative_date_duration||14):n=l("x_days",{count:Math.round(r/1440)});break;default:n=(t.defaultFormat||c)(e)}return n}(e,t):"medium"===n?x(e,t):"medium-with-ago"===n?x(e,Object.assign(t,{format:"medium",leaveAgo:!0})):"medium-with-ago-and-on"===n?x(e,Object.assign(t,{format:"medium",leaveAgo:!0,wrapOn:!0})):"UNKNOWN FORMAT"}function S(e){let t;return(isNaN(e=Math.round(parseFloat(e)))&&(e=0),e>999999)?(t=a.default.toNumber(e/1e6,{precision:1}),(0,a.i18n)("number.short.millions",{number:t})):e>99999?(t=a.default.toNumber(Math.floor(e/1e3),{precision:0}),(0,a.i18n)("number.short.thousands",{number:t})):e>999?(t=a.default.toNumber(e/1e3,{precision:1}),(0,a.i18n)("number.short.thousands",{number:t})):e.toString()}function C(e){return"string"==typeof e?JSON.parse(e):e}function E(e){let t=C(e),n="";return Object.keys(t).forEach(e=>{n+=`${e}: ${t[e]} `}),n}function A(e){return JSON.stringify(C(e),null,2)}},26446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{grantableBadges:()=>s,isBadgeGrantable:()=>r});var i=n(20762);function s(e,t){let n=t.reduce((e,t)=>(e[t.get("badge_id")]=!0,e),{});return e.filter(e=>e.get("enabled")&&e.get("manually_grantable")&&(!n[e.get("id")]||e.get("multiple_grant"))).map(e=>(e.get("icon")&&e.set("icon",(0,i.convertIconClass)(e.icon)),e)).sort((e,t)=>e.get("name").localeCompare(t.get("name")))}function r(e,t){return!!(t&&t.some(t=>t.get("id")===e))}},6692:(e,t,n)=>{"use strict";function i(e){let t=0;for(let n=0;ni})},15963:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{hashtagAutocompleteOptions:()=>y,hashtagTriggerRule:()=>_,setupHashtagAutocomplete:()=>f});var r=n(42433),o=n(35804),a=n(6610),l=n(21640),u=n(34663),c=n(62167),d=n(20802),p=n(45929),h=n(84262),m=n(86211),g=n(37441);function f(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t.autocomplete(y(e,n,i))}async function _(e,t){let{inCodeBlock:n}=t;return!await n()}function y(e,t,n){return{template:(0,g.findRawTemplate)("hashtag-autocomplete"),key:"#",scrollElementSelector:".hashtag-autocomplete__fadeout",autoSelectFirstSuggestion:!0,transformComplete:e=>e.ref,dataSource:t=>t.match(/\s/)?null:function(e,t,n){return s&&(s.abort(),s=null),new Date-i>3e4&&(b={}),b[e]||new Promise(t=>{let s=(0,p.isTesting)()?null:(0,m.default)(()=>{t(l.CANCELLED_STATUS)},5e3);((e,t,n)=>{(0,h.default)(this,w,e,t,n,p.INPUT_DELAY)})(e,n,n=>{(0,r.cancel)(s),t(function(e,t){return b[e]=t,i=new Date,t}(e,n))})})}(t,0,e),triggerRule:async(e,t)=>await _(e,t),...n}}let b={};function w(e,t,n){return(s=(0,a.ajax)("/hashtags/search.json",{data:{term:e,order:t}})).then(e=>{e.results?.forEach(e=>{e.text=o.htmlSafe(c.emojiUnescape(d.escapeExpression(e.text)));let t=u.getHashtagTypeClasses()[e.type];e.icon=t.generateIconHTML({preloaded:!0,colors:e.colors,icon:e.icon,id:e.id})}),n(e.results||l.CANCELLED_STATUS)}).finally(()=>{s=null}),s}},50110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decorateHashtags:()=>p,fetchUnseenHashtagsInContext:()=>u,generatePlaceholderHashtagHTML:()=>d,linkSeenHashtagsInContext:()=>c});var i=n(6610),s=n(34663),r=n(62167),o=n(19726);let a=new Set,l={};function u(e,t){return(0,i.ajax)("/hashtags",{data:{slugs:t,order:e}}).then(e=>{Object.keys(e).forEach(t=>{l[t]=l[t]||{},e[t].forEach(e=>{l[t][e.ref]=l[t][e.ref]||e})}),t.forEach(a.add,a)})}function c(e,t){let n=[...t?.querySelectorAll("span.hashtag-raw")||[]];if(0===n.length)return[];let i=[...n.map(e=>e.innerText.replace("#",""))];return n.forEach((t,n)=>{(function(e,t,n){t.forEach(t=>{let i=l[t]?.[e];i&&d(t,n,{preloaded:!0,...i})})})(i[n],e,t)}),i.map(e=>e.toLowerCase()).uniq().filter(e=>!a.has(e))}function d(e,t,n){let i=document.createElement("a");i.classList.add("hashtag-cooked"),i.href=n.relative_url,i.dataset.type=e,i.dataset.id=n.id,i.dataset.slug=n.slug;let o=new s.getHashtagTypeClasses()[e];i.innerHTML=`${o.generateIconHTML(n)}${(0,r.emojiUnescape)(n.text)}`,t.replaceWith(i)}function p(e,t){e.querySelectorAll(".hashtag-cooked").forEach(e=>{let n=e.querySelector(".hashtag-icon-placeholder"),i=e.dataset.type,r=(0,s.getHashtagTypeClasses)()[i];if(n&&r){let s=r.generateIconHTML({icon:t.hashtag_icons[i],id:e.dataset.id,slug:e.dataset.slug}).trim();n.replaceWith((0,o.default)(s)[0])}e.setAttribute("aria-label",`${e.innerText.trim()}`)})}},34663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cleanUpHashtagTypeClasses:()=>r,getHashtagTypeClasses:()=>o,registerHashtagType:()=>s});let i={};function s(e,t){i[e]=t}function r(){i={}}function o(){return i}},63724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(71597),s=n(42433),r=n(6610),o=n(34663);class a{static loadingIds={};static async _load(){let e=a.loadingIds;a.loadingIds={};let t=!1;if(Object.keys(e).forEach(n=>{t||=e[n].size>0,e[n]=[...e[n]]}),!t)return;let n=await (0,r.ajax)("/hashtags/by-ids",{data:e});Object.entries((0,o.getHashtagTypeClasses)()).forEach(e=>{let[t,i]=e;return n[t]?.forEach(e=>i.onLoad(e))})}constructor(e){(0,i.setOwner)(this,e),this.loadedIds=new Set}get type(){throw"not implemented"}get preloadedData(){throw"not implemented"}generatePreloadedCssClasses(){let e=[];return this.preloadedData.forEach(t=>{this.loadedIds.add(t.id),e.push(this.generateColorCssClasses(t))}),e.flat()}generateColorCssClasses(){throw"not implemented"}generateIconHTML(){throw"not implemented"}isLoaded(e){return e=parseInt(e,10),this.loadedIds.has(e)}load(e){e=parseInt(e,10),this.isLoaded(e)||((a.loadingIds[this.type]||=new Set).add(e),(0,s.debounce)(a,a._load,100,!1))}onLoad(e){let t=parseInt(e.id,10);this.isLoaded(t)||(this.loadedIds.add(t),document.querySelector("#hashtag-css-generator").innerHTML+="\n"+this.generateColorCssClasses(e).join("\n"))}}},52757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(54729),s=n(63724);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[i.service]))();#S=(()=>void dt7948.i(this,"site"))();get type(){return"category"}get preloadedData(){return this.site.categories||[]}generatePreloadedCssClasses(){return[".hashtag-category-badge { background-color: var(--primary-medium); }",...super.generatePreloadedCssClasses()]}generateColorCssClasses(e){let t,n,i;return e.colors?1===e.colors.length?t=e.colors[0]:(n=e.colors[0],t=e.colors[1]):(t=e.color,e.parentCategory&&(n=e.parentCategory.color)),i=n?`background: linear-gradient(-90deg, #${t} 50%, #${n} 50%);`:`background-color: #${t};`,[`.hashtag-color--category-${e.id} { ${i} }`]}generateIconHTML(e){e.preloaded?this.onLoad(e):this.load(e.id);let t=`hashtag-color--${this.type}-${e.id}`;return``}isLoaded(e){return!this.site.lazy_load_categories||super.isLoaded(e)}}},87725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(20762),s=n(63724);class r extends s.default{get type(){return"tag"}get preloadedData(){return[]}generateColorCssClasses(){return[]}generateIconHTML(e){return(0,i.iconHTML)(e.icon,{class:`hashtag-color--${this.type}-${e.id}`})}}},26190:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,unhighlightHTML:()=>r});var i=n(11508);function s(e,t){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={nodeName:"span",className:"highlighted",matchCase:!1};if(r={...r,...s},!(t=(0,i.makeArray)(t).filter(Boolean).map(e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))).length)return e;let o=`(${t.join(" ")})`;return r.matchCase||(n="i"),!function e(t,n,i,s){if(![Node.ELEMENT_NODE,Node.TEXT_NODE].includes(t.nodeType)||["SCRIPT","STYLE"].includes(t.tagName)||t.tagName===i&&t.className===s)return 0;if(t.nodeType===Node.ELEMENT_NODE&&t.childNodes){for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={nodeName:"span",className:"highlighted"};t={...t,...e},document.querySelectorAll(`${t.nodeName}.${t.className}`).forEach(e=>{let t=e.parentNode;t.replaceChild(e.firstChild,e),t.normalize()})}},44331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLASS_NAME:()=>o,default:()=>a});var i=n(97355),s=n(69391),r=n(26190);let o="search-highlight";function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isEmpty)(t)){let i=t.match(RegExp(`${s.SEARCH_PHRASE_REGEXP}|[^\\s]+`,"g")).filter(e=>"l"!==e).map(e=>e.replace(/^"(.*)"$/,"$1")),a={};n.defaultClassName||(a.className=o),(0,r.default)(e,i,a)}}},27507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=function(){var e;function t(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(e){return e.nodeName.toLowerCase()}function i(e){let t=[];return!function e(i,s){for(let r=i.firstChild;r;r=r.nextSibling)3===r.nodeType?s+=r.nodeValue.length:1!==r.nodeType||(t.push({event:"start",offset:s,node:r}),s=e(r,s),n(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:s,node:r}));return s}(e,0),t}return{"before:highlightElement":t=>{let{el:n}=t;e=i(n)},"after:highlightElement":s=>{let{el:r,result:o,text:a}=s;if(!e.length)return;let l=document.createElement("div");l.innerHTML=o.value,o.value=function(e,i,s){let r=0,o="",a=[];function l(){return e.length&&i.length?e[0].offset!==i[0].offset?e[0].offset"}function c(e){o+=""}function d(e){("start"===e.event?u:c)(e.node)}for(;e.length||i.length;){let n=l();if(o+=t(s.substring(r,n[0].offset)),r=n[0].offset,n===e){a.reverse().forEach(c);do d(n.splice(0,1)[0]),n=l();while(n===e&&n.length&&n[0].offset===r)a.reverse().forEach(u)}else"start"===n[0].event?a.push(n[0].node):a.pop(),d(n.splice(0,1)[0])}return o+t(s.substr(r))}(e,i(l),a),r.innerHTML=o.value}}}()},18672:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{default:()=>u,registerHighlightJSLanguage:()=>h,registerHighlightJSPlugin:()=>m});var s=n(21959),r=n(27507);n(45929);var o=n(87389);let a=[],l=[];async function u(e,t,n){if(!e)return;let i=t.autohighlight_all_code?"pre code":"pre code[class]",s=e.querySelectorAll(i);if(!s.length)return;let r=n.highlightJsPath,o=await c(r);s.forEach(e=>{let t;if(!(e.innerHTML.length>3e4)){for(let n of e.classList){let e=n.match(/^lang(?:uage)?-(.+)$/);if(e){t=e[1];break}}"auto"===t&&e.innerHTML.length>1e3||(t&&("auto"===t||o.getLanguage(t))?(e.classList.remove("lang-auto"),o.highlightElement(e)):e.dataset.unknownHljsLang=t)}})}async function c(e){try{return i||(i=d(e),(0,s.YZ)(i)),await i}catch(e){throw i=null,e}}async function d(e){let[t,i]=await Promise.all([n.e(267).then(n.bind(n,22267)),p(e)]),s=t.default;return i(s),function(e){(function(e){a.forEach(t=>{void 0===e.getLanguage(t.name)&&e.registerLanguage(t.name,t.fn)})})(e),function(e){l.forEach(t=>{e.addPlugin(t)})}(e),e.addPlugin(r.default),e.configure({ignoreUnescapedHTML:!0})}(s),s}async function p(e){let t=(0,o.getURLWithCDN)(e);return(await import(t)).default}function h(e,t){a.push({name:e,fn:t})}function m(e){l.push(e)}},82884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,homepageDestination:()=>o});var i=n(20802);function s(e){let t=e._routerMicrolib;for(let e of["updateURL","replaceURL"]){let n=t[e].bind(t);t[e]=function(e){return n(e=function(e,t){let n=t?.intent?.url;if(n?.startsWith(o())||t?.intent.name===`discovery.${(0,i.defaultHomepage)()}`&&t?.intent.queryParams[r]){let t=(n||e).split("?",2)[1];if(e="/",t){let n=new URLSearchParams(t);n.delete(r),n.size&&(e+=`?${n.toString()}`)}}return e}(e,this.activeTransition))}}}let r="_discourse_homepage_rewrite";function o(){return`/${(0,i.defaultHomepage)()}?${r}=1`}},47642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disableImplicitInjections:()=>g,registerDiscourseImplicitInjections:()=>m});var i=n(76417),s=n(82806),r=n(70001),o=n(71597),a=n(85013),l=n(54729),u=n(96749),c=n(40639);let d=Symbol("DISABLE_IMPLICIT_INJECTIONS");function p(e,t){let n={};for(let[e,i]of Object.entries(t))n[e]=function(e,t){let n=`__OVERRIDE_${t}`;return(0,r.computed)(t,{get(){if(this[n])return this[n];if(this[d])return;let t=(0,o.getOwner)(this)||this.container;if(t)return t.lookup(e)},set(e,t){return this[n]=t}})}(i,e);r.default.reopen.call(e,n),e.proto()}let h=!1;function m(){if(h)return;let e={appEvents:"service:app-events",pmTopicTrackingState:"service:pm-topic-tracking-state",store:"service:store",site:"service:site",searchService:"service:search",session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store"};p(s.default,{...e,capabilities:"service:capabilities",currentUser:"service:current-user"}),p(i.default,{capabilities:"service:capabilities",currentUser:"service:current-user",...e}),p(a.default,{...e,currentUser:"service:current-user"}),p(c.default,{...e}),p(u.default,{...e}),p(l.default,{session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store",currentUser:"service:current-user"}),h=!0}function g(e){e.prototype[d]=!0}},3737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r,wantsNewWindow:()=>s});var i=n(56839);function s(e){return e.defaultPrevented||e.isDefaultPrevented?.()||e.shiftKey||e.metaKey||e.ctrlKey||e.button&&0!==e.button||e.currentTarget?.target==="_blank"}function r(e){let t=e.target.closest("a");if(!t||s(e,t)||"_blank"===t.target)return;let n=t.getAttribute("href"),r=t.getAttribute("target");!n||n.startsWith("#")||r&&"_self"!==r||t.dataset.autoRoute||t.dataset.shareUrl||t.classList.contains("widget-link")||t.classList.contains("raw-link")||t.classList.contains("mention")||!t.classList.contains("d-link")&&!t.dataset.userCard&&t.classList.contains("ember-view")||t.classList.contains("lightbox")||n.startsWith("mailto:")||n.match(/^http[s]?:\/\//i)&&!n.match(RegExp("^https?:\\/\\/"+window.location.hostname,"i"))||(e.preventDefault(),i.default.routeTo(n))}},94412:(e,t,n)=>{"use strict";function i(e){if(!e)return;let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}n.r(t),n.d(t,{default:()=>i})},13973:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{default:()=>r});var s=n(45929);try{i=localStorage,"true"===localStorage.disableLocalStorage?i=null:i.safeLocalStorage=!0}catch{i=null}class r{context=null;constructor(e){this.context=(0,s.isTesting)()?`__test_${e}`:e}abandonLocal(){return this.removeKeys()}removeKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0;if(!i)return;let t=i.length-1;for(;t>=0;){let n=i.key(t),s=i[n];try{s=JSON.parse(s)}catch{}n.substring(0,this.context.length)===this.context&&e(n,s)&&i.removeItem(n),t--}return!0}remove(e){if(i)return i.removeItem(this.context+e)}set(e){if(!i)return!1;i[this.context+e.key]=e.value}setObject(e){this.set({key:e.key,value:JSON.stringify(e.value)})}get(e){return i?i[this.context+e]:null}getInt(e,t){if(t||(t=0),!i)return t;let n=parseInt(this.get(e),10);return isFinite(n)?n:t}getObject(e){if(!i)return null;try{return JSON.parse(i[this.context+e])}catch{}}}r.prototype.getItem=r.prototype.get,r.prototype.removeItem=r.prototype.remove,r.prototype.setItem=function(e,t){this.set({key:e,value:t})}},56907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PLATFORM_KEY_MODIFIER:()=>b,clearDisabledDefaultKeyboardBindings:()=>f,clearExtraKeyboardShortcutHelp:()=>y,default:()=>x,disableDefaultKeyboardShortcuts:()=>g,extraKeyboardShortcutsHelp:()=>_});var i=n(71597),s=n(42433),r=n(6610),o=n(8032),a=n(38231),l=n(56839),u=n(2151),c=n(32073),d=n(45929),p=n(86211),h=n(9475);let m=[];function g(e){m=m.concat(e)}function f(){m=[]}let _={};function y(){_={}}let b=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl",w={"!":{postAction:"showFlags"},"#":{handler:"goToPost",anonymous:!0},"/":{handler:"toggleSearch",anonymous:!0},"meta+/":{handler:"filterSidebar",anonymous:!0},[`${b}+/`]:{handler:"filterSidebar",anonymous:!0},"ctrl+alt+f":{handler:"toggleSearch",anonymous:!0,global:!0},"=":{handler:"toggleHamburgerMenu",anonymous:!0},"?":{handler:"showHelpModal",anonymous:!0},".":{click:".alert.alert-info.clickable",anonymous:!0},a:{handler:"toggleArchivePM"},b:{handler:"toggleBookmark"},c:{handler:"createTopic"},"shift+c":{handler:"focusComposer"},"ctrl+f":{handler:"showPageSearch",anonymous:!0},"command+f":{handler:"showPageSearch",anonymous:!0},"command+left":{handler:"webviewKeyboardBack",anonymous:!0},"command+[":{handler:"webviewKeyboardBack",anonymous:!0},"command+right":{handler:"webviewKeyboardForward",anonymous:!0},"command+]":{handler:"webviewKeyboardForward",anonymous:!0},"mod+p":{handler:"printTopic",anonymous:!0},d:{postAction:"deletePostWithConfirmation"},e:{handler:"editPost"},end:{handler:"goToLastPost",anonymous:!0},"command+down":{handler:"goToLastPost",anonymous:!0},f:{handler:"toggleBookmarkTopic"},"g h":{path:"/",anonymous:!0},"g l":{path:"/latest",anonymous:!0},"g n":{path:"/new"},"g u":{path:"/unread"},"g c":{path:"/categories",anonymous:!0},"g t":{path:"/top",anonymous:!0},"g b":{path:"/my/activity/bookmarks"},"g p":{path:"/my/activity"},"g m":{path:"/my/messages"},"g d":{path:"/my/activity/drafts"},"g s":{handler:"goToFirstSuggestedTopic",anonymous:!0},"g j":{handler:"goToNextTopic",anonymous:!0},"g k":{handler:"goToPreviousTopic",anonymous:!0},home:{handler:"goToFirstPost",anonymous:!0},"command+up":{handler:"goToFirstPost",anonymous:!0},j:{handler:"selectDown",anonymous:!0},k:{handler:"selectUp",anonymous:!0},l:{click:".topic-post.selected button.toggle-like"},"m m":{handler:"setTrackingToMuted"},"m r":{handler:"setTrackingToRegular"},"m t":{handler:"setTrackingToTracking"},"m w":{handler:"setTrackingToWatching"},"o,enter":{click:".topic-list tr.selected a.title, .latest-topic-list .latest-topic-list-item.selected div.main-link a.title, .top-topic-list .latest-topic-list-item.selected div.main-link a.title, .latest .featured-topic.selected a.title, .search-results .fps-result.selected .search-link",anonymous:!0},tab:{handler:"switchFocusCategoriesPage",anonymous:!0},p:{handler:"showCurrentUser"},q:{handler:"quoteReply"},r:{postAction:"replyToPost"},s:{click:".topic-post.selected a.post-date",anonymous:!0},"shift+j":{handler:"nextSection",anonymous:!0},"shift+k":{handler:"prevSection",anonymous:!0},"shift+p":{handler:"pinUnpinTopic"},"shift+r":{handler:"replyToTopic"},"shift+s":{click:"#topic-footer-buttons button.share-and-invite",anonymous:!0},"shift+l":{handler:"goToUnreadPost"},"shift+z shift+z":{handler:"logout"},"shift+f11":{handler:"fullscreenComposer",global:!0},"shift+u":{handler:"deferTopic"},"shift+a":{handler:"toggleAdminActions"},"shift+b":{handler:"toggleBulkSelect"},t:{postAction:"replyAsNewTopic"},u:{handler:"goBack",anonymous:!0},x:{handler:"bulkSelectItem"},"shift+d":{click:"#dismiss-new-bottom, #dismiss-new-top, #dismiss-topics-bottom, #dismiss-topics-top"}};function k(e){e.preventDefault(),e.stopPropagation()}let x={init(e,t){(0,i.setOwner)(this,t),this.keyTrapper&&(this.keyTrapper.destroy(),this.keyTrapper=null),this.keyTrapper=new e,this._stopCallback(),this.searchService=t.lookup("service:search"),this.appEvents=t.lookup("service:app-events"),this.currentUser=t.lookup("service:current-user"),this.siteSettings=t.lookup("service:site-settings"),this.site=t.lookup("service:site"),this.currentUser?.can_send_private_messages||delete w["g m"],m.length&&m.forEach(e=>delete w[e])},bindEvents(){Object.keys(w).forEach(e=>{this.bindKey(e)})},teardown(){Object.getPrototypeOf(this.keyTrapper).stopCallback=this.oldStopCallback,this.oldStopCallback=null,this.keyTrapper?.destroy(),this.keyTrapper=null},isTornDown(){return null==this.keyTrapper},bindKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!this.isTornDown()&&(t||(t=w[e]),(t.anonymous||this.currentUser)&&(t.path?this._bindToPath(t.path,e):t.handler?t.global?this._globalBindToFunction(t.handler,e):this._bindToFunction(t.handler,e):t.postAction?this._bindToSelectedPost(t.postAction,e):t.click&&this._bindToClick(t.click,e)))},pause(e){if(!this.isTornDown()){if(!e){this.keyTrapper.paused=!0;return}e.forEach(e=>this.keyTrapper.unbind(e))}},unpause(e){if(!this.isTornDown()){if(!e){this.keyTrapper.paused=!1;return}e.forEach(e=>this.bindKey(e))}},addShortcut(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=e.trim();let i=Object.assign({handler:t},n);this.bindKey(e,i),n.help&&function(e){let t=e.category;_[t]?_[t]=_[t].concat([e]):_[t]=[e]}(n.help)},unbind(e){Object.keys(e).forEach(e=>this.keyTrapper.unbind(e))},toggleBookmark(e){let t=this._getSelectedPost();if(t){k(e),this.sendToSelectedPost("toggleBookmark",t);return}let n=this._getSelectedTopicListItem();if(n){k(e),this.sendToTopicListItemView("toggleBookmark",n);return}this._bookmarkCurrentTopic(e)},toggleBookmarkTopic(e){let t=this._getSelectedTopicListItem();if(t){k(e),this.sendToTopicListItemView("toggleBookmark",t);return}this._bookmarkCurrentTopic(e)},_bookmarkCurrentTopic(e){this.currentTopic()&&document.querySelectorAll(".posts-wrapper").length&&(k(e),(0,i.getOwner)(this).lookup("controller:topic").send("toggleBookmark"))},logout(){(0,i.getOwner)(this).lookup("route:application").send("logout")},quoteReply(){return this.isPostTextSelected?this.appEvents.trigger("quote-button:quote"):(this.sendToSelectedPost("replyToPost"),(0,p.default)(()=>document.querySelector(".d-editor .quote")?.click(),500)),!1},editPost(){return this.siteSettings.enable_fast_edit&&this.isPostTextSelected?this.appEvents.trigger("quote-button:edit"):this.sendToSelectedPost("editPost"),!1},goToNextTopic(){(0,a.nextTopicUrl)().then(e=>{e&&l.default.routeTo(e)})},goToPreviousTopic(){(0,a.previousTopicUrl)().then(e=>{e&&l.default.routeTo(e)})},goToFirstSuggestedTopic(){let e=document.querySelector("#suggested-topics a.raw-topic-link");if(e)e.click();else{let e=(0,i.getOwner)(this).lookup("controller:topic"),t=`/t/${e.get("model.id")}/last.json`;(0,r.ajax)(t).then(t=>{if(t.suggested_topics&&t.suggested_topics.length>0){let n=e.store.createRecord("topic",t.suggested_topics[0]);l.default.routeTo(n.get("url"))}})}},goToFirstPost(){this._jumpTo("jumpTop")},goToLastPost(){this._jumpTo("jumpBottom")},goToUnreadPost(){this._jumpTo("jumpUnread")},_jumpTo(e){document.querySelector(".container.posts")&&(0,i.getOwner)(this).lookup("controller:topic").send(e)},replyToTopic(){return this._replyToPost(),!1},selectDown(){this._moveSelection({direction:1,scrollWithinPosts:!0})},selectUp(){this._moveSelection({direction:-1,scrollWithinPosts:!0})},bulkSelectItem(){let e=document.querySelector(".selected input.bulk-select, .selected .select-post");e?.click()},goBack(){history.back()},nextSection(){this._changeSection(1)},prevSection(){this._changeSection(-1)},showPageSearch(e){(0,s.run)(()=>{this.appEvents.trigger("header:keyboard-trigger",{type:"page-search",event:e})})},printTopic(e){(0,s.run)(()=>{document.querySelector(".container.posts")&&(e.preventDefault(),(0,i.getOwner)(this).lookup("controller:topic").print())})},createTopic(e){if(!(this.currentUser&&this.currentUser.can_create_topic))return;e.preventDefault();let t=document.querySelector("#create-topic");if(t){t.click();return}(0,i.getOwner)(this).lookup("service:composer").open({action:u.default.CREATE_TOPIC,draftKey:u.default.NEW_TOPIC_KEY})},focusComposer(e){let t=(0,i.getOwner)(this).lookup("service:composer");e&&(e.preventDefault(),e.stopPropagation()),t.focusComposer(e)},filterSidebar(){let e=document.querySelector(".sidebar-filter__input");e&&(this._scrollTo(0),e.focus())},fullscreenComposer(){let e=(0,i.getOwner)(this).lookup("service:composer");e.get("model")&&e.toggleFullscreen()},pinUnpinTopic(){(0,i.getOwner)(this).lookup("controller:topic").togglePinnedState()},goToPost(e){k(e),this.appEvents.trigger("topic:keyboard-trigger",{type:"jump"})},toggleSearch(e){return this.appEvents.trigger("header:keyboard-trigger",{type:"search",event:e}),!1},toggleHamburgerMenu(e){this.appEvents.trigger("header:keyboard-trigger",{type:"hamburger",event:e})},showCurrentUser(e){this.appEvents.trigger("header:keyboard-trigger",{type:"user",event:e})},showHelpModal(){(0,i.getOwner)(this).lookup("controller:application").send("showKeyboardShortcutsHelp")},setTrackingToMuted(){(0,s.throttle)(this,"_setTracking",0,d.INPUT_DELAY,!0)},setTrackingToRegular(){(0,s.throttle)(this,"_setTracking",1,d.INPUT_DELAY,!0)},setTrackingToTracking(){(0,s.throttle)(this,"_setTracking",2,d.INPUT_DELAY,!0)},setTrackingToWatching(){(0,s.throttle)(this,"_setTracking",3,d.INPUT_DELAY,!0)},_setTracking(e){let t=this.currentTopic();t&&t.details.updateNotifications(e)},sendToTopicListItemView(e,t){if(t=t||document.querySelector("tr.selected.topic-list-item")){let n=(0,i.getOwner)(this).lookup("-view-registry:main");n&&n[t.id].send(e)}},currentTopic(){let e=(0,i.getOwner)(this).lookup("controller:topic");if(e){let t=e.get("model");if(t)return t}},get isPostTextSelected(){return!!(0,i.getOwner)(this).lookup("controller:topic").quoteState.postId},sendToSelectedPost(e,t){let n;let s=t||document.querySelector(".topic-post.selected article.boxed");if(s&&(n=parseInt(s.dataset.postId,10)),n){let t=(0,i.getOwner)(this).lookup("controller:topic"),s=t.get("model.postStream.posts").findBy("id",n);if(s){let r=t.actions[e];r||(r=(0,i.getOwner)(this).lookup("route:topic").actions[e]);let o=r.call(t,s);o&&o.then&&this.appEvents.trigger("post-stream:refresh",{id:n})}}return!1},_bindToSelectedPost(e,t){this.keyTrapper.bind(t,()=>this.sendToSelectedPost(e))},_bindToPath(e,t){this.keyTrapper.bind(t,()=>l.default.routeTo(e))},_bindToClick(e,t){t=t.split(","),this.keyTrapper.bind(t,function(t){let n=document.querySelector(e);if(t&&"Enter"===t.key){if(!n)return;t.preventDefault()}n?.click()})},_globalBindToFunction(e,t){let n="function"==typeof e?e:this[e];"function"==typeof n&&this.keyTrapper.bindGlobal(t,n.bind(this))},_bindToFunction(e,t){let n="function"==typeof e?e:this[e];"function"==typeof n&&this.keyTrapper.bind(t,n.bind(this))},_moveSelection(e){let{direction:t,scrollWithinPosts:n}=e,i=+new Date,s=this._lastMoveTime&&i-this._lastMoveTime<150;this._lastMoveTime=i;let r=this._findArticles();if(void 0===r)return;let a=(r=Array.from(r)).find(e=>e.classList.contains("selected"));if(a||(a=r.find(e=>"true"===e.dataset.isLastViewedTopic)),a&&!s){let e=a.getBoundingClientRect();(e.bottom<(0,o.headerOffset)()||e.top>window.innerHeight)&&(a=null)}if(!a){let e=(0,o.headerOffset)();(a=r.find(n=>t>0?n.getBoundingClientRect().top>=e:n.getBoundingClientRect().bottom>=e))||(a=r[r.length-1]),t=0}let l=r.indexOf(a),u=a;if(!s&&0!==t&&u&&n){let e=u.classList.contains("topic-post")&&u.querySelector("#post_1")?0:h.default.offset(u).top,n=h.default.offset(u).top+u.offsetHeight,i=window.scrollY,s=i+window.innerHeight;if(t<0&&i>e)return this._scrollTo(Math.max(i-window.innerHeight+3*(0,o.headerOffset)(),e-(0,o.headerOffset)()));if(t>0&&s0)break}for(let e of r)e.classList.remove("selected"),e.removeAttribute("tabindex");u.classList.add("selected"),u.setAttribute("tabindex","0"),u.focus(),this.appEvents.trigger("keyboard:move-selection",{articles:r,selectedArticle:u});let d=h.default.offset(u).top,p=d-(0,o.headerOffset)();if(n&&!s&&t<0&&u.offsetHeight>window.innerHeight)return this._scrollTo(d+u.offsetHeight-window.innerHeight);if(u.classList.contains("topic-post"))return this._scrollTo(u.querySelector("#post_1")?0:p);if(p>window.pageYOffset&&d+u.offsetHeight0?.2:.7;this._scrollTo(p-window.innerHeight*m)},_scrollTo(e){window.scrollTo({top:e,behavior:"smooth"})},categoriesTopicsList(){switch(this.siteSettings.desktop_category_page_style){case"categories_with_featured_topics":return document.querySelectorAll(".latest .featured-topic");case"categories_and_latest_topics":case"categories_and_latest_topics_created_date":return document.querySelectorAll(".latest-topic-list .latest-topic-list-item");case"categories_and_top_topics":return document.querySelectorAll(".top-topic-list .latest-topic-list-item");default:return[]}},_findArticles(){let e;return document.querySelector(".posts-wrapper")?document.querySelectorAll(".posts-wrapper .topic-post, .topic-list tbody tr"):document.querySelector(".topic-list")?document.querySelectorAll(".topic-list .topic-list-item"):document.querySelector(".search-results")?document.querySelectorAll(".search-results .fps-result"):(e=this.categoriesTopicsList())?e:void 0},_changeSection(e){if(document.querySelector(".post-stream"))this._moveSelection({direction:e,scrollWithinPosts:!1});else{let t=Array.from(document.querySelectorAll(".nav.nav-pills li")),n=document.querySelector(".nav.nav-pills li.active"),i=t.indexOf(n)+e;i>=0&&idocument.querySelector(".topic-post.selected article[data-post-id]"),_getSelectedTopicListItem:()=>document.querySelector("tr.selected.topic-list-item"),deferTopic(){(0,i.getOwner)(this).lookup("controller:topic").send("deferTopic")},toggleAdminActions(){document.querySelector(".toggle-admin-menu")?.click()},toggleBulkSelect(){let e=document.querySelector("button.bulk-select");e?e.click():(0,i.getOwner)(this).lookup("controller:topic").send("toggleMultiSelect")},toggleArchivePM(){(0,i.getOwner)(this).lookup("controller:topic").send("toggleArchiveMessage")},webviewKeyboardBack(){c.capabilities.isAppWebview&&window.history.back()},webviewKeyboardForward(){c.capabilities.isAppWebview&&window.history.forward()}}},9162:(e,t,n)=>{"use strict";function i(e){e.decorateCookedElement(e=>e.querySelectorAll("img").forEach(e=>e.loading="lazy")),e.decorateCookedElement(t=>{let n=e.container.lookup("service:site-settings");t.querySelectorAll("img").forEach(e=>{let{smallUpload:t,dominantColor:i}=e.dataset;(!n.secure_uploads||!t)&&(t||i)&&!function(e){return!!e.naturalHeight}(e)&&(e.onload||(e.onload=()=>{e.style.removeProperty("background-image"),e.style.removeProperty("background-size"),e.style.removeProperty("background-color")}),t?(e.style.setProperty("background-image",`url(${t})`),e.style.setProperty("background-size","cover")):e.style.setProperty("background-color",`#${i}`))})},{afterAdopt:!0})}n.r(t),n.d(t,{nativeLazyLoading:()=>i})},57177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cleanupLightboxes:()=>_,default:()=>y,setupLightboxes:()=>f});var i=n(14682),s=n.n(i),r=n(70264),o=n(13603),a=n(2406),l=n(20802),u=n(41958),c=n(45929),d=n(54216),p=n(26399),h=n(11508),m=n(20762),g=n(51969);async function f(e){let{container:t,selector:n}=e;(0,p.getOwnerWithFallback)(this).lookup("service:lightbox").setupLightboxes({container:t,selector:n})}function _(){return(0,p.getOwnerWithFallback)(this).lookup("service:lightbox").cleanupLightboxes()}function y(e,t){if(t.enable_experimental_lightbox)return(0,d.default)("Accessing the default `lightbox` export is deprecated. Import setupLightboxes and cleanupLightboxes from `discourse/lib/lightbox` instead.",{since:"3.0.0.beta16",dropFrom:"3.2.0",id:"discourse.lightbox.default-export"}),f({container:e,selector:o.SELECTORS.DEFAULT_ITEM_SELECTOR});if(!e)return;let n=e.querySelectorAll(o.SELECTORS.DEFAULT_ITEM_SELECTOR);if(!n.length)return;let i=(0,h.helperContext)().capabilities,p=i.touch;(0,a.default)("/javascripts/jquery.magnific-popup.min.js").then(function(){s()(n).magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:(0,c.isTesting)()?0:300,mainClass:"mfp-zoom-in",tClose:(0,g.i18n)("lightbox.close"),tLoading:r.spinnerHTML,prependTo:(0,c.isTesting)()&&document.getElementById("ember-testing"),gallery:{enabled:!0,tPrev:(0,g.i18n)("lightbox.previous"),tNext:(0,g.i18n)("lightbox.next"),tCounter:(0,g.i18n)("lightbox.counter"),navigateByImgClick:p},ajax:{tError:(0,g.i18n)("lightbox.content_load_error")},callbacks:{open(){if(!p){let e=this.wrap,t=this.currItem.img,n=t.css("max-height");e.on("click.pinhandler","img",function(){e.toggleClass("mfp-force-scrollbars"),t.css("max-height",e.hasClass("mfp-force-scrollbars")?"none":n)})}i.isAppWebview&&(0,l.postRNWebviewMessage)("headerBg",s()(".mfp-bg").css("background-color"))},change(){this.wrap.removeClass("mfp-force-scrollbars")},beforeClose(){this.wrap.off("click.pinhandler"),this.wrap.removeClass("mfp-force-scrollbars"),i.isAppWebview&&(0,l.postRNWebviewMessage)("headerBg",s()(".d-header").css("background-color"))}},image:{tError:(0,g.i18n)("lightbox.image_load_error"),titleSrc(e){let n=e.el.data("download-href")||e.src,i=[(0,l.escapeExpression)(e.el.attr("title")),s()("span.informations",e.el).text()];return(!t.prevent_anons_from_downloading_files||u.default.current())&&i.push(''+(0,m.renderIcon)("string","download")+(0,g.i18n)("lightbox.download")+""),i.push(''+(0,m.renderIcon)("string","image")+(0,g.i18n)("lightbox.open")+""),i.join(" · ")}}})})}},13603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ANIMATION_DURATION:()=>i,DOCUMENT_ELEMENT_LIGHTBOX_OPEN_CLASS:()=>l,KEYBOARD_SHORTCUTS:()=>m,LAYOUT_TYPES:()=>h,LIGHTBOX_APP_EVENT_NAMES:()=>p,LIGHTBOX_ELEMENT_ID:()=>u,MIN_CAROUSEL_ARROW_ITEM_COUNT:()=>r,MIN_CAROUSEL_ITEM_COUNT:()=>s,SELECTORS:()=>d,SWIPE_DIRECTIONS:()=>a,SWIPE_THRESHOLD:()=>o,TITLE_ELEMENT_ID:()=>c});let i=(0,n(45929).isTesting)()||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:150,s=2,r=5,o=50,a={DOWN:"down",LEFT:"left",RIGHT:"right",UP:"up"},l="has-lightbox",u="discourse-lightbox",c="d-lightbox-image-title",d={ACTIVE_CAROUSEL_ITEM:"[data-lightbox-carousel-item='current']",DEFAULT_ITEM_SELECTOR:"*:not(.spoiler):not(.spoiled) a.lightbox",FILE_DETAILS_CONTAINER:".informations",LIGHTBOX_CONTAINER:".d-lightbox",LIGHTBOX_CONTENT:".d-lightbox__content",LIGHTBOX_BODY:".d-lightbox__body",FOCUS_TRAP:".d-lightbox__focus-trap",MAIN_IMAGE:".d-lightbox__main-image",MULTI_BUTTONS:".d-lightbox__multi-item-controls",CAROUSEL_BUTTON:".d-lightbox__carousel-button",PREV_BUTTON:".d-lightbox__previous-button",NEXT_BUTTON:".d-lightbox__next-button",CLOSE_BUTTON:".d-lightbox__close-button",FULL_SCREEN_BUTTON:".d-lightbox__full-screen-button",TAB_BUTTON:".d-lightbox__new-tab-button",ROTATE_BUTTON:".d-lightbox__rotate-button",ZOOM_BUTTON:".d-lightbox__zoom-button",DOWNLOAD_BUTTON:".d-lightbox__download-button",COUNTERS:".d-lightbox__counters",COUNTER_CURRENT:".d-lightbox__counter-current",COUNTER_TOTAL:".d-lightbox__counter-total",IMAGE_TITLE:".d-lightbox__image-title",ACTIVE_ITEM_TITLE:".d-lightbox__item-title",ACTIVE_ITEM_FILE_DETAILS:".d-lightbox__item-file-details",CAROUSEL:".d-lightbox__carousel",CAROUSEL_ITEM:".d-lightbox__carousel-item",CAROUSEL_PREV_BUTTON:".d-lightbox__carousel-previous-button",CAROUSEL_NEXT_BUTTON:".d-lightbox__carousel-next-button"},p={CLEAN:"dom:clean",CLOSE:"lightbox:close",CLOSED:"lightbox:closed",ITEM_DID_CHANGE:"lightbox:item-did-change",ITEM_WILL_CHANGE:"lightbox:item-will-change",OPEN:"lightbox:open",OPENED:"lightbox:opened"},h={HORIZONTAL:"horizontal",VERTICAL:"vertical"},m={CAROUSEL:"a",CLOSE:"Escape",DOWNLOAD:"d",FULLSCREEN:"m",NEWTAB:"n",NEXT:["ArrowRight","ArrowDown"],PREVIOUS:["ArrowLeft","ArrowUp"],ROTATE:"r",TITLE:"t",ZOOM:"z"}},11635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createDownloadLink:()=>o.createDownloadLink,findNearestSharedParent:()=>c.findNearestSharedParent,getSiteThemeColor:()=>i.getSiteThemeColor,getSwipeDirection:()=>s.getSwipeDirection,openImageInNewTab:()=>l.openImageInNewTab,preloadItemImages:()=>r.preloadItemImages,scrollParentToElementCenter:()=>a.scrollParentToElementCenter,setCarouselScrollPosition:()=>u.setCarouselScrollPosition,setSiteThemeColor:()=>i.setSiteThemeColor});var i=n(86383),s=n(25423),r=n(29212),o=n(60572),a=n(88139),l=n(14049),u=n(66265),c=n(65335)},60572:(e,t,n)=>{"use strict";async function i(e){try{let t=document.createElement("a");t.href=e.downloadURL,t.download=e.title,t.click()}catch(e){console.error(e)}}n.r(t),n.d(t,{createDownloadLink:()=>i})},65335:(e,t,n)=>{"use strict";function i(e){let t=[];for(let n of e){let e=n;for(;e;)t.push(e),e=e.parentElement}return t.filter(e=>t.indexOf(e)!==t.lastIndexOf(e))[0]}n.r(t),n.d(t,{findNearestSharedParent:()=>i})},25423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSwipeDirection:()=>s});var i=n(13603);function s(e){let{touchstartX:t,touchstartY:n,touchendX:s,touchendY:r}=e,o=t-s,a=n-r,l=Math.abs(a);return Math.abs(o)>i.SWIPE_THRESHOLD?Math.sign(o)>0?i.SWIPE_DIRECTIONS.RIGHT:i.SWIPE_DIRECTIONS.LEFT:l>i.SWIPE_THRESHOLD&&(Math.sign(a)>0?i.SWIPE_DIRECTIONS.UP:i.SWIPE_DIRECTIONS.DOWN)}},14049:(e,t,n)=>{"use strict";async function i(e){try{window.open(e.fullsizeURL,"_blank")}catch(e){console.error(e)}}n.r(t),n.d(t,{openImageInNewTab:()=>i})},29212:(e,t,n)=>{"use strict";async function i(e){if(!e)return;if(e.isLoaded&&!e.hasLoadingError)return e;let t=new Image,n=new Image,i=new Promise((n,i)=>{t.onload=n,t.onerror=i,t.src=e.fullsizeURL}),s=new Promise((t,i)=>{n.onload=t,n.onerror=i,n.src=e.smallURL});try{await Promise.all([i,s]),e={...e,isLoaded:!0,hasLoadingError:!1,width:t.naturalWidth,height:t.naturalHeight,aspectRatio:e.aspectRatio||`${n.naturalWidth} / ${n.naturalHeight}`,canZoom:t.naturalWidth>window.innerWidth||t.naturalHeight>window.innerHeight}}catch{e.hasLoadingError=!0,console.error(`Failed to load lightbox image ${e.index}: ${e.fullsizeURL}`)}return e}n.r(t),n.d(t,{preloadItemImages:()=>i})},88139:(e,t,n)=>{"use strict";async function i(e){let{element:t,isRTL:n}=e,{offsetWidth:i,offsetHeight:s,parentElement:r}=t,o=(i-r.offsetWidth)/2*(n?-1:1),a=(s-r.offsetHeight)/2;r.scrollLeft=parseInt(o,10),r.scrollTop=parseInt(a,10)}n.r(t),n.d(t,{scrollParentToElementCenter:()=>i})},66265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setCarouselScrollPosition:()=>s});var i=n(13603);async function s(){let{behavior:e="instant"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.querySelector(i.SELECTORS.ACTIVE_CAROUSEL_ITEM);if(!t)return;let n=t.offsetLeft-t.offsetWidth-t.offsetWidth/2,s=t.offsetTop-t.offsetHeight-t.offsetHeight/2;t.parentElement.scrollTo({behavior:e,left:n,top:s})}},86383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSiteThemeColor:()=>s,setSiteThemeColor:()=>r});var i=n(20802);async function s(){let e=document.querySelector('meta[name="theme-color"]');return e?.content}async function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"000000",t=`#${e.replace(/^#*/,"")}`,n=document.querySelector('meta[name="theme-color"]');n&&(n.content=t),i.postRNWebviewMessage?.("headerBg",t)}},36725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{processHTML:()=>r});var i=n(35804),s=n(13603);async function r(e){let{container:t,selector:n,clickTarget:r}=e;n??=s.SELECTORS.DEFAULT_ITEM_SELECTOR;let o=[...t.querySelectorAll(n)],a=o.findIndex(e=>e===r);-1===a&&(a=0);let l=/url\((['"])?(.*?)\1\)/gi;return{items:o.map((e,t)=>{try{let n=e.querySelector("img")||{},r=e.style?.backgroundImage||e.parentElement?.style?.backgroundImage||null,o=e.dataset?.largeSrc||e.href||e.src||n.src||null,a=n.currentSrc||e.src||n.src||r?.replace(l,"$2")||null,u=e.dataset?.downloadHref||e.href||e.src||n.src||null,c=e.title||e.alt||n.title||n.alt||"",d=e.dataset?.aspectRatio||n.dataset?.aspectRatio||e.style?.aspectRatio||n.style?.aspectRatio||null,p=e.querySelector(s.SELECTORS.FILE_DETAILS_CONTAINER)?.innerText.trim()||null,h=e.dataset?.dominantColor??n.dataset?.dominantColor??null,m=[h&&`--dominant-color: #${h};`,d&&`--aspect-ratio: ${d};`,a&&`--small-url: url(${encodeURI(a)});`].join("");return{fullsizeURL:encodeURI(o),smallURL:encodeURI(a),downloadURL:encodeURI(u),title:c,fileDetails:p,dominantColor:h,aspectRatio:d,index:t,cssVars:(0,i.htmlSafe)(m)}}catch(e){console.error(`Error processing lightbox item ${t}`),console.error(e)}}),startingIndex:a}}},28427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,reset:()=>r});let i={},s=[!1,null];function r(){i={}}class o{constructor(e){this._links=e}check(e,t){if(i[t])return s;let n=t.toLowerCase().replace(/^https?:\/\//,"").replace(/\/$/,"");if(i[n])return s;let r=this._links[n];if(r){if(e){let t=e.get("post_number");if(1===t||t===r.post_number||moment(e.get("created_at")).isBefore(moment().subtract(2,"weeks")))return s}return i[t]=!0,i[n]=!0,[!0,r]}return s}}},87342:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{fetchUnseenMentions:()=>f,linkSeenMentions:()=>g,resetMentions:()=>h});var s=n(6610),r=n(56839),o=n(20802),a=n(87389);let l={},u={},c={},d={},p={};function h(){l={},u={},c={},d={},p={},i=null}function m(e,t,n){let s=document.createElement("a");n.group?(s.href=(0,a.default)(`/g/${t}`),s.innerText=`@${t}`,s.classList.add("mention-group"),!n.reason&&n.details&&(s.dataset.mentionableUserCount=n.details.user_count,s.dataset.maxMentions=i)):(s.href=(0,r.userPath)(t.toLowerCase()),s.innerText=`@${(0,o.formatUsername)(t)}`,s.classList.add("mention")),s.dataset.name=t,n.reason&&(s.dataset.reason=n.reason,n.details&&(s.dataset.notifiedUserCount=n.details.notified_count)),e.replaceWith(s)}function g(e,t){let n=[...e.querySelectorAll("span.mention:not(.mention-tested)")];if(0===n.length)return[];let i=n.map(e=>e.innerText.slice(1));return!function(e,t){e.forEach((e,n)=>{let i=t[n];u[i.toLowerCase()]?m(e,i,{reason:c[i]}):d[i]?m(e,i,{group:!0,details:d[i],reason:p[i]}):l[i]&&e.classList.add("mention-tested")})}(n,i),i.uniq().filter(e=>!l[e]&&e.length>=t.min_username_length)}async function f(e){let{names:t,topicId:n,allowedNames:r}=e,o=await (0,s.ajax)("/composer/mentions",{data:{names:t,topic_id:n,allowed_names:r}});return t.forEach(e=>l[e]=!0),o.users.forEach(e=>u[e]=!0),Object.entries(o.user_reasons).forEach(e=>{let[t,n]=e;return c[t]=n}),Object.entries(o.groups).forEach(e=>{let[t,n]=e;return d[t]=n}),Object.entries(o.group_reasons).forEach(e=>{let[t,n]=e;return p[t]=n}),i=o.max_users_notified_per_group_mention,o}},88274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(21959);async function s(){let e=n.e(887).then(n.bind(n,14887));return(0,i.YZ)(e),await e}},18604:(e,t,n)=>{"use strict";let i;async function s(){return i??=await n.e(188).then(n.bind(n,72188))}function r(e){i=e}function o(){if(!i)throw"Faker has not been loaded yet. Ensure `setLoadedFaker()` or `loadFaker()` have been called first";return i}n.r(t),n.d(t,{default:()=>s,getLoadedFaker:()=>o,setLoadedFaker:()=>r})},81346:(e,t,n)=>{"use strict";async function i(){return await n.e(634).then(n.bind(n,98634))}n.r(t),n.d(t,{default:()=>i})},40224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadOneboxes:()=>r});var i=n(84528),s=n(6302);function r(e,t,n,r,o,a,l){let u={},c={},d=e.querySelectorAll(`aside.onebox, a.${s.LOADING_ONEBOX_CSS_CLASS}, a.inline-onebox`).length;return e.querySelectorAll("a.onebox, a.inline-onebox-loading").forEach(e=>{let t=e.classList.contains("inline-onebox-loading"),n=t?c:u;d0&&function(e){let{oneboxes:t,ajax:n,topicId:i,categoryId:r,refresh:o,offline:a}=e;Object.values(t).forEach(e=>{e.forEach(e=>{(0,s.load)({elem:e,ajax:n,categoryId:r,topicId:i,refresh:o,offline:a})})})}({oneboxes:u,ajax:t,topicId:n,categoryId:r,refresh:a,offline:l}),Object.keys(c).length>0&&function(e,t,n,s){(0,i.applyInlineOneboxes)(e,t,{categoryId:n,topicId:s})}(c,t,n,r),Object.keys(u).length+Object.keys(c).length}},2406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cacheBuster:()=>m,default:()=>h,loadCSS:()=>p});var i=n(42433),s=n(21959),r=n(35223),o=n(6610),a=n(17259),l=n(87389);let u=(0,s.lQ)("load-script"),c={},d={};function p(e){return h(e,{css:!0})}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c[e])return r.Promise.resolve();e=m(e);let n=t.css?(0,l.default)(e):(0,l.getURLWithCDN)(e);return document.querySelectorAll("script").forEach(e=>{let t=e.getAttribute("src");t&&t!==n&&!d[t]&&(c[t]=!0)}),new r.Promise(function(s){let a;if(c[n])return s();if(d[n])return d[n].then(s);d[n]=new r.Promise(function(e){a=e}),d[n].then(function(){delete d[n]});let l=function(i){if(t?.css){let e=document.createElement("style");e.innerText=i,document.querySelector("head").appendChild(e)}a(),s(),c[e]=!0,c[n]=!0};t.css?(0,o.ajax)({url:n,dataType:"text"}).then(l):function(e,t){let n=document.getElementsByTagName("head")[0],s=document.createElement("script");s.src=e;let r=u.beginAsync();s.onerror=function(){u.endAsync(r)},s.onload=s.onreadystatechange=function(e,n){!n&&s.readyState&&"loaded"!==s.readyState&&"complete"!==s.readyState||(s=s.onload=s.onreadystatechange=null,n||(0,i.run)(null,t)),u.endAsync(r)},n.appendChild(s)}(n,l)})}function m(e){if(a.PUBLIC_JS_VERSIONS){let[t,...n]=e.split("/").filter(Boolean);if("javascripts"===t){n=n.join("/").toLowerCase();let e=a.PUBLIC_JS_VERSIONS[n];if(e)return`/javascripts/${e}`}}return e}},90093:(e,t,n)=>{"use strict";function i(e,t){t.discourse_local_dates_enabled&&(0,requirejs("discourse/plugins/discourse-local-dates/initializers/discourse-local-dates").applyLocalDates)(e,t)}n.r(t),n.d(t,{applyLocalDates:()=>i})},22757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(8032),s=n(62797);let r=["scroll","touchmove","mousedown","wheel","keyup"],o=["mousedown","mousewheel","touchmove","wheel"];function a(e,t,n){return Math.abs(t-n)this.options.originalTopOffset?n-this.options.originalTopOffset:n-(0,i.headerOffset)()}clearLock(){this._removeListener(),window.cancelAnimationFrame(this._requestId),this.options.finished&&this.options.finished()}lock(){this.startedAt=Date.now(),this.previousTop=this.elementTop(),this.previousTop&&window.scrollTo(window.pageXOffset,this.previousTop),this._requestId=window.requestAnimationFrame(this._performLocking),this._removeListener(),this._addListener()}_scrollListener(e){(e.which>0||o.includes(e.type))&&this.clearLock()}static #e=(()=>dt7948.n(this.prototype,"_scrollListener",[s.bind]))();_addListener(){r.forEach(e=>{document.body.addEventListener(e,this._scrollListener,{passive:!0})})}_removeListener(){r.forEach(e=>{document.body.removeEventListener(e,this._scrollListener)})}_performLocking(){let e=this.elementTop();if(!this.previousTop&&!e){Date.now()-this.startedAt>5e3&&this.clearLock(),this._requestId=window.requestAnimationFrame(this._performLocking);return}let t=Math.max(0,e);return isNaN(t)?this.clearLock():(a(4,t,this.previousTop)&&a(4,window.scrollY,t)||(window.scrollTo(window.pageXOffset,t),this.previousTop=t),this.options.originalTopOffset||Date.now()-this.startedAt>1e3)?this.clearLock():void(this._requestId=window.requestAnimationFrame(this._performLocking))}static #n=(()=>dt7948.n(this.prototype,"_performLocking",[s.bind]))()}},71554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(97355),s=n(45929),r=n(87389),o=n(11508);function a(){let{redirect:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,s.isTesting)())return;let t=(0,o.helperContext)();if(t.keyValueStore.abandonLocal(),!(0,i.isEmpty)(e)){window.location.href=e;return}let n=t.siteSettings.login_required?"/login":"/";window.location.href=(0,r.default)(n)}},87090:(e,t,n)=>{"use strict";async function i(e){return await createImageBitmap(e)}async function s(e){let t=function(e){let t=e.width,n=e.height,i=new OffscreenCanvas(t,n).getContext("2d");if(!i)throw"Could not create canvas context";return i.drawImage(e,0,0,t,n,0,0,t,n),i.getImageData(0,0,t,n)}(await i(e));if(function(e,t){if(!/(\.|\/)(png|webp)$/i.test(e))return!1;for(let e=0;es})},76578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,forceMobile:()=>a,resetMobile:()=>l});var i=n(14682),s=n.n(i),r=n(45929);let o=!1;function a(){o=!0}function l(){o=!1}let u={isMobileDevice:!1,mobileView:!1,init(){let e=s()("html");if(this.isMobileDevice=o||e.hasClass("mobile-device"),this.mobileView=o||e.hasClass("mobile-view"),!(0,r.isTesting)()&&!o)try{if(window.location.search.match(/mobile_view=1/)&&(localStorage.mobileView=!0),window.location.search.match(/mobile_view=0/)&&(localStorage.mobileView=!1),window.location.search.match(/mobile_view=auto/)&&localStorage.removeItem("mobileView"),localStorage.mobileView){let e="true"===localStorage.mobileView;e!==this.mobileView&&this.reloadPage(e)}}catch{}},toggleMobileView(){try{localStorage&&(localStorage.mobileView=!this.mobileView)}catch{}this.reloadPage(!this.mobileView)},reloadPage(e){window.location.assign(window.location.pathname+"?mobile_view="+(e?"1":"0"))}}},8628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyModelTransformations:()=>o,registerModelTransformer:()=>r,resetModelTransformers:()=>a});var i=n(55481);let s={};function r(e,t){s[e]||(s[e]=[]);let n={prefix:(0,i.consolePrefix)(),execute:t};s[e].push(n)}async function o(e,t){for(let n of s[e]||[])try{await n.execute(t)}catch(t){console.error(n.prefix,`transformer for the \`${e}\` model failed with:`,t,t?.stack)}}function a(){s={}}},83454:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i={narrowDesktopView:!1,init(){this.narrowDesktopView=this.isNarrowDesktopView(document.body.getBoundingClientRect().width)},isNarrowDesktopView:e=>e<768}},18523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NotificationLevels:()=>i,allLevels:()=>r,buttonDetails:()=>s,topicLevels:()=>o});let i={WATCHING_FIRST_POST:4,WATCHING:3,TRACKING:2,REGULAR:1,NORMAL:1,MUTED:0};function s(e){switch(e){case 4:return{id:4,key:"watching_first_post",icon:"d-watching-first"};case 3:return{id:3,key:"watching",icon:"d-watching"};case 2:return{id:2,key:"tracking",icon:"d-tracking"};case 0:return{id:0,key:"muted",icon:"d-muted"};default:return{id:1,key:"regular",icon:"d-regular"}}}let r=[3,2,4,1,0].map(s),o=r.filter(e=>4!==e.id)},19581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRenderDirector:()=>S,registerNotificationTypeRenderer:()=>x,resetNotificationTypeRenderers:()=>T});var i=n(96348),s=n(38051),r=n(74953),o=n(48597),a=n(40275),l=n(57241),u=n(45297),c=n(85300),d=n(92816),p=n(71869),h=n(30021),m=n(79171),g=n(18406),f=n(60848),_=n(72094),y=n(6244),b=n(57519);let w={bookmark_reminder:r.default,custom:o.default,edited:a.default,granted_badge:l.default,group_mentioned:u.default,group_message_summary:c.default,invitee_accepted:d.default,liked:p.default,liked_consolidated:h.default,linked_consolidated:m.default,membership_request_accepted:g.default,membership_request_consolidated:f.default,moved_post:_.default,new_features:y.default,admin_problems:i.default,watching_first_post:b.default},k={};function x(e,t){k[e]=t(s.default)}function T(){k={}}function S(e,t,n,i,r){return new(k[e]||w[e]||s.default)({notification:t,currentUser:n,siteSettings:i,site:r})}},96348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(87389),r=n(51969);let o=class extends i.default{get label(){return null}get description(){return(0,r.i18n)("notifications.admin_problems")}get linkHref(){return(0,s.default)("/admin")}get icon(){return"triangle-exclamation"}}},38051:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(35804),s=n(62167),r=n(56839),o=n(20802),a=n(51969);class l{constructor(e){let{notification:t,currentUser:n,siteSettings:i,site:s}=e;this.notification=t,this.currentUser=n,this.siteSettings=i,this.site=s}get classNames(){let e=["notification"];return this.notification.read?e.push("read"):e.push("unread"),this.notificationName&&e.push(this.notificationName.replace(/_/g,"-")),this.notification.is_warning&&e.push("is-warning"),e}get linkHref(){return this.topicId?(0,o.postUrl)(this.notification.slug,this.topicId,this.notification.post_number):this.notification.data.group_id?(0,r.userPath)(`${this.notification.data.username}/messages/${this.notification.data.group_name}`):void 0}get linkTitle(){return this.notificationName?(0,a.i18n)(`notifications.titles.${this.notificationName}`):""}get icon(){return`notification.${this.notificationName}`}get label(){return this.username}get description(){let e=(0,s.emojiUnescape)(this.notification.fancy_title);return e?(0,i.htmlSafe)(e):this.notification.data.topic_title}get labelClasses(){return[]}get descriptionClasses(){return[]}get topicId(){return this.notification.topic_id}get username(){return(0,o.formatUsername)(this.notification.data.display_username)}get notificationName(){return this.site.notificationLookup[this.notification.notification_type]}}},74953:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(87389),r=n(51969);let o=class extends i.default{get linkTitle(){return this.notification.data.bookmark_name?(0,r.i18n)("notifications.titles.bookmark_reminder_with_name",{name:this.notification.data.bookmark_name}):super.linkTitle}get description(){return super.description||this.notification.data.title}get label(){return null}get linkHref(){return super.linkHref||(this.notification.data.bookmarkable_url?(0,s.default)(this.notification.data.bookmarkable_url):void 0)}}},48597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38051),s=n(51969);let r=class extends i.default{get linkTitle(){if(this.notification.data.title)return(0,s.i18n)(this.notification.data.title)}get icon(){return`notification.${this.notification.data.message}`}}},40275:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38051),s=n(97264);let r=class extends i.default{onClick(){(0,s.setLastEditNotificationClick)(this.notification.topic_id,this.notification.post_number,this.notification.data.revision_number)}}},57241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(87389),r=n(51969);let o=class extends i.default{get linkHref(){let e=this.notification.data.badge_id;if(!e)return super.url;{let t=this.notification.data.badge_slug;t||(t=this.notification.data.badge_name.replace(/[^A-Za-z0-9_]+/g,"-").toLowerCase());let n=this.notification.data.username;return n=n?`?username=${n.toLowerCase()}`:"",(0,s.default)(`/badges/${e}/${t}${n}`)}}get description(){return(0,r.i18n)("notifications.granted_badge",{description:this.notification.data.badge_name})}get label(){return null}}},45297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(38051);let s=class extends i.default{get label(){return`${this.username} @${this.notification.data.group_name}`}get labelClasses(){return["mention-group","notify"]}}},85300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get description(){return(0,r.i18n)("notifications.group_message_summary",{count:this.notification.data.inbox_count,group_name:this.notification.data.group_name})}get label(){return null}get linkHref(){return(0,s.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}},92816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get linkHref(){return(0,s.userPath)(this.notification.data.display_username)}get description(){return(0,r.i18n)("notifications.invitee_accepted_your_invitation")}}},30021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get linkHref(){return(0,s.userPath)(`${this.currentUser.username}/notifications/likes-received?acting_username=${this.notification.data.username}`)}get description(){return(0,r.i18n)("notifications.liked_consolidated_description",{count:this.notification.data.count})}}},71869:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(20802),r=n(51969);let o=class extends i.default{get label(){return 2===this.count?(0,r.i18n)("notifications.liked_by_2_users",{username:this.username,username2:this.#c6}):this.count>2?(0,r.i18n)("notifications.liked_by_multiple_users",{username:this.username,count:this.count-1}):super.label}get labelClasses(){return 2===this.count?["double-user"]:this.count>2?["multi-user"]:void 0}get count(){return this.notification.data.count}get #c6(){return(0,s.formatUsername)(this.notification.data.username2)}}},79171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get linkHref(){return(0,s.userPath)(`${this.currentUser.username}/notifications/links?acting_username=${this.notification.data.username}`)}get description(){return(0,r.i18n)("notifications.linked_consolidated_description",{count:this.notification.data.count})}}},18406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get linkHref(){return(0,s.groupPath)(this.notification.data.group_name)}get description(){return(0,r.i18n)("notifications.membership_request_accepted",{group_name:this.notification.data.group_name})}get label(){return null}}},60848:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(56839),r=n(51969);let o=class extends i.default{get linkHref(){return(0,s.userPath)(`${this.notification.username||this.currentUser.username}/messages`)}get description(){return(0,r.i18n)("notifications.membership_request_consolidated",{group_name:this.notification.data.group_name,count:this.notification.data.count})}get label(){return null}}},72094:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38051),s=n(51969);let r=class extends i.default{get label(){return(0,s.i18n)("notifications.user_moved_post",{username:this.username})}}},6244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(38051),s=n(87389),r=n(51969);let o=class extends i.default{get label(){return null}get description(){return(0,r.i18n)("notifications.new_features")}get linkHref(){return(0,s.default)("/admin/whats-new")}get icon(){return"gift"}}},57519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(38051),s=n(51969);let r=class extends i.default{get label(){return(0,s.i18n)("notifications.watching_first_post_label")}}},8032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,headerOffset:()=>o,minimumOffset:()=>r,scrollTopFor:()=>s});var i=n(54216);function s(e){return e-a()}function r(){(0,i.default)("The minimumOffset() helper is deprecated, please use headerOffset() instead.",{since:"2.8.0.beta10",dropFrom:"2.9.0.beta2",id:"discourse.offset-calculator.minimumOffset"});let e=document.querySelector("header.d-header"),t=document.querySelector(".footer-nav-ipad .footer-nav"),n=t?t.offsetHeight:0,s=document.querySelector(".d-header-wrap").getBoundingClientRect();return e?e.offsetHeight+s.top+n:0}function o(){return parseInt(document.documentElement.style.getPropertyValue("--header-offset"),10)||0}function a(){let e=o();if(document.documentElement.classList.contains("mobile-view"))return e;let t=window.innerHeight,n=document.body.clientHeight,i=document.getElementById("topic-bottom").offsetTop;if(n-t>i)return e;let s=window.scrollY+t-i;if(s>0){let r=n-i;return Math.max(e,(t-r)*s/r)}return e}},40710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(70001),s=n(71597),r=n(54836);function o(e,t,n){t??=e;let o=(0,i.computed)(function(e){return(0,s.getOwner)(this).lookup(`service:${t||(0,r.dasherize)(e)}`)});return n?o(e,t,n):o}},63022:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGTMPageChangedCallback:()=>h,getTransient:()=>u,googleTagManagerPageChanged:()=>m,resetPageTracking:()=>c,setTransient:()=>l,startPageTracking:()=>d});var i=n(42433),s=n(87389);let r=!1,o={},a=0;function l(e,t,n){o[e]={data:t,target:a+n}}function u(e){return o[e]}function c(){r=!1,a=0,o={}}function d(e,t,n){r||(e.on("routeDidChange",r=>{if(r.isAborted)return;let l="replace"===r.urlMethod&&r.queryParamsOnly;e.send("refreshTitle");let u=(0,s.default)(e.get("url"));(0,i.next)(()=>{t.trigger("page:changed",{url:u,title:n.getTitle(),currentRouteName:e.currentRouteName,replacedOnlyQueryParams:l})}),a++,Object.keys(o).forEach(e=>{let t=o[e];t&&t.target&&t.targete(t)),window.dataLayer.push(t)}},83618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PLUGIN_API_VERSION:()=>ez,withPluginApi:()=>eG});var i=n(14682),s=n.n(i),r=n(94802),o=n(18080),a=n(3791),l=n(82048),u=n(31753),c=n(88481),d=n(85984),p=n(55934),h=n(27138),m=n(95709),g=n(40646),f=n(33935),_=n(80519),y=n(25710),b=n(35766),w=n(19821),k=n(55622),x=n(81637),T=n(43423),S=n(10968),C=n(93345),E=n(93522),A=n(62979),D=n(54150),I=n(96487),P=n(40530),M=n(2034),F=n(15385),N=n(78872),O=n(86183),L=n(83792),R=n(93172),U=n(12223),j=n(85578),B=n(87239),z=n(86832),$=n(84176),q=n(26529),H=n(6235),V=n(15642),W=n(20643),K=n(16747),G=n(34663),Y=n(18672),Q=n(56907),J=n(8628),X=n(19581),Z=n(63022),ee=n(50628),et=n(98860),en=n(30945),ei=n(95733),es=n(40928),er=n(55950),eo=n(84188),ea=n(53674),el=n(20991),eu=n(26080),ec=n(43071),ed=n(17621),ep=n(82384),eh=n(55481),em=n(10577),eg=n(83357),ef=n(82975),e_=n(20802),ey=n(60568),eb=n(2151),ev=n(22850),ew=n(69883),ek=n(46606),ex=n(41958),eT=n(38396),eS=n(1195),eC=n(66861),eE=n(93396),eA=n(93008),eD=n(54314),eI=n(75957),eP=n(29329),eM=n(91639),eF=n(95854),eN=n(45929),eO=n(54216),eL=n(26399),eR=n(20762),eU=n(99642),ej=n(571),eB=n(71296);let ez="1.39.1",e$=["post-menu","post-user-tip-shim","small-user-list"],eq={since:"v3.4.0.beta3-dev",id:"discourse.post-menu-widget-overrides",url:"https://meta.discourse.org/t/341014"},eH=new WeakMap;function eV(e,t,n,i){if("function"==typeof i)return!0;if(!i.pluginId)return console.warn((0,eh.consolePrefix)(),"To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once."),!0;let s="_"+t+"/"+i.pluginId+"/"+n;if(eH.get(e.class)?.includes(s))return!1;{let t=eH.get(e.class)||[];return t.push(s),eH.set(e.class,t),!0}}function eW(e,t){return function(){try{return e.call(this,...arguments)}catch(e){if(document.dispatchEvent(new CustomEvent("discourse-error",{detail:{messageKey:t,error:e}})),(0,eN.isTesting)())throw e;return}}}class eK{constructor(e,t){this.version=e,this.container=t,this.h=r.h}getCurrentUser(){return this._lookupContainer("service:current-user")}_lookupContainer(e){if(this.container&&!this.container.isDestroying&&!this.container.isDestroyed)return this.container.lookup(e)}_resolveClass(e,t){t=t||{};let n=this.container.registry.normalize(e);if(this.container.cache[n]||"model:user"===n&&this.container.lookup("service:current-user")){console.error((0,eh.consolePrefix)(),`Attempted to modify "${e}", but it was already initialized earlier in the boot process (e.g. via a lookup()). Remove that lookup, or move the modifyClass call earlier in the boot process for changes to take effect. https://meta.discourse.org/t/262064`);return}let i=this.container.factoryFor(n);if(!i){t.ignoreMissing||console.warn((0,eh.consolePrefix)(),`"${n}" was not found by modifyClass`);return}return i}modifyClass(e,t,n){("component:topic-list"===e||"component:topic-list-item"===e)&&(0,eO.default)("Modifying topic-list and topic-list-item with `modifyClass` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"});let i=this._resolveClass(e,n);if(i)return eV(i,"member",e,t)&&(delete t.pluginId,"function"==typeof t?(0,H.default)(i.class,t):i.class.reopen?(0,H.withPrependsRolledBack)(i.class,()=>{i.class.reopen(t)}):Object.defineProperties(i.class.prototype||i.class,Object.getOwnPropertyDescriptors(t))),i}modifyClassStatic(e,t,n){("component:topic-list"===e||"component:topic-list-item"===e)&&(0,eO.default)("Modifying topic-list and topic-list-item with `modifyClassStatic` is deprecated. Use the value transformer `topic-list-columns` and other new topic-list plugin APIs instead.",{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"});let i=this._resolveClass(e,n);if(i)return eV(i,"static",e,t)&&(delete t.pluginId,(0,H.withPrependsRolledBack)(i.class,()=>{i.class.reopenClass(t)})),i}addBehaviorTransformerName(e){(0,eg._addTransformerName)(e,eg.transformerTypes.BEHAVIOR)}registerBehaviorTransformer(e,t){return(0,eg._registerTransformer)(e,eg.transformerTypes.BEHAVIOR,t)}addValueTransformerName(e){(0,eg._addTransformerName)(e,eg.transformerTypes.VALUE)}registerValueTransformer(e,t){return(0,eg._registerTransformer)(e,eg.transformerTypes.VALUE,t)}registerIconRenderer(e){(0,eR.registerIconRenderer)(e)}replaceIcon(e,t){(0,eR.replaceIcon)(e,t)}decorateCooked(e,t){this.decorateCookedElement((t,n)=>e(s()(t),n),t)}decorateCookedElement(e,t){t=t||{},e=eW(e,"broken_decorator_alert"),(0,eA.addDecorator)(e,{afterAdopt:!!t.afterAdopt}),t.onlyStream||this.onAppEvent("decorate-non-stream-cooked-element",e)}addKeyboardShortcut(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.default.addShortcut(e,t,n)}disableDefaultKeyboardShortcuts(e){(0,Q.disableDefaultKeyboardShortcuts)(e)}addPosterIcon(e){this.addPosterIcons(e)}addPosterIcons(e){let t=this._lookupContainer("service:site"),n=t&&t.mobileView?"before":"after";(0,eF.decorateWidget)(`poster-name:${n}`,t=>{let n=t.attrs,i=e(n.userCustomFields||{},n);if(i)return Array.isArray(i)||(i=[i]),i.map(e=>{let n;return e.icon?n=(0,eR.iconNode)(e.icon):e.emoji&&(n=e.emoji.split("|").map(n=>{let i={name:n};return e.emojiTitle&&(i.title=!0),t.attach("emoji",i)})),e.text&&(n=[n,e.text]),e.url&&(n=t.h("a",{attributes:{href:e.url}},n)),t.h("span.poster-icon",{className:e.className,attributes:{title:e.title}},n)})})}decorateWidget(e,t){let n=e.split(":")[0];this.#de(n,"decorateWidget"),(0,eF.decorateWidget)(e,t)}attachWidgetAction(e,t,n){let i=(0,eF.queryRegistry)(e)||this.container.factoryFor(`widget:${e}`)?.class;if(!i){console.error((0,eh.consolePrefix)(),`attachWidgetAction: Could not find widget ${e} in registry`);return}this.#de(e,"attachWidgetAction"),i.prototype[t]=n}includePostAttributes(){(0,eO.default)("`api.includePostAttributes` has been deprecated. Use api.addTrackedPostProperties instead.",{id:"discourse.api.include-post-attributes",since:"v3.4.0.beta3-dev",dropFrom:"v3.5.0"}),(0,em.includeAttributes)(...arguments)}addTrackedPostProperties(){for(var e=arguments.length,t=Array(e),n=0;n(0,ew._addTrackedPostProperty)(e)),(0,em.includeAttributes)(...t)}addPostMenuButton(e,t){(0,eO.default)("`api.addPostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eq),eD.apiExtraButtons[e]=t,(0,eD.addButton)(e,t)}addPostAdminMenuButton(e){this.container.lookup("service:admin-post-menu-buttons").addButton(e)}addTopicAdminMenuButton(e){this.container.lookup("service:admin-topic-menu-buttons").addButton(e)}removePostMenuButton(e,t){(0,eO.default)("`api.removePostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eq),(0,eD.removeButton)(e,t)}replacePostMenuButton(e,t){(0,eO.default)("`api.replacePostMenuButton` has been deprecated. Use the value transformer `post-menu-buttons` instead.",eq),(0,eD.replaceButton)(e,t)}onToolbarCreate(e){(0,d.addToolbarCallback)(e)}addComposerToolbarPopupMenuOption(e){(0,V.addPopupMenuOption)(e)}addToolbarPopupMenuOptionsCallback(e){(0,eO.default)("`addToolbarPopupMenuOptionsCallback` has been renamed to `addComposerToolbarPopupMenuOption`",{id:"discourse.add-toolbar-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),this.addComposerToolbarPopupMenuOption(e)}cleanupStream(e){(0,y.addWidgetCleanCallback)("post-stream",e)}onPageChange(e){let t=eW(e,"broken_page_change_alert");this.onAppEvent("page:changed",e=>t(e.url,e.title))}onAppEvent(e,t){let n=this._lookupContainer("service:app-events");n&&n.on(e,t)}customUserAvatarClasses(e){(0,B.registerCustomAvatarHelper)(e)}disableNameSuppressionOnPosts(){(0,eM.disableNameSuppression)()}registerCustomPostMessageCallback(e,t){(0,O.registerCustomPostMessageCallback)(e,t)}addBeforeLoadMoreNotificationsCallback(e){(0,L.addBeforeLoadMoreCallback)(e)}changeWidgetSetting(e,t,n){this.#de(e,"changeWidgetSetting"),(0,eF.changeSetting)(e,t,n)}preventCloak(e){(0,eP.preventCloak)(e)}createWidget(e,t){return(0,eF.createWidget)(e,t)}reopenWidget(e,t){return this.#de(e,"reopenWidget"),(0,eF.reopenWidget)(e,t)}addFlagProperty(){(0,eO.default)("addFlagProperty has been removed. Use the reviewable API instead.",{id:"discourse.add-flag-property"})}addHeaderPanel(){console.error((0,eh.consolePrefix)(),"api.addHeaderPanel: This API was decommissioned. Use api.headerIcons instead.")}addStorePluralization(e,t){let n=this._lookupContainer("service:store");n&&n.addPluralization(e,t)}registerConnectorClass(e,t,n){(0,ee.extraConnectorClass)(`${e}/${t}`,n)}renderInOutlet(e,t){(0,ee.extraConnectorComponent)(e,t)}renderBeforeWrapperOutlet(e,t){this.renderInOutlet(`${e}__before`,t)}renderAfterWrapperOutlet(e,t){this.renderInOutlet(`${e}__after`,t)}registerTopicFooterButton(e){(0,et.registerTopicFooterButton)(e)}registerTopicFooterDropdown(e){(0,en.registerTopicFooterDropdown)(e)}registerDesktopNotificationHandler(e){(0,W.registerDesktopNotificationHandler)(e)}addPostSmallActionIcon(e,t){(0,eI.addPostSmallActionIcon)(e,t)}addGroupPostSmallActionCode(e){(0,eI.addGroupPostSmallActionCode)(e)}addPostSmallActionClassesCallback(e){(0,eI.addPostSmallActionClassesCallback)(e)}addDiscoveryQueryParam(e,t){(0,F.addDiscoveryQueryParam)(e,t)}addTagsHtmlCallback(e,t){(0,es.addTagsHtmlCallback)(e,t)}addUserMenuGlyph(){(0,eO.default)("addUserMenuGlyph has been removed. Use api.registerUserMenuTab instead.",{id:"discourse.add-user-menu-glyph"})}addPostClassesCallback(e){(0,eE.addPostClassesCallback)(e)}addTopicParticipantClassesCallback(e){(0,A.addTopicParticipantClassesCallback)(e)}addCustomUserFieldValidationCallback(e){(0,ey.addCustomUserFieldValidationCallback)(e)}addPostTransformCallback(e){(0,eP.addPostTransformCallback)(e)}addNavigationBarItem(e){if(e.name){let t=e.customHref;if(t){let n=this.container.lookup("service:router");e.customHref=function(e,i){return t(e,i,n)}}let n=e.customFilter;if(n){let t=this.container.lookup("service:router");e.customFilter=function(e,i){return n(e,i,t)}}let i=e.forceActive;if(i){let t=this.container.lookup("service:router");e.forceActive=function(e,n){return i(e,n,t)}}let s=e.init;if(s){let t=this.container.lookup("service:router");e.init=function(e,n,i){s(e,n,i,t)}}(0,ev.addNavItem)(e)}else console.warn((0,eh.consolePrefix)(),"A 'name' is required when adding a Navigation Bar Item.",e)}formatUsername(e){(0,e_.replaceFormatter)(e)}modifySelectKit(e){return(0,eB.modifySelectKit)(e)}addGTMPageChangedCallback(e){(0,Z.addGTMPageChangedCallback)(e)}addSharingSource(e){ea.default.addSharingId(e.id),ea.default.addSource(e)}addComposerUploadHandler(e,t){(0,u.addComposerUploadHandler)(e,t)}addComposerUploadPreProcessor(e,t){(0,u.addComposerUploadPreProcessor)(e,t)}addComposerUploadMarkdownResolver(e){(0,u.addComposerUploadMarkdownResolver)(e)}addUsernameSelectorDecorator(e){(0,j.addUsernameSelectorDecorator)(e)}composerBeforeSave(e){eb.default.reopen({beforeSave:e})}addComposerSaveErrorCallback(e){(0,eC.addComposerSaveErrorCallback)(e)}serializeToTopic(e,t){eb.default.serializeToTopic(e,t)}serializeToDraft(e,t){eb.default.serializeToDraft(e,t)}serializeOnCreate(e,t){eb.default.serializeOnCreate(e,t)}serializeOnUpdate(e,t){eb.default.serializeOnUpdate(e,t)}addCategorySortCriteria(e){(0,p.addCategorySortCriteria)(e)}addCardClickListenerSelector(e){(0,l.addCardClickListenerSelector)(e)}replaceCategoryLinkRenderer(e){(0,U.replaceCategoryLinkRenderer)(e)}replaceTagRenderer(e){(0,ei.replaceTagRenderer)(e)}registerCustomLastUnreadUrlCallback(e){(0,ek.registerCustomLastUnreadUrlCallback)(e)}registerHighlightJSLanguage(e,t){(0,Y.registerHighlightJSLanguage)(e,t)}registerHighlightJSPlugin(e){(0,Y.registerHighlightJSPlugin)(e)}addGlobalNotice(e,t,n){(0,m.addGlobalNotice)(e,t,n)}addDocumentTitleCounter(e){(0,c.addPluginDocumentTitleCounter)(e)}decoratePluginOutlet(e,t,n){(0,eO.default)("decoratePluginOutlet is deprecated because modifying an Ember-rendered DOM tree can lead to very unexpected errors. Use CSS or plugin outlet connectors instead",{id:"discourse.decorate-plugin-outlet"}),(0,b.addPluginOutletDecorator)(e,t,n||{})}setDesktopTopicTimelineScrollAreaHeight(e){(0,D.setDesktopScrollAreaHeight)(e)}decorateTopicTitle(e){(0,eO.default)("decorateTopicTitle is deprecated because modifying an Ember-rendered DOM tree can lead to very unexpected errors. Use plugin outlet connectors instead",{id:"discourse.decorate-topic-title",since:"3.2",dropFrom:"3.3"}),(0,I.addTopicTitleDecorator)(e)}setUserMenuNotificationsLimit(e){(0,P.setNotificationsLimit)(e)}addCategoryLinkIcon(e){(0,U.addExtraIconRenderer)(e)}get headerIcons(){return(0,f.headerIconsDAG)()}get headerButtons(){return(0,g.headerButtonsDAG)()}addToHeaderIcons(e){console.error((0,eh.consolePrefix)(),"api.addToHeaderIcons: This API was decommissioned. Use api.headerIcons instead.")}registerHomeLogoHrefCallback(e){(0,eg._registerTransformer)("home-logo-href",eg.transformerTypes.VALUE,t=>{let{value:n}=t;return e(n)})}addQuickAccessProfileItem(e){(0,M.addUserMenuProfileTabItem)(e)}addFeaturedLinkMetaDecorator(e){(0,er.addFeaturedLinkMetaDecorator)(e)}addAdvancedSearchOptions(e){(0,k.addAdvancedSearchOptions)(e)}addSaveableUserField(e){(0,ex.addSaveableUserField)(e)}addSaveableUserOptionField(e){(0,ex.addSaveableUserOptionField)(e)}addPluginReviewableParam(e,t){(0,w.addPluginReviewableParam)(e,t)}registerReviewableActionModal(e,t){(0,w.registerReviewableActionModal)(e,t)}setNewCategoryDefaultColors(e,t){(0,eT.setNewCategoryDefaultColors)(e,t)}setNotificationsLimit(e){(0,eS.setNotificationsLimit)(e)}addSearchResultsCallback(e){(0,eo.addSearchResultsCallback)(e)}addLogSearchLinkClickedCallbacks(e){(0,eo.addLogSearchLinkClickedCallbacks)(e)}addSearchSuggestion(e){(0,x.addSearchSuggestion)(e)}addSearchMenuAssistantSelectCallback(e){(0,T.addItemSelectCallback)(e)}forceDropdownForMenuPanels(e){(0,h.forceDropdownForMenuPanels)(e)}downloadCalendar(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,K.downloadCalendar)(e,t,n)}addSearchMenuOnKeyDownCallback(e){(0,C.addOnKeyUpCallback)(e)}addQuickSearchRandomTip(e){(0,S.addQuickSearchRandomTip)(e)}removeDefaultQuickSearchRandomTips(){(0,S.removeDefaultQuickSearchRandomTips)()}addUserSearchOption(e){ej.CUSTOM_USER_SEARCH_OPTIONS.push(e)}dispatchWidgetAppEvent(e,t,n){this.modifyClass(`component:${e}`,{pluginId:`${e}/${t}/${n}`,didInsertElement(){this._super(),this.dispatch(n,t)}},{ignoreMissing:!0})}customizeComposerText(e){(0,eb.registerCustomizationCallback)(e)}addCommunitySectionLink(e,t){(0,eu.addSectionLink)(e,t)}registerUserCategorySectionLinkCountable(e){let{badgeTextFunction:t,route:n,routeQuery:i,shouldRegister:s,refreshCountFunction:r,prioritizeOverDefaults:o}=e;(0,ed.registerCustomCountable)({badgeTextFunction:t,route:n,routeQuery:i,shouldRegister:s,refreshCountFunction:r,prioritizeOverDefaults:o})}registerCustomCategorySectionLinkLockIcon(e){return(0,ed.registerCustomCategoryLockIcon)(e)}registerCustomCategorySectionLinkPrefix(e){let{categoryId:t,prefixType:n,prefixValue:i,prefixColor:s}=e;(0,ed.registerCustomCategorySectionLinkPrefix)({categoryId:t,prefixType:n,prefixValue:i,prefixColor:s})}registerCustomTagSectionLinkPrefixIcon(e){let{tagName:t,prefixValue:n,prefixColor:i}=e;(0,ep.registerCustomTagSectionLinkPrefixIcon)({tagName:t,prefixValue:n,prefixColor:i})}refreshUserSidebarCategoriesSectionCounts(){let e=this._lookupContainer("service:app-events");e?.trigger(E.REFRESH_COUNTS_APP_EVENT_NAME)}addSidebarPanel(e){(0,ec.addSidebarPanel)(e)}addAdminSidebarSectionLink(e,t){(0,el.addAdminSidebarSectionLink)(e,t)}setSidebarPanel(e){this._lookupContainer("service:sidebar-state")?.setPanel(e)}getSidebarPanel(){return this._lookupContainer("service:sidebar-state")?.currentPanel}setCombinedSidebarMode(){this._lookupContainer("service:sidebar-state")?.setCombinedMode()}setSeparatedSidebarMode(){this._lookupContainer("service:sidebar-state").setSeparatedMode()}showSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state").showSwitchPanelButtons()}hideSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state")?.hideSwitchPanelButtons()}addSidebarSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";(0,ec.addSidebarSection)(e,t)}registerNotificationTypeRenderer(e,t){(0,X.registerNotificationTypeRenderer)(e,t)}registerUserMenuTab(e){(0,ef.registerUserMenuTab)(e)}registerModelTransformer(e,t){(0,J.registerModelTransformer)(e,t)}addUserMessagesNavigationDropdownRow(e,t,n){(0,R.registerCustomUserNavMessagesDropdownRow)(e,t,n)}addFullPageSearchType(e,t,n){(0,N.registerFullPageSearchType)(e,t,n)}addBeforeAuthCompleteCallback(e){(0,z.addBeforeAuthCompleteCallback)(e)}registerHashtagType(e,t){(0,G.registerHashtagType)(e,t)}addBulkActionButton(e){(0,a.addBulkDropdownButton)(e)}includeUserFieldPropertyOnSave(e){this.container.lookup("service:admin-custom-user-fields").addProperty(e)}addComposerImageWrapperButton(e,t,n,i){(0,eU.addImageWrapperButton)(e,t,n),(0,u.addApiImageWrapperButtonClickEvent)(i)}addAdminPluginConfigurationNav(e,t,n){if(!e){console.warn((0,eh.consolePrefix)(),"A pluginId must be provided!");return}let i=[$.PLUGIN_NAV_MODE_SIDEBAR,$.PLUGIN_NAV_MODE_TOP];if(!i.includes(t)){console.warn((0,eh.consolePrefix)(),`${t} is an invalid mode for admin plugin config pages, only ${i} are usable.`);return}(0,$.registerAdminPluginConfigNav)(e,t,n)}addAboutPageActivity(e,t){(0,o.addAboutPageActivity)(e,t)}registerPluginHeaderActionComponent(e,t){(0,q.registerPluginHeaderActionComponent)(e,t)}registerMoreTopicsTab(e){_.registeredTabs.push(e)}#de(e,t){e$.includes(e)&&(0,eO.default)(`The ${e} widget has been deprecated and ${t} is no longer a supported override.`,eq)}}function eG(e,t,n){n=n||{};let i=function(e){if(0>=function(e,t){let n,i;let s=/(\.0+)+$/,r=e.replace(s,"").split("."),o=t.replace(s,"").split("."),a=Math.min(r.length,o.length);for(n=0;n{"use strict";let i,s;n.r(t),n.d(t,{buildArgsWithDeprecations:()=>S,clearCache:()=>f,connectorsExist:()=>w,connectorsFor:()=>k,deprecatedArgumentValue:()=>C,expireConnectorCache:()=>_,extraConnectorClass:()=>h,extraConnectorComponent:()=>m,rawConnectorsFor:()=>T,renderedConnectorsFor:()=>x,resetExtraClasses:()=>p});var r=n(60465),o=n(88606),a=n(96029),l=n(54216),u=n(37441);let c={},d={};function p(){c={},d={}}function h(e,t){(0,l.default)("Defining connector classes via registerConnectorClass is deprecated. See https://meta.discourse.org/t/32727 for more modern patterns.",{id:"discourse.register-connector-class-legacy"}),c[e]=t}function m(e,t){if(!(0,r.hasInternalComponentManager)(t))throw Error("klass is not an Ember component");if(!(0,r.getComponentTemplate)(t))throw Error("connector component has no associated template. Ensure the template is colocated or authored with gjs.");if(e.includes("/"))throw Error("invalid outlet name");d[e]??=[],d[e].push(t)}let g=/^discourse(\/[^\/]+)*?(?