Get the Best IPTV Service
(self.webpackChunkdiscourse=self.webpackChunkdiscourse||[]).push([[173],{22:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addComposerSaveErrorCallback:()=>$,clearComposerSaveErrorCallback:()=>z,default:()=>W});var s=i(7155),n=i(86981),r=i(91558),a=i(24813),o=i(75093),l=i(15383),u=i(38161),d=i(41107),c=i.n(d),p=i(31075),h=i(9232),m=i(30175),g=i(58754),f=i(21306),_=i(11624),y=i(16356),b=i(85107),w=i(14086),k=i(14051),T=i(63272),S=i(12844),C=i(91035),A=i(71455),D=i(11837),M=i(44233),x=i(29466),E=i(26281),L=i(67698),P=i(77982),F=i(8835),I=i(77296),N=i(35697),j=i(23062),O=i(94996),R=i(19647),U=i(23948),B=i(62017),Y=i(70508);async function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{draft:i,draftKey:s,draftSequence:n}=t;try{i&&"string"==typeof i&&(i=JSON.parse(i))}catch{i=null,R.default.clear(s,n)}let r={draftKey:s,draftSequence:n,draft:!0,composerState:O.default.DRAFT,topic:t.topic};O.default.serializedFieldsForDraft().forEach(e=>{r[e]=i[e]||t[e]});let a=e.createRecord("composer");return await a.open(r),a}let q=[];function z(){q.length=0}function $(e){q.push(e)}let V=dt7948.c(class extends o.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"keyValueStore",[o.service]))();#u=(()=>void dt7948.i(this,"keyValueStore"))();static #d=(()=>dt7948.g(this.prototype,"messageBus",[o.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #p=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #m=(()=>dt7948.g(this.prototype,"router",[o.service]))();#g=(()=>void dt7948.i(this,"router"))();static #f=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #y=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #v=(()=>dt7948.g(this.prototype,"store",[o.service]))();#w=(()=>void dt7948.i(this,"store"))();static #k=(()=>dt7948.g(this.prototype,"toasts",[o.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #S=(()=>dt7948.g(this.prototype,"showPreview",[s.tracked],function(){return!this.site.mobileView&&"true"===(this.keyValueStore.get("composer.showPreview")||"true")}))();#C=(()=>void dt7948.i(this,"showPreview"))();static #A=(()=>dt7948.g(this.prototype,"allowPreview",[s.tracked],function(){return!1}))();#D=(()=>void dt7948.i(this,"allowPreview"))();static #M=(()=>dt7948.g(this.prototype,"selectedTranslationLocale",[s.tracked],function(){return null}))();#x=(()=>void dt7948.i(this,"selectedTranslationLocale"))();checkedMessages=!1;messageCount=null;showEditReason=!1;editReason=null;scopedCategoryId=null;prioritizedCategoryId=null;lastValidatedAt=null;isUploading=!1;isProcessingUpload=!1;isCancellable;uploadProgress;topic=null;linkLookup=null;composerHeight=null;static #E=(()=>dt7948.g(this.prototype,"forcePreview",[(0,r.and)("site.mobileView","showPreview")]))();#L=(()=>void dt7948.i(this,"forcePreview"))();static #P=(()=>dt7948.g(this.prototype,"categories",[(0,r.alias)("site.categoriesList")]))();#F=(()=>void dt7948.i(this,"categories"))();static #I=(()=>dt7948.g(this.prototype,"topicModel",[(0,r.alias)("topicController.model")]))();#N=(()=>void dt7948.i(this,"topicModel"))();static #j=(()=>dt7948.g(this.prototype,"isStaffUser",[(0,r.reads)("currentUser.staff")]))();#O=(()=>void dt7948.i(this,"isStaffUser"))();static #R=(()=>dt7948.g(this.prototype,"whisperer",[(0,r.reads)("currentUser.whisperer")]))();#U=(()=>void dt7948.i(this,"whisperer"))();static #B=(()=>dt7948.g(this.prototype,"canUnlistTopic",[(0,r.and)("model.creatingTopic","isStaffUser")]))();#Y=(()=>void dt7948.i(this,"canUnlistTopic"))();static #H=(()=>dt7948.g(this.prototype,"isWhispering",[(0,r.or)("replyingToWhisper","model.whisper")]))();#q=(()=>void dt7948.i(this,"isWhispering"))();get topicController(){return(0,A.getOwnerWithFallback)(this).lookup("controller:topic")}get isPreviewVisible(){return this.showPreview&&this.allowPreview}previewVisibilityChanged(){this.appEvents.trigger("composer:preview-toggled",this.isPreviewVisible)}static #z=(()=>dt7948.n(this.prototype,"previewVisibilityChanged",[(0,u.observes)("showPreview","allowPreview")]))();get isOpen(){return this.model?.composeState===O.default.OPEN}get topicDraftKey(){return O.NEW_TOPIC_KEY+"_"+new Date().getTime()}get privateMessageDraftKey(){return O.NEW_PRIVATE_MESSAGE_KEY+"_"+new Date().getTime()}get disableSubmit(){return this.model?.loading||this.isUploading||this.isProcessingUpload||this._disableSubmit}static #$=(()=>dt7948.n(this.prototype,"disableSubmit",[(0,n.computed)("model.loading","isUploading","isProcessingUpload","_disableSubmit")]))();set disableSubmit(e){this.set("_disableSubmit",e)}get formTemplateIds(){return!this.siteSettings.experimental_form_templates||this.skipFormTemplate?null:this.model?.category?.get("form_template_ids")}static #V=(()=>dt7948.n(this.prototype,"formTemplateIds",[(0,n.computed)("model.category","skipFormTemplate")]))();get hasFormTemplate(){return this.formTemplateIds?.length>0&&!this.get("model.replyingToTopic")&&!this.get("model.editingPost")}get replyingToUserId(){if(this.get("model.editingPost")){let e=this.get("model.post.reply_to_user");if(e)return e.id}let e=this.get("model.post.user");return e?e.id:this.get("model.topic.user_id")}get formTemplateInitialValues(){return this._formTemplateInitialValues}set formTemplateInitialValues(e){this.set("_formTemplateInitialValues",e)}onSelectFormTemplate(e){this.selectedFormTemplate=e}static #W=(()=>dt7948.n(this.prototype,"onSelectFormTemplate",[n.action]))();toggleText(e){return e?(0,Y.i18n)("composer.hide_preview"):(0,Y.i18n)("composer.show_preview")}static #K=(()=>dt7948.n(this.prototype,"toggleText",[(0,k.default)("showPreview")]))();showPreviewChanged(){this.site.desktopView&&this.keyValueStore.set({key:"composer.showPreview",value:this.showPreview})}static #G=(()=>dt7948.n(this.prototype,"showPreviewChanged",[(0,u.observes)("showPreview")]))();focusTarget(e,t,i,s){return(i=i||"",t&&0===i.length||i===this.currentUser.username)?"usernames":e?"reply":s===O.default.FULLSCREEN?"editor":"title"}static #J=(()=>dt7948.n(this.prototype,"focusTarget",[(0,k.default)("model.replyingToTopic","model.creatingPrivateMessage","model.targetRecipients","model.composeState")]))();get showToolbar(){let e=(0,A.getOwnerWithFallback)(this).lookup("service:key-value-store").get("toolbar-enabled");return void 0===this._toolbarEnabled&&void 0===e&&(this._toolbarEnabled=window.innerWidth>370&&!this.capabilities.isAndroid),this._toolbarEnabled||"true"===e}static #Q=(()=>dt7948.n(this.prototype,"showToolbar",[n.computed]))();set showToolbar(e){let t=(0,A.getOwnerWithFallback)(this).lookup("service:key-value-store");this._toolbarEnabled=e,t.set({key:"toolbar-enabled",value:e?"true":"false"})}canEditTags(e,t){let i=t||this.get("model.topic.isPrivateMessage");return e&&this.site.can_tag_topics&&(!i||this.site.can_tag_pms)}static #X=(()=>dt7948.n(this.prototype,"canEditTags",[(0,k.default)("model.canEditTitle","model.creatingPrivateMessage")]))();disableCategoryChooser(e,t){return e&&!t}static #Z=(()=>dt7948.n(this.prototype,"disableCategoryChooser",[(0,k.default)("model.editingPost","model.topic.details.can_edit")]))();disableTagsChooser(e,t){return e&&!t}static #ee=(()=>dt7948.n(this.prototype,"disableTagsChooser",[(0,k.default)("model.editingPost","model.topic.canEditTags")]))();showWhisperToggle(e,t){return e&&!t}static #et=(()=>dt7948.n(this.prototype,"showWhisperToggle",[(0,k.default)("canWhisper","replyingToWhisper")]))();replyingToWhisper(e){return e&&e.post_type===this.site.post_types.whisper}static #ei=(()=>dt7948.n(this.prototype,"replyingToWhisper",[(0,k.default)("model.post")]))();saveIcon(e,t,i){return t?"far-eye-slash":i&&e===O.default.REPLY?"envelope":O.SAVE_ICONS[e]}static #es=(()=>dt7948.n(this.prototype,"saveIcon",[(0,k.default)("model.action","isWhispering","model.privateMessage")]))();saveLabel(e,t,i,s){let n=this.model.customizationFor("saveLabel");return n?n:i?"composer.overwrite_edit":t?"composer.create_whisper":s&&e===O.default.REPLY?"composer.create_pm":O.SAVE_LABELS[e]}static #en=(()=>dt7948.n(this.prototype,"saveLabel",[(0,k.default)("model.action","isWhispering","model.editConflict","model.privateMessage","model.tags","model.category")]))();canWhisper(e,t){return e&&t===O.default.REPLY}static #er=(()=>dt7948.n(this.prototype,"canWhisper",[(0,k.default)("whisperer","model.action")]))();_setupPopupMenuOption(e){if("function"==typeof e&&(e=e(this)),void 0===e)return null;let t=typeof e.condition;return"undefined"===t?e.condition=!0:"boolean"===t||("function"===t?e.condition=e.condition(this):e.condition=this.get(e.condition)),e}disableTextarea(e,t){return e&&0===t}static #ea=(()=>dt7948.n(this.prototype,"disableTextarea",[(0,k.default)("model.requiredCategoryMissing","model.replyLength")]))();popupMenuOptions(e){if("open"===e||"fullscreen"===e){let e=[];return e.push(this._setupPopupMenuOption({name:"toggle-invisible",action:"toggleInvisible",icon:"far-eye-slash",label:"composer.toggle_unlisted",condition:"canUnlistTopic"})),this.capabilities.touch&&(e.push(this._setupPopupMenuOption({name:"format-code",action:"applyFormatCode",icon:"code",label:"composer.code_title"})),e.push(this._setupPopupMenuOption({name:"apply-unordered-list",action:"applyUnorderedList",icon:"list-ul",label:"composer.ulist_title"})),e.push(this._setupPopupMenuOption({name:"apply-ordered-list",action:"applyOrderedList",icon:"list-ol",label:"composer.olist_title"}))),e.push(this._setupPopupMenuOption({name:"toggle-whisper",action:"toggleWhisper",icon:"far-eye-slash",label:"composer.toggle_whisper",condition:"showWhisperToggle"})),e.push(this._setupPopupMenuOption({name:"toggle-spreadsheet",action:"toggleSpreadsheet",icon:"table",label:"composer.insert_table"})),e.concat(b.customPopupMenuOptions.map(e=>this._setupPopupMenuOption({...e})).filter(e=>e))}}static #eo=(()=>dt7948.n(this.prototype,"popupMenuOptions",[(0,k.default)("model.composeState","model.creatingTopic","model.post")]))();showWarning(e,t,i){if(!this.get("currentUser.staff")||i)return!1;let s=this.get("model.hasTargetGroups");return!(0,l.isEmpty)(t)&&1===t.split(",").length&&!s&&e}static #el=(()=>dt7948.n(this.prototype,"showWarning",[(0,k.default)("model.creatingPrivateMessage","model.targetRecipients","model.warningsDisabled")]))();draftTitle(e){return(0,L.emojiUnescape)((0,N.escapeExpression)(e))}static #eu=(()=>dt7948.n(this.prototype,"draftTitle",[(0,k.default)("model.topic.title")]))();allowUpload(){return(0,F.authorizesOneOrMoreExtensions)(this.currentUser.staff,this.siteSettings)}static #ed=(()=>dt7948.n(this.prototype,"allowUpload",[k.default]))();uploadIcon(){return(0,F.uploadIcon)(this.currentUser.staff,this.siteSettings)}static #ec=(()=>dt7948.n(this.prototype,"uploadIcon",[(0,k.default)()]))();ariaLabel(e,t,i,s){switch(e){case"createSharedDraft":return(0,Y.i18n)("composer.create_shared_draft");case"editSharedDraft":return(0,Y.i18n)("composer.edit_shared_draft");case"createTopic":return(0,Y.i18n)("composer.composer_actions.create_topic.label");case"privateMessage":return(0,Y.i18n)("user.new_private_message");case"edit":return(0,Y.i18n)("composer.composer_actions.edit");case"reply":if(t)return`${(0,Y.i18n)("composer.create_whisper")} ${this.site.get("whispers_allowed_groups_names")}`;if(i)return(0,Y.i18n)("composer.create_pm");if(s)return(0,Y.i18n)("composer.composer_actions.reply_to_post.label",{postUsername:s});return(0,Y.i18n)("composer.composer_actions.reply_to_topic.label");default:return(0,Y.i18n)("keyboard_shortcuts_help.composing.title")}}static #ep=(()=>dt7948.n(this.prototype,"ariaLabel",[(0,k.default)("model.action","isWhispering","model.privateMessage","model.post.username")]))();async focusComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this._openComposerForFocus(e),(0,a.scheduleOnce)("afterRender",this,this._focusAndInsertText,e.insertText)}static #eh=(()=>dt7948.n(this.prototype,"focusComposer",[n.action]))();async _openComposerForFocus(e){if(!this.get("model.viewOpen")&&!this.openIfDraft()){if(e.topic)return await this.open({action:O.default.REPLY,draftKey:e.topic.get("draft_key"),draftSequence:e.topic.get("draft_sequence"),topic:e.topic,...e.openOpts||{}});if(e.fallbackToNewTopic)return await this.open({action:O.CREATE_TOPIC,draftKey:this.topicDraftKey,...e.openOpts||{}})}}_focusAndInsertText(e){document.querySelector("textarea.d-editor-input")?.focus(),e&&this.model.appendText(e,null,{new_line:!0})}updateCategory(e){this.model.categoryId=e}static #em=(()=>dt7948.n(this.prototype,"updateCategory",[n.action]))();openIfDraft(e){return!!this.get("model.viewDraft")&&(e&&(e.preventDefault(),e.stopPropagation()),this.set("model.composeState",O.default.OPEN),document.documentElement.style.setProperty("--composer-height",this.get("model.composerHeight")),!0)}static #eg=(()=>dt7948.n(this.prototype,"openIfDraft",[n.action]))();removeFullScreenExitPrompt(){this.set("model.showFullScreenExitPrompt",!1)}static #ef=(()=>dt7948.n(this.prototype,"removeFullScreenExitPrompt",[n.action]))();async cancel(e){e?.preventDefault(),await this.cancelComposer()}static #e_=(()=>dt7948.n(this.prototype,"cancel",[n.action]))();cancelUpload(e){e?.preventDefault(),this.appEvents.trigger("composer:cancel-upload")}static #ey=(()=>dt7948.n(this.prototype,"cancelUpload",[n.action]))();togglePreview(e){e?.preventDefault(),this.toggleProperty("showPreview")}static #eb=(()=>dt7948.n(this.prototype,"togglePreview",[n.action]))();viewNewReply(e){(0,x.wantsNewWindow)(e)||(e.preventDefault(),I.default.routeTo(this.get("model.createdPost.url")),this.close())}static #ev=(()=>dt7948.n(this.prototype,"viewNewReply",[n.action]))();closeComposer(){this.close()}static #ew=(()=>dt7948.n(this.prototype,"closeComposer",[n.action]))();onPopupMenuAction(e,t){return(this.appEvents.trigger("composer:toolbar-popup-menu-button-clicked",e),"function"==typeof e.action)?e.action(this.toolbarEvent||t):(this.actions?.[e.action]?.bind(this)||this[e.action])()}static #ek=(()=>dt7948.n(this.prototype,"onPopupMenuAction",[n.action]))();storeToolbarState(e){this.set("toolbarEvent",e)}static #eT=(()=>dt7948.n(this.prototype,"storeToolbarState",[n.action]))();typed(){this.checkReplyLength(),this.model.typing()}static #eS=(()=>dt7948.n(this.prototype,"typed",[n.action]))();cancelled(){this.hitEsc()}static #eC=(()=>dt7948.n(this.prototype,"cancelled",[n.action]))();addLinkLookup(e){this.set("linkLookup",e)}static #eA=(()=>dt7948.n(this.prototype,"addLinkLookup",[n.action]))();afterRefresh(e){let t=this.get("model.topic"),i=this.linkLookup;if(!t||!i||1===t.posts_count)return;let s=this.get("model.post");e.querySelectorAll("a[href]").forEach(e=>{let n=e.href;if(n&&n.length){if(void 0!==e.dataset.word)return;for(let t=e;t&&!("DIV"===t.tagName&&t.classList.contains("d-editor-preview"));t=t.parentElement)if("ASIDE"===t.tagName&&t.classList.contains("quote")||"ASIDE"===t.tagName&&t.classList.contains("onebox")&&n!==t.dataset["onebox-src"])return;let[r,a]=i.check(s,n);r&&!this.isWhispering&&(a.username===this.currentUser.username?this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:(0,Y.i18n)("composer.duplicate_link_same_user",{domain:a.domain,post_url:t.urlForPostNumber(a.post_number),ago:(0,C.shortDate)(a.posted_at)})}):this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body duplicate-link-message",templateName:"education",body:(0,Y.i18n)("composer.duplicate_link",{domain:a.domain,username:a.username,post_url:t.urlForPostNumber(a.post_number),ago:(0,C.shortDate)(a.posted_at)})}))}})}static #eD=(()=>dt7948.n(this.prototype,"afterRefresh",[n.action]))();toggleWhisper(){this.toggleProperty("model.whisper")}static #eM=(()=>dt7948.n(this.prototype,"toggleWhisper",[n.action]))();toggleSpreadsheet(){this.modal.show(g.default,{model:{toolbarEvent:this.toolbarEvent,tableTokens:null}})}static #ex=(()=>dt7948.n(this.prototype,"toggleSpreadsheet",[n.action]))();toggleInvisible(){this.toggleProperty("model.unlistTopic")}static #eE=(()=>dt7948.n(this.prototype,"toggleInvisible",[n.action]))();toggleToolbar(){this.toggleProperty("showToolbar")}static #eL=(()=>dt7948.n(this.prototype,"toggleToolbar",[n.action]))();async toggle(){this.closeAutocomplete();let e=this.model;e?.viewOpenOrFullscreen?this.shrink():await this.cancelComposer()}static #eP=(()=>dt7948.n(this.prototype,"toggle",[n.action]))();fullscreenComposer(){return this.toggleFullscreen(),!1}static #eF=(()=>dt7948.n(this.prototype,"fullscreenComposer",[n.action]))();async importQuote(e){let t=this.get("topic.postStream"),i=this.get("model.post.id");if(!i&&t&&(i=t.get("stream.firstObject")),this.get("model.editingPost")){let e=this.get("model.post.reply_to_post_number");if(e){let s=t.posts.findBy("post_number",e);s&&(i=s.id)}}if(!i)return;this.set("model.loading",!0);let s=await this.store.find("post",i),n=(0,E.buildQuote)(s,s.raw,{full:!0});e.addText(n),this.set("model.loading",!1)}static #eI=(()=>dt7948.n(this.prototype,"importQuote",[n.action]))();saveAction(e,t){this.save(!1,{jump:!(t?.shiftKey&&this.get("model.replyingToTopic"))&&!this.skipJumpOnSave})}static #eN=(()=>dt7948.n(this.prototype,"saveAction",[n.action]))();displayEditReason(){this.set("showEditReason",!0)}static #ej=(()=>dt7948.n(this.prototype,"displayEditReason",[n.action]))();hitEsc(){if(1===document.querySelectorAll(".emoji-picker-modal.fadeIn").length)return void this.appEvents.trigger("emoji-picker:close");if((this.messageCount||0)>0)return void this.appEvents.trigger("composer-messages:close");let e=this.model;e?.viewOpen&&this.shrink(),e?.viewFullscreen&&(this.toggleFullscreen(),this.focusComposer())}static #eO=(()=>dt7948.n(this.prototype,"hitEsc",[n.action]))();groupsMentioned(e){let t,{name:i,userCount:s,maxMentions:n}=e;if(this.get("model.creatingPrivateMessage")||this.get("model.topic.isPrivateMessage"))return;n=parseInt(n,10),s=parseInt(s,10);let r=(0,D.default)(`/g/${i}/members`);if(s>n)t=(0,Y.i18n)("composer.group_mentioned_limit",{group:`@${i}`,count:n,group_link:r});else if(s>0){let e=s>=5?"composer.larger_group_mentioned":"composer.group_mentioned";t=(0,Y.i18n)(e,{group:`@${i}`,count:s,group_link:r})}t&&this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}static #eR=(()=>dt7948.n(this.prototype,"groupsMentioned",[n.action]))();cannotSeeMention(e){let t,{name:i,reason:s,notifiedCount:n,isGroup:r}=e;n=parseInt(n,10),t=r?(0,Y.i18n)(`composer.cannot_see_group_mention.${s}`,{group:i,count:n}):(0,Y.i18n)(`composer.cannot_see_mention.${s}`,{username:i}),this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}static #eU=(()=>dt7948.n(this.prototype,"cannotSeeMention",[n.action]))();hereMention(e){this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:(0,Y.i18n)("composer.here_mention",{here:this.siteSettings.here_mention,count:e})})}static #eB=(()=>dt7948.n(this.prototype,"hereMention",[n.action]))();applyFormatCode(){this.toolbarEvent.formatCode()}static #eY=(()=>dt7948.n(this.prototype,"applyFormatCode",[n.action]))();applyUnorderedList(){this.toolbarEvent.applyList("* ","list_item")}static #eH=(()=>dt7948.n(this.prototype,"applyUnorderedList",[n.action]))();applyOrderedList(){this.toolbarEvent.applyList(e=>e?`${parseInt(e,10)+1}. `:"1. ","list_item")}static #eq=(()=>dt7948.n(this.prototype,"applyOrderedList",[n.action]))();save(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.disableSubmit)return;if(this.model.action===O.default.ADD_TRANSLATION)return this.saveTranslation();if(this.showWarning||this.set("model.isWarning",!1),this.site.mobileView&&this.showPreview&&this.set("showPreview",!1),this.hasFormTemplate){let e=(0,S.default)(document.querySelector("#form-template-form"),this.selectedFormTemplate);if(!e)return;this.model.set("reply",e)}let i=this.model;if((0,P.applyValueTransformer)("composer-service-cannot-submit-post",i?.cantSubmitPost,{model:i})){i?.viewFullscreen&&this.toggleFullscreen(),this.set("lastValidatedAt",Date.now()),this.appEvents.trigger("composer-service:last-validated-at-updated",{model:i});return}let s=i.topic,n=s&&s.slow_mode_seconds&&s.user_last_posted_at,r="edit"!==this.get("model.action");if(n&&r)if((0,_.cannotPostAgain)(this.currentUser,s.slow_mode_seconds,s.user_last_posted_at)){let e=new moment(s.user_last_posted_at).add(s.slow_mode_seconds,"seconds"),t=moment().diff(e,"seconds"),i=(0,Y.i18n)("composer.slow_mode.error",{timeLeft:(0,_.durationTextFromSeconds)(t)});this.dialog.alert(i);return}else s.set("user_last_posted_at",new Date().toISOString());if(i.set("disableDrafts",!0),!e&&i.replyingToTopic){let e=this.topicModel,t=this.model.topic;if(!e)return void this.save(!0);if(e.id!==i.get("topic.id")&&(this.isStaffUser||!e.closed))return void this.dialog.alert({title:(0,Y.i18n)("composer.posting_not_on_topic"),bodyComponent:f.default,bodyComponentModel:{originalTopic:t,replyOnOriginal:()=>{this.save(!0),this.dialog.didConfirmWrapped()},currentTopic:e,replyOnCurrent:()=>{i.setProperties({topic:e,post:null}),this.save(!0),this.dialog.didConfirmWrapped()}},buttons:[{label:(0,Y.i18n)("composer.cancel"),class:"btn-flat btn-text btn-reply-where__cancel"}],class:"reply-where-modal"})}let a=!1,o={};document.querySelectorAll("#reply-control .d-editor-preview img:not(.avatar, .emoji)").forEach(e=>{let t=e.src;t&&t.length&&(o[t]={width:e.naturalWidth,height:e.naturalHeight})});let l=i.save({imageSizes:o,editReason:this.editReason}).then(e=>{if(this.appEvents.trigger("composer:saved"),"enqueued"===e.responseJson.action){if(this.postWasEnqueued(e.responseJson),e.responseJson.pending_post){let t=this.get("topicController.model.pending_posts");t&&t.pushObject(e.responseJson.pending_post)}return this.destroyDraft().then(()=>(this.close(),this.appEvents.trigger("post-stream:refresh"),e))}if(this.get("model.editingPost")?(this.appEvents.trigger("composer:edited-post"),this.appEvents.trigger("post-stream:refresh",{id:parseInt(e.responseJson.id,10)}),1===e.responseJson.post.post_number&&this.appEvents.trigger("header:update-topic",i.topic)):this.appEvents.trigger("post-stream:refresh"),"create_post"===e.responseJson.action&&(this.appEvents.trigger("composer:created-post"),this.appEvents.trigger("post:highlight",e.payload.post_number,t)),e.responseJson.route_to)return(this.destroyDraft(),e.responseJson.message)?this.dialog.alert({message:e.responseJson.message,didConfirm:()=>{I.default.routeTo(e.responseJson.route_to)}}):I.default.routeTo(e.responseJson.route_to);this.close(),this.currentUser.set("any_posts",!0);let s=e.target;s&&!a&&!1!==t.jump&&I.default.routeTo(s.url,{keepFilter:!0,skipIfOnScreen:!0})}).catch(e=>{i.set("disableDrafts",!1),e&&this.appEvents.one("composer:will-open",()=>{0!==q.length&&q.map(t=>t.call(this,e)).some(e=>e)||this.dialog.alert(e)})});return"topic"===this.router.currentRouteName.split(".")[0]&&i.get("topic.id")===this.get("topicModel.id")&&(a=i.get("stagedPost")),this.appEvents.trigger("post-stream:posted",a),this.messageBus.pause(),l.finally(()=>this.messageBus.resume()),l}async saveTranslation(){this.set("model.loading",!0),this.set("lastValidatedAt",Date.now()),this.appEvents.trigger("composer-service:last-validated-at-updated",{model:this.model});try{await U.default.createOrUpdate(this.model.post.id,this.selectedTranslationLocale,this.model.reply),this.model.post.firstPost&&await B.default.createOrUpdate(this.model.post.topic_id,this.selectedTranslationLocale,this.model.title),this.close(),this.toasts.success({duration:"short",data:{message:(0,Y.i18n)("post.localizations.success")}}),this.selectedTranslationLocale=null}catch(e){(0,y.popupAjaxError)(e)}finally{this.set("model.loading",!1)}}postWasEnqueued(e){this.modal.show(m.default,{model:e})}static #ez=(()=>dt7948.n(this.prototype,"postWasEnqueued",[n.action]))();checkReplyLength(){(0,l.isEmpty)("model.reply")||this.appEvents.trigger("composer:typed-reply")}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.draftKey)throw Error("composer opened without a proper draft key");let t=this.model;if(!e.ignoreIfChanged||!t||t.composeState===O.default.CLOSED){this.setProperties({showEditReason:!1,editReason:null,scopedCategoryId:null,prioritizedCategoryId:null,skipAutoSave:!0}),this.set("skipJumpOnSave",!!e.skipJumpOnSave),this.set("skipFormTemplate",!!e.skipFormTemplate),e.hijackPreview&&this.set("hijackPreview",e.hijackPreview),e.selectedTranslationLocale&&(this.selectedTranslationLocale=e.selectedTranslationLocale),e.categoryId&&!e.disableScopedCategory&&j.default.findById(e.categoryId)&&this.set("scopedCategoryId",e.categoryId),e.prioritizedCategoryId&&j.default.findById(e.prioritizedCategoryId)&&this.set("prioritizedCategoryId",e.prioritizedCategoryId),t&&e.draftKey!==t.draftKey&&t.composeState===O.default.DRAFT&&(this.close(),t=null);try{if(t?.replyDirty){if(t.composeState===O.default.OPEN&&t.draftKey===e.draftKey&&!e.action||t.composeState===O.default.DRAFT&&t.draftKey===e.draftKey&&(t.set("composeState",O.default.OPEN),document.documentElement.style.setProperty("--composer-height",this.get("model.composerHeight")),!e.action))return;await this.cancelComposer(e)&&await this.open(e);return}t&&t.action!==e.action&&t.setProperties({unlistTopic:!1,whisper:!1}),await this._setModel(t,e)}finally{this.skipAutoSave=!1,this.appEvents.trigger("composer:open",{model:this.model})}}}async openNewTopic(){let{title:e,body:t,category:i,tags:s,formTemplate:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.open({prioritizedCategoryId:i?.id,topicCategoryId:i?.id,formTemplateId:n?.id,topicTitle:e,topicBody:t,topicTags:s,action:O.CREATE_TOPIC,draftKey:this.topicDraftKey,draftSequence:0,locale:this.currentUser.effective_locale||this.siteSettings.default_locale})}static #e$=(()=>dt7948.n(this.prototype,"openNewTopic",[n.action]))();async openNewMessage(e){let{title:t,body:i,recipients:s,hasGroups:n}=e;return this.open({action:O.default.PRIVATE_MESSAGE,recipients:s,topicTitle:t,topicBody:i,archetypeId:"private_message",draftKey:this.privateMessageDraftKey,hasGroups:n})}static #eV=(()=>dt7948.n(this.prototype,"openNewMessage",[n.action]))();async _setModel(e,t){let i;if(this.set("linkLookup",null),t.draft){if(!(i=await H(this.store,t)))throw Error("draft was not found")}else{let s=e||this.store.createRecord("composer");await s.open(t),i=s}if(this.set("model",i),i.setProperties({composeState:O.default.OPEN,isWarning:!1,hasTargetGroups:t.hasGroups,warningsDisabled:t.warningsDisabled,locale:this._initialLocale(t)}),!this.model.targetRecipients&&(t.usernames?((0,T.default)("`usernames` is deprecated, use `recipients` instead.",{id:"discourse.composer.usernames"}),this.model.set("targetRecipients",t.usernames)):t.recipients&&this.model.set("targetRecipients",t.recipients)),t.topicTitle&&t.topicTitle.length<=this.siteSettings.max_topic_title_length&&this.model.set("title",t.topicTitle),t.topicTags&&this.site.can_tag_topics){let e=(0,N.escapeExpression)(t.topicTags).split(",").slice(0,this.siteSettings.max_tags_per_topic);e.forEach((e,t,i)=>i[t]=e.substring(0,this.siteSettings.max_tag_length)),this.model.set("tags",e)}t.topicBody&&this.model.set("reply",t.topicBody),t.formTemplateId&&this.model.get("category.form_template_ids")?.includes(t.formTemplateId)&&this.model.set("formTemplateId",t.formTemplateId),t.prependText&&!this.model.reply?.includes(t.prependText)&&this.model.prependText(t.prependText,{new_line:!0});let s=this._getDefaultComposerHeight();this.set("model.composerHeight",s),document.documentElement.style.setProperty("--composer-height",s)}_getDefaultComposerHeight(){return this.keyValueStore.getItem("composerHeight")?this.keyValueStore.getItem("composerHeight"):"reply"===this.model.action?"var(--reply-composer-height, 255px)":"var(--new-topic-composer-height, 400px)"}async destroyDraft(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.get("model.draftKey");if(!t)return;if(this._saveDraftPromise)return await this._saveDraftPromise,await this.destroyDraft();let i=e||this.get("model.draftSequence");await R.default.clear(t,i),this.appEvents.trigger("draft:destroyed",t)}cancelComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.skipAutoSave=!0,this._saveDraftDebounce&&(0,a.cancel)(this._saveDraftDebounce),new p.Promise(t=>{if(this.get("model.hasMetaData")||this.get("model.replyDirty")){let i=this.model.composeState===O.default.OPEN&&this.model.draftKey===e.draftKey&&[O.default.EDIT_SHARED_DRAFT,O.default.EDIT].includes(e.action),s=this.model.canSaveDraft&&!i;this.modal.show(h.default,{model:{showSaveDraftButton:s,onDestroyDraft:()=>this.destroyDraft().then(()=>{this.model.clearState(),this.close()}).finally(()=>{this.appEvents.trigger("composer:cancelled"),t(!0)}),onSaveDraft:()=>(this._saveDraft(),this.model.clearState(),this.close(),this.appEvents.trigger("composer:cancelled"),t(!0)),onKeepEditing:()=>t(!1)}})}else this.destroyDraft().then(()=>{this.model.clearState(),this.close()}).finally(()=>{this.appEvents.trigger("composer:cancelled"),t()})}).finally(()=>{this.skipAutoSave=!1})}unshrink(){this.model.set("composeState",O.default.OPEN),document.documentElement.style.setProperty("--composer-height",this.model.composerHeight)}shrink(){this.collapse()}_saveDraft(){if(this.model)if(this.model.draftSaving)this._saveDraftDebounce=(0,w.default)(this,this._saveDraft,2e3);else{if(this.hasFormTemplate){let e=document.querySelector("#form-template-form");e&&this.set("formTemplateInitialValues",(0,S.getFormTemplateObject)(e))}this._saveDraftPromise=this.model.saveDraft().finally(()=>{this._lastDraftSaved=Date.now(),this._saveDraftPromise=null})}}_shouldSaveDraft(){!this.model||this.model.loading||this.skipAutoSave||this.model.disableDrafts||(this._lastDraftSaved||(this._lastDraftSaved=Date.now()),Date.now()-this._lastDraftSaved>15e3?this._saveDraft():this._saveDraftDebounce=(0,w.default)(this,this._saveDraft,2e3))}static #eW=(()=>dt7948.n(this.prototype,"_shouldSaveDraft",[(0,u.observes)("model.reply","model.title")]))();categoryValidation(e,t){if(!this.siteSettings.allow_uncategorized_topics&&!e)return n.default.create({failed:!0,reason:(0,Y.i18n)("composer.error.category_missing"),lastShownAt:t})}static #eK=(()=>dt7948.n(this.prototype,"categoryValidation",[(0,k.default)("model.categoryId","lastValidatedAt")]))();tagValidation(e,t,i){if(this.site.can_tag_topics&&!this.currentUser.staff&&e&&e.minimumRequiredTags>(t||[]).length)return n.default.create({failed:!0,reason:(0,Y.i18n)("composer.error.tags_missing",{count:e.minimumRequiredTags}),lastShownAt:i})}static #eG=(()=>dt7948.n(this.prototype,"tagValidation",[(0,k.default)("model.category","model.tags","lastValidatedAt")]))();collapse(){this._saveDraft(),this.set("model.composeState",O.default.DRAFT),document.documentElement.style.setProperty("--composer-height","40px")}toggleFullscreen(){this._saveDraft();let e=this.model;e?.viewFullscreen?e?.set("composeState",O.default.OPEN):(e?.set("composeState",O.default.FULLSCREEN),e?.set("showFullScreenExitPrompt",!0))}showFullScreenPrompt(e,t){return e&&t&&!this.capabilities.touch}static #eJ=(()=>dt7948.n(this.prototype,"showFullScreenPrompt",[(0,k.default)("model.viewFullscreen","model.showFullScreenExitPrompt")]))();close(){let e=document.documentElement;e.classList.remove("fullscreen-composer"),e.classList.remove("composer-open"),document.activeElement?.blur(),document.documentElement.style.removeProperty("--composer-height"),this.setProperties({model:null,lastValidatedAt:null}),this.set("formTemplateInitialValues",void 0)}closeAutocomplete(){c()(".d-editor-input").autocomplete({cancel:!0})}canEdit(e){return"edit"===e&&this.currentUser.can_edit}static #eQ=(()=>dt7948.n(this.prototype,"canEdit",[(0,k.default)("model.action")]))();visible(e){return e&&"closed"!==e}static #eX=(()=>dt7948.n(this.prototype,"visible",[(0,k.default)("model.composeState")]))();clearLastValidatedAt(){this.set("lastValidatedAt",null),this.appEvents.trigger("composer-service:last-validated-at-cleared")}_initialLocale(e){return e?.locale?e.locale:e?.post?.locale&&e.action===O.default.EDIT?e.post.locale:""}},[M.disableImplicitInjections]),W=V;V.prototype.mergedProperties=["actions"]},38:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(86981);i(60569);var n=i(32045);let r=(0,i(1519).createTemplateFactory)({id:"CH1zGnSn",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.11443ff4/node_modules/@ember/legacy-built-in-components/components/checkbox.hbs",isStrictMode:!1}),a=n.default.extend({classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,checked:!1,didInsertElement(){this._super(...arguments),this.element.indeterminate=!!this.indeterminate},change(){(0,s.set)(this,"checked",this.element.checked)}});a.toString=()=>"@ember/component/checkbox";let o=(0,n.setComponentTemplate)(r,a)},98:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(7155),n=i(24813),r=i(75093),a=i(87367),o=i(14086),l=i(14051),u=i(44233);let d=dt7948.c(class extends r.default{static #e=(()=>dt7948.g(this.prototype,"connected",[s.tracked],function(){return!0}))();#eZ=(()=>void dt7948.i(this,"connected"))();constructor(){super(...arguments),window.addEventListener("offline",()=>{this.setConnectivity(!1),this.startTimerToCheckNavigator()}),window.addEventListener("online",this.pingServerAndSetConnectivity),window.addEventListener("visibilitychange",this.onFocus),navigator.onLine||this.pingServerAndSetConnectivity()}onFocus(){this.connected||"visible"!==document.visibilityState||this.pingServerAndSetConnectivity()}static #i=(()=>dt7948.n(this.prototype,"onFocus",[l.bind]))();async pingServerAndSetConnectivity(){try{let e=await (0,a.ajax)("/srv/status",{dataType:"text"});if("ok"===e)(0,n.cancel)(this._timer),this.setConnectivity(!0);else throw"disconnected"}catch{this.startTimerToCheckNavigator()}}static #n=(()=>dt7948.n(this.prototype,"pingServerAndSetConnectivity",[l.bind]))();startTimerToCheckNavigator(){(0,n.cancel)(this._timer),this._timer=(0,o.default)(this,this.checkNavigatorOnline,1e3)}static #a=(()=>dt7948.n(this.prototype,"startTimerToCheckNavigator",[l.bind]))();checkNavigatorOnline(){navigator.onLine?this.pingServerAndSetConnectivity():this.startTimerToCheckNavigator()}static #l=(()=>dt7948.n(this.prototype,"checkNavigatorOnline",[l.bind]))();setConnectivity(e){this.connected=e,document.documentElement.classList.toggle("network-disconnected",!e)}},[u.disableImplicitInjections])},153:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});let{isArray:s}=Array;function n(e){return null==e?[]:s(e)?e:[e]}},217:(e,t,i)=>{"use strict";i.r(t),i.d(t,{i:()=>r,s:()=>a});var s=i(71729);let n=new WeakSet;function r(e){return!!(0,s.e)(e)&&n.has(e)}function a(e){(0,s.e)(e)&&n.add(e)}},251:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TIME_SHORTCUT_TYPES:()=>r,defaultTimeShortcuts:()=>a,extendedDefaultTimeShortcuts:()=>o,formatTime:()=>c,hideDynamicTimeShortcuts:()=>d,specialShortcutOptions:()=>l,timeShortcuts:()=>u});var s=i(75988),n=i(70508);let r={ONE_HOUR:"one_hour",TWO_HOURS:"two_hours",LATER_TODAY:"later_today",TOMORROW:"tomorrow",THIS_WEEKEND:"this_weekend",NEXT_MONTH:"next_month",ONE_YEAR:"one_year",FOREVER:"forever",CUSTOM:"custom",RELATIVE:"relative",LAST_CUSTOM:"last_custom",NONE:"none",NOW:"now",START_OF_NEXT_BUSINESS_WEEK:"start_of_next_business_week",LATER_THIS_WEEK:"later_this_week",POST_LOCAL_DATE:"post_local_date"};function a(e){let t=u(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.nextMonth()]}function o(e){let t=u(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]}function l(){let e=u();return[e.lastCustom(),e.custom(),e.none()]}function u(e){return{oneHour:()=>({id:r.ONE_HOUR,icon:"angle-right",label:"time_shortcut.in_one_hour",time:(0,s.oneHour)(e),timeFormatKey:"dates.time"}),twoHours:()=>({id:r.TWO_HOURS,icon:"angle-right",label:"time_shortcut.in_two_hours",time:(0,s.twoHours)(e),timeFormatKey:"dates.time"}),laterToday:()=>({id:r.LATER_TODAY,icon:"angle-right",label:"time_shortcut.later_today",time:(0,s.laterToday)(e),timeFormatKey:"dates.time"}),tomorrow:()=>({id:r.TOMORROW,icon:"far-sun",label:"time_shortcut.tomorrow",time:(0,s.tomorrow)(e),timeFormatKey:"dates.time_short_day"}),twoDays:()=>({id:"two_days",icon:"angle-right",label:"time_shortcut.two_days",time:(0,s.twoDays)(e),timeFormatKey:"dates.time_short_day"}),threeDays:()=>({id:"three_days",icon:"angle-right",label:"time_shortcut.three_days",time:(0,s.inNDays)(e,3),timeFormatKey:"dates.time_short_day"}),laterThisWeek:()=>({id:r.LATER_THIS_WEEK,icon:"angles-right",label:"time_shortcut.later_this_week",time:(0,s.laterThisWeek)(e),timeFormatKey:"dates.time_short_day"}),thisWeekend:()=>({id:r.THIS_WEEKEND,icon:"bed",label:"time_shortcut.this_weekend",time:(0,s.thisWeekend)(e),timeFormatKey:"dates.time_short_day"}),monday:()=>({id:r.START_OF_NEXT_BUSINESS_WEEK,icon:"briefcase",label:(0,s.now)(e).day()===s.MOMENT_MONDAY||(0,s.now)(e).day()===s.MOMENT_SUNDAY?"time_shortcut.start_of_next_business_week_alt":"time_shortcut.start_of_next_business_week",time:(0,s.nextBusinessWeekStart)(e),timeFormatKey:"dates.long_no_year"}),nextMonth:()=>({id:r.NEXT_MONTH,icon:"far-calendar-plus",label:"time_shortcut.next_month",time:(0,s.nextMonth)(e),timeFormatKey:"dates.long_no_year"}),twoWeeks:()=>({id:"two_weeks",icon:"far-clock",label:"time_shortcut.two_weeks",time:(0,s.twoWeeks)(e),timeFormatKey:"dates.long_no_year"}),twoMonths:()=>({id:"two_months",icon:"far-calendar-plus",label:"time_shortcut.two_months",time:(0,s.twoMonths)(e),timeFormatKey:"dates.long_no_year"}),threeMonths:()=>({icon:"far-calendar-plus",id:"three_months",label:"time_shortcut.three_months",time:(0,s.threeMonths)(e),timeFormatKey:"dates.long_no_year"}),fourMonths:()=>({id:"four_months",icon:"far-calendar-plus",label:"time_shortcut.four_months",time:(0,s.fourMonths)(e),timeFormatKey:"dates.long_no_year"}),sixMonths:()=>({id:"six_months",icon:"far-calendar-plus",label:"time_shortcut.six_months",time:(0,s.sixMonths)(e),timeFormatKey:"dates.long_with_year"}),oneYear:()=>({id:r.ONE_YEAR,icon:"far-calendar-plus",label:"time_shortcut.one_year",time:(0,s.oneYear)(e),timeFormatKey:"dates.long_with_year"}),forever:()=>({id:r.FOREVER,icon:"gavel",label:"time_shortcut.forever",time:(0,s.thousandYears)(e),timeFormatKey:"dates.long_with_year"}),custom:()=>({icon:"calendar-days",id:r.CUSTOM,label:"time_shortcut.custom",time:null,isCustomTimeShortcut:!0}),lastCustom:()=>({icon:"arrow-rotate-left",id:r.LAST_CUSTOM,label:"time_shortcut.last_custom",time:null,hidden:!0}),none:()=>({icon:"ban",id:r.NONE,label:"time_shortcut.none",time:null}),now:()=>({id:r.NOW,icon:"wand-magic",label:"time_shortcut.now",time:(0,s.now)(e)})}}function d(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=new Set,a=(0,s.now)(t);return a.hour()>=s.LATER_TODAY_CUTOFF_HOUR&&n.add(r.LATER_TODAY),(a.day===s.MOMENT_SUNDAY||a.day()>=s.MOMENT_THURSDAY)&&n.add(r.LATER_THIS_WEEK),i.suggest_weekends_in_date_pickers&&a.day()!==s.MOMENT_FRIDAY&&a.day()!==s.MOMENT_SATURDAY&&a.day()!==s.MOMENT_SUNDAY||n.add(r.THIS_WEEKEND),e.filter(e=>!n.has(e.id))}function c(e){return e.time&&e.timeFormatKey?e.time.format((0,n.i18n)(e.timeFormatKey)):null}},278:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(24973),n=i(45231);let r=s.default.extend(n.default)},386:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(36491),n=i(27797),r=i(70508);class a extends n.default{templateName="user/badges";model(){return s.default.findByUsername(this.modelFor("user").get("username_lower"),{grouped:!0})}setupController(){super.setupController(...arguments),this.controllerFor("user-activity").userActionType=-1}titleToken(){return(0,r.i18n)("badges.title")}}},394:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(27797);class n extends s.default{model(e){return this.store.find("tagGroup",e.id)}afterModel(e){e.set("savingStatus",null)}}},454:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(75093),n=i(60293),r=i(87367),a=i(11837),o=i(22011),l=i(95326),u=i(70508);class d extends n.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"site",[s.service]))();#_=(()=>void dt7948.i(this,"site"))();get showAllHref(){return(0,a.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:l.default.create(e),currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))))}}},567:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(11837),n=i(99904),r=i(70508);let a=class extends n.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"}}},642:(e,t,i)=>{"use strict";i.r(t),i.d(t,{buildPermissionDescription:()=>a,default:()=>o});var s=i(86981),n=i(14051),r=i(70508);function a(e){return(0,r.i18n)("permission_types."+o.DESCRIPTION_KEYS[e])}class o extends s.default{static FULL=1;static CREATE_POST=2;static READONLY=3;static DESCRIPTION_KEYS={1:"full",2:"create_post",3:"readonly"};description(e){return a(e)}static #e=(()=>dt7948.n(this.prototype,"description",[(0,n.default)("id")]))()}},668:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(85168),r=i(42573),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"DlZwJIqF",block:'[[[1,"\\n "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[32,0],null,[["@model","@disableSave"],[[30,1,["model"]],[30,1,["saving"]]]],null],[1,"\\n "],[8,[32,1],null,[["@model","@saving"],[[30,1,["model"]],[30,1,["saving"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage/profile.js",scope:()=>[r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},714:(e,t,i)=>{"use strict";i.r(t),i.d(t,{computedI18n:()=>h,endWith:()=>_,fmt:()=>g,htmlSafe:()=>m,i18n:()=>h,propertyEqual:()=>u,propertyGreaterThan:()=>c,propertyLessThan:()=>p,propertyNotEqual:()=>d,setting:()=>y,url:()=>f});var s=i(86981),n=i(9032),r=i(11837),a=i(32386),o=i(70508);function l(e,t){let i=t;if(!Array.isArray(i)||arguments.length>2){i=Array(arguments.length-1);for(let e=1,t=arguments.length;ethis.get(t)})}function p(e,t){return(0,s.computed)(e,t,function(){return this.get(e)this.get(e))))})}function m(){for(var e=arguments.length,t=Array(e),i=0;ithis.get(e)))})}function f(){for(var e=arguments.length,t=Array(e),i=0;ithis.get(e))))})}function _(){let e=Array.prototype.slice.call(arguments,0),t=e.pop();return(0,s.computed)(...e,function(){return e.map(e=>this.get(e)).every(e=>{let i=e.length-t.length,s=e.lastIndexOf(t);return -1!==s&&s===i})})}function y(e){return(0,s.computed)(function(){return this.siteSettings[e]})}},765:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(7155);class n{static #e=(()=>dt7948.g(this.prototype,"postId",[s.tracked],function(){return null}))();#e1=(()=>void dt7948.i(this,"postId"))();static #i=(()=>dt7948.g(this.prototype,"buffer",[s.tracked],function(){return""}))();#e0=(()=>void dt7948.i(this,"buffer"))();static #n=(()=>dt7948.g(this.prototype,"opts",[s.tracked],function(){return null}))();#e3=(()=>void dt7948.i(this,"opts"))();selected(e,t,i){this.postId=e,this.buffer=t,this.opts=i}clear(){this.buffer="",this.postId=null,this.opts=null}}},780:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(85024),r=i(70508),a=i(33499),o=i(87542);let l=dt7948.c(class extends a.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",[s.computed]))();onChange(e){switch(e){case"edit":this.renamePasskey();break;case"delete":this.deletePasskey()}}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,o.selectKitOptions)({icon:"wrench",showFullTitle:!1}),(0,n.classNames)("passkey-options-dropdown")])},882:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(70508),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.i18n],isStrictMode:!0}),(0,a.default)(void 0,"generated-invite-link:GeneratedInviteLink"))},916:(e,t,i)=>{"use strict";i.r(t),i.d(t,{downloadCalendar:()=>o,downloadGoogle:()=>u,downloadIcs:()=>l,formatDates:()=>d,generateIcsData:()=>c});var s=i(36833),n=i(71455),r=i(11837),a=i(25217);function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a.default.current(),o=d(t);switch(e=e.trim(),r?.user_option.default_calendar){case"ics":l(e,o,i);break;case"google":u(e,o,i);break;default:!function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,n.getOwnerWithFallback)(this).lookup("service:modal").show(s.default,{model:{calendar:{title:e,dates:t,recurrenceRule:i.recurrenceRule,location:i.location,details:i.details}}})}(e,o,i)}}function l(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=new File([c(e,t,i)],{type:"text/plain"}),n=document.createElement("a");document.body.appendChild(n),n.style="display: none",n.href=window.URL.createObjectURL(s),n.download=`${e.toLowerCase().replace(/[^\w]/g,"-")}.ics`,n.click(),setTimeout(()=>window.URL.revokeObjectURL(s),2e4)}function u(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.forEach(t=>{let s=new URL("https://www.google.com/calendar/event");s.searchParams.append("action","TEMPLATE"),s.searchParams.append("text",e),s.searchParams.append("dates",`${p(t.startsAt)}/${p(t.endsAt)}`),i.recurrenceRule&&s.searchParams.append("recur",`RRULE:${i.recurrenceRule}`),i.location&&s.searchParams.append("location",i.location),i.details&&s.searchParams.append("details",i.details),window.open((0,r.default)(s.href).trim(),"_blank","noopener","noreferrer")})}function d(e){return e.map(e=>({startsAt:e.startsAt,endsAt:e.endsAt?e.endsAt:moment.utc(e.startsAt).add(1,"hours").format()}))}function c(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=`BEGIN:VCALENDAR VERSION:2.0 PRODID:-//Discourse//EN `;return t.forEach(t=>{let n=moment(t.startsAt),r=moment(t.endsAt);s=s.concat(`BEGIN:VEVENT UID:${n.utc().format("x")}_${r.format("x")} DTSTAMP:${moment().utc().format("YMMDDTHHmmss")}Z DTSTART:${n.utc().format("YMMDDTHHmmss")}Z DTEND:${r.utc().format("YMMDDTHHmmss")}Z `+(i.recurrenceRule?`RRULE:${i.recurrenceRule} `:"")+(i.location?`LOCATION:${i.location} `:"")+(i.details?`DESCRIPTION:${i.details} `:"")+`SUMMARY:${e} `+`END:VEVENT `)}),s=s.concat("END:VCALENDAR")}function p(e){return moment(e).toISOString().replace(/-|:|\.\d\d\d/g,"")}},944:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addSearchSuggestion:()=>f,default:()=>g});var s=i(93317),n=i(73326),r=i(75093),a=i(57079),o=i(53329),l=i(21962),u=i(10458),d=i(70508),c=i(32045),p=i(1519);let h=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],m={"+":"tagIntersection","#":"categoryOrTag","@":"user"};class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #a=(()=>dt7948.g(this.prototype,"search",[r.service]))();#e2=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.currentUser&&(f("in:likes"),f("in:bookmarks"),f("in:mine"),f("in:messages"),f("in:seen"),f("in:tracking"),f("in:unseen"),f("in:watching")),this.siteSettings.tagging_enabled&&(f("in:tagged"),f("in:untagged"))}get suggestionShortcuts(){let e=this.search.activeGlobalSearchTerm.split(" ").slice(-1);return h.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 m[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 i=t.model.parentCategory?`#${t.model.parentCategory.slug}:${t.model.slug}`:`#${t.model.slug}`;e[t.model.id]=`${this.prefix}${i}`}}),e}get user(){return this.args.results[0]}static #l=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"sWEWKNjR",block:'[[[1,"\\n "],[10,"ul"],[14,0,"search-menu-assistant"],[12],[1,"\\n"],[41,[28,[32,0],[[30,0,["suggestionType"]],"tagIntersection"],null],[[[1," "],[8,[32,1],null,[["@name"],["search-menu-results-assistant-tag-intersection-top"]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1," "],[8,[32,2],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,[32,0],[[30,0,["suggestionType"]],"categoryOrTag"],null],[[[1," "],[8,[32,1],null,[["@name"],["search-menu-results-assistant-category-or-tag-top"]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[41,[30,7,["model"]],[[[1," "],[8,[32,2],null,[["@category","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["model"]],[28,[32,3],[[30,0,["fullSlugForCategoryMap"]],[30,7,["model","id"]]],null],[30,4],true,[30,5],[30,6],"category"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,2],null,[["@tag","@slug","@withInLabel","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,7,["name"]],[28,[32,4],[[30,0,["prefix"]],"#",[30,7,["name"]]],null],[30,4],true,[30,5],[30,6],"tag"]],null],[1,"\\n"]],[]]]],[7]],null]],[]],[[[41,[28,[32,0],[[30,0,["suggestionType"]],"user"],null],[[[1," "],[8,[32,1],null,[["@name"],["search-menu-results-assistant-user-top"]],null],[1,"\\n"],[41,[30,0,["userMatchesInTopic"]],[[[1," "],[8,[32,2],null,[["@extraHint","@user","@slug","@suffix","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[true,[30,0,["user"]],[28,[32,4],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[32,5],["search.in_topics_posts"],null],true,[30,5],[30,6],"user"]],null],[1,"\\n\\n "],[8,[32,2],null,[["@user","@slug","@suffix","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,0,["user"]],[28,[32,4],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[32,5],["search.in_this_topic"],null],[30,5],[30,6],"user"]],null],[1,"\\n"]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1," "],[8,[32,2],null,[["@user","@slug","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[30,8],[28,[32,4],[[30,0,["prefix"]],"@",[30,8,["username"]]],null],true,[30,5],[30,6],"user"]],null],[1,"\\n"]],[8]],null]],[]]]],[]],[[[1," "],[8,[32,1],null,[["@name","@outletArgs"],["search-menu-results-assistant-shortcut-top",[28,[32,6],null,[["suggestionShortcuts"],[[30,0,["suggestionShortcuts"]]]]]]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["suggestionShortcuts"]]],null]],null],null,[[[1," "],[8,[32,2],null,[["@slug","@label","@searchAllTopics","@searchTermChanged","@suggestionKeyword","@typeClass"],[[28,[32,4],[[30,0,["prefix"]],[30,9]],null],[30,9],true,[30,5],[30,6],"shortcut"]],null],[1,"\\n"]],[9]],null],[1," "]],[]]]],[]]]],[]]],[1," "],[8,[32,1],null,[["@name"],["search-menu-assistant-bottom"]],null],[1,"\\n "],[13],[1,"\\n "]],["@results","result","@slug","@withInLabel","@searchTermChanged","@suggestionKeyword","result","result","item"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/assistant.js",scope:()=>[a.eq,o.default,l.default,n.get,n.concat,d.i18n,u.default],isStrictMode:!0}),this))()}function f(e){h.includes(e)||h.push(e)}},952:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(87971);class n{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){let{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){let e=new s.A([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}},992:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(38069),r=i(70508),a=i(32045),o=i(1519);class l extends s.default{get computedLabel(){return this.args.label?(0,r.i18n)(this.args.label):this.args.translatedLabel}static #e=(()=>(0,a.setComponentTemplate)((0,o.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:()=>[n.default],isStrictMode:!0}),this))()}},1093:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(32045),n=i(64081),r=i(26724),a=i(63272),o=i(1519);class l extends s.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,o.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,n.getOwner)(this).lookup(`template:${e}`);t&&((0,a.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}`)}}},1158:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(57165),n=i(75093);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[n.service]))();#e8=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.body,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},1176:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(85024),r=i(64525),a=i.n(r),o=i(29931),l=i(87542);let u=dt7948.c(class extends o.default{init(){super.init(...arguments),this.triggerSearch()}didUpdateAttrs(){super.didUpdateAttrs(...arguments),this.set("templatesLoaded",!1),this.triggerSearch()}get content(){return this.templates}static #e=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("templates")]))();search(e){return this.get("templatesLoaded")?super.search(e):this._fetchTemplates()}async _fetchTemplates(){if(this.get("loadingTemplates"))return;this.set("templatesLoaded",!1),this.set("loadingTemplates",!0);let e=await a().findAll(),t=this._sortTemplatesByName(e);return this.filteredIds&&(t=t.filter(e=>this.filteredIds.includes(e.id))),0===t.length&&this.set("selectKit.options.disabled",!0),this.setProperties({templates:t,loadingTemplates:!1,templatesLoaded:!0}),this.templates}_sortTemplatesByName(e){return e.sort((e,t)=>e.name.localeCompare(t.name))}},[(0,l.pluginApiIdentifiers)("form-template-chooser"),(0,l.selectKitOptions)({none:"form_template_chooser.select_template"}),(0,n.classNames)("form-template-chooser")])},1202:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(91035);let n={initialize(){this._interval=setInterval(function(){(0,s.updateRelativeAge)(document.querySelectorAll(".relative-date"))},6e4)},teardown(){this._interval&&(clearInterval(this._interval),this._interval=null)}}},1262:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(38069),n=i(84463),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"bDYCPaMz",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,0],[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:()=>[n.default,s.default],isStrictMode:!0}),(0,o.default)(void 0,"home-logo-contents:HomeLogoContents"))},1392:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(32045),n=i(5968);let r={after:["populate-template-map"],initialize(e){for(let t of n.default.templates.keys()){if(!t.startsWith("components/"))continue;let i=t.slice(11);e.resolveRegistration(`component:${i}`)||e.register(`component:${i}`,s.default)}}}},1519:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createTemplateFactory:()=>s.templateFactory});var s=i(34902)},1611:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[i][0]:n[i][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},1636:(e,t,i)=>{"use strict";var s=i(15534),n=Object.prototype.toString;e.exports=new s("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){var t,i,s,r,a;if(null===e)return!0;for(t=0,a=Array(e.length),i=e.length;t{"use strict";i.r(t),i.d(t,{default:()=>g,disableNameSuppression:()=>m});var s=i(11651),n=i(11837),r=i(21530),a=i(80484),o=i(77982),l=i(35697),u=i(82925),d=i(88627),c=i(70508),p=i(1519);let h=function(e){return e.toLowerCase().replace(/[\s\._-]/g,"")};function m(){h=e=>e}(0,d.createWidget)("poster-name-title",{tagName:"span.user-title",buildClasses(e){let t=[];return t.push(e.title),e.titleIsGroup&&t.push(e.primaryGroupName),t=t.map(e=>`user-title--${e.replace(/\s+/g,"-").toLowerCase()}`)},html(e){let t=e.title;if(e.primaryGroupName&&e.titleIsGroup){let i=(0,n.default)(`/g/${e.primaryGroupName}`);t=(0,s.h)("a.user-group",{className:e.extraClasses,attributes:{href:i,"data-group-card":e.primaryGroupName}},e.title)}return t}});let g=(0,d.createWidget)("poster-name",{tagName:"div.names.trigger-user-card",settings:{showNameAndGroup:!0,showGlyph:!0},didRenderWidget(){this.attrs.user&&(this.attrs.user.statusManager.trackStatus(),this.attrs.user.on("status-changed",this,"scheduleRerender"))},willRerenderWidget(){this.attrs.user&&(this.attrs.user.off("status-changed",this,"scheduleRerender"),this.attrs.user.statusManager.stopTrackingStatus())},posterGlyph(e){if(e.moderator||e.groupModerator)return(0,r.iconNode)("shield-halved",{title:(0,c.i18n)("user.moderator_tooltip")})},userLink(e,t){return(0,s.h)("a",{attributes:{href:e.usernameUrl,"data-user-card":e.username,class:`${this.siteSettings.hide_user_profiles_from_public&&!this.currentUser?"non-clickable":""}`}},(0,l.formatUsername)(t))},additionalClasses:e=>(0,o.applyValueTransformer)("poster-name-class",[],{user:e.user}),html(e){let t=e.username,i=e.name,n=this.siteSettings.display_name_on_posts&&(0,a.prioritizeNameInUx)(i),r=n?["first","full-name"]:["first","username"];e.staff&&r.push("staff"),e.admin&&r.push("admin"),e.moderator&&r.push("moderator"),e.groupModerator&&r.push("category-moderator"),e.new_user&&r.push("new-user"),r.push(...this.additionalClasses(e));let o=e.primary_group_name;o&&o.length&&r.push(`group--${o}`);let l=[this.userLink(e,n?i:t)];if(this.settings.showGlyph){let t=this.posterGlyph(e);t&&l.push(t)}let m=(0,d.applyDecorators)(this,"after-name",e,this.state)||[];l=l.concat(m);let g=[(0,s.h)("span",{className:r.join(" ")},l)];if(this.settings.showNameAndGroup&&(i&&this.siteSettings.display_name_on_posts&&h(i)!==h(t)&&g.push((0,s.h)("span.second."+(n?"username":"full-name"),[this.userLink(e,n?t:i)].concat(m))),this.buildTitleObject(e,g),this.siteSettings.enable_user_status&&this.addUserStatus(g,e)),e.badgesGranted?.length){let t=[];e.badgesGranted.forEach(i=>{i.description=(0,c.i18n)("post.badge_granted_tooltip",{username:e.username,badge_name:i.name});let s=new u.default(this,`span.user-badge-button-${i.slug}`,(0,p.createTemplateFactory)({id:"73WDY9/V",block:'[[[8,[39,0],null,[["@badge","@user","@showName"],[[30,1,["badge"]],[30,1,["user"]],false]],null]],["@data"],false,["user-badge"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/poster-name.js",isStrictMode:!1}),{badge:i,user:e.user});t.push(s)}),g.push((0,s.h)("span.user-badge-buttons",t))}return g},buildTitleObject(e,t){let i=e.primary_group_name,s=e.user_title,n=e.title_is_group;s&&s.length&&t.push(this.attach("poster-name-title",{title:s,primaryGroupName:i,titleIsGroup:n}))},addUserStatus(e,t){t.user&&t.user.status&&e.push(this.attach("post-user-status",t.user.status))}})},1703:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(8003),n=i(49697);let r={after:"inject-objects",initialize(e){e.lookup("service:site-settings").viewport_based_mobile_mode||(s.default.init(),(0,n.setResolverOption)("mobileView",s.default.mobileView))}}},1714:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(85024),n=i(73935),r=i.n(n),a=i(18649),o=i(32045),l=i(1519);let u=dt7948.c(class extends a.default{static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"moCutui4",block:'[[[1,"\\n "],[1,[28,[32,0],[[30,0,["rowValue"]]],[["count","noHref"],[[30,0,["item","count"]],true]]]],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/tag-chooser-row.js",scope:()=>[r()],isStrictMode:!0}),this))()},[(0,s.classNames)("tag-chooser-row")])},1751:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(93317),n=i(75093),r=i(57079),a=i(53329),o=i(9646),l=i(21962),u=i(21863),d=i(4158),c=i(10458),p=i(70508),h=i(944),m=i(32045),g=i(1519);let f={topic:l.default,private_messages:l.default,category:h.default,tag:h.default,tagIntersection:h.default,user:l.default},_=["topic","category","tag","tagIntersection","user"];class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[n.service]))();#e2=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();constructor(){super(...arguments),(this.search.activeGlobalSearchTerm||this.search.searchContext)&&this.search.searchContext&&(this.contextTypeComponent=f[this.search.searchContext.type],this.setAttributesForSearchContextType(this.search.searchContext.type))}get termMatchesContextTypeKeyword(){return this.search.activeGlobalSearchTerm?.match(o.MODIFIER_REGEXP)}get displayInitialOptions(){return!this.search.activeGlobalSearchTerm&&_.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,p.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,t=this.search.searchContext;if(t.additionalTags){let i=[t.tagId,...t.additionalTags];e=`tags:${i.join("+")}`}else e=`#${t.tagId}`;let i={tagName:t.tagId,additionalTags:t.additionalTags};if(t.category){let s=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`;i.categoryName=s,i.category=t.category,e+=` ${s}`}this.slug=e,this.contextTypeKeyword="+",this.initialResults=[i],this.withInLabel=!0}userContextType(){this.contextTypeKeyword="@",this.slug=`@${this.search.searchContext.user.username}`,this.suffix=(0,p.i18n)("search.in_posts_by",{username:this.search.searchContext.user.username})}static #a=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"3n/NECvG",block:'[[[1,"\\n "],[10,"ul"],[14,0,"search-menu-initial-options"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["search-menu-initial-options",[28,[32,1],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,[32,2],null,[["@slug","@extraHint","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["slug"]],true,[30,1],[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],[[[41,[28,[32,3],[[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","searchContext"]]],null],[[[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[32,2],null,[["@suffix","@closeSearchMenu","@searchAllTopics","@extraHint","@searchTermChanged","@suggestionKeyword"],[[28,[32,4],["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,[32,5],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]],[30,0,["displayInitialOptions"]]],null],[[[1," "],[8,[32,6],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],[[[1," "],[8,[32,7],null,[["@searchInputId","@searchTermChanged"],[[30,3],[30,2]]],null],[1,"\\n"],[41,[28,[32,5],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]]],null],[[[1," "],[8,[32,6],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@closeSearchMenu","@searchTermChanged","@searchInputId"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/initial-options.js",scope:()=>[a.default,c.default,l.default,r.or,p.i18n,r.and,d.default,u.default],isStrictMode:!0}),this))()}},1830:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(7155),n=i(73326),r=i(96791),a=i(86981),o=i(70568),l=i(24813),u=i(38161),d=i(57882),c=i(992),p=i(86490),h=i(14051),m=i(70508),g=i(1176),f=i(32045),_=i(1519);class y extends(0,p.buildCategoryPanel)("topic-template"){static #e=(()=>dt7948.g(this.prototype,"_showFormTemplateOverride",[s.tracked]))();#e4=(()=>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 #i=(()=>dt7948.n(this.prototype,"templateTypeToggleLabel",[(0,h.default)("showFormTemplate")]))();toggleTemplateType(){this.toggleProperty("showFormTemplate"),this.showFormTemplate||this.set("category.form_template_ids",[])}static #n=(()=>dt7948.n(this.prototype,"toggleTemplateType",[a.action]))();_activeTabChanged(){this.activeTab&&!this.showFormTemplate&&(0,l.schedule)("afterRender",()=>this.element.querySelector(".d-editor-input").focus())}static #a=(()=>dt7948.n(this.prototype,"_activeTabChanged",[(0,u.observes)("activeTab","showFormTemplate")]))();static #l=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"pJhj+Ncp",block:'[[[1,"\\n"],[41,[30,0,["siteSettings","experimental_form_templates"]],[[[1," "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[8,[32,0],[[24,0,"toggle-template-type"],[4,[32,1],["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,[32,2],[[24,0,"select-category-template"]],[["@value","@onChange"],[[30,0,["category","form_template_ids"]],[28,[32,3],[[28,[31,1],[[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,[32,4],null,[["@route"],["adminCustomizeFormTemplates"]],[["default"],[[[[1,"\\n "],[1,[28,[32,5],["admin.form_templates.edit_category.select_template_help"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,6],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[]],[[[1," "],[8,[32,6],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]],[1," "]],[],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/edit-category-topic-template.js",scope:()=>[c.default,r.on,g.default,n.fn,o.LinkTo,m.i18n,d.default],isStrictMode:!0}),this))()}},1832:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(16006);class n extends s.default{pathFor(){return"/review/settings"}}},1908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(93317),n=i(7155),r=i(64081),a=i(75093),o=i(9032),l=i(60551),u=i(28638),d=i(95033),c=i(14051),p=i(97908),h=i(39668),m=i(42354),g=i(61386),f=i(49044),_=i(36e3),y=i(84345),b=i(70508),w=i(32045),k=i(1519);let T=document.implementation.createHTMLDocument("detached"),S=[y.default,f.default,m.default,_.default,g.default];class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"highlighted",[n.tracked],function(){return!1}))();#e7=(()=>void dt7948.i(this,"highlighted"))();#e9=[];#e5=(()=>this.args.decoratorState||new l.TrackedMap)();willDestroy(){super.willDestroy(...arguments),this.#e6()}get isStreamElement(){return this.args.streamElement??!0}decorateBeforeAdopt(e,t){this.#e6(),[...S,...this.extraDecorators].forEach(i=>{try{let s;this.#e5.has(i)?s=this.#e5.get(i):(s=new l.TrackedMap,this.#e5.set(i,s));let n=(0,r.getOwner)(this),a=i(e,{data:{post:this.args.post,cooked:this.cooked,highlightTerm:this.highlightTerm,isIgnored:this.isIgnored,ignoredUsers:this.ignoredUsers},decoratorState:s,cooked:this.cooked,createDetachedElement:this.#te,currentUser:this.currentUser,extraDecorators:this.extraDecorators,helper:t,highlightTerm:this.highlightTerm,ignoredUsers:this.ignoredUsers,isIgnored:this.isIgnored,owner:n,post:this.args.post,renderGlimmer:t.renderGlimmer,renderNestedPostCookedHtml:(e,i,r,a)=>{let o={...a,post:i,decoratorState:s,streamElement:!1,highlightTerm:this.highlightTerm,extraDecorators:[...this.extraDecorators,...(0,h.makeArray)(r)]};t.renderGlimmer(e,(0,u.default)(C,o,n))}});"function"==typeof a&&this.#e9.push(a)}catch(e){if((0,p.isRailsTesting)()||(0,p.isTesting)())throw e;console.error(e)}}),this.appEvents.trigger(this.isStreamElement?"decorate-post-cooked-element:before-adopt":"decorate-non-stream-cooked-element",e,t)}static #a=(()=>dt7948.n(this.prototype,"decorateBeforeAdopt",[c.bind]))();decorateAfterAdopt(e,t){this.isStreamElement||this.appEvents.trigger("decorate-post-cooked-element:after-adopt",e,t)}static #l=(()=>dt7948.n(this.prototype,"decorateAfterAdopt",[c.bind]))();get cooked(){return this.isIgnored?(0,b.i18n)("post.ignored"):this.args.post.cooked}get highlightTerm(){return this.args.highlightTerm}get extraDecorators(){return(0,h.makeArray)(this.args.extraDecorators)}get ignoredUsers(){return this.currentUser?.ignored_users}get isIgnored(){return(this.args.post.firstPost||this.args.embeddedPost)&&this.ignoredUsers?.includes?.(this.args.post.username)}#e6(){this.#e9.forEach(e=>e()),this.#e9=[]}#te(e){return T.createElement(e)}static #d=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"gv65dGZt",block:'[[[1,"\\n "],[8,[32,0],null,[["@className","@decorate","@decorateAfterAdopt","@html","@model"],["cooked",[30,0,["decorateBeforeAdopt"]],[30,0,["decorateAfterAdopt"]],[28,[32,1],[[30,0,["cooked"]]],null],[30,1]]],null],[1,"\\n "]],["@post"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/cooked-html.js",scope:()=>[d.default,o.htmlSafe],isStrictMode:!0}),this))()}},1933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(88627).createWidget)("post-placeholder",{tagName:"article.placeholder",template:function(e,t){var i=[];i.push(` `);var s=[];s.push(` `);var n=[];n.push(` `),n.push(virtualDom.h("div",{className:"placeholder-avatar placeholder-animation",attributes:{}},[])),n.push(` `),s.push(virtualDom.h("div",{className:"topic-avatar",attributes:{}},n)),s.push(` `);var r=[];return r.push(` `),r.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),r.push(` `),r.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),r.push(` `),r.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),r.push(` `),s.push(virtualDom.h("div",{className:"topic-body",attributes:{}},r)),s.push(` `),i.push(virtualDom.h("div",{className:"row",attributes:{}},s)),i.push(` `),i}})},1938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>D});var s=i(73326),n=i(96791),r=i(70568),a=i(75370),o=i(13355),l=i(22818),u=i(53329),d=i(8591),c=i(39017),p=i(71848),h=i(38069),m=i(53649),g=i(19006),f=i(10458),_=i(27e3),y=i(31789),b=i(33635),w=i(70508),k=i(92015),T=i(75533),S=i(32045),C=i(1519),A=i(69522);let D=(0,a.default)((0,S.setComponentTemplate)((0,C.createTemplateFactory)({id:"HX6Mt+p1",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["above-user-profile","div",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[10,0],[15,0,[29,["container\\n ",[52,[30,1,["viewingSelf"]],"viewing-self"],"\\n ",[52,[30,1,["model","profile_hidden"]],"profile-hidden"],"\\n ",[30,1,["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,[32,2],["skip_user_nav"],null]],[1,"\\n "],[13],[1,"\\n "],[10,"section"],[15,0,[29,[[52,[30,1,["collapsedInfo"]],"collapsed-info"],"\\n about\\n ",[52,[30,1,["hasProfileBackgroundUrl"]],"has-background","no-background"]]]],[12],[1,"\\n"],[41,[51,[30,1,["collapsedInfo"]]],[[[41,[30,1,["showStaffCounters"]],[[[1," "],[10,0],[14,0,"staff-counters"],[12],[1,"\\n"],[41,[30,1,["model","number_of_flags_given"]],[[[1," "],[10,0],[12],[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.flags_given"],[["className","count"],["helpful-flags",[30,1,["model","number_of_flags_given"]]]]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["model","number_of_flagged_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,4],null,[["@route","@query"],["review",[28,[32,5],null,[["username","status","type"],[[30,1,["model","username"]],"all","ReviewableFlaggedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.flagged_posts"],[["className","count"],["flagged-posts",[30,1,["model","number_of_flagged_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["model","number_of_rejected_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,4],null,[["@route","@query"],["review",[28,[32,5],null,[["username","status","type"],[[30,1,["model","username"]],"rejected","ReviewableQueuedPost"]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.rejected_posts"],[["className","count"],["flagged-posts",[30,1,["model","number_of_rejected_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["model","number_of_deleted_posts"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,4],null,[["@route","@model"],["user.deletedPosts",[30,1,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.deleted_posts"],[["className","count"],["deleted-posts",[30,1,["model","number_of_deleted_posts"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["model","number_of_suspensions"]],[[[1," "],[10,0],[12],[1,"\\n "],[11,3],[24,6,""],[4,[32,6],["click",[30,1,["showSuspensions"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.suspensions"],[["className","count"],["suspensions",[30,1,["model","number_of_suspensions"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["model","warnings_received_count"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[32,4],null,[["@route","@model"],["userPrivateMessages.user.warnings",[30,1,["model"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[28,[32,2],["user.staff_counters.warnings_received"],[["className","count"],["warnings-received",[30,1,["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,1,["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,[32,0],null,[["@name","@outletArgs"],["before-user-profile-avatar",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[8,[32,7],null,[["@user","@tagName"],[[30,1,["model"]],""]],null],[1,"\\n "],[10,0],[14,0,"primary-textual"],[12],[1,"\\n "],[10,0],[14,0,"user-profile-names"],[12],[1,"\\n\\n "],[10,0],[15,0,[29,[[52,[30,1,["nameFirst"]],"full-name","username"],"\\n user-profile-names__primary"]]],[12],[1,"\\n "],[1,[52,[30,1,["nameFirst"]],[30,1,["model","name"]],[28,[32,8],[[30,1,["model","username"]]],null]]],[1,"\\n "],[1,[28,[32,9],[[30,1,["model"]]],[["currentUser"],[[30,1,["currentUser"]]]]]],[1,"\\n"],[41,[30,1,["model","status"]],[[[1," "],[8,[32,10],null,[["@status"],[[30,1,["model","status"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[15,0,[29,[[52,[30,1,["nameFirst"]],"username","full-name"],"\\n user-profile-names__secondary"]]],[12],[41,[30,1,["nameFirst"]],[[[1,[30,1,["model","username"]]]],[]],[[[1,[30,1,["model","name"]]]],[]]],[13],[1,"\\n"],[41,[30,1,["model","staged"]],[[[1," "],[10,0],[14,0,"staged user-profile-names__secondary"],[12],[1,[28,[32,2],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,1,["model","title"]],[[[1," "],[10,0],[14,0,"user-profile-names__title"],[12],[1,[30,1,["model","title"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-post-names","div",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["showFeaturedTopic"]],[[[1," "],[10,0],[14,0,"featured-topic user-profile__featured-topic"],[12],[1,"\\n "],[10,1],[15,"title",[28,[32,2],["user.featured_topic"],null]],[12],[1,"\\n "],[1,[28,[32,11],["book"],null]],[13],[8,[32,4],null,[["@route","@models"],["topic",[28,[32,12],[[30,1,["model","featured_topic","slug"]],[30,1,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[32,13],[[28,[32,3],[[30,1,["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,1,["model","location"]],[[[10,0],[14,0,"user-profile-location"],[12],[1,[28,[32,11],["location-dot"],null]],[1,[30,1,["model","location"]]],[13]],[]],null],[1,"\\n"],[41,[30,1,["model","website_name"]],[[[1," "],[10,0],[14,0,"user-profile-website"],[12],[1,"\\n"],[1," "],[1,[28,[32,11],["globe"],null]],[41,[30,1,["linkWebsite"]],[[[10,3],[15,6,[30,1,["model","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,1,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,1,["model","website_name"]]],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[15,"title",[30,1,["model","website"]]],[12],[1,[30,1,["model","website_name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-location-and-website","div",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["before-user-profile-bio","div",[28,[32,1],null,[["model","publicUserFields","collapsedInfo","hasTrustLevel","canCheckEmails","canDeleteUser","adminDelete"],[[30,1,["model"]],[30,1,["publicUserFields"]],[30,1,["collapsedInfo"]],[30,1,["hasTrustLevel"]],[30,1,["canCheckEmails"]],[30,1,["canDeleteUser"]],[30,1,["adminDelete"]]]]]]],null],[1,"\\n\\n "],[10,0],[14,0,"bio"],[12],[1,"\\n"],[41,[30,1,["model","suspended"]],[[[1," "],[10,0],[14,0,"suspended"],[12],[1,"\\n "],[1,[28,[32,11],["ban"],null]],[1,"\\n "],[10,"b"],[12],[1,"\\n"],[41,[30,1,["model","suspendedForever"]],[[[1," "],[1,[28,[32,2],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["user.suspended_notice"],[["date"],[[30,1,["model","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"br"],[12],[13],[1,"\\n"],[41,[30,1,["model","suspend_reason"]],[[[1," "],[10,"b"],[12],[1,[28,[32,2],["user.suspended_reason"],null]],[13],[1,"\\n "],[1,[30,1,["model","suspend_reason"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,1,["isNotSuspendedOrIsStaff"]],[[[1," "],[8,[32,14],null,null,[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[30,1,["model","bio_cooked"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["publicUserFields"]],[[[1," "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["publicUserFields"]]],null]],null],null,[[[1,"\\n"],[41,[30,2,["value"]],[[[1," "],[10,0],[15,0,[29,["public-user-field ",[30,2,["field","dasherized_name"]]]]],[12],[1,"\\n "],[10,1],[14,0,"user-field-name"],[12],[1,[30,2,["field","name"]]],[13],[1,":\\n "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,2,["value"]]],null]],null],null,[[[1," "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,"\\n"],[41,[30,2,["field","searchable"]],[[[1," "],[8,[32,4],null,[["@route","@query"],["users",[28,[32,5],null,[["name"],[[30,3]]]]]],[["default"],[[[[1,[30,3]]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,3]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[3]],[[[1," "],[1,[30,2,["value"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-public-fields","div",[28,[32,1],null,[["publicUserFields","model"],[[30,1,["publicUserFields"]],[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-primary","div",[28,[32,1],null,[["model"],[[30,1,["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,1,["model","can_send_private_message_to_user"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,15],[[24,0,"btn-primary compose-pm"]],[["@action","@icon","@label"],[[28,[32,16],[[28,[32,17],["composePrivateMessage"],null],[30,1,["model"]]],null],"envelope","user.private_message"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canMuteOrIgnoreUser"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,18],null,[["@user","@value","@updateNotificationLevel"],[[30,1,["model"]],[30,1,["userNotificationLevel"]],[30,1,["updateNotificationLevel"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["displayTopLevelAdminButton"]],[[[1," "],[10,"li"],[12],[10,3],[15,6,[30,1,["model","adminPath"]]],[14,0,"btn btn-default user-admin"],[12],[1,[28,[32,11],["wrench"],null]],[10,1],[14,0,"d-button-label"],[12],[1,[28,[32,2],["admin.user.show_admin_profile"],null]],[13],[13],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-controls","li",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,1,["canExpandProfile"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,15],[[24,"aria-controls","collapsed-info-panel"],[16,"aria-expanded",[52,[30,1,["collapsedInfoState","isExpanded"]],"true","false"]],[24,0,"btn-default"]],[["@ariaLabel","@label","@icon","@action"],[[30,1,["collapsedInfoState","ariaLabel"]],[28,[32,19],["user.",[30,1,["collapsedInfoState","label"]]],null],[30,1,["collapsedInfoState","icon"]],[30,1,["collapsedInfoState","action"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,20],null,[["@model","@collapsedInfo","@hasTrustLevel","@canCheckEmails","@canDeleteUser","@adminDelete"],[[30,1,["model"]],[30,1,["collapsedInfo"]],[30,1,["hasTrustLevel"]],[30,1,["canCheckEmails"]],[30,1,["canDeleteUser"]],[30,1,["adminDelete"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"new-user-wrapper"],[12],[1,"\\n "],[8,[32,21],null,[["@user","@isStaff","@isMobileView","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@currentParentRoute","@showRead","@showDrafts","@showBookmarks"],[[30,1,["model"]],[30,1,["currentUser","staff"]],[30,1,["site","mobileView"]],[30,1,["showActivityTab"]],[30,1,["showNotificationsTab"]],[30,1,["showPrivateMessages"]],[30,1,["canInviteToForum"]],[30,1,["showBadges"]],[30,1,["currentParentRoute"]],[30,1,["showRead"]],[30,1,["showDrafts"]],[30,1,["showBookmarks"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"new-user-content-wrapper"],[12],[1,"\\n "],[46,[28,[31,5],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller","uf","v"],false,["if","unless","each","-track-array","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user.js",scope:()=>[u.default,f.default,w.i18n,g.default,r.LinkTo,s.hash,n.on,c.default,m.default,b.default,p.default,h.default,s.array,_.default,l.default,o.default,s.fn,y.default,k.default,s.concat,T.default,d.default],isStrictMode:!0}),(0,A.default)(void 0,void 0)))},2043:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ButtonClass:()=>d,default:()=>c});var s=i(41107),n=i.n(s),r=i(11651),a=i(21530),o=i(77296),l=i(88627),u=i(70508);let d={tagName:"button.widget-button.btn",buildClasses(e){let t=this.attrs.className||"",i=e.translatedLabel||e.label||e.contents;return i||(t+=" no-text"),e.icon?(t+=" btn-icon",i&&(t+="-text")):i&&(t+=" btn-text"),t},buildAttributes(){let e=this.attrs,t={},i=e.translatedTitle;if(!i&&e.title&&(i=(0,u.i18n)(e.title,e.titleOptions)),i&&(t.title=i),e.role&&(t.role=e.role),e.translatedAriaLabel&&(t["aria-label"]=e.translatedAriaLabel),e.ariaExpanded&&(t["aria-expanded"]=e.ariaExpanded),e.ariaControls&&(t["aria-controls"]=e.ariaControls),e.ariaPressed&&(t["aria-pressed"]=e.ariaPressed),e.ariaLive&&(t["aria-live"]=e.ariaLive),e.tabAttrs){let i=e.tabAttrs;t["aria-selected"]=i["aria-selected"],t.tabindex=i.tabindex,t["aria-controls"]=i["aria-controls"],t.id=e.id}return e.disabled&&(t.disabled="true"),e.data&&Object.keys(e.data).forEach(i=>t[`data-${i}`]=e.data[i]),t},_buildIcon(e){let t=(0,a.iconNode)(e.icon,{class:e.iconClass});return e["aria-label"]&&(t.properties.attributes.role="img",t.properties.attributes["aria-hidden"]=!1),t},html(e){let t=[],i=!e.iconRight;return e.icon&&i&&t.push(this._buildIcon(e)),e.emoji&&i&&t.push(this.attach("emoji",{name:e.emoji})),e.label&&t.push((0,r.h)("span.d-button-label",(0,u.i18n)(e.label,e.labelOptions))),e.translatedLabel&&t.push((0,r.h)("span.d-button-label",e.translatedLabel.toString(),e.translatedLabelOptions)),e.contents&&t.push(e.contents),e.emoji&&!i&&t.push(this.attach("emoji",{name:e.emoji})),e.icon&&!i&&t.push(this._buildIcon(e)),t},click(e){let t=this.attrs;if(!t.disabled)return(n()("button.widget-button").removeClass("d-hover").blur(),t.secondaryAction&&this.sendWidgetAction(t.secondaryAction),t.url)?o.default.routeTo(t.url):t.sendActionEvent?this.sendWidgetAction(t.action,e):this.sendWidgetAction(t.action,t.actionParam)}},c=(0,l.createWidget)("button",d);(0,l.createWidget)("flat-button",Object.assign(d,{tagName:"button.widget-button.btn-flat"}))},2080:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(57079),l=i(53329),u=i(38069),d=i(69287),c=i(10458),p=i(70508),h=i(32045),m=i(1519);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();get wrapperElement(){return(0,d.default)(this.args.tagName??"span")}get canAct(){return this.currentUser&&!this.args.disableActions}togglePinned(e){e.preventDefault(),this.args.topic.togglePinnedForUser()}static #n=(()=>dt7948.n(this.prototype,"togglePinned",[r.action]))();static #a=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"twFarkSC",block:'[[[8,[30,0,["wrapperElement"]],[[24,0,"topic-statuses"]],null,[["default"],[[[[41,[30,1,["bookmarked"]],[[[10,3],[15,6,[30,1,["url"]]],[15,"title",[28,[32,0],["topic_statuses.bookmarked.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["bookmark"],null]],[13]],[]],null],[41,[28,[32,2],[[30,1,["closed"]],[30,1,["archived"]]],null],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.locked_and_archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],[[[41,[30,1,["closed"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.locked.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],[[[41,[30,1,["archived"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.archived.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["lock"],null]],[13]],[]],null]],[]]]],[]]],[41,[30,1,["is_warning"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.warning.help"],null]],[14,0,"topic-status topic-status-warning"],[12],[1,[28,[32,1],["envelope"],null]],[13]],[]],[[[41,[28,[32,2],[[30,2],[30,1,["isPrivateMessage"]]],null],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.personal_message.help"],null]],[14,0,"topic-status"],[12],[1,[28,[32,1],["envelope"],null]],[13]],[]],null]],[]]],[41,[30,1,["pinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,0],["topic_statuses.pinned.help"],null]],[24,0,"topic-status pinned pin-toggle-button"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,1],["thumbtack"],null]],[13]],[]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.pinned.help"],null]],[14,0,"topic-status pinned"],[12],[1,[28,[32,1],["thumbtack"],null]],[13]],[]]]],[]],[[[41,[30,1,["unpinned"]],[[[41,[30,0,["canAct"]],[[[11,3],[24,6,""],[16,"title",[28,[32,0],["topic_statuses.unpinned.help"],null]],[24,0,"topic-status unpinned pin-toggle-button"],[4,[32,3],["click",[30,0,["togglePinned"]]],null],[12],[1,[28,[32,1],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.unpinned.help"],null]],[14,0,"topic-status unpinned"],[12],[1,[28,[32,1],["thumbtack"],[["class"],["unpinned"]]]],[13]],[]]]],[]],null]],[]]],[41,[30,1,["invisible"]],[[[10,1],[15,"title",[28,[32,0],["topic_statuses.unlisted.help"],[["unlistedReason"],[[30,1,["visibilityReasonTranslated"]]]]]],[14,0,"topic-status"],[12],[1,[28,[32,1],["far-eye-slash"],null]],[13]],[]],null],[8,[32,4],null,[["@name","@outletArgs"],["after-topic-status",[28,[32,5],null,[["topic","context"],[[30,1],[30,3]]]]]],null]],[]]]]]],["@topic","@showPrivateMessageIcon","@context"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-status.js",scope:()=>[p.i18n,u.default,o.and,n.on,l.default,c.default],isStrictMode:!0}),this))()}},2087:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MultiCache:()=>s});class s{constructor(e){this.cb=e,this.values=new Map,this.fetchTimes=[]}reset(){this.values=new Map,this.fetchTimes=[]}hadTooManyCalls(){let[e,t]=this.fetchTimes;return e&&t&&t-e<1e3}async fetch(e){this.fetchTimes=[this.fetchTimes[this.fetchTimes.length-1],new Date];let t=[];for(let i of e=e.uniq())this.values.has(i)||t.push(i);if(0!==t.length){let e=this.cb(t);for(let i of t)this.values.set(i,e);e.catch(()=>{for(let e of t)this.values.delete(e)})}let i=new Map;for(let t of e)i.set(t,(await this.values.get(t)).get(t));return i}}},2106:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(75093),n=i(87367),r=i(15146),a=i(44233);let o=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get isEnabled(){return this.siteSettings.enable_user_status}async set(e,t){await (0,n.ajax)({url:"/user-status.json",type:"PUT",data:e}),this.currentUser.set("status",e),t?this.#tt(e.ends_at):this.#ti()}async clear(){await (0,n.ajax)({url:"/user-status.json",type:"DELETE"}),this.currentUser.set("status",null),this.#ti()}#tt(e){let t=this.#ts(e??r.default.forever);this.currentUser.enterDoNotDisturbFor(t)}#ti(){this.currentUser.isInDoNotDisturb()&&this.currentUser.leaveDoNotDisturb()}#ts(e){return moment.utc(e).diff(moment.utc(),"minutes")}},[a.disableImplicitInjections])},2142:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>P});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(75093),u=i(9032),d=i(57079),c=i(12458),p=i(13355),h=i(39826),m=i(25634),g=i(93709),f=i(16356),_=i(35952),y=i(84181),b=i(67698),w=i(77982),k=i(35697),T=i(20139),S=i(70508),C=i(30456),A=i(40428),D=i(88560),M=i(32045),x=i(1519),E=i(69522);let L=(0,i(96900).A)(i(7155)).cached;class P extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #a=(()=>dt7948.g(this.prototype,"site",[l.service]))();#_=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();static #d=(()=>dt7948.g(this.prototype,"displayAdvancedOptions",[n.tracked],function(){return!1}))();#tr=(()=>void dt7948.i(this,"displayAdvancedOptions"))();static #p=(()=>dt7948.g(this.prototype,"isEmailInvite",[n.tracked],function(){return(0,k.emailValid)(this.data.restrictTo)}))();#ta=(()=>void dt7948.i(this,"isEmailInvite"))();static #m=(()=>dt7948.g(this.prototype,"flashText",[n.tracked]))();#to=(()=>void dt7948.i(this,"flashText"))();static #f=(()=>dt7948.g(this.prototype,"flashClass",[n.tracked],function(){return"info"}))();#tl=(()=>void dt7948.i(this,"flashClass"))();static #y=(()=>dt7948.g(this.prototype,"topics",[n.tracked],function(){return this.invite.topics??this.model.topics??[]}))();#tu=(()=>void dt7948.i(this,"topics"))();allGroups=this.site.groups.filter(e=>!e.automatic);model=this.args.model;invite=(()=>this.model.invite??T.default.create())();sendEmail=!1;formApi;get linkValidityMessageFormat(){return S.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,S.i18n)("dates.medium.x_days",{count:e})}))).push({value:999999,text:(0,S.i18n)("time_shortcut.never")}),e}get data(){let e={description:this.invite.description??"",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 #v=(()=>dt7948.n(this.prototype,"data",[L]))();async save(e){let t=!0;e.emailOrDomain&&(this.isEmailInvite?(t=!1,e.email=e.emailOrDomain):(0,k.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,b.sanitize)((0,S.i18n)("user.invited.invite.invite_saved_with_sending_email")):this.flashText=(0,b.sanitize)((0,S.i18n)("user.invited.invite.invite_saved_without_sending_email")),this.flashClass="success")}catch(e){this.flashText=(0,b.sanitize)((0,f.extractError)(e)),this.flashClass="error"}finally{this.saving=!1}}get descriptionValidation(){return`length:0,${_.INVITE_DESCRIPTION_MAX_LENGTH}`}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:i}=t;i("restrictTo",e),this.isEmailInvite=(0,k.emailValid)(e)}static #k=(()=>dt7948.n(this.prototype,"handleRestrictToChange",[o.action]))();async onFormSubmit(e){let t={description:e.description,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(C.FORMAT)),await this.save(t)}static #S=(()=>dt7948.n(this.prototype,"onFormSubmit",[o.action]))();saveInvite(){this.sendEmail=!1,this.formApi.submit()}static #A=(()=>dt7948.n(this.prototype,"saveInvite",[o.action]))();saveInviteAndSendEmail(){this.sendEmail=!0,this.formApi.submit()}static #M=(()=>dt7948.n(this.prototype,"saveInviteAndSendEmail",[o.action]))();onChangeTopic(e,t,i){this.topics=[i],e(t)}static #E=(()=>dt7948.n(this.prototype,"onChangeTopic",[o.action]))();showAdvancedMode(e){this.displayAdvancedOptions=!0,e.preventDefault(),e.stopPropagation()}static #P=(()=>dt7948.n(this.prototype,"showAdvancedMode",[o.action]))();async createLink(){this.sendEmail=!1;let e=(0,w.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(C.FORMAT),...null!=e&&{topic_id:e}})}static #I=(()=>dt7948.n(this.prototype,"createLink",[o.action]))();cancel(){this.args.closeModal()}static #j=(()=>dt7948.n(this.prototype,"cancel",[o.action]))();registerApi(e){this.formApi=e}static #R=(()=>dt7948.n(this.prototype,"registerApi",[o.action]))();static #B=(()=>(0,M.setComponentTemplate)((0,x.createTemplateFactory)({id:"y2HsB4El",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"],[24,"tabindex","0"],[4,[32,8],["click",[30,0,["showAdvancedMode"]]],null],[4,[32,8],["keydown",[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","@validation"],["description",[28,[32,1],["user.invited.invite.description"],null],"large",[30,0,["descriptionValidation"]]]],[["default"],[[[[1,"\\n "],[8,[30,5,["Input"]],null,null,null],[1,"\\n "]],[5]]]]],[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,6,["Input"]],[[16,"placeholder",[28,[32,1],["user.invited.invite.email_or_domain_placeholder"],null]]],null,null],[1,"\\n "]],[6]]]]],[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,7,["Input"]],[[24,"min","1"],[16,"max",[30,0,["maxRedemptionsAllowedLimit"]]],[24,4,"number"]],null,null],[1,"\\n "]],[7]]]]],[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,8,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,10],null,[["@clearable","@input","@noRelativeOptions","@onChangeInput"],[true,[30,8,["value"]],true,[30,8,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[8]]]]],[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,9,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["expireAfterOptions"]]],null]],null],null,[[[1," "],[8,[30,10,["Option"]],null,[["@value"],[[30,11,["value"]]]],[["default"],[[[[1,[30,11,["text"]]]],[]]]]],[1,"\\n"]],[11]],null],[1," "]],[10]]]]],[1,"\\n "]],[9]]]]],[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,12,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,11],null,[["@value","@content","@onChange","@options"],[[30,12,["value"]],[30,0,["topics"]],[28,[32,12],[[30,0,["onChangeTopic"]],[30,12,["set"]]],null],[28,[32,13],null,[["additionalFilters"],["status:public"]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[12]]]]],[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,13,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,14],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,13,["value"]],"name",[30,13,["set"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[13]]]]],[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,14,["Textarea"]],[[16,"height",100],[16,"placeholder",[28,[32,1],["user.invited.invite.custom_message_placeholder"],null]]],null,null],[1,"\\n "]],[14]]]]],[1,"\\n"]],[]],null],[1," "]],[4]]]]],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[30,0,["simpleMode"]],[[[1," "],[8,[32,15],[[24,0,"btn-primary save-invite"],[24,"autofocus","true"]],[["@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,"autofocus","true"],[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","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,S.i18n,d.and,d.or,F,d.notEq,u.htmlSafe,I,a.on,m.default,g.default,D.default,r.fn,r.hash,A.default,p.default],isStrictMode:!0}),this))()}let F=(0,M.setComponentTemplate)((0,x.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:()=>[I],isStrictMode:!0}),(0,E.default)(void 0,"create-invite:InviteModalAlert"));class I extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();async nativeShare(){await (0,y.nativeShare)(this.capabilities,{url:this.args.invite.link})}static #i=(()=>dt7948.n(this.prototype,"nativeShare",[o.action]))();static #n=(()=>(0,M.setComponentTemplate)((0,x.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:()=>[y.canNativeShare,p.default,S.i18n,c.default],isStrictMode:!0}),this))()}},2151:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i){var s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+({ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"})[i]}return e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})},2187:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},2204:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(73326),r=i(85024),a=i(13355),o=i(14051),l=i(70508),u=i(1519);let d=dt7948.c(class extends s.default{label(e){return(0,l.i18n)(`groups.manage.logs.${e}`)}static #e=(()=>dt7948.n(this.prototype,"label",[(0,o.default)("type")]))();filterText(e,t){return"action"===t?(0,l.i18n)(`group_histories.actions.${e}`):e}static #i=(()=>dt7948.n(this.prototype,"filterText",[(0,o.default)("value","type")]))();static #n=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"6nCCQQmp",block:'[[[1,"\\n"],[41,[30,0,["value"]],[[[1," "],[8,[32,0],[[24,0,"btn-default group-manage-logs-filter"]],[["@action","@icon","@translatedLabel"],[[28,[32,1],[[30,0,["clearFilter"]],[30,0,["type"]]],null],"circle-xmark",[28,[32,2],[[30,0,["label"]],": ",[30,0,["filterText"]]],null]]],null],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-manage-logs-filter.js",scope:()=>[a.default,n.fn,n.concat],isStrictMode:!0}),this))()},[(0,r.tagName)("")])},2332:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(95561),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"tooltip",[n.service]))();#td=(()=>void dt7948.i(this,"tooltip"))();static #i=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Ep6zmKXY",block:'[[[1,"\\n "],[10,0],[14,1,"d-tooltip-portals"],[12],[13],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["tooltip","registeredTooltips"]]],null]],null],"id",[[[41,[30,1,["detachedTrigger"]],[[[1," "],[8,[32,0],null,[["@tooltip"],[[30,1]]],null],[1,"\\n"]],[]],null]],[1]],null],[1," "]],["tooltip"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-tooltips.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},2362:(e,t,i)=>{"use strict";function s(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t}i.r(t),i.d(t,{default:()=>s})},2419:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TAG_HASHTAG_POSTFIX:()=>s});let s="::tag"},2427:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{get name(){this._notImplemented()}get classNames(){return""}get route(){}get href(){}get model(){}get models(){}get query(){}get currentWhen(){}get title(){this._notImplemented()}get text(){this._notImplemented()}get contentCSSClass(){}get prefixType(){}get prefixValue(){}get prefixColor(){}get prefixBadge(){}get prefixCSSClass(){}get suffixType(){}get suffixValue(){}get suffixCSSClass(){}get hoverType(){}get hoverValue(){}get hoverAction(){}get hoverTitle(){}_notImplemented(){throw"not implemented"}}},2446:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{default:()=>c,missingOptionDeprecation:()=>u,missingOptionsDeprecation:()=>s,missingOptionsIdDeprecation:()=>n,registerHandler:()=>l});var r=i(28543),a=i(97015),o=i(7104);let l=()=>{},u=()=>"",d=()=>{};{let e,t=function(e,t){let i=e;return t?.id&&(i+=` [deprecation id: ${t.id}]`),t?.until&&(i+=` This will be removed in ${t.for} ${t.until}.`),t?.url&&(i+=` See ${t.url} for more details.`),i};(l=function(e){(0,o.registerHandler)("deprecate",e)})(function(e,i){let s=t(e,i);console.warn(`DEPRECATION: ${s}`)}),e=Error().stack?()=>Error():()=>{try{__fail__.fail();return}catch(e){return e}},l(function(i,s,n){if(r.E.LOG_STACKTRACE_ON_DEPRECATION){let n,r="",a=e();a instanceof Error&&a.stack&&(a.arguments?(n=a.stack.replace(/^\s+at\s+/gm,"").replace(/^([^(]+?)([\n$])/gm,"{anonymous}($1)$2").replace(/^Object.\s*\(([^)]+)\)/gm,"{anonymous}($1)").split(` `)).shift():n=a.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^\(/gm,"{anonymous}(").split(` `),r=` ${n.slice(2).join(` `)}`);let o=t(i,s);console.warn(`DEPRECATION: ${o}${r}`)}else n(i,s)}),l(function(e,i,s){if(r.E.RAISE_ON_DEPRECATION)throw Error(t(e));s(e,i)}),s="When calling `deprecate` you must provide an `options` hash as the third parameter. `options` should include `id` and `until` properties.",n="When calling `deprecate` you must provide `id` in options.",u=(e,t)=>`When calling \`deprecate\` you must provide \`${t}\` in options. Missing options.${t} in "${e}" deprecation`,d=function(e,t,i){(0,a.assert)(s,!!(i&&(i.id||i.until))),(0,a.assert)(n,!!i.id),(0,a.assert)(u(i.id,"until"),!!i.until),(0,a.assert)(u(i.id,"for"),!!i.for),(0,a.assert)(u(i.id,"since"),!!i.since),(0,o.invoke)("deprecate",e,t,i)}}let c=d},2450:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(32045),n=i(73326),r=i(86981),a=i(75093),o=i(85024),l=i(13355),u=i(87367),d=i(70508),c=i(7749),p=i(1519);let h=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#o=(()=>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,u.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,d.i18n)("generic_error"))}).finally(()=>this.set("_isSaving",!1))}static #i=(()=>dt7948.n(this.prototype,"saveBadgeTitle",[r.action]))();_findBadgeById(e,t){return(e||[]).findBy("id",t)}_findBadgeByTitle(e,t){return(e||[]).findBy("badge.name",t)}static #n=(()=>(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"5dpgbK/y",block:'[[[1,"\\n "],[10,0],[14,0,"badge-title"],[12],[1,"\\n "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n\\n "],[10,"h3"],[12],[1,[28,[32,0],["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,[32,1],null,[["@value","@nameProperty","@content","@onChange"],[[30,0,["_selectedUserBadgeId"]],"badge.name",[30,0,["selectableUserBadges"]],[28,[32,2],[[28,[31,0],[[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,[32,3],[[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,[32,3],[[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,[32,0],["saved"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["mut","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-title.js",scope:()=>[d.i18n,c.default,n.fn,l.default],isStrictMode:!0}),this))()},[(0,o.tagName)("")])},2515:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(9032),r=i(53329),a=i(10458),o=i(32045),l=i(1519);class u extends s.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,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"HAN7JBt2",block:'[[[8,[32,0],null,[["@name","@outletArgs"],["topic-link",[28,[32,1],null,[["topic"],[[30,1]]]]]],[["default"],[[[[11,3],[16,6,[30,0,["url"]]],[16,"data-topic-id",[30,1,["id"]]],[24,0,"title"],[17,2],[12],[1,[28,[32,2],[[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:()=>[r.default,a.default,n.htmlSafe],isStrictMode:!0}),this))()}},2521:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(32045),n=i(85024),r=i(43552),a=i(93056),o=i(38069),l=i(57339),u=i(66197),d=i(14761),c=i(35241),p=i(714),h=i(70508),m=i(1519);let g=dt7948.c(class extends s.default{role="row";static #e=(()=>dt7948.g(this.prototype,"me",[(0,p.propertyEqual)("item.user.id","currentUser.id")]))();#tc=(()=>void dt7948.i(this,"me"))();columns=null;static #i=(()=>(0,s.setComponentTemplate)((0,m.createTemplateFactory)({id:"zI7zZj82",block:'[[[1,"\\n "],[10,0],[14,0,"directory-table__cell"],[14,"role","rowheader"],[12],[1,"\\n "],[8,[32,0],null,[["@user"],[[30,0,["item","user"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["columns"]]],null]],null],null,[[[41,[28,[32,1],null,[["column"],[[30,1]]]],[[[1," "],[10,0],[14,0,"directory-table__cell--user-field"],[14,"role","cell"],[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 "],[8,[32,2],null,[["@item","@column"],[[30,0,["item"]],[30,1]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"directory-table__cell"],[14,"role","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,[32,3],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,4],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,5],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"],[14,"role","cell"],[12],[1,"\\n "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n "],[10,1],[12],[1,[28,[32,6],["directory.time_read"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n "],[1,[28,[32,7],[[30,0,["item","time_read"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["column"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/directory-item.js",scope:()=>[a.default,l.default,r.default,o.default,u.default,d.default,h.i18n,c.default],isStrictMode:!0}),this))()},[(0,n.attributeBindings)("role"),(0,n.classNameBindings)("me"),(0,n.classNames)("directory-table__row"),(0,n.tagName)("div")])},2523:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(50890),n=i(86981),r=i(75093);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"tagGroups",[s.inject]))();#tp=(()=>void dt7948.i(this,"tagGroups"))();onSave(){this.tagGroups.model.pushObject(this.model),this.router.transitionTo("tagGroups.index")}static #n=(()=>dt7948.n(this.prototype,"onSave",[n.action]))()}},2758:(e,t,i)=>{var s=i(17368);t.operation=function(e){return new s(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in e)t[i]=e[i];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var s=[],n=0;n{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(44460),n=i(70508);class r extends s.default{get renameToGuidelines(){return this.siteSettings.experimental_rename_faq_to_guidelines&&!this.href}get name(){return this.renameToGuidelines?"guidelines":"faq"}get route(){return this.renameToGuidelines?"guidelines":"faq"}get href(){return this.siteSettings.faq_url}get title(){return this.renameToGuidelines?(0,n.i18n)("sidebar.sections.community.links.guidelines.title"):(0,n.i18n)("sidebar.sections.community.links.faq.title")}get text(){let e=this.renameToGuidelines?"Guidelines":this.overridenName;return(0,n.i18n)(`sidebar.sections.community.links.${e.toLowerCase()}.content`,{defaultValue:e})}get defaultPrefixValue(){return"circle-question"}}},2796:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(75093),u=i(57079),d=i(6318),c=i(13355),p=i(53329),h=i(1158),m=i(38069),g=i(10458),f=i(14086),_=i(14051),y=i(85049),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[l.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"copyIcon",[n.tracked],function(){return"link"}))();#th=(()=>void dt7948.i(this,"copyIcon"))();static #n=(()=>dt7948.g(this.prototype,"copyClass",[n.tracked],function(){return"btn-default"}))();#tm=(()=>void dt7948.i(this,"copyClass"))();static #a=(()=>dt7948.g(this.prototype,"newQueryString",[y.resettableTracked],function(){return this.args.queryString}))();#tg=(()=>void dt7948.i(this,"newQueryString"))();updateQueryString(e){this.newQueryString=e}static #l=(()=>dt7948.n(this.prototype,"updateQueryString",[_.bind]))();clearInput(){this.newQueryString="",this.args.updateTopicsListQueryParams(this.newQueryString)}static #d=(()=>dt7948.n(this.prototype,"clearInput",[o.action]))();copyQueryString(){this.copyIcon="check",this.copyClass="btn-default ok",navigator.clipboard.writeText(window.location),(0,f.default)(this._restoreButton,3e3)}static #p=(()=>dt7948.n(this.prototype,"copyQueryString",[o.action]))();_restoreButton(){this.isDestroying||this.isDestroyed||(this.copyIcon="link",this.copyClass="btn-default")}static #m=(()=>dt7948.n(this.prototype,"_restoreButton",[_.bind]))();static #f=(()=>(0,r.setComponentTemplate)((0,b.createTemplateFactory)({id:"n9qQ2/pu",block:'[[[1,"\\n "],[1,[28,[32,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,[32,1],[[30,0,["site","mobileView"]],[30,1]],null],[[[1," "],[10,0],[14,0,"topic-query-filter__bulk-action-btn"],[12],[1,"\\n "],[8,[32,2],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,[32,3],["filter"],[["class"],["topic-query-filter__icon"]]]],[1,"\\n "],[8,[32,4],[[24,0,"topic-query-filter__filter-term"],[24,1,"queryStringInput"],[24,"autocomplete","off"]],[["@value","@enter","@type"],[[30,0,["newQueryString"]],[28,[32,5],[[30,3],[30,0,["newQueryString"]]],null],"text"]],null],[1,"\\n"],[1," "],[8,[32,6],null,[["@name","@outletArgs"],["below-filter-input",[28,[32,7],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,[32,8],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,[32,8],[[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],[1,"\\n "]],["@canBulkSelect","@bulkSelectHelper","@updateTopicsListQueryParams"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/filter-navigation.js",scope:()=>[h.default,u.and,d.default,m.default,r.Input,a.fn,p.default,g.default,c.default],isStrictMode:!0}),this))()}},2822:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(56162),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"op-likes-cell:OpLikesCell"))},2850:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(64081),r=i(75093),a=i(58760),o=i.n(a),l=i(53939);class u{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[r.service]))();#T=(()=>void dt7948.i(this,"toasts"))();options=null;id=(()=>o()())();constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.setOwner)(this,e),this.options={...l.TOAST.options,...t}}close(){this.toasts.close(this)}static #n=(()=>dt7948.n(this.prototype,"close",[s.action]))();get isValidForView(){return this.options.views.includes(this.site.desktopView?"desktop":"mobile")}}},2873:e=>{e.exports=function(e){return e&&"Thunk"===e.type}},2903:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(96791),r=i(86981),a=i(13355),o=i(25217),l=i(70508),u=i(32045),d=i(1519);class c extends s.default{useAnotherMethod(e){e.preventDefault(),this.args.setShowSecurityKey?.(!1),this.args.setShowSecondFactor?.(!0),this.args.totpEnabled?this.args.setSecondFactorMethod?.(o.SECOND_FACTOR_METHODS.TOTP):this.args.backupEnabled&&this.args.setSecondFactorMethod?.(o.SECOND_FACTOR_METHODS.BACKUP_CODE)}static #e=(()=>dt7948.n(this.prototype,"useAnotherMethod",[r.action]))();static #i=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[a.default,n.on,l.i18n],isStrictMode:!0}),this))()}},2923:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(18793),n=i(24813),r=i(86981),a=i(71059),o=i(97979),l=i(80115),u=i(77188);i(60569);var d=i(34100);i(57330),i(71729),i(89352),i(77061),i(28543);var c=i(97015);function p(e,t){if(Symbol.iterator in e)for(let i of e)t(i);else(0,c.assert)("","function"==typeof e.forEach),e.forEach(t)}class h{recordCaches=(()=>new Map)();added=[];updated=[];removed=[];getCacheForItem(e){let t=this.recordCaches.get(e);if(!t){let i=!1;t=(0,u.createCache)(()=>{i?this.updated.push(this.wrapRecord(e)):(this.added.push(this.wrapRecord(e)),i=!0)}),this.recordCaches.set(e,t)}return t}constructor(e,t,i,s,n,r){this.wrapRecord=n,this.release=r,this.recordArrayCache=(0,u.createCache)(()=>{let r=new Set;(0,u.consumeTag)((0,u.tagFor)(e,"[]")),p(e,e=>{(0,u.getValue)(this.getCacheForItem(e)),r.add(e)}),(0,u.untrack)(()=>{this.recordCaches.forEach((e,t)=>{r.has(t)||(this.removed.push(n(t)),this.recordCaches.delete(t))})}),this.added.length>0&&(t(this.added),this.added=[]),this.updated.length>0&&(i(this.updated),this.updated=[]),this.removed.length>0&&(s(this.removed),this.removed=[])})}revalidate(){(0,u.getValue)(this.recordArrayCache)}}class m{constructor(e,t,i){this.release=i;let s=!1;this.cache=(0,u.createCache)(()=>{p(e,()=>{}),(0,u.consumeTag)((0,u.tagFor)(e,"[]")),!0===s?(0,n.next)(t):s=!0}),this.release=i}revalidate(){(0,u.getValue)(this.cache)}}class g extends r.default{releaseMethods=(()=>(0,l.A)())();recordsWatchers=(()=>new Map)();typeWatchers=(()=>new Map)();flushWatchers=null;constructor(e){super(e),this.containerDebugAdapter=(0,s.getOwner)(this).lookup("container-debug-adapter:main")}attributeLimit=3;acceptsModelName=!0;getFilters(){return(0,l.A)()}watchModelTypes(e,t){let i=this.getModelTypes(),s=(0,l.A)();e(i.map(e=>{let i=e.klass,n=this.wrapModelType(i,e.name);return s.push(this.observeModelType(e.name,t)),n}));let n=()=>{s.forEach(e=>e()),this.releaseMethods.removeObject(n)};return this.releaseMethods.pushObject(n),n}_nameToClass(e){if("string"==typeof e){let t=(0,s.getOwner)(this).factoryFor(`model:${e}`);e=t&&t.class}return e}watchRecords(e,t,i,s){let n=this._nameToClass(e),r=this.getRecords(n,e),{recordsWatchers:a}=this,o=a.get(r);return o||(o=new h(r,t,i,s,e=>this.wrapRecord(e),()=>{a.delete(r),this.updateFlushWatchers()}),a.set(r,o),this.updateFlushWatchers(),o.revalidate()),o.release}updateFlushWatchers(){null===this.flushWatchers?(this.typeWatchers.size>0||this.recordsWatchers.size>0)&&(this.flushWatchers=()=>{this.typeWatchers.forEach(e=>e.revalidate()),this.recordsWatchers.forEach(e=>e.revalidate())},n._backburner.on("end",this.flushWatchers)):0===this.typeWatchers.size&&0===this.recordsWatchers.size&&(n._backburner.off("end",this.flushWatchers),this.flushWatchers=null)}willDestroy(){this._super(...arguments),this.typeWatchers.forEach(e=>e.release()),this.recordsWatchers.forEach(e=>e.release()),this.releaseMethods.forEach(e=>e()),this.flushWatchers&&n._backburner.off("end",this.flushWatchers)}detect(e){return!1}columnsForType(e){return(0,l.A)()}observeModelType(e,t){let i=this._nameToClass(e),s=this.getRecords(i,e),{typeWatchers:n}=this,r=n.get(s);return r||(r=new m(s,()=>{t([this.wrapModelType(i,e)])},()=>{n.delete(s),this.updateFlushWatchers()}),n.set(s,r),this.updateFlushWatchers(),r.revalidate()),r.release}wrapModelType(e,t){let i=this.getRecords(e,t);return{name:t,count:(0,d.g)(i,"length"),columns:this.columnsForType(e),object:e}}getModelTypes(){let e=this.containerDebugAdapter;return(e.canCatalogEntriesByType("model")?e.catalogEntriesByType("model"):this._getObjectsOnNamespaces()).map(e=>({klass:this._nameToClass(e),name:e})).filter(e=>this.detect(e.klass))}_getObjectsOnNamespaces(){let e=o.default.NAMESPACES,t=[];return e.forEach(e=>{for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||!this.detect(e[i]))continue;let s=(0,a.dasherize)(i);t.push(s)}}),t}getRecords(e,t){return(0,l.A)()}wrapRecord(e){return{object:e,columnValues:this.getRecordColumnValues(e),searchKeywords:this.getRecordKeywords(e),filterValues:this.getRecordFilterValues(e),color:this.getRecordColor(e)}}getRecordColumnValues(e){return{}}getRecordKeywords(e){return(0,l.A)()}getRecordFilterValues(e){return{}}getRecordColor(e){return null}}},2965:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(50890),n=i(86981),r=i(87367),a=i(16356),o=i(14051),l=i(70508);class u extends s.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(a.popupAjaxError).finally(()=>this.set("saving",!1))}static #e=(()=>dt7948.n(this.prototype,"save",[n.action]))();scoreTypes(e){let t=(0,l.i18n)("review.example_username");return e.map(e=>({...e,title:e.title.replace("%{username}",t)}))}static #i=(()=>dt7948.n(this.prototype,"scoreTypes",[(0,o.default)("settings.reviewable_score_types")]))()}},2999:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(75093),r=i(13355),a=i(63538),o=i(32045),l=i(1519);class u extends s.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",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&this.args.state.isWikiMode)}static #i=(()=>(0,o.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,a.default],isStrictMode:!0}),this))()}},3039:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,registerCustomTagSectionLinkPrefixIcon:()=>r,resetCustomTagSectionLinkPrefixIcons:()=>a});var s=i(21710);let n={};function r(e){let{tagName:t,prefixValue:i,prefixColor:s}=e;n[t]={prefixValue:i,prefixColor:s}}function a(){for(let e in n)n.hasOwnProperty(e)&&delete n[e]}class o{constructor(e){let{tag:t,currentUser:i}=e;this.tag=t,this.tagName=t.name,this.currentUser=i}get name(){return this.tagName}get text(){return this.tagName}get title(){return(0,s.default)(this.tag.description)}get prefixType(){return"icon"}get prefixValue(){return n[this.tagName]?.prefixValue||"tag"}get prefixColor(){return n[this.tagName]?.prefixColor}}},3098:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n}),i(97908);let s="discourse__dev_tools",n={after:["discourse-bootstrap"],initialize(e){function t(e){!1===e?window.localStorage?.removeItem(s):window.localStorage?.setItem(s,e)}window.enableDevTools=()=>{t(!0),window.location.reload()},window.disableDevTools=()=>{t(!1),window.location.reload()},function(){let e=window.localStorage?.getItem(s);return"true"===e||"false"!==e&&null}()&&(console.log("Loading Discourse dev tools..."),e.deferReadiness(),i.e(594).then(i.bind(i,90594)).then(t=>{t.init(),console.log("Loaded Discourse dev tools. Run `disableDevTools()` in console to disable."),e.advanceReadiness()}))}}},3166:(e,t,i)=>{"use strict";i.r(t);var s=i(84571),n=i.n(s);i(89271),window.moment=n()},3203:(e,t,i)=>{"use strict";function s(e,t){return t.modifyComponentForCollection(e)}i.r(t),i.d(t,{default:()=>s})},3289:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(47920),a=i(41154),o=i(63538),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get ariaHidden(){return null!==this.args.ariaHidden?this.args.ariaHidden:!this.args.ariaLabel&&(this.args.ariaHidden??!0)}get hideFromAnonUser(){return this.siteSettings.hide_user_profiles_from_public&&!this.currentUser}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"VUJWj9Sy",block:'[[[1,"\\n "],[8,[32,0],[[17,1]],[["@ariaHidden","@ariaLabel","@href","@user"],[[30,2],[30,3],[30,4],[30,5]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],[[30,5]],[["extraClasses","imageSize","hideTitle","loading"],[[28,[32,2],[[30,6],[52,[30,0,["hideFromAnonUser"]],"non-clickable"]],null],[30,7],[30,8],[52,[30,9],"lazy"]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@ariaHidden","@ariaLabel","@href","@user","@avatarClasses","@size","@hideTitle","@lazy"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-avatar.js",scope:()=>[r.default,a.default,o.default],isStrictMode:!0}),this))()}},3330:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,i){return e<12?i?"öö":"ÖÖ":i?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var s=e%10;return e+(t[s]||t[e%100-s]||t[e>=100?100:null])}},week:{dow:1,doy:7}})})},3332:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],e)}var i=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,n=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];return e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:n,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:n,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,i){return e<12?"a.m.":"g.m."}})})},3445:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(9032),n=i(38069),r=i(5955),a=i(70508),o=i(32045),l=i(1519),u=i(69522);let d=(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"WMGUaN0k",block:'[[[1,"\\n "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],[[28,[32,0],["user.no_notifications_body"],[["icon","preferencesUrl"],[[28,[32,2],["bell"],null],[28,[32,3],["/my/preferences/notifications"],null]]]]],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/user-menu/notifications-list-empty-state.js",scope:()=>[a.i18n,s.htmlSafe,n.default,r.default],isStrictMode:!0}),(0,u.default)(void 0,"notifications-list-empty-state:NotificationsListEmptyState"))},3501:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(50890),n=i(86981),r=i(75093),a=i(69786),o=i(14086),l=i(14051),u=i(63272),d=i(97908);let c="sidebar-hidden";class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"footer",[r.service]))();#tf=(()=>void dt7948.i(this,"footer"))();static #n=(()=>dt7948.g(this.prototype,"header",[r.service]))();#t_=(()=>void dt7948.i(this,"header"))();static #a=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#ty=(()=>void dt7948.i(this,"sidebarState"))();queryParams=[{navigationMenuQueryParamOverride:"navigation_menu"}];showTop=!0;showSidebar=this.calculateShowSidebar();sidebarDisabledRouteOverride=!1;navigationMenuQueryParamOverride=null;showSiteHeader=!0;showSkipToContent=!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 #l=(()=>dt7948.n(this.prototype,"canSignUp",[l.default]))();canDisplaySidebar(){return this.currentUser||!this.siteSettings.login_required}static #d=(()=>dt7948.n(this.prototype,"canDisplaySidebar",[l.default]))();loginRequired(){return this.siteSettings.login_required&&!this.currentUser}static #p=(()=>dt7948.n(this.prototype,"loginRequired",[l.default]))();showFooterNav(){return this.capabilities.isAppWebview||this.capabilities.isiOSPWA}static #m=(()=>dt7948.n(this.prototype,"showFooterNav",[l.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.isForcingSidebar||"sidebar"===this.siteSettings.navigation_menu))}calculateShowSidebar(){return this.canDisplaySidebar&&!this.keyValueStore.getItem(c)&&!this.site.narrowDesktopView}toggleSidebar(){document.body.classList.add("sidebar-animate"),(0,o.default)(this,this._mainOutletAnimate,250),this.toggleProperty("showSidebar"),this.site.desktopView&&(this.showSidebar?this.keyValueStore.removeItem(c):this.keyValueStore.setItem(c,"true"))}static #f=(()=>dt7948.n(this.prototype,"toggleSidebar",[n.action]))();trackDiscoursePainted(){(0,d.isTesting)()||(0,a.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 #y=(()=>dt7948.n(this.prototype,"trackDiscoursePainted",[n.action]))()}},3544:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(3742)},3551:(e,t,i)=>{"use strict";e.exports=i(42642)},3561:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(43050);let n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:r}=Object.prototype;function a(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=n[r.call(e)]||"object";return"function"===t?s.default.detect(e)&&(t="class"):"object"===t&&(e instanceof Error?t="error":e instanceof s.default?t="instance":e instanceof Date&&(t="date")),t}},3605:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(88192),n=i(73728),r=i(70508);class a extends n.default{userActionType=(()=>s.default.TYPES.likes_received)();titleToken(){return(0,r.i18n)("user_action_groups.1")}}},3654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(43248);class n extends s.default{queryParams=(()=>[...Object.keys(s.queryParams),{categoryParam:"category"}])()}},3689:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(93317),n=i(73326),r=i(95112),a=i(75093),o=i(57079),l=i(77762),u=i(53329),d=i(28353),c=i(47920),p=i(71848),h=i(63538),m=i(38069),g=i(10458),f=i(47784),_=i(14051),y=i(11837),b=i(77982),w=i(35697),k=i(70508),T=i(32045),S=i(1519);class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"userStatus",[a.service]))();#tb=(()=>void dt7948.i(this,"userStatus"))();showNameAndGroup=!0;showGlyph=!0;constructor(){super(...arguments),this.#tv()}willDestroy(){super.willDestroy(...arguments),this.#tw()}get suppressSimilarName(){return(0,b.applyValueTransformer)("post-meta-data-poster-name-suppress-similar-name",!0,{post:this.args.post,name:this.name})}get name(){return(0,f.default)(this.args.post)}get nameFirst(){return this.name===this.args.post.name}get primaryGroupHref(){return(0,y.default)(`/g/${this.args.post.primary_group_name}`)}get shouldDisplaySecondName(){return this.args.post.name&&this.siteSettings.display_name_on_posts&&this.#tk(this.args.post.name)!==this.#tk(this.args.post.username)}get user(){return this.args.post.user}get titleClassNames(){let e=[this.args.post.user_title];return this.args.post.title_is_group&&this.args.post.primary_group_name&&e.push(this.args.post.primary_group_name),e.map(e=>`user-title--${e.replace(/\s+/g,"-").toLowerCase()}`)}get additionalClasses(){return(0,b.applyValueTransformer)("poster-name-class",[],{user:this.user})}refreshUserStatus(){this.#tw(),this.#tv()}static #n=(()=>dt7948.n(this.prototype,"refreshUserStatus",[_.bind]))();withBadgeDescription(e){return e.description=(0,k.i18n)("post.badge_granted_tooltip",{username:this.args.post.username,badge_name:e.name}),e}static #a=(()=>dt7948.n(this.prototype,"withBadgeDescription",[_.bind]))();#tk(e){return this.suppressSimilarName?e.toLowerCase().replace(/[\s._-]/g,""):e}#tv(){this.userStatus.isEnabled&&this.user?.statusManager?.trackStatus()}#tw(){this.userStatus.isEnabled&&this.user?.statusManager?.stopTrackingStatus()}static #l=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"e9lRZyu4",block:'[[[1,"\\n "],[11,0],[24,0,"names trigger-user-card"],[4,[32,0],[[30,0,["refreshUserStatus"]],[30,0,["user"]]],null],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["post-meta-data-poster-name",[28,[32,2],null,[["post"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,1],[15,0,[28,[32,3],["first",[52,[30,0,["nameFirst"]],"full-name","username"],[52,[30,1,["staff"]],"staff"],[52,[30,1,["admin"]],"admin"],[52,[30,1,["moderator"]],"moderator"],[52,[30,1,["group_moderator"]],"category-moderator"],[52,[30,1,["new_user"]],"new-user"],[52,[30,1,["primary_group_name"]],[28,[32,4],["group--",[30,1,["primary_group_name"]]],null]],[30,0,["additionalClasses"]]],null]],[12],[1,"\\n"],[1," "],[8,[32,1],null,[["@name","@outletArgs"],["post-meta-data-poster-name-user-link",[28,[32,2],null,[["position","name","post"],["first",[30,0,["name"]],[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[30,0,["name"]]],[1,"\\n"],[41,[30,0,["showGlyph"]],[[[41,[28,[32,6],[[30,1,["moderator"]],[30,1,["group_moderator"]]],null],[[[1," "],[1,[28,[32,7],["shield-halved"],[["title"],[[28,[32,8],["user.moderator_tooltip"],null]]]]],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["showNameAndGroup"]],[[[41,[30,0,["shouldDisplaySecondName"]],[[[1," "],[10,1],[15,0,[28,[32,3],["second",[52,[30,0,["nameFirst"]],"username","full-name"]],null]],[12],[1,"\\n"],[1," "],[8,[32,1],null,[["@name","@outletArgs"],["post-meta-data-poster-name-user-link",[28,[32,2],null,[["position","name","post"],["second",[30,0,["name"]],[30,1]]]]]],[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n"],[41,[30,0,["nameFirst"]],[[[1," "],[1,[28,[32,9],[[30,1,["username"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["user_title"]],[[[1," "],[10,1],[15,0,[28,[32,3],["user-title",[30,0,["titleClassNames"]]],null]],[12],[1,"\\n"],[41,[28,[32,10],[[30,1,["primary_group_name"]],[30,1,["title_is_group"]]],null],[[[1," "],[8,[32,11],null,[["@name","@href"],[[30,1,["primary_group_name"]],[30,0,["primaryGroupHref"]]]],[["default"],[[[[1,"\\n "],[1,[30,1,["user_title"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["user_title"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,10],[[30,0,["userStatus","isEnabled"]],[30,0,["user","status"]]],null],[[[1," "],[10,1],[14,0,"user-status-message-wrap"],[12],[1,"\\n "],[8,[32,12],null,[["@status"],[[30,0,["user","status"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["badgesGranted"]],[[[1," "],[10,1],[14,0,"user-badge-buttons"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["badgesGranted"]]],null]],null],"id",[[[1," "],[10,1],[15,0,[28,[32,4],["user-badge-button-",[30,2,["slug"]]],null]],[12],[1,"\\n "],[8,[32,13],null,[["@badge","@user","@showName"],[[28,[30,0,["withBadgeDescription"]],[[30,2]],null],[30,1,["user"]],false]],null],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@post","badge"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/meta-data/poster-name.js",scope:()=>[r.default,u.default,g.default,h.default,n.concat,c.default,o.or,m.default,k.i18n,w.formatUsername,o.and,l.default,p.default,d.default],isStrictMode:!0}),this))()}},3742:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(14013);class r extends s.default{dialogInstance=null;message=null;title=null;titleElementId=null;type=null;bodyComponent=null;bodyComponentModel=null;confirmButtonIcon=null;confirmButtonLabel=null;confirmButtonClass=null;confirmButtonDisabled=!1;cancelButtonLabel=null;cancelButtonClass=null;shouldDisplayCancel=null;didConfirm=null;didCancel=null;buttons=null;class=null;_confirming=!1;async dialog(e){let{message:t,bodyComponent:i,bodyComponentModel:s,type:n,title:r,confirmButtonClass:a="btn-primary",confirmButtonIcon:o,confirmButtonLabel:l="ok_value",confirmButtonDisabled:u=!1,cancelButtonClass:d="btn-default",cancelButtonLabel:c="cancel_value",shouldDisplayCancel:p,didConfirm:h,didCancel:m,buttons:g}=e;this.setProperties({show:!0,message:t,bodyComponent:i,bodyComponentModel:s,type:n,title:r,titleElementId:null!==r?"dialog-title":null,confirmButtonClass:a,confirmButtonDisabled:u,confirmButtonIcon:o,confirmButtonLabel:l,cancelButtonClass:d,cancelButtonLabel:c,shouldDisplayCancel:p,didConfirm:h,didCancel:m,buttons:g,class:e.class})}alert(e){return"string"==typeof e?this.dialog({message:e,type:"alert"}):this.dialog({...e,type:"alert"})}confirm(e){return this.dialog({...e,shouldDisplayCancel:!0,buttons:null,type:"confirm"})}notice(e){return this.dialog({message:e,type:"notice"})}yesNoConfirm(e){return this.confirm({...e,confirmButtonLabel:"yes_value",cancelButtonLabel:"no_value"})}deleteConfirm(e){return this.confirm({...e,confirmButtonClass:"btn-danger",confirmButtonLabel:e.confirmButtonLabel||"delete"})}reset(){!this._confirming&&this.didCancel&&this.didCancel(),this.setProperties({show:!1,message:null,bodyComponent:null,bodyComponentModel:null,type:null,dialogInstance:null,title:null,titleElementId:null,confirmButtonDisabled:!1,confirmButtonIcon:null,confirmButtonLabel:null,cancelButtonClass:null,cancelButtonLabel:null,shouldDisplayCancel:null,didConfirm:null,didCancel:null,buttons:null,class:null,_confirming:!1})}didConfirmWrapped(){let e=this.didConfirm;this._confirming=!0,this.reset(),e&&e()}static #e=(()=>dt7948.n(this.prototype,"didConfirmWrapped",[n.bind]))();cancel(){this.reset()}static #i=(()=>dt7948.n(this.prototype,"cancel",[n.bind]))();enableConfirmButton(){this.set("confirmButtonDisabled",!1)}static #n=(()=>dt7948.n(this.prototype,"enableConfirmButton",[n.bind]))();hide(){this.reset()}static #a=(()=>dt7948.n(this.prototype,"hide",[n.bind]))()}},3746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(9032),n=i(75370),r=i(57079),a=i(85074),o=i(13355),l=i(21726),u=i(12415),d=i(88488),c=i(53329),p=i(38069),h=i(10458),m=i(31789),g=i(70508),f=i(23897),_=i(32045),y=i(1519),b=i(69522);let w=(0,n.default)((0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"yntMWmZY",block:'[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["before-group-container","div",[28,[32,1],null,[["group"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[15,0,[29,["container group group-",[30,1,["model","name"]]]]],[12],[1,"\\n"],[41,[30,1,["showTooltip"]],[[[1," "],[10,0],[14,0,"group-delete-tooltip"],[12],[1,"\\n "],[10,2],[12],[1,[28,[32,2],["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,[32,3],[[30,1,["model","flair_icon"]],[30,1,["model","flair_url"]],[30,1,["model","flair_bg_color"]]],null],[[[1," "],[10,0],[14,0,"group-avatar-flair"],[12],[1,"\\n "],[8,[32,4],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["model","name"]],[28,[32,3],[[30,1,["model","flair_icon"]],[30,1,["model","flair_url"]]],null],[30,1,["model","flair_bg_color"]],[30,1,["model","flair_color"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"group-info-names"],[12],[1,"\\n "],[8,[32,5],null,[["@group"],[[30,1,["model"]]]],null],[1,"\\n\\n"],[41,[28,[32,6],[[30,1,["canManageGroup"]],[30,1,["model","automatic"]]],null],[[[1," "],[8,[32,7],[[24,0,"group-automatic-tooltip"]],null,[["trigger","content"],[[[[1,"\\n "],[1,[28,[32,8],["gear"],null]],[1,"\\n "],[1,[28,[32,2],["admin.groups.manage.membership.automatic"],null]],[1,"\\n "]],[]],[[[1,"\\n "],[1,[28,[32,2],["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,[32,9],null,[["@tagName","@model","@showLogin"],["",[30,1,["model"]],[28,[32,10],["showLogin"],null]]],null],[1,"\\n\\n"],[41,[30,1,["currentUser","admin"]],[[[41,[30,1,["model","automatic"]],[[[1," "],[8,[32,11],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,1,["toggleDeleteTooltip"]],"circle-question","admin.groups.delete"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,11],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,1,["destroyGroup"]],[30,1,["destroying"]],"trash-can","admin.groups.delete"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,1,["displayGroupMessageButton"]],[[[1," "],[8,[32,11],[[24,0,"btn-primary group-message-button"]],[["@action","@icon","@label"],[[30,1,["messageGroup"]],"envelope","groups.message"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["group-details-after","div",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["model","bio_cooked"]],[[[1," "],[10,0],[14,0,"group-bio"],[12],[1,"\\n "],[1,[28,[32,12],[[30,1,["model","bio_cooked"]]],null]],[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 "],[8,[32,13],null,[["@group","@currentPath","@tabs"],[[30,1,["model"]],[30,1,["currentPath"]],[30,1,["tabs"]]]],null],[1,"\\n "],[13],[1,"\\n "],[46,[28,[31,2],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group.js",scope:()=>[c.default,h.default,g.i18n,r.or,a.default,l.default,r.and,f.default,p.default,u.default,m.default,o.default,s.htmlSafe,d.default],isStrictMode:!0}),(0,b.default)(void 0,void 0)))},3750:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(39826),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"X46oBiVi",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"fullscreen-table-modal -max"]],[["@title","@closeModal"],[[28,[32,1],["fullscreen_table.view_table"],null],[30,1]]],[["body"],[[[[1,"\\n "],[1,[30,2,["tableHtml"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/fullscreen-table.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,o.default)(void 0,"fullscreen-table:FullscreenTable"))},3912:(e,t,i)=>{"use strict";i.r(t),(0,i(88627).createWidget)("menu-panel",{tagName:"div.menu-panel",template:function(e,t){var i=[];i.push(` `);var s=[];s.push(` `);var n=[];return n.push(` `),n.push(this.attrs.contents()),n.push(` `),s.push(virtualDom.h("div",{className:"panel-body-contents",attributes:{}},n)),s.push(` `),i.push(virtualDom.h("div",{className:"panel-body",attributes:{}},s)),i.push(` `),i},buildAttributes(e){if(e.maxWidth)return{"data-max-width":e.maxWidth}}})},3923:(e,t,i)=>{"use strict";var s=i(54707),n=i(31265),r=i(81531),a=Object.prototype.toString,o=Object.prototype.hasOwnProperty,l={};l[0]="\\0",l[7]="\\a",l[8]="\\b",l[9]="\\t",l[10]="\\n",l[11]="\\v",l[12]="\\f",l[13]="\\r",l[27]="\\e",l[34]='\\"',l[92]="\\\\",l[133]="\\N",l[160]="\\_",l[8232]="\\L",l[8233]="\\P";var u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],d=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=s.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var i,s,n,r,a,l,u;if(null===t)return{};for(n=0,i={},r=(s=Object.keys(t)).length;n=55296&&s<=56319&&t+1=56320&&i<=57343?(s-55296)*1024+i-56320+65536:s}function b(e){return/^\n* /.test(e)}function w(e,t){var i=b(e)?String(t):"",s=` `===e[e.length-1];return i+(s&&(` `===e[e.length-2]||` `===e)?"+":s?"":"-")+` `}function k(e){return` `===e[e.length-1]?e.slice(0,-1):e}function T(e,t){if(""===e||" "===e[0])return e;for(var i,s,n=/ [^ ]/g,r=0,a=0,o=0,l="";i=n.exec(e);)(o=i.index)-r>t&&(s=a>r?a:o,l+=` `+e.slice(r,s),r=s+1),a=o;return l+=` `,e.length-r>t&&a>r?l+=e.slice(r,a)+` `+e.slice(a+1):l+=e.slice(r),l.slice(1)}function S(e,t,i,s){var n,r,a,o="",l=e.tag;for(n=0,r=i.length;n tag resolver accepts not "'+c+'" style');e.dump=s}return!0}return!1}function A(e,t,i,r,o,c,f){e.tag=null,e.dump=i,C(e,i,!1)||C(e,i,!0);var D=a.call(e.dump),M=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var x,E,L,P="[object Object]"===D||"[object Array]"===D;if(P&&(L=-1!==(E=e.duplicates.indexOf(i))),(null!==e.tag&&"?"!==e.tag||L||2!==e.indent&&t>0)&&(o=!1),L&&e.usedDuplicates[E])e.dump="*ref_"+E;else{if(P&&L&&!e.usedDuplicates[E]&&(e.usedDuplicates[E]=!0),"[object Object]"===D)r&&0!==Object.keys(e.dump).length?(!function(e,t,i,s){var r,a,o,l,u,d,c="",p=e.tag,m=Object.keys(i);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new n("sortKeys must be a boolean or a function");for(r=0,a=m.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=h(e,t)),A(e,t+1,l,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,c+=d));e.tag=p,e.dump=c||"{}"}(e,t,e.dump,o),L&&(e.dump="&ref_"+E+e.dump)):(!function(e,t,i){var s,n,r,a,o,l="",u=e.tag,d=Object.keys(i);for(s=0,n=d.length;s1024&&(o+="? "),o+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),A(e,t,a,!1,!1)&&(o+=e.dump,l+=o));e.tag=u,e.dump="{"+l+"}"}(e,t,e.dump),L&&(e.dump="&ref_"+E+" "+e.dump));else if("[object Array]"===D)r&&0!==e.dump.length?(e.noArrayIndent&&!f&&t>0?S(e,t-1,e.dump,o):S(e,t,e.dump,o),L&&(e.dump="&ref_"+E+e.dump)):(!function(e,t,i){var s,n,r,a="",o=e.tag;for(s=0,n=i.length;s=65536?l+=2:l++){if(!g(u=y(e,l)))return 5;w=w&&_(u,d,o),d=u}else{for(l=0;l=65536?l+=2:l++){if(10===(u=y(e,l)))c=!0,h&&(p=p||l-f-1>s&&" "!==e[f+1],f=l);else if(!g(u))return 5;w=w&&_(u,d,o),d=u}p=p||h&&l-f-1>s&&" "!==e[f+1]}return c||p?i>9&&b(e)?5:a?2===r?5:2:p?4:3:!w||a||n(e)?2===r?5:2:1}(t,r||e.flowLevel>-1&&i>=e.flowLevel,e.indent,c,function(t){return function(e,t){var i,s;for(i=0,s=e.implicitTypes.length;i"+w(t,e.indent)+k(p(function(e,t){for(var i,s,n=/(\n+)([^\n]*)/g,r=function(){var i=e.indexOf(` `);return n.lastIndex=i=-1!==i?i:e.length,T(e.slice(0,i),t)}(),a=` `===e[0]||" "===e[0];s=n.exec(e);){var o=s[1],l=s[2];i=" "===l[0],r+=o+(a||i||""===l?"":` `)+T(l,t),a=i}return r}(t,c),o));case 5:return'"'+function(e){for(var t,i="",r=0,a=0;a=65536?a+=2:a++)!(t=l[r=y(e,a)])&&g(r)?(i+=e[a],r>=65536&&(i+=e[a+1])):i+=t||function(e){var t,i,r;if(t=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else if(e<=0xffffffff)i="U",r=8;else throw new n("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+s.repeat("0",r-t.length)+t}(r);return i}(t,c)+'"';default:throw new n("impossible error: invalid scalar style")}}()}(e,e.dump,t,c,M);else{if("[object Undefined]"===D||e.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+D)}null!==e.tag&&"?"!==e.tag&&(x=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),x="!"===e.tag[0]?"!"+x:"tag:yaml.org,2002:"===x.slice(0,18)?"!!"+x.slice(18):"!<"+x+">",e.dump=x+" "+e.dump)}return!0}e.exports.dump=function(e,t){var i=new c(t=t||{});i.noRefs||function(e,t){var i,s,n=[],r=[];for(function e(t,i,s){var n,r,a;if(null!==t&&"object"==typeof t)if(-1!==(r=i.indexOf(t)))-1===s.indexOf(r)&&s.push(r);else if(i.push(t),Array.isArray(t))for(r=0,a=t.length;r{var s=i(60790);function n(e){this.text=String(e)}e.exports=n,n.prototype.version=s,n.prototype.type="VirtualText"},4158:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(86981),r=i(75093),a=i(13355),o=i(21962),l=i(25217),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>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 l.default.resetRecentSearches()).success&&this.currentUser.recent_searches.clear()}static #n=(()=>dt7948.n(this.prototype,"clearRecent",[n.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #a=(()=>dt7948.n(this.prototype,"onKeyup",[n.action]))();async loadRecentSearches(){let e=await l.default.loadRecentSearches();e.success&&e.recent_searches?.length&&this.currentUser.set("recent_searches",e.recent_searches)}static #l=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"FuX6bSj1",block:'[[[1,"\\n"],[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,[32,0],["search.recent"],null]],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-flat clear-recent-searches"]],[["@title","@icon","@action"],["search.clear_recent","xmark",[30,0,["clearRecent"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["currentUser","recent_searches"]]],null]],null],null,[[[1," "],[8,[32,2],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],[1," "]],["slug","@closeSearchMenu","@searchTermChanged"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/recent-searches.js",scope:()=>[u.i18n,a.default,o.default],isStrictMode:!0}),this))()}},4193:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(50890),n=i(86981),r=i(91558),a=i(24813),o=i(75093),l=i(82208),u=i(16356),d=i(90343),c=i(714),p=i(14051),h=i(64634),m=i(11837),g=i(77296),f=i(74627),_=i(70508);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#tT=(()=>void dt7948.i(this,"user"))();static #a=(()=>dt7948.g(this.prototype,"canEditName",[(0,c.setting)("enable_names")]))();#tS=(()=>void dt7948.i(this,"canEditName"))();static #l=(()=>dt7948.g(this.prototype,"canSelectUserStatus",[(0,c.setting)("enable_user_status")]))();#tC=(()=>void dt7948.i(this,"canSelectUserStatus"))();static #d=(()=>dt7948.g(this.prototype,"canModeratorsViewEmails",[(0,c.setting)("moderators_view_emails")]))();#tA=(()=>void dt7948.i(this,"canModeratorsViewEmails"))();static #p=(()=>dt7948.g(this.prototype,"canDownloadPosts",[(0,r.alias)("user.viewingSelf")]))();#tD=(()=>void dt7948.i(this,"canDownloadPosts"))();static #m=(()=>dt7948.g(this.prototype,"cannotDeleteAccount",[(0,r.not)("currentUser.can_delete_account")]))();#tM=(()=>void dt7948.i(this,"cannotDeleteAccount"))();static #f=(()=>dt7948.g(this.prototype,"deleteDisabled",[(0,r.or)("model.isSaving","deleting","cannotDeleteAccount")]))();#tx=(()=>void dt7948.i(this,"deleteDisabled"))();static #y=(()=>dt7948.g(this.prototype,"canSelectTitle",[(0,r.gt)("model.availableTitles.length",0)]))();#tE=(()=>void dt7948.i(this,"canSelectTitle"))();static #v=(()=>dt7948.g(this.prototype,"canSelectFlair",[(0,r.gt)("model.availableFlairs.length",0)]))();#tL=(()=>void dt7948.i(this,"canSelectFlair"))();static #k=(()=>dt7948.g(this.prototype,"disableConnectButtons",[(0,c.propertyNotEqual)("model.id","currentUser.id")]))();#tP=(()=>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 d.default(this.model.id,this.canModeratorsViewEmails,this.currentUser).canCheckEmails}static #S=(()=>dt7948.n(this.prototype,"canCheckEmails",[(0,n.computed)("model.id","currentUser.id")]))();nameInstructions(){return(0,_.i18n)(this.site.full_name_required_for_signup?"user.name.instructions_required":"user.name.instructions")}static #A=(()=>dt7948.n(this.prototype,"nameInstructions",[(0,p.default)()]))();canSelectPrimaryGroup(e){return e.length>0&&this.siteSettings.user_selected_primary_groups}static #M=(()=>dt7948.n(this.prototype,"canSelectPrimaryGroup",[(0,p.default)("model.filteredGroups")]))();associatedAccountsLoaded(e){return void 0!==e}static #E=(()=>dt7948.n(this.prototype,"associatedAccountsLoaded",[(0,p.default)("model.associated_accounts")]))();authProviders(e){return(0,f.findAll)().map(t=>({method:t,account:e.find(e=>{let{name:i}=e;return i===t.name})})).filter(e=>e.account||e.method.can_connect)}static #P=(()=>dt7948.n(this.prototype,"authProviders",[(0,p.default)("model.associated_accounts.[]")]))();emails(e,t,i){let s=[];return e&&s.push(n.default.create({email:e,primary:!0,confirmed:!0})),t&&t.forEach(e=>{s.push(n.default.create({email:e,confirmed:!0}))}),i&&i.forEach(e=>{s.push(n.default.create({email:e}))}),s.sort((e,t)=>e.email.localeCompare(t.email))}static #I=(()=>dt7948.n(this.prototype,"emails",[(0,p.default)("model.email","model.secondary_emails.[]","model.unconfirmed_emails.[]")]))();canUpdateAssociatedAccounts(e,t,i){return!e&&!!t&&!i&&(0,f.findAll)().length>0}static #j=(()=>dt7948.n(this.prototype,"canUpdateAssociatedAccounts",[(0,p.default)("model.second_factor_enabled","canCheckEmails","model.is_anonymous")]))();canAddEmail(e,t){return e>0&&t}static #R=(()=>dt7948.n(this.prototype,"canAddEmail",[(0,p.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 #B=(()=>dt7948.n(this.prototype,"resendConfirmationEmail",[n.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 #H=(()=>dt7948.n(this.prototype,"showUserStatusModal",[n.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 #z=(()=>dt7948.n(this.prototype,"save",[n.action]))();setPrimaryEmail(e){this.model.setPrimaryEmail(e).catch(u.popupAjaxError)}static #$=(()=>dt7948.n(this.prototype,"setPrimaryEmail",[n.action]))();destroyEmail(e){this.model.destroyEmail(e)}static #V=(()=>dt7948.n(this.prototype,"destroyEmail",[n.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,a.next)(()=>{this.dialog.alert({message:(0,_.i18n)("user.deleted_yourself"),didConfirm:()=>g.default.redirectAbsolute((0,m.default)("/")),didCancel:()=>g.default.redirectAbsolute((0,m.default)("/"))})})},()=>{(0,a.next)(()=>this.dialog.alert((0,_.i18n)("user.delete_yourself_not_allowed"))),this.set("deleting",!1)})},{label:(0,_.i18n)("composer.cancel")}]})}static #W=(()=>dt7948.n(this.prototype,"delete",[n.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 #K=(()=>dt7948.n(this.prototype,"revokeAccount",[n.action]))();connectAccount(e){e.doLogin({reconnect:!0})}static #G=(()=>dt7948.n(this.prototype,"connectAccount",[n.action]))();exportUserArchive(){this.dialog.yesNoConfirm({message:(0,_.i18n)("user.download_archive.confirm"),didConfirm:()=>(0,h.exportUserArchive)()})}static #J=(()=>dt7948.n(this.prototype,"exportUserArchive",[n.action]))()}},4219:(e,t,i)=>{"use strict";i.r(t),i.d(t,{calculateFilterMode:()=>n,filterTypeForMode:()=>r});var s=i(23062);function n(e){let{category:t,filterType:i,noSubcategories:n}=e;return t?`c/${s.default.slugFor(t)}${n?"/none":""}/l/${i}`:i}function r(e){return e?.split("/").pop()}},4255:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(87367),n=i(16356),r=i(34472),a=i(27797);class o extends a.default{queryParams={nonce:{refreshModel:!0}};model(e){return r.default.data.has("2fa_challenge_data")?r.default.getAndRemove("2fa_challenge_data"):(0,s.ajax)("/session/2fa.json",{type:"GET",data:{nonce:e.nonce}}).catch(e=>{let t=(0,n.extractError)(e);if(t)return{error:t};throw e})}setupController(e,t){super.setupController(...arguments),e.resetState(),t.error&&(e.displayError(t.error),e.set("loadError",!0))}}},4258:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var s=i(8004),n=i(48459),r=i(21762),a=i(69408),o=i(26884),l=i(99489);function u(e){return(0,a.sb)(e)&&"fixed"!==(0,r.A)(e).position?e.offsetParent:null}function d(e){for(var t=(0,s.A)(e),i=u(e);i&&function(e){return["table","td","th"].indexOf((0,n.A)(e))>=0}(i)&&"static"===(0,r.A)(i).position;)i=u(i);return i&&("html"===(0,n.A)(i)||"body"===(0,n.A)(i)&&"static"===(0,r.A)(i).position)?t:i||function(e){var t=/firefox/i.test((0,l.A)());if(/Trident/i.test((0,l.A)())&&(0,a.sb)(e)&&"fixed"===(0,r.A)(e).position)return null;var i=(0,o.A)(e);for((0,a.Ng)(i)&&(i=i.host);(0,a.sb)(i)&&0>["html","body"].indexOf((0,n.A)(i));){var s=(0,r.A)(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}},4302:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(70508),n=i(56162),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[n.default,s.i18n],isStrictMode:!0}),(0,o.default)(void 0,"posters-cell:PostersCell"))},4338:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(85024),r=i(35100),a=i(72516),o=i(87542);let l=dt7948.c(class extends a.default{content=(()=>r.topicLevels)();get i18nPostfix(){return"private_message"===this.topic.archetype?"_pm":""}static #e=(()=>dt7948.n(this.prototype,"i18nPostfix",[(0,s.computed)("topic.archetype")]))()},[(0,o.pluginApiIdentifiers)("topic-notifications-options"),(0,o.selectKitOptions)({i18nPrefix:"topic.notifications",i18nPostfix:"i18nPostfix",showCaret:!0}),(0,n.classNames)("topic-notifications-options")])},4391:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i(73326),n=i(96791),r=i(70568),a=i(75370),o=i(57079),l=i(13355),u=i(52474),d=i(27149),c=i(53329),p=i(9616),h=i(51318),m=i(71848),g=i(23704),f=i(62937),_=i(38069),y=i(31352),b=i(10458),w=i(31789),k=i(70508),T=i(7749),S=i(94041),C=i(32045),A=i(1519),D=i(69522);let M=(0,a.default)((0,C.setComponentTemplate)((0,A.createTemplateFactory)({id:"5DHPnEtA",block:'[[[1,"\\n "],[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,[32,0],["user.username.title"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@user"],[[30,1,["model"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["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,[32,0],["user.avatar.title"],null]],[13],[1,"\\n "],[10,"input"],[14,1,"user-avatar-uploads"],[15,"data-custom-avatar-upload-id",[30,1,["model","custom_avatar_upload_id"]]],[15,"data-system-avatar-upload-id",[30,1,["model","system_avatar_upload_id"]]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[1," "],[1,[28,[32,2],[[30,1,["model"]],"huge"],null]],[1,"\\n "],[8,[32,3],[[24,1,"edit-avatar"],[24,0,"btn-default pad-left"]],[["@action","@icon"],[[28,[32,4],[[28,[32,5],["showAvatarSelector"],null],[30,1,["model"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.email.title"],null]],[13],[1,"\\n"],[41,[30,1,["model","email"]],[[[41,[30,1,["siteSettings","enable_secondary_emails"]],[[[1," "],[10,0],[14,0,"emails"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["emails"]]],null]],null],null,[[[1," "],[10,0],[14,0,"row email"],[12],[1,"\\n "],[10,0],[14,0,"email-first"],[12],[1,[30,2,["email"]]],[13],[1,"\\n "],[10,0],[14,0,"email-second"],[12],[1,"\\n"],[41,[30,2,["primary"]],[[[1," "],[10,1],[14,0,"primary"],[12],[1,"\\n "],[1,[28,[32,0],["user.email.primary_label"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[51,[30,2,["confirmed"]]],[[[1," "],[10,1],[14,0,"unconfirmed"],[12],[1,"\\n "],[1,[28,[32,0],["user.email.unconfirmed_label"],null]],[1,"\\n "],[13],[1,"\\n •\\n"],[41,[30,2,["resending"]],[[[1," "],[10,1],[12],[1,[28,[32,0],["user.email.resending_label"],null]],[13],[1,"\\n"]],[]],[[[41,[30,2,["resent"]],[[[1," "],[10,1],[12],[1,[28,[32,0],["user.email.resent_label"],null]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[24,0,"resend-email-confirmation"],[24,4,"button"],[4,[32,6],["click",[28,[32,4],[[30,1,["resendConfirmationEmail"]],[30,2]],null]],null],[12],[1,"\\n "],[1,[28,[32,0],["user.email.resend_label"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,1,["model","can_edit_email"]],[[[1," "],[8,[32,7],null,[["@email","@setPrimaryEmail","@destroyEmail"],[[30,2],[30,1,["setPrimaryEmail"]],[30,1,["destroyEmail"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["canAddEmail"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,8],null,[["@route","@query"],["preferences.email",[28,[32,9],null,[["new"],[1]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,10],["plus"],null]],[1,"\\n "],[1,[28,[32,0],["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,1,["model","email"]]],[13],[1,"\\n"],[41,[30,1,["model","can_edit_email"]],[[[1," "],[8,[32,8],[[24,0,"btn btn-default btn-small btn-icon pad-left no-text"]],[["@route"],["preferences.email"]],[["default"],[[[[1,"\\n "],[1,[28,[32,10],["pencil"],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,1,["siteSettings","auth_overrides_email"]],[[[1," "],[1,[28,[32,0],["user.email.auth_override_instructions"],null]],[1,"\\n"]],[]],null],[1," "],[1,[28,[32,0],["user.email.instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-default"]],[["@action","@title","@icon","@label"],[[28,[32,4],[[28,[32,5],["checkEmail"],null],[30,1,["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,1,["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,[32,0],["user.associated_accounts.title"],null]],[13],[1,"\\n"],[41,[30,1,["associatedAccountsLoaded"]],[[[1," "],[10,"table"],[14,0,"associated-accounts"],[12],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["authProviders"]]],null]],null],null,[[[41,[30,3,["account"]],[[[1," "],[10,"tr"],[15,0,[29,[[28,[32,11],[[30,3,["method","name"]]],null],"\\n account-connected"]]],[12],[1,"\\n "],[10,"td"],[14,0,"associated-account__icon"],[12],[1,"\\n"],[41,[30,3,["method","isGoogle"]],[[[1," "],[8,[32,12],null,null,null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,10],[[28,[32,13],[[30,3,["method","icon"]],"user"],null]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"associated-account__name"],[12],[1,"\\n"],[41,[30,3,["method","provider_url"]],[[[1," "],[10,3],[15,6,[30,3,["method","provider_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,"\\n "],[1,[30,3,["method","prettyName"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,3,["method","prettyName"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"associated-account__description"],[12],[1,"\\n "],[1,[30,3,["account","description"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"associated-account__actions"],[12],[1,"\\n"],[41,[30,3,["method","can_revoke"]],[[[1," "],[8,[32,3],[[24,0,"btn-danger no-text"]],[["@action","@title","@icon","@disabled"],[[28,[32,4],[[30,1,["revokeAccount"]],[30,3,["account"]]],null],"user.associated_accounts.revoke","trash-can",[28,[32,14],[[30,1,["revoking"]],[30,3,["method","name"]]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"tr"],[15,0,[28,[32,11],[[30,3,["method","name"]]],null]],[12],[1,"\\n "],[10,"td"],[15,0,[29,["associated-account__icon\\n ",[28,[32,11],[[30,3,["method","name"]]],null]]]],[12],[1,"\\n"],[41,[30,3,["method","isGoogle"]],[[[1," "],[8,[32,12],null,null,null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,10],[[28,[32,13],[[30,3,["method","icon"]],"user"],null]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,0],[14,0,"associated-account__name"],[12],[1,"\\n"],[41,[30,3,["method","provider_url"]],[[[1," "],[10,3],[15,6,[30,3,["method","provider_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,"\\n "],[1,[30,3,["method","prettyName"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,3,["method","prettyName"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"associated-account__description"],[12],[1,"\\n "],[1,[30,3,["account","description"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"associated-account__actions"],[12],[1,"\\n"],[41,[30,3,["method","can_connect"]],[[[1," "],[8,[32,3],[[24,0,"btn-primary"]],[["@action","@label","@icon","@disabled"],[[28,[32,4],[[30,1,["connectAccount"]],[30,3,["method"]]],null],"user.associated_accounts.connect","plug",[30,1,["disableConnectButtons"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["user.associated_accounts.not_connected"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@action","@title","@icon","@label"],[[28,[32,4],[[28,[32,5],["checkEmail"],null],[30,1,["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,1,["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,[32,0],["user.name.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,1,["model","can_edit_name"]],[[[1," "],[8,[32,15],null,[["@value","@classNames","@maxlength"],[[30,1,["newNameInput"]],"input-xxlarge","255"]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[30,1,["model","name"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[30,1,["nameInstructions"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.title.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,16],null,[["@value","@content","@onChange","@options"],[[30,1,["newTitleInput"]],[30,1,["model","availableTitles"]],[28,[32,4],[[28,[31,4],[[30,1,["newTitleInput"]]],null]],null],[28,[32,9],null,[["none"],["user.title.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.title.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.flair.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,17],null,[["@value","@content","@onChange","@options"],[[30,1,["newFlairGroupId"]],[30,1,["model","availableFlairs"]],[28,[32,4],[[28,[31,4],[[30,1,["newFlairGroupId"]]],null]],null],[28,[32,9],null,[["none"],["user.flair.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.flair.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.status.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,1,["newStatus"]],[[[1," "],[8,[32,18],null,[["@status","@showDescription"],[[30,1,["newStatus"]],true]],null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"static"],[12],[1,[28,[32,0],["user.status.not_set"],null]],[13],[1,"\\n"]],[]]],[1," "],[8,[32,3],[[24,0,"btn-default btn-small pad-left"]],[["@action","@icon"],[[28,[32,4],[[30,1,["showUserStatusModal"]],[30,1,["newStatus"]]],null],"pencil"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.primary_group.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,16],null,[["@value","@content","@options"],[[30,1,["newPrimaryGroupInput"]],[30,1,["model","filteredGroups"]],[28,[32,9],null,[["none"],["user.primary_group.none"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.download_archive.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-default btn-request-archive"]],[["@action","@label","@icon"],[[30,1,["exportUserArchive"]],"user.download_archive.button_text","download"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.download_archive.description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,19],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-account","div",[28,[32,20],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,19],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,20],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["canSaveUser"]],[[[1," "],[8,[32,21],null,[["@model","@action","@saved"],[[30,1,["model"]],[30,1,["save"]],[30,1,["saved"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,3],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,1,["delete"]],[30,1,["deleteDisabled"]],"trash-can","user.delete_account"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@controller","email","authProvider"],false,["unless","if","each","-track-array","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/account.js",scope:()=>[k.i18n,g.default,f.default,l.default,s.fn,w.default,n.on,u.default,r.LinkTo,s.hash,_.default,y.default,d.default,o.or,s.get,h.default,T.default,S.default,m.default,c.default,b.default,p.default],isStrictMode:!0}),(0,D.default)(void 0,void 0)))},4540:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(88192),n=i(73728),r=i(70508);class a extends n.default{userActionType=(()=>s.default.TYPES.links)();titleToken(){return(0,r.i18n)("user_action_groups.17")}}},4597:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(44460),n=i(70508);class r extends s.default{get shouldDisplay(){return!!this.currentUser?.can_review}get name(){return"review"}get route(){return"review"}get title(){return(0,n.i18n)("sidebar.sections.community.links.review.title")}get text(){return(0,n.i18n)(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.currentUser?.get("reviewable_count")>0)return(0,n.i18n)("sidebar.sections.community.links.review.pending_count",{count:this.currentUser.reviewable_count})}get defaultPrefixValue(){return"flag"}}},4657:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(44460),n=i(70508);class r extends s.default{get name(){return"users"}get route(){return"users"}get title(){return(0,n.i18n)("sidebar.sections.community.links.users.title")}get text(){return(0,n.i18n)(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_user_directory&&(this.currentUser||!this.siteSettings.hide_user_profiles_from_public)}get defaultPrefixValue(){return"users"}}},4725:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(93317),n=i(86981),r=i(96848),a=i(75093),o=i(39826),l=i(72891),u=i(54081),d=i(70508),c=i(32045),p=i(1519);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"session",[a.service]))();#tF=(()=>void dt7948.i(this,"session"))();closeModal(){this.codeBlockButtons.cleanup(),this.args.closeModal()}static #n=(()=>dt7948.n(this.prototype,"closeModal",[n.action]))();applyCodeblockButtons(e){let t=e.querySelector(".d-modal__body");(0,u.default)(t,this.siteSettings,this.session),this.codeBlockButtons=new l.default({showFullscreen:!1,showCopy:!0}),this.codeBlockButtons.attachToGeneric(t)}static #a=(()=>dt7948.n(this.prototype,"applyCodeblockButtons",[n.action]))();static #l=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"LFA+4sFc",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"fullscreen-code-modal -max"],[4,[32,2],[[30,0,["applyCodeblockButtons"]]],null]],[["@title","@closeModal"],[[28,[32,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 "]],[]]]]],[1,"\\n "]],["@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/fullscreen-code.js",scope:()=>[o.default,d.i18n,r.default],isStrictMode:!0}),this))()}},4736:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(85024),n=i(78771),r=i.n(n),a=i(92496),o=i(87542),l=i(32045),u=i(1519);let d=dt7948.c(class extends a.default{static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"e2lrTTEo",block:'[[[1,"\\n "],[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n"],[41,[30,0,["icons"]],[[[1," "],[10,0],[14,0,"future-date-input-selector-icons"],[12],[1,"\\n "],[42,[28,[31,2],[[28,[31,2],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[32,0],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[44,[[28,[32,1],[[30,0],[30,0,["selectKit","options","selectedNameComponent"]]],null]],[[[1," "],[8,[30,2],null,[["@tabindex","@item","@selectKit"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]]]],null],[1,"\\n"]],[2]]],[1,"\\n"],[41,[30,0,["selectedContent","timeFormatted"]],[[[1," "],[10,1],[14,0,"future-date-input-selector-datetime"],[12],[1,"\\n "],[1,[30,0,["selectedContent","timeFormatted"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,0],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n "],[13],[1,"\\n "]],["iconName","SelectedNameComponent"],false,["if","each","-track-array","let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/future-date-input-selector/future-date-input-selector-header.js",scope:()=>[r(),o.resolveComponent],isStrictMode:!0}),this))()},[(0,s.classNames)("future-date-input-selector-header")])},4759:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},i={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};return e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return(12===e&&(e=0),"ਰਾਤ"===t)?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})})},4820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(38069),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"Q0R1Ody6",block:'[[[1,"\\n "],[11,"button"],[17,1],[24,4,"button"],[24,0,"sidebar-section-link sidebar-row"],[12],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n "],[1,[28,[32,0],["ellipsis-vertical"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n "],[1,[28,[32,1],["sidebar.more"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["&attrs"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/more-section-trigger.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,o.default)(void 0,"more-section-trigger:MoreSectionTrigger"))},4821:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(27127),r=i(78444),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"RIO5KMdz",block:'[[[1,"\\n"],[41,[30,1,["model","stream","noContent"]],[[[1," "],[8,[32,0],null,[["@title","@body"],[[30,1,["model","emptyState","title"]],[30,1,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,1],null,[["@stream"],[[30,1,["model","stream"]]]],null],[1,"\\n "]],["@controller"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/stream.js",scope:()=>[n.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},4837:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(75093),r=i(85024),a=i(7953),o=i(7283),l=i.n(o),u=i(47993),d=i(87542),c=i(1519);let p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();bodyScrollLock=(()=>(0,a.modifier)(e=>{if(!this.site.mobileView)return;let t=u.locks.some(t=>t.targetElement.contains(e));return t&&(0,u.disableBodyScroll)(e),()=>{t&&(0,u.enableBodyScroll)(e)}}))();static #i=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"dw7pxEfZ",block:'[[[1,"\\n"],[41,[30,0,["collection","content","length"]],[[[1," "],[11,"ul"],[24,0,"select-kit-collection"],[24,"aria-live","polite"],[24,"role","menu"],[4,[30,0,["bodyScrollLock"]],null,null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["collection","content"]]],null]],null],null,[[[44,[[28,[32,0],[[30,0],[28,[32,1],[[30,0,["collection","identifier"]],[30,1],[30,0,["selectKit"]]],null]],null]],[[[1," "],[8,[30,3],null,[["@item","@index","@value","@selectKit"],[[30,1],[30,2],[30,0,["value"]],[30,0,["selectKit"]]]],null],[1,"\\n"]],[3]]]],[1,2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["item","index","RowComponent"],false,["if","each","-track-array","let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-collection.js",scope:()=>[d.resolveComponent,l()],isStrictMode:!0}),this))()},[(0,r.tagName)("")])},4846:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(28638),r=i(9861),a=i(63272),o=i(32045),l=i(1519);class u extends s.default{constructor(){super(...arguments),(0,a.default)("components/topic-list is deprecated, and should be replaced with components/topics-list/list",{id:"discourse.legacy-topic-list"})}static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"joqks+PX",block:'[[[1,"\\n"],[44,[[28,[32,0],[[32,1],[30,0,["args"]]],null]],[[[1," "],[8,[30,1],[[17,2]],null,null],[1,"\\n"]],[1]]],[1," "]],["CurriedComponent","&attrs"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list.js",scope:()=>[n.default,r.default],isStrictMode:!0}),this))()}},4877:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TextareaAutocompleteHandler:()=>C,default:()=>T});var s=i(64081),n=i(24813),r=i(75093),a=i(15383),o=i(41107),l=i.n(o),u=i(14051),d=i(97908),c=i(55798),p=i(76649),h=i(67698),m=i(57166),g=i(31408),f=i(35697),_=i(70508);let y="left",b=/^(\s*)([*-]|(\d+)\.)\s(\[[\sx]\]\s)?/,w={NONE:0,REMOVED:1,ADDED:2};function k(e,t){return"string"==typeof e?[e,e.length]:k(e(t))}class T{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #a=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();allowPreview=!0;eventPrefix;textarea;$textarea;autocompleteHandler;placeholder;constructor(e,t){let{markdownOptions:i,textarea:n,eventPrefix:r="composer"}=t;(0,s.setOwner)(this,e),this.placeholder=new A(e,this),this.eventPrefix=r,this.textarea=n,this.$textarea=l()(n),this.autocompleteHandler=new C(n),(0,h.generateLinkifyFunction)(i||{}).then(e=>{this._cachedLinkify=e})}get value(){return this.textarea.value}blurAndFocus(){this.textarea?.blur(),this.textarea?.focus({preventScroll:!0})}focus(){this.textarea.focus({preventScroll:!0})}insertBlock(e){this._addBlock(this.getSelected(),e)}insertText(e,t){this.addText(this.getSelected(),e,t)}getSelected(e,t){let i=this.value,s=this.textarea.selectionStart,n=this.textarea.selectionEnd;for(;n>s&&/\s/.test(i.charAt(n-1));)n--;if(e)for(;n>s&&/\s/.test(i.charAt(s));)s++;let r=i.substring(s,n),a=i.slice(0,s),o=i.slice(n);return t&&t.lineVal?{start:s,end:n,value:r,pre:a,post:o,lineVal:i.split(` `)[i.slice(0,this.textarea.selectionStart).split(` `).length-1]}:{start:s,end:n,value:r,pre:a,post:o}}selectText(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{scroll:!0};if(this.textarea.selectionStart=e,this.textarea.selectionEnd=e+t,!0===i.scroll||"number"==typeof i.scroll){let e="number"==typeof i.scroll?i.scroll:this.textarea.scrollTop;this.capabilities.isIOS||this.textarea.focus(),this.textarea.scrollTop=e}}replaceText(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.value,n=s.indexOf(e);if(-1===n)return;let r=(0,f.determinePostReplaceSelection)({selection:{start:this.textarea.selectionStart,end:this.textarea.selectionEnd},needle:{start:n,end:n+e.length},replacement:{start:n,end:n+t.length}});if(i.index&&i.regex){let e;if(!i.regex.global)throw Error("Regex must be global");let n=new RegExp(i.regex);for(let t=0;t<=i.index;t++)e=n.exec(s);e&&this._insertAt(e.index,e.index+e[0].length,t)}else this._insertAt(n,n+e.length,t);(i.forceFocus||this.textarea===document.activeElement)&&!i.skipNewSelection&&this.selectText(r.start,r.end-r.start)}applySurroundSelection(e,t,i,s){this.applySurround(this.getSelected(),e,t,i,s)}applySurround(e,t,i,s,n){let r=e.pre,a=e.post,o=i.length;if(e.start===e.end){if(0===o)return;let[n,a]=k(t),l=(0,_.i18n)(`composer.${s}`);this._insertAt(e.start,e.end,`${n}${l}${i}`),this.selectText(r.length+a,l.length)}else if(n&&!n.multiline){let[s,o]=k(t);n.useBlockMode&&e.value.split(` `).length>1&&(s+=` `,o+=1,i=` ${i}`),r.slice(-o)===s&&a.slice(0,i.length)===i?(this._insertAt(e.start-o,e.end+i.length,e.value),this.selectText(e.start-o,e.value.length)):(this._insertAt(e.start,e.end,`${s}${e.value}${i}`),this.selectText(e.start+o,e.value.length))}else{let s=e.value.split(` `),[l,u]=k(t);if(1===s.length&&r.slice(-o)===i&&a.slice(0,u)===l)this._insertAt(e.start-u,e.end+o,e.value),this.selectText(e.start-u,e.value.length);else{let r=this._getMultilineContents(s,t,l,u,i,o,n);this._insertAt(e.start,e.end,r),1===s.length&&o>0?this.selectText(e.start+u,e.value.length):this.selectText(e.start,r.length)}}}_getMultilineContents(e,t,i,s,n,r,a){let o=w.NONE,l=a&&a.applyEmptyLines;return e.map(e=>{if(!l&&0===e.length)return e;if(o!==w.ADDED&&(e.slice(0,s)===i&&0===r||n.length&&e.slice(-r)===n)){if(o=w.REMOVED,0===r){let n=e.slice(s);return[i,s]=k(t,i),n}if(e.slice(-r)===n){let n=e.slice(s,-r);return[i,s]=k(t,i),n}}else if(o===w.NONE)o=w.ADDED;else if(o===w.REMOVED)return e;let a=`${i}${e}${n}`;return[i,s]=k(t,i),a}).join(` `)}_addBlock(e,t){if(0===(t=(t||"").trim()).length)return;let i=e.start,s=e.end,r=e.pre?.match(/\n*$/)?.[0]?.length;r&&(i-=r),e.pre.length>0&&(t=` ${t}`);let a=e.post?.match(/^\n*/)?.[0]?.length;a&&(s+=a),t=e.post.length>0?`${t} `:`${t} `,this._insertAt(i,s,t),this.textarea.setSelectionRange(i+t.length,i+t.length),(0,n.schedule)("afterRender",this,this.blurAndFocus)}addText(e,t,i){i&&i.ensureSpace&&((e.pre+"").length>0&&!e.pre.match(/\s$/)&&(t=" "+t),(e.post+"").length>0&&!e.post.match(/^\s/)&&(t+=" ")),this._insertAt(e.start,e.end,t),this.blurAndFocus()}_insertAt(e,t,i){S(this.textarea,e,t,i)}extractTable(e){e.endsWith(` `)&&(e=e.substring(0,e.length-1));let t=!1;(e=e.split("")).forEach((i,s)=>{` `===i&&t&&(e[s]="\r"),'"'===i&&(e[s]="",t=!t)});let i=e.join("").replace(/\r/g,"
").split(` `);if(i.length>1){let e=i.map(e=>e.split(" ").length);if(e.reduce((t,i)=>t&&e[0]===i&&i>1)&&!(2===e[0]&&i[0].split(" ")[0].match(/^•$|^\d+.$/))){let t=[...Array(e[0])].map(()=>"---").join(" ");return i.splice(1,0,t),"|"+i.map(e=>e.split(" ").join("|")).join(`| |`)+`| `}}return null}isInside(e,t){let i=e.match(t);return i&&i.length%2}paste(e){let t=this.textarea===e.target;if(!t&&!(0,d.isTesting)())return;let{clipboard:i,canPasteHtml:s,canUpload:n}=(0,f.clipboardHelpers)(e,{siteSettings:this.siteSettings,canUpload:t}),r=i.getData("text/plain"),a=i.getData("text/html"),o=!1,l=this.getSelected(null,{lineVal:!0}),{pre:u,value:c,lineVal:p}=l,h=u.match(/[^\n]$/),m=this.#tI(u);if(r&&this.siteSettings.enable_rich_text_paste&&!h&&!m){r=r.replace(/\r/g,"");let e=this.extractTable(r);e&&(this.eventPrefix?this.appEvents.trigger(`${this.eventPrefix}:insert-text`,e):this.insertText(e),o=!0)}if(s&&r&&(s=h?!(p.match(/^```/)||this.isInside(u,/`/g)||p.match(/^ /)):!m),this._cachedLinkify&&r&&!o&&l.end>l.start&&!this._cachedLinkify.test(c)&&!c.match(/\[\/?[a-z =]+?\]/g)&&this._cachedLinkify.test(r)){let e=this._cachedLinkify.match(r)[0];e&&0===e.index&&e.lastIndex===e.raw.length&&(this.addText(l,`[${c}](${e.url})`),o=!0)}if(s&&!o){let e=(0,g.default)(a);(!r||r.lengthdt7948.n(this.prototype,"paste",[u.bind]))();_deindentLine(e,t,i){let s=0;for(let n=0;n{if(e.replace(/^\s+/,"").startsWith(`${t}.`)){let i=e.replace(`${t}`,`${t+1}`);return t+=1,i}return e}).join(` `)}#tI(e){return this.isInside(e,/(^|\n)```/g)}maybeContinueList(){let e=(0,f.caretPosition)(this.textarea),t=this.value,i=t.substring(0,e).split(` `),s=i[i.length-2],n=s?.match(b);if(!n||this.#tI(t.substring(0,e-1)))return;let r=n[0],a=n[1],o=n[2],l=!!n[4],u=parseInt(n[3],10),d=!isNaN(u),c=d?`${u+1}.`:o,p=`${c} ${l?"[ ] ":""}`,h=t.indexOf(` `,e);h<0&&(h=t.length);let m=t.substring(e,h);if(m.startsWith(p)&&(p=""),s.replace(r,"").trim().length>0||m.trim().length>0){let i,s=`${a}${p}`,n=t.substring(e),r=s.length;d&&!t.substring(e).match(/^\s*$/g)?(s+=this._updateListNumbers(t.substring(e),u+1),i=this.textarea.scrollTop,this.replaceText(t.substring(e,e+s.length),s,{skipNewSelection:!0})):this._insertAt(e,e,s),this.selectText(e+r,0,{scroll:i})}else{let t=e-` ${r}`.length;this._insertAt(t,e,""),this.selectText(t,0)}}indentSelection(e){let t,i;if(![y,"right"].includes(e))return;let s=this.getSelected(null,{lineVal:!0}),{lineVal:n}=s,r=s.value;(r.match(/^\t/gm)?.length||0)>(r.match(/^ /gm)?.length||0)?(t=1,i=" "):(i=" ",t=2);let a=RegExp(`^${i}+`),o=n.match(a),l=r.match(a);if(o){let e=l?l[0]:"";r=o[0].replace(e,"")+r}let u=r.split(` `).map(s=>e===y?this._deindentLine(s,i,t):`${Array(t+1).join(i)}${s}`).join(` `);return""!==u.trim()&&(this.replaceText(r,u,{skipNewSelection:!0}),this.selectText(this.value.indexOf(u),u.length)),!0}emojiSelected(e){let t=this.getSelected(),i=t.pre.match(/\B:(\w*)$/);if((0,a.isEmpty)(i))t.pre.match(/\S$/)?this.addText(t,` :${e}:`):this.addText(t,`:${e}:`);else{let s=i[1].length;this._insertAt(t.start-s,t.end,`${e}:`)}}static #d=(()=>dt7948.n(this.prototype,"emojiSelected",[u.bind]))();async inCodeBlock(){return await this.autocompleteHandler.inCodeBlock()}toggleDirection(){let e=this.$textarea.attr("dir")?this.$textarea.attr("dir"):(0,m.siteDir)();this.$textarea.attr("dir","ltr"===e?"rtl":"ltr").focus()}static #p=(()=>dt7948.n(this.prototype,"toggleDirection",[u.bind]))();applyList(e,t,i,s){if(e.value.includes(` `))this.applySurround(e,t,"",i,s);else{let[s,n]=k(t);e.start===e.end&&(e.value=(0,_.i18n)(`composer.${i}`));let r=e.value.startsWith(s)?e.value.slice(n):`${s}${e.value}`,a=e.pre.trim()&&` `,o=e.post.trim()&&` `,l=`${a}${r}${o}`,u=e.pre.length-e.pre.trimEnd().length,d=e.post.length-e.post.trimStart().length;this._insertAt(e.start-u,e.end+d,l),this.selectText(e.start+(a.length-u),r.length)}}static #m=(()=>dt7948.n(this.prototype,"applyList",[u.bind]))();formatCode(){let e=this.getSelected("",{lineVal:!0}),t=e.value,i=t.includes(` `),s=0===e.lineVal.trim().length,n="4-spaces-indent"===this.siteSettings.code_formatting_style;if(i){if(n)return this.applySurround(e," ","","code_text");let t=` `!==e.pre[-1]&&""!==e.pre?` `:"",i=` `!==e.post[0]?` `:"";return this.addText(e,`${t}\`\`\` ${e.value} \`\`\`${i}`)}if(0!==t.length||!s)return this.applySurround(e,"`","`","code_title");if(!n)return this.applySurround(e,`\`\`\` `,` \`\`\``,"paste_code_text");{let t=(0,_.i18n)("composer.code_text");return this._insertAt(e.start,e.end,` ${t}`),this.selectText(e.pre.length+4,t.length)}}static #f=(()=>dt7948.n(this.prototype,"formatCode",[u.bind]))();putCursorAtEnd(){this.capabilities.isIOS?(0,p.default)(this.textarea):(0,n.next)(()=>(0,p.default)(this.textarea))}autocomplete(e){this.$textarea.autocomplete(e instanceof Object?{textHandler:this.autocompleteHandler,...e}:e)}}function S(e,t,i,s){e.setSelectionRange(t,i),e.focus(),t!==i&&""===s?document.execCommand("delete",!1):document.execCommand("insertText",!1,s)}class C{textarea;$textarea;constructor(e){this.textarea=e,this.$textarea=l()(e)}getValue(){return this.textarea.value}replaceTerm(e,t,i){let s=" "===this.getValue().substring(t+1,t+2)?"":" ";S(this.textarea,e,t+1,i+s),(0,f.setCaretPosition)(this.textarea,e+1+i.trim().length)}getCaretPosition(){return(0,f.caretPosition)(this.textarea)}getCaretCoords(e){return this.$textarea.caretPosition({pos:e+1})}async inCodeBlock(){return await (0,f.inCodeBlock)(this.textarea.value??this.$textarea.val(),(0,f.caretPosition)(this.textarea))}}class A{static #e=(()=>dt7948.g(this.prototype,"composer",[r.service]))();#tN=(()=>void dt7948.i(this,"composer"))();textManipulation;#tj={};constructor(e,t){(0,s.setOwner)(this,e),this.textManipulation=t}#tO(e,t){let i=(0,_.i18n)("clipboard"),s=this.#tR(e,t),n=`[${(0,_.i18n)("uploading_filename",{filename:s||i})}]() `;return this.#tU()||(n=` ${n}`),n}#tU(){let e=this.textManipulation.textarea.selectionStart;return 0===e||` `===this.textManipulation.value.charAt(e-1)}#tR(e,t){let i=this.#tB(e),s=(0,c.default)(i),n=`\\[${(0,_.i18n)("uploading_filename",{filename:s+"(?:\\()?([0-9])?(?:\\))?"})}\\]\\(\\)`,r=RegExp(n,"g"),a=t.match(r);if(a){let e=a[a.length-1],t=new RegExp(n),s=t.exec(e)[1]?parseInt(t.exec(e)[1],10)+1:1;return`${i}(${s})`}return i}#tB(e){return e.name.replace(/\u200B-\u200D\uFEFF]/g,"")}insert(e){let t=this.#tO(e,this.composer.model.reply);this.textManipulation.insertText(t),this.#tj[e.id]={uploadPlaceholder:t}}progress(e){let t=this.#tj[e.id];t.processingPlaceholder=`[${(0,_.i18n)("processing_filename",{filename:e.name})}]() `,this.textManipulation.replaceText(t.uploadPlaceholder,t.processingPlaceholder),this.textManipulation.replaceText(t.uploadPlaceholder.replace("...","…"),t.processingPlaceholder)}progressComplete(e){let t=this.#tj[e.id];this.textManipulation.replaceText(t.processingPlaceholder,t.uploadPlaceholder)}cancelAll(){Object.values(this.#tj).forEach(e=>{this.textManipulation.replaceText(e.uploadPlaceholder,"")})}cancel(e){this.#tj[e.id]&&this.textManipulation.replaceText(this.#tj[e.id].uploadPlaceholder,"")}success(e,t){this.textManipulation.replaceText(this.#tj[e.id].uploadPlaceholder.trim(),t)}}},4911:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(41107),n=i.n(s);let r=!1,a=n().Callbacks(),o={initialize(e){let t=e.lookup("service:session");t.set("csrfToken",document.head.querySelector("meta[name=csrf-token]")?.content),r||(n().ajaxPrefilter(a.fire),r=!0),a.add(function(e,i,s){e.crossDomain||s.setRequestHeader("X-CSRF-Token",t.get("csrfToken"))})},teardown(){a.empty()}}},4960:(e,t,i)=>{"use strict";function s(e,t){let i=document.createElement("canvas");if(i.getContext){let s=document.createElement("img");s.crossOrigin="anonymous",s.onload=()=>(function(e,t,i){isNaN(i=Math.round(i))||i<1?i="":i<10?i=" "+i:i>99&&(i="99");let s=t.width/16,n=11*s;e.height=e.width=t.width;let r=e.getContext("2d");r.font=`bold ${n}px Arial, sans-serif`,i&&(r.globalAlpha=.4),r.drawImage(t,0,0),r.globalAlpha=1,r.shadowColor="#FFF",r.shadowBlur=2*s,r.shadowOffsetX=0,r.shadowOffsetY=0,r.fillStyle="#FFF",r.fillText(i,s,n),r.fillText(i,s+s,n),r.fillText(i,s,n+s),r.fillText(i,s+s,n+s),r.fillStyle="#000",r.fillText(i,s+s/2,n+s/2);let a=document.createElement("link");a.rel="icon",a.href=e.toDataURL("image/png");let o=document.querySelector("link[rel=icon]"),l=document.querySelector("head");o&&l.removeChild(o),l.appendChild(a)})(i,s,t),s.src=e}}i.r(t),i.d(t,{default:()=>s})},5173:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(91929),n=i(30895),r=i(38174),a=i(14104),o=i(32045),l=i(1519);class u extends s.default{static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"5JXInVv5",block:'[[[1,"\\n"],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["site","mobileView"]],[[[1," "],[1,[28,[32,0],[[30,0,["category"]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"subcategory"],[12],[1,"\\n "],[8,[32,1],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n "],[1,[28,[32,0],[[30,0,["category"]]],[["hideParent"],["true"]]]],[1,"\\n"],[41,[51,[30,0,["hideUnread"]]],[[[1," "],[8,[32,2],null,[["@category","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null],[1," "]],[],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sub-category-item.js",scope:()=>[a.default,n.default,r.default],isStrictMode:!0}),this))()}},5343:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,i,r,a){var o=s(t),l=n[e][s(t)];return 2===o&&(l=l[+!i]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},5364:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("groups.manage.categories.title")}}},5450:(e,t,i)=>{"use strict";function s(e){"function"==typeof e.constructor.proto&&e.constructor.proto()}i.r(t),i.d(t,{default:()=>s})},5468:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(91558),n=i(85024),r=i(78771),a=i.n(r),o=i(14013),l=i.n(o),u=i(92496),d=i(87542),c=i(32045),p=i(1519);let h=dt7948.c(class extends u.default{static #e=(()=>dt7948.g(this.prototype,"shouldDisplayIcon",[(0,s.reads)("selectKit.options.shouldDisplayIcon")]))();#tY=(()=>void dt7948.i(this,"shouldDisplayIcon"))();categoryBackgroundColor(e){return e||"#e9e9e9"}static #i=(()=>dt7948.n(this.prototype,"categoryBackgroundColor",[l()("selectedContent.color")]))();categoryTextColor(e){return e||"#333"}static #n=(()=>dt7948.n(this.prototype,"categoryTextColor",[l()("selectedContent.text_color")]))();static #a=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"ZaMmPrfI",block:'[[[1,"\\n "],[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n"],[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","selectedNameComponent"]]],null]],[[[1," "],[8,[30,1],null,[["@tabindex","@item","@selectKit","@shouldDisplayIcon","@shouldDisplayClearableButton"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[30,0,["shouldDisplayIcon"]],[30,0,["shouldDisplayClearableButton"]]]],null],[1,"\\n"]],[1]]],[1,"\\n "],[1,[28,[32,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n "],[13],[1,"\\n "]],["SelectedNameComponent"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/category-drop/category-drop-header.js",scope:()=>[d.resolveComponent,a()],isStrictMode:!0}),this))()},[(0,n.classNames)("category-drop-header")])},5481:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p,sendDeferredPageview:()=>c});var s=i(41107),n=i.n(s),r=i(87367),a=i(97908),o=i(11837),l=i(98622);let u=!1,d=null;function c(){u=!0}let p={after:"inject-objects",initialize(e){if((0,a.isTesting)())return;let t=e.lookup("service:message-bus"),i=e.lookup("service:current-user"),s=e.lookup("service:site-settings"),c=e.lookup("service:router");if(t.alwaysLongPoll=!(0,a.isProduction)(),t.shouldLongPollCallback=()=>(0,l.default)({userUnseenTime:12e5}),t.stop(),(0,l.onPresenceChange)({unseenTime:12e5,callback:e=>{e&&t.onVisibilityChange&&t.onVisibilityChange()}}),s.login_required&&!i)return;let p=setInterval(()=>{"complete"===document.readyState&&(("topic.fromParams"===c.currentRouteName||"topic.fromParamsNear"===c.currentRouteName)&&(d=c.currentRoute.parent.params.id),clearInterval(p),t.start())},500);t.callbackInterval=s.anon_polling_interval,t.backgroundCallbackInterval=s.background_polling_interval,t.baseUrl=s.long_polling_base_url.replace(/\/$/,"")+"/",t.enableChunkedEncoding=s.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,l.default)()&&(t.headers["Discourse-Present"]="true"),u&&(t.headers["Discourse-Deferred-Track-View"]="true",d&&(t.headers["Discourse-Deferred-Track-View-Topic-Id"]=d),u=!1,d=null);let i=t.complete;return t.complete=function(e,t){(0,r.handleLogoff)(e),i?.(e,t)},n().ajax(t)})(t,e),t.baseUrl=(0,o.default)("/"),i&&(t.callbackInterval=s.polling_interval)}}},5493:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SCROLLER_HEIGHT:()=>F,default:()=>R,setDesktopScrollAreaHeight:()=>j,timelineDate:()=>O});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(96848),u=i(75093),d=i(9032),c=i(57079),p=i(13355),h=i(53329),m=i(39559),g=i(44991),f=i(30899),_=i(14104),y=i(38069),b=i(43798),w=i(10458),k=i(12420),T=i(14051),S=i(52493),C=i(48463),A=i(30698),D=i(70508),M=i(70326),x=i(47340),E=i(20778),L=i(32045),P=i(1519);let F=50,I=170,N=300;function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{min:170,max:300};I=e.min,N=e.max}function O(e){let t=e.getFullYear()===new Date().getFullYear()?"long_no_year_no_time":"timeline_date";return moment(e).format((0,D.i18n)(`dates.${t}`))}class R extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"site",[u.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #a=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #l=(()=>dt7948.g(this.prototype,"composer",[u.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #d=(()=>dt7948.g(this.prototype,"showButton",[n.tracked],function(){return!1}))();#tH=(()=>void dt7948.i(this,"showButton"))();static #p=(()=>dt7948.g(this.prototype,"current",[n.tracked]))();#tq=(()=>void dt7948.i(this,"current"))();static #m=(()=>dt7948.g(this.prototype,"percentage",[n.tracked],function(){return this._percentFor(this.args.model,this.args.enteredIndex)}))();#tz=(()=>void dt7948.i(this,"percentage"))();static #f=(()=>dt7948.g(this.prototype,"total",[n.tracked]))();#t$=(()=>void dt7948.i(this,"total"))();static #y=(()=>dt7948.g(this.prototype,"date",[n.tracked]))();#tV=(()=>void dt7948.i(this,"date"))();static #v=(()=>dt7948.g(this.prototype,"lastReadPercentage",[n.tracked],function(){return null}))();#tW=(()=>void dt7948.i(this,"lastReadPercentage"))();static #k=(()=>dt7948.g(this.prototype,"lastRead",[n.tracked]))();#tK=(()=>void dt7948.i(this,"lastRead"))();static #S=(()=>dt7948.g(this.prototype,"lastReadTop",[n.tracked]))();#tG=(()=>void dt7948.i(this,"lastReadTop"))();static #A=(()=>dt7948.g(this.prototype,"before",[n.tracked]))();#tJ=(()=>void dt7948.i(this,"before"))();static #M=(()=>dt7948.g(this.prototype,"after",[n.tracked]))();#tQ=(()=>void dt7948.i(this,"after"))();static #E=(()=>dt7948.g(this.prototype,"timelineScrollareaStyle",[n.tracked]))();#tX=(()=>void dt7948.i(this,"timelineScrollareaStyle"))();static #P=(()=>dt7948.g(this.prototype,"dragging",[n.tracked],function(){return!1}))();#tZ=(()=>void dt7948.i(this,"dragging"))();static #I=(()=>dt7948.g(this.prototype,"excerpt",[n.tracked],function(){return""}))();#t1=(()=>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("composer:preview-toggled",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,d.htmlSafe)(`height: ${this.scrollareaHeight}px`)}get beforePadding(){return(0,d.htmlSafe)(`height: ${this.before}px`)}get afterPadding(){return(0,d.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,d.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=this.composer.isPreviewVisible&&document.getElementById("reply-control").offsetHeight||0,t=document.querySelector(".d-header")?.offsetHeight||0,i=(window.innerHeight-e-t)/2;return Math.max(this.site.mobileView?170:this.composer.isPreviewVisible?I:170,Math.min(i,this.site.mobileView?300:this.composer.isPreviewVisible?N:300))}get startDate(){return O(this.args.model.createdAt)}get nowDateOptions(){return{customTitle:(0,D.i18n)("topic_entrance.jump_bottom_button_title"),addAgo:!0,defaultFormat:O}}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,d.htmlSafe)(`height: ${this.scrollareaHeight}px`);let t=this.args.model,i=t.postStream;this.total=i.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 s=i.closestDaysAgoFor(this.current);if(void 0===s){let t=i.posts.findBy("id",i.stream[this.current]);t&&(e=new Date(t.created_at))}else null!==s?(e=new Date).setDate(e.getDate()-s||0):e=null;this.date=e;let n=t.last_read_post_number,r=t.last_read_post_id;if(r&&n){let e=i.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-F,null!==this.percentage&&this.hasBackPosition&&(this.lastReadTop=Math.round(this.lastReadPercentage*this.scrollareaHeight),this.showButton=this.before+F-5this.lastReadTop+25)}static #j=(()=>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,A.actionDescriptionHtml)(t.action_code,t.created_at,t.username)}`)}})}static #R=(()=>dt7948.n(this.prototype,"updateScrollPosition",[(0,T.debounce)(50)]))();updatePercentage(e){e.preventDefault();let t=(e.pageY||e.touches[0].pageY)-this.dragOffset,i=S.default.offset(this.scrollareaElement).top,s=this.scrollareaElement.offsetHeight,n=this.scrollerElement.offsetHeight;this.percentage=this.clamp(parseFloat(t-(i+n/2))/(s-n)),this.commit()}static #B=(()=>dt7948.n(this.prototype,"updatePercentage",[o.action]))();didStartDrag(e){let t=e.pageY||e.touches[0].pageY,i=S.default.offset(this.scrollerElement).top+this.scrollerElement.offsetHeight/2;this.dragOffset=t-i,this.dragging=!0}static #H=(()=>dt7948.n(this.prototype,"didStartDrag",[T.bind]))();dragMove(e){e.stopPropagation(),e.preventDefault(),this.updatePercentage(e)}static #z=(()=>dt7948.n(this.prototype,"dragMove",[T.bind]))();didEndDrag(){this.dragging=!1,this.dragOffset=null,this.commit()}static #$=(()=>dt7948.n(this.prototype,"didEndDrag",[T.bind]))();postScrolled(e){this.current=e.postIndex,this.percentage=e.percent,this.calculatePosition(),this.dockCheck()}static #V=(()=>dt7948.n(this.prototype,"postScrolled",[T.bind]))();goBack(){this.args.jumpToIndex(this.lastRead)}static #W=(()=>dt7948.n(this.prototype,"goBack",[o.action]))();dockCheck(){let e=document.querySelector(".timeline-container"),t=e&&e.offsetHeight||400,i=this.dockAt,s=(0,C.headerOffset)()+window.pageYOffset;this.dockBottom=!1,sthis.topicBottom?(this.dockAt=parseInt(this.topicBottom-t,10),this.dockBottom=!0,this.dockAt<0&&(this.dockAt=0)):this.dockAt=null,this.dockAt!==i&&(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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(Math.min(e,i),t)}scrollareaRemaining(){return this.scrollareaHeight-F}_percentFor(e,t){let i=e.postStream.filteredPostsCount;switch(t){case 0:return 0;case i-1:return 1;default:return this.clamp(parseFloat(t)/i)}}registerScrollarea(e){this.scrollareaElement=e}static #K=(()=>dt7948.n(this.prototype,"registerScrollarea",[o.action]))();registerScroller(e){this.scrollerElement=e}static #G=(()=>dt7948.n(this.prototype,"registerScroller",[o.action]))();static #J=(()=>(0,L.setComponentTemplate)((0,P.createTemplateFactory)({id:"ACgya5J+",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\\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,[["@contentClass","@topic","@expanded"],["topic-timeline-notifications-tracking-content",[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:()=>[a.on,c.or,b.default,k.default,c.and,c.not,_.default,d.htmlSafe,h.default,w.default,m.default,g.default,D.i18n,l.default,E.default,y.default,x.default,f.default,p.default,r.fn,M.default],isStrictMode:!0}),this))()}},5561:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addSectionLink:()=>a,customSectionLinks:()=>n,resetDefaultSectionLinks:()=>o,secondaryCustomSectionLinks:()=>r});var s=i(44460);let n=[],r=[];function a(e,t){let i=t?r:n;if("function"==typeof e)i.push(e.call(this,s.default));else{let t=class extends s.default{get name(){return e.name}get text(){return e.text}get title(){return e.title}get href(){return e.href}get route(){return e.route}get prefixValue(){return e.icon||super.prefixValue}get models(){return e.models}};i.push(t)}}function o(){n.length=0,r.length=0}},5588:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(85024),r=i(93056),a=i(38069),o=i(92202),l=i(1519);let u=dt7948.c(class extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"6L3EanqG",block:'[[[1,"\\n "],[8,[32,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],[[30,2]],null]],[1,"\\n "],[10,1],[15,0,[30,3]],[12],[1,[28,[32,2],[[30,1,["count"]]],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@user","@icon","@countClass"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-summary-user.js",scope:()=>[r.default,a.default,o.default],isStrictMode:!0}),this))()},[(0,n.tagName)("li")])},5706:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(73326),r=i(77982),a=i(45294),o=i(32197),l=i(92075),u=i(17091),d=i(32045),c=i(1519);class p extends s.default{get components(){return(0,r.applyValueTransformer)("user-field-components",{confirm:a.default,dropdown:o.default,multiselect:l.default,text:u.default})}static #e=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"1beUAQWg",block:'[[[1,"\\n"],[44,[[28,[32,0],[[30,0,["components"]],[30,1,["field_type"]]],null]],[[[1," "],[8,[30,2],[[17,3]],[["@field","@value","@validation"],[[30,1],[30,4],[30,5]]],null],[1,"\\n"]],[2]]],[1," "]],["@field","UserFieldComponent","&attrs","@value","@validation"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-field.js",scope:()=>[n.get],isStrictMode:!0}),this))()}},5715:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(32045),n=i(96791),r=i(86981),a=i(38161),o=i(13355),l=i(27e3),u=i(31789),d=i(86723),c=i(70508),p=i(1519);class h extends s.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",[r.action]))();hideForSession(){this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",Date.now()),(0,d.default)(()=>this.session.set("showSignupCta",!1),2e4)}static #i=(()=>dt7948.n(this.prototype,"hideForSession",[r.action]))();_turnOffIfHidden(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}static #n=(()=>dt7948.n(this.prototype,"_turnOffIfHidden",[(0,a.on)("willDestroyElement")]))();static #a=(()=>(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"FpwifOM1",block:'[[[1,"\\n "],[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,[32,0],["signup_cta.hidden_for_session"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"h3"],[12],[1,[28,[32,1],[[28,[32,0],["signup_cta.intro"],null]],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,1],[[28,[32,0],["signup_cta.value_prop"],null]],null]],[13],[1,"\\n\\n "],[10,0],[14,0,"buttons"],[12],[1,"\\n "],[8,[32,2],[[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[32,3],["showCreateAccount"],null],"signup_cta.sign_up","user"]],null],[1,"\\n "],[8,[32,2],[[24,0,"no-icon"]],[["@action","@label"],[[30,0,["hideForSession"]],"signup_cta.hide_session"]],null],[1,"\\n "],[11,3],[24,6,""],[4,[32,4],["click",[30,0,["neverShow"]]],null],[12],[1,[28,[32,0],["signup_cta.hide_forever"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/signup-cta.js",scope:()=>[c.i18n,l.default,o.default,u.default,n.on],isStrictMode:!0}),this))()}},5718:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(87367),r=i(642),a=i(27797),o=i(70508);class l extends a.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();titleToken(){return(0,o.i18n)("groups.permissions.title")}model(){let e=this.modelFor("group");return(0,n.ajax)(`/g/${e.name}/permissions`).then(e=>(e.forEach(e=>{e.description=(0,r.buildPermissionDescription)(e.permission_type)}),{permissions:e})).catch(()=>{this.router.transitionTo("group.members",e)})}setupController(e,t){this.controllerFor("group-permissions").setProperties({model:t}),this.controllerFor("group").set("showing","permissions")}}},5741:(e,t,i)=>{"use strict";function s(){for(var e=arguments.length,t=Array(e),i=0;is})},5788:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i){return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+function(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i],+e)}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):e?i[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})})},5795:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearRichEditorExtensions:()=>r,getExtensions:()=>o,registerRichEditorExtension:()=>n,resetRichEditorExtensions:()=>a});let s=[];function n(e){s.push(e)}function r(){s.length=0}async function a(){let{default:e}=await Promise.all([i.e(592),i.e(458),i.e(967)]).then(i.bind(i,22458));r(),e.forEach(n)}function o(){return s}},5806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(73326),n=i(53329),r=i(38069),a=i(10458),o=i(70508),l=i(34875),u=i(32045),d=i(1519),c=i(69522);let p=(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"GcDRkbjX",block:'[[[1,"\\n"],[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,[32,0],["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,[32,1],["d-watching"],[["class"],["icon watching"]]]],[1,"\\n "],[1,[28,[32,0],["user.watched_tags"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watched_tags"]],[30,3],true,true,[28,[32,3],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-tracking"],[["class"],["icon tracking"]]]],[1,"\\n "],[1,[28,[32,0],["user.tracked_tags"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["tracked_tags"]],[30,3],true,true,[28,[32,3],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-watching-first"],[["class"],["icon watching-first-post"]]]],[1,"\\n "],[1,[28,[32,0],["user.watched_first_post_tags"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watching_first_post_tags"]],[30,3],true,true,[28,[32,3],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],["d-muted"],[["class"],["icon muted"]]]],[1,"\\n "],[1,[28,[32,0],["user.muted_tags"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["muted_tags"]],[30,3],true,true,[28,[32,3],null,[["allowAny"],[false]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["user.muted_tags_instructions"],null]],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-tags","div",[28,[32,5],null,[["model","save"],[[30,2],[30,4]]]]]],null],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,5],null,[["model"],[[30,2]]]]]],null],[1,"\\n"]],[]],null]],["@siteSettings","@model","@selectedTags","@save"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/tags.js",scope:()=>[o.i18n,r.default,l.default,s.hash,n.default,a.default],isStrictMode:!0}),(0,c.default)(void 0,"tags:Tags"))},5911:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(73326),r=i(61942),a=i(41219),o=i(32045),l=i(1519);class u extends s.default{static controlType="radio-group";static #e=(()=>(0,o.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,n.hash,a.default],isStrictMode:!0}),this))()}},5955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(11837);function n(e){return(0,s.default)(e)}},5957:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ExtraNavItem:()=>w,addNavItem:()=>C,clearNavItems:()=>S,customNavItemHref:()=>T,default:()=>b,extraNavItemProperties:()=>k});var s=i(7155),n=i(86981),r=i(93239),a=i(91558),o=i(75093),l=i(14051),u=i(63272),d=i(71455),c=i(11837),p=i(32386),h=i(67698),m=i(25495),g=i(23062),f=i(18693),_=i(25217),y=i(70508);class b extends n.default{static extraArgsCallbacks=[];static customNavItemHrefs=[];static extraNavItemDescriptors=[];static pathFor(e,t){let i=(0,c.default)(""),s=!1,n=!1;return"categories"===e?i+="/categories":(t.tagId&&f.default.currentProp("filters").includes(e)&&(n=!0,t.category?i+="/tags":i+="/tag"),t.category&&(s=!0,i+=`/c/${g.default.slugFor(t.category)}/${t.category.id}`,t.noSubcategories&&(i+="/none")),n&&(i+=`/${t.tagId}`),(n||s)&&(i+="/l"),i+=`/${e}`)}static fromText(e,t){let i=!_.default.current();if(t=t||{},i){let t=f.default.currentProp("anonymous_top_menu_items");if(!t||!t.includes(e))return null}if(!g.default.list()&&"categories"===e||!f.default.currentProp("top_menu_items").includes(e))return null;let s={name:e,hasIcon:"unread"===e};return t.category&&(s.category=t.category),t.tagId&&(s.tagId=t.tagId),t.currentRouteQueryParams&&(s.currentRouteQueryParams=t.currentRouteQueryParams),t.noSubcategories&&(s.noSubcategories=!0),b.extraArgsCallbacks.forEach(i=>(0,p.deepMerge)(s,i.call(this,e,t))),(0,d.getOwnerWithFallback)(this).lookup("service:store").createRecord("nav-item",s)}static buildList(e,t){t=t||{},e&&(t.category=e),t.siteSettings||((0,u.default)("You must supply `buildList` with a `siteSettings` object",{since:"2.6.0",dropFrom:"2.7.0",id:"discourse.nav-item.built-list-site-settings"}),t.siteSettings=(0,d.getOwnerWithFallback)(this).lookup("service:site-settings"));let i=t.siteSettings.top_menu.split("|"),s=(0,d.getOwnerWithFallback)(this).lookup("service:current-user");s?.new_new_view_enabled&&(i=i.reject(e=>"unread"===e));let n=(t.filterMode||"").split("/").pop();i.some(e=>n===e)||i.push(n),i=i.map(e=>b.fromText(e,t)).filter(i=>!(null===i||(e||t.skipCategoriesNavItem)&&i.name.startsWith("categor")));let r={category:t.category,tagId:t.tagId,noSubcategories:t.noSubcategories},a=b.extraNavItemDescriptors.map(e=>w.create((0,p.deepMerge)({},r,e))).filter(i=>!i.customFilter||i.customFilter(e,t)),o=!1;return a.forEach(s=>{s.init&&s.init(s,e,t);let n=s.before;if(n){let e=0;for(e=0;e{void 0===e.active&&(e.active=!1)}),i}static #e=(()=>dt7948.g(this.prototype,"topicTrackingState",[o.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"name",[s.tracked]))();#t3=(()=>void dt7948.i(this,"name"))();static #n=(()=>dt7948.g(this.prototype,"filterType",[(0,a.reads)("name")]))();#t2=(()=>void dt7948.i(this,"filterType"))();static #a=(()=>dt7948.g(this.prototype,"_title",[s.tracked]))();#t8=(()=>void dt7948.i(this,"_title"))();static #l=(()=>dt7948.g(this.prototype,"_displayName",[s.tracked]))();#t4=(()=>void dt7948.i(this,"_displayName"))();get title(){return this._title?this._title:(0,y.i18n)("filters."+this.name.replace("/",".")+".help",{})}static #d=(()=>dt7948.n(this.prototype,"title",[r.dependentKeyCompat]))();set title(e){this._title=e}get displayName(){if(this._displayName)return this._displayName;let e=this.count||0;"latest"===this.name&&(f.default.currentProp("desktopView")||void 0!==this.tagId)&&(e=0);let t={count:e},i=0===e?".title":".title_with_count";return(0,h.emojiUnescape)((0,y.i18n)(`filters.${this.name.replace("/",".")+i}`,t))}static #p=(()=>dt7948.n(this.prototype,"displayName",[r.dependentKeyCompat]))();set displayName(e){this._displayName=e}href(e,t,i,s){let n=null;return(b.customNavItemHrefs.forEach(function(e){if(n=e.call(this,this))return!1},this),n)?(0,c.default)(n):b.pathFor(e,{category:t,noSubcategories:i,tagId:s})}static #m=(()=>dt7948.n(this.prototype,"href",[(0,l.default)("filterType","category","noSubcategories","tagId")]))();filterMode(e,t,i){let s="";return t&&(s+="c/",s+=g.default.slugFor(t),i&&(s+="/none"),s+="/l/"),s+e.replace(" ","-")}static #f=(()=>dt7948.n(this.prototype,"filterMode",[(0,l.default)("name","category","noSubcategories")]))();count(e,t,i,s,n){return this.topicTrackingState?.lookupCount({type:e,category:t,tagId:i,noSubcategories:s,customFilterFn:(0,m.hasTrackedFilter)(n)?m.isTrackedTopic:void 0})}static #y=(()=>dt7948.n(this.prototype,"count",[(0,l.default)("name","category","tagId","noSubcategories","currentRouteQueryParams","topicTrackingState.messageCount")]))()}class w extends b{static #e=(()=>dt7948.g(this.prototype,"href",[s.tracked]))();#t7=(()=>void dt7948.i(this,"href"))();static #i=(()=>dt7948.g(this.prototype,"count",[s.tracked],function(){return 0}))();#t9=(()=>void dt7948.i(this,"count"))();customFilter=null}function k(e){b.extraArgsCallbacks.push(e)}function T(e){b.customNavItemHrefs.push(e)}function S(){b.customNavItemHrefs.clear(),b.extraArgsCallbacks.clear(),b.extraNavItemDescriptors.clear()}function C(e){b.extraNavItemDescriptors.push(e)}},5968:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(97908);let n=/^discourse\/plugins\/([^\/]+)\/(?:discourse\/templates\/)?(.*)$/,r=/^discourse\/theme-([^\/]+)\/(?:discourse\/templates\/)?(.*)$/,a=["discourse/","admin/"];function o(e,t,i){let s=e.get(t);(s??=[]).push(i),e.set(t,s)}class l{templates=(()=>new Map)();setModuleNames(e){for(let t of(this.templates.clear(),function(e){let t=new Map,i=new Map,s=new Map;for(let l of e)if(function(e){for(let t of a)if(e.startsWith(t))return!0;return!1}(l)&&function(e){return e.includes("/templates/")}(l)){let e,a;(e=l.match(n))?o(i,e[2],l):(a=l.match(r))?o(s,a[2],l):o(t,l.replace(/^discourse\/templates\//,""),l)}return[t,i,s]}(e)))for(let[e,i]of t)for(let t of i)this.#t5(e,t)}#t5(e,t){if(this.templates.has(e)){let i=`Duplicate templates found for '${e}': '${t}' clashes with '${this.templates.get(e)}'`;if((0,s.isTesting)())throw Error(i);console.error(i)}else this.templates.set(e,t)}resolve(e){return this.templates.get(e)}}let u=new l},5995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});let s=[];function n(e,t,i){for(let s=0;s{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(56162),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"topic-cell:TopicCell"))},6095:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Cache:()=>u.C,GUID_KEY:()=>r.G,ROOT:()=>r.R,canInvoke:()=>a.c,checkHasSuper:()=>r.c,dictionary:()=>n.m,enumerableSymbol:()=>s.e,generateGuid:()=>r.b,getDebugName:()=>r.a,getName:()=>o.g,guidFor:()=>r.g,intern:()=>r.i,isInternalSymbol:()=>s.i,isObject:()=>r.e,isProxy:()=>l.i,lookupDescriptor:()=>r.l,observerListenerMetaFor:()=>r.o,setListeners:()=>r.d,setName:()=>o.s,setObservers:()=>r.s,setProxy:()=>l.s,setWithMandatorySetter:()=>r.h,setupMandatorySetter:()=>r.f,symbol:()=>s.s,teardownMandatorySetter:()=>r.t,toString:()=>s.t,uuid:()=>r.u,wrap:()=>r.w});var s=i(71797),n=i(51652),r=i(71729),a=i(92407),o=i(32051),l=i(217),u=i(25325)},6106:(e,t,i)=>{"use strict";i.r(t),i.d(t,{capabilities:()=>d,default:()=>c});var s=i(68079);let n=/iPhone|iPod|iPad|Macintosh|MacIntel/,r=/macOS/,a=navigator.userAgent,o={sm:new s.default("(min-width: 40rem)"),md:new s.default("(min-width: 48rem)"),lg:new s.default("(min-width: 64rem)"),xl:new s.default("(min-width: 80rem)"),"2xl":new s.default("(min-width: 96rem)")},l=new s.default("(any-pointer: coarse)");class u{isAndroid=(()=>a.includes("Android"))();isWinphone=(()=>a.includes("Windows Phone"))();isIpadOS=(()=>a.includes("Mac OS")&&!/iPhone|iPod/.test(a)&&this.touch)();isIOS=(()=>(/iPhone|iPod/.test(a)||this.isIpadOS)&&!window.MSStream)();isApple=(()=>n.test(navigator.platform)||navigator.userAgentData&&r.test(navigator.userAgentData.platform))();isOpera=(()=>!!window.opera||a.includes(" OPR/"))();isFirefox=(()=>a.includes("Firefox"))();isChrome=(()=>!!window.chrome&&!this.isOpera)();isSafari=(()=>/Constructor/.test(window.HTMLElement)||window.safari?.pushNotification?.toString()==="[object SafariRemoteNotification]")();hasContactPicker=(()=>"contacts"in navigator&&"ContactsManager"in window)();canVibrate=(()=>"vibrate"in navigator)();isPwa=(()=>window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://"))();isiOSPWA=(()=>this.isPwa&&this.isIOS)();wasLaunchedFromDiscourseHub=(()=>window.location.search.includes("discourse_app=1"))();isAppWebview=(()=>void 0!==window.ReactNativeWebView)();viewport={get sm(){return o.sm.matches},get md(){return o.md.matches},get lg(){return o.lg.matches},get xl(){return o.xl.matches},get"2xl"(){return o["2xl"].matches}};get touch(){return l.matches}get userHasBeenActive(){return!("userActivation"in navigator)||navigator.userActivation.hasBeenActive}get supportsServiceWorker(){return"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&!this.isAppWebview&&navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state}}let d=new u;class c{static isServiceFactory=!0;static create(){return d}}},6114:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(50890),n=i(86981),r=i(91558),a=i(87367),o=i(16356),l=i(14051),u=i(77296),d=i(13563),c=i(25217),p=i(70508);let{TOTP:h,BACKUP_CODE:m,SECURITY_KEY:g}=c.SECOND_FACTOR_METHODS;class f extends s.default{TOTP=(()=>h)();BACKUP_CODE=(()=>m)();SECURITY_KEY=(()=>g)();queryParams=["nonce"];message=null;loadError=!1;messageIsError=!1;secondFactorToken=null;userSelectedMethod=null;isLoading=!1;static #e=(()=>dt7948.g(this.prototype,"totpEnabled",[(0,r.readOnly)("model.totp_enabled")]))();#t6=(()=>void dt7948.i(this,"totpEnabled"))();static #i=(()=>dt7948.g(this.prototype,"backupCodesEnabled",[(0,r.readOnly)("model.backup_enabled")]))();#ie=(()=>void dt7948.i(this,"backupCodesEnabled"))();static #n=(()=>dt7948.g(this.prototype,"securityKeysEnabled",[(0,r.readOnly)("model.security_keys_enabled")]))();#it=(()=>void dt7948.i(this,"securityKeysEnabled"))();static #a=(()=>dt7948.g(this.prototype,"allowedMethods",[(0,r.readOnly)("model.allowed_methods")]))();#ii=(()=>void dt7948.i(this,"allowedMethods"))();static #l=(()=>dt7948.g(this.prototype,"customDescription",[(0,r.readOnly)("model.description")]))();#is=(()=>void dt7948.i(this,"customDescription"))();static #d=(()=>dt7948.g(this.prototype,"showTotpForm",[(0,r.equal)("shownSecondFactorMethod",h)]))();#ir=(()=>void dt7948.i(this,"showTotpForm"))();static #p=(()=>dt7948.g(this.prototype,"showSecurityKeyForm",[(0,r.equal)("shownSecondFactorMethod",g)]))();#ia=(()=>void dt7948.i(this,"showSecurityKeyForm"))();static #m=(()=>dt7948.g(this.prototype,"showBackupCodesForm",[(0,r.equal)("shownSecondFactorMethod",m)]))();#io=(()=>void dt7948.i(this,"showBackupCodesForm"))();totpAvailable(){return this.totpEnabled&&this.allowedMethods.includes(h)}static #f=(()=>dt7948.n(this.prototype,"totpAvailable",[(0,l.default)("allowedMethods.[]","totpEnabled")]))();backupCodesAvailable(){return this.backupCodesEnabled&&this.allowedMethods.includes(m)}static #y=(()=>dt7948.n(this.prototype,"backupCodesAvailable",[(0,l.default)("allowedMethods.[]","backupCodesEnabled")]))();securityKeysAvailable(){return this.securityKeysEnabled&&this.allowedMethods.includes(g)}static #v=(()=>dt7948.n(this.prototype,"securityKeysAvailable",[(0,l.default)("allowedMethods.[]","securityKeysEnabled")]))();shownSecondFactorMethod(e,t,i,s){if(null!==e)return e;if(t)return g;if(i)return h;if(s)return m;throw Error("unexpected state of user 2fa settings!")}static #k=(()=>dt7948.n(this.prototype,"shownSecondFactorMethod",[(0,l.default)("userSelectedMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable")]))();alternativeMethods(e,t,i,s){let n=[];return t&&e!==g&&n.push({id:g,translationKey:"login.second_factor_toggle.security_key",class:"security-key"}),i&&e!==h&&n.push({id:h,translationKey:"login.second_factor_toggle.totp",class:"totp"}),s&&e!==m&&n.push({id:m,translationKey:"login.second_factor_toggle.backup_code",class:"backup-code"}),n}static #S=(()=>dt7948.n(this.prototype,"alternativeMethods",[(0,l.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 #A=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,l.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 #M=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,l.default)("shownSecondFactorMethod")]))();alertClass(e){return e?"alert-error":"alert-success"}static #E=(()=>dt7948.n(this.prototype,"alertClass",[(0,l.default)("messageIsError")]))();inputFormClass(e,t){return e?"totp-token":t?"backup-code-token":void 0}static #P=(()=>dt7948.n(this.prototype,"inputFormClass",[(0,l.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)}async verifySecondFactor(e){this.set("isLoading",!0);try{let t=await (0,a.ajax)("/session/2fa",{type:"POST",data:{...e,second_factor_method:this.shownSecondFactorMethod,nonce:this.nonce}}),i=await (0,a.ajax)(t.callback_path,{type:t.callback_method,data:{second_factor_nonce:this.nonce,...t.callback_params}});this.displaySuccess((0,p.i18n)("second_factor_auth.redirect_after_success")),u.default.routeTo(i.redirect_url||t.redirect_url)}catch(e){this.displayError((0,o.extractError)(e))}finally{this.set("isLoading",!1)}}useAnotherMethod(e,t){t?.preventDefault(),this.set("userSelectedMethod",e)}static #I=(()=>dt7948.n(this.prototype,"useAnotherMethod",[n.action]))();authenticateSecurityKey(){(0,d.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",[n.action]))();isSecondFactorTokenValid(e){return e?.length>0}static #R=(()=>dt7948.n(this.prototype,"isSecondFactorTokenValid",[(0,l.default)("secondFactorToken")]))();authenticateToken(){this.verifySecondFactor({second_factor_token:this.secondFactorToken})}static #B=(()=>dt7948.n(this.prototype,"authenticateToken",[n.action]))()}},6278:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(77296),r=i(18254),a=i(27797),o=i(70508);class l extends a.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();activate(){super.activate(...arguments),n.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){this.siteSettings.tos_url&&(e.abort(),n.default.redirectTo(this.siteSettings.tos_url))}model(){return r.default.find("tos")}titleToken(){return(0,o.i18n)("tos")}}},6318:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(13355),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"BaLKAVvX",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default 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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"bulk-select-toggle:BulkSelectToggle"))},6488:(e,t,i)=>{"use strict";i.r(t),i.d(t,{a:()=>l,s:()=>u});var s=i(29023),n=i(18793);i(60569);var r=i(92128),a=i(83882),o=i(57894);function l(e){e.register("service:-dom-builder",{create(e){switch((0,n.getOwner)(e).lookup("-environment:main")._renderMode){case"serialize":return o.serializeBuilder.bind(null);case"rehydrate":return a.rehydrationBuilder.bind(null);default:return a.clientBuilder.bind(null)}}}),e.register((0,s.p)`template:-root`,r.R),e.register("renderer:-dom",r.b)}function u(e){e.optionsForType("template",{instantiate:!1}),e.register("view:-outlet",r.O),e.register("template:-outlet",r.c),e.optionsForType("helper",{instantiate:!1}),e.register("component:input",r.I),e.register("component:link-to",r.L),e.register("component:textarea",r.T)}},6515:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(24813),n=i(75093),r=i(96527),a=i(23062),o=i(27797);let l=class extends o.default{static #e=(()=>dt7948.g(this.prototype,"composer",[n.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();async beforeModel(e){if(this.currentUser){let t;this.site.lazy_load_categories?e.to.queryParams.category_id?t=(await a.default.asyncFindByIds([e.to.queryParams.category_id]))[0]:e.to.queryParams.category&&(t=await a.default.asyncFindBySlugPath(e.to.queryParams.category)):t=this.parseCategoryFromTransition(e),t?this.router.replaceWith(`/c/${t.id}`).followRedirects().then(()=>{this.currentUser.can_create_topic&&this.openComposer({transition:e,category:t})}):e.from?(e.abort(),this.openComposer({transition:e})):this.router.replaceWith("discovery.latest").followRedirects().then(()=>{this.currentUser.can_create_topic&&this.openComposer({transition:e})})}else(0,r.default)("destination_url",window.location.href),this.router.replaceWith("login")}openComposer(e){let{transition:t,category:i}=e;(0,s.next)(()=>{this.composer.openNewTopic({title:t.to.queryParams.title,body:t.to.queryParams.body,category:i,tags:t.to.queryParams.tags}),this.composer.set("formTemplateInitialValues",t.to.queryParams)})}parseCategoryFromTransition(e){let t;if(e.to.queryParams.category_id){let i=e.to.queryParams.category_id;t=a.default.findById(i)}else if(e.to.queryParams.category){let i=e.to.queryParams.category.split("/");(t=this._getCategory(i[0],i[1],"nameLower"))||(t=this._getCategory(i[0],i[1],"slug"))}return t}_getCategory(e,t,i){let s;if(t){let n=this.site.categories,r=n.findBy(i,e.toLowerCase());r&&(s=n.find(e=>e&&e[i]===t.toLowerCase()&&e.parent_category_id===r.id))}else s=this.site.categories.findBy(i,e.toLowerCase());return s}}},6671:(e,t,i)=>{"use strict";i.r(t);var s=i(82925),n=i(1519);(0,s.registerWidgetShim)("topic-status","span.topic-statuses",(0,n.createTemplateFactory)({id:"OHMmJVSU",block:'[[[8,[39,0],null,[["@topic","@disableActions","@tagName"],[[30,1,["topic"]],[30,1,["disableActions"]],""]],null]],["@data"],false,["topic-status"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/topic-status.js",isStrictMode:!1}))},6764:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(73326),r=i(96791),a=i(86981),o=i(75093),l=i(77296),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#e2=(()=>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(),l.default.routeTo(this.moreUrl),!1}static #i=(()=>dt7948.n(this.prototype,"transitionToMoreUrl",[a.action]))();moreOfType(e){this.args.updateTypeFilter(e),this.args.triggerSearch(),this.args.closeSearchMenu()}static #n=(()=>dt7948.n(this.prototype,"moreOfType",[a.action]))();onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}static #a=(()=>dt7948.n(this.prototype,"onKeyup",[a.action]))();static #l=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"EWhXHYPn",block:'[[[1,"\\n"],[41,[30,0,["topicResults"]],[[[1," "],[11,0],[24,0,"search-menu__show-more"],[4,[32,0],["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,[32,0],["click",[30,0,["transitionToMoreUrl"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["more"],null]],[1,"...\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicResults","more"]],[[[1," "],[11,3],[24,0,"filter search-link"],[4,[32,0],["click",[28,[32,2],[[30,0,["moreOfType"]],[30,0,["topicResults","type"]]],null]],null],[12],[1,"\\n "],[1,[28,[32,1],["more"],null]],[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/search-menu/results/more-link.js",scope:()=>[r.on,u.i18n,n.fn],isStrictMode:!0}),this))()}},6799:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},n=function(e){return function(t,n,r,a){var o=i(t),l=s[e][i(t)];return 2===o&&(l=l[+!n]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];return e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})},6803:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(93317),n=i(7155),r=i(73326),a=i(96848),o=i(95112),l=i(75093),u=i(89920),d=i(7953),c=i(76947),p=i(63538),h=i(14051),m=i(97908),g=i(43733),f=i(96982),_=i(70508),y=i(32045),b=i(1519);let w=(0,u.lQ)("ace-editor"),k=/\$(primary|secondary|tertiary|quaternary|header_background|header_primary|highlight|danger|success|love)(\s|;|-(low|medium|high))/g;class T extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"isLoading",[n.tracked],function(){return!0}))();#il=(()=>void dt7948.i(this,"isLoading"))();editor=null;ace=null;skipChangePropagation=!1;setContent=(()=>(0,d.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=w.beginAsync();return this.editor.renderer.once("afterRender",()=>w.endAsync(e)),()=>w.endAsync(e)}))();constructor(){super(...arguments),(0,g.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 i=this.$updatePlaceholder;this.$updatePlaceholder=(function(){i.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,m.isTesting)()&&(e.aceEditor=this.editor),this.changeDisabledState(),this.warnSCSSDeprecations(),this.autofocus&&this.focus(),this.setAceTheme()}static #n=(()=>dt7948.n(this.prototype,"setupAce",[h.bind]))();get mode(){return this.args.mode||"css"}get cssClasses(){let e=["ace"];return this.args.resizable&&e.push("ace_editor--resizable"),e.join(" ")}editorIdChanged(){this.autofocus&&this.focus()}static #a=(()=>dt7948.n(this.prototype,"editorIdChanged",[h.bind]))();modeChanged(){this.editor?.getSession().setMode(`ace/mode/${this.mode}`)}static #l=(()=>dt7948.n(this.prototype,"modeChanged",[h.bind]))();placeholderChanged(){this.editor?.setOptions({placeholder:this.args.placeholder})}static #d=(()=>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 #p=(()=>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(` `).map((e,t)=>{if(e.match(k))return{row:t,column:0,text:(0,_.i18n)("admin.customize.theme.scss_warning_inline"),type:"warning"}}).filter(Boolean);this.editor.getSession().setAnnotations(e),this.args.setWarning?.(!!e.length&&(0,_.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 #m=(()=>dt7948.n(this.prototype,"setAceTheme",[h.bind]))();resize(){this.editor?.resize()}static #f=(()=>dt7948.n(this.prototype,"resize",[h.bind]))();focus(){this.editor&&(this.editor.focus(),this.editor.navigateFileEnd())}static #y=(()=>dt7948.n(this.prototype,"focus",[h.bind]))();onResizeDrag(e){this.editor.container.style.height=`${e}px`}static #v=(()=>dt7948.n(this.prototype,"onResizeDrag",[h.bind]))();static #k=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"QkFCtSK6",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],[16,0,[28,[32,1],[[30,0,["cssClasses"]]],null]],[17,1],[4,[32,2],[[30,0,["setupAce"]]],null],[4,[30,0,["setContent"]],null,null],[4,[32,3],[[30,0,["editorIdChanged"]],[30,2]],null],[4,[32,3],[[30,0,["modeChanged"]],[30,3]],null],[4,[32,3],[[30,0,["placeholderChanged"]],[30,4]],null],[4,[32,3],[[30,0,["changeDisabledState"]],[30,5]],null],[12],[1,"\\n "],[13],[1,"\\n"],[41,[30,6],[[[1," "],[11,0],[24,0,"grippie"],[4,[32,4],[".ace_editor--resizable","bottom",[28,[32,5],null,[["onThrottledDrag"],[[30,0,["onResizeDrag"]]]]]],null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@editorId","@mode","@placeholder","@disabled","@resizable"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/ace-editor.js",scope:()=>[c.default,p.default,a.default,o.default,f.default,r.hash],isStrictMode:!0}),this))()}},6806:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})})},6813:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(86981),r=i(96848),a=i(75093),o=i(9032),l=i(33294),u=i(32045),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[a.service]))();#e2=(()=>void dt7948.i(this,"search"))();highlight(e){(0,l.default)(e,this.search.activeGlobalSearchTerm)}static #i=(()=>dt7948.n(this.prototype,"highlight",[n.action]))();static #n=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"C5v1dlcJ",block:'[[[1,"\\n "],[11,1],[4,[32,0],[[30,0,["highlight"]]],null],[12],[1,"\\n "],[1,[28,[32,1],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "]],["@string"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/highlighted-search.js",scope:()=>[r.default,o.htmlSafe],isStrictMode:!0}),this))()}},6892:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(9032),r=i(11837),a=i(88192),o=i(12192),l=i(70508);class u extends o.default{userActionType=(()=>a.default.TYPES.topics)();async model(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=await this.store.findFiltered("topicList",{filter:`topics/created-by/${this.modelFor("user").get("username_lower")}`,params:e});return t.set("emptyState",this.emptyState()),t}emptyState(){let e,t,i=this.modelFor("user");return this.isCurrentUser(i)?(e=(0,l.i18n)("user_activity.no_topics_title"),t=(0,n.htmlSafe)((0,l.i18n)("user_activity.no_topics_body",{searchUrl:(0,r.default)("/search")}))):(e=(0,l.i18n)("user_activity.no_topics_title_others",{username:i.username}),t=""),{title:e,body:t}}titleToken(){return(0,l.i18n)("user_action_groups.4")}triggerRefresh(){this.refresh()}static #e=(()=>dt7948.n(this.prototype,"triggerRefresh",[s.action]))()}},6938:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(39826),n=i(75570),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Was2YHpJ",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"add-pm-participants"]],[["@title","@closeModal","@bodyClass"],[[28,[32,1],[[30,1,["title"]]],null],[30,2],"invite modal-panel"]],[["body"],[[[[1,"\\n "],[8,[32,2],null,[["@inviteModel","@closeModal"],[[30,1,["inviteModel"]],[30,2]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],["@model","@closeModal"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/add-pm-participants.js",scope:()=>[s.default,r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,"add-pm-participants:AddPmParticipants"))},7022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(e){e.lookup("service:client-error-handler"),e.lookup("service:deprecation-warning-handler")}}},7039:(e,t,i)=>{e.exports=i(64339)},7104:(e,t,i)=>{"use strict";i.r(t),i.d(t,{HANDLERS:()=>s,invoke:()=>r,registerHandler:()=>n});let s={},n=function(e,t){},r=()=>{};n=function(e,t){let i=s[e]||(()=>{});s[e]=(e,s)=>{t(e,s,i)}},r=function(e,t,i,n){if(i)return;let r=s[e];r&&r(t,n)}},7145:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(7155),n=i(64081),r=i(75093),a=i(15383),o=i(12465),l=i(87367),u=i(14051),d=i(86750),c=i(35697),p=i(70508);class h{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #a=(()=>dt7948.g(this.prototype,"dragCss",[s.tracked]))();#iu=(()=>void dt7948.i(this,"dragCss"))();static #l=(()=>dt7948.g(this.prototype,"links",[s.tracked]))();#id=(()=>void dt7948.i(this,"links"))();constructor(e){let{section:t,owner:i}=e;(0,n.setOwner)(this,i),this.section=t,this.slug=(0,a.isPresent)(t.slug)?t.slug:(0,c.unicodeSlugify)(t.title),this.links=this.section.links.map(e=>new d.default(e,this,this.router))}get decoratedTitle(){return this.section.title}get indicatePublic(){return this.section.public&&this.currentUser?.staff}get headerActions(){if(!this.section.public||this.currentUser?.admin)return[{action:()=>this.modal.show(o.default,{model:this}),title:(0,p.i18n)("sidebar.sections.custom.edit")}]}get headerActionIcon(){return"pencil"}disable(){this.dragCss="disabled"}static #d=(()=>dt7948.n(this.prototype,"disable",[u.bind]))();enable(){this.dragCss=null}static #p=(()=>dt7948.n(this.prototype,"enable",[u.bind]))();moveLinkDown(e){let t=this.links.indexOf(e)+1;this.links=this.links.removeObject(e),this.links.splice(t,0,e)}static #m=(()=>dt7948.n(this.prototype,"moveLinkDown",[u.bind]))();moveLinkUp(e){let t=this.links.indexOf(e)-1;this.links=this.links.removeObject(e),this.links.splice(t,0,e)}static #f=(()=>dt7948.n(this.prototype,"moveLinkUp",[u.bind]))();reorder(){return(0,l.ajax)("/sidebar_sections/reorder",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({sidebar_section_id:this.section.id,links_order:this.links.map(e=>e.id)})})}static #y=(()=>dt7948.n(this.prototype,"reorder",[u.bind]))()}},7153:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(50890);class n extends s.default{}},7155:(e,t,i)=>{"use strict";i.r(t),i.d(t,{cached:()=>s,tracked:()=>n});let{cached:s,tracked:n}=i(29517)},7166:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(27797);class r extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();beforeModel(){this.router.transitionTo("group.index")}}},7185:(e,t,i)=>{"use strict";i.r(t);var s=i(48137),n=i(60253);(0,s.default)({workflow:n.default})},7229:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{SEARCH_BUTTON_ID:()=>C,clearExtraHeaderButtons:()=>M,default:()=>x,headerButtonsDAG:()=>D});var n=i(93317),r=i(7155),a=i(86981),o=i(75093),l=i(7953),u=i(57079),d=i(53329),c=i(10458),p=i(45773),h=i(44446),m=i(92142),g=i(77296),f=i(64938),_=i(95098),y=i(94893),b=i(71020),w=i(75692),k=i(23221),T=i(32045),S=i(1519);let C="search-button";function A(){(s=new p.default({defaultPosition:{before:"auth"}})).add("auth")}function D(){return s}function M(){A()}A();class x extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"search",[o.service]))();#e2=(()=>void dt7948.i(this,"search"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #p=(()=>dt7948.g(this.prototype,"header",[o.service]))();#t_=(()=>void dt7948.i(this,"header"))();static #m=(()=>dt7948.g(this.prototype,"skipSearchContext",[r.tracked],function(){return this.site.mobileView}))();#ic=(()=>void dt7948.i(this,"skipSearchContext"))();appEventsListeners=(()=>(0,l.modifier)(()=>(this.appEvents.on("header:keyboard-trigger",this,this.headerKeyboardTrigger),()=>{this.appEvents.off("header:keyboard-trigger",this,this.headerKeyboardTrigger)})))();handleFocus=(()=>(0,l.modifier)(e=>{let t=e.querySelector(".panel-body");if(!t)return;let i=!1,s=e=>{e.key&&(i=!0)},n=()=>{i=!1},r=e=>{if(!i)return;let s=document.querySelector(".d-modal")?.contains(e.relatedTarget);t.contains(e.relatedTarget)||s||this.closeCurrentMenu()};return t.addEventListener("keydown",s),t.addEventListener("mousedown",n),t.addEventListener("focusout",r),()=>{t.removeEventListener("keydown",s),t.removeEventListener("mousedown",n),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 #f=(()=>dt7948.n(this.prototype,"closeCurrentMenu",[a.action]))();headerKeyboardTrigger(e){switch(e.type){case"search":this.search.welcomeBannerSearchInViewport||this.toggleSearchMenu();break;case"user":this.toggleUserMenu();break;case"hamburger":this.toggleNavigationMenu()}}static #y=(()=>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,m.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 #v=(()=>dt7948.n(this.prototype,"toggleSearchMenu",[a.action]))();toggleUserMenu(e){this.header.userVisible=e??!this.header.userVisible,this.toggleBodyScrolling(this.header.userVisible),this.args.animateMenu()}static #k=(()=>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 #S=(()=>dt7948.n(this.prototype,"toggleNavigationMenu",[a.action]))();toggleHamburger(){this.header.hamburgerVisible=!this.header.hamburgerVisible,this.toggleBodyScrolling(this.header.hamburgerVisible),this.args.animateMenu()}static #A=(()=>dt7948.n(this.prototype,"toggleHamburger",[a.action]))();toggleSidebar(){this.args.toggleSidebar(),this.args.animateMenu()}static #M=(()=>dt7948.n(this.prototype,"toggleSidebar",[a.action]))();toggleBodyScrolling(e){this.site.mobileView&&(0,h.default)(e)}static #E=(()=>dt7948.n(this.prototype,"toggleBodyScrolling",[a.action]))();static #P=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"sogjcebF",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","@narrowDesktop"],[[30,1],[30,0,["toggleNavigationMenu"]],[30,2],[30,3],[30,4],[30,0,["site","narrowDesktopView"]]]],[["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","@topicInfoVisible","@narrowDesktop","@searchButtonId"],[[30,1],[30,0,["toggleSearchMenu"]],[30,0,["toggleNavigationMenu"]],[30,0,["toggleUserMenu"]],[30,4],[30,0,["site","narrowDesktopView"]],[32,7]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","visible"]],[[[1," "],[8,[32,8],[[4,[30,0,["handleFocus"]],null,null]],[["@closeSearchMenu","@searchInputId"],[[30,0,["toggleSearchMenu"]],"icon-search-input"]],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"],[[30,4]]]]]],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:()=>[_.default,s,u.and,u.eq,u.not,f.default,b.default,C,w.default,y.default,k.default,u.or,d.default,c.default],isStrictMode:!0}),this))()}},7372:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},i={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};return e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return(12===e&&(e=0),"રાત"===t)?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})})},7374:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(7155),n=i(50890),r=i(86981),a=i(93239),o=i(91558),l=i(15383),u=i(16356),d=i(29387),c=i(14051),p=i(85049),h=i(63159),m=i(54187),g=i(12192);class f extends n.default{static #e=(()=>dt7948.g(this.prototype,"model",[s.tracked]))();#ip=(()=>void dt7948.i(this,"model"))();hideCategory=!1;showPosters=!1;channel=null;tagsForUser=null;queryParams=(()=>Object.keys(g.QUERY_PARAMS))();bulkSelectHelper=(()=>new d.default(this))();static #i=(()=>dt7948.g(this.prototype,"canBulkSelect",[(0,o.or)("currentUser.canManageTopic","showDismissRead","showResetNew")]))();#ih=(()=>void dt7948.i(this,"canBulkSelect"))();constructor(){for(let[e,t]of(super(...arguments),Object.entries(g.QUERY_PARAMS)))(0,p.defineTrackedProperty)(this,e,t.default)}get incomingCount(){return this.pmTopicTrackingState.newIncoming.length}static #n=(()=>dt7948.n(this.prototype,"incomingCount",[a.dependentKeyCompat]))();get bulkSelectEnabled(){return this.bulkSelectHelper.bulkSelectEnabled}get selected(){return this.bulkSelectHelper.selected}noContent(e,t){return 0===e&&0===t}static #a=(()=>dt7948.n(this.prototype,"noContent",[(0,c.default)("model.topics.length","incomingCount")]))();showResetNew(e,t){return e===m.NEW_FILTER&&t}static #l=(()=>dt7948.n(this.prototype,"showResetNew",[(0,c.default)("filter","model.topics.length")]))();showDismissRead(e,t){return e===m.UNREAD_FILTER&&t}static #d=(()=>dt7948.n(this.prototype,"showDismissRead",[(0,c.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 #p=(()=>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),h.default.pmResetNew(t).then(e=>{e&&e.topic_ids.length>0&&(this.pmTopicTrackingState.removeTopics(e.topic_ids),this.send("refresh"))})}static #m=(()=>dt7948.n(this.prototype,"resetNew",[r.action]))();loadMore(){this.model.loadMore()}static #f=(()=>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 #y=(()=>dt7948.n(this.prototype,"showInserted",[r.action]))();refresh(){this.send("triggerRefresh")}static #v=(()=>dt7948.n(this.prototype,"refresh",[r.action]))();toggleBulkSelect(){this.bulkSelectHelper.toggleBulkSelect()}static #k=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[r.action]))();dismissRead(e,t){this.bulkSelectHelper.dismissRead(e,t)}static #S=(()=>dt7948.n(this.prototype,"dismissRead",[r.action]))();updateAutoAddTopicsToBulkSelect(e){this.bulkSelectHelper.autoAddTopicsToBulkSelect=e}static #A=(()=>dt7948.n(this.prototype,"updateAutoAddTopicsToBulkSelect",[r.action]))();addTopicsToBulkSelect(e){this.bulkSelectHelper.addTopics(e)}static #M=(()=>dt7948.n(this.prototype,"addTopicsToBulkSelect",[r.action]))()}},7385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(32045),n=i(96791),r=i(86981),a=i(9032),o=i(14051),l=i(25217),u=i(70508),d=i(1519);class c extends s.default{secondFactorTitle(e){switch(e){case l.SECOND_FACTOR_METHODS.TOTP:case l.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,u.i18n)("login.second_factor_title");case l.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,u.i18n)("login.second_factor_backup_title")}}static #e=(()=>dt7948.n(this.prototype,"secondFactorTitle",[(0,o.default)("secondFactorMethod")]))();secondFactorDescription(e){switch(e){case l.SECOND_FACTOR_METHODS.TOTP:return(0,u.i18n)("login.second_factor_description");case l.SECOND_FACTOR_METHODS.SECURITY_KEY:return(0,u.i18n)("login.security_key_description");case l.SECOND_FACTOR_METHODS.BACKUP_CODE:return(0,u.i18n)("login.second_factor_backup_description")}}static #i=(()=>dt7948.n(this.prototype,"secondFactorDescription",[(0,o.default)("secondFactorMethod")]))();linkText(e,t){return t?e===l.SECOND_FACTOR_METHODS.TOTP?"login.second_factor_backup":"login.second_factor":e===l.SECOND_FACTOR_METHODS.TOTP?"user.second_factor_backup.use":"user.second_factor.use"}static #n=(()=>dt7948.n(this.prototype,"linkText",[(0,o.default)("secondFactorMethod","isLogin")]))();showToggleMethodLink(e,t,i){return e&&t&&i!==l.SECOND_FACTOR_METHODS.SECURITY_KEY}static #a=(()=>dt7948.n(this.prototype,"showToggleMethodLink",[(0,o.default)("backupEnabled","totpEnabled","secondFactorMethod")]))();toggleSecondFactorMethod(e){e?.preventDefault();let t=this.secondFactorMethod;this.set("secondFactorToken",""),t===l.SECOND_FACTOR_METHODS.TOTP?this.set("secondFactorMethod",l.SECOND_FACTOR_METHODS.BACKUP_CODE):this.set("secondFactorMethod",l.SECOND_FACTOR_METHODS.TOTP)}static #l=(()=>dt7948.n(this.prototype,"toggleSecondFactorMethod",[r.action]))();static #d=(()=>(0,s.setComponentTemplate)((0,d.createTemplateFactory)({id:"u54FRV8D",block:'[[[1,"\\n "],[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,[32,0],[[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,[32,1],["click",[30,0,["toggleSecondFactorMethod"]]],null],[12],[1,[28,[32,2],[[30,0,["linkText"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/second-factor-form.js",scope:()=>[a.htmlSafe,n.on,u.i18n],isStrictMode:!0}),this))()}},7401:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(96791),r=i(1519);class a extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"xyO5mTZu",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"reviewable-input-text"],[4,[32,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-field-text.js",scope:()=>[s.Input,n.on],isStrictMode:!0}),this))()}},7539:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(96848),n=i(9032),r=i(29203),a=i(13355),o=i(39826),l=i(70508),u=i(32045),d=i(1519),c=i(69522);let p=(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"xqH2gQGf",block:'[[[1,"\\n "],[8,[32,0],null,[["@autoFindInput"],[false]],[["default"],[[[[1,"\\n "],[8,[32,1],[[24,0,"create-invite-bulk-modal -large"]],[["@title","@closeModal"],[[28,[32,2],["user.invited.bulk_invite.text"],null],[30,3]]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["uploaded"]],[[[1," "],[1,[28,[32,2],["user.invited.bulk_invite.success"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,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,[32,4],[[30,2]],null],[12],[13],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n"],[41,[51,[30,1,["uploaded"]]],[[[1," "],[8,[32,5],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action","@disabled"],["link",[52,[30,1,["uploading"]],[28,[32,2],["user.invited.bulk_invite.progress"],[["progress"],[[30,1,["uploadProgress"]]]]],[28,[32,2],["user.invited.bulk_invite.text"],null]],[30,1,["startUpload"]],[30,1,["submitDisabled"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,5],[[24,0,"btn-primary"]],[["@label","@action"],["close",[30,3]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[1,2]]]]],[1,"\\n"]],["uploader","setElement","@closeModal"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/create-invite-bulk.js",scope:()=>[r.default,o.default,l.i18n,n.htmlSafe,s.default,a.default],isStrictMode:!0}),(0,c.default)(void 0,"create-invite-bulk:CreateInviteBulk"))},7632:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(73326),r=i(86981),a=i(85024),o=i(13355),l=i(30899),u=i(41154),d=i(70508),c=i(1519);let p=dt7948.c(class extends s.default{expandDetails=!1;toggleDetails(){this.toggleProperty("expandDetails")}static #e=(()=>dt7948.n(this.prototype,"toggleDetails",[r.action]))();filter(e){this.set(`filters.${e.key}`,e.value)}static #i=(()=>dt7948.n(this.prototype,"filter",[r.action]))();static #n=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"6WRCEVV9",block:'[[[1,"\\n "],[10,"tr"],[14,0,"group-manage-logs-row"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[32,1],[[30,0,["filter"]],[28,[32,2],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,[32,3],[[30,0,["log","acting_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[32,1],[[30,0,["filter"]],[28,[32,2],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,[32,3],[[30,0,["log","target_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[32,1],[[30,0,["filter"]],[28,[32,2],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,[32,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[32,1],[[30,0,["filter"]],[28,[32,2],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,[32,4],[[30,0,["log","created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n\\n "],[10,"td"],[14,0,"group-manage-logs-expand-details"],[12],[1,"\\n"],[41,[30,0,["log","prev_value"]],[[[1," "],[8,[32,0],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,[32,5],["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,[32,5],["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],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-manage-logs-row.js",scope:()=>[o.default,n.fn,n.hash,u.default,l.default,d.i18n],isStrictMode:!0}),this))()},[(0,a.tagName)("")])},7666:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(27797),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();beforeModel(){this.siteSettings.tagging_enabled||this.router.transitionTo("tagGroups")}model(){return this.store.createRecord("tagGroup",{name:(0,r.i18n)("tagging.groups.new_name")})}}},7694:(e,t,i)=>{"use strict";function s(e){let t=document.createElement("template");return t.innerHTML=e=e.trim(),t.content.children}i.r(t),i.d(t,{default:()=>s})},7701:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y,setNotificationsLimit:()=>_});var s=i(86981),n=i(75093),r=i(83014),a=i(60293),o=i(87367),l=i(35952),u=i(18878),d=i(22011),c=i(35697),p=i(22141),h=i(95326),m=i(70508);let g=l.MAX_NOTIFICATIONS_LIMIT_PARAMS,f=30;function _(e){if(e<=0||e>g)return void console.error(`Error: Invalid limit of ${e} passed to setNotificationsLimit. Must be greater than 0 and less than ${g}`);f=e}class y extends a.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #a=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"store",[n.service]))();#w=(()=>void dt7948.i(this,"store"))();static #d=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#h=(()=>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 i=[],s=await (0,o.ajax)("/notifications",{data:e}),n=await p.default.initializeNotifications(s.notifications),r=s.pending_reviewables?.map(e=>h.default.create(e));if(r?.length){let e=n.findIndex(e=>e.read),t=n.splice(0,e);(0,c.mergeSortedLists)(t,r,(e,t)=>{let i=new Date(e.created_at);return new Date(t.created_at)>i}).forEach(e=>{let t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site};e instanceof p.default?(t.notification=e,i.push(new u.default(t))):(t.reviewable=e,i.push(new d.default(t)))})}return n.forEach(e=>{i.push(new u.default({notification:e,appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}),i}async performDismiss(){let e={type:"PUT"},t=this.dismissTypes;if(t?.length>0&&(e.data={dismiss_types:t.join(",")}),await (0,o.ajax)("/notifications/mark-read",e),t){let e={...this.currentUser.grouped_unread_notifications};t.forEach(t=>{let i=this.site.notification_types[t];i&&delete e[i]}),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,c.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 #p=(()=>dt7948.n(this.prototype,"dismissButtonClick",[s.action]))()}},7743:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(24813),n=i(75093),r=i(14051),a=i(97908),o=i(44233);let l=Symbol("scroll-location"),u=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"historyStore",[n.service]))();#im=(()=>void dt7948.i(this,"historyStore"))();scrollElement=(()=>(0,a.isTesting)()?document.getElementById("ember-testing-container"):document.scrollingElement)();init(){super.init(...arguments),this.router.on("routeDidChange",this.routeDidChange),this.router.on("routeWillChange",this.routeWillChange)}willDestroy(){this.router.off("routeDidChange",this.routeDidChange),this.router.off("routeWillChange",this.routeWillChange)}routeWillChange(){this.historyStore.set(l,[this.scrollElement.scrollLeft,this.scrollElement.scrollTop])}static #n=(()=>dt7948.n(this.prototype,"routeWillChange",[r.bind]))();routeDidChange(e){if(e.isAborted||!this.#ig(e.to))return;let t=this.historyStore.get(l)||[0,0];(0,s.next)(()=>this.scrollElement.scrollTo(...t))}static #a=(()=>dt7948.n(this.prototype,"routeDidChange",[r.bind]))();#ig(e){for(let t=e;t;t=t.parent){let e=t.metadata?.scrollOnTransition;if("boolean"==typeof e)return e}return!0}},[o.disableImplicitInjections])},7749:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(91558),n=i(85024),r=i(8212),a=i(92496),o=i(87542);let l=dt7948.c(class extends r.default{static #e=(()=>dt7948.g(this.prototype,"autoFilterable",[(0,s.gte)("content.length",10)]))();#i_=(()=>void dt7948.i(this,"autoFilterable"))()},[(0,o.selectKitOptions)({caretUpIcon:"caret-up",caretDownIcon:"caret-down",autoFilterable:"autoFilterable",clearable:!1,headerComponent:a.default,shouldDisplayIcon:!1}),(0,o.pluginApiIdentifiers)(["combo-box"]),(0,n.classNames)("combobox","combo-box")])},7781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(13355),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"sWrkaLZ0",block:'[[[1,"\\n "],[8,[32,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],[1,"\\n"]],["@togglePasswordMask","@maskPassword"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/toggle-password-mask.js",scope:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"toggle-password-mask:TogglePasswordMask"))},7940:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(86981),a=i(57079),o=i(13355),l=i(38069),u=i(27e3),d=i(70508),c=i(32045),p=i(1519);let h=(0,i(96900).A)(i(7155)).cached;class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"collapsed",[n.tracked],function(){return!0}))();#iy=(()=>void dt7948.i(this,"collapsed"))();get links(){return this.args.post.internalLinks?.filter(e=>e.reflection)?.reduce((e,t)=>(e.find(e=>t.title===e.title)||e.push(t),e),[])}static #i=(()=>dt7948.n(this.prototype,"links",[h]))();get canExpandList(){return this.links?.length>5&&this.collapsed}get displayedLinks(){return this.canExpandList?this.links.slice(0,5):this.links}get remainingCount(){return this.links.length-5}expandList(){this.collapsed=!1}static #n=(()=>dt7948.n(this.prototype,"expandList",[r.action]))();static #a=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"z3UsqGYj",block:'[[[1,"\\n"],[41,[30,0,["links"]],[[[1," "],[10,0],[14,0,"post-links-container"],[12],[1,"\\n "],[10,"ul"],[14,0,"post-links"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["displayedLinks"]]],null]],null],"title",[[[1," "],[10,"li"],[12],[1,"\\n "],[10,3],[14,0,"track-link inbound"],[15,"data-clicks",[52,[28,[32,0],[[30,1,["clicks"]],0],null],[30,1,["clicks"]]]],[15,6,[30,1,["url"]]],[12],[1,"\\n "],[1,[28,[32,1],["link"],null]],[1,"\\n "],[1,[28,[32,2],[[30,1,["title"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[41,[30,0,["canExpandList"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-transparent expand-links"]],[["@translatedLabel","@title","@action"],[[28,[32,4],["post_links.title"],[["count"],[[30,0,["remainingCount"]]]]],"post_links.about",[30,0,["expandList"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["link"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/links.js",scope:()=>[a.gt,l.default,u.default,o.default,d.i18n],isStrictMode:!0}),this))()}},7953:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,modifier:()=>d});var s=i(92556),n=i(96791),r=i(76632);class a{capabilities=(()=>(0,n.capabilities)("3.22"))();constructor(e){this.owner=e}createModifier(e,t){return{instance:new e(this.owner,t),element:null}}installModifier(e,t,i){(function(e,t){return e.element=t,e})(e,t).instance.modify(t,i.positional,i.named)}updateModifier(e,t){e.instance.modify(e.element,t.positional,t.named)}destroyModifier(e){let{instance:t}=e;(0,r.destroy)(t)}}class o{constructor(e,t){(0,s.setOwner)(this,e)}modify(e,t,i){}}(0,n.setModifierManager)(e=>new a(e),o);class l{capabilities=(()=>(0,n.capabilities)("3.22"))();createModifier(e){return{element:null,instance:e}}installModifier(e,t,i){let s=function(e,t){return e.element=t,e}(e,t),{positional:n,named:r}=i,a=e.instance(t,n,r);"function"==typeof a&&(s.teardown=a)}updateModifier(e,t){"function"==typeof e.teardown&&e.teardown();let i=e.instance(e.element,t.positional,t.named);"function"==typeof i&&(e.teardown=i)}destroyModifier(e){"function"==typeof e.teardown&&e.teardown()}getDebugName(e){return e.instance.toString()}getDebugInstance(e){return e}}let u=new l;function d(e,t){return e.toString=()=>t?.name||e.name,(0,n.setModifierManager)(()=>u,e)}},8003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d,forceMobile:()=>l,resetMobile:()=>u});var s=i(41107),n=i.n(s),r=i(97908);let a=!1,o={isMobileDevice:!1,mobileView:!1,init(){let e=n()("html");if(this.isMobileDevice=a||e.hasClass("mobile-device"),this.mobileView=a||e.hasClass("mobile-view"),!(0,r.isTesting)()&&!a)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"))}};function l(){a=!0,o.init()}function u(){a=!1,o.init()}let d=o},8004:(e,t,i)=>{"use strict";function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}i.d(t,{A:()=>s})},8007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(76162),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"Iwsjtrey",block:'[[[1,"\\n "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,0],["tagging.groups.edit_title"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@model","@onDestroy"],[[30,1,["model"]],[30,1,["onDestroy"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/tag-groups-edit.js",scope:()=>[r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},8071:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(75093),l=i(57079),u=i(13355),d=i(29727),c=i(38069),p=i(77296),h=i(70508),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"isEditing",[n.tracked],function(){return!1}))();#ib=(()=>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 #n=(()=>dt7948.n(this.prototype,"toggleEditing",[a.action]))();static #a=(()=>(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 s.default{get canRemoveLink(){return this.args.isEditing&&this.args.canRemoveAllowedUsers}get groupUrl(){return(0,p.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:()=>[c.default,y],isStrictMode:!0}),this))()}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>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 #i=(()=>dt7948.n(this.prototype,"showConfirmDialog",[a.action]))();static #n=(()=>(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 s.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:()=>[d.default,r.hash,w],isStrictMode:!0}),this))()}class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>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 #i=(()=>dt7948.n(this.prototype,"showConfirmDialog",[a.action]))();static #n=(()=>(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))()}},8135:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(77061),n=i(11651),r=i(63272),a=i(38256),o=i(94023),l=i(35622),u=i(30507),d=i(82925);class c{constructor(e,t,i){this.widget=e,this.attrs=t,this.canConnectComponent=!0,this.state=i,this.register=e.register,this.register.deprecateContainer(this)}attach(e,t,i){return t=t||this.widget.attrs,i=i||this.widget.state,this.widget.attach(e,t,i)}get model(){return this.widget.findAncestorModel()}getModel(){return this.model}rawHtml(e){return new u.default({html:e})}cooked(e){return new o.default({cooked:e},this)}connect(e){return new a.default(this.widget,e)}renderGlimmer(e,t,i){if(e instanceof Element||(0,r.default)("The `targetElement` parameter provided to `helper.renderGlimmer` is invalid. It must be an existing HTML element. Using a string to describe a new wrapper element is deprecated.",l.POST_STREAM_DEPRECATION_OPTIONS),(0,s.hasInternalComponentManager)(t)||(0,r.default)("The `component` parameter provided to `helper.renderGlimmer` is invalid. It must be a valid Glimmer component. Using a template compiled via `ember-cli-htmlbars` is deprecated. Use the syntax or replace it with a proper component.",l.POST_STREAM_DEPRECATION_OPTIONS),!this.widget.postContentsDestroyCallbacks)throw"renderGlimmer can only be used in the context of a post";let n=new d.default(this.widget,e,t,i);return n.init(),this.widget.postContentsDestroyCallbacks.push(n.destroy.bind(n)),n.element}}c.prototype.h=n.h;let p=c},8195:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getScrollParent:()=>function e(t){let i=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return t&&t!==document.documentElement?"visible"!==i&&"hidden"!==i&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||window:null}})},8212:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(73326),n=i(86981),r=i(15383),a=i(85024),o=i(57079),l=i(51489),u=i.n(l),d=i(70508),c=i(87542),p=i(21337),h=i(43682),m=i(92858),g=i(32045),f=i(1519);let _=dt7948.c(class extends c.default{singleSelect=!0;get selectedContent(){if((0,r.isEmpty)(this.value))return this.selectKit.noneItem;{let e,t=this.selectKit.options.castInteger&&(0,h.isNumeric)(this.value)?Number(this.value):this.value;return this.selectKit.valueProperty?(e=(this.content||[]).findBy(this.selectKit.valueProperty,t),this.selectKit.modifySelection(e||this.defaultItem(t,t))):this.selectKit.modifySelection((this.content||[]).filter(e=>e===t))}}static #e=(()=>dt7948.n(this.prototype,"selectedContent",[(0,n.computed)("value","content.[]","selectKit.noneItem")]))();static #i=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"Be4uVGk7",block:'[[[1,"\\n"],[41,[51,[30,0,["selectKit","isHidden"]]],[[[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","headerComponent"]]],null]],[[[1," "],[8,[30,1],null,[["@tabindex","@value","@selectedContent","@selectKit","@id"],[[30,0,["tabindex"]],[30,0,["value"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-header"],null]]],null],[1,"\\n"]],[1]]],[1,"\\n "],[8,[32,2],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-body"],null]]],[["default"],[[[[1,"\\n"],[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","filterComponent"]]],null]],[[[1," "],[8,[30,2],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-filter"],null]]],null],[1,"\\n"]],[2]]],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["collections"]]],null]],null],null,[[[44,[[28,[32,0],[[30,0],[28,[32,3],[[30,3,["identifier"]],[30,0,["selectKit"]]],null]],null]],[[[1," "],[8,[30,4],null,[["@collection","@selectKit","@value"],[[30,3],[30,0,["selectKit"]],[30,0,["value"]]]],null],[1,"\\n"]],[4]]]],[3]],null],[1,"\\n"],[41,[30,0,["selectKit","filter"]],[[[41,[28,[32,4],[[30,0,["selectKit","hasNoContent"]],[28,[32,5],[[30,0,["selectKit","isLoading"]]],null]],null],[[[1," "],[10,1],[14,0,"no-content"],[14,"role","alert"],[12],[1,"\\n "],[1,[28,[32,6],["select_kit.no_content"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"results-count"],[14,"role","alert"],[12],[1,"\\n "],[1,[28,[32,6],["select_kit.results_count"],[["count"],[[30,0,["mainCollection","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["HeaderComponent","FilterComponent","collection","CollectionComponent"],false,["unless","let","each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/single-select.js",scope:()=>[c.resolveComponent,s.concat,p.default,u(),o.and,o.not,d.i18n],isStrictMode:!0}),this))()},[(0,c.pluginApiIdentifiers)(["single-select"]),(0,c.selectKitOptions)({headerComponent:m.default}),(0,a.classNames)("single-select")])},8387:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(17631);let n={initWithApi(e){let t=CSS.supports("aspect-ratio: 1");e.decorateCookedElement(e=>{e.querySelectorAll("img").forEach(e=>{let i=parseFloat(e.getAttribute("height")),s=parseFloat(e.getAttribute("width"));if(!(isNaN(i)||isNaN(s))&&!e.style.aspectRatio)if(t)e.style.setProperty("aspect-ratio",`${s} / ${i}`);else{let t=e.width/(s/i);e.style.setProperty("--calculated-height",`${t}px`)}})})},initialize(){(0,s.withPluginApi)("1.2.0",this.initWithApi)}}},8464:(e,t,i)=>{"use strict";i.r(t),i.d(t,{_addTrackedPostProperty:()=>E,clearAddedTrackedPostProperties:()=>L,default:()=>F});var s=i(7155),n=i(86981),r=i(91558),a=i(75093),o=i(15383),l=i(31075),u=i(56696),d=i(87367),c=i(16356),p=i(714),h=i(14051),m=i(67698),g=i(68445),f=i(85049),_=i(77296),y=i(35697),b=i(55233),w=i(18323),k=i(94996),T=i(47872),S=i(18693),C=i(25217),A=i(70508);let D=(0,i(96900).A)(i(7155)).cached,M=new Set,x=new Set;function E(e){M.add(e)}function L(){M.clear()}function P(e,t,i){return x.add(t),(0,s.tracked)(e,t,i)}class F extends T.default{static munge(e){if(e.likeAction??=null,e.actions_summary){let t=n.default.create();e.actions_summary=e.actions_summary.map(i=>{i.actionType=S.default.current().postActionTypeById(i.id),i.count=i.count||0;let s=b.default.create(i);return t[i.actionType.name_key]=s,"like"===i.actionType.name_key&&(e.likeAction=s),s}),e.actionByName=t}return e&&e.reply_to_user&&(e.reply_to_user=C.default.create(e.reply_to_user)),e}static updateBookmark(e,t){return(0,d.ajax)(`/posts/${e}/bookmark`,{type:"PUT",data:{bookmarked:t}})}static destroyBookmark(e){return(0,d.ajax)(`/posts/${e}/bookmark`,{type:"DELETE"})}static deleteMany(e){let{agreeWithFirstReplyFlag:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,d.ajax)("/posts/destroy_many",{type:"DELETE",data:{post_ids:e,agree_with_first_reply_flag:t}})}static mergePosts(e){return(0,d.ajax)("/posts/merge_posts",{type:"PUT",data:{post_ids:e}}).catch(c.popupAjaxError)}static loadRevision(e,t){return(0,d.ajax)(`/posts/${e}/revisions/${t}.json`).then(e=>(e.categories?.forEach(e=>S.default.current().updateCategory(e)),n.default.create(e)))}static hideRevision(e,t){return(0,d.ajax)(`/posts/${e}/revisions/${t}/hide`,{type:"PUT"})}static permanentlyDeleteRevisions(e){return(0,d.ajax)(`/posts/${e}/revisions/permanently_delete`,{type:"DELETE"})}static showRevision(e,t){return(0,d.ajax)(`/posts/${e}/revisions/${t}/show`,{type:"PUT"})}static loadRawEmail(e){return(0,d.ajax)(`/posts/${e}/raw-email.json`)}static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"customShare",[s.tracked],function(){return null}))();#iv=(()=>void dt7948.i(this,"customShare"))();static #a=(()=>dt7948.g(this.prototype,"action_code",[P]))();#iw=(()=>void dt7948.i(this,"action_code"))();static #l=(()=>dt7948.g(this.prototype,"action_code_path",[P]))();#ik=(()=>void dt7948.i(this,"action_code_path"))();static #d=(()=>dt7948.g(this.prototype,"action_code_who",[P]))();#iT=(()=>void dt7948.i(this,"action_code_who"))();static #p=(()=>dt7948.g(this.prototype,"actions_summary",[P]))();#iS=(()=>void dt7948.i(this,"actions_summary"))();static #m=(()=>dt7948.g(this.prototype,"admin",[P]))();#iC=(()=>void dt7948.i(this,"admin"))();static #f=(()=>dt7948.g(this.prototype,"badges_granted",[P]))();#iA=(()=>void dt7948.i(this,"badges_granted"))();static #y=(()=>dt7948.g(this.prototype,"bookmarked",[P]))();#iD=(()=>void dt7948.i(this,"bookmarked"))();static #v=(()=>dt7948.g(this.prototype,"can_delete",[P]))();#iM=(()=>void dt7948.i(this,"can_delete"))();static #k=(()=>dt7948.g(this.prototype,"can_edit",[P]))();#ix=(()=>void dt7948.i(this,"can_edit"))();static #S=(()=>dt7948.g(this.prototype,"can_permanently_delete",[P]))();#iE=(()=>void dt7948.i(this,"can_permanently_delete"))();static #A=(()=>dt7948.g(this.prototype,"can_recover",[P]))();#iL=(()=>void dt7948.i(this,"can_recover"))();static #M=(()=>dt7948.g(this.prototype,"can_see_hidden_post",[P]))();#iP=(()=>void dt7948.i(this,"can_see_hidden_post"))();static #E=(()=>dt7948.g(this.prototype,"can_view_edit_history",[P]))();#iF=(()=>void dt7948.i(this,"can_view_edit_history"))();static #P=(()=>dt7948.g(this.prototype,"cooked",[P]))();#iI=(()=>void dt7948.i(this,"cooked"))();static #I=(()=>dt7948.g(this.prototype,"cooked_hidden",[P]))();#iN=(()=>void dt7948.i(this,"cooked_hidden"))();static #j=(()=>dt7948.g(this.prototype,"created_at",[P]))();#ij=(()=>void dt7948.i(this,"created_at"))();static #R=(()=>dt7948.g(this.prototype,"deleted_at",[P]))();#iO=(()=>void dt7948.i(this,"deleted_at"))();static #B=(()=>dt7948.g(this.prototype,"deleted_by",[P]))();#iR=(()=>void dt7948.i(this,"deleted_by"))();static #H=(()=>dt7948.g(this.prototype,"excerpt",[P]))();#t1=(()=>void dt7948.i(this,"excerpt"))();static #z=(()=>dt7948.g(this.prototype,"expandedExcerpt",[P]))();#iU=(()=>void dt7948.i(this,"expandedExcerpt"))();static #$=(()=>dt7948.g(this.prototype,"group_moderator",[P]))();#iB=(()=>void dt7948.i(this,"group_moderator"))();static #V=(()=>dt7948.g(this.prototype,"hidden",[P]))();#iY=(()=>void dt7948.i(this,"hidden"))();static #W=(()=>dt7948.g(this.prototype,"id",[P]))();#iH=(()=>void dt7948.i(this,"id"))();static #K=(()=>dt7948.g(this.prototype,"is_auto_generated",[P]))();#iq=(()=>void dt7948.i(this,"is_auto_generated"))();static #G=(()=>dt7948.g(this.prototype,"last_wiki_edit",[P]))();#iz=(()=>void dt7948.i(this,"last_wiki_edit"))();static #J=(()=>dt7948.g(this.prototype,"likeAction",[P]))();#i$=(()=>void dt7948.i(this,"likeAction"))();static #Q=(()=>dt7948.g(this.prototype,"link_counts",[P]))();#iV=(()=>void dt7948.i(this,"link_counts"))();static #X=(()=>dt7948.g(this.prototype,"locked",[P]))();#iW=(()=>void dt7948.i(this,"locked"))();static #Z=(()=>dt7948.g(this.prototype,"moderator",[P]))();#iK=(()=>void dt7948.i(this,"moderator"))();static #ee=(()=>dt7948.g(this.prototype,"name",[P]))();#t3=(()=>void dt7948.i(this,"name"))();static #et=(()=>dt7948.g(this.prototype,"notice",[P]))();#iG=(()=>void dt7948.i(this,"notice"))();static #ei=(()=>dt7948.g(this.prototype,"notice_created_by_user",[P]))();#iJ=(()=>void dt7948.i(this,"notice_created_by_user"))();static #es=(()=>dt7948.g(this.prototype,"post_number",[P]))();#iQ=(()=>void dt7948.i(this,"post_number"))();static #en=(()=>dt7948.g(this.prototype,"post_type",[P]))();#iX=(()=>void dt7948.i(this,"post_type"))();static #er=(()=>dt7948.g(this.prototype,"primary_group_name",[P]))();#iZ=(()=>void dt7948.i(this,"primary_group_name"))();static #ea=(()=>dt7948.g(this.prototype,"quoted",[P]))();#i1=(()=>void dt7948.i(this,"quoted"))();static #eo=(()=>dt7948.g(this.prototype,"read",[P]))();#i0=(()=>void dt7948.i(this,"read"))();static #el=(()=>dt7948.g(this.prototype,"reply_count",[P]))();#i3=(()=>void dt7948.i(this,"reply_count"))();static #eu=(()=>dt7948.g(this.prototype,"reply_to_user",[P]))();#i2=(()=>void dt7948.i(this,"reply_to_user"))();static #ed=(()=>dt7948.g(this.prototype,"staff",[P]))();#i8=(()=>void dt7948.i(this,"staff"))();static #ec=(()=>dt7948.g(this.prototype,"staged",[P]))();#i4=(()=>void dt7948.i(this,"staged"))();static #ep=(()=>dt7948.g(this.prototype,"title_is_group",[P]))();#i7=(()=>void dt7948.i(this,"title_is_group"))();static #eh=(()=>dt7948.g(this.prototype,"topic",[P]))();#i9=(()=>void dt7948.i(this,"topic"))();static #em=(()=>dt7948.g(this.prototype,"topic_id",[P]))();#i5=(()=>void dt7948.i(this,"topic_id"))();static #eg=(()=>dt7948.g(this.prototype,"trust_level",[P]))();#i6=(()=>void dt7948.i(this,"trust_level"))();static #ef=(()=>dt7948.g(this.prototype,"updated_at",[P]))();#se=(()=>void dt7948.i(this,"updated_at"))();static #e_=(()=>dt7948.g(this.prototype,"user",[P]))();#tT=(()=>void dt7948.i(this,"user"))();static #ey=(()=>dt7948.g(this.prototype,"user_deleted",[P]))();#st=(()=>void dt7948.i(this,"user_deleted"))();static #eb=(()=>dt7948.g(this.prototype,"user_id",[P]))();#si=(()=>void dt7948.i(this,"user_id"))();static #ev=(()=>dt7948.g(this.prototype,"user_suspended",[P]))();#ss=(()=>void dt7948.i(this,"user_suspended"))();static #ew=(()=>dt7948.g(this.prototype,"user_title",[P]))();#sn=(()=>void dt7948.i(this,"user_title"))();static #ek=(()=>dt7948.g(this.prototype,"username",[P]))();#sr=(()=>void dt7948.i(this,"username"))();static #eT=(()=>dt7948.g(this.prototype,"version",[P]))();#sa=(()=>void dt7948.i(this,"version"))();static #eS=(()=>dt7948.g(this.prototype,"via_email",[P]))();#so=(()=>void dt7948.i(this,"via_email"))();static #eC=(()=>dt7948.g(this.prototype,"wiki",[P]))();#sl=(()=>void dt7948.i(this,"wiki"))();static #eA=(()=>dt7948.g(this.prototype,"yours",[P]))();#su=(()=>void dt7948.i(this,"yours"))();static #eD=(()=>dt7948.g(this.prototype,"user_custom_fields",[P]))();#sd=(()=>void dt7948.i(this,"user_custom_fields"))();static #eM=(()=>dt7948.g(this.prototype,"has_post_localizations",[P]))();#sc=(()=>void dt7948.i(this,"has_post_localizations"))();static #ex=(()=>dt7948.g(this.prototype,"post_localizations",[P]))();#sp=(()=>void dt7948.i(this,"post_localizations"))();static #eE=(()=>dt7948.g(this.prototype,"canEdit",[(0,r.alias)("can_edit")]))();#sh=(()=>void dt7948.i(this,"canEdit"))();static #eL=(()=>dt7948.g(this.prototype,"new_user",[(0,r.equal)("trust_level",0)]))();#sm=(()=>void dt7948.i(this,"new_user"))();static #eP=(()=>dt7948.g(this.prototype,"firstPost",[(0,r.equal)("post_number",1)]))();#sg=(()=>void dt7948.i(this,"firstPost"))();static #eF=(()=>dt7948.g(this.prototype,"deletedViaTopic",[(0,r.and)("firstPost","topic.deleted_at")]))();#sf=(()=>void dt7948.i(this,"deletedViaTopic"))();static #eI=(()=>dt7948.g(this.prototype,"deleted",[(0,r.or)("deleted_at","deletedViaTopic")]))();#s_=(()=>void dt7948.i(this,"deleted"))();static #eN=(()=>dt7948.g(this.prototype,"notDeleted",[(0,r.not)("deleted")]))();#sy=(()=>void dt7948.i(this,"notDeleted"))();static #ej=(()=>dt7948.g(this.prototype,"recoverable",[(0,r.or)("deleted_at","user_deleted")]))();#sb=(()=>void dt7948.i(this,"recoverable"))();static #eO=(()=>dt7948.g(this.prototype,"topicOwner",[(0,p.propertyEqual)("topic.details.created_by.id","user_id")]))();#sv=(()=>void dt7948.i(this,"topicOwner"))();static #eR=(()=>dt7948.g(this.prototype,"topicCreatedById",[(0,r.alias)("topic.details.created_by.id")]))();#sw=(()=>void dt7948.i(this,"topicCreatedById"))();static #eU=(()=>dt7948.g(this.prototype,"postDeletedBy",[(0,r.alias)("deletedBy")]))();#sk=(()=>void dt7948.i(this,"postDeletedBy"))();static #eB=(()=>dt7948.g(this.prototype,"postDeletedAt",[(0,r.alias)("deletedAt")]))();#sT=(()=>void dt7948.i(this,"postDeletedAt"))();constructor(){super(...arguments),M.forEach(e=>{(0,f.defineTrackedProperty)(this,e)})}get shareUrl(){return this.customShare||(0,u.resolveShareUrl)(this.url,this.currentUser)}showName(e,t){return e&&e!==t&&this.siteSettings.display_name_on_posts}static #eY=(()=>dt7948.n(this.prototype,"showName",[(0,h.default)("name","username")]))();get deletedBy(){return this.firstPost?this.topic?.deleted_by:this.deleted_by}get deletedAt(){return this.firstPost?this.topic?.deleted_at:this.deleted_at}url(e,t,i){return(0,y.postUrl)(i||this.topic_slug,t||this.get("topic.id"),e)}static #eH=(()=>dt7948.n(this.prototype,"url",[(0,h.default)("post_number","topic_id","topic.slug")]))();urlWithNumber(e,t){return 1===e?`${t}/1`:t}static #eq=(()=>dt7948.n(this.prototype,"urlWithNumber",[(0,h.default)("post_number","url")]))();usernameUrl(e){return(0,_.userPath)(e)}static #ez=(()=>dt7948.n(this.prototype,"usernameUrl",[(0,h.default)("username")]))();updatePostField(e,t){let i={};return i[e]=t,(0,d.ajax)(`/posts/${this.id}/${e}`,{type:"PUT",data:i}).then(i=>(this.set(e,t),i)).catch(c.popupAjaxError)}get internalLinks(){return(0,o.isEmpty)(this.link_counts)?null:this.link_counts.filter(e=>e.internal&&e.title)}flagsAvailable(){return this.site?this.site.flagTypes.filter(e=>this.get(`actionByName.${e.name_key}.can_act`)):[]}static #e$=(()=>dt7948.n(this.prototype,"flagsAvailable",[(0,h.default)("actions_summary.@each.can_act")]))();useTopicTitleHeadline(e,t){return e&&t}static #eV=(()=>dt7948.n(this.prototype,"useTopicTitleHeadline",[(0,h.default)("siteSettings.use_pg_headlines_for_excerpt","topic_title_headline")]))();topicTitleHeadline(e){return(0,g.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)}static #eW=(()=>dt7948.n(this.prototype,"topicTitleHeadline",[(0,h.default)("topic_title_headline")]))();get canBookmark(){return!!this.currentUser}get canDelete(){return this.can_delete&&!this.deleted_at&&this.currentUser&&(this.currentUser.staff||!this.user_deleted)}get canDeleteTopic(){return this.firstPost&&!this.deleted&&this.topic.details.can_delete}get canEditStaffNotes(){return!!this.topic.details.can_edit_staff_notes}get canFlag(){return!this.topic.deleted&&!(0,o.isEmpty)(this.flagsAvailable)}get canManage(){return this.currentUser?.canManageTopic}get canPermanentlyDelete(){return this.deleted&&(this.firstPost?this.topic.details.can_permanently_delete:this.can_permanently_delete)}get canPublishPage(){return this.firstPost&&!!this.topic.details.can_publish_page}get canRecoverTopic(){return this.firstPost&&this.deleted&&this.topic.details.can_recover}get isRecoveringTopic(){return this.firstPost&&!this.deleted&&this.topic.details.can_recover}get canRecover(){return!this.canRecoverTopic&&this.recoverable&&this.can_recover}get isRecovering(){return!this.isRecoveringTopic&&!this.recoverable&&this.can_recover}get canSplitMergeTopic(){return!!this.topic?.details?.can_split_merge_topic}get canToggleLike(){return!!this.likeAction?.get("canToggle")}get filteredRepliesPostNumber(){return this.topic.get("postStream.filterRepliesToPostNumber")}get hasReplies(){return this.reply_count>0}get isWhisper(){return this.post_type===this.site.post_types.whisper}get isModeratorAction(){return this.post_type===this.site.post_types.moderator_action}get isSmallAction(){return this.post_type===this.site.post_types.small_action||"split_topic"===this.action_code}get liked(){return!!this.likeAction?.get("acted")}get likeCount(){return this.likeAction?.get("count")}get showFlagDelete(){return!this.canDelete&&this.yours&&this.canFlag&&this.currentUser&&!this.currentUser.staff}get showLike(){return!!(!this.currentUser||this.topic?.get("archived")&&this.user_id!==this.currentUser.id)||this.likeAction&&(this.liked||this.canToggleLike)}afterUpdate(e){e.category&&this.site.updateCategory(e.category)}updateProperties(){return{post:{raw:this.raw,edit_reason:this.editReason},image_sizes:this.imageSizes}}createProperties(){let e=this.getProperties(k.default.serializedFieldsForCreate());e.reply_to_post_number=this.reply_to_post_number,e.image_sizes=this.imageSizes;let t=this.metaData;return t&&(e.meta_data={},Object.keys(t).forEach(i=>e.meta_data[i]=t[i])),e}async expand(){let e=await (0,d.ajax)(`/posts/${this.id}/expand-embed`);this.cooked=`
${e.cooked}
`}recover(){let e=this.getProperties("deleted_at","deleted_by","user_deleted","can_delete");return this.setProperties({deleted_at:null,deleted_by:null,user_deleted:!1,can_delete:!1}),(0,d.ajax)(`/posts/${this.id}/recover`,{type:"PUT"}).then(e=>{this.setProperties({cooked:e.cooked,raw:e.raw,user_deleted:!1,can_delete:!0,version:e.version})}).catch(t=>{(0,c.popupAjaxError)(t),this.setProperties(e)})}setDeletedState(e){let t;if(this.set("oldCooked",this.cooked),e.staff||0===this.siteSettings.delete_removed_posts_after)this.setProperties({deleted_at:new Date,deleted_by:e,can_delete:!1,can_permanently_delete:this.siteSettings.can_permanently_delete&&e.admin,can_recover:!0});else{let e=1===this.post_number?"topic.deleted_by_author_simple":"post.deleted_by_author_simple";t=(0,m.cook)((0,A.i18n)(e)).then(e=>{this.setProperties({cooked:e,can_delete:!1,can_permanently_delete:!1,version:this.version+1,can_recover:!0,can_edit:!1,user_deleted:!0})})}return t||l.Promise.resolve()}undoDeleteState(){this.oldCooked&&this.setProperties({deleted_at:null,deleted_by:null,cooked:this.oldCooked,version:this.version-1,can_recover:!1,can_delete:!0,user_deleted:!1})}destroy(e,t){return this.setDeletedState(e).then(()=>(0,d.ajax)("/posts/"+this.id,{data:{context:window.location.pathname,...t},type:"DELETE"}))}updateFromPost(e){[...Object.keys(e),...x,...M].forEach(t=>{let i=e[t],s=this[t];i||(i=null),s||(s=null);let r=!1;"function"!=typeof i&&s!==i&&("reply_to_user"===t&&i&&s?r=i.username===s.username||(0,n.get)(i,"username")===(0,n.get)(s,"username"):"topic"===t&&!i&&s&&(r=!0),r||this.set(t,i))})}expandHidden(){return(0,d.ajax)(`/posts/${this.id}/cooked.json`).then(e=>{this.setProperties({cooked:e.cooked,cooked_hidden:!1})})}rebake(){return(0,d.ajax)(`/posts/${this.id}/rebake`,{type:"PUT"}).catch(c.popupAjaxError)}unhide(){return(0,d.ajax)(`/posts/${this.id}/unhide`,{type:"PUT"})}createBookmark(e){this.setProperties({"topic.bookmarked":!0,bookmarked:!0,bookmark_reminder_at:e.reminder_at,bookmark_auto_delete_preference:e.auto_delete_preference,bookmark_name:e.name,bookmark_id:e.id}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",e,{target:"post",targetId:this.id}),this.appEvents.trigger("post-stream:refresh",{id:this.id})}deleteBookmark(e){this.set("topic.bookmarked",e),this.clearBookmark()}clearBookmark(){this.setProperties({bookmark_reminder_at:null,bookmark_name:null,bookmark_id:null,bookmarked:!1,bookmark_auto_delete_preference:null}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",null,{target:"post",targetId:this.id})}updateActionsSummary(e){e&&e.id===this.id&&(e=F.munge(e),this.set("actions_summary",e.actions_summary))}updateLikeCount(e,t,i){let s=this.currentUser?.id===t,n=s&&"liked"===i,r=this.get("actions_summary"),a=S.default.current().post_action_types.find(e=>"like"===e.name_key).id,o={id:a,count:e,acted:n};if(this.actions_summary.find(e=>e.id===a))o.acted=(n||this.likeAction.acted)&&!("unliked"===i&&s),Object.assign(this.actions_summary.find(e=>e.id===a),o),Object.assign(this.actionByName.like,o),Object.assign(this.likeAction,o);else{let e=F.munge({id:this.id,actions_summary:[o]});this.set("actions_summary",Object.assign(r,e.actions_summary)),this.set("actionByName",e.actionByName),this.set("likeAction",e.likeAction)}}revertToRevision(e){return(0,d.ajax)(`/posts/${this.id}/revisions/${e}/revert`,{type:"PUT"})}get topicNotificationLevel(){return this.topic.details.notification_level}get userBadges(){if(!this.topic?.user_badges)return;let e=this.topic.user_badges.users[this.user_id]?.badge_ids;if(e)return e.map(e=>this.topic.user_badges.badges[e])}get badgesGranted(){return this.badges_granted?.map(e=>{let t=w.default.createFromJson(e);return Array.isArray(t)?t[0]:t})}static #eK=(()=>dt7948.n(this.prototype,"badgesGranted",[D]))();get requestedGroupName(){return 1===this.post_number?this.topic?.requested_group_name:null}get expandablePost(){return 1===this.post_number&&!!this.topic?.expandable_first_post}get topicUrl(){return this.topic?.url}get actionsSummary(){return this.actions_summary?.filter(e=>"like"!==e.actionType.name_key&&e.acted)?.map(e=>({id:e.id,postId:this.id,action:e.actionType.name_key,canUndo:e.can_undo,description:e.translatedDescription}))}static #eG=(()=>dt7948.n(this.prototype,"actionsSummary",[D]))()}},8591:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(57079),n=i(74105),r=i(68023),a=i(53329),o=i(38069),l=i(10458),u=i(70508),d=i(32045),c=i(1519),p=i(69522);let h=(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"NDOMpl2U",block:'[[[1,"\\n "],[10,"section"],[14,0,"user-navigation user-navigation-primary"],[12],[1,"\\n "],[8,[32,0],[[24,0,"main-nav nav user-nav"]],[["@ariaLabel"],["User primary"]],[["default"],[[[[1,"\\n"],[41,[51,[30,1,["profile_hidden"]]],[[[1," "],[8,[32,1],[[24,0,"user-nav__summary"]],[["@route"],["user.summary"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["user"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.summary.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,2],[[[1," "],[8,[32,1],[[24,0,"user-nav__activity"]],[["@route","@ariaCurrentContext"],["userActivity","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.activity_stream"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,3],[[[1," "],[8,[32,1],[[24,0,"user-nav__notifications"]],[["@route","@ariaCurrentContext"],["userNotifications","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["bell"],[["class"],["glyph"]]]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.notifications"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1," "],[8,[32,1],[[24,0,"user-nav__personal-messages"]],[["@route","@ariaCurrentContext"],["userPrivateMessages","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["envelope"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.private_messages"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[32,1],[[24,0,"user-nav__invites"]],[["@route","@ariaCurrentContext"],["userInvited","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["user-plus"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.invited.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,6],[[[1," "],[8,[32,1],[[24,0,"user-nav__badges"]],[["@route"],["user.badges"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["certificate"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["badges.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-main-nav","li",[28,[32,5],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["can_edit"]],[[[1," "],[8,[32,1],[[24,0,"user-nav__preferences"]],[["@route","@ariaCurrentContext"],["preferences","parentNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["gear"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["user.preferences.title"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[32,6],[[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,[32,2],["wrench"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,3],["admin.user.manage_user"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],["@user","@showActivityTab","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@isMobileView","@isStaff"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-nav.js",scope:()=>[r.default,n.default,o.default,u.i18n,a.default,l.default,s.and],isStrictMode:!0}),(0,p.default)(void 0,"user-nav:UserNav"))},8670:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})})},8781:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});let s={},n=[],r={addSharingId(e){n.push(e)},addSource(e){e.faIcon&&(e.icon=e.faIcon.replace("fa-",""),delete e.faIcon),s[e.id]=e},shareSource(e,t){if(e.clickHandler)e.clickHandler(t.url,t.title);else{let i=e.generateUrl(t.url,t.title,t.quote),s={menubar:"no",toolbar:"no",resizable:"yes",scrollbars:"yes",width:600,height:e.popupHeight||315},n=Object.keys(s).map(e=>`${e}=${s[e]}`).join(",");e.shouldOpenInPopup?window.open(i,"",n):"email"===e.id?window.location.href=i:window.open(i,"_blank")}},activeSources(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.split("|").concat(n).map(e=>s[e]).compact();return t?i.filter(e=>e.showInPrivateContext):i},_reset(){s={},n=[]}}},8835:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMAGE_MARKDOWN_REGEX:()=>l,allowsAttachments:()=>M,allowsImages:()=>D,authorizedExtensions:()=>_,authorizesAllExtensions:()=>y,authorizesOneOrMoreExtensions:()=>b,authorizesOneOrMoreImageExtensions:()=>w,bindFileInputChangeListener:()=>N,dialog:()=>u,displayErrorForBulkUpload:()=>P,displayErrorForUpload:()=>F,getUploadMarkdown:()=>L,isAudio:()=>S,isBackup:()=>C,isImage:()=>k,isVideo:()=>T,markdownNameFromFileName:()=>d,uploadIcon:()=>x,validateUploadedFile:()=>p,validateUploadedFiles:()=>c});var s=i(63272),n=i(71455),r=i(67698),a=i(35697),o=i(70508);let l=/!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g,u={alert(e){(0,n.getOwnerWithFallback)(this).lookup("service:dialog").alert(e)}};function d(e){let t=e.slice(0,e.lastIndexOf("."));return(0,a.isAppleDevice)()&&function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}(t)&&(t=(0,o.i18n)("upload_selector.default_image_alt_text")),t.replace(/\[|\]|\|/g,"")}function c(e,t){return!!e&&0!==e.length&&(e.length>1?(u.alert((0,o.i18n)("post.errors.too_many_uploads")),!1):p(e[0],t))}function p(e,t){if("undefined"!=typeof Blob&&"undefined"!=typeof File&&e instanceof Blob&&!(e instanceof File)&&"image/png"===e.type&&(e.name="image.png"),(t=t||{}).type=A(e.name),t.skipValidation)return!0;let i=t.user,s=i&&i.staff;if(!b(s,t.siteSettings))return u.alert((0,o.i18n)("post.errors.no_uploads_authorized")),!1;let n=e&&e.name;if(!n)return!1;if(t.allowStaffToUploadAnyFileInPm&&t.isPrivateMessage&&s)return!0;if(t.imagesOnly){if(!k(n)&&!function(e,t,i){return RegExp("\\.("+f(t,i).join("|")+")$","i").test(e)}(n,s,t.siteSettings))return u.alert((0,o.i18n)("post.errors.upload_not_authorized",{authorized_extensions:function(e,t){return y(e,t)?"png, jpg, jpeg, gif, svg, ico, heic, heif, webp, avif":f(e,t).join(", ")}(s,t.siteSettings)})),!1}else if(t.csvOnly){if(!/\.csv$/i.test(n))return u.alert((0,o.i18n)("user.invited.bulk_invite.error")),!1}else if(!y(s,t.siteSettings)&&!function(e,t,i){return!!(t&&RegExp("\\.("+g(i).join("|")+")$","i").test(e))||RegExp("\\.("+m(i).join("|")+")$","i").test(e)}(n,s,t.siteSettings))return u.alert((0,o.i18n)("post.errors.upload_not_authorized",{authorized_extensions:_(s,t.siteSettings).join(", ")})),!1;return t.bypassNewUserRestriction||!i||i.isAllowedToUploadAFile(t.type)?0!==e.size||(console.warn("File with a 0 byte size detected, cancelling upload.",e),u.alert((0,o.i18n)("post.errors.file_size_zero")),!1):(u.alert((0,o.i18n)(`post.errors.${t.type}_upload_not_allowed_for_new_user`)),!1)}function h(e){return e.toLowerCase().replace(/[\s\.]+/g,"").split("|").filter(e=>!e.includes("*"))}function m(e){return h(e.authorized_extensions)}function g(e){return h(e.authorized_extensions_for_staff)}function f(e,t){let i=m(t).filter(e=>k(`.${e}`));if(e){let e=g(t).filter(e=>k(`.${e}`));i=i.concat(e)}return i}function _(e,t){return(e?[...m(t),...g(t)]:m(t)).filter(e=>e.length>0)}function y(e,t){return t.authorized_extensions.includes("*")||t.authorized_extensions_for_staff.includes("*")&&e}function b(e,t){return!!y(e,t)||t.authorized_extensions.split("|").filter(e=>e).length>0||t.authorized_extensions_for_staff.split("|").filter(e=>e).length>0&&e}function w(e,t){return!!y(e,t)||f(e,t).length>0}function k(e){return/\.(png|webp|jpe?g|gif|svg|ico|heic|heif|avif)$/i.test(e)}function T(e){return/\.(mov|mp4|webm|m4v|3gp|ogv|avi|mpeg)$/i.test(e)}function S(e){return/\.(mp3|og[ga]|opus|wav|m4[abpr]|aac|flac)$/i.test(e)}function C(e){return/^\w[\w\.-]*-v\d+\.(tar\.gz)$/i.test(e)}function A(e){return k(e)?"image":C(e)?"backup":"attachment"}function D(e,t){return y(e,t)||_(e,t).some(e=>k(`.${e}`))}function M(e,t){return y(e,t)||_(e,t).length>f(e,t).length}function x(e,t){return M(e,t)?"upload":"far-image"}function E(e,t){return`![${d(e.original_filename)}|${t}](${e.short_url})`}function L(e){return k(e.original_filename)?function(e){return`![${d(e.original_filename)}|${e.thumbnail_width}x${e.thumbnail_height}](${e.short_url||e.url})`}(e):S(e.original_filename)?E(e,"audio"):T(e.original_filename)?E(e,"video"):function(e){return`[${e.original_filename}|attachment](${e.short_url}) (${o.default.toHumanSize(e.filesize)})`}(e)}function P(e){let t=(0,r.humanizeList)(e.mapBy("fileName"));u.alert((0,o.i18n)("post.errors.upload",{file_name:t}))}function F(e,t,i){if(i||((0,s.default)("Calling displayErrorForUpload without a fileName is deprecated and will be removed in a future version.",{id:"discourse.uploads.display-error-for-upload"}),i=e.files[0].name),e.jqXHR){if(I(e.jqXHR.status,e.jqXHR.responseJSON,i,t))return}else if(e.responseText&&e.status){let s=e.responseText;if("string"==typeof s)try{s=JSON.parse(s)}catch{}if(I(e.status,s,i,t))return}else if(e.errors&&e.errors.length>0)return void u.alert(e.errors.join(` `));u.alert((0,o.i18n)("post.errors.upload",{file_name:i}))}function I(e,t,i,s){switch(e){case 0:return u.alert((0,o.i18n)("post.errors.upload",{file_name:i})),!0;case 413:let n=A(i);if("backup"===n)u.alert((0,o.i18n)("post.errors.backup_too_large"));else{let e=s[`max_${n}_size_kb`];u.alert((0,o.i18n)("post.errors.file_too_large_humanized",{max_size:o.default.toHumanSize(1024*e)}))}return!0;case 422:return t.message?u.alert(t.message):u.alert(t.errors.join(` `)),!0}}function N(e,t){function i(e){Array.from(e.target.files).forEach(e=>{t(e)})}return e.addEventListener("change",i),i}},8886:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var s=i(59685),n=i(89380),r=i(12850),a=i(28617);function o(e){var t,i=e.reference,o=e.element,l=e.placement,u=l?(0,s.A)(l):null,d=l?(0,n.A)(l):null,c=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2;switch(u){case a.Mn:t={x:c,y:i.y-o.height};break;case a.sQ:t={x:c,y:i.y+i.height};break;case a.pG:t={x:i.x+i.width,y:p};break;case a.kb:t={x:i.x-o.width,y:p};break;default:t={x:i.x,y:i.y}}var h=u?(0,r.A)(u):null;if(null!=h){var m="y"===h?"height":"width";switch(d){case a.ni:t[h]=t[h]-(i[m]/2-o[m]/2);break;case a._N:t[h]=t[h]+(i[m]/2-o[m]/2)}}return t}},8948:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(57926);let n={initialize(e){let t=e.lookup("service:session");t.svgSpritePath&&(0,s.loadSprites)(t.svgSpritePath,"fontawesome")}}},8954:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(96791),n=i(9032),r=i(57079),a=i(38069),o=i(32045),l=i(1519),u=i(69522);let d=(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"TN05zWBR",block:'[[[1,"\\n "],[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,[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 "],[11,"select"],[16,3,[30,3]],[24,0,"form-template-field__dropdown"],[16,"required",[52,[30,2,["required"]],"required",""]],[4,[32,2],["input",[30,4]],null],[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,[31,2],[[28,[31,2],[[30,5]],null]],null],null,[[[1," "],[10,"option"],[15,2,[30,6]],[15,"selected",[28,[32,3],[[30,7],[30,6]],null]],[12],[1,[30,6]],[13],[1,"\\n"]],[6]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],["@attributes","@validations","@id","@onChange","@choices","choice","@value"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/dropdown.js",scope:()=>[a.default,n.htmlSafe,s.on,r.eq],isStrictMode:!0}),(0,u.default)(void 0,"dropdown:Dropdown"))},9011:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function s(e,t,i,s){var n="";if(t)switch(i){case"s":n="काही सेकंद";break;case"ss":n="%d सेकंद";break;case"m":n="एक मिनिट";break;case"mm":n="%d मिनिटे";break;case"h":n="एक तास";break;case"hh":n="%d तास";break;case"d":n="एक दिवस";break;case"dd":n="%d दिवस";break;case"M":n="एक महिना";break;case"MM":n="%d महिने";break;case"y":n="एक वर्ष";break;case"yy":n="%d वर्षे"}else switch(i){case"s":n="काही सेकंदां";break;case"ss":n="%d सेकंदां";break;case"m":n="एका मिनिटा";break;case"mm":n="%d मिनिटां";break;case"h":n="एका तासा";break;case"hh":n="%d तासां";break;case"d":n="एका दिवसा";break;case"dd":n="%d दिवसां";break;case"M":n="एका महिन्या";break;case"MM":n="%d महिन्यां";break;case"y":n="एका वर्षा";break;case"yy":n="%d वर्षां"}return n.replace(/%d/i,e)}return e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return(12===e&&(e=0),"पहाटे"===t||"सकाळी"===t)?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,i){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})},9032:(e,t,i)=>{"use strict";i.r(t),i.d(t,{htmlSafe:()=>s.a,isHTMLSafe:()=>s.i}),i(34902);var s=i(92128);i(29023),i(60569),i(83882),i(24813),i(69023),i(77188),i(77061)},9040:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(73326),r=i(86981),a=i(75093),o=i(57882),l=i(51318),u=i(10458),d=i(16356),c=i(23948),p=i(70508),h=i(33499),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();async findCurrentLocalization(){try{let{post_localizations:e}=await c.default.find(this.composer.model.post.id);return e.find(e=>e.locale===this.composer.selectedTranslationLocale)}catch(e){(0,d.popupAjaxError)(e)}}get availableContentLocalizationLocales(){let e=this.composer.model?.post?.locale||this.siteSettings.default_locale;return this.siteSettings.available_content_localization_locales.filter(t=>t.value!==e)}handleInput(e){this.composer.model.set("reply",e.target.value)}static #n=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();async updateSelectedLocale(e){this.composer.selectedTranslationLocale=e;let t=await this.findCurrentLocalization();t?(this.composer.model.set("reply",t.raw),t?.topic_localization&&this.composer.model.set("title",t.topic_localization.title)):this.composer.model.setProperties({reply:"",title:""})}static #a=(()=>dt7948.n(this.prototype,"updateSelectedLocale",[r.action]))();static #l=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"7o07s34o",block:'[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,0],[[24,0,"translation-selector-dropdown btn-small"]],[["@nameProperty","@valueProperty","@value","@content","@onChange","@options"],["name","value",[30,0,["composer","selectedTranslationLocale"]],[30,0,["availableContentLocalizationLocales"]],[30,0,["updateSelectedLocale"]],[28,[32,1],null,[["icon","showCaret","filterable","disabled","placement","translatedNone"],["globe",true,true,[30,0,["composer","loading"]],"bottom-start",[28,[32,2],["composer.translations.select"],null]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["composer","model","post","firstPost"]],[[[1," "],[10,0],[14,0,"topic-title-translator title-and-category with-preview"],[12],[1,"\\n "],[8,[32,3],null,[["@value","@id","@maxLength","@placeholder","@disabled","@autocomplete"],[[30,0,["composer","model","title"]],"translated-topic-title",[30,0,["siteSettings","max_topic_title_length"]],[30,0,["composer","model","topic","title"]],[30,0,["composer","loading"]],"off"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"d-editor translation-editor"],[12],[1,"\\n "],[8,[32,4],null,[["@value","@change","@placeholder","@forcePreview","@processPreview","@loading","@hijackPreview","@disabled","@onSetup","@disableSubmit","@topicId","@categoryId","@outletArgs"],[[28,[31,1],[[30,0,["composer","model","reply"]]],null],[30,0,["handleInput"]],"composer.translations.placeholder",true,false,[30,0,["composer","loading"]],[30,0,["composer","hijackPreview"]],[30,0,["composer","disableTextarea"]],[30,1],[30,0,["composer","disableSubmit"]],[30,0,["composer","model","topic","id"]],[30,0,["composer","model","category","id"]],[28,[32,5],null,[["composer","editorType"],[[30,0,["composer","model"]],"composer"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@setupEditor"],false,["if","readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-translation-editor.js",scope:()=>[h.default,n.hash,p.i18n,l.default,o.default,u.default],isStrictMode:!0}),this))()}},9071:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9174:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(32045),n=i(86981),r=i(13355),a=i(38069),o=i(11624),l=i(16356),u=i(14051),d=i(63159),c=i(70508),p=i(1519);class h extends s.default{durationText(e){return(0,o.durationTextFromSeconds)(e)}static #e=(()=>dt7948.n(this.prototype,"durationText",[(0,u.default)("topic.slow_mode_seconds")]))();showSlowModeNotice(e,t){return e>0&&!t}static #i=(()=>dt7948.n(this.prototype,"showSlowModeNotice",[(0,u.default)("topic.slow_mode_seconds","topic.closed")]))();disableSlowMode(){d.default.setSlowMode(this.topic.id,0).catch(l.popupAjaxError).then(()=>this.set("topic.slow_mode_seconds",0))}static #n=(()=>dt7948.n(this.prototype,"disableSlowMode",[n.action]))();static #a=(()=>(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"SS+p0Q6R",block:'[[[1,"\\n"],[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,[32,0],["hourglass-start"],null]],[1,"\\n "],[1,[28,[32,1],["topic.slow_mode_notice.duration"],[["duration"],[[30,0,["durationText"]]]]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["user","canManageTopic"]],[[[1," "],[8,[32,2],[[24,0,"slow-mode-remove"]],[["@action","@icon"],[[30,0,["disableSlowMode"]],"trash-can"]],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/slow-mode-info.js",scope:()=>[a.default,c.i18n,r.default],isStrictMode:!0}),this))()}},9175:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(95047),n=i(86981),r=i(64081),a=i(75093),o=i(60551),l=i(14345),u=i(2850);class d extends a.default{static #e=(()=>dt7948.g(this.prototype,"activeToasts",[s.tracked],function(){return new o.TrackedArray}))();#sS=(()=>void dt7948.i(this,"activeToasts"))();show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new u.default((0,r.getOwner)(this),{component:l.default,...e});return t.isValidForView&&this.activeToasts.push(t),t}static #i=(()=>dt7948.n(this.prototype,"show",[n.action]))();default(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="default",this.show(e)}static #n=(()=>dt7948.n(this.prototype,"default",[n.action]))();success(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="success",e.data.icon??="check",this.show(e)}static #a=(()=>dt7948.n(this.prototype,"success",[n.action]))();error(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="error",e.data.icon??="triangle-exclamation",this.show(e)}static #l=(()=>dt7948.n(this.prototype,"error",[n.action]))();warning(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="warning",e.data.icon??="circle-exclamation",this.show(e)}static #d=(()=>dt7948.n(this.prototype,"warning",[n.action]))();info(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="info",e.data.icon??="circle-info",this.show(e)}static #p=(()=>dt7948.n(this.prototype,"info",[n.action]))();close(e){this.activeToasts=new o.TrackedArray(this.activeToasts.filter(t=>t.id!==e.id))}static #m=(()=>dt7948.n(this.prototype,"close",[n.action]))()}},9186:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addPluginDocumentTitleCounter:()=>p,default:()=>h});var s=i(32045),n=i(75093),r=i(85024),a=i(87367),o=i(25839),l=i(14051),u=i(15835),d=i(70508);let c=[];function p(e){c.push(e)}let h=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"documentTitle",[n.service]))();#sC=(()=>void dt7948.i(this,"documentTitle"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[n.service]))();#o=(()=>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,a.setLogoffCallback)(()=>this.displayLogoff())}willDestroyElement(){super.willDestroyElement(...arguments),(0,a.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=c.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,o.clearAllBodyScrollLocks)(),"hidden"===document.visibilityState?this.session.hasFocus&&this.documentTitle.setFocus(!1):this.hasFocus||this.documentTitle.setFocus(!0)}static #n=(()=>dt7948.n(this.prototype,"_focusChanged",[l.bind]))();displayLogoff(){this._showingLogout||(this._showingLogout=!0,this.messageBus.stop(),this.dialog.alert({message:(0,d.i18n)("logout"),confirmButtonLabel:"refresh",didConfirm:()=>(0,u.default)(),didCancel:()=>(0,u.default)()}))}},[(0,r.tagName)("")])},9190:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(53329),r=i(51318),a=i(10458),o=i(70508),l=i(1519);class u extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"xR7y0/gE",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["category-name-fields-details",[28,[32,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,[32,2],["category.name"],null]],[13],[1,"\\n "],[8,[32,3],[[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,[32,2],["category.slug"],null]],[13],[1,"\\n "],[8,[32,3],null,[["@value","@placeholderKey","@maxlength"],[[30,0,["category","slug"]],"category.slug_placeholder","255"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-name-fields.js",scope:()=>[n.default,a.default,o.i18n,r.default],isStrictMode:!0}),this))()}},9196:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,function(e,t,i){return"ი"===i?t+"ში":t+i+"ში"})},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})})},9232:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(86981),r=i(13355),a=i(39826),o=i(70508),l=i(32045),u=i(1519);class d extends s.default{async discardDraft(){await this.args.model.onDestroyDraft(),this.args.closeModal()}static #e=(()=>dt7948.n(this.prototype,"discardDraft",[n.action]))();async saveDraftAndClose(){await this.args.model.onSaveDraft(),this.args.closeModal()}static #i=(()=>dt7948.n(this.prototype,"saveDraftAndClose",[n.action]))();async keepEditing(){await this.args.model.onKeepEditing(),this.args.closeModal()}static #n=(()=>dt7948.n(this.prototype,"keepEditing",[n.action]))();static #a=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"DAmr8Tun",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,0,["keepEditing"]]]],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:()=>[a.default,o.i18n,r.default],isStrictMode:!0}),this))()}},9237:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(35952);let n={imap:{imap_server:"imap.gmail.com",imap_port:"993",imap_ssl:!0},smtp:{smtp_server:"smtp.gmail.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}},r={smtp:{smtp_server:"smtp-mail.outlook.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}},a={smtp:{smtp_server:"smtp.office365.com",smtp_port:"587",smtp_ssl_mode:s.GROUP_SMTP_SSL_MODES.starttls}};function o(e,t){switch(e=e.toLowerCase(),t=t.toLowerCase(),e){case"gmail":return n[t];case"office365":return a[t];case"outlook":return r[t]}}},9293:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.MutableArray});var s=i(80115)},9309:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(9175)},9376:(e,t,i)=>{var s=i(56110),n=i(83608);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==s(e)}},9464:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(85754)},9493:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m,showEntrance:()=>h});var s=i(32045),n=i(85024),r=i(41107),a=i.n(r),o=i(33020),l=i(2080),u=i(30899),d=i(21270),c=i(82225),p=i(1519);function h(e){let t=a()(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}let m=dt7948.c(class extends s.default{click=(()=>h)();static #e=(()=>(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"TV7TcG6T",block:'[[[1,"\\n "],[10,"td"],[14,0,"main-link"],[12],[1,"\\n "],[10,0],[14,0,"topic-inset"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@disableActions"],[[30,0,["topic"]],true]],null],[1,"\\n "],[1,[28,[32,1],[[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,[32,2],[[30,0,["topic","last_posted_at"]]],null]],[12],[1,[28,[32,3],[[30,0,["topic","last_posted_at"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[14,0,"num posts"],[12],[1,"\\n "],[8,[32,4],null,[["@topic","@postBadgesEnabled"],[[30,0,["topic"]],true]],null],[1,"\\n "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/mobile-category-topic.js",scope:()=>[l.default,c.default,d.default,u.default,o.default],isStrictMode:!0}),this))()},[(0,n.classNameBindings)(":category-topic-link","topic.archived","topic.visited"),(0,n.tagName)("tr")])},9496:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(7155),r=i(86981),a=i(9032),o=i(47145),l=i(17221),u=i(13355),d=i(39826),c=i(14051),p=i(25217),h=i(70508),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#sD=(()=>void dt7948.i(this,"errorMessage"))();static #n=(()=>dt7948.g(this.prototype,"successMessage",[n.tracked]))();#sM=(()=>void dt7948.i(this,"successMessage"))();static #a=(()=>dt7948.g(this.prototype,"backupEnabled",[n.tracked],function(){return this.args.model.secondFactor.second_factor_backup_enabled}))();#sx=(()=>void dt7948.i(this,"backupEnabled"))();static #l=(()=>dt7948.g(this.prototype,"remainingCodes",[n.tracked],function(){return this.args.model.secondFactor.second_factor_remaining_backup_codes}))();#sE=(()=>void dt7948.i(this,"remainingCodes"))();static #d=(()=>dt7948.g(this.prototype,"backupCodes",[n.tracked]))();#sL=(()=>void dt7948.i(this,"backupCodes"))();static #p=(()=>dt7948.g(this.prototype,"secondFactorMethod",[n.tracked],function(){return p.SECOND_FACTOR_METHODS.TOTP}))();#sP=(()=>void dt7948.i(this,"secondFactorMethod"))();copyBackupCode(e){e?this.successMessage=(0,h.i18n)("user.second_factor_backup.copied_to_clipboard"):this.errorMessage=(0,h.i18n)("user.second_factor_backup.copy_to_clipboard_error"),this._hideCopyMessage()}static #m=(()=>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 #f=(()=>dt7948.n(this.prototype,"generateSecondFactorCodes",[r.action]))();_hideCopyMessage(){this.successMessage=null,this.errorMessage=null}static #y=(()=>dt7948.n(this.prototype,"_hideCopyMessage",[(0,c.debounce)(2e3)]))();static #v=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"ZLYM3mWm",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"second-factor-backup-edit-modal"]],[["@title","@closeModal"],[[28,[32,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,[32,2],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["backupCodes"]],[[[1," "],[10,"h3"],[12],[1,[28,[32,1],["user.second_factor_backup.codes.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,1],["user.second_factor_backup.codes.description"],null]],[13],[1,"\\n "],[8,[32,3],null,[["@copyBackupCode","@backupCodes"],[[30,0,["copyBackupCode"]],[30,0,["backupCodes"]]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["backupEnabled"]],[[[1," "],[1,[28,[32,4],[[28,[32,1],["user.second_factor_backup.remaining_codes"],[["count"],[[30,0,["remainingCodes"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],[[28,[32,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,[32,5],[[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,[32,5],[[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 "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/second-factor-backup-edit.js",scope:()=>[d.default,h.i18n,l.default,o.default,a.htmlSafe,u.default],isStrictMode:!0}),this))()}},9524:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(29517);function n(e,t){let i=!1;return function(){!i&&e&&t&&(s.libraries.register(e,t),i=!0)}}},9538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(87367),n=i(72095),r=i(5481);let a={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 i=e.lookup("service:app-events"),s=e.lookup("service:document-title");if((0,n.startPageTracking)(t,i,s),void 0!==window._gaq)return void i.on("page:changed",e=>{e.replacedOnlyQueryParams||(window._gaq.push(["_set","title",e.title]),window._gaq.push(["_trackPageview",e.url]))});void 0!==window.ga&&void 0===window.gtag&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||window.ga("send","pageview",{page:e.url,title:e.title})}),void 0!==window.gtag&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||window.gtag("event","page_view",{page_location:e.url,page_title:e.title})}),void 0!==window.dataLayer&&i.on("page:changed",e=>{e.replacedOnlyQueryParams||(0,n.googleTagManagerPageChanged)(e)})},handleRouteWillChange(e){e.from&&(e.isIntermediate||((0,s.trackNextAjaxAsPageview)(),("topic.fromParamsNear"===e.to.name||"topic.fromParams"===e.to.name)&&(0,s.trackNextAjaxAsTopicView)(e.to.parent.params.id)))},teardown(){(0,n.resetPageTracking)(),(0,s.resetAjax)()}}},9552:(e,t,i)=>{"use strict";i.d(t,{A:()=>ed});var s=i(87971),n=i(70776);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",i=e;for(;i--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var a=i(68740);function o(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var l=0;function u(e){return"__private_"+l+++"_"+e}var d=u("callbacks"),c=u("publish");class p{constructor(){Object.defineProperty(this,c,{value:h}),this.state={},Object.defineProperty(this,d,{writable:!0,value:new Set})}getState(){return this.state}setState(e){let t={...this.state},i={...this.state,...e};this.state=i,o(this,c)[c](t,i,e)}subscribe(e){return o(this,d)[d].add(e),()=>{o(this,d)[d].delete(e)}}}function h(){for(var e=arguments.length,t=Array(e),i=0;i{e(...t)})}function m(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}p.VERSION="4.1.0";let g={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function f(e){var t;if(e.type)return e.type;let i=e.name?null==(t=m(e.name).extension)?void 0:t.toLowerCase():null;return i&&i in g?g[i]:"application/octet-stream"}function _(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/"))+t}var y=i(9676),b=i(16661),w=i(93030);let k={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class T extends Error{constructor(e,t){var i;super(e),this.isRestriction=!0,this.isUserFacing=null==(i=null==t?void 0:t.isUserFacing)||i,null!=t&&t.file&&(this.file=t.file)}}class S{constructor(e,t){this.getI18n=t,this.getOpts=()=>{var t;let i=e();if((null==(t=i.restrictions)?void 0:t.allowedFileTypes)!=null&&!Array.isArray(i.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return i}}validateAggregateRestrictions(e,t){let{maxTotalFileSize:i,maxNumberOfFiles:s}=this.getOpts().restrictions;if(s&&e.filter(e=>!e.isGhost).length+t.length>s)throw new T(`${this.getI18n()("youCanOnlyUploadX",{smart_count:s})}`);if(i){let s=[...e,...t].reduce((e,t)=>{var i;return e+(null!=(i=t.size)?i:0)},0);if(s>i)throw new T(this.getI18n()("aggregateExceedsSize",{sizeAllowed:b(i),size:b(s)}))}}validateSingleFile(e){let{maxFileSize:t,minFileSize:i,allowedFileTypes:s}=this.getOpts().restrictions;if(s&&!s.some(t=>t.includes("/")?!!e.type&&w(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){let t=s.join(", ");throw new T(this.getI18n()("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t){var n;throw new T(this.getI18n()("exceedsSize",{size:b(t),file:null!=(n=e.name)?n:this.getI18n()("unnamed")}),{file:e})}if(i&&null!=e.size&&e.size{this.validateSingleFile(e)}),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){let{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length{let i=this.getFile(null==e?void 0:e.id);if(null==e||!i)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===i.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);let s=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...i.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:s?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,$,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,V,{writable:!0,value:new Map}),this.defaultLocale=C;let t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:k,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new p,logger:y.I,infoTimeout:5e3},i={...t,...e};this.opts={...i,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=y.w),this.log(`Using Core v${Q.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...x,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let i=t[1].split(".",2),s=parseInt(i[0],10),n=parseInt(i[1],10);return!!(s<15)||15===s&&!!(n<15063)||!!(s>18)||18===s&&!!(n>=18218)}(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),A(this,L)[L]=new S(()=>this.opts,()=>this.i18n),A(this,P)[P]=this.store.subscribe((e,t,i)=>{this.emit("state-update",e,t,i),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),A(this,z)[z]()}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){let t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map(e=>{let[i,s]=e;return[i,{...t[i],...s}]}))}})}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){let e=new s.A([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(t=>{t.setOptions(e)}),this.setState(void 0)}resetProgress(){let e={percentage:0,bytesUploaded:!1,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},i=Object.create(null);Object.keys(t).forEach(s=>{i[s]={...t[s],progress:{...t[s].progress,...e},tus:void 0,transloadit:void 0}}),this.setState({files:i,...x})}clear(){let{capabilities:e,currentUploads:t}=this.getState();if(Object.keys(t).length>0&&!e.individualCancellation)throw Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...x,files:{}})}addPreProcessor(e){A(this,I)[I].add(e)}removePreProcessor(e){return A(this,I)[I].delete(e)}addPostProcessor(e){A(this,j)[j].add(e)}removePostProcessor(e){return A(this,j)[j].delete(e)}addUploader(e){A(this,N)[N].add(e)}removeUploader(e){return A(this,N)[N].delete(e)}setMeta(e){let t={...this.getState().meta,...e},i={...this.getState().files};Object.keys(i).forEach(t=>{i[t]={...i[t],meta:{...i[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:i})}setFileMeta(e,t){let i={...this.getState().files};if(!i[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);let s={...i[e].meta,...t};i[e]={...i[e],meta:s},this.setState({files:i})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map(e=>this.getFile(e))}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:i}=this.getState(),s=Object.values(e),n=[],r=[],a=[],o=[],l=[],u=[],d=[],c=[],p=[];for(let e of s){let{progress:t}=e;!t.uploadComplete&&t.uploadStarted&&(n.push(e),e.isPaused||c.push(e)),t.uploadStarted||r.push(e),(t.uploadStarted||t.preprocess||t.postprocess)&&a.push(e),t.uploadStarted&&o.push(e),e.isPaused&&l.push(e),t.uploadComplete&&u.push(e),e.error&&d.push(e),(t.preprocess||t.postprocess)&&p.push(e)}return{newFiles:r,startedFiles:a,uploadStartedFiles:o,pausedFiles:l,completeFiles:u,erroredFiles:d,inProgressFiles:n,inProgressNotPausedFiles:c,processingFiles:p,isUploadStarted:o.length>0,isAllComplete:100===t&&u.length===s.length&&0===p.length,isAllErrored:!!i&&d.length===s.length,isAllPaused:0!==n.length&&l.length===n.length,isUploadInProgress:n.length>0,isSomeGhost:s.some(e=>e.isGhost)}}validateSingleFile(e){try{A(this,L)[L].validateSingleFile(e)}catch(e){return e.message}return null}validateAggregateRestrictions(e){let t=this.getFiles();try{A(this,L)[L].validateAggregateRestrictions(t,e)}catch(e){return e.message}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){A(this,B)[B](e);let{nextFilesState:t,validFilesToAdd:i,errors:s}=A(this,q)[q]([e]),n=s.filter(e=>e.isRestriction);if(A(this,O)[O](n),s.length>0)throw s[0];this.setState({files:t});let[r]=i;return this.emit("file-added",r),this.emit("files-added",i),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),A(this,H)[H](),r.id}addFiles(e){A(this,B)[B]();let{nextFilesState:t,validFilesToAdd:i,errors:s}=A(this,q)[q](e),n=s.filter(e=>e.isRestriction);A(this,O)[O](n);let r=s.filter(e=>!e.isRestriction);if(r.length>0){let e=`Multiple errors occurred while adding files: `;if(r.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}this.setState({files:t}),i.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",i),i.length>5?this.log(`Added batch of ${i.length} files`):Object.values(i).forEach(e=>{this.log(`Added file: ${e.name} id: ${e.id} type: ${e.type}`)}),i.length>0&&A(this,H)[H]()}removeFiles(e){let{files:t,currentUploads:i}=this.getState(),s={...t},n={...i},r=Object.create(null);function a(e){return void 0===r[e]}e.forEach(e=>{t[e]&&(r[e]=t[e],delete s[e])}),Object.keys(n).forEach(e=>{let t=i[e].fileIDs.filter(a);if(0===t.length)return void delete n[e];let{capabilities:s}=this.getState();if(t.length!==i[e].fileIDs.length&&!s.individualCancellation)throw Error("The installed uploader plugin does not allow removing files during an upload.");n[e]={...i[e],fileIDs:t}});let o={currentUploads:n,files:s};0===Object.keys(s).length&&(o.allowNewUpload=!0,o.error=null,o.recoveredState=null),this.setState(o),this.calculateTotalProgress();let l=Object.keys(r);l.forEach(e=>{this.emit("file-removed",r[e])}),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e){this.removeFiles([e])}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;let t=this.getFile(e),i=!t.isPaused;return this.setFileState(e,{isPaused:i}),this.emit("upload-pause",t,i),i}pauseAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let i={...e[t],isPaused:!0};e[t]=i}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let i={...e[t],isPaused:!1,error:null};e[t]=i}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let i={...e[t],isPaused:!1,error:null};e[t]=i}),this.setState({files:e,error:null}),this.emit("retry-all",Object.values(e)),0===t.length)return Promise.resolve({successful:[],failed:[]});let i=A(this,W)[W](t,{forceAllowNewUpload:!0});return A(this,J)[J](i)}cancelAll(){this.emit("cancel-all");let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t),this.setState(x)}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",this.getFile(e));let t=A(this,W)[W]([e],{forceAllowNewUpload:!0});return A(this,J)[J](t)}logout(){this.iteratePlugins(e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()})}calculateTotalProgress(){let e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length){this.emit("progress",0),this.setState({totalProgress:0});return}let t=e.filter(e=>null!=e.progress.bytesTotal),i=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){let t=100*e.length,s=Math.round(i.reduce((e,t)=>e+t.progress.percentage,0)/t*100);this.setState({totalProgress:s});return}let s=t.reduce((e,t)=>{var i;return e+(null!=(i=t.progress.bytesTotal)?i:0)},0),n=s/t.length;s+=n*i.length;let r=0;t.forEach(e=>{r+=e.progress.bytesUploaded}),i.forEach(e=>{r+=n*(e.progress.percentage||0)/100});let a=0===s?0:Math.round(r/s*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e){if("function"!=typeof e)throw TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;st.id===e);if(null!=i)return i}}[Symbol.for("uppy test: getPlugins")](e){return A(this,E)[E][e]}iteratePlugins(e){Object.values(A(this,E)[E]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=A(this,E)[E][e.type],i=t.findIndex(t=>t.id===e.id);-1!==i&&t.splice(i,1);let s={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(s)}destroy(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll(),A(this,P)[P](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",A(this,$)[$]),window.removeEventListener("offline",A(this,$)[$]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,i){void 0===t&&(t="info"),void 0===i&&(i=3e3);let s="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:s?e.message:e,details:s?e.details:null}]}),setTimeout(()=>this.hideInfo(),i),this.emit("info-visible")}log(e,t){let{logger:i}=this.opts;switch(t){case"error":i.error(e);break;case"warning":i.warn(e);break;default:i.debug(e)}}registerRequestClient(e,t){A(this,V)[V].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw Error(`Tried to get RequestClient for a non-remote file ${e.id}`);let t=A(this,V)[V].get(e.remote.requestClientId);if(null==t)throw Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?A(this,J)[J](e):(A(this,G)[G](e),Promise.reject(Error("Nonexistent upload")))}[Symbol.for("uppy test: createUpload")](){return A(this,W)[W](...arguments)}addResultData(e,t){if(!A(this,K)[K](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:i}=this.getState(),s={...i[e],result:{...i[e].result,...t}};this.setState({currentUploads:{...i,[e]:s}})}upload(){var e;null!=(e=A(this,E)[E].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),i=this.opts.onBeforeUpload(t);return!1===i?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(i&&"object"==typeof i&&(t=i,this.setState({files:t})),Promise.resolve().then(()=>A(this,L)[L].validateMinNumberOfFiles(t)).catch(e=>{throw A(this,O)[O]([e]),e}).then(()=>{if(!A(this,U)[U](t))throw new T(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),i=Object.values(e).flatMap(e=>e.fileIDs),s=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==i.indexOf(e)||s.push(t.id)});let n=A(this,W)[W](s);return A(this,J)[J](n)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function X(e){for(let t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");let t=e.filter(e=>e.isUserFacing),i=t.slice(0,4),s=t.slice(4);i.forEach(e=>{let{message:t,details:i=""}=e;this.info({message:t,details:i},"error",this.opts.infoTimeout)}),s.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:s.length})})}function Z(e){let{missingFields:t,error:i}=A(this,L)[L].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(i.message),this.emit("restriction-failed",e,i),!1)}function ee(e){let t=!0;for(let i of Object.values(e))A(this,R)[R](i)||(t=!1);return t}function et(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new T(this.i18n("noMoreFilesAllowed"),{file:e});throw A(this,O)[O]([t]),t}}function ei(e){let t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,i=f(t),s=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(i,t),n=m(s).extension,r=function(e,t){if(function(e){return!!e.isRemote&&!!e.remote&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;let i=f(e);return function(e,t){let i=t||"uppy";return"string"==typeof e.name&&(i+=`-${_(e.name.toLowerCase())}`),void 0!==e.type&&(i+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(i+=`-${_(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(i+=`-${e.data.size}`),void 0!==e.data.lastModified&&(i+=`-${e.data.lastModified}`),i}({...e,type:i},t)}(t,this.getID()),a=t.meta||{};a.name=s,a.type=i;let o=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:r,name:s,extension:n||"",meta:{...this.getState().meta,...a},type:i,data:t.data,progress:{percentage:0,bytesUploaded:!1,bytesTotal:o,uploadComplete:!1,uploadStarted:null},size:o,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote,preview:t.preview}}function es(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function en(e){let{files:t}=this.getState(),i={...t},s=[],n=[];for(let o of e)try{var r,a;let e=A(this,Y)[Y](o),n=null==(r=t[e.id])?void 0:r.isGhost;n&&(e={...t[e.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));let l=this.opts.onBeforeFileAdded(e,i);if(!l&&this.checkIfFileAlreadyExists(e.id))throw new T(this.i18n("noDuplicates",{fileName:null!=(a=e.name)?a:this.i18n("unnamed")}),{file:o});if(!1!==l||n)"object"==typeof l&&null!==l&&(e=l);else throw new T("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});A(this,L)[L].validateSingleFile(e),i[e.id]=e,s.push(e)}catch(e){n.push(e)}try{A(this,L)[L].validateAggregateRestrictions(Object.values(t),s)}catch(e){return n.push(e),{nextFilesState:t,validFilesToAdd:[],errors:n}}return{nextFilesState:i,validFilesToAdd:s,errors:n}}function er(){let e=(e,t,i)=>{let s=e.message||"Unknown error";e.details&&(s+=` ${e.details}`),this.setState({error:s}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:s,response:i})};this.on("error",e),this.on("upload-error",(t,i,s)=>{if(e(i,t,s),"object"==typeof i&&i.message){var n;this.log(i.message,"error");let e=Error(this.i18n("failedToUpload",{file:null!=(n=null==t?void 0:t.name)?n:""}));e.isUserFacing=!0,e.details=i.message,i.details&&(e.details+=` ${i.details}`),A(this,O)[O]([e])}else A(this,O)[O]([i])});let t=null;this.on("upload-stalled",(e,i)=>{let{message:s}=e,n=i.map(e=>e.meta.name).join(", ");t||(this.info({message:s,details:n},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${s} ${n}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-start",e=>{let t=Object.fromEntries(e.filter(e=>{let t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t}).map(e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}]));this.patchFilesState(t)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let i=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...i,postprocess:A(this,j)[j].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&A(this,R)[R](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",A(this,$)[$]),window.addEventListener("offline",A(this,$)[$]),setTimeout(A(this,$)[$],3e3))}function ea(e,t){void 0===t&&(t={});let{forceAllowNewUpload:i=!1}=t,{allowNewUpload:s,currentUploads:n}=this.getState();if(!s&&!i)throw Error("Cannot create a new upload: already uploading.");let a=r();return this.emit("upload",a,this.getFilesByIds(e)),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...n,[a]:{fileIDs:e,step:0,result:{}}}}),a}function eo(e){let{currentUploads:t}=this.getState();return t[e]}function el(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function eu(e){let t,i=()=>{let{currentUploads:t}=this.getState();return t[e]},s=i(),n=[...A(this,I)[I],...A(this,N)[N],...A(this,j)[j]];try{for(let t=s.step||0;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=s.fileIDs.map(e=>this.getFile(e)),n=t.filter(e=>!e.error),r=t.filter(e=>e.error);this.addResultData(e,{successful:n,failed:r,uploadID:e}),s=i()}return s&&(t=s.result,this.emit("complete",t),A(this,G)[G](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}Q.VERSION="4.2.2";let ed=Q},9575:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(50890),n=i(86981),r=i(14051),a=i(18323),o=i(36491),l=i(70508);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#sF=(()=>void dt7948.i(this,"application"))();queryParams=["username"];noMoreBadges=!1;userBadges=null;hiddenSetTitle=!0;filteredList(e){return e.filterBy("badge.allow_title",!0)}static #i=(()=>dt7948.n(this.prototype,"filteredList",[(0,r.default)("userBadgesAll")]))();selectableUserBadges(e){return[n.default.create({id:0,badge:a.default.create({name:(0,l.i18n)("badges.none")})}),...e.uniqBy("badge.name")]}static #n=(()=>dt7948.n(this.prototype,"selectableUserBadges",[(0,r.default)("filteredList")]))();user(e){if(e)return this.userBadges[0].get("user")}static #a=(()=>dt7948.n(this.prototype,"user",[(0,r.default)("username")]))();grantCount(e,t,i){return e?i:t}static #l=(()=>dt7948.n(this.prototype,"grantCount",[(0,r.default)("username","model.grant_count","userBadges.grant_count")]))();othersCount(e,t){return e-t}static #d=(()=>dt7948.n(this.prototype,"othersCount",[(0,r.default)("model.grant_count","userBadges.grant_count")]))();canSelectTitle(e,t){return this.siteSettings.enable_badges&&e&&t}static #p=(()=>dt7948.n(this.prototype,"canSelectTitle",[(0,r.default)("model.allow_title","model.has_badge","model")]))();canLoadMore(e,t,i){return!e&&t>(i||0)}static #m=(()=>dt7948.n(this.prototype,"canLoadMore",[(0,r.default)("noMoreBadges","grantCount","userBadges.length")]))();canShowOthers(e,t){return!!e&&t>1}static #f=(()=>dt7948.n(this.prototype,"canShowOthers",[(0,r.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 #y=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();toggleSetUserTitle(){return this.toggleProperty("hiddenSetTitle")}static #v=(()=>dt7948.n(this.prototype,"toggleSetUserTitle",[n.action]))()}},9595:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],i=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})})},9600:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(96791),n=i(86981),r=i(9032),a=i(85024),o=i(52108),l=i(78771),u=i.n(l),d=i(90592),c=i(32045),p=i(1519);let h=dt7948.c(class extends d.default{get badge(){return(0,r.htmlSafe)((0,o.categoryBadgeHTML)(this.item,{allowUncategorized:!0,link:!1}))}static #e=(()=>dt7948.n(this.prototype,"badge",[(0,n.computed)("item")]))();static #i=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"2n/TMfjc",block:'[[[1,"\\n "],[11,0],[24,"tabindex","0"],[16,"title",[30,0,["title"]]],[16,"data-value",[30,0,["value"]]],[16,"data-name",[30,0,["name"]]],[24,0,"select-kit-selected-name selected-name choice"],[4,[32,0],["click",[30,0,["onSelectedNameClick"]]],null],[12],[1,"\\n "],[10,0],[14,0,"body"],[12],[1,"\\n "],[1,[30,0,["badge"]]],[1,"\\n "],[1,[28,[32,1],["xmark"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/multi-select/selected-category.js",scope:()=>[s.on,u()],isStrictMode:!0}),this))()},[(0,a.classNames)("selected-category")])},9616:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(91558),r=i(85024),a=i(13355),o=i(14051),l=i(70508),u=i(1519);let d=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"buttonDisabled",[(0,n.or)("model.isSaving","saveDisabled")]))();#sI=(()=>void dt7948.i(this,"buttonDisabled"))();didInsertElement(){super.didInsertElement(...arguments),this.set("saved",!1)}savingText(e){return e?"saving":"save"}static #i=(()=>dt7948.n(this.prototype,"savingText",[(0,o.default)("model.isSaving")]))();static #n=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"GcnNiOQr",block:'[[[1,"\\n "],[8,[32,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,[32,1],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,1,null],[1,"\\n "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/save-controls.js",scope:()=>[a.default,l.i18n],isStrictMode:!0}),this))()},[(0,r.classNames)("controls","save-button")])},9646:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DEFAULT_TYPE_FILTER:()=>R,MODIFIER_REGEXP:()=>O,default:()=>U});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(96848),u=i(24813),d=i(75093),c=i(31075),p=i(13355),h=i(32216),m=i(53329),g=i(65720),f=i(40633),_=i(94275),y=i(50448),b=i(63538),w=i(10458),k=i(37759),T=i(16356),S=i(49677),C=i(88333),A=i(14086),D=i(14051),M=i(11837),x=i(43085),E=i(77296),L=i(42027),P=i(32045),F=i(1519);let I=/(\#[a-zA-Z0-9\-:]*)$/gi,N=/(\@[a-zA-Z0-9\-\_]*)$/gi,j=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,O=/.*(\#|\@|:).*$/gi,R="exclude_topics";class U extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[d.service]))();#e2=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[d.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[d.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #a=(()=>dt7948.g(this.prototype,"appEvents",[d.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #d=(()=>dt7948.g(this.prototype,"isPMInboxCleared",[n.tracked],function(){return!1}))();#sN=(()=>void dt7948.i(this,"isPMInboxCleared"))();static #p=(()=>dt7948.g(this.prototype,"typeFilter",[n.tracked],function(){return R}))();#sj=(()=>void dt7948.i(this,"typeFilter"))();static #m=(()=>dt7948.g(this.prototype,"suggestionKeyword",[n.tracked],function(){return!1}))();#sO=(()=>void dt7948.i(this,"suggestionKeyword"))();static #f=(()=>dt7948.g(this.prototype,"suggestionResults",[n.tracked],function(){return[]}))();#sR=(()=>void dt7948.i(this,"suggestionResults"))();static #y=(()=>dt7948.g(this.prototype,"invalidTerm",[n.tracked],function(){return!1}))();#sU=(()=>void dt7948.i(this,"invalidTerm"))();static #v=(()=>dt7948.g(this.prototype,"menuPanelOpen",[n.tracked],function(){return!1}))();#sB=(()=>void dt7948.i(this,"menuPanelOpen"))();searchInputId=(()=>this.args.searchInputId??"search-term")();_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 #k=(()=>dt7948.n(this.prototype,"setupEventListeners",[D.bind]))();onDocumentPress(e){this.menuPanelOpen&&(e.target.closest(".search-menu-container.menu-panel-results")||this.close())}static #S=(()=>dt7948.n(this.prototype,"onDocumentPress",[D.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!==R}get searchContext(){return(!!this.search.inTopicContext||!!this.inPMInboxContext)&&this.search.searchContext}get inPMInboxContext(){return!this.isPMInboxCleared&&this.search.searchContext?.type==="private_messages"}onKeydown(e){"Escape"===e.key&&(this.close(),e.preventDefault(),e.stopPropagation())}static #A=(()=>dt7948.n(this.prototype,"onKeydown",[o.action]))();close(){if(this.args?.onClose)return this.args.onClose();document.getElementById(this.searchInputId)?.blur(),this.menuPanelOpen=!1}static #M=(()=>dt7948.n(this.prototype,"close",[o.action]))();open(){this.menuPanelOpen||this.appEvents.trigger("search-menu:search_menu_opened"),this.menuPanelOpen=!0}static #E=(()=>dt7948.n(this.prototype,"open",[o.action]))();fullSearchUrl(e){let t="/search",i=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"),i.set("q",e)}return e?.expanded&&i.set("expanded","true"),""!==i.toString()&&(t=`${t}?${i}`),(0,M.default)(t)}static #P=(()=>dt7948.n(this.prototype,"fullSearchUrl",[D.bind]))();openAdvancedSearch(){this.fullSearch(),this.close()}static #I=(()=>dt7948.n(this.prototype,"openAdvancedSearch",[o.action]))();get displayMenuPanelResults(){return!this.args.inlineResults&&this.menuPanelOpen}clearSearch(e){e.stopPropagation(),e.preventDefault(),this.search.activeGlobalSearchTerm="",this.search.focusSearchInput(),this.triggerSearch()}static #j=(()=>dt7948.n(this.prototype,"clearSearch",[D.bind]))();searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.typeFilter=t.searchTopics?null:R,t.setTopicContext&&(this.search.inTopicContext=!0),t.setPMInboxContext&&(this.isPMInboxCleared=!1),this.search.activeGlobalSearchTerm=e,this.triggerSearch()}static #R=(()=>dt7948.n(this.prototype,"searchTermChanged",[o.action]))();fullSearch(){this.loading=!1;let e=this.fullSearchUrl();e&&E.default.routeTo(e)}static #B=(()=>dt7948.n(this.prototype,"fullSearch",[o.action]))();updateTypeFilter(e){this.typeFilter=e}static #H=(()=>dt7948.n(this.prototype,"updateTypeFilter",[o.action]))();clearPMInboxContext(){this.isPMInboxCleared=!0}static #z=(()=>dt7948.n(this.prototype,"clearPMInboxContext",[o.action]))();clearTopicContext(){this.search.inTopicContext=!1}static #$=(()=>dt7948.n(this.prototype,"clearTopicContext",[o.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("#",""),i=(0,C.search)(t,this.siteSettings);c.Promise.resolve(i).then(e=>{e!==S.CANCELLED_STATUS&&(this.suggestionResults=e,this.suggestionKeyword="#")})}else if("username"===e.type){let t=e.usernamesMatch[0].replace("@",""),i={includeGroups:!0,limit:6};t.length>0?i.term=t:i.lastSeenUsers=!0,(0,L.default)(i).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,x.isValidSearchTerm)(this.search.activeGlobalSearchTerm,this.siteSettings)?(this.loading=!0,this.invalidTerm=!1,this._activeSearch=(0,x.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(T.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(I);if(t)return{type:"category",categoriesMatch:t};let i=e.match(N);if(i)return{type:"username",usernamesMatch:i};let s=e.match(j);return!!s&&s}triggerSearch(){this.search.noResults=!1,this.includesTopics?("topic"===this.search.contextType&&(this.search.highlightTerm=this.search.activeGlobalSearchTerm),this.loading=!0,(0,u.cancel)(this._debouncer),this.perform(),this.currentUser&&(0,x.updateRecentSearches)(this.currentUser,this.search.activeGlobalSearchTerm)):(this.loading=!1,this.search.inTopicContext||(this._debouncer=(0,A.default)(this,this.perform,400)))}static #V=(()=>dt7948.n(this.prototype,"triggerSearch",[o.action]))();static #W=(()=>(0,P.setComponentTemplate)((0,F.createTemplateFactory)({id:"l9crNzot",block:'[[[1,"\\n "],[11,0],[16,0,[30,0,["classNames"]]],[4,[32,0],[[30,0,["setupEventListeners"]]],null],[4,[32,1],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n "],[10,0],[14,0,"search-input-wrapper"],[12],[1,"\\n "],[10,0],[15,0,[28,[32,2],["search-input",[28,[32,3],["search-input--",[30,1]],null]],null]],[12],[1,"\\n"],[41,[30,0,["search","inTopicContext"]],[[[1," "],[8,[32,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,[32,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,[32,5],null,[["@name","@outletArgs"],["search-menu-before-term-input",[28,[32,6],null,[["openSearchMenu"],[[30,0,["open"]]]]]]],null],[1,"\\n\\n "],[8,[32,7],null,[["@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@clearPMInboxContext","@clearTopicContext","@closeSearchMenu","@openSearchMenu","@autofocus","@inputId"],[[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,2],[30,0,["searchInputId"]]]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[1,[32,8]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"searching"],[12],[1,"\\n "],[8,[32,5],null,[["@name"],["search-menu-before-advanced-search"]],null],[1,"\\n"],[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1," "],[8,[32,9],null,[["@clearSearch"],[[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,10],null,[["@openAdvancedSearch"],[[30,0,["openAdvancedSearch"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,3],[[[1," "],[8,[32,11],null,[["@searchInputId","@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["searchInputId"]],[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,[32,12],null,[["@panelClass"],["search-menu-panel"]],[["default"],[[[[1,"\\n "],[8,[32,11],null,[["@searchInputId","@loading","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["searchInputId"]],[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]],[]]],[1," "],[13],[1,"\\n "]],["@location","@autofocusInput","@inlineResults"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu.js",scope:()=>[l.default,a.on,b.default,r.concat,p.default,m.default,w.default,y.default,k.default,f.default,g.default,_.default,h.default],isStrictMode:!0}),this))()}},9661:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(99904),n=i(77296),r=i(70508);let a=class extends s.default{get linkHref(){return(0,n.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}}},9676:(e,t,i)=>{"use strict";function s(e){return e<10?`0${e}`:e.toString()}function n(){let e=new Date,t=s(e.getHours()),i=s(e.getMinutes()),n=s(e.getSeconds());return`${t}:${i}:${n}`}i.d(t,{w:()=>a,I:()=>r});let r={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),i=0;i{"use strict";i.r(t),i.d(t,{default:()=>j});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(64081),u=i(96848),d=i(75093),c=i(28638),p=i(13355),h=i(53994),m=i(67337),g=i(88698),f=i(63359),_=i(90034),y=i(93460),b=i(98292),w=i(61942),k=i(86414),T=i(49453),S=i(58464),C=i(76403),A=i(64502),D=i(11428),M=i(99179),x=i(48463),E=i(70508),L=i(8195),P=i(32045),F=i(1519),I=i(69522);class N extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[d.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[d.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"isValidating",[n.tracked],function(){return!1}))();#sY=(()=>void dt7948.i(this,"isValidating"))();static #a=(()=>dt7948.g(this.prototype,"isSubmitting",[n.tracked],function(){return!1}))();#sH=(()=>void dt7948.i(this,"isSubmitting"))();fields=(()=>new Map)();formData=(()=>new M.default(this.args.data??{}))();constructor(){super(...arguments),this.args.onRegisterApi?.({set:this.set,setProperties:this.setProperties,get:this.get,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){let t=this.formData.isDirty&&!e.isAborted&&!e.queryParamsOnly;(this.args.onDirtyCheck?t&&this.args.onDirtyCheck(e):t)&&(e.abort(),this.dialog.yesNoConfirm({message:(0,E.i18n)("form_kit.dirty_form"),didConfirm:async()=>{await this.onReset(),e.retry()}}))}static #l=(()=>dt7948.n(this.prototype,"checkIsDirty",[o.action]))();get validateOn(){return this.args.validateOn??D.VALIDATION_TYPES.submit}get fieldValidationEvent(){let{validateOn:e}=this;if(e!==D.VALIDATION_TYPES.submit)return e}componentFor(e){let t=this,i={get errors(){return t.formData.errors},get data(){return t.formData},addError:t.addError,set:t.set,registerField:t.registerField,unregisterField:t.unregisterField,triggerRevalidationFor:t.triggerRevalidationFor,remove:t.remove};return(0,c.default)(e,i,(0,l.getOwner)(this))}static #d=(()=>dt7948.n(this.prototype,"componentFor",[o.action]))();addError(e,t){let{title:i,message:s}=t;this.formData.addError(e,{title:i,message:s})}static #p=(()=>dt7948.n(this.prototype,"addError",[o.action]))();removeError(e){this.formData.removeError(e)}static #m=(()=>dt7948.n(this.prototype,"removeError",[o.action]))();registerFormElement(e){this.formElement=e}static #f=(()=>dt7948.n(this.prototype,"registerFormElement",[o.action]))();async addItemToCollection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.formData.get(e)??[];this.formData.set(e,i.concat(t))}static #y=(()=>dt7948.n(this.prototype,"addItemToCollection",[o.action]))();async remove(e,t){let i=this.formData.get(e)??[];this.formData.set(e,i.filter((e,i)=>i!==t)),Object.keys(this.formData.errors).forEach(i=>{i.startsWith(`${e}.${t}.`)&&this.formData.removeError(i)})}static #v=(()=>dt7948.n(this.prototype,"remove",[o.action]))();async set(e,t){this.formData.set(e,t),this.fieldValidationEvent===D.VALIDATION_TYPES.change&&await this.triggerRevalidationFor(e)}static #k=(()=>dt7948.n(this.prototype,"set",[o.action]))();async setProperties(e){for(let[t,i]of Object.entries(e))await this.set(t,i)}static #S=(()=>dt7948.n(this.prototype,"setProperties",[o.action]))();get(e){return this.formData.get(e)}static #A=(()=>dt7948.n(this.prototype,"get",[o.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 #M=(()=>dt7948.n(this.prototype,"registerField",[o.action]))();unregisterField(e){this.fields.delete(e),this.removeError(e)}static #E=(()=>dt7948.n(this.prototype,"unregisterField",[o.action]))();async onSubmit(e){if(e?.preventDefault(),!this.isSubmitting)try{if(this.isSubmitting=!0,await this.validate(this.fields.values()),this.formData.isValid)this.formData.save(),await this.args.onSubmit?.(this.formData.draftData);else{let e=this.formElement.getBoundingClientRect().top,t=(0,L.getScrollParent)(this.formElement),i=e+t.scrollY-(0,x.headerOffset)();t.scrollTo({top:i})}}finally{this.isSubmitting=!1}}static #P=(()=>dt7948.n(this.prototype,"onSubmit",[o.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",[o.action]))();async triggerRevalidationFor(e){let t=this.fields.get(e);t&&this.formData.errors[e]&&await this.validate([t])}static #j=(()=>dt7948.n(this.prototype,"triggerRevalidationFor",[o.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 #R=(()=>(0,P.setComponentTemplate)((0,F.createTemplateFactory)({id:"i57Xn5yT",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],[4,[32,1],[[30,0,["registerFormElement"]]],null],[12],[1,"\\n "],[8,[32,2],null,[["@errors"],[[30,0,["formData","errors"]]]],null],[1,"\\n\\n "],[18,2,[[28,[32,3],null,[["Row","Section","Fieldset","ConditionalContent","Container","Actions","Button","Alert","Submit","Reset","Field","Collection","Object","InputGroup","CheckboxGroup","set","setProperties","addItemToCollection"],[[32,4],[32,5],[32,6],[50,[32,7],0,null,null],[32,8],[50,[32,5],0,null,[["class"],["form-kit__actions"]]],[50,[32,9],0,null,[["class"],["form-kit__button"]]],[32,10],[50,[32,11],0,null,[["action","forwardEvent","class","type","isLoading"],[[30,0,["onSubmit"]],true,"btn-primary form-kit__button","submit",[30,0,["isSubmitting"]]]]],[50,[32,9],0,null,[["action","forwardEvent","class","label"],[[30,0,["onReset"]],true,"form-kit__button","form_kit.reset"]]],[28,[30,0,["componentFor"]],[[32,12]],null],[28,[30,0,["componentFor"]],[[32,13]],null],[28,[30,0,["componentFor"]],[[32,14]],null],[28,[30,0,["componentFor"]],[[32,15]],null],[28,[30,0,["componentFor"]],[[32,16]],null],[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:()=>[a.on,u.default,y.default,r.hash,S.default,C.default,w.default,_.default,f.default,p.default,h.default,A.default,b.default,g.default,T.default,k.default,m.default],isStrictMode:!0}),this))()}let j=(0,P.setComponentTemplate)((0,F.createTemplateFactory)({id:"7UKoH9tm",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","@onDirtyCheck"],[[30,2],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],[["default"],[[[[1,"\\n "],[18,12,[[30,10],[30,11]]],[1,"\\n "]],[10,11]]]]],[1,"\\n"]],[2]],null]],["@data","data","&attrs","@onSubmit","@validate","@validateOn","@onRegisterApi","@onReset","@onDirtyCheck","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,N],isStrictMode:!0}),(0,I.default)(void 0,"form:Form"))},9769:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(54187).default)("user","private-messages-sent","sent")},9792:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>function e(t,i){if(t===i)return 0;let n=(0,s.default)(t),l=(0,s.default)(i);if("instance"===n&&o(t)&&t.constructor.compare)return t.constructor.compare(t,i);if("instance"===l&&o(i)&&i.constructor.compare)return -1*i.constructor.compare(i,t);let u=a(r[n],r[l]);if(0!==u)return u;switch(n){case"boolean":return a(Number(t),Number(i));case"number":return a(t,i);case"string":return a(t.localeCompare(i),0);case"array":{let s=t.length,n=i.length,r=Math.min(s,n);for(let s=0;s{"use strict";i.r(t),i.d(t,{default:()=>I});var s=i(93317);i(7155);var n=i(75093),r=i(57079),a=i(53329),o=i(63532),l=i(62446),u=i(63538),d=i(10458),c=i(45773),p=i(77982),h=i(70508),m=i(22595),g=i(91925),f=i(90384),_=i(2822),y=i(4302),b=i(12568),w=i(6057),k=i(14442),T=i(76693),S=i(77883),C=i(45254),A=i(71092),D=i(77100),M=i(76350),x=i(91175),E=i(48564),L=i(32045),P=i(1519);let F=(0,i(96900).A)(i(7155)).cached;class I extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();get columns(){let e=new c.default({onReplaceItem(e,t,i){t.header??=i.header,t.item??=i.item}});this.bulkSelectEnabled&&e.add("bulk-select",{header:g.default,item:S.default}),e.add("topic",{header:w.default,item:x.default}),this.args.showPosters&&e.add("posters",{header:y.default,item:D.default}),e.add("replies",{header:b.default,item:M.default}),"likes"===this.args.order?e.add("likes",{header:f.default,item:C.default}):"op_likes"===this.args.order&&e.add("op-likes",{header:_.default,item:A.default}),e.add("views",{header:k.default,item:E.default}),e.add("activity",{header:m.default,item:T.default});let t=this;return(0,p.applyMutableValueTransformer)("topic-list-columns",e,{get category(){return t.topicTrackingState.get("filterCategory")},get filter(){return t.topicTrackingState.get("filter")}}).resolve()}static #n=(()=>dt7948.n(this.prototype,"columns",[F]))();get selected(){return this.args.bulkSelectHelper?.selected}get bulkSelectEnabled(){return this.args.bulkSelectHelper?.bulkSelectEnabled&&this.args.canBulkSelect}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,{topics:i,order:s,ascending:n,top:r,hot:a}=this.args;if(!this.args.highlightLastVisited||r||a||n||!i||1===i.length||s&&"activity"!==s||!this.currentUser?.get("previous_visit_at"))return;let o=Math.max(i.findIndex(e=>!e.get("pinned")),0);for(let s=i.length-1;s>=o;s--){if(i[s].get("bumpedAt")>this.currentUser.get("previousVisitAt")){e=i[s];break}t=i[s]}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 #a=(()=>(0,L.setComponentTemplate)((0,P.createTemplateFactory)({id:"bPTP3FB/",block:'[[[1,"\\n"],[1," "],[11,"table"],[16,0,[28,[32,0],["topic-list",[52,[30,0,["bulkSelectEnabled"]],"sticky-header bulk-select-enabled"],[30,0,["additionalClasses"]]],null]],[24,"aria-labelledby","topic-list-heading"],[17,1],[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,2],[30,0,["toggleInTitle"]],[30,3],[30,4],[30,5],[30,6],[30,7],[30,6],[28,[32,3],[[30,8],"topic.title"],null],[30,9],[30,0,["bulkSelectEnabled"]],[30,0,["canDoBulkActions"]],[30,10],[30,11],[30,12],[30,13],[30,14]]],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,15],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,16],[30,4]]]]]],null],[1,"\\n\\n "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,15]],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,17],[30,9],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,4],[30,19],[30,20],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,21],[30,22],[30,18]]],null],[1,"\\n\\n"],[41,[28,[32,7],[[30,17],[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,17],[30,18]]]],"tr"]],null],[1,"\\n"]],[17,18]],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,15],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,16],[30,4]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@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:()=>[u.default,h.i18n,o.default,r.or,a.default,d.default,l.default,r.eq],isStrictMode:!0}),this))()}},9866:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(75370),n=i(76947),r=i(2204),a=i(7632),o=i(67784),l=i(57914),u=i(70508),d=i(32045),c=i(1519),p=i(69522);let h=(0,s.default)((0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"ap7KJ8CP",block:'[[[1,"\\n"],[41,[51,[30,1,["model","all_loaded"]]],[[[1," "],[1,[32,0]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["model","logs"]],[[[1," "],[10,0],[14,0,"group-manage-logs-controls"],[12],[1,"\\n "],[8,[32,1],null,[["@clearFilter","@value","@type"],[[30,1,["clearFilter"]],[30,1,["filters","action"]],"action"]],null],[1,"\\n "],[8,[32,1],null,[["@clearFilter","@value","@type"],[[30,1,["clearFilter"]],[30,1,["filters","acting_user"]],"acting_user"]],null],[1,"\\n "],[8,[32,1],null,[["@clearFilter","@value","@type"],[[30,1,["clearFilter"]],[30,1,["filters","target_user"]],"target_user"]],null],[1,"\\n "],[8,[32,1],null,[["@clearFilter","@value","@type"],[[30,1,["clearFilter"]],[30,1,["filters","subject"]],"subject"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],null,[["@action"],[[30,1,["loadMore"]]]],[["default"],[[[[1,"\\n "],[10,"table"],[14,0,"group-manage-logs"],[12],[1,"\\n "],[10,"thead"],[12],[1,"\\n "],[10,"th"],[12],[1,[28,[32,3],["groups.manage.logs.action"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,3],["groups.manage.logs.acting_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,3],["groups.manage.logs.target_user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,3],["groups.manage.logs.subject"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,3],["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,[31,3],[[28,[31,3],[[30,1,["model","logs"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@log","@filters"],[[30,2],[30,1,["filters"]]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,5],null,[["@condition"],[[30,1,["loading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,[28,[32,3],["groups.empty.logs"],null]],[13],[1,"\\n"]],[]]],[1," "]],["@controller","logItem"],false,["unless","if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage/logs.js",scope:()=>[l.default,r.default,o.default,u.i18n,a.default,n.default],isStrictMode:!0}),(0,p.default)(void 0,void 0)))},9875:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(85024),n=i(56179),r=i(87542);let a=dt7948.c(class extends n.default{},[(0,r.pluginApiIdentifiers)("search-advanced-category-chooser"),(0,r.selectKitOptions)({allowUncategorized:!0,clearable:!0,none:"category.all",displayCategoryDescription:!1,permissionType:null}),(0,s.classNames)("search-advanced-category-chooser")])},9975:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(13355),a=i(63538),o=i(70508),l=i(32045),u=i(1519);class d extends s.default{static shouldRender(e){return e.state.canCreatePost}static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();get showLabel(){return this.args.showLabel??(this.site.desktopView&&!this.args.state.isWikiMode)}static #i=(()=>(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,a.default,o.i18n],isStrictMode:!0}),this))()}},9993:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(27797);class n extends s.default{serialize(){return""}}},10094:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{__emberTemplateCompiler:()=>s,__registerTemplateCompiler:()=>a,compileTemplate:()=>r,precompileTemplate:()=>n});let r=function(){if(!s)throw Error("Attempted to call `compileTemplate` without first loading the runtime template compiler.");return s.compile(...arguments)};function a(e){s=e}},10124:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(24813),n=i(85024),r=i(80293),a=i(18649),o=i(32045),l=i(1519);let u=dt7948.c(class extends a.default{didReceiveAttrs(){super.didReceiveAttrs(...arguments),(0,s.schedule)("afterRender",()=>{let e=(0,r.escapeExpression)(this.rowValue);this.element.style.borderLeftColor=e.startsWith("#")?e:`#${e}`})}static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"DLIm1eau",block:'[[[1,"\\n "],[10,1],[12],[1,[30,0,["label"]]],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/create-color-row.js",isStrictMode:!0}),this))()},[(0,n.classNames)("create-color-row")])},10167:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(93317),n=i(86981),r=i(75093),a=i(13355),o=i(63538),l=i(11837),u=i(642),d=i(70508),c=i(32045),p=i(1519);class h extends s.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===u.default.CREATE_POST||this.args.type===u.default.FULL}get canCreate(){return this.args.type===u.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<=u.default.CREATE_POST?"reply-granted":""}get createGrantedClass(){return this.args.type===u.default.FULL?"create-granted":""}get isEveryoneGroup(){return"everyone"===this.args.groupName}get replyDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&!!(this.everyonePermissionType<=u.default.CREATE_POST)}get replyTooltip(){return this.replyDisabled?(0,d.i18n)("category.permissions.inherited"):(0,d.i18n)("category.permissions.toggle_reply")}get createDisabled(){return!this.isEveryoneGroup&&!!this.everyonePermissionType&&this.everyonePermissionType===u.default.FULL}get createTooltip(){return this.createDisabled?(0,d.i18n)("category.permissions.inherited"):(0,d.i18n)("category.permissions.toggle_full")}get groupLink(){return(0,l.default)(`/g/${this.args.groupName}`)}removeRow(e){e?.preventDefault(),this.args.category.removePermission(this.args.groupName)}static #i=(()=>dt7948.n(this.prototype,"removeRow",[n.action]))();setPermissionReply(){this.args.type<=u.default.CREATE_POST?this.#sq(u.default.READONLY):this.#sq(u.default.CREATE_POST)}static #n=(()=>dt7948.n(this.prototype,"setPermissionReply",[n.action]))();setPermissionFull(){(this.isEveryoneGroup||this.everyonePermissionType!==u.default.FULL)&&(this.args.type===u.default.FULL?this.#sq(u.default.CREATE_POST):this.#sq(u.default.FULL))}static #a=(()=>dt7948.n(this.prototype,"setPermissionFull",[n.action]))();#sq(e){this.args.category.updatePermission(this.args.groupName,e),this.isEveryoneGroup&&this.args.onChangeEveryonePermission(e)}static #l=(()=>(0,c.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:()=>[a.default,o.default],isStrictMode:!0}),this))()}},10211:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(44460),n=i(70508);class r extends s.default{get name(){return"groups"}get route(){return"groups"}get title(){return(0,n.i18n)("sidebar.sections.community.links.groups.title")}get text(){return(0,n.i18n)(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_group_directory}get defaultPrefixValue(){return"user-group"}}},10216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NotificationLevels:()=>s,allLevels:()=>r,buttonDetails:()=>n,topicLevels:()=>a});let s={WATCHING_FIRST_POST:4,WATCHING:3,TRACKING:2,REGULAR:1,NORMAL:1,MUTED:0};function n(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(n),a=r.filter(e=>4!==e.id)},10340:(e,t,i)=>{"use strict";function s(e){return e?.__esModule?e:{default:e,...e}}i.r(t),i.d(t,{default:()=>s})},10347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(46447);class r extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();model(){return this.modelFor("user")}setupController(e,t){e.setProperties({model:t,newUsername:t.username}),e.set("loading",!0),t.loadSecondFactorCodes().then(t=>{t.error?e.set("errorMessage",t.error):t.unconfirmed_session?this.router.transitionTo("preferences.security"):e.setProperties({errorMessage:null,totps:t.totps,security_keys:t.security_keys})}).catch(e.popupAjaxError).finally(()=>e.set("loading",!1))}}},10458:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(77061),n=i(69023),r=i(93239);class a{constructor(e){for(let[t,i]of Object.entries(e))Object.defineProperty(this,t,(0,r.dependentKeyCompat)(this,t,{get:()=>(0,n.valueForRef)(i),enumerable:!0,configurable:!1}));Object.preventExtensions(this)}}let o=(0,s.setInternalHelperManager)(e=>{let t,{named:i}=e;return(0,n.createComputeRef)(()=>t??=new a(i),null,"lazy-hash")},{})},10511:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EMBER_MAJOR_VERSION:()=>s});let s=parseInt(i(47249).default.split(".")[0],10)},10537:(e,t,i)=>{"use strict";var s=i(54707);function n(e,t,i,s,n){var r="",a="",o=Math.floor(n/2)-1;return s-t>o&&(t=s-o+(r=" ... ").length),i-s>o&&(i=s+o-(a=" ...").length),{str:r+e.slice(t,i).replace(/\t/g,"→")+a,pos:s-t+r.length}}function r(e,t){return s.repeat(" ",t-e.length)+e}e.exports=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 i=/\r?\n|\r|\0/g,a=[0],o=[],l=-1;u=i.exec(e.buffer);)o.push(u.index),a.push(u.index+u[0].length),e.position<=u.index&&l<0&&(l=a.length-2);l<0&&(l=a.length-1);var u,d,c,p="",h=Math.min(e.line+t.linesAfter,o.length).toString().length,m=t.maxLength-(t.indent+h+3);for(d=1;d<=t.linesBefore&&!(l-d<0);d++)c=n(e.buffer,a[l-d],o[l-d],e.position-(a[l]-a[l-d]),m),p=s.repeat(" ",t.indent)+r((e.line-d+1).toString(),h)+" | "+c.str+` `+p;for(c=n(e.buffer,a[l],o[l],e.position,m),p+=s.repeat(" ",t.indent)+r((e.line+1).toString(),h)+" | "+c.str+` `+s.repeat("-",t.indent+h+3+c.pos)+`^ `,d=1;d<=t.linesAfter&&!(l+d>=o.length);d++)c=n(e.buffer,a[l+d],o[l+d],e.position-(a[l]-a[l+d]),m),p+=s.repeat(" ",t.indent)+r((e.line+d+1).toString(),h)+" | "+c.str+` `;return p.replace(/\n$/,"")}},10558:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(73326),n=i(1158),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[n.default,s.concat],isStrictMode:!0}),(0,o.default)(void 0,"add-category-tag-classes:AddCategoryTagClasses"))},10583:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(96791),r=i(86981),a=i(9032),o=i(95033),l=i(53329),u=i(29466),d=i(32045),c=i(1519);class p extends s.default{handlePreviewClick(e){if(e.target.closest(".d-editor-preview")&&!(0,u.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 #e=(()=>dt7948.n(this.prototype,"handlePreviewClick",[r.action]))();static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"HG9R4nvx",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[29,["d-editor-preview-wrapper ",[52,[30,1],"force-preview"]]]],[4,[32,0],["click",[30,0,["handlePreviewClick"]]],null],[12],[1,"\\n "],[8,[32,1],null,[["@className","@html","@decorate"],["d-editor-preview",[28,[32,2],[[30,2]],null],[30,3]]],null],[1,"\\n "],[10,1],[14,0,"d-editor-plugin"],[12],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["editor-preview","div",[30,4]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@forcePreview","@preview","@onPreviewUpdated","@outletArgs"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-editor-preview.js",scope:()=>[n.on,o.default,a.htmlSafe,l.default],isStrictMode:!0}),this))()}},10619:(e,t,i)=>{"use strict";i.r(t),i.d(t,{REFRESH_COUNTS_APP_EVENT_NAME:()=>y,default:()=>b}),i(7155);var s=i(73326),n=i(86981),r=i(75093),a=i(14051),o=i(89427),l=i(23062),u=i(70508),d=i(62284),c=i(91241),p=i(55717),h=i(41666),m=i(32851),g=i(32045),f=i(1519);let _=(0,i(96900).A)(i(7155)).cached,y="sidebar:refresh-categories-section-counts";class b extends c.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #a=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>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 #l=(()=>dt7948.n(this.prototype,"_refreshCounts",[(0,a.debounce)(300)]))();get categories(){return this.currentUser.sidebarCategoryIds?.length>0?l.default.findByIds(this.currentUser.sidebarCategoryIds):this.topSiteCategories}static #d=(()=>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 #p=(()=>dt7948.n(this.prototype,"showModal",[n.action]))();static #m=(()=>(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,s.array,s.hash,m.default,d.default],isStrictMode:!0}),this))()}},10664:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(75093),l=i(9032),u=i(76947),d=i(13355),c=i(39826),p=i(93709),h=i(71641),m=i(14104),g=i(38069),f=i(87367),_=i(70508),y=i(32045),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#sA=(()=>void dt7948.i(this,"loading"))();static #a=(()=>dt7948.g(this.prototype,"pinnedInCategoryCount",[n.tracked],function(){return 0}))();#sz=(()=>void dt7948.i(this,"pinnedInCategoryCount"))();static #l=(()=>dt7948.g(this.prototype,"pinnedGloballyCount",[n.tracked],function(){return 0}))();#s$=(()=>void dt7948.i(this,"pinnedGloballyCount"))();static #d=(()=>dt7948.g(this.prototype,"bannerCount",[n.tracked],function(){return 0}))();#sV=(()=>void dt7948.i(this,"bannerCount"))();static #p=(()=>dt7948.g(this.prototype,"pinInCategoryTipShownAt",[n.tracked],function(){return!1}))();#sW=(()=>void dt7948.i(this,"pinInCategoryTipShownAt"))();static #m=(()=>dt7948.g(this.prototype,"pinGloballyTipShownAt",[n.tracked],function(){return!1}))();#sK=(()=>void dt7948.i(this,"pinGloballyTipShownAt"))();constructor(){super(...arguments),this.loadFeatureStats()}get categoryLink(){return(0,m.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,_.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,_.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,_.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 a.default.create({failed:!0,reason:(0,_.i18n)("topic.feature_topic.pin_validation")})}get pinGloballyValidation(){if(this.pinGloballyDisabled)return a.default.create({failed:!0,reason:(0,_.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,f.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 #f=(()=>dt7948.n(this.prototype,"loadFeatureStats",[a.action]))();async _confirmBeforePinningGlobally(){this.pinnedGloballyCount<4?(this.args.model.pinGlobally(),this.args.closeModal()):this.dialog.yesNoConfirm({message:(0,_.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 #y=(()=>dt7948.n(this.prototype,"pin",[a.action]))();pinGlobally(){this.pinGloballyDisabled?this.pinGloballyTipShownAt=Date.now():this._confirmBeforePinningGlobally()}static #v=(()=>dt7948.n(this.prototype,"pinGlobally",[a.action]))();unpin(){this.args.model.togglePinned(),this.args.closeModal()}static #k=(()=>dt7948.n(this.prototype,"unpin",[a.action]))();makeBanner(){this.args.model.makeBanner(),this.args.closeModal()}static #S=(()=>dt7948.n(this.prototype,"makeBanner",[a.action]))();removeBanner(){this.args.model.removeBanner(),this.args.closeModal()}static #A=(()=>dt7948.n(this.prototype,"removeBanner",[a.action]))();static #M=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"6UAjuEv3",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"feature-topic"]],[["@title","@closeModal"],[[28,[32,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,[32,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,1],["topic.feature_topic.global_pin_note"],null]],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,"\\n "],[8,[32,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,1],["topic.feature_topic.pin_note"],null]],[13],[1,"\\n"]],[]]],[1," "],[10,2],[12],[1,[28,[32,3],[[30,0,["unPinMessage"]]],null]],[13],[1,"\\n "],[10,2],[12],[8,[32,4],[[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,[32,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,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,[32,3],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[32,5],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[32,6],[[28,[31,1],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[32,7],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,[32,3],[[30,0,["pinMessage"]]],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,8],["far-clock"],null]],[1,"\\n "],[8,[32,5],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[32,6],[[28,[31,1],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n "],[8,[32,7],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,[32,4],[[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,[32,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,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,[32,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[13],[1,"\\n "],[10,2],[14,0,"with-validation"],[12],[1,"\\n "],[8,[32,5],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[32,6],[[28,[31,1],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[32,7],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,[32,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,8],["far-clock"],null]],[1,"\\n "],[8,[32,5],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[32,6],[[28,[31,1],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n "],[8,[32,7],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,[32,4],[[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,[32,2],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["bannerCount"]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.banner_exists"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],[[28,[32,1],["topic.feature_topic.no_banner_exists"],null]],null]],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,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,[32,1],["topic.feature_topic.remove_banner"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,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,[32,4],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["removeBanner"]],"thumbtack","topic.feature.remove_banner"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,4],[[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," "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/feature-topic.js",scope:()=>[c.default,_.i18n,u.default,l.htmlSafe,d.default,p.default,r.fn,h.default,g.default],isStrictMode:!0}),this))()}},10696:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(32045),n=i(85024);let r=dt7948.c(class extends s.default{},[(0,n.classNames)("discourse-root"),(0,n.tagName)("div")])},10780:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(96848),l=i(76947),u=i(13355),d=i(39826),c=i(16356),p=i(11837),h=i(28325),m=i(18323),g=i(36491),f=i(70508),_=i(7749),y=i(32045),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!0}))();#sA=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();static #n=(()=>dt7948.g(this.prototype,"selectedBadgeId",[n.tracked],function(){return null}))();#sG=(()=>void dt7948.i(this,"selectedBadgeId"))();static #a=(()=>dt7948.g(this.prototype,"flash",[n.tracked],function(){return null}))();#sJ=(()=>void dt7948.i(this,"flash"))();static #l=(()=>dt7948.g(this.prototype,"flashType",[n.tracked],function(){return null}))();#sQ=(()=>void dt7948.i(this,"flashType"))();static #d=(()=>dt7948.g(this.prototype,"allBadges",[n.tracked],function(){return[]}))();#sX=(()=>void dt7948.i(this,"allBadges"))();static #p=(()=>dt7948.g(this.prototype,"userBadges",[n.tracked],function(){return[]}))();#sZ=(()=>void dt7948.i(this,"userBadges"))();static #m=(()=>dt7948.g(this.prototype,"availableBadges",[n.tracked],function(){return[]}))();#s1=(()=>void dt7948.i(this,"availableBadges"))();get noAvailableBadges(){this.availableBadges.length}get post(){return this.args.model.selectedPost}get buttonDisabled(){return this.saving||!(0,h.isBadgeGrantable)(this.selectedBadgeId,this.availableBadges)}#s0(){this.availableBadges=(0,h.grantableBadges)(this.allBadges,this.userBadges)}async loadBadges(){this.loading=!0;try{this.allBadges=await m.default.findAll(),this.userBadges=await g.default.findByUsername(this.post.username),this.#s0()}catch(e){this.flash=(0,c.extractError)(e),this.flashType="error"}finally{this.loading=!1}}static #f=(()=>dt7948.n(this.prototype,"loadBadges",[a.action]))();async performGrantBadge(){try{this.saving=!0;let e=this.post.username,t=await g.default.grant(this.selectedBadgeId,e,(0,p.default)(this.post.url));this.userBadges.pushObject(t),this.#s0(),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,c.extractError)(e),this.flashType="error"}finally{this.saving=!1}}static #y=(()=>dt7948.n(this.prototype,"performGrantBadge",[a.action]))();static #v=(()=>(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:()=>[d.default,f.i18n,o.default,l.default,_.default,r.fn,r.hash,u.default],isStrictMode:!0}),this))()}},10822:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(32045),n=i(85024),r=i(41107),a=i.n(r),o=i(14051);let l=dt7948.c(class extends s.default{type="radio";click(){let e=a()(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,o.default)("value","selection")]))()},[(0,n.attributeBindings)("name","type","value","checked:checked","disabled:disabled"),(0,n.tagName)("input")])},10910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BEHAVIOR_TRANSFORMERS:()=>s,VALUE_TRANSFORMERS:()=>n});let s=Object.freeze(["composer-position:correct-scroll-position","composer-position:editor-touch-move","discovery-topic-list-load-more","full-page-search-load-more","post-menu-toggle-like-action","topic-list-item-click"]),n=Object.freeze(["admin-reports-show-query-params","bulk-select-in-nav-controls","category-available-views","category-description-text","category-display-name","category-text-color","composer-editor-reply-placeholder","composer-save-button-label","composer-service-cannot-submit-post","create-topic-label","flag-button-render-decision","flag-button-dynamic-class","flag-button-disabled-state","flag-description","flag-custom-placeholder","flag-formatted-name","hamburger-dropdown-click-outside-exceptions","header-notifications-avatar-size","home-logo-href","home-logo-image-url","home-logo-minimized","invite-simple-mode-topic","latest-topic-list-item-class","like-button-render-decision","mentions-class","more-topics-tabs","move-to-topic-merge-options","move-to-topic-move-options","navigation-bar-dropdown-icon","navigation-bar-dropdown-mode","parent-category-row-class","parent-category-row-class-mobile","post-class","post-flag-available-flags","post-flag-title","post-menu-buttons","post-menu-collapsed","post-meta-data-poster-name-suppress-similar-name","post-notice-component","post-show-topic-map","post-small-action-class","post-small-action-custom-component","post-small-action-icon","post-text-selection-prevent-close","poster-name-class","site-setting-enable-welcome-banner","site-setting-search-experience","small-user-attrs","tag-separator","topic-list-class","topic-list-columns","topic-list-header-sortable-column","topic-list-item-class","topic-list-item-expand-pinned","topic-list-item-mobile-layout","topic-list-item-style","user-field-components"])},10919:(e,t,i)=>{"use strict";i.r(t),i.d(t,{changeEmail:()=>o,resendActivationEmail:()=>a});var s=i(87367),n=i(16356),r=i(77296);function a(e){return(0,s.ajax)((0,r.userPath)("action/send_activation_email"),{type:"POST",data:{username:e}}).catch(n.popupAjaxError)}function o(e){return(0,s.ajax)((0,r.userPath)("update-activation-email"),{data:e,type:"PUT"})}},10991:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(9032),a=i(7953),o=i(71277),l=i(47920),u=i(38069),d=i(80484),c=i(70508),p=i(32045),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"createdByAnchorElement",[n.tracked]))();#s3=(()=>void dt7948.i(this,"createdByAnchorElement"))();registerCreatedByLink=(()=>(0,a.modifier)(e=>{this.createdByAnchorElement=e?.querySelector(".custom_created_by")}))();get createdByName(){if(this.args.post.notice_created_by_user)return(0,d.prioritizeNameInUx)(this.args.post.notice_created_by_user.name)?this.args.post.notice_created_by_user.name:this.args.post.notice_created_by_user.username}static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"bzWexE7r",block:'[[[1,"\\n "],[1,[28,[32,0],["user-shield"],null]],[1,"\\n "],[11,0],[24,0,"post-notice-message test"],[4,[30,0,["registerCreatedByLink"]],null,null],[12],[1,"\\n "],[1,[28,[32,1],[[30,1,["cooked"]]],null]],[1,"\\n"],[41,[30,0,["createdByName"]],[[[1," "],[1,[28,[32,1],[[28,[32,2],["post.notice.custom_created_by"],[["userLinkHTML"],[""]]]],null]],[1,"\\n"]],[]],null],[1," "],[8,[32,3],null,[["@element"],[[30,0,["createdByAnchorElement"]]]],[["default"],[[[[1,"\\n "],[8,[32,4],[[16,"title",[30,0,["createdByName"]]]],[["@username","@ariaHidden"],[[30,2,["notice_created_by_user","username"]],false]],[["default"],[[[[1,"\\n "],[1,[30,0,["createdByName"]]],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@notice","@post"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/notice/custom.js",scope:()=>[u.default,r.htmlSafe,c.i18n,o.default,l.default],isStrictMode:!0}),this))()}},11051:(e,t,i)=>{"use strict";i.d(t,{n4:()=>b,UD:()=>y});var s=i(67013),n=i(20649),r=i(8004),a=i(69408),o=i(48459),l=i(46462),u=i(99117),d=i(14307),c=i(80095),p=i(63348),h=i(12742),m=i(4258),g=i(28617),f={placement:"bottom",modifiers:[],strategy:"absolute"};function _(){for(var e=arguments.length,t=Array(e),i=0;i{"use strict";i.r(t),i.d(t,{g:()=>n});var s=i(57330);function n(e,t){let i=(0,s.peekMeta)(e);return i?i.valueFor(t):void 0}},11157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ALL_TAGS_ID:()=>b,NONE_TAG:()=>w,NO_TAG_ID:()=>y,default:()=>T});var s=i(86981),n=i(91558),r=i(75093),a=i(85024),o=i(27912),l=i(14013),u=i(8760),d=i(91268),c=i.n(d),p=i(70508),h=i(7749),m=i(43193),g=i(87542),f=i(37142),_=i(46946);let y="no-tags",b="all-tags",w="none",k="MORE_TAGS_COLLECTION",T=dt7948.c(class extends h.default{static #e=(()=>dt7948.g(this.prototype,"tagUtils",[r.service]))();#s2=(()=>void dt7948.i(this,"tagUtils"))();static #i=(()=>dt7948.g(this.prototype,"maxTagSearchResults",[(0,o.setting)("max_tag_search_results")]))();#s8=(()=>void dt7948.i(this,"maxTagSearchResults"))();static #n=(()=>dt7948.g(this.prototype,"sortTagsAlphabetically",[(0,o.setting)("tags_sort_alphabetically")]))();#s4=(()=>void dt7948.i(this,"sortTagsAlphabetically"))();static #a=(()=>dt7948.g(this.prototype,"maxTagsInFilterList",[(0,o.setting)("max_tags_in_filter_list")]))();#s7=(()=>void dt7948.i(this,"maxTagsInFilterList"))();static #l=(()=>dt7948.g(this.prototype,"value",[(0,n.readOnly)("tagId")]))();#s9=(()=>void dt7948.i(this,"value"))();init(){super.init(...arguments),this.insertAfterCollection(g.MAIN_COLLECTION,k)}get shouldShowMoreTags(){return this.selectKit.filter?.length>0?this.mainCollection.length>this.maxTagsInFilterList:this.topTags.length>this.maxTagsInFilterList}static #d=(()=>dt7948.n(this.prototype,"shouldShowMoreTags",[(0,s.computed)("maxTagsInFilterList","topTags.[]","mainCollection.[]")]))();modifyComponentForCollection(e){if(e===k)return m.default}modifyContentForCollection(e){if(e===k)return{shouldShowMoreTip:this.shouldShowMoreTags}}modifyNoSelection(){return this.tagId===w?this.defaultItem(y,(0,p.i18n)("tagging.selector_no_tags")):this.defaultItem(b,(0,p.i18n)("tagging.selector_tags"))}modifySelection(e){return this.tagId===w?e=this.defaultItem(y,(0,p.i18n)("tagging.selector_no_tags")):this.tagId&&(e=this.defaultItem(this.tagId,this.tagId)),e}get tagClass(){return this.tagId?`tag-${this.tagId}`:"tag_all"}static #p=(()=>dt7948.n(this.prototype,"tagClass",[(0,s.computed)("tagId")]))();modifyComponentForRow(){return _.default}get shortcuts(){let e=[];return this.tagId&&e.push({id:b,name:(0,p.i18n)("tagging.selector_remove_filter")}),this.tagId!==w&&e.push({id:y,name:(0,p.i18n)("tagging.selector_no_tags")}),1===e.length&&e[0].id===b&&(e[0].name=(0,p.i18n)("tagging.selector_remove_filter")),e}static #m=(()=>dt7948.n(this.prototype,"shortcuts",[(0,s.computed)("tagId")]))();get topTags(){return this.currentCategory&&this.site.category_top_tags?this.site.category_top_tags||[]:this.site.top_tags||[]}static #f=(()=>dt7948.n(this.prototype,"topTags",[(0,s.computed)("currentCategory","site.category_top_tags.[]","site.top_tags.[]")]))();get content(){let e=this.topTags.slice(0,this.maxTagsInFilterList);return this.sortTagsAlphabetically&&e?this.shortcuts.concat(e.sort()):this.shortcuts.concat((0,u.makeArray)(e))}static #y=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("topTags.[]","shortcuts.[]")]))();validateCreate(e,t){return this.tagUtils.validateCreate(e,t,this.selectKit.options.maximum,e=>this.addError(e),this.termMatchesForbidden,e=>this.getValue(e),this.value)}createContentFromInput(e){return this.tagUtils.createContentFromInput(e)}search(e){if(!e)return(this.content||[]).map(e=>e.id&&e.name?e:this.defaultItem(e,e));{let t={q:e,limit:this.maxTagSearchResults};return this.tagUtils.searchTags("/tags/filter/search",t,this._transformJson)}}_transformJson(e){return this.isDestroyed||this.isDestroying?[]:e.results.sort((e,t)=>e.id>t.id).map(e=>{let t=this.defaultItem(e.id,e.text);return t.targetTagId=e.target_tag||e.id,this.currentCategory||(t.count=e.count),t.pmCount=e.pm_count,t})}static #v=(()=>dt7948.n(this.prototype,"_transformJson",[l.bind]))();onChange(e,t){e===y?e=w:e===b?e=null:t&&t.targetTagId&&(e=t.targetTagId),c().routeToUrl((0,d.getCategoryAndTagUrl)(this.currentCategory,!this.noSubcategories,e))}static #k=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,g.pluginApiIdentifiers)("tag-drop"),(0,g.selectKitOptions)({allowAny:!1,caretDownIcon:"caret-right",caretUpIcon:"caret-down",fullWidthOnMobile:!0,filterable:!0,headerComponent:f.default,autoInsertNoneItem:!1}),(0,a.classNames)("tag-drop"),(0,a.classNameBindings)("tagClass")])},11200:(e,t,i)=>{"use strict";function s(){return"30000000-1000-4000-2000-100000000000".replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16))}i.r(t),i.d(t,{default:()=>s})},11226:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(45693),n=i(17631);let r={after:"hashtag-css-generator",initialize(e){let t=e.lookup("service:site");(0,n.withPluginApi)("0.8.7",e=>{e.decorateCookedElement(e=>(0,s.decorateHashtags)(e,t))})}}},11280:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],n=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})})},11428:(e,t,i)=>{"use strict";i.r(t),i.d(t,{NO_VALUE_OPTION:()=>n,VALIDATION_TYPES:()=>s});let s={submit:"submit",change:"change",focusout:"focusout",input:"input"},n="__NONE__"},11455:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(13355),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"yaTHU5wO",block:'[[[1,"\\n "],[10,0],[14,1,"simple-container"],[12],[1,"\\n "],[10,0],[14,0,"confirm-new-email"],[12],[1,"\\n "],[10,"h2"],[12],[1,[28,[32,0],["user.change_email.title"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n"],[41,[30,1,["model","old_email"]],[[[1," "],[1,[28,[32,0],["user.change_email.authorizing_new.description"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["user.change_email.authorizing_new.description_add"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,2],[12],[1,[30,1,["model","new_email"]]],[13],[1,"\\n "],[8,[32,1],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[32,0],["user.change_email.confirm"],null],[30,1,["confirm"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/confirm-new-email.js",scope:()=>[r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},11458:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(86981).default.extend({asyncStart(){},asyncEnd(){},exception(e){throw e}})},11556:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(82876).default.create()},11590:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(50890),n=i(86981),r=i(16356),a=i(70508);class o extends s.default{subpageTitle=(()=>(0,a.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,a.i18n)("user.like_notification_frequency.always"),value:0},{name:(0,a.i18n)("user.like_notification_frequency.first_time_and_daily"),value:1},{name:(0,a.i18n)("user.like_notification_frequency.first_time"),value:2},{name:(0,a.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",[n.action]))()}},11596:(e,t,i)=>{var s=i(60790),n=i(74011),r=i(48653),a=i(2873),o=i(86820);e.exports=d;var l={},u=[];function d(e,t,i,s,d){this.tagName=e,this.properties=t||l,this.children=i||u,this.key=null!=s?String(s):void 0,this.namespace="string"==typeof d?d:null;var c,p=i&&i.length||0,h=0,m=!1,g=!1,f=!1;for(var _ in t)if(t.hasOwnProperty(_)){var y=t[_];o(y)&&y.unhook&&(c||(c={}),c[_]=y)}for(var b=0;b{"use strict";i.r(t),i.d(t,{clearTopicFooterButtons:()=>l,getTopicFooterButtons:()=>o,registerTopicFooterButton:()=>a});var s=i(86981),n=i(70508);let r={};function a(e){if(!e.id)throw Error("Attempted to register a topic button with no id.");if(r[e.id])return;let t=Object.assign({type:"inline-button",id:null,icon:null,title:null,translatedTitle:null,label:null,translatedLabel:null,ariaLabel:null,translatedAriaLabel:null,dropdown:!1,classNames:[],dependentKeys:[],displayed:!0,disabled:!1,priority:0,anonymousOnly:!1},e);if(!t.icon&&!t.title&&!t.translatedTitle)throw Error(`Attempted to register a topic button: ${e.id} with no icon or title.`);r[t.id]=t}function o(){let e=[].concat(...Object.values(r).map(e=>e.dependentKeys).filter(e=>e));return(0,s.computed)(...e,{get(){let e=(e,t)=>{let i=e[t];return(e=>e&&"function"==typeof e)(i)?i.apply(this):i};return Object.values(r).filter(t=>e(t,"displayed")).map(t=>{let i={};i.id=t.id,i.type=t.type;let s=e(t,"label");i.label=s?(0,n.i18n)(s):e(t,"translatedLabel");let r=e(t,"ariaLabel");r?i.ariaLabel=(0,n.i18n)(r):i.ariaLabel=e(t,"translatedAriaLabel")||i.label;let a=e(t,"title");if(i.title=a?(0,n.i18n)(a):e(t,"translatedTitle"),i.classNames=(e(t,"classNames")||[]).join(" "),i.icon=e(t,"icon"),i.disabled=e(t,"disabled"),i.dropdown=e(t,"dropdown"),i.priority=e(t,"priority"),i.anonymousOnly=e(t,"anonymousOnly"),(e=>e&&"function"==typeof e)(t.action))i.action=()=>t.action.apply(this);else{let e=t.action;i.action=()=>this[e]()}return i})}})}function l(){r=[]}},11624:(e,t,i)=>{"use strict";function s(e){let t=e,i=Math.trunc(t/3600);i>=1?t-=3600*i:i=0;let s=Math.trunc(t/60);return s>=1?t-=60*s:s=0,{hours:i,minutes:s,seconds:t}}function n(e,t,i){return i+60*e*60+60*t}function r(e){return moment.duration(e,"seconds").humanize()}function a(e,t,i){let s=new Date(i);return s=new Date(s.getTime()+1e3*t),!e.staff&&new Datea,durationTextFromSeconds:()=>r,fromSeconds:()=>s,toSeconds:()=>n})},11651:(e,t,i)=>{e.exports={diff:i(99228),patch:i(79321),h:i(7039),create:i(74998),VNode:i(11596),VText:i(4031)}},11666:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addApiImageWrapperButtonClickEvent:()=>Z,addComposerUploadHandler:()=>z,addComposerUploadMarkdownResolver:()=>J,addComposerUploadPreProcessor:()=>W,cleanUpComposerUploadHandler:()=>$,cleanUpComposerUploadMarkdownResolver:()=>Q,cleanUpComposerUploadPreProcessor:()=>K,default:()=>ee});var s=i(7155),n=i(32045),r=i(73326),a=i(86981),o=i(64081),l=i(24813),u=i(75093),d=i(85024),c=i(38161),p=i(952),h=i(41107),m=i.n(h),g=i(67619),f=i(57079),_=i(57882),y=i(10583),b=i(42638),w=i(91720),k=i(9040),T=i(10458),S=i(87367),C=i(41500),A=i(34686),D=i(14051),M=i(12844),x=i(45693),E=i(21530),L=i(86723),P=i(35469),F=i(98035),I=i(67698),N=i(77982),j=i(8835),O=i(64952),R=i(35697),U=i(94996),B=i(70508),Y=i(1176),H=i(1519);let q=[];function z(e,t){q.push({extensions:e,method:t})}function $(){q.length=0}let V=[];function W(e,t){if(!(e.prototype instanceof p.A))throw Error("Composer upload preprocessors must inherit from the Uppy BasePlugin class.");V.push({pluginClass:e,optionsResolverFn:t})}function K(){V=[]}let G=[];function J(e){G.push(e)}function Q(){G=[]}let X=[];function Z(e){X.push(e)}let ee=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"composer",[u.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"preview",[s.tracked]))();#s5=(()=>void dt7948.i(this,"preview"))();composerEventPrefix="composer";shouldBuildScrollMap=!0;scrollMap=null;fileUploadElementId="file-uploader";init(){super.init(...arguments),this.warnedCannotSeeMentions=[],this.warnedGroupMentions=[],this.uppyComposerUpload=new O.default((0,o.getOwner)(this),{composerEventPrefix:this.composerEventPrefix,composerModel:this.composer.model,uploadMarkdownResolvers:G,uploadPreProcessors:V,uploadHandlers:q,fileUploadElementId:this.fileUploadElementId})}get topic(){return this.composer.get("model.topic")}replyPlaceholder(e){let t="composer.reply_placeholder_choose_category";if(!e){let e=(0,j.authorizesOneOrMoreImageExtensions)(this.currentUser.staff,this.siteSettings)?"reply_placeholder":"reply_placeholder_no_images";t=`composer.${e}`}return(0,N.applyValueTransformer)("composer-editor-reply-placeholder",t,{model:this.composer})}static #l=(()=>dt7948.n(this.prototype,"replyPlaceholder",[(0,D.default)("composer.model.requiredCategoryMissing")]))();showLink(){return this.currentUser&&"none"!==this.currentUser.link_posting_access}static #d=(()=>dt7948.n(this.prototype,"showLink",[D.default]))();setFocus(){"editor"===this.composer.focusTarget&&this.textManipulation.putCursorAtEnd()}static #p=(()=>dt7948.n(this.prototype,"setFocus",[(0,c.observes)("composer.focusTarget")]))();markdownOptions(){return{previewing:!0,formatUsername:R.formatUsername,lookupAvatarByPostNumber:(e,t)=>{let i=this.topic;if(!i)return;let s=i.get("postStream.posts");if(s&&t===i.get("id")){let t=s.findBy("post_number",e);if(t)return(0,C.tinyAvatar)(t.get("avatar_template"))}},lookupPrimaryUserGroupByPostNumber:(e,t)=>{let i=this.topic;if(!i)return;let s=i.get("postStream.posts");if(s&&t===i.get("id")){let t=s.findBy("post_number",e);if(t)return t.primary_group_name}},hashtagTypesInPriorityOrder:this.site.hashtag_configurations["topic-composer"],hashtagIcons:this.site.hashtag_icons}}static #m=(()=>dt7948.n(this.prototype,"markdownOptions",[D.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 #f=(()=>dt7948.n(this.prototype,"_composerEditorInit",[(0,c.on)("didInsertElement")]))();setupEditor(e){this.textManipulation=e,this.uppyComposerUpload.placeholderHandler=e.placeholder;let t=this.element.querySelector(".d-editor-input");t.addEventListener("scroll",this._throttledSyncEditorAndPreviewScroll),this.composer.set("allowPreview",this.textManipulation.allowPreview),this.get("composer.model.canEditTitle")&&"BODY"!==document.activeElement.tagName||this.textManipulation.putCursorAtEnd();let i=(0,A.setupComposerPosition)(t);return()=>{i(),t.removeEventListener("scroll",this._throttledSyncEditorAndPreviewScroll)}}static #y=(()=>dt7948.n(this.prototype,"setupEditor",[D.bind]))();validation(e,t,i,s,n){let r;if(this.get("composer.post.post_type")!==this.site.get("post_types.small_action")){if(t<1)r=(0,B.i18n)("composer.error.post_missing");else if(i>0){r=(0,B.i18n)("composer.error.post_length",{count:s});let e=this.get("currentUser.trust_level");0!==e&&1!==e||this._isNewTopic||(r+="
"+(0,B.i18n)("composer.error.try_like",{heart:(0,E.iconHTML)("heart",{label:(0,B.i18n)("likes_lowercase",{count:1})})}))}if(r)return a.default.create({failed:!0,reason:r,lastShownAt:n})}}static #v=(()=>dt7948.n(this.prototype,"validation",[(0,D.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 #k=(()=>dt7948.n(this.prototype,"_isNewTopic",[(0,a.computed)("composer.{creatingTopic,editingFirstPost,creatingSharedDraft}")]))();_resetShouldBuildScrollMap(){this.set("shouldBuildScrollMap",!0)}_handleInputInteraction(e){let t=this.element.querySelector(".d-editor-preview-wrapper");m()(t).is(":visible")&&(t.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target.addEventListener("scroll",this._handleInputOrPreviewScroll))}static #S=(()=>dt7948.n(this.prototype,"_handleInputInteraction",[D.bind]))();_handleInputOrPreviewScroll(e){this._syncScroll(this._syncEditorAndPreviewScroll,m()(e.target),m()(this.element.querySelector(".d-editor-preview-wrapper")))}static #A=(()=>dt7948.n(this.prototype,"_handleInputOrPreviewScroll",[D.bind]))();_handlePreviewInteraction(e){this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target?.addEventListener("scroll",this._handleInputOrPreviewScroll)}static #M=(()=>dt7948.n(this.prototype,"_handlePreviewInteraction",[D.bind]))();_syncScroll(e,t,i){(!this.scrollMap||this.shouldBuildScrollMap)&&(this.set("scrollMap",this._buildScrollMap(t,i)),this.set("shouldBuildScrollMap",!1)),(0,l.throttle)(this,e,t,i,this.scrollMap,20)}_buildScrollMap(e,t){let i=m()("
").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"),s=[],n=0;e.val().split(` `).forEach(e=>{if(s.push(n),0===e.length)n++;else{let t,s;i.text(e),t=parseFloat(i.css("height")),s=parseFloat(i.css("line-height")),n+=Math.round(t/s)}}),s.push(n),i.remove();let r=t.offset().top,a=t.scrollTop()-r-(e.offset().top-r),o=[],l=[];for(let e=0;e{let i=m()(t),n=s[i.data("line-number")];0!==n&&o.push(n),l[n]=Math.round(i.offset().top+a)}),o.push(n),l[n]=t[0].scrollHeight;let u=0;for(let e=1;edt7948.n(this.prototype,"_throttledSyncEditorAndPreviewScroll",[D.bind]))();_syncEditorAndPreviewScroll(e,t){if(!e)return;if(0===e.scrollTop())return void t.scrollTop(0);let i=e[0].scrollHeight,s=t[0].scrollHeight;if(e.height()+e.scrollTop()+100>i)return void t.scrollTop(s);let n=e.scrollTop(),r=s/i;t.scrollTop(n*r+50)}_renderMentions(e){let t=(0,P.linkSeenMentions)(e,this.siteSettings);t.length>0?this._renderUnseenMentions(e,t):(this._warnMentionedGroups(e),this._warnCannotSeeMention(e))}_renderUnseenMentions(e,t){(0,P.fetchUnseenMentions)({names:t,topicId:this.get("composer.model.topic.id"),allowedNames:this.get("composer.model.targetRecipients")?.split(",")}).then(t=>{(0,P.linkSeenMentions)(e,this.siteSettings),this._warnMentionedGroups(e),this._warnCannotSeeMention(e),this._warnHereMention(t.here_count)})}static #P=(()=>dt7948.n(this.prototype,"_renderUnseenMentions",[(0,D.debounce)(450)]))();_renderHashtags(e){let t=this.site.hashtag_configurations["topic-composer"],i=(0,x.linkSeenHashtagsInContext)(t,e);i.length>0&&this._renderUnseenHashtags(e,i,t)}_renderUnseenHashtags(e,t,i){(0,x.fetchUnseenHashtagsInContext)(i,t).then(()=>(0,x.linkSeenHashtagsInContext)(i,e))}static #I=(()=>dt7948.n(this.prototype,"_renderUnseenHashtags",[(0,D.debounce)(450)]))();_refreshOneboxes(e){let t=this.get("composer.post"),i=t&&!t.get("refreshedPost"),s=(0,F.loadOneboxes)(e,S.ajax,this.get("composer.topic.id"),this.get("composer.category.id"),this.siteSettings.max_oneboxes_per_post,i);i&&s>0&&t.set("refreshedPost",!0)}static #j=(()=>dt7948.n(this.prototype,"_refreshOneboxes",[(0,D.debounce)(450)]))();_expandShortUrls(e){(0,g.resolveAllShortUrls)(S.ajax,this.siteSettings,e)}_decorateCookedElement(e,t){this.appEvents.trigger("decorate-non-stream-cooked-element",e,t)}_warnMentionedGroups(e){(0,l.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 #R=(()=>dt7948.n(this.prototype,"_warnMentionedGroups",[(0,D.debounce)(2e3)]))();_warnCannotSeeMention(e){this.composer.model?.draftKey!==U.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 #B=(()=>dt7948.n(this.prototype,"_warnCannotSeeMention",[(0,D.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),i=e.target.dataset.scale,s=this.get("composer.model.reply").match(j.IMAGE_MARKDOWN_REGEX);if(s){let e=s[t];if(e){let n=e.replace(j.IMAGE_MARKDOWN_REGEX,`![$1|$2, ${i}%$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,s[t],n,{regex:j.IMAGE_MARKDOWN_REGEX,index:t})}}e.preventDefault()}static #H=(()=>dt7948.n(this.prototype,"_handleImageScaleButtonClick",[D.bind]))();resetImageControls(e){let t=e.querySelector(".scale-btn-container"),i=e.querySelector(".delete-image-button"),s=e.querySelector(".alt-text-readonly-container"),n=e.querySelector(".alt-text-edit-container");t.removeAttribute("hidden"),i.removeAttribute("hidden"),s.removeAttribute("hidden"),e.removeAttribute("editing"),n.setAttribute("hidden","true")}commitAltText(e){let t=parseInt(e.getAttribute("data-image-index"),10),i=this.get("composer.model.reply").match(j.IMAGE_MARKDOWN_REGEX)[t],s=e.querySelector("input.alt-text-input"),n=i.replace(j.IMAGE_MARKDOWN_REGEX,`![${s.value}|$2$3$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i,n),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 #z=(()=>dt7948.n(this.prototype,"_handleAltTextInputKeypress",[D.bind]))();_handleAltTextEditButtonClick(e){if(!e.target.classList.contains("alt-text-edit-btn"))return;let t=e.target.closest(".button-wrapper"),i=t.querySelector(".scale-btn-container"),s=t.querySelector(".delete-image-button"),n=t.querySelector(".alt-text-readonly-container"),r=n.querySelector(".alt-text"),a=t.querySelector(".alt-text-edit-container"),o=a.querySelector(".alt-text-input");t.setAttribute("editing","true"),i.setAttribute("hidden","true"),s.setAttribute("hidden","true"),n.setAttribute("hidden","true"),o.value=r.textContent,a.removeAttribute("hidden"),o.focus(),e.preventDefault()}static #$=(()=>dt7948.n(this.prototype,"_handleAltTextEditButtonClick",[D.bind]))();_handleAltTextOkButtonClick(e){if(!e.target.classList.contains("alt-text-edit-ok"))return;let t=e.target.closest(".button-wrapper");this.commitAltText(t)}static #V=(()=>dt7948.n(this.prototype,"_handleAltTextOkButtonClick",[D.bind]))();_handleAltTextCancelButtonClick(e){if(!e.target.classList.contains("alt-text-edit-cancel"))return;let t=e.target.closest(".button-wrapper");this.resetImageControls(t)}static #W=(()=>dt7948.n(this.prototype,"_handleAltTextCancelButtonClick",[D.bind]))();_handleImageDeleteButtonClick(e){if(!e.target.classList.contains("delete-image-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.model.reply").match(j.IMAGE_MARKDOWN_REGEX);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,i[t],"",{regex:j.IMAGE_MARKDOWN_REGEX,index:t})}static #K=(()=>dt7948.n(this.prototype,"_handleImageDeleteButtonClick",[D.bind]))();_handleImageGridButtonClick(e){if(!e.target.classList.contains("wrap-image-grid-button"))return;let t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),i=this.get("composer.model.reply"),s=i.match(j.IMAGE_MARKDOWN_REGEX),n=t+parseInt(e.target.dataset.imageCount,10)-1,r=this.element.querySelector(".d-editor-input");r.selectionStart=i.indexOf(s[t]),r.selectionEnd=i.indexOf(s[n])+s[n].length,this.appEvents.trigger(`${this.composerEventPrefix}:apply-surround`,"[grid]","[/grid]","grid_surround",{useBlockMode:!0})}static #G=(()=>dt7948.n(this.prototype,"_handleImageGridButtonClick",[D.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),X.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,L.default)(()=>this.appEvents.trigger(`${this.composerEventPrefix}:closed`),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),X.forEach(t=>e?.removeEventListener("click",t))}static #J=(()=>dt7948.n(this.prototype,"_composerClosed",[(0,c.on)("willDestroyElement")]))();onExpandPopupMenuOptions(e){let t=e.selected;e.selectText(t.start,t.end-t.start),this.composer.storeToolbarState(e)}static #Q=(()=>dt7948.n(this.prototype,"onExpandPopupMenuOptions",[a.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:"circle-plus",title:"composer.options",sendAction:this.onExpandPopupMenuOptions.bind(this),popupMenu:{options:()=>this.composer.popupMenuOptions,action:this.composer.onPopupMenuAction}})}static #X=(()=>dt7948.n(this.prototype,"extraButtons",[a.action]))();previewUpdated(e,t){this._renderMentions(e),this._renderHashtags(e),this._refreshOneboxes(e),this._expandShortUrls(e),this._decorateCookedElement(e,t),this.composer.afterRefresh(e)}static #Z=(()=>dt7948.n(this.prototype,"previewUpdated",[a.action]))();get selectedFormTemplateId(){return this._selectedFormTemplateId?this._selectedFormTemplateId:this.composer.model.formTemplateId||this.composer.formTemplateIds?.[0]}static #ee=(()=>dt7948.n(this.prototype,"selectedFormTemplateId",[(0,a.computed)("composer.formTemplateIds")]))();set selectedFormTemplateId(e){this._selectedFormTemplateId=e}get showTranslationEditor(){return!!this.siteSettings.content_localization_enabled&&!!this.currentUser.can_localize_content&&this.composer.model?.action===U.default.ADD_TRANSLATION}async updateFormPreview(){let e=(0,M.default)(document.querySelector("#form-template-form"),this.composer.selectedFormTemplate,!1);this.preview=await this.cachedCookAsync(e,this.markdownOptions)}static #et=(()=>dt7948.n(this.prototype,"updateFormPreview",[a.action]))();async cachedCookAsync(e,t){return this._cachedCookFunction||=await (0,I.generateCookFunction)(t||{}),await this._cachedCookFunction(e)}updateSelectedFormTemplateId(e){this.selectedFormTemplateId=e}static #ei=(()=>dt7948.n(this.prototype,"updateSelectedFormTemplateId",[a.action]))();showFormTemplateForm(e,t,i){return e?.length>0&&!t&&!i}static #es=(()=>dt7948.n(this.prototype,"showFormTemplateForm",[(0,D.default)("composer.formTemplateIds","composer.model.replyingToTopic","composer.model.editingPost")]))();showUploadModal(){document.getElementById(this.fileUploadElementId).click()}static #en=(()=>dt7948.n(this.prototype,"showUploadModal",[a.action]))();static #er=(()=>(0,n.setComponentTemplate)((0,H.createTemplateFactory)({id:"prgAttXE",block:'[[[1,"\\n"],[41,[30,0,["showFormTemplateForm"]],[[[1," "],[10,0],[14,0,"d-editor"],[12],[1,"\\n "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n "],[18,1,null],[1,"\\n\\n"],[41,[28,[32,0],[[30,0,["composer","formTemplateIds","length"]],1],null],[[[1," "],[8,[32,1],[[24,0,"composer-select-form-template"]],[["@filteredIds","@value","@onChange","@options"],[[30,0,["composer","formTemplateIds"]],[30,0,["selectedFormTemplateId"]],[30,0,["updateSelectedFormTemplateId"]],[28,[32,2],null,[["maximum"],[1]]]]],null],[1,"\\n"]],[]],null],[1," "],[10,"form"],[14,1,"form-template-form"],[12],[1,"\\n "],[8,[32,3],null,[["@id","@initialValues","@onSelectFormTemplate","@onChange"],[[30,0,["selectedFormTemplateId"]],[30,0,["composer","formTemplateInitialValues"]],[30,0,["composer","onSelectFormTemplate"]],[30,0,["updateFormPreview"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["siteSettings","show_preview_for_form_templates"]],[[[1," "],[8,[32,4],null,[["@preview","@forcePreview","@onPreviewUpdated","@outletArgs"],[[30,0,["preview"]],[30,0,["forcePreview"]],[30,0,["previewUpdated"]],[30,0,["outletArgs"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showTranslationEditor"]],[[[1," "],[8,[32,5],null,[["@setupEditor"],[[30,0,["setupEditor"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,6],null,[["@value","@placeholder","@previewUpdated","@markdownOptions","@extraButtons","@processPreview","@validation","@loading","@forcePreview","@showLink","@composerEvents","@onPopupMenuAction","@popupMenuOptions","@disabled","@outletArgs","@topicId","@categoryId","@replyingToUserId","@onSetup","@disableSubmit"],[[30,0,["composer","model","reply"]],[30,0,["replyPlaceholder"]],[30,0,["previewUpdated"]],[30,0,["markdownOptions"]],[30,0,["extraButtons"]],[30,0,["composer","isPreviewVisible"]],[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,[32,7],null,[["composer","editorType"],[[30,0,["composer","model"]],"composer"]]],[30,0,["composer","model","topic","id"]],[30,0,["composer","model","category","id"]],[30,0,["composer","replyingToUserId"]],[30,0,["setupEditor"]],[30,0,["composer","disableSubmit"]]]],[["default"],[[[[1,"\\n "],[18,1,null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]],[]]],[1,"\\n"],[41,[30,0,["composer","allowUpload"]],[[[1," "],[8,[32,8],[[24,3,"file-uploader"]],[["@fileInputId","@allowMultiple"],[[30,0,["fileUploadElementId"]],true]],null],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-editor.js",scope:()=>[f.gt,Y.default,r.hash,b.default,y.default,k.default,_.default,T.default,w.default],isStrictMode:!0}),this))()},[(0,d.classNameBindings)("composer.showToolbar:toolbar-visible",":wmd-controls")])},11675:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317);i(7155);var n=i(64081),r=i(81498),a=i(78646),o=i(32045),l=i(1519);let u=(0,i(96900).A)(i(7155)).cached;class d extends s.default{static shouldRender(e){return!!e.post.canBookmark}get bookmarkManager(){return new a.default((0,n.getOwner)(this),this.args.post)}static #e=(()=>dt7948.n(this.prototype,"bookmarkManager",[u]))();static #i=(()=>(0,o.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))()}},11719:(e,t,i)=>{"use strict";i.r(t),i.d(t,{P:()=>w,Q:()=>k,S:()=>b,T:()=>T,U:()=>D,a:()=>u,b:()=>m,c:()=>y,d:()=>h,e:()=>r,f:()=>g,g:()=>f,h:()=>c,i:()=>C,l:()=>S,m:()=>d,p:()=>A,t:()=>a});var s=i(90760);function n(){let e=Error("TransitionAborted");return e.name="TransitionAborted",e.code="TRANSITION_ABORTED",e}function r(e){return"object"==typeof e&&null!==e&&"TRANSITION_ABORTED"===e.code}function a(e){if(function(e){return"object"==typeof e&&null!==e&&"boolean"==typeof e.isAborted}(e)&&e.isAborted)throw n()}let o=Array.prototype.slice,l=Object.prototype.hasOwnProperty;function u(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}function d(e,t){for(let i in t)l.call(t,i)&&(e[i]=t[i])}function c(e){let t=e&&e.length,i;if(t&&t>0){let s=e[t-1];if(function(e){return!!e&&"object"==typeof e&&"queryParams"in e&&Object.keys(e.queryParams).every(e=>"string"==typeof e)}(s))return i=s.queryParams,[o.call(e,0,t-1),i]}return[e,null]}function p(e){for(let t in e){let i=e[t];if("number"==typeof i)e[t]=""+i;else if(Array.isArray(i))for(let e=0,t=i.length;e1?t-1:0),s=1;s3&&void 0!==arguments[3]?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(this.from=null,this.to=void 0,this.isAborted=!1,this.isActive=!0,this.urlMethod="update",this.resolveIndex=0,this.queryParamsOnly=!1,this.isTransition=!0,this.isCausedByAbortingTransition=!1,this.isCausedByInitialTransition=!1,this.isCausedByAbortingReplaceTransition=!1,this._visibleQueryParams={},this.isIntermediate=!1,this[b]=i||e.state,this.intent=t,this.router=e,this.data=t&&t.data||{},this.resolvedModels={},this[k]={},this.promise=void 0,this.error=void 0,this[w]={},this.routeInfos=[],this.targetName=void 0,this.pivotHandler=void 0,this.sequence=-1,n){this.promise=s.P.reject(n),this.error=n;return}if(this.isCausedByAbortingTransition=!!r,this.isCausedByInitialTransition=!!r&&(r.isCausedByInitialTransition||0===r.sequence),this.isCausedByAbortingReplaceTransition=!!r&&"replace"===r.urlMethod&&(!r.isCausedByAbortingTransition||r.isCausedByAbortingReplaceTransition),i){this[w]=i.params,this[k]=i.queryParams,this.routeInfos=i.routeInfos;let t=i.routeInfos.length;t&&(this.targetName=i.routeInfos[t-1].name);for(let e=0;e{throw this.router.transitionDidError(e,this)},y("Handle Abort"))}else this.promise=s.P.resolve(this[b]),this[w]={}}then(e,t,i){return this.promise.then(e,t,i)}catch(e,t){return this.promise.catch(e,t)}finally(e,t){return this.promise.finally(e,t)}abort(){this.rollback();let e=new T(this.router,void 0,void 0,void 0);return e.to=this.from,e.from=this.from,e.isAborted=!0,this.router.routeWillChange(e),this.router.routeDidChange(e),this}rollback(){this.isAborted||(h(this.router,this.sequence,this.targetName+": transition was aborted"),void 0!==this.intent&&null!==this.intent&&(this.intent.preTransitionState=this.router.state),this.isAborted=!0,this.isActive=!1,this.router.activeTransition=void 0)}redirect(e){this.rollback(),this.router.routeWillChange(e)}retry(){this.abort();let e=this.router.transitionByIntent(this.intent,!1);return null!==this.urlMethod&&e.method(this.urlMethod),e}method(e){return this.urlMethod=e,this}send(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0;this.trigger(e,t,i,s,n)}trigger(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;"string"==typeof e&&(t=e,e=!1);for(var i=arguments.length,s=Array(i>2?i-2:0),n=2;n{"use strict";let s,n,r,a,o,l,u;function d(e){return(void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||""),e)?"/"!==e&&!/^\/[^\/]/.test(e)||a.test(e)?e:("/"!==e[0]&&(e="/"+e),r+e):"/"===r?"":r}function c(e){return e=d(e),s&&/^\/[^\/]/.test(e)?e=s+e:l&&e.startsWith(o)&&(e=e.replace(o,l)),e}function p(e){return n+m(e)}function h(e){return e.startsWith(n)}function m(e){return r?e.replace(a,"$1"):e}function g(e){r=e,a=RegExp(`^${r}(/|$)`)}function f(e,t,i,o){o=o||{},s=e,n=t,g(i),o?.snapshot&&(u={cdn:s,baseUri:r,baseUrl:n,configBaseUrl:t,baseUriMatcher:a})}function _(){u&&(s=u.cdn,r=u.baseUri,n=u.baseUrl,a=u.baseUriMatcher,o=u.S3BaseUrl,l=u.S3CDN)}function y(e,t,i){o=e,l=t,i?.snapshot&&((u=u||{}).S3BaseUrl=o,u.S3CDN=l)}function b(e){void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||"");let t=window.location.origin,i="/"===e[0]?r||"/":t+r||t;return e.startsWith(i)}i.r(t),i.d(t,{default:()=>d,getAbsoluteURL:()=>p,getURLWithCDN:()=>c,isAbsoluteURL:()=>h,restoreBaseUri:()=>_,samePrefix:()=>b,setPrefix:()=>g,setupS3CDN:()=>y,setupURL:()=>f,withoutPrefix:()=>m})},11919:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(70508),n=i(32851),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[n.default,s.i18n],isStrictMode:!0}),(0,o.default)(void 0,"all-tags-section-link:SidebarCommonAllTagsSectionLink"))},11925:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(17244),n=i(41626),r=i(17631);let a={before:"hashtag-css-generator",initialize(e){(0,r.withPluginApi)("0.8.7",t=>{t.registerHashtagType("category",new s.default(e)),t.registerHashtagType("tag",new n.default(e))})}}},11945:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(9032),n=i(67698),r=i(35697);function a(e,t){let i=(0,r.escapeExpression)(`:${e}:`);return(0,s.htmlSafe)((0,n.emojiUnescape)(i,t))}},12192:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QUERY_PARAMS:()=>r,default:()=>a});var s=i(30258),n=i(27797);let r={ascending:{replace:!0,refreshModel:!0,default:!1},order:{replace:!0,refreshModel:!0}};class a extends n.default{templateName="user-topics-list";controllerName="user-topics-list";queryParams=(()=>r)();setupController(e,t){(0,s.setTopicList)(t);let i=this.userActionType;this.controllerFor("user").set("userActionType",i),this.controllerFor("user-activity").set("userActionType",i),e.setProperties({model:t,hideCategory:!1})}}},12256:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(64081),n=i(75093),r=i(14051);class a{static #e=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();constructor(e){(0,s.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 #n=(()=>dt7948.n(this.prototype,"onMessage",[r.bind]))()}let o={after:"message-bus",initialize(e){this.instance=new a(e)},teardown(){this.instance.teardown(),this.instance=null}}},12258:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(93317),n=i(30698),r=i(32045),a=i(1519);class o extends s.default{get description(){if(this.args.actionCode)return(0,n.actionDescriptionHtml)(this.args.actionCode,this.args.createdAt,this.args.username,this.args.path)}static #e=(()=>(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"bvb8aYM6",block:'[[[1,"\\n"],[41,[30,0,["description"]],[[[1," "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["description"]]],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-action-description.js",isStrictMode:!0}),this))()}},12396:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(85049);class r extends s.default{containers=(()=>new n.DeferredTrackedSet)();items=(()=>new n.DeferredTrackedSet)()}},12415:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(86981),r=i(75093),a=i(85024),o=i(13355),l=i(16356),u=i(96527),d=i(14051),c=i(70508),p=i(22911),h=i(1519);let m=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[r.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #a=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>void dt7948.i(this,"modal"))();canJoinGroup(e,t){return e&&!t}static #l=(()=>dt7948.n(this.prototype,"canJoinGroup",[(0,d.default)("model.public_admission","userIsGroupUser")]))();canLeaveGroup(e,t){return e&&t}static #d=(()=>dt7948.n(this.prototype,"canLeaveGroup",[(0,d.default)("model.public_exit","userIsGroupUser")]))();canRequestMembership(e,t){return e&&!t}static #p=(()=>dt7948.n(this.prototype,"canRequestMembership",[(0,d.default)("model.allow_membership_requests","userIsGroupUser")]))();userIsGroupUser(e){return!!e}static #m=(()=>dt7948.n(this.prototype,"userIsGroupUser",[(0,d.default)("model.is_group_user")]))();_showLoginModal(){this.showLogin(),(0,u.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(l.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(l.popupAjaxError).finally(()=>{this.set("updatingMembership",!1)})}else this._showLoginModal()}static #f=(()=>dt7948.n(this.prototype,"joinGroup",[n.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 #y=(()=>dt7948.n(this.prototype,"leaveGroup",[n.action]))();showRequestMembershipForm(){this.currentUser?this.modal.show(p.default,{model:{group:this.model}}):this._showLoginModal()}static #v=(()=>dt7948.n(this.prototype,"showRequestMembershipForm",[n.action]))();static #k=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"hv3Vhabi",block:'[[[1,"\\n"],[41,[30,0,["canJoinGroup"]],[[[1," "],[8,[32,0],[[24,0,"btn-default group-index-join"]],[["@action","@icon","@label","@disabled"],[[30,0,["joinGroup"]],"user-plus","groups.join",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canLeaveGroup"]],[[[1," "],[8,[32,0],[[24,0,"btn-danger group-index-leave"]],[["@action","@icon","@label","@disabled"],[[30,0,["leaveGroup"]],"user-xmark","groups.leave",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canRequestMembership"]],[[[1," "],[8,[32,0],[[24,0,"btn-default group-index-request"]],[["@action","@disabled","@icon","@label"],[[30,0,["showRequestMembershipForm"]],[30,0,["loading"]],"user-plus","groups.request"]],null],[1,"\\n"]],[]],[[[1," "],[18,1,null],[1,"\\n "]],[]]]],[]]]],[]]],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-membership-button.js",scope:()=>[o.default],isStrictMode:!0}),this))()},[(0,a.classNames)("group-membership-button")])},12420:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9032),n=i(19396);function r(e,t){return(0,s.htmlSafe)((0,n.default)(e,t))}},12458:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(86981),r=i(85024),a=i(13355),o=i(14086),l=i(14051),u=i(1519);let d=dt7948.c(class extends s.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",[l.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 #i=(()=>dt7948.n(this.prototype,"copy",[n.action]))();static #n=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"72WMGT2s",block:'[[[1,"\\n "],[8,[32,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],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/copy-button.js",scope:()=>[a.default],isStrictMode:!0}),this))()},[(0,r.tagName)("")])},12465:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>x});var s=i(7155),n=i(80115),r=i(32045),a=i(73326),o=i(96791),l=i(86981),u=i(75093),d=i(15383),c=i(57079),p=i(13355),h=i(39826),m=i(80410),g=i(38069),f=i(33186),_=i(87367),y=i(16356),b=i(35952),w=i(14051),k=i(67698),T=i(70508),S=i(23897),C=i(1519);let A=(0,i(96900).A)(i(7155)).cached;class D{static #e=(()=>dt7948.g(this.prototype,"title",[s.tracked]))();#s6=(()=>void dt7948.i(this,"title"))();static #i=(()=>dt7948.g(this.prototype,"links",[s.tracked]))();#id=(()=>void dt7948.i(this,"links"))();static #n=(()=>dt7948.g(this.prototype,"secondaryLinks",[s.tracked]))();#ne=(()=>void dt7948.i(this,"secondaryLinks"))();constructor(e){let{title:t,links:i,secondaryLinks:s,id:n,publicSection:r,sectionType:a,hideTitleInput:o}=e;this.title=t,this.public=r,this.sectionType=a,this.links=i,this.secondaryLinks=s,this.id=n,this.hideTitleInput=o}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.#nt&&!this.#ni}get invalidTitleMessage(){if(void 0!==this.title){if(this.#nt)return(0,T.i18n)("sidebar.sections.custom.title.validation.blank");if(this.#ni)return(0,T.i18n)("sidebar.sections.custom.title.validation.maximum",{count:b.SIDEBAR_SECTION.max_title_length})}}get titleCssClass(){return void 0===this.title||this.validTitle?"":"warning"}get #nt(){return(0,d.isEmpty)(this.title)}get #ni(){return this.title.length>b.SIDEBAR_SECTION.max_title_length}}class M{static #e=(()=>dt7948.g(this.prototype,"icon",[s.tracked]))();#ns=(()=>void dt7948.i(this,"icon"))();static #i=(()=>dt7948.g(this.prototype,"name",[s.tracked]))();#t3=(()=>void dt7948.i(this,"name"))();static #n=(()=>dt7948.g(this.prototype,"value",[s.tracked]))();#s9=(()=>void dt7948.i(this,"value"))();static #a=(()=>dt7948.g(this.prototype,"_destroy",[s.tracked]))();#nn=(()=>void dt7948.i(this,"_destroy"))();constructor(e){let{router:t,icon:i,name:s,value:n,id:r,objectId:a,segment:o}=e;this.router=t,this.icon=i||"link",this.name=s,this.value=n,this.id=r,this.httpHost="http://"+window.location.host,this.httpsHost="https://"+window.location.host,this.objectId=a,this.segment=o}get path(){return this.value?.replace(this.httpHost,"").replace(this.httpsHost,"")}get valid(){return this.validIcon&&this.validName&&this.validValue}get validIcon(){return!this.#nr&&!this.#na}get validName(){return!this.#no&&!this.#nl}get validValue(){return!this.#nu&&!this.#nd&&!this.#nc}get invalidIconMessage(){return this.#nr?(0,T.i18n)("sidebar.sections.custom.links.icon.validation.blank"):this.#na?(0,T.i18n)("sidebar.sections.custom.links.icon.validation.maximum",{count:b.SIDEBAR_URL.max_icon_length}):void 0}get invalidNameMessage(){if(void 0!==this.name){if(this.#no)return(0,T.i18n)("sidebar.sections.custom.links.name.validation.blank");if(this.#nl)return(0,T.i18n)("sidebar.sections.custom.links.name.validation.maximum",{count:b.SIDEBAR_URL.max_name_length})}}get invalidValueMessage(){if(void 0!==this.value){if(this.#nu)return(0,T.i18n)("sidebar.sections.custom.links.value.validation.blank");if(this.#nd)return(0,T.i18n)("sidebar.sections.custom.links.value.validation.maximum",{count:b.SIDEBAR_URL.max_value_length});if(this.#nc)return(0,T.i18n)("sidebar.sections.custom.links.value.validation.invalid")}}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 #nr(){return(0,d.isEmpty)(this.icon)}get #na(){return this.icon.length>b.SIDEBAR_URL.max_icon_length}get #no(){return(0,d.isEmpty)(this.name)}get #nl(){return this.name.length>b.SIDEBAR_URL.max_name_length}get #nu(){return(0,d.isEmpty)(this.value)}get #nd(){return this.value.length>b.SIDEBAR_URL.max_value_length}get #nc(){return this.path&&!this.#np()}#np(){try{return new URL(this.value,document.location.origin)}catch{return!1}}}class x extends r.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[u.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"router",[u.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"flash",[s.tracked]))();#sJ=(()=>void dt7948.i(this,"flash"))();static #a=(()=>dt7948.g(this.prototype,"flashType",[s.tracked]))();#sQ=(()=>void dt7948.i(this,"flashType"))();nextObjectId=0;get transformedModel(){let e=this.model?.section;return new D(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,n.A)()),secondaryLinks:e.links.reduce((e,t)=>("secondary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e),(0,n.A)()),id:e.id,hideTitleInput:this.model.hideSectionHeader}:{links:(0,n.A)([new M({router:this.router,objectId:this.nextObjectId,segment:"primary"})])})}static #l=(()=>dt7948.n(this.prototype,"transformedModel",[A]))();initLink(e){return new M({router:this.router,icon:e.icon,name:e.name,value:e.value,id:e.id,objectId:this.nextObjectId,segment:e.segment})}create(){return(0,_.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,k.sanitize)((0,y.extractError)(e)),this.flashType="error"})}update(){this.wasPublic||this.isPublic?this.#nh():this.#nm()}#nh(){return this.dialog.yesNoConfirm({message:this.isPublic?(0,T.i18n)("sidebar.sections.custom.update_public_confirm"):(0,T.i18n)("sidebar.sections.custom.mark_as_private_confirm"),didConfirm:()=>this.#nm()})}#nm(){return(0,_.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,k.sanitize)((0,y.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 #d=(()=>dt7948.n(this.prototype,"focusNewRowInput",[w.afterRender]))();setDraggedLink(e){this.draggedLink=e}static #p=(()=>dt7948.n(this.prototype,"setDraggedLink",[w.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 i=this.transformedModel.links.indexOf(e);this.draggedLink.segment="primary",this.transformedModel.links.insertAt(t?i:i+1,this.draggedLink)}else{this.draggedLink.segment="secondary";let i=this.transformedModel.secondaryLinks.indexOf(e);this.transformedModel.secondaryLinks.insertAt(t?i:i+1,this.draggedLink)}}static #m=(()=>dt7948.n(this.prototype,"reorder",[w.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 #f=(()=>dt7948.n(this.prototype,"deleteLink",[w.bind]))();addLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.links.pushObject(new M({router:this.router,objectId:this.nextObjectId,segment:"primary"})),this.focusNewRowInput(this.nextObjectId)}static #y=(()=>dt7948.n(this.prototype,"addLink",[l.action]))();addSecondaryLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.secondaryLinks.pushObject(new M({router:this.router,objectId:this.nextObjectId,segment:"secondary"})),this.focusNewRowInput(this.nextObjectId)}static #v=(()=>dt7948.n(this.prototype,"addSecondaryLink",[l.action]))();resetToDefault(){return this.dialog.yesNoConfirm({message:(0,T.i18n)("sidebar.sections.custom.reset_confirm"),didConfirm:()=>(0,_.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,k.sanitize)((0,y.extractError)(e)),this.flashType="error"}),didCancel:()=>{this.closeModal()}})}static #k=(()=>dt7948.n(this.prototype,"resetToDefault",[l.action]))();save(){this.transformedModel.id?this.update():this.create()}static #S=(()=>dt7948.n(this.prototype,"save",[l.action]))();delete(){return this.dialog.deleteConfirm({title:this.model.section.public?(0,T.i18n)("sidebar.sections.custom.delete_public_confirm"):(0,T.i18n)("sidebar.sections.custom.delete_confirm"),didConfirm:()=>(0,_.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,k.sanitize)((0,y.extractError)(e)),this.flashType="error"})})}static #A=(()=>dt7948.n(this.prototype,"delete",[l.action]))();static #M=(()=>(0,r.setComponentTemplate)((0,C.createTemplateFactory)({id:"skFDswWr",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"sidebar-section-form-modal"]],[["@closeModal","@flash","@flashType","@title"],[[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[32,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,[32,1],["sidebar.sections.custom.title.label"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],[[24,3,"section-name"],[16,0,[30,0,["transformedModel","titleCssClass"]]],[24,1,"section-name"],[4,[32,3],["input",[28,[32,4],[[28,[32,5],[[28,[31,1],[[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,[32,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,[32,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,[32,1],["sidebar.sections.custom.links.value.label"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["activeLinks"]]],null]],null],null,[[[1," "],[8,[32,6],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,[32,7],[[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,[32,1],["sidebar.sections.custom.more_menu"],null]],[13],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["activeSecondaryLinks"]]],null]],null],null,[[[1," "],[8,[32,6],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,3],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[3]],null],[1," "],[8,[32,7],[[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,[32,7],[[24,1,"save-section"],[24,0,"btn-primary"]],[["@action","@label","@ariaLabel","@disabled"],[[30,0,["save"]],"sidebar.sections.custom.save","sidebar.sections.custom.save",[28,[32,8],[[30,0,["transformedModel","valid"]]],null]]],null],[1,"\\n"],[41,[28,[32,9],[[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,[32,10],[[24,0,"always-public-tooltip"]],[["@content"],[[28,[32,1],["sidebar.sections.custom.always_public"],null]]],[["trigger"],[[[[1,"\\n "],[1,[28,[32,11],["square-check"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,2],[[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,[32,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canDelete"]],[[[1," "],[8,[32,7],[[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,[32,7],[[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," "]],[]]]]],[1,"\\n "]],["@closeModal","link","link"],false,["unless","mut","if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/sidebar-section-form.js",scope:()=>[h.default,T.i18n,r.Input,o.on,f.default,a.fn,m.default,p.default,c.not,c.and,S.default,g.default],isStrictMode:!0}),this))()}},12538:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(86981);i(60569);class n extends s.default{updateCallback;initState(){this._super(...arguments);let{rootURL:e}=this}getURL(){let{path:e,rootURL:t}=this;return t=t.replace(/\/$/,""),e.replace(RegExp(`^${t}(?=/|$)`),"")}setURL(e){this.path=e}onUpdateURL(e){this.updateCallback=e}handleURL(e){this.path=e,this.updateCallback&&this.updateCallback(e)}formatURL(e){let{rootURL:t}=this;return""!==e&&(t=t.replace(/\/$/,"")),t+e}}n.reopen({path:"",rootURL:"/"})},12568:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(56162),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"replies-cell:RepliesCell"))},12616:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(24813),n=i(41107),r=i.n(n);function a(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 o={after:"inject-objects",initialize(e){e.lookup("service:router").on("routeDidChange",t=>{t.isAborted||(0,s.scheduleOnce)("afterRender",e,a,t)})}}},12719:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(96848),u=i(75093),d=i(60551),c=i(57079),p=i(76947),h=i(37759),m=i(16356),g=i(14086),f=i(97908),_=i(70508),y=i(71500),b=i(32045),w=i(1519);class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"store",[u.service]))();#w=(()=>void dt7948.i(this,"store"))();static #a=(()=>dt7948.g(this.prototype,"disableFiltering",[n.tracked],function(){return!1}))();#ng=(()=>void dt7948.i(this,"disableFiltering"))();static #l=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();static #d=(()=>dt7948.g(this.prototype,"selectedTags",[n.tracked],function(){return new d.TrackedSet([...this.currentUser.sidebarTagNames])}))();#nf=(()=>void dt7948.i(this,"selectedTags"))();static #p=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#n_=(()=>void dt7948.i(this,"tags"))();static #m=(()=>dt7948.g(this.prototype,"tagsLoading",[n.tracked],function(){return!1}))();#ny=(()=>void dt7948.i(this,"tagsLoading"))();observer;onlySelected=!1;onlyUnselected=!1;constructor(){super(...arguments),this.#nb()}async #nb(){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),i=parseFloat(t.marginTop),s=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 ${i+s}px 0px`,threshold:1})}this.observer.observe(e)}}static #f=(()=>dt7948.n(this.prototype,"didInsertTag",[o.action]))();resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1,this.#nb()}static #y=(()=>dt7948.n(this.prototype,"resetFilter",[o.action]))();filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1,this.#nb()}static #v=(()=>dt7948.n(this.prototype,"filterSelected",[o.action]))();filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0,this.#nb()}static #k=(()=>dt7948.n(this.prototype,"filterUnselected",[o.action]))();onFilterInput(e){this.disableFiltering=!0,(0,g.default)(this,this.#nv,e,f.INPUT_DELAY)}static #S=(()=>dt7948.n(this.prototype,"onFilterInput",[o.action]))();#nv(e){this.filter=e.toLowerCase(),this.#nb()}deselectAll(){this.selectedTags.clear()}static #A=(()=>dt7948.n(this.prototype,"deselectAll",[o.action]))();resetToDefaults(){this.selectedTags=new d.TrackedSet(this.siteSettings.default_navigation_menu_tags.split("|"))}static #M=(()=>dt7948.n(this.prototype,"resetToDefaults",[o.action]))();toggleTag(e){this.selectedTags.has(e)?this.selectedTags.delete(e):this.selectedTags.add(e)}static #E=(()=>dt7948.n(this.prototype,"toggleTag",[o.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 #P=(()=>dt7948.n(this.prototype,"save",[o.action]))();static #I=(()=>(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,c.gt,_.i18n,c.or,h.default,l.default,c.has,r.concat,a.on,r.fn,p.default],isStrictMode:!0}),this))()}},12736:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(73326),r=i(96791),a=i(86981),o=i(43343),l=i(85024),u=i(78771),d=i.n(u),c=i(70508),p=i(75803),h=i(1519);let m=dt7948.c(class extends s.default{item=null;selectKit=null;extraClass=null;id=null;init(){super.init(...arguments),this.set("id",(0,o.guidFor)(this))}get itemValue(){return this.getValue(this.item)}static #e=(()=>dt7948.n(this.prototype,"itemValue",[(0,a.computed)("item")]))();get itemName(){return this.getName(this.item)}static #i=(()=>dt7948.n(this.prototype,"itemName",[(0,a.computed)("item")]))();get mandatoryValuesArray(){return this.get("mandatoryValues")?.split("|")||[]}static #n=(()=>dt7948.n(this.prototype,"mandatoryValuesArray",[(0,a.computed)("item")]))();get readOnly(){return"string"==typeof this.item?this.mandatoryValuesArray.includes(this.item):this.mandatoryValuesArray.includes(this.item.id)}static #a=(()=>dt7948.n(this.prototype,"readOnly",[(0,a.computed)("item")]))();static #l=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"cqZbdpGV",block:'[[[1,"\\n"],[41,[30,0,["readOnly"]],[[[1," "],[10,"button"],[14,0,"btn btn-default disabled"],[15,"title",[28,[32,0],["admin.site_settings.mandatory_group"],null]],[12],[1,[30,0,["itemName"]]],[13],[1,"\\n"]],[]],[[[1," "],[11,"button"],[16,"aria-label",[28,[32,0],["select_kit.delete_item"],[["name"],[[30,0,["itemName"]]]]]],[16,"data-value",[30,0,["itemValue"]]],[16,"data-name",[30,0,["itemName"]]],[16,1,[29,[[30,0,["id"]],"-choice"]]],[16,0,[29,["btn btn-default selected-choice ",[30,0,["extraClass"]]]]],[24,4,"button"],[4,[32,1],["click",[28,[32,2],[[30,0,["selectKit","deselect"]],[30,0,["item"]]],null]],null],[12],[1,"\\n "],[1,[28,[32,3],["xmark"],null]],[1,"\\n"],[41,[48,[30,1]],[[[1," "],[18,1,null],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n "],[1,[30,0,["itemName"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1," "]],["&default"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/selected-choice.js",scope:()=>[c.i18n,r.on,n.fn,d()],isStrictMode:!0}),this))()},[p.default,(0,l.tagName)("")])},12742:(e,t,i)=>{"use strict";i.d(t,{A:()=>function e(t,i){void 0===i&&(i=[]);var l,u=function e(t){return["html","body","#document"].indexOf((0,r.A)(t))>=0?t.ownerDocument.body:(0,a.sb)(t)&&(0,n.A)(t)?t:e((0,s.A)(t))}(t),d=u===(null==(l=t.ownerDocument)?void 0:l.body),c=(0,o.A)(u),p=d?[c].concat(c.visualViewport||[],(0,n.A)(u)?u:[]):u,h=i.concat(p);return d?h:h.concat(e((0,s.A)(p)))}});var s=i(26884),n=i(14307),r=i(48459),a=i(69408),o=i(8004)},12844:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r,getFormTemplateObject:()=>n});var s=i(70508);function n(e){let t=new FormData(e),i={};return t.forEach((e,t)=>{i[t]=e}),i}function r(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=t.reduce((e,t)=>(e[t.id]=t.attributes.label,e),{}),r=new FormData(e);if(i&&(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 i=e.id+"-error";e.addEventListener("invalid",()=>{e.setAttribute("aria-invalid",!0),t.classList.add("bad"),t.setAttribute("id",i),e.setAttribute("aria-describedby",i),e.nextElementSibling||e.insertAdjacentElement("afterend",t),function(e,t){e.validity.valueMissing?a(t,e,"form_templates.errors.value_missing",["select-one","select-multiple","checkbox"],{"select-one":"select_one","select-multiple":"select_multiple"}):e.validity.typeMismatch?a(t,e,"form_templates.errors.type_mismatch",["color","date","email","number","password","tel","text","url"]):e.validity.tooShort?t.textContent=(0,s.i18n)("form_templates.errors.too_short",{count:e.minLength}):e.validity.tooLong?t.textContent=(0,s.i18n)("form_templates.errors.too_long",{count:e.maxLength}):e.validity.rangeOverflow?t.textContent=(0,s.i18n)("form_templates.errors.range_overflow",{count:e.max}):e.validity.rangeUnderflow?t.textContent=(0,s.i18n)("form_templates.errors.range_underflow",{count:e.min}):e.validity.patternMismatch?t.textContent=(0,s.i18n)("form_templates.errors.pattern_mismatch"):e.validity.badInput&&(t.textContent=(0,s.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 o=[];for(let[e,t]of r.entries())o.push({[e]:t});let l=[],u=new Set;for(let e of o){let t=Object.keys(e)[0];u.has(t)?l[l.length-1][t]+=` `+e[t]:(l.push(e),u.add(t))}return l.map(e=>{let t=Object.keys(e)[0],i=e[t];if(i)return`### ${n[t]} ${i}`}).join(` `)}function a(e,t,i,n,r){n.includes(t.type)?n.forEach(n=>{t.type===n&&(e.textContent=(0,s.i18n)(`${i}.${r&&r[n]?r[n]:n}`))}):e.textContent=(0,s.i18n)(`${i}.default`)}},12850:(e,t,i)=>{"use strict";function s(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}i.d(t,{A:()=>s})},12881:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(50890);class n extends s.default{}},12983:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(16006);class n extends s.default{pathFor(e,t,i){return"/tag/"+i+"/info"}}},13196:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return e>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}})})},13233:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return(12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t)?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})},13251:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(7155),n=i(32045),r=i(73326),a=i(86981),o=i(91558),l=i(24813),u=i(75093),d=i(85024),c=i(93900),p=i(14529),h=i(87367),m=i(14051),g=i(97908),f=i(78312),_=i(70508),y=i(1519);let b={},w=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"modal",[u.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"showShareModal",[s.tracked]))();#nw=(()=>void dt7948.i(this,"showShareModal"))();checkedMessages=!1;messages=null;messagesByTemplate=null;queuedForTyping=null;similarTopics=null;usersNotSeen=null;recipientNames=[];static #n=(()=>dt7948.g(this.prototype,"hidden",[(0,o.not)("composer.viewOpenOrFullscreen")]))();#iY=(()=>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||(0,l.schedule)("actions",()=>{this.reset(),this.popup(a.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,_.i18n)("composer.yourself_confirm.title"),body:(0,_.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,h.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 i=[];t.usernames.forEach((e,t)=>{i[t]=`@${e}`}),e=1===t.user_count?"composer.user_not_seen_in_a_while.single":"composer.user_not_seen_in_a_while.multiple";let s=this.composer.store.createRecord("composer-message",{id:"user-not-seen",templateName:"education",body:(0,_.i18n)(e,{usernames:i.join(", "),time_ago:t.time_ago})});this.popup(s)}}}}}static #a=(()=>dt7948.n(this.prototype,"_typedReply",[(0,m.debounce)(g.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},i=this.composer.topic?.id,s=this.composer.post?.id;i&&(t.topic_id=i),s&&(t.post_id=s);let n=`${t.composer_action}${t.topic_id}${t.post_id}`;if(b.cacheKey===n)e=b.messages;else{if(e=await this.composer.store.find("composer-message",t),this.isDestroying||this.isDestroyed)return;b={messages:e,cacheKey:n}}e.extras?.duplicate_lookup&&this.addLinkLookup(new f.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 #l=(()=>dt7948.n(this.prototype,"closeMessage",[a.action]))();hideMessage(e){this._removeMessage(e),this.messagesByTemplate[e.templateName]=void 0}static #d=(()=>dt7948.n(this.prototype,"hideMessage",[a.action]))();popup(e){!this.messages.length&&(this.messagesByTemplate[e.templateName]||(this.messages.pushObject(e),this.set("messageCount",this.messages.length),this.messagesByTemplate[e.templateName]=e))}static #p=(()=>dt7948.n(this.prototype,"popup",[a.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 #m=(()=>dt7948.n(this.prototype,"switchPM",[a.action]))();static #f=(()=>(0,n.setComponentTemplate)((0,y.createTemplateFactory)({id:"uzu57pLk",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["messages"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@message","@closeMessage","@shareModal","@switchPM"],[[30,1],[30,0,["closeMessage"]],[28,[32,1],[[28,[31,2],[[30,0,["showShareModal"]]],null],true],null],[30,0,["switchPM"]]]],null],[1,"\\n"],[41,[30,0,["showShareModal"]],[[[1," "],[8,[32,2],null,[["@closeModal","@model"],[[28,[32,1],[[28,[31,2],[[30,0,["showShareModal"]]],null],false],null],[30,0,["shareModalData"]]]],null],[1,"\\n"]],[]],null]],[1]],null],[1," "]],["message"],false,["each","-track-array","mut","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-messages.js",scope:()=>[c.default,r.fn,p.default],isStrictMode:!0}),this))()},[(0,d.classNameBindings)(":composer-popup-container","hidden")])},13292:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(14529),n=i(11597);let r={initialize(e){(0,n.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(s.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,n.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,n.registerTopicFooterButton)({dependentKeys:["topic.bookmarked","topic.bookmarksWereChanged"],id:"bookmark",priority:900,action:"toggleBookmark",icon:()=>null,translatedTitle:()=>null}),(0,n.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,n.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}})}}},13313:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(7155),n=i(44460),r=i(70508);let a="user-drafts:changed";class o extends n.default{static #e=(()=>dt7948.g(this.prototype,"draftCount",[s.tracked],function(){return this.currentUser?.draft_count}))();#nk=(()=>void dt7948.i(this,"draftCount"))();constructor(){super(...arguments),this.shouldDisplay&&this.appEvents.on(a,this,this._updateDraftCount)}teardown(){this.shouldDisplay&&this.appEvents.off(a,this,this._updateDraftCount)}_updateDraftCount(){this.draftCount=this.currentUser.draft_count}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get name(){return"my-posts"}get route(){return this._hasDraft?"userActivity.drafts":"userActivity.index"}get currentWhen(){if(this._hasDraft)return"userActivity.index userActivity.drafts"}get model(){return this.currentUser}get title(){return this._hasDraft?(0,r.i18n)("sidebar.sections.community.links.my_posts.title_drafts"):(0,r.i18n)("sidebar.sections.community.links.my_posts.title")}get text(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?(0,r.i18n)("sidebar.sections.community.links.my_posts.content_drafts"):(0,r.i18n)(`sidebar.sections.community.links.${this.overridenName.toLowerCase().replace(" ","_")}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.showCount&&this._hasDraft)if(this.currentUser.new_new_view_enabled)return this.draftCount.toString();else return(0,r.i18n)("sidebar.sections.community.links.my_posts.draft_count",{count:this.draftCount})}get _hasDraft(){return this.draftCount>0}get defaultPrefixValue(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?"pencil":"user"}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(this._hasDraft&&!this.showCount)return"circle"}get shouldDisplay(){return this.currentUser}}},13355:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(93317),n=i(96791),r=i(86981),a=i(91558),o=i(24813),l=i(75093),u=i(9032),d=i(57079),c=i(63538),p=i(38069),h=i(69287),m=i(70508),g=i(32045),f=i(1519);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[l.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"btnIcon",[(0,a.notEmpty)("args.icon")]))();#nT=(()=>void dt7948.i(this,"btnIcon"))();static #a=(()=>dt7948.g(this.prototype,"btnLink",[(0,a.equal)("args.display","link")]))();#nS=(()=>void dt7948.i(this,"btnLink"))();static #l=(()=>dt7948.g(this.prototype,"noText",[(0,a.empty)("computedLabel")]))();#nC=(()=>void dt7948.i(this,"noText"))();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,m.i18n)(this.args.title):this.args.translatedTitle}get computedLabel(){return this.args.label?(0,u.htmlSafe)((0,m.i18n)(this.args.label)):this.args.translatedLabel}get computedAriaLabel(){return this.args.ariaLabel?(0,m.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 #d=(()=>dt7948.n(this.prototype,"keyDown",[r.action]))();click(e){return this._triggerAction(e)}static #p=(()=>dt7948.n(this.prototype,"click",[r.action]))();mouseDown(e){this.args.preventFocus&&e.preventDefault()}static #m=(()=>dt7948.n(this.prototype,"mouseDown",[r.action]))();_triggerAction(e){let{action:t,route:i,routeModels:s}=this.args,n=this.capabilities?.isIOS;if(t||i){if(t){let{actionParam:i,forwardEvent:s}=this.args;"object"==typeof t&&t.value?n?s?t.value(i,e):t.value(i):(0,o.next)(()=>s?t.value(i,e):t.value(i)):"function"==typeof t&&(n?s?t(i,e):t(i):(0,o.next)(()=>s?t(i,e):t(i)))}else if(i)if(s){let e=Array.isArray(s)?s:[s];this.router.transitionTo(i,...e)}else this.router.transitionTo(i);return e.preventDefault(),e.stopPropagation(),!1}}get wrapperElement(){return(0,h.default)(this.args.href?"a":"button")}static #f=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"h+2BLPvl",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,[30,0,["computedLabel"]]],[41,[30,12],[[[1,"…"]],[]],null],[13]],[]],[[[41,[28,[32,0],[[30,10],[30,4]],null],[[[10,1],[14,"aria-hidden","true"],[12],[1,"\\n ​\\n"],[1," "],[13]],[]],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:()=>[d.or,c.default,n.on,p.default],isStrictMode:!0}),this))()}},13402:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(9032),n=i(21530),r=i(88192),a=i(73728),o=i(70508);class l extends a.default{userActionType=(()=>r.default.TYPES.likes_given)();emptyState(){let e=this.modelFor("user");return{title:this.isCurrentUser(e)?(0,o.i18n)("user_activity.no_likes_title"):(0,o.i18n)("user_activity.no_likes_title_others",{username:e.username}),body:(0,s.htmlSafe)((0,o.i18n)("user_activity.no_likes_body",{heartIcon:(0,n.iconHTML)("heart")}))}}titleToken(){return(0,o.i18n)("user_action_groups.1")}}},13403:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(75093),l=i(7953),u=i(13355),d=i(61777),c=i(32045),p=i(1519);let h="dismissed-pwa-install-banner";class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"keyValueStore",[o.service]))();#u=(()=>void dt7948.i(this,"keyValueStore"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"bannerDismissed",[n.tracked],function(){return"true"===this.keyValueStore.get(h)}))();#nA=(()=>void dt7948.i(this,"bannerDismissed"))();static #d=(()=>dt7948.g(this.prototype,"deferredInstallPromptEvent",[n.tracked],function(){return null}))();#nD=(()=>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 #p=(()=>dt7948.n(this.prototype,"turnOn",[a.action]))();dismiss(){this.keyValueStore.set({key:h,value:!0}),this.bannerDismissed=!0}static #m=(()=>dt7948.n(this.prototype,"dismiss",[a.action]))();static #f=(()=>(0,c.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:()=>[d.default,r.hash,u.default],isStrictMode:!0}),this))()}},13452:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53285),n=i(54187);let r=(0,s.default)("group",n.UNREAD_FILTER)},13492:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IMAGE_VERSION:()=>s});let s="14"},13496:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(75370),n=i(68023),r=i(99915),a=i(1158),o=i(32045),l=i(1519),u=i(69522);let d=(0,s.default)((0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"ovuFvqPb",block:'[[[1,"\\n"],[41,[30,1,["can_see_invite_details"]],[[[1," "],[1,[28,[32,0],["user-invites-page"],null]],[1,"\\n\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[32,1],null,[["@ariaLabel"],["User secondary - invites"]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","pending",[30,1,["pendingLabel"]]]],null],[1,"\\n "],[8,[32,2],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","expired",[30,1,["expiredLabel"]]]],null],[1,"\\n "],[8,[32,2],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","redeemed",[30,1,["redeemedLabel"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[46,[28,[31,2],null,null],null,null,null],[1,"\\n "]],["@controller"],false,["if","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user-invited.js",scope:()=>[a.default,n.default,r.default],isStrictMode:!0}),(0,u.default)(void 0,void 0)))},13563:(e,t,i)=>{"use strict";i.r(t),i.d(t,{WebauthnAbortHandler:()=>u,bufferToBase64:()=>a,getPasskeyCredential:()=>c,getWebauthnCredential:()=>d,isWebauthnSupported:()=>o,stringToBuffer:()=>r});var s=i(87367),n=i(70508);function r(e){let t=new ArrayBuffer(e.length),i=new Uint8Array(t);for(let t=0;tvoid 0)();signal(){if(this.controller){let e=Error("Cancelling pending webauthn call");e.name="AbortError",this.controller.abort(e)}return this.controller=new AbortController,this.controller.signal}}let u=new l;function d(e,t,i,s){if(!o())return s((0,n.i18n)("login.security_key_support_missing_error"));let l=r(e),d=t.map(e=>({id:r(atob(e)),type:"public-key"}));navigator.credentials.get({publicKey:{challenge:l,allowCredentials:d,timeout:6e4,userVerification:"discouraged"},signal:u.signal()}).then(e=>e.response instanceof AuthenticatorAssertionResponse?t.some(t=>a(e.rawId)===t)?void i({signature:a(e.response.signature),clientData:a(e.response.clientDataJSON),authenticatorData:a(e.response.authenticatorData),credentialId:a(e.rawId)}):s((0,n.i18n)("login.security_key_no_matching_credential_error")):s((0,n.i18n)("login.security_key_invalid_response_error"))).catch(e=>{if("NotAllowedError"===e.name)return s((0,n.i18n)("login.security_key_not_allowed_error"));s(e)})}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"optional",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!o())return e((0,n.i18n)("login.security_key_support_missing_error"));if("conditional"!==t||!i||await PublicKeyCredential.isConditionalMediationAvailable?.())try{let e=await (0,s.ajax)("/session/passkey/challenge.json"),i=await navigator.credentials.get({publicKey:{challenge:r(e.challenge),userVerification:"required"},signal:u.signal(),mediation:t});return{signature:a(i.response.signature),clientData:a(i.response.clientDataJSON),authenticatorData:a(i.response.authenticatorData),credentialId:a(i.rawId),userHandle:a(i.response.userHandle)}}catch(i){if("AbortError"===i.name)return null;if("conditional"===t)return console.error(i),null;if("NotAllowedError"===i.name)return e((0,n.i18n)("login.security_key_not_allowed_error"));if("SecurityError"===i.name)return e((0,n.i18n)("login.passkey_security_error",{message:i.message}));return e(i.message)}}},13630:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(e,i,s,n){var r=function(e){var i=Math.floor(e%1e3/100),s=Math.floor(e%100/10),n=e%10,r="";return i>0&&(r+=t[i]+"vatlh"),s>0&&(r+=(""!==r?" ":"")+t[s]+"maH"),n>0&&(r+=(""!==r?" ":"")+t[n]),""===r?"pagh":r}(e);switch(s){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}return e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return -1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return -1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},13665:(e,t,i)=>{"use strict";function s(e,t){return!0===e?Object.keys(t):Array.isArray(e)?e:[]}i.d(t,{A:()=>s})},13806:(e,t,i)=>{"use strict";function s(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}i.d(t,{$:()=>M,i:()=>k});var n=0;function r(e){return"__private_"+n+++"_"+e}function a(e){if(null!=e){var t;let i=()=>this.abort(e.reason);e.addEventListener("abort",i,{once:!0});let s=()=>{e.removeEventListener("abort",i)};null==(t=this.then)||t.call(this,s,s)}return this}var o=r("activeRequests"),l=r("queuedHandlers"),u=r("paused"),d=r("pauseTimer"),c=r("downLimit"),p=r("upperLimit"),h=r("rateLimitingTimer"),m=r("call"),g=r("queueNext"),f=r("next"),_=r("queue"),y=r("dequeue"),b=r("resume"),w=r("increaseLimit");class k{constructor(e){Object.defineProperty(this,y,{value:D}),Object.defineProperty(this,_,{value:A}),Object.defineProperty(this,f,{value:C}),Object.defineProperty(this,g,{value:S}),Object.defineProperty(this,m,{value:T}),Object.defineProperty(this,o,{writable:!0,value:0}),Object.defineProperty(this,l,{writable:!0,value:[]}),Object.defineProperty(this,u,{writable:!0,value:!1}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:1}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,w,{writable:!0,value:()=>{if(s(this,u)[u]){s(this,h)[h]=setTimeout(s(this,w)[w],0);return}s(this,c)[c]=this.limit,this.limit=Math.ceil((s(this,p)[p]+s(this,c)[c])/2);for(let e=s(this,c)[c];e<=this.limit;e++)s(this,g)[g]();s(this,p)[p]-s(this,c)[c]>3?s(this,h)[h]=setTimeout(s(this,w)[w],2e3):s(this,c)[c]=Math.floor(s(this,c)[c]/2)}}),"number"!=typeof e||0===e?this.limit=1/0:this.limit=e}run(e,t){return!s(this,u)[u]&&s(this,o)[o](e(...n),queueMicrotask(()=>o.done()),()=>{}),t);return{abortOn:a,abort(){o.abort()}}}}wrapPromiseFunction(e,t){var i=this;return function(){let s;for(var n=arguments.length,r=Array(n),o=0;o{s=i.run(()=>{let t,i;try{i=Promise.resolve(e(...r))}catch(e){i=Promise.reject(e)}return i.then(e=>{t?a(t):(s.done(),n(e))},e=>{t?a(t):(s.done(),a(e))}),e=>{t=function(e){return Error("Cancelled",{cause:e})}(e)}},t)});return l.abort=e=>{s.abort(e)},l.abortOn=a,l}}resume(){s(this,u)[u]=!1,clearTimeout(s(this,d)[d]);for(let e=0;e1&&Number.isFinite(this.limit)&&(s(this,p)[p]=this.limit-1,this.limit=s(this,c)[c],s(this,h)[h]=setTimeout(s(this,w)[w],e))}get isPaused(){return s(this,u)[u]}}function T(e){let t;s(this,o)[o]+=1;let i=!1;try{t=e()}catch(e){throw s(this,o)[o]-=1,e}return{abort:e=>{i||(i=!0,s(this,o)[o]-=1,null==t||t(e),s(this,g)[g]())},done:()=>{i||(i=!0,s(this,o)[o]-=1,s(this,g)[g]())}}}function S(){queueMicrotask(()=>s(this,f)[f]())}function C(){if(s(this,u)[u]||s(this,o)[o]>=this.limit||0===s(this,l)[l].length)return;let e=s(this,l)[l].shift();if(null==e)throw Error("Invariant violation: next is null");let t=s(this,m)[m](e.fn);e.abort=t.abort,e.done=t.done}function A(e,t){let i={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{s(this,y)[y](i)},done:()=>{throw Error("Cannot mark a queued request as done: this indicates a bug")}},n=s(this,l)[l].findIndex(e=>i.priority>e.priority);return -1===n?s(this,l)[l].push(i):s(this,l)[l].splice(n,0,i),i}function D(e){let t=s(this,l)[l].indexOf(e);-1!==t&&s(this,l)[l].splice(t,1)}let M=Symbol("__queue")},13813:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(20133),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"tag-notifications-tracking:TagNotificationsTracking"))},13850:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(86981),n=i(9032),r=i(85024),a=i(70508),o=i(33499),l=i(87542);let u="unpinned",d=dt7948.c(class extends o.default{modifySelection(e){let t=this.get("topic.pinned_globally"),i=this.value?`pinned${t?"_globally":""}`:u,s=(0,a.i18n)(`topic_statuses.${i}.title`);return e.label=(0,n.htmlSafe)(`${s}`),e.title=s,e.name=i,e.icon=`thumbtack${i===u?" unpinned":""}`,e}get content(){let e=this.topic.pinned_globally?"_globally":"";return[{id:"pinned",name:(0,a.i18n)(`topic_statuses.pinned${e}.title`),description:this.site.mobileView?null:(0,a.i18n)(`topic_statuses.pinned${e}.help`),icon:"thumbtack"},{id:u,name:(0,a.i18n)("topic_statuses.unpinned.title"),icon:"thumbtack unpinned",description:this.site.mobileView?null:(0,a.i18n)("topic_statuses.unpinned.help")}]}static #e=(()=>dt7948.n(this.prototype,"content",[s.computed]))();onChange(e){let t=this.topic;return e===u?t.clearPin():t.rePin()}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,l.pluginApiIdentifiers)("pinned-options"),(0,l.selectKitOptions)({showCaret:!0}),(0,r.classNames)("pinned-options")])},13957:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(26934);i(40413),i(78805),i(25601),i(57460),i(82540),i(27926),i(82069),i(32693);var n=i(24813),r=i(53463);i(60569),i(27251);var a=i(90760);function o(e,t){return new a.R.Promise(function(i){let a=e.__container__.lookup("router:main"),o=setInterval(()=>{!(a._routerMicrolib&&a._routerMicrolib.activeTransition||(0,r.pendingRequests)()||(0,n._hasScheduledTimers)()||(0,n._getCurrentRunLoop)())&&((0,s.checkWaiters)()||(clearInterval(o),(0,n.run)(null,i,t)))},10)})}},13961:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(70508),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.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 #i=(()=>(0,a.setComponentTemplate)((0,o.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))()}},13963:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(96791),n=i(86981),r=i(91558),a=i(75093),o=i(9032),l=i(85024),u=i(38161),d=i(85074),c=i(15015),p=i(13355),h=i(12415),m=i(62937),g=i(31789),f=i(714),_=i(14051),y=i(29466),b=i(77296),w=i(70508),k=i(32045),T=i(1519);let S=dt7948.c(class extends c.default{static #e=(()=>dt7948.g(this.prototype,"composer",[a.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"allowBackgrounds",[(0,f.setting)("allow_profile_backgrounds")]))();#nM=(()=>void dt7948.i(this,"allowBackgrounds"))();static #n=(()=>dt7948.g(this.prototype,"showBadges",[(0,f.setting)("enable_badges")]))();#nx=(()=>void dt7948.i(this,"showBadges"))();static #a=(()=>dt7948.g(this.prototype,"postStream",[(0,r.alias)("topic.postStream")]))();#nE=(()=>void dt7948.i(this,"postStream"))();static #l=(()=>dt7948.g(this.prototype,"showMoreMembers",[(0,r.gt)("moreMembersCount",0)]))();#nL=(()=>void dt7948.i(this,"showMoreMembers"))();elementId="group-card";mentionSelector="a.mention-group";group=null;highlightedMembers(e){return e.slice(0,10)}static #d=(()=>dt7948.n(this.prototype,"highlightedMembers",[(0,_.default)("group.members.[]")]))();moreMembersCount(e){return Math.max(e-10,0)}static #p=(()=>dt7948.n(this.prototype,"moreMembersCount",[(0,_.default)("group.user_count","group.members.[]")]))();groupClass(e){return e?`group-card-${e}`:""}static #m=(()=>dt7948.n(this.prototype,"groupClass",[(0,_.default)("group.name")]))();groupPath(e){return(0,b.groupPath)(e.name)}static #f=(()=>dt7948.n(this.prototype,"groupPath",[(0,_.default)("group")]))();_inserted(){this.appEvents.on("dom:clean",this,this._close)}static #y=(()=>dt7948.n(this.prototype,"_inserted",[(0,u.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this._close)}static #v=(()=>dt7948.n(this.prototype,"_destroyed",[(0,u.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 #k=(()=>dt7948.n(this.prototype,"close",[n.action]))();handleShowGroup(e){(0,y.wantsNewWindow)(e)||(e.preventDefault(),this.showGroup(this.group),this._close())}static #S=(()=>dt7948.n(this.prototype,"handleShowGroup",[n.action]))();cancelFilter(){this.postStream.cancelFilter(),this.postStream.refresh(),this._close()}static #A=(()=>dt7948.n(this.prototype,"cancelFilter",[n.action]))();messageGroup(){this.composer.openNewMessage({recipients:this.get("group.name"),hasGroups:!0})}static #M=(()=>dt7948.n(this.prototype,"messageGroup",[n.action]))();static #E=(()=>(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:"WGsm0hpc",block:'[[[1,"\\n"],[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,[32,0],["click",[30,0,["handleShowGroup"]]],null],[12],[1,"\\n "],[8,[32,1],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,[32,0],["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,[32,2],null,[["@model","@showLogin"],[[30,0,["group"]],[28,[32,3],["showLogin"],null]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["group","messageable"]],[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-primary group-message-button inline"]],[["@action","@icon","@label"],[[30,0,["messageGroup"]],"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,[32,5],[[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,[31,2],[[28,[31,2],[[30,0,["highlightedMembers"]]],null]],null],null,[[[1," "],[11,3],[16,6,[30,1,["path"]]],[24,0,"card-tiny-avatar"],[4,[32,0],["click",[30,0,["close"]]],null],[12],[1,[28,[32,6],[[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,[32,0],["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,[32,7],["more"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["user"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-card-contents.js",scope:()=>[s.on,d.default,h.default,g.default,p.default,o.htmlSafe,m.default,w.i18n],isStrictMode:!0}),this))()},[(0,l.classNameBindings)("visible:show","showBadges","hasCardBadgeImage","isFixed:fixed","groupClass"),(0,l.classNames)("no-bg","group-card")])},13964:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(86981),a=i(65015),o=i(13355),l=i(39826),u=i(87367),d=i(16356),c=i(70508),p=i(32045),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"newFeaturedTopic",[n.tracked],function(){return null}))();#nP=(()=>void dt7948.i(this,"newFeaturedTopic"))();static #i=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();get noTopicSelected(){return!this.newFeaturedTopic}async save(){try{this.saving=!0,await (0,u.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,d.popupAjaxError)(e)}finally{this.saving=!1}}static #n=(()=>dt7948.n(this.prototype,"save",[r.action]))();newTopicSelected(e){this.newFeaturedTopic=e}static #a=(()=>dt7948.n(this.prototype,"newTopicSelected",[r.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"K3Nim6ly",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"feature-topic-on-profile choose-topic-modal"],[24,1,"choosing-topic"]],[["@closeModal","@title"],[[30,1],[28,[32,1],["user.feature_topic_on_profile.title"],null]]],[["body","footer"],[[[[1,"\\n "],[8,[32,2],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,[32,3],[[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,[32,3],[[24,0,"btn-flat"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/feature-topic-on-profile.js",scope:()=>[l.default,c.i18n,a.default,o.default],isStrictMode:!0}),this))()}},14051:(e,t,i)=>{"use strict";i.r(t),i.d(t,{afterRender:()=>_,alias:()=>S,and:()=>C,bind:()=>y,bool:()=>A,collect:()=>D,debounce:()=>w,default:()=>f,empty:()=>M,equal:()=>x,filter:()=>E,filterBy:()=>L,gt:()=>P,gte:()=>F,lt:()=>I,lte:()=>N,map:()=>j,mapBy:()=>O,match:()=>R,max:()=>U,min:()=>B,none:()=>Y,not:()=>H,notEmpty:()=>q,observes:()=>T,on:()=>k,oneWay:()=>z,or:()=>$,readOnly:()=>b,reads:()=>V,setDiff:()=>W,sort:()=>K,sum:()=>G,union:()=>J,uniq:()=>Q});var s=i(86981),n=i(91558),r=i(43050),a=i(61312),o=i(24813),l=i(38161),u=i(14086),d=i(75797),c=i(63272),p=i(38108),h=i(33325),m=i(75371),g=i(97360);function f(){for(var e=arguments.length,t=Array(e),i=0;i{if(!this.isDestroying&&!this.isDestroyed)return s.apply(this,arguments)})}}function y(e,t,i){return{configurable:!0,get(){let e=(0,o.bind)(this,i.value);return Object.defineProperty(this,t,{...i,value:e}),e}}}function b(e,t,i){return{writable:!1,enumerable:i.enumerable,configurable:i.configurable,initializer:()=>(0,p.default)(i).readOnly()}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,s,n){return{enumerable:n.enumerable,configurable:n.configurable,get:function(){var i=this;let r=n.value,a=function(){for(var s=arguments.length,n=Array(s),a=0;a{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(86981),n=i(75093),r=i(27797);class a extends r.default{static #e=(()=>dt7948.g(this.prototype,"composer",[n.service]))();#tN=(()=>void dt7948.i(this,"composer"))();templateName="user/messages";afterModel(){this.pmTopicTrackingState.startTracking()}triggerRefresh(){this.refresh()}static #i=(()=>dt7948.n(this.prototype,"triggerRefresh",[s.action]))();willTransition(){return super.willTransition(...arguments),!0}static #n=(()=>dt7948.n(this.prototype,"willTransition",[s.action]))()}},14086:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(24813),n=i(97908);function r(){if(!(0,n.isTesting)())return(0,s.debounce)(...arguments);{let e=arguments[arguments.length-1],t="boolean"==typeof e,i=[].slice.call(arguments,0,t?-2:-1);return i.push(10),t&&i.push(e),s.debounce.apply(void 0,i)}}},14104:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addExtraIconRenderer:()=>_,categoryBadgeHTML:()=>y,categoryLinkHTML:()=>b,default:()=>w,defaultCategoryLinkRenderer:()=>k,replaceCategoryLinkRenderer:()=>g});var s=i(86981),n=i(9032),r=i(31391),a=i(27e3),o=i(11837),l=i(39668),u=i(21530),d=i(77982),c=i(35697),p=i(23062),h=i(70508);let m=k;function g(e){m=e}let f=[];function _(e){f.push(e)}function y(e,t){let{site:i,siteSettings:n}=(0,l.helperContext)();if(t=t||{},!e||!t.allowUncategorized&&(0,s.get)(e,"id")===i.uncategorized_category_id&&n.suppress_uncategorized_badge)return"";t.styleType||(t.styleType=e.styleType,"icon"===t.styleType?t.icon=e.icon:"emoji"===t.styleType&&(t.emoji=e.emoji));let r=(t.depth||1)+1;if(t.ancestors){let{ancestors:i,...s}=t;return[e,...i].reverse().map(e=>y(e,{...s,styleType:null})).join("")}if(t.recursive&&r<=n.max_category_nesting){let i=p.default.findById(e.parent_category_id),s=!t.depth;t.depth=r;let n=y(i,t);return t.lastSubcategory=s,n+m(e,t)}return m(e,t)}function b(e,t){let i={};return t&&t.hash&&(t=t.hash),t&&(t.allowUncategorized&&(i.allowUncategorized=!0),void 0!==t.link&&(i.link=t.link),t.previewColor&&(i.previewColor=!0),t.extraClasses&&(i.extraClasses=t.extraClasses),t.hideParent&&(i.hideParent=!0),t.recursive&&(i.recursive=!0),t.ancestors&&(i.ancestors=t.ancestors)),(0,n.htmlSafe)(y(e,i))}let w=b;function k(e,t){let i=(0,d.applyValueTransformer)("category-description-text",(0,c.escapeExpression)((0,s.get)(e,"description_text")),{category:e}),n=(0,s.get)(e,"read_restricted"),m=t.url?t.url:(0,o.default)(`/c/${p.default.slugFor(e)}/${(0,s.get)(e,"id")}`),g=!1===t.link?"":m,_=!1===t.link||"false"===t.link?"span":"a",y=t.extraClasses?" "+t.extraClasses:"",b=`${(0,r.default)(e)}`,w="",k=null,T="",S=e?`data-category-id="${(0,s.get)(e,"id")}"`:"";t.hideParent||(k=p.default.findById((0,s.get)(e,"parent_category_id")));let C=(0,l.helperContext)().siteSettings,A="badge-category";n&&(A+=" restricted"),k&&(A+=" --has-parent",S+=` data-parent-category-id="${k.id}"`),t.styleType&&(A+=` --style-${t.styleType}`),w+=``,"icon"===t.styleType&&t.icon&&(w+=(0,u.iconHTML)(t.icon)),"emoji"===t.styleType&&t.emoji&&(w+=(0,a.default)(`:${t.emoji}:`));let D=(0,d.applyValueTransformer)("category-display-name",(0,c.escapeExpression)((0,s.get)(e,"name")),{category:e});return C.support_mixed_text_direction&&(T='dir="auto"'),n&&(w+=(0,u.iconHTML)("lock")),f.forEach(t=>{let i=t(e);i&&(w+=(0,u.iconHTML)(i))}),w+=`${D}`,w+="",t.topicCount&&(w+=function(e){return`× ${e}`}(t.topicCount)),t.subcategoryCount&&(w+=`${(0,h.i18n)("category_row.subcategory_count",{count:t.subcategoryCount})}`),g&&(g=` href="${g}" `),`<${_} class="badge-category__wrapper ${y}" ${b.length>0?`style="${b}"`:""} ${g}>${w}`}},14145:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}})})},14237:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PresenceChannelNotFound:()=>k,default:()=>C});var s=i(86981),n=i(93239),r=i(61312),a=i(24813),o=i(75093),l=i(31075),u=i(87367),d=i(14051),c=i(97908),p=i(11837),h=i(44233),m=i(86723),g=i(98622),f=i(25217);let _=500*!(0,c.isTesting)(),y=1e3*!(0,c.isTesting)(),b={userUnseenTime:6e4,browserHiddenTime:1e4};function w(){let e={};return e.promise=new l.Promise((t,i)=>{e.resolve=t,e.reject=i}),e}class k extends Error{}class T extends s.default.extend(r.default){init(e){let{name:t,presenceService:i}=e;super.init(...arguments),this.name=t,this.presenceService=i,this.set("present",!1),this.set("subscribed",!1)}async enter(){let{onlyWhileActive:e=!0,activeOptions:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e&&t){for(let e in b)if(t[e]0&&void 0!==arguments[0]?arguments[0]:null;if(this.subscribed)return;let t=await this.presenceService._subscribe(this,e);this.set("subscribed",!0),this.set("_presenceState",t),this._publishChange(),t.on("change",this._publishChange)}async unsubscribe(){this.subscribed&&(await this.presenceService._unsubscribe(this),this.set("subscribed",!1),this._presenceState.off("change",this._publishChange),this.set("_presenceState",null),this._publishChange())}_publishChange(){this.trigger("change",this)}static #e=(()=>dt7948.n(this.prototype,"_publishChange",[d.bind]))();get users(){if(this.get("subscribed"))return this.get("_presenceState.users")}static #i=(()=>dt7948.n(this.prototype,"users",[n.dependentKeyCompat]))();get count(){if(this.subscribed)return this._presenceState?.count}static #n=(()=>dt7948.n(this.prototype,"count",[(0,s.computed)("_presenceState.count","subscribed")]))();get countOnly(){if(this.subscribed)return this._presenceState?.countOnly}static #a=(()=>dt7948.n(this.prototype,"countOnly",[(0,s.computed)("_presenceState.count","subscribed")]))()}class S extends s.default.extend(r.default){init(e){let{name:t,presenceService:i}=e;super.init(...arguments),this.name=t,this.set("users",null),this.set("count",null),this.set("countOnly",null),this.presenceService=i}get subscribed(){return!!this._subscribedCallback}static #e=(()=>dt7948.n(this.prototype,"subscribed",[(0,s.computed)("_subscribedCallback")]))();async subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.subscribed||(e||(e=await this.presenceService._getInitialData(this.name)),this.set("count",e.count),e.users?(this.set("users",e.users),this.set("countOnly",!1)):(this.set("users",null),this.set("countOnly",!0)),this.lastSeenId=e.last_message_id,this.presenceService.messageBus.subscribe(`/presence${this.name}`,this._processMessage,this.lastSeenId),this.set("_subscribedCallback",this._processMessage),this.trigger("change"))}unsubscribe(){this.subscribed&&(this.presenceService.messageBus.unsubscribe(`/presence${this.name}`,this._subscribedCallback),this.set("_subscribedCallback",null),this.set("users",null),this.set("count",null),this.trigger("change"))}async _resubscribe(){this.unsubscribe(),await this.subscribe()}async _processMessage(e,t,i){if(i!==this.lastSeenId+1){console.log(`PresenceChannel '${this.name}' dropped message (received ${i}, expecting ${this.lastSeenId+1}), resyncing...`),await this._resubscribe();return}if(this.lastSeenId=i,this.countOnly&&void 0!==e.count_delta)this.set("count",this.count+e.count_delta),this.trigger("change");else{if(this.countOnly||!e.entering_users&&!e.leaving_user_ids)return void await this._resubscribe();if(e.entering_users){let t=e.entering_users.map(e=>f.default.create(e));this.users.addObjects(t)}if(e.leaving_user_ids){let t=new Set(e.leaving_user_ids),i=this.users.filter(e=>t.has(e.id));this.users.removeObjects(i)}this.set("count",this.users.length),this.trigger("change")}}static #i=(()=>dt7948.n(this.prototype,"_processMessage",[d.bind]))()}let C=dt7948.c(class extends o.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[o.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"session",[o.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();_presenceDebounceMs=(()=>_)();init(){super.init(...arguments),this._queuedEvents=[],this._presenceChannelStates=new Map,this._presentProxies=new Map,this._subscribedProxies=new Map,this._initialDataRequests=new Map,this._previousPresentButInactiveChannels=new Set,this.currentUser&&(window.addEventListener("beforeunload",this._beaconLeaveAll),(0,g.onPresenceChange)({...b,callback:this._throttledUpdateServer}))}willDestroy(){super.willDestroy(...arguments),window.removeEventListener("beforeunload",this._beaconLeaveAll),(0,g.removeOnPresenceChange)(this._throttledUpdateServer),(0,a.cancel)(this._debounceTimer)}get _presentChannels(){return new Set(this._presentProxies.keys())}getChannel(e){return T.create({name:e,presenceService:this})}_getInitialData(e){let t=this._initialDataRequests[e];return t||(t=this._initialDataRequests[e]=w()),(0,a.once)(this,this._makeInitialDataRequest),t.promise}async _makeInitialDataRequest(){let e;if(this._initialDataAjax)return void(0,a.next)(this,()=>(0,a.once)(this,this._makeInitialDataRequest));if(0!==Object.keys(this._initialDataRequests).length){this._initialDataAjax=(0,u.ajax)("/presence/get",{data:{channels:Object.keys(this._initialDataRequests).slice(0,50)}});try{e=await this._initialDataAjax}catch(e){throw(0,m.default)(this,this._makeInitialDataRequest,5e3),e}finally{this._initialDataAjax=null}for(let t in e){if(!e.hasOwnProperty(t))continue;let i=e[t];if(i)this._initialDataRequests[t].resolve(i);else{let e=new k(`PresenceChannel '${t}' not found`);this._initialDataRequests[t].reject(e)}delete this._initialDataRequests[t]}}}_addPresent(e){let t=this._presentProxies.get(e.name);return t||(t=new Set,this._presentProxies.set(e.name,t)),t.add(e),t.size}_removePresent(e){let t=this._presentProxies.get(e.name);return t?.delete(e),t?.size===0&&this._presentProxies.delete(e.name),t?.size||0}_addSubscribed(e){let t=this._subscribedProxies.get(e.name);return t||(t=new Set,this._subscribedProxies.set(e.name,t)),t.add(e),t.size}_removeSubscribed(e){let t=this._subscribedProxies.get(e.name);return t?.delete(e),t?.size===0&&this._subscribedProxies.delete(e.name),t?.size||0}async _enter(e){if(!this.currentUser)throw"Must be logged in to enter presence channel";if(this._addPresent(e)>1)return;let t=w();this._queuedEvents.push({channel:e.name,type:"enter",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _leave(e){if(!this.currentUser)throw"Must be logged in to leave presence channel";if(this._removePresent(e)>0)return;let t=w();this._queuedEvents.push({channel:e.name,type:"leave",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _subscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.siteSettings.login_required&&!this.currentUser)throw"Presence is only available to authenticated users on login-required sites";this._addSubscribed(e);let i=e.name,s=this._presenceChannelStates.get(i);return s||(s=S.create({name:i,presenceService:this}),this._presenceChannelStates.set(i,s),await s.subscribe(t)),s}_unsubscribe(e){if(0===this._removeSubscribed(e)){let t=e.name;this._presenceChannelStates.get(t).unsubscribe(),this._presenceChannelStates.delete(t)}}_beaconLeaveAll(){if((0,c.isTesting)())return;this._dedupQueue();let e=this._queuedEvents.filter(e=>"leave"===e.type).map(e=>e.channel);if(e.push(...this._presentChannels),0===e.length)return;let t=new FormData;t.append("client_id",this.messageBus.clientId),e.forEach(e=>t.append("leave_channels[]",e)),t.append("authenticity_token",this.session.csrfToken),navigator.sendBeacon((0,p.default)("/presence/update"),t)}static #l=(()=>dt7948.n(this.prototype,"_beaconLeaveAll",[d.bind]))();_dedupQueue(){let e={};this._queuedEvents.forEach(t=>{e[t.channel]&&e[t.channel].promiseProxy.resolve(t.promiseProxy.promise),e[t.channel]=t}),this._queuedEvents=Object.values(e)}async _updateServer(){if(this.isDestroying||this.isDestroyed)return;this._lastUpdate=new Date,this._updateRunning=!0,this._cancelTimer(),this._dedupQueue();let e=this._queuedEvents;this._queuedEvents=[];try{let t=[],i=new Set,s=e.filter(e=>"leave"===e.type).map(e=>e.channel);for(let[e,n]of this._presentProxies)Array.from(n).some(e=>!e.activeOptions||(0,g.default)(e.activeOptions))?t.push(e):(i.add(e),this._previousPresentButInactiveChannels.has(e)||s.push(e));if(this._previousPresentButInactiveChannels=i,0===e.length&&0===t.length&&0===s.length)return;let n=await (0,u.ajax)("/presence/update",{data:{client_id:this.messageBus.clientId,present_channels:t,leave_channels:s},type:"POST"});e.forEach(e=>{!1===n[e.channel]?e.promiseProxy.reject(new k(`PresenceChannel '${e.channel}' not found`)):e.promiseProxy.resolve()}),this._presenceDebounceMs=_}catch(t){if(this._queuedEvents.unshift(...e),t.jqXHR?.status===429){let e=t.jqXHR.responseJSON?.extras?.wait_seconds||10;this._presenceDebounceMs=1e3*e}else throw this._presenceDebounceMs=Math.min(2*this._presenceDebounceMs,3e4),t}finally{this._updateRunning=!1,this._scheduleNextUpdate()}}_throttledUpdateServer(){this.isDestroying||this.isDestroyed||(!this._lastUpdate||new Date-this._lastUpdate>y?this._updateServer():(0,a.throttle)(this,this._updateServer,y,!1))}static #d=(()=>dt7948.n(this.prototype,"_throttledUpdateServer",[d.bind]))();_cancelTimer(){this._nextUpdateTimer&&((0,a.cancel)(this._nextUpdateTimer),this._nextUpdateTimer=null)}_scheduleNextUpdate(){!this._updateRunning&&(this._queuedEvents.length>0?(this._cancelTimer(),(0,a.cancel)(this._debounceTimer),this._debounceTimer=(0,a.debounce)(this,this._throttledUpdateServer,this._presenceDebounceMs)):this._nextUpdateTimer||!(this._presentChannels.size>0)||(0,c.isTesting)()||(this._nextUpdateTimer=(0,m.default)(this,this._throttledUpdateServer,3e4)))}},[h.disableImplicitInjections])},14293:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(57355),n=i(91035),r=i(88627),a=i(70508);let o=(0,r.createWidget)("post-edits-indicator",{tagName:"div.post-info.edits",html(e){let t,i="pencil",r=new Date(e.updated_at),o=(0,s.historyHeat)(this.siteSettings,r),l=(0,n.longDate)(r);return e.wiki?(i="far-pen-to-square",o=`${o||""} wiki`.trim(),t=e.version>1?(0,a.i18n)("post.wiki_last_edited_on",{dateTime:l}):(0,a.i18n)("post.wiki.about")):t=(0,a.i18n)("post.last_edited_on",{dateTime:l}),this.attach("flat-button",{icon:i,translatedTitle:t,className:o,action:"onPostEditsIndicatorClick",translatedAriaLabel:(0,a.i18n)("post.edit_history"),translatedLabel:e.version>1?e.version-1:""})},onPostEditsIndicatorClick(){this.attrs.wiki&&1===this.attrs.version?this.sendWidgetAction("editPost"):this.attrs.canViewEditHistory&&this.sendWidgetAction("showHistory")}})},14307:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(21762);function n(e){var t=(0,s.A)(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}},14345:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(73326),n=i(96848),r=i(9032),a=i(57079),o=i(4611),l=i.n(o),u=i(94832),d=i.n(u),c=i(78771),p=i.n(c),h=i(32045),m=i(69522),g=i(1519);let f=(0,h.setComponentTemplate)((0,g.createTemplateFactory)({id:"q33VFDV3",block:'[[[1,"\\n "],[11,0],[16,0,[28,[32,0],["fk-d-default-toast",[28,[32,1],["-",[28,[32,2],[[30,1,["theme"]],"default"],null]],null]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1," "],[11,0],[24,0,"fk-d-default-toast__progress-bar"],[4,[32,3],[[30,4]],null],[12],[13],[1,"\\n"]],[]],null],[41,[30,1,["icon"]],[[[1," "],[10,0],[14,0,"fk-d-default-toast__icon-container"],[12],[1,"\\n "],[1,[28,[32,4],[[30,1,["icon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"fk-d-default-toast__main-container"],[12],[1,"\\n "],[10,0],[14,0,"fk-d-default-toast__texts"],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1," "],[10,0],[14,0,"fk-d-default-toast__title"],[12],[1,"\\n "],[1,[30,1,["title"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message"]],[[[1," "],[10,0],[14,0,"fk-d-default-toast__message"],[12],[1,"\\n"],[41,[30,1,["isHtmlMessage"]],[[[1," "],[1,[28,[32,5],[[30,1,["message"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["message"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["actions"]],[[[1," "],[10,0],[14,0,"fk-d-default-toast__actions"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["actions"]]],null]],null],null,[[[41,[30,5,["action"]],[[[1," "],[8,[32,6],[[16,0,[30,5,["class"]]],[24,"tabindex","0"]],[["@icon","@translatedLabel","@action"],[[30,5,["icon"]],[30,5,["label"]],[28,[32,7],[[30,5,["action"]],[28,[32,8],null,[["data","close"],[[30,1],[30,6]]]]],null]]],null],[1,"\\n"]],[]],null]],[5]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"fk-d-default-toast__close-container"],[12],[1,"\\n "],[8,[32,6],[[24,0,"btn-transparent"]],[["@icon","@action"],["xmark",[30,6]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["@data","&attrs","@showProgressBar","@onRegisterProgressBar","toastAction","@close"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-default-toast.js",scope:()=>[d(),s.concat,a.or,n.default,p(),r.htmlSafe,l(),s.fn,s.hash],isStrictMode:!0}),(0,m.default)(void 0,"d-default-toast:DDefaultToast"))},14431:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(69408);function n(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&(0,s.Ng)(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}},14442:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(56162),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"views-cell:ViewsCell"))},14529:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(32045),n=i(86981),r=i(91558),a=i(64081),o=i(75093),l=i(12458),u=i(13355),d=i(39826),c=i(2142),p=i(53329),h=i(16991),m=i(10458),g=i(14051),f=i(91035),_=i(11837),y=i(8781),b=i(23062),w=i(70508),k=i(1519);class T extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"topic",[(0,r.readOnly)("model.topic")]))();#i9=(()=>void dt7948.i(this,"topic"))();static #n=(()=>dt7948.g(this.prototype,"post",[(0,r.readOnly)("model.post")]))();#nF=(()=>void dt7948.i(this,"post"))();static #a=(()=>dt7948.g(this.prototype,"category",[(0,r.readOnly)("model.category")]))();#nI=(()=>void dt7948.i(this,"category"))();static #l=(()=>dt7948.g(this.prototype,"allowInvites",[(0,r.readOnly)("model.allowInvites")]))();#nN=(()=>void dt7948.i(this,"allowInvites"))();didInsertElement(){this._showRestrictedGroupWarning(),this._selectUrl(),super.didInsertElement()}_showRestrictedGroupWarning(){this.category&&b.default.fetchVisibleGroups(this.category.id).then(e=>{e.groups.length>0&&this.setProperties({flash:(0,w.i18n)("topic.share.restricted_groups",{count:e.groups.length,groupNames:e.groups.join(", ")}),flashType:"warning"})})}static #d=(()=>dt7948.n(this.prototype,"_showRestrictedGroupWarning",[g.afterRender]))();_selectUrl(){let e=document.querySelector("input.invite-link");e&&this.site.desktopView&&(e.setSelectionRange(0,this.url.length),e.focus())}static #p=(()=>dt7948.n(this.prototype,"_selectUrl",[g.afterRender]))();url(e,t){return e?(0,_.getAbsoluteURL)(e):t?(0,_.getAbsoluteURL)(t):void 0}static #m=(()=>dt7948.n(this.prototype,"url",[(0,g.default)("post.shareUrl","topic.shareUrl")]))();displayDate(e,t,i){return(0,f.longDateNoYear)(new Date(t&&i?i:e))}static #f=(()=>dt7948.n(this.prototype,"displayDate",[(0,g.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 y.default.activeSources(this.siteSettings.share_links,t)}static #y=(()=>dt7948.n(this.prototype,"sources",[(0,g.default)("topic.{isPrivateMessage,invisible,category.read_restricted}")]))();share(e){y.default.shareSource(e,{title:this.topic.title,url:this.url})}static #v=(()=>dt7948.n(this.prototype,"share",[n.action]))();inviteUsers(){this.modal.show(c.default,{model:{inviteToTopic:!0,topics:[this.topic],topicId:this.topic.id,topicTitle:this.topic.title}})}static #k=(()=>dt7948.n(this.prototype,"inviteUsers",[n.action]))();replyAsNewTopic(){let e=this.topic.postStream,t=this.post?.id||e.findPostIdForPostNumber(1),i=e.findLoadedPost(t),s=(0,a.getOwner)(this).lookup("controller:topic");s.actions.replyAsNewTopic.call(s,i),this.closeModal()}static #S=(()=>dt7948.n(this.prototype,"replyAsNewTopic",[n.action]))();static #A=(()=>(0,s.setComponentTemplate)((0,k.createTemplateFactory)({id:"+X2SdJjF",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"share-topic-modal"]],[["@title","@subtitle","@closeModal","@flash","@flashType"],[[52,[30,0,["post"]],[28,[32,1],["post.share.title"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[32,1],["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,[32,1],["post.share.instructions"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[32,1],["topic.share.instructions"],null]]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n "],[8,[32,2],[[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,[32,3],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,[31,2],[[28,[31,2],[[30,0,["sources"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@source","@action"],[[30,2],[30,0,["share"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["allowInvites"]],[[[1," "],[8,[32,5],[[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,[32,5],[[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,[32,5],[[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,[32,6],null,[["@name","@outletArgs"],["share-topic-sources",[28,[32,7],null,[["topic","post"],[[30,0,["topic"]],[30,0,["post"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","source"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/share-topic.js",scope:()=>[d.default,w.i18n,s.Input,l.default,h.default,u.default,p.default,m.default],isStrictMode:!0}),this))()}},14548:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(44233);let r=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get isHeaderDropdownMode(){return"header dropdown"===this.siteSettings.navigation_menu}get isDesktopDropdownMode(){return this.site.desktopView&&this.isHeaderDropdownMode}},[n.disableImplicitInjections])},14599:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(32045),n=i(73326),r=i(86981),a=i(91558),o=i(85024),l=i(38161),u=i(83259),d=i(64591),c=i(82484),p=i(94577),h=i(38069),m=i(14051),g=i(251),f=i(75988),_=i(70508),y=i(1519);let b={"l t":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.LATER_TODAY]},"l w":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]},"n d":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.TOMORROW]},"n b w":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.START_OF_NEXT_BUSINESS_WEEK]},"n m":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.NEXT_MONTH]},"c r":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.CUSTOM]},"n r":{handler:"selectShortcut",args:[g.TIME_SHORTCUT_TYPES.NONE]}},w=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"customDatetimeSelected",[(0,a.equal)("selectedShortcut",g.TIME_SHORTCUT_TYPES.CUSTOM)]))();#nj=(()=>void dt7948.i(this,"customDatetimeSelected"))();static #i=(()=>dt7948.g(this.prototype,"relativeTimeSelected",[(0,a.equal)("selectedShortcut",g.TIME_SHORTCUT_TYPES.RELATIVE)]))();#nO=(()=>void dt7948.i(this,"relativeTimeSelected"))();static #n=(()=>dt7948.g(this.prototype,"customDatetimeFilled",[(0,a.and)("customDate","customTime")]))();#nR=(()=>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 #a=(()=>dt7948.n(this.prototype,"_setupPicker",[(0,l.on)("init")]))();prefilledDatetimeChanged(){this.prefilledDatetime?this.parsePrefilledDatetime():this.setProperties({customDate:null,customTime:null,selectedShortcut:null})}static #l=(()=>dt7948.n(this.prototype,"prefilledDatetimeChanged",[(0,l.observes)("prefilledDatetime")]))();willDestroyElement(){super.willDestroyElement(...arguments),this._itsatrap.unbind(Object.keys(b))}parsePrefilledDatetime(){let e=(0,f.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone);if(e.isSame((0,f.laterToday)()))return this.set("selectedShortcut",g.TIME_SHORTCUT_TYPES.LATER_TODAY);this.setProperties({customDate:e.format("YYYY-MM-DD"),customTime:e.format("HH:mm"),selectedShortcut:g.TIME_SHORTCUT_TYPES.CUSTOM})}_loadLastUsedCustomDatetime(){let e=this.keyValueStore.lastCustomTime,t=this.keyValueStore.lastCustomDate;if(e&&t){let i=(0,f.parseCustomDatetime)(t,e,this.userTimezone);if(!i.isValid()||i<(0,f.now)(this.userTimezone))return;this.setProperties({lastCustomDate:t,lastCustomTime:e,parsedLastCustomDatetime:i})}}_bindKeyboardShortcuts(){Object.keys(b).forEach(e=>{this._itsatrap.bind(e,()=>{let t=b[e];return this.send(t.handler,...t.args),!1})})}customDatetimeChanged(){this.customDatetimeFilled&&this.selectShortcut(g.TIME_SHORTCUT_TYPES.CUSTOM)}static #d=(()=>dt7948.n(this.prototype,"customDatetimeChanged",[(0,l.observes)("customDate","customTime")]))();options(e,t,i,s){let n;this._loadLastUsedCustomDatetime(),n=e&&e.length?e:(0,g.defaultTimeShortcuts)(s),n=(0,g.hideDynamicTimeShortcuts)(n,s,this.siteSettings);let r=(0,g.specialShortcutOptions)();if(this.lastCustomDate&&this.lastCustomTime){let e=r.findBy("id",g.TIME_SHORTCUT_TYPES.LAST_CUSTOM);e.time=this.parsedLastCustomDatetime,e.timeFormatKey="dates.long_no_year",e.hidden=!1}return n=n.concat(r),t.length>0&&n.forEach(e=>{t.includes(e.id)&&(e.hidden=!0)}),this._applyCustomLabels(n,i),n.forEach(e=>e.timeFormatted=(0,g.formatTime)(e)),n}static #p=(()=>dt7948.n(this.prototype,"options",[(0,m.default)("timeShortcuts","hiddenOptions","customLabels","userTimezone")]))();relativeTimeChanged(e){let t=(0,f.now)(this.userTimezone).add(e,"minutes");this.setProperties({selectedDurationMins:e,selectedDatetime:t}),this.onTimeSelected?.(g.TIME_SHORTCUT_TYPES.RELATIVE,t)}static #m=(()=>dt7948.n(this.prototype,"relativeTimeChanged",[r.action]))();selectShortcut(e){if(this.options.filterBy("hidden").mapBy("id").includes(e))return;let t=null;if(e===g.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 i=(0,f.parseCustomDatetime)(this.customDate,this.customTime,this.userTimezone);i.isValid()&&this.customDate&&(t=i,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 #f=(()=>dt7948.n(this.prototype,"selectShortcut",[r.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,_.i18n)(e.timeFormatKey)))})}_defaultCustomDateTime(){return moment.tz(this.userTimezone).add(1,"hour")}static #y=(()=>(0,s.setComponentTemplate)((0,y.createTemplateFactory)({id:"u8RT4lSa",block:'[[[1,"\\n "],[8,[32,0],null,[["@activeTile"],[[30,0,["selectedShortcut"]]]],[["default"],[[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["options"]]],null]],null],"id",[[[41,[51,[30,2,["hidden"]]],[[[1," "],[8,[32,1],null,[["@tileId","@activeTile","@onChange"],[[30,2,["id"]],[30,1,["activeTile"]],[30,0,["selectShortcut"]]]],[["default"],[[[[1,"\\n\\n "],[10,0],[14,0,"tap-tile-title"],[12],[1,[28,[32,2],[[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,[32,3],["calendar-days"],null]],[1,"\\n "],[8,[32,4],null,[["@value","@defaultDate","@onSelect","@id"],[[30,0,["customDate"]],[30,0,["defaultCustomDate"]],[28,[32,5],[[28,[31,4],[[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,[32,3],["far-clock"],null]],[1,"\\n "],[8,[32,6],[[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,[32,2],["relative_time_picker.relative"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,7],[[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," "]],[1]]]]],[1,"\\n "]],["grid","option"],false,["each","-track-array","unless","if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/time-shortcut-picker.js",scope:()=>[p.default,c.default,_.i18n,h.default,u.default,n.fn,s.Input,d.default],isStrictMode:!0}),this))()},[(0,o.tagName)("")])},14667:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(73326),r=i(70568),a=i(43044),o=i(2080),l=i(74329),u=i(85113),d=i(70508),c=i(1519);class p extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"SGV/Yx9X",block:'[[[1,"\\n "],[10,0],[14,0,"post-topic"],[12],[1,"\\n"],[41,[30,0,["reviewable","topic"]],[[[1," "],[8,[32,0],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,[32,1],[[30,0,["reviewable","topic","fancyTitle"]],[30,0,["reviewable"]]],null]],[13],[1,"\\n "],[1,[28,[32,2],[[30,0,["reviewable","category"]]],null]],[1,"\\n "],[8,[32,3],null,[["@topic","@tags"],[[30,0,["reviewable","topic"]],[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,[32,4],["review.topics.deleted"],null]],[1,"\\n "],[8,[32,5],null,[["@route","@models"],["topic",[28,[32,6],["-",[30,0,["reviewable","removed_topic_id"]]],null]]],[["default"],[[[[1,[28,[32,4],["review.topics.original"],null]]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n "]],["&default"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-topic-link.js",scope:()=>[o.default,u.default,l.default,a.default,d.i18n,r.LinkTo,n.array],isStrictMode:!0}),this))()}},14687:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(87367),n=i(14051),r=i(39829);class a 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,s.ajax)("/sidebar_sections.json",{});this.currentUser.set("sidebar_sections",e.sidebar_sections)}static #e=(()=>dt7948.n(this.prototype,"_refresh",[n.bind]))()}},14690:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(99904),n=i(77296),r=i(70508);let a=class extends s.default{get linkHref(){return(0,n.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})}}},14761:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9032),n=i(91035);function r(e){return(0,s.htmlSafe)(`${(0,n.number)(e.item.get(e.column.name))}`)}},14768:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(76632),n=i(24813),r=i(7953);class a extends r.default{constructor(e,t){super(e,t),(0,s.registerDestructor)(this,e=>e.cleanup())}modify(e,t){let[i,s={}]=t;this.resizeObserver=new ResizeObserver(e=>{this.throttleHandler=(0,n.throttle)(this,i,e,s.delay??0,s.immediate??!1)}),this.resizeObserver.observe(e)}cleanup(){(0,n.cancel)(this.throttleHandler),this.resizeObserver?.disconnect()}}},14785:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(50069);let n={initialize(e){let{serviceWorkerURL:t}=e.lookup("service:session");(0,s.registerServiceWorker)(t)}}},14841:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(53329),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"G1ye77VE",block:'[[[1,"\\n "],[8,[32,0],null,[["@name"],["custom-homepage"]],[["default"],[[[[1,"\\n"],[41,[30,1,["currentUser","admin"]],[[[1," "],[10,2],[14,0,"alert alert-info"],[12],[1,"\\n "],[1,[28,[32,1],["custom_homepage.admin_message"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@controller"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/discovery/custom.js",scope:()=>[n.default,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},14959:(e,t,i)=>{"use strict";i.r(t),i.d(t,{configNavForPlugin:()=>a,registerAdminPluginConfigNav:()=>n,resetAdminPluginConfigNav:()=>r});let s={};function n(e,t){s[e]={links:t}}function r(){s={}}function a(e){return s[e]}},14965:(e,t,i)=>{"use strict";i.r(t),i.d(t,{createStorage:()=>a,getValue:()=>o,setValue:()=>l});var s=i(95047);i(60569);class n{constructor(e,t){this._value=this._lastValue=e,this._isEqual=t}}function r(e,t){return e===t}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;return new n(e,t)}function o(e){return e._value}function l(e,t){let{_isEqual:i,_lastValue:s}=e;i(t,s)||(e._value=e._lastValue=t)}!function(e,t,i,s){var n,r=arguments.length,a=r<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(a=(r<3?n(a):r>3?n(t,i,a):n(t,i))||a);r>3&&a&&Object.defineProperty(t,i,a)}([s.tracked],n.prototype,"_value",void 0)},14978:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(60551),r=i(14086),a=i(97908),o=i(44233);let l=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();#nU=(()=>new Set)();#nB;#nY=(()=>new n.TrackedSet)();#nH(){if(this.isDestroying||this.isDestroyed)return;let e=[...this.#nU];if(e.find(e=>e.id===this.#nB))return;let t=e.sortBy("priority").reverse().find(e=>this.canSeeUserTip(e.id))?.id;this.#nB!==t&&(this.#nY.delete(this.#nB),this.#nY.add(t),this.#nB=t)}shouldRender(e){return this.#nY.has(e)}addAvailableTip(e){this.canSeeUserTip(e.id)&&!this._findAvailableTipById(e.id)&&(this.#nU.add(e),(0,r.default)(this,this.#nH,0))}removeAvailableTip(e){this.#nU.delete(e),this.#nH()}canSeeUserTip(e){if(!this.currentUser)return!1;let t=this.site.user_tips;if(!t||this.currentUser.user_option?.skip_new_user_tips)return!1;if(!t[e])return(0,a.isTesting)()||console.warn("Cannot show user tip with id",e),!1;let i=this.currentUser.user_option?.seen_popups||[];return!(i.includes(-1)||i.includes(t[e]))}async hideUserTipForever(e){if(!this.currentUser)return;let t=this.site.user_tips;if(!t||this.currentUser.user_option?.skip_new_user_tips)return;if(!t[e])return void console.warn("Cannot hide user tip with id",e);let i=[...this.#nU].find(t=>t.id===e);this.removeAvailableTip(i),await this.markAsSeen(e)}async markAsSeen(e){if(!this.currentUser||!e)return;let t=this.site.user_tips;if(!t||this.currentUser.user_option?.skip_new_user_tips)return;let i=this.currentUser.user_option?.seen_popups||[];i.includes(t[e])||(i.push(t[e]),this.currentUser.user_option||this.currentUser.set("user_option",{}),this.currentUser.set("user_option.seen_popups",i),await this.currentUser.save(["seen_popups"]))}async skipTips(){this.currentUser&&(this.#nU.clear(),this.#nY.clear(),this.currentUser.set("user_option.skip_new_user_tips",!0),await this.currentUser.save(["skip_new_user_tips"]))}_findAvailableTipById(e){for(let t of this.#nU)if(t.id===e)return t;return null}},[o.disableImplicitInjections])},15015:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addCardClickListenerSelector:()=>f,default:()=>y,resetCardClickListenerSelector:()=>_});var s=i(32045),n=i(91558),r=i(24813),a=i(75093),o=i(14051),l=i(29466),u=i(86723),d=i(48463),c=i(77296),p=i(35697);let h="#main-outlet",m="scroll.mobile-card-cloak",g=[h];function f(e){g.push(e)}function _(){g=[h]}class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"menu",[a.service]))();#nq=(()=>void dt7948.i(this,"menu"))();static #a=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();elementId=null;visible=!1;username=null;loading=null;cardTarget=null;post=null;isDocked=!1;static #p=(()=>dt7948.g(this.prototype,"postStream",[(0,n.alias)("topic.postStream")]))();#nE=(()=>void dt7948.i(this,"postStream"))();static #m=(()=>dt7948.g(this.prototype,"viewingTopic",[(0,n.match)("router.currentRouteName",/^topic\./)]))();#nz=(()=>void dt7948.i(this,"viewingTopic"))();_menuInstance=null;_show(e,t,i){if(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser)return!0;if(e=(0,p.escapeExpression)(e.toString()),t.closest(".card-content"))return this._close(),c.default.routeTo(t.href),!1;this.appEvents.trigger("card:show",e,t,i);let s=t.closest("article")?.dataset?.postId||null;if(this.visible&&(this._close(),t===this.cardTarget))return;let n=this.viewingTopic&&s?this.postStream.findLoadedPost(s):null;return this.setProperties({username:e,loading:e,cardTarget:t,post:n}),document.querySelector(".card-cloak")?.classList.remove("hidden"),this.appEvents.trigger("user-card:show",{username:e}),(0,r.next)(()=>{this._positionCard(t,i),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 #f=(()=>dt7948.n(this.prototype,"_cardClickHandler",[o.bind]))();_showCardOnClick(e,t,i){let s=e.target.closest(t);if(s){if((0,l.wantsNewWindow)(e))return!0;this._show(i(s),s,e)||(e.preventDefault(),e.stopPropagation())}return!1}_topicHeaderTrigger(e,t,i){return this.set("isDocked",!0),this._show(e,t,i)}_onScroll(){(0,r.throttle)(this,this._close,1e3)}static #y=(()=>dt7948.n(this.prototype,"_onScroll",[o.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,d.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,u.default)(()=>{this.element.setAttribute("tabindex","-1"),this.element.focus()},350)})}_hide(){!this.visible&&this.site.mobileView&&document.querySelector(".card-cloak")?.classList.add("hidden"),this._menuInstance?.destroy()}static #v=(()=>dt7948.n(this.prototype,"_hide",[o.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 #k=(()=>dt7948.n(this.prototype,"_clickOutsideHandler",[o.bind]))();_escListener(e){this.visible&&"Escape"===e.key&&(this.cardTarget?.focus(),this._close())}static #S=(()=>dt7948.n(this.prototype,"_escListener",[o.bind]))()}},15083:(e,t,i)=>{"use strict";i.r(t),i.d(t,{aliasMethod:()=>n,empty:()=>r});let s=Object.prototype.hasOwnProperty;function n(e){return function(){return this[e].apply(this,arguments)}}function r(e){let t;for(t in e)if(s.call(e,t))return!1;return!0}},15096:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(77296),r=i(18254),a=i(27797),o=i(70508);class l extends a.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();pageId="faq";templateName="faq";activate(){super.activate(...arguments),n.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){"faq"===this.pageId&&this.siteSettings.faq_url&&(e.abort(),n.default.redirectTo(this.siteSettings.faq_url))}model(){return r.default.find(this.pageId)}titleToken(){return(0,o.i18n)(this.pageId)}}},15117:(e,t,i)=>{"use strict";i.r(t),i.d(t,{calculateCacheKey:()=>d,extractRouteArgs:()=>o,getActiveTargetName:()=>l,normalizeControllerQueryParams:()=>c,prefixRouteNameArg:()=>h,resemblesURL:()=>p,shallowEqual:()=>m,stashParamNames:()=>u}),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);i(28543);var n=i(18793);i(76169),i(93892),i(90760);var r=i(11719);let a=/\./g;function o(e){let t,i,s=(e=e.slice())[e.length-1];return!function(e){if(e&&"object"==typeof e){let t=e.queryParams;if(t&&"object"==typeof t)return Object.keys(t).every(e=>"string"==typeof e)}return!1}(s)?t={}:(e.pop(),t=s.queryParams),"string"==typeof e[0]&&(i=e.shift()),{routeName:i,models:e,queryParams:t}}function l(e){let t=e.activeTransition?e.activeTransition[r.S].routeInfos:e.state.routeInfos;return t[t.length-1].name}function u(e,t){let i;if(t._namesStashed)return;let s=t[t.length-1].name,n=e._routerMicrolib.recognizer.handlersFor(s);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,n="";for(let r of t){let t,a=function(e,t){let i=e.split("."),s="";for(let e=0;e{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(38069),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"mEirtGHM",block:'[[[1,"\\n"],[41,[30,1,["user_count"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,0],["users"],null]],[1,"\\n "],[1,[28,[32,1],["admin.groups.delete_details"],[["count"],[[30,1,["user_count"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message_count"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,0],["envelope"],null]],[1,"\\n "],[1,[28,[32,1],["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,[32,0],["triangle-exclamation"],null]],[1,"\\n "],[1,[28,[32,1],["admin.groups.delete_warning"],null]],[1,"\\n "],[13],[1,"\\n"]],["@model"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dialog-messages/group-delete.js",scope:()=>[s.default,n.i18n],isStrictMode:!0}),(0,o.default)(void 0,"group-delete:GroupDelete"))},15146:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{static forever="3000-01-01T00:00:00.000Z";static isEternal(e){return moment.utc(e).isSame(s.forever,"day")}}},15217:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},15347:e=>{"use strict";function t(e){if(!(this instanceof t))return new t(e);this.value=e}e.exports=t,t.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}},15383:(e,t,i)=>{"use strict";i.r(t),i.d(t,{compare:()=>u.default,isBlank:()=>n.default,isEmpty:()=>r.default,isEqual:()=>o.default,isNone:()=>s.default,isPresent:()=>a.default,typeOf:()=>l.default});var s=i(85156),n=i(38961),r=i(56749),a=i(79383),o=i(2362),l=i(3561),u=i(9792)},15395:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(75093),r=i(13355),a=i(70508),o=i(32045),l=i(1519);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"desktopNotifications",[n.service]))();#n$=(()=>void dt7948.i(this,"desktopNotifications"))();static #i=(()=>(0,o.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,a.i18n],isStrictMode:!0}),this))()}},15475:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(57079),r=i(63538),a=i(32045),o=i(1519);class l extends s.default{get currentLength(){return this.args.value?.length||0}static #e=(()=>(0,a.setComponentTemplate)((0,o.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,n.gt,n.lt],isStrictMode:!0}),this))()}},15531:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(76632),n=i(75093),r=i(44233);let a=dt7948.c(class extends n.default{#nV=(()=>new Map)();registerClasses(e,t,i){if(this.#nV.has(e)){let s=this.#nV.get(e);this.#nV.set(e,i),this.removeUnusedClasses(t,s)}else this.#nV.set(e,i),(0,s.registerDestructor)(e,()=>{let i=this.#nV.get(e);this.#nV.delete(e),this.removeUnusedClasses(t,i)});for(let e of i)t.classList.add(e)}removeUnusedClasses(e,t){let i=new Set([...this.#nV.values()].flat());for(let s of t)i.has(s)||e.classList.remove(s)}},[r.disableImplicitInjections])},15534:(e,t,i)=>{"use strict";var s=i(31265),n=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];e.exports=function(e,t){if(Object.keys(t=t||{}).forEach(function(t){if(-1===n.indexOf(t))throw new s('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(i){e[i].forEach(function(e){t[String(e)]=i})}),t}(t.styleAliases||null),-1===r.indexOf(this.kind))throw new s('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},15543:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(38069),r=i(19396),a=i(32045),o=i(1519);class l extends s.default{get meta(){return(0,r.extractLinkMeta)(this.args.topicInfo)}static #e=(()=>(0,a.setComponentTemplate)((0,o.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:()=>[n.default],isStrictMode:!0}),this))()}},15601:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(86981),n=i(91558),r=i(75093),a=i(85024),o=i(27912),l=i(14013),u=i(8760),d=i(70508),c=i(29931),p=i(87542),h=i(18649),m=i(46946);let g=dt7948.c(class extends c.default{static #e=(()=>dt7948.g(this.prototype,"tagUtils",[r.service]))();#s2=(()=>void dt7948.i(this,"tagUtils"))();static #i=(()=>dt7948.g(this.prototype,"noTags",[(0,n.empty)("value")]))();#nW=(()=>void dt7948.i(this,"noTags"))();static #n=(()=>dt7948.g(this.prototype,"allowAnyTag",[(0,n.or)("allowCreate","site.can_create_tag")]))();#nK=(()=>void dt7948.i(this,"allowAnyTag"))();static #a=(()=>dt7948.g(this.prototype,"maxTagSearchResults",[(0,o.setting)("max_tag_search_results")]))();#s8=(()=>void dt7948.i(this,"maxTagSearchResults"))();static #l=(()=>dt7948.g(this.prototype,"maxTagsPerTopic",[(0,o.setting)("max_tags_per_topic")]))();#nG=(()=>void dt7948.i(this,"maxTagsPerTopic"))();modifyComponentForRow(e,t){return this.getValue(t)!==this.selectKit.filter||t.count?m.default:h.default}modifyNoSelection(){return this.selectKit.options.minimum>0?this.defaultItem(null,(0,d.i18n)("tagging.choose_for_topic_required",{count:this.selectKit.options.minimum})):this.defaultItem(null,(0,d.i18n)("tagging.choose_for_topic"))}get caretIcon(){let e=this.selectKit.options.maximum;return e&&(0,u.makeArray)(this.value).length>=parseInt(e,10)?null:"plus"}static #d=(()=>dt7948.n(this.prototype,"caretIcon",[(0,s.computed)("value.[]","content.[]")]))();get content(){let e=(0,u.makeArray)(this.value);return this.selectKit.options.hiddenValues&&(e=e.filter(e=>!this.selectKit.options.hiddenValues.includes(e))),e.map(e=>this.defaultItem(e,e))}static #p=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("value.[]")]))();validateCreate(e,t){return this.tagUtils.validateCreate(e,t,this.selectKit.options.maximum,e=>this.addError(e),this.termMatchesForbidden,e=>this.getValue(e),this.value)}createContentFromInput(e){return this.tagUtils.createContentFromInput(e)}search(e){let t=this.selectKit.options.maximum;if(0===t)return this.addError((0,d.i18n)("select_kit.max_content_reached",{count:t})),[];let i={q:e||"",limit:this.maxTagSearchResults,categoryId:this.selectKit.options.categoryId};return this.value&&(i.selected_tags=this.value.slice(0,100)),this.selectKit.options.everyTag||(i.filterForInput=!0),this.tagUtils.searchTags("/tags/filter/search",i,this._transformJson)}_transformJson(e){if(this.isDestroyed||this.isDestroying)return[];let t=e.results;return this.setProperties({termMatchesForbidden:!!e.forbidden,termMatchErrorMessage:e.forbidden_message}),this.siteSettings.tags_sort_alphabetically&&(t=t.sort((e,t)=>e.text.localeCompare(t.text))),e.required_tag_group?this.set("selectKit.options.translatedFilterPlaceholder",(0,d.i18n)("tagging.choose_for_topic_required_group",{count:e.required_tag_group.min_count,name:e.required_tag_group.name})):this.set("selectKit.options.translatedFilterPlaceholder",null),t.filter(e=>!(0,u.makeArray)(this.tags).includes(e.id))}static #m=(()=>dt7948.n(this.prototype,"_transformJson",[l.bind]))()},[(0,p.pluginApiIdentifiers)(["mini-tag-chooser"]),(0,p.selectKitOptions)({allowAny:"allowAnyTag",fullWidthOnMobile:!0,filterable:!0,caretDownIcon:"caretIcon",caretUpIcon:"caretIcon",termMatchesForbidden:!1,categoryId:null,everyTag:!1,closeOnChange:!1,maximum:"maxTagsPerTopic",autoInsertNoneItem:!1,useHeaderFilter:!1}),(0,a.classNameBindings)("noTags"),(0,a.classNames)("mini-tag-chooser"),(0,a.attributeBindings)("selectKit.options.categoryId:category-id")])},15618:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(7155),r=i(86981),a=i(24813),o=i(75093),l=i(13355),u=i(63538),d=i(14051),c=i(97908),p=i(86723),h=i(70508),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"messageBus",[o.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #i=(()=>dt7948.g(this.prototype,"session",[o.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"showPrompt",[n.tracked],function(){return!1}))();#nJ=(()=>void dt7948.i(this,"showPrompt"))();static #a=(()=>dt7948.g(this.prototype,"animatePrompt",[n.tracked],function(){return!1}))();#nQ=(()=>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,a.cancel)(this.timeoutHandler)}onRefresh(){this.session.requiresRefresh=!0}static #l=(()=>dt7948.n(this.prototype,"onRefresh",[d.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,p.default)(()=>this.updatePromptState(!0),864e5))}static #d=(()=>dt7948.n(this.prototype,"onAsset",[d.bind]))();updatePromptState(e){let t=e?"animatePrompt":"showPrompt";this[e?"showPrompt":"animatePrompt"]=e,(0,c.isTesting)()?this[t]=e:(0,p.default)(()=>this[t]=e,500)}refreshPage(){document.location.reload()}static #p=(()=>dt7948.n(this.prototype,"refreshPage",[r.action]))();dismiss(){this.updatePromptState(!1)}static #m=(()=>dt7948.n(this.prototype,"dismiss",[r.action]))();static #f=(()=>(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))()}},15728:e=>{var t=Array.isArray,i=Object.prototype.toString;e.exports=t||function(e){return"[object Array]"===i.call(e)}},15785:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})},15820:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(54187);let n=(0,s.default)("user","private-messages-unread",s.UNREAD_FILTER)},15835:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(15383),n=i(97908),r=i(11837),a=i(39668);function o(){let{redirect:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,n.isTesting)())return;let t=(0,a.helperContext)();if(t.keyValueStore.abandonLocal(),!(0,s.isEmpty)(e)){window.location.href=e;return}let i=t.siteSettings.login_required?"/login":"/";window.location.href=(0,r.default)(i)}},15869:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u,renderCategory:()=>a,renderOption:()=>l,renderTag:()=>o});var s=i(14104),n=i(21530),r=i(35697);function a(e){let t=(0,s.default)(e.model,{allowUncategorized:!0,link:!1});return`
  • ${t}
  • `}function o(e){let t=`${(0,r.escapeExpression)(e.name)} x ${(0,r.escapeExpression)(e.count)}`;return`
  • ${(0,n.iconHTML)("tag")}${t}
  • `}function l(e){return e.model?a(e):o(e)}function u(e){let{options:t}=e;return`
      ${t.map(l).join("")}
    `}},15910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(99904),n=i(77296),r=i(70508);let a=class extends s.default{get linkHref(){return(0,n.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})}}},15936:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(91558),r=i(85024),a=i(53329),o=i(10458),l=i(14051),u=i(11837),d=i(70508),c=i(1519);let p=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"hidden",[(0,n.alias)("siteSettings.login_required")]))();#iY=(()=>void dt7948.i(this,"hidden"))();siteUrl(){return`${location.protocol}//${location.host}${(0,u.default)("/")}`}static #i=(()=>dt7948.n(this.prototype,"siteUrl",[l.default]))();static #n=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"ZxSm/CkS",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs","@defaultGlimmer"],["google-search",[28,[32,1],null,[["searchTerm","siteUrl"],[[30,0,["searchTerm"]],[30,0,["siteUrl"]]]]],true]],[["default"],[[[[1,"\\n "],[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,[32,2],["search.search_google"],null]],[15,2,[30,1]],[14,4,"text"],[12],[13],[1,"\\n "],[10,"input"],[14,3,"as_sitesearch"],[15,2,[30,2]],[14,4,"hidden"],[12],[13],[1,"\\n "],[10,"button"],[14,0,"btn btn-primary"],[14,4,"submit"],[12],[1,[28,[32,2],["search.search_google_button"],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@searchTerm","@siteUrl"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/google-search.js",scope:()=>[a.default,o.default,d.i18n],isStrictMode:!0}),this))()},[(0,r.classNameBindings)("hidden:hidden"),(0,r.classNames)("google-search-form")])},15953:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.A});var s=i(87839)},15958:(e,t,i)=>{"use strict";i.r(t),i.d(t,{InstructionEncoderImpl:()=>n});var s=i(73523);class n{constructor(e){this.buffer=e}size=0;encode(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;rs.TYPE_SIZE)throw Error(`Opcode type over 8-bits. Got ${e}.`);let a=e|t|arguments.length-2<{"use strict";i.r(t),i.d(t,{Result:()=>l,default:()=>d});var s=i(86981),n=i(94160),r=i(87367),a=i(24873);let o=["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 d extends s.default{primaryKey="id";jsonMode=!1;storageKey(e,t,i){if(i&&i.cacheKey)return i.cacheKey;let s=Math.abs((0,a.hashString)(JSON.stringify(t)));return`${e}_${s}`}basePath(e,t){return o.includes(t.replace("_","-"))?"/admin/":"/"}appendQueryParams(e,t,i){if(t)if("object"!=typeof t)return`${e}/${encodeURIComponent(t)}${i||""}`;else{let s=new URLSearchParams;for(let[e,i]of Object.entries(t))i&&s.set(e,i);let n=s.toString();if(n)return`${e}${i||""}?${n}`}return e}pathFor(e,t,i){let s=this.basePath(e,t,i)+(0,n.underscore)(e.pluralize(this.apiNameFor(t)));return this.appendQueryParams(s,i)}apiNameFor(e){return e}findAll(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i)).catch(u)}find(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i)).catch(u)}findStale(e,t,i,s){if(this.cached)return this.cached[this.storageKey(t,i,s)]}cacheFind(e,t,i,s,n){this.cached=this.cached||{},this.cached[this.storageKey(t,i,s)]=n}getPayload(e,t){let i={method:e,data:t};return this.jsonMode&&(i.contentType="application/json",i.data=JSON.stringify(t)),i}update(e,t,i,s){let a={},o=(0,n.underscore)(this.apiNameFor(t));return a[o]=s,(0,r.ajax)(this.pathFor(e,t,i),this.getPayload("PUT",a)).then(function(e){return new l(e[o],e)})}createRecord(e,t,i){let s={},a=(0,n.underscore)(this.apiNameFor(t));return s[a]=i,(0,r.ajax)(this.pathFor(e,t),this.getPayload("POST",s)).then(function(e){return new l(e[a],e)})}destroyRecord(e,t,i){return(0,r.ajax)(this.pathFor(e,t,i.get(this.primaryKey)),{type:"DELETE"})}}},16029:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(94447).default)("inbox")},16054:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:0,doy:4}})})},16065:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(76632),n=i(24302),r=i(7953),a=i(14013),o=i(52277);class l extends r.default{constructor(e,t){super(e,t),(0,s.registerDestructor)(this,e=>e.teardown())}modify(e,t){let[i,s,r]=t;r.content=e,this.instance=r,this.options=s??{},this.options.autoUpdate?this.cleanup=(0,n.ll)(i,e,this.update,{ancestorScroll:s.updateOnScroll}):this.update()}async update(){await (0,o.updatePosition)(this.instance.trigger,this.instance.content,this.options)}static #e=(()=>dt7948.n(this.prototype,"update",[a.bind]))();teardown(){this.cleanup?.()}}},16102:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(7155),r=i(64081),a=i(24813),o=i(94160),l=i(9032),u=i(91720),d=i(38069),c=i(14051),p=i(8835),h=i(22128),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"uploadValue",[n.tracked]))();#nX=(()=>void dt7948.i(this,"uploadValue"))();static #i=(()=>dt7948.g(this.prototype,"uploadedFiles",[n.tracked],function(){return[]}))();#nZ=(()=>void dt7948.i(this,"uploadedFiles"))();static #n=(()=>dt7948.g(this.prototype,"fileInputSelector",[n.tracked],function(){return`#${this.fileUploadElementId}`}))();#n1=(()=>void dt7948.i(this,"fileInputSelector"))();static #a=(()=>dt7948.g(this.prototype,"fileUploadElementId",[n.tracked],function(){return`${(0,o.dasherize)(this.args.id.toString())}-uploader`}))();#n0=(()=>void dt7948.i(this,"fileUploadElementId"))();uppyUpload=(()=>new h.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,i=e.name.split(".").pop();return!t||t.includes(`.${i}`)||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,(0,a.next)(this,()=>{this.args.onChange(this.uploadValue)})}static #l=(()=>dt7948.n(this.prototype,"uploadDone",[c.bind]))();buildMarkdown(e){return(0,p.isImage)(e.url)?`![${e.file_name}|${e.width}x${e.height}](${e.short_url})`:(0,p.isAudio)(e.url)?`![${e.file_name}|audio](${e.short_url})`:(0,p.isVideo)(e.url)?`![${e.file_name}|video](${e.short_url})`:`[${e.file_name}|attachment](${e.short_url}) (${e.human_filesize})`}static #d=(()=>(0,m.setComponentTemplate)((0,g.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,l.htmlSafe,u.default],isStrictMode:!0}),this))()}},16114:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}})})},16162:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})})},16308:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(84965),n=i(77982);class r extends s.default{title(){return(0,n.applyValueTransformer)("post-flag-title","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,i=(t=t.filter(e=>e.applies_to.includes("Post"))).indexOf(t.filterBy("name_key","notify_user")[0]);if(-1!==i){let e=t[i];t.splice(i,1),t.splice(0,0,e)}return(0,n.applyValueTransformer)("post-flag-available-flags",t)}postActionFor(e){return e.args.model.flagModel.actions_summary.findBy("id",e.selected.id)}}},16356:(e,t,i)=>{"use strict";i.r(t),i.d(t,{extractError:()=>u,extractErrorInfo:()=>l,flashAjaxError:()=>c,popupAjaxError:()=>p,throwAjaxError:()=>d});var s=i(9032),n=i(41107),r=i.n(n),a=i(71455),o=i(70508);function l(e,t){e instanceof Error&&console.error(e.stack),"string"==typeof e&&console.error(e),e.jqXHR&&(e=e.jqXHR);let i=!1,s,n;if(e.responseJSON&&(n=e.responseJSON),!n&&e.responseText)try{n=r().parseJSON(e.responseText)}catch(e){console.error(e.stack)}return n&&(n.html_message&&(i=!0),n.errors?.length>1?s=(0,o.i18n)("multiple_errors",{errors:n.errors.map((e,t)=>`${t+1}) ${e}`).join(" ")}):n.errors?.length>0?s=(0,o.i18n)("generic_error_with_reason",{error:n.errors[0]}):n.error?s=n.error:n.message?s=n.message:n.failed&&(s=n.failed)),!s&&e.status&&e.status>=400&&(s=e.status+" "+e.statusText),{html:i,message:s||t||(0,o.i18n)("generic_error")}}function u(e,t){return l(e,t).message}function d(e,t){return function(i){throw e&&e(i),u(i,t)}}function c(e,t){return i=>{e.flash(u(i,t),"error")}}function p(e){let t=(0,a.getOwnerWithFallback)(this).lookup("service:dialog"),i=l(e);i.html?t.alert({message:(0,s.htmlSafe)(i.message)}):t.alert(i.message)}},16423:e=>{var t={};function i(e,t,i){if(0===e.length)return!1;for(var s,n,r=0,a=e.length-1;r<=a;){if(n=e[s=(a+r)/2|0],r===a)return n>=t&&n<=i;if(ni))return!0;a=s-1}}return!1}function s(e,t){return e>t?1:-1}e.exports=function(e,n,r,a){return r&&0!==r.length?(r.sort(s),function e(s,n,r,a,o){if(a=a||{},s){i(r,o,o)&&(a[o]=s);var l=n.children;if(l)for(var u=s.childNodes,d=0;d{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(73326),r=i(15383),a=i(47807),o=i(32045),l=i(1519),u=i(69522);let d=(0,o.setComponentTemplate)((0,l.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:()=>[a.DSelectOption],isStrictMode:!0}),(0,u.default)(void 0,"select:SelectOption"));class c extends s.default{static controlType="select";get includeNone(){return!!(0,r.isBlank)(this.args.field.value)||(this.args.includeNone??!this.args.field.validation?.includes("required"))}static #e=(()=>(0,o.setComponentTemplate)((0,l.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:()=>[a.default,n.hash,d],isStrictMode:!0}),this))()}},16560:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(64081),r=i(70787);class a extends s.default{click(e){if(e?.target?.tagName==="A")return r.default.trackClick(e,(0,n.getOwner)(this))}}},16661:e=>{"use strict";e.exports=function(e){if("number"!=typeof e||Number.isNaN(e))throw TypeError(`Expected a number, got ${typeof e}`);let t=e<0,i=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return`${(t?"-":"")+e} B`;let s=Math.min(Math.floor(Math.log(e)/Math.log(1024)),i.length-1);e=Number(e/1024**s);let n=i[s];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${n}`:`${(t?"-":"")+e.toFixed(1)} ${n}`}},16673:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(73326),r=i(86981),a=i(13355),o=i(39826),l=i(50817),u=i(87367),d=i(16356),c=i(70508),p=i(32045),h=i(1519);class m extends s.default{delete(){(0,u.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(d.popupAjaxError)}static #e=(()=>dt7948.n(this.prototype,"delete",[r.action]))();static #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"hy0UXPgS",block:'[[[1,"\\n "],[8,[32,0],null,[["@closeModal","@title"],[[30,1],[28,[32,1],["admin.customize.bulk_delete"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[32,1],[[28,[32,2],["admin.customize.bulk_",[30,2,["type"]],"_delete_confirm"],null]],null]],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[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,[32,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["delete"]],"yes_value"]],null],[1,"\\n "],[8,[32,4],null,[["@close"],[[30,1]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model","theme"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/delete-themes-confirm.js",scope:()=>[o.default,c.i18n,n.concat,a.default,l.default],isStrictMode:!0}),this))()}},16682:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(38069),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"input-tip:InputTip"))},16756:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(73326),r=i(57079),a=i(1158),o=i(63272),l=i(32045),u=i(1519);class d extends s.default{constructor(){super(...arguments),(0,o.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:()=>[a.default,n.concat,r.notEq],isStrictMode:!0}),this))()}},16820:(e,t,i)=>{"use strict";e.exports=new(i(15534))("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},16832:(e,t,i)=>{var s=i(19860),n=i(86820);function r(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function e(t,i){var a;for(var o in t){o in i||((a=a||{})[o]=void 0);var l=t[o],u=i[o];if(l!==u)if(s(l)&&s(u))if(r(u)!==r(l))(a=a||{})[o]=u;else if(n(u))(a=a||{})[o]=u;else{var d=e(l,u);d&&((a=a||{})[o]=d)}else(a=a||{})[o]=u}for(var c in i)c in t||((a=a||{})[c]=i[c]);return a}},16840:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(50890),n=i(86981),r=i(75093),a=i(16356),o=i(14051);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"groupAutomaticMembersDialog",[r.service]))();#n3=(()=>void dt7948.i(this,"groupAutomaticMembersDialog"))();saving=null;splitOwnerUsernames(e){return e&&e.length?e.split(","):[]}static #n=(()=>dt7948.n(this.prototype,"splitOwnerUsernames",[(0,o.default)("model.ownerUsernames")]))();splitUsernames(e){return e&&e.length?e.split(","):[]}static #a=(()=>dt7948.n(this.prototype,"splitUsernames",[(0,o.default)("model.usernames")]))();async save(){this.set("saving",!0);let e=this.model;if(!await this.groupAutomaticMembersDialog.showConfirm(e.id,e.automatic_membership_email_domains))return void this.set("saving",!1);e.create().then(()=>{this.router.transitionTo("group.members",e.name)}).catch(a.popupAjaxError).finally(()=>this.set("saving",!1))}static #l=(()=>dt7948.n(this.prototype,"save",[n.action]))();updateOwnerUsernames(e){this.set("model.ownerUsernames",e.join(","))}static #d=(()=>dt7948.n(this.prototype,"updateOwnerUsernames",[n.action]))();updateUsernames(e){this.set("model.usernames",e.join(","))}static #p=(()=>dt7948.n(this.prototype,"updateUsernames",[n.action]))()}},16852:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(57165),n=i(24813),r=i(75093);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"header",[r.service]))();#t_=(()=>void dt7948.i(this,"header"))();registerHider(e){this.header.registerHider(this,e)}compute(e){let[...t]=e;(0,n.scheduleOnce)("afterRender",this,this.registerHider,t)}}},16864:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(85024),n=i(40414),r=i.n(n),a=i(18649),o=i(32045),l=i(1519);let u=dt7948.c(class extends a.default{static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"LFNrrV86",block:'[[[1,"\\n"],[41,[30,0,["item","url"]],[[[1," "],[8,[32,0],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["item","name"]],[30,0,["item","url"]],[30,0,["item","bgColor"]],[30,0,["item","color"]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,1],[12],[1,[30,0,["label"]]],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/flair-row.js",scope:()=>[r()],isStrictMode:!0}),this))()},[(0,s.classNames)("flair-row")])},16988:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d,includeAttributes:()=>l,transformBasicPost:()=>u});var s=i(15383),n=i(11837),r=i(77296),a=i(18323);let o=new Set;function l(){for(var e=arguments.length,t=Array(e),i=0;io.add(e))}function u(e){let t={id:e.id,hidden:e.hidden,deleted:e.get("deleted"),deleted_at:e.deleted_at,user_deleted:e.user_deleted,isDeleted:e.deleted,deletedByAvatarTemplate:null,deletedByUsername:null,primary_group_name:e.primary_group_name,flair_name:e.flair_name,flair_url:e.flair_url,flair_bg_color:e.flair_bg_color,flair_color:e.flair_color,flair_group_id:e.flair_group_id,wiki:e.wiki,lastWikiEdit:e.last_wiki_edit,firstPost:1===e.post_number,post_number:e.post_number,cooked:e.cooked,via_email:e.via_email,isAutoGenerated:e.is_auto_generated,user_id:e.user_id,usernameUrl:(0,r.userPath)(e.username),username:e.username,badgesGranted:e.badges_granted?.map(e=>a.default.createFromJson(e)[0]),avatar_template:e.avatar_template,bookmarked:e.bookmarked,bookmarkReminderAt:e.bookmark_reminder_at,bookmarkName:e.bookmark_name,yours:e.yours,shareUrl:e.get("shareUrl"),staff:e.staff,admin:e.admin,moderator:e.moderator,groupModerator:e.group_moderator,new_user:0===e.trust_level,name:e.name,user_title:e.user_title,title_is_group:e.title_is_group,created_at:e.created_at,updated_at:e.updated_at,canDelete:e.can_delete,canPermanentlyDelete:!1,showFlagDelete:!1,canRecover:e.can_recover,canSeeHiddenPost:e.can_see_hidden_post,canEdit:e.can_edit,canFlag:!e.get("topic.deleted")&&!(0,s.isEmpty)(e.get("flagsAvailable")),canReviewTopic:!1,reviewableId:e.reviewable_id,reviewableScoreCount:e.reviewable_score_count,reviewableScorePendingCount:e.reviewable_score_pending_count,version:e.version,canRecoverTopic:!1,canDeleteTopic:!1,canViewEditHistory:e.can_view_edit_history,canWiki:e.can_wiki,showLike:!1,liked:!1,canToggleLike:!1,likeCount:!1,actionsSummary:null,read:e.read,replyToUsername:null,replyToName:null,replyToAvatarTemplate:null,reply_to_post_number:e.reply_to_post_number,cooked_hidden:!!e.cooked_hidden,expandablePost:!1,replyCount:e.reply_count,locked:e.locked,userCustomFields:e.user_custom_fields,readCount:e.readers_count,canPublishPage:!1,trustLevel:e.trust_level,userSuspended:e.user_suspended,locale:e.locale,is_localized:e.is_localized,language:e.language,localization_outdated:e.localization_outdated};return o.forEach(i=>t[i]=e[i]),t}function d(e,t,i,s,r){let a=i.post_type,l=t.post_types,d=i.topic,c=d.get("details"),p=d.get("postStream.filterUpwardsPostID"),h=d.get("postStream.filterRepliesToPostNumber"),m=u(i),g=c.created_by||{};m.topic=d,m.topicId=d.id,m.topicOwner=g.id===i.user_id,m.topicCreatedById=g.id,m.post_type=a,m.via_email=i.via_email,m.isAutoGenerated=i.is_auto_generated,m.isModeratorAction=i.isModeratorAction,m.isWhisper=i.isWhisper,m.isSmallAction=a===l.small_action||"split_topic"===i.action_code,m.canBookmark=!!e,m.canManage=i.canManage,m.canViewRawEmail=e&&e.can_view_raw_email,m.canArchiveTopic=!!c.can_archive_topic,m.canCloseTopic=!!c.can_close_topic,m.canSplitMergeTopic=!!c.can_split_merge_topic,m.canEditStaffNotes=i.canEditStaffNotes,m.canReplyAsNewTopic=!!c.can_reply_as_new_topic,m.canReviewTopic=!!c.can_review_topic,m.canPublishPage=i.canPublishPage,m.isWarning=d.is_warning,m.links=i.get("internalLinks"),m.replyDirectlyBelow=r&&r.reply_to_post_number===i.post_number&&i.post_number!==h,m.replyDirectlyAbove=s&&i.id!==p&&i.reply_to_post_number===s.post_number,m.linkCounts=i.link_counts,m.actionCode=i.action_code,m.actionCodeWho=i.action_code_who,m.actionCodePath=(0,n.default)(i.action_code_path||`/t/${d.id}`),m.topicUrl=d.get("url"),m.isSaving=i.isSaving,m.staged=i.staged,m.user=i.user,i.notice&&(m.notice=i.notice,m.noticeCreatedByUser=i.notice_created_by_user,"returning_user"===m.notice.type&&(m.notice.lastPostedAt=new Date(i.notice.last_posted_at))),1===i.post_number&&d.requested_group_name&&(m.requestedGroupName=d.requested_group_name),m.isDeleted&&(m.deletedByAvatarTemplate=i.get("deletedBy.avatar_template"),m.deletedByUsername=i.get("deletedBy.username"));let f=i.get("reply_to_user");f&&(m.replyToUsername=f.username,m.replyToName=f.name,m.replyToAvatarTemplate=f.avatar_template),i.actions_summary&&(m.actionsSummary=i.actions_summary.filter(e=>"like"!==e.actionType.name_key&&e.acted).map(e=>({id:e.id,postId:i.id,action:e.actionType.name_key,canUndo:e.can_undo,description:e.actionType.translatedDescription}))),m.liked=i.liked;let _=i.likeAction;return _?(m.canToggleLike=_.get("canToggle"),m.showLike=m.liked||m.canToggleLike,m.likeCount=_.count):(!e||d.archived&&d.user_id!==e.id)&&(m.showLike=!0),m.canDelete=i.canDelete,m.canDeleteTopic=i.canDeleteTopic,m.canPermanentlyDelete=i.canPermanentlyDelete,m.canRecover=i.canRecover,m.canRecoverTopic=i.canRecoverTopic,1===m.post_number?(m.expandablePost=d.expandable_first_post,m.showFlagDelete=!m.canDelete&&m.yours&&m.canFlag&&e&&!e.staff):m.canDelete=m.canDelete&&!i.deleted_at&&e&&(e.staff||!i.user_deleted),o.forEach(e=>m[e]=i[e]),m}},16991:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(73326),n=i(57079),r=i(13355),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.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,s.fn,n.or],isStrictMode:!0}),(0,l.default)(void 0,"share-source:ShareSource"))},16994:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{asyncEnd:()=>l,asyncStart:()=>o,getAdapter:()=>r,setAdapter:()=>a});var n=i(54134);function r(){return s}function a(e){s=e,e&&"function"==typeof e.exception?(0,n.setDispatchOverride)(u):(0,n.setDispatchOverride)(null)}function o(){s&&s.asyncStart()}function l(){s&&s.asyncEnd()}function u(e){s.exception(e),console.error(e.stack)}},17020:e=>{e.exports=function(e){var t=String.prototype.split,i=/()??/.exec("")[1]===e;return function(s,n,r){if("[object RegExp]"!==Object.prototype.toString.call(n))return t.call(s,n,r);var a,o,l,u,d=[],c=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.extended?"x":"")+(n.sticky?"y":""),p=0,n=RegExp(n.source,c+"g");for(s+="",i||(a=RegExp("^"+n.source+"$(?!\\s)",c)),r=r===e?0xffffffff:r>>>0;(o=n.exec(s))&&(!((l=o.index+o[0].length)>p)||(d.push(s.slice(p,o.index)),!i&&o.length>1&&o[0].replace(a,function(){for(var t=1;t1&&o.index=r)));)n.lastIndex===o.index&&n.lastIndex++;return p===s.length?(u||!n.test(""))&&d.push(""):d.push(s.slice(p)),d.length>r?d.slice(0,r):d}}()},17032:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(50890),n=i(86981),r=i(38161),a=i(14051);class o extends s.default{static #e=(()=>dt7948.g(this.prototype,"group",[s.inject]))();#n2=(()=>void dt7948.i(this,"group"))();static #i=(()=>dt7948.g(this.prototype,"application",[s.inject]))();#sF=(()=>void dt7948.i(this,"application"))();loading=!1;offset=0;filters=(()=>n.default.create())();filterParams(e,t,i,s){return{action:e,acting_user:t,target_user:i,subject:s}}static #n=(()=>dt7948.n(this.prototype,"filterParams",[(0,a.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 #a=(()=>dt7948.n(this.prototype,"_refreshModel",[(0,r.observes)("filters.action","filters.acting_user","filters.target_user","filters.subject")]))();reset(){this.setProperties({offset:0,filters:n.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 #l=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();clearFilter(e){this.set(`filters.${e}`,"")}static #d=(()=>dt7948.n(this.prototype,"clearFilter",[n.action]))()}},17091:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(73326),r=i(9032),a=i(16682),o=i(70508),l=i(80753),u=i(1519);class d extends l.default{static #e=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"FRKkyatR",block:'[[[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,0],[[16,1,[28,[32,1],["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,[32,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[32,2],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n"],[41,[30,0,["validation","failed"]],[[[1," "],[8,[32,3],null,[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,4],[[30,0,["field","description"]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-fields/text.js",scope:()=>[s.Input,n.concat,o.i18n,a.default,r.htmlSafe],isStrictMode:!0}),this))()}},17094:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(24813),n=i(75093),r=i(87367),a=i(14051),o=i(97908),l=i(44233),u=i(30258);let d=[5e3,1e4,2e4,4e4],c=[405,429,500,501,502,503,504],p=dt7948.c(class extends n.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"keyValueStore",[n.service]))();#u=(()=>void dt7948.i(this,"keyValueStore"))();static #a=(()=>dt7948.g(this.prototype,"session",[n.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #d=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();_ajaxFailures=0;_consolidatedTimings=[];_lastTick=null;_lastScrolled=null;_lastFlush=0;_timings=(()=>new Map)();_totalTimings=(()=>new Map)();_topicTime=0;_onscreen=null;_readOnscreen=null;_readPosts=(()=>new Set)();_inProgress=!1;constructor(){super(...arguments),this.reset()}start(e,t){this._topicId&&this._topicId!==e&&(this.tick(),this.flush()),this.reset(),this._interval||(this._interval=setInterval(()=>{(0,s.run)(()=>this.tick())},1e3),window.addEventListener("scroll",this.scrolled)),this._topicId=e,this._topicController=t}stop(){this._topicId&&(window.removeEventListener("scroll",this.scrolled),this.tick(),this.flush(),this.reset(),this._topicId=null,this._topicController=null,this._interval&&(clearInterval(this._interval),this._interval=null))}setOnscreen(e,t){this._onscreen=e,this._readOnscreen=t}reset(){let e=Date.now();this._lastTick=e,this._lastScrolled=e,this._lastFlush=0,this._timings.clear(),this._totalTimings.clear(),this._topicTime=0,this._onscreen=null,this._readOnscreen=null,this._readPosts.clear(),this._inProgress=!1}scrolled(){this._lastScrolled=Date.now()}static #p=(()=>dt7948.n(this.prototype,"scrolled",[a.bind]))();registerAnonCallback(e){this._anonCallback=e}consolidateTimings(e,t,i){let s=this._consolidatedTimings.findIndex(e=>e.topicId===i);if(s>-1){let i=this._consolidatedTimings[s],n=this._consolidatedTimings.length-1;if(s!==n){let e=this._consolidatedTimings[n];this._consolidatedTimings[n]=i,this._consolidatedTimings[n-1]=e}Object.keys(i.timings).forEach(t=>{e[t]&&(i.timings[t]+=e[t])}),i.topicTime+=t,i.timings={...e,...i.timings}}else this._consolidatedTimings.push({timings:e,topicTime:t,topicId:i});let n=parseInt(Object.keys(e).lastObject,10),r=this.highestReadFromCache(i);return(!r||rDate.now())return;let{timings:e,topicTime:t,topicId:i}=this._consolidatedTimings.pop(),s={timings:e,topic_time:t,topic_id:i};this._inProgress=!0;try{if(await (0,r.ajax)("/topics/timings",{data:s,type:"POST",headers:{"X-SILENCE-LOGGER":"true","Discourse-Background":"true"}}),this.isDestroying||this.isDestroyed)return;if(this._ajaxFailures=0,this._topicController){let t=Object.keys(e).map(e=>parseInt(e,10));this._topicController.readPosts(i,t);let s=this.highestReadFromCache(i);s&&s<=t.lastObject&&(0,u.resetHighestReadCache)(i)}this.appEvents.trigger("topic:timings-sent",s)}catch(s){if(s.jqXHR&&c.includes(s.jqXHR.status)){let s=d[this._ajaxFailures];this._ajaxFailures+=1,s&&(this._blockSendingToServerTill=Date.now()+s,this.consolidateTimings(e,t,i))}window.console&&window.console.warn&&s.jqXHR&&window.console.warn(`Failed to update topic times for topic ${i} due to ${s.jqXHR.status} error`)}finally{this._inProgress=!1,this._lastFlush=0}}flush(){let e={};for(let[t,i]of this._timings){this._totalTimings.has(t)||this._totalTimings.set(t,0);let s=this._totalTimings.get(t);i>0&&s<36e4&&(this._totalTimings.set(t,s+i),e[t]=i),this._timings.set(t,0)}let t=parseInt(this._topicId,10),i=this._topicController?.get("model.postStream");this.currentUser&&this.currentUser.get("ignored_users.length")&&i&&i.hasNoFilters&&!i.canAppendMore&&i.posts.lastObject&&i.posts.lastObject.read&&i.gaps&&i.gaps.after[i.posts.lastObject.id]&&i.topic.last_read_post_number!==i.posts.lastObject.post_number+i.get(`gaps.after.${i.posts.lastObject.id}.length`)&&(e[i.posts.lastObject.post_number+i.get(`gaps.after.${i.posts.lastObject.id}.length`)]=1);let s=Object.keys(e).map(e=>parseInt(e,10)).reduce((e,t)=>Math.max(e,t),0),n=this.session.get("highestSeenByTopic");if((n[t]||0)0){if(this.currentUser)this.consolidateTimings(e,this._topicTime,t),(0,o.isTesting)()||this.sendNextConsolidatedTiming();else if(this._anonCallback){let e=this.keyValueStore.getInt("anon-topic-time");this.keyValueStore.setItem("anon-topic-time",e+this._topicTime);let i=this.keyValueStore.get("anon-topic-ids");!(i=i?i.split(",").map(e=>parseInt(e,10)):[]).includes(t)&&i.length<5&&(i.push(t),this.keyValueStore.setItem("anon-topic-ids",i.join(","))),this._anonCallback()}this._topicTime=0}this._lastFlush=0}tick(){let e=Date.now();if(e-this._lastScrolled>18e4)return;let t=e-this._lastTick;this._lastFlush+=t,this._lastTick=e;let i=1e3*this.siteSettings.flush_timings_secs,s=[...this._timings.entries()].some(e=>{let[t,i]=e;return i>0&&!this._totalTimings.get(t)&&!this._readPosts.has(t)});!this._inProgress&&(this._lastFlush>i||s)&&this.flush(),this._inProgress||this.sendNextConsolidatedTiming(),this.session.hasFocus&&(this._topicTime+=t,this._onscreen?.forEach(e=>this._timings.set(e,(this._timings.get(e)??0)+t)),this._readOnscreen?.forEach(e=>{this._readPosts.add(e)}))}},[l.disableImplicitInjections])},17160:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>D});var s=i(93317),n=i(73326),r=i(86981),a=i(75093),o=i(9032);let l={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"};var u=[`a[href]${l.inert}${l.negTabIndex}`,`area[href]${l.inert}${l.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${l.inert}${l.negTabIndex}${l.disabled}`,`input[type="radio"]${l.inert}${l.negTabIndex}${l.disabled}`,`select${l.inert}${l.negTabIndex}${l.disabled}`,`textarea${l.inert}${l.negTabIndex}${l.disabled}`,`button${l.inert}${l.negTabIndex}${l.disabled}`,`details${l.inert} > summary:first-of-type${l.negTabIndex}`,`iframe${l.inert}${l.negTabIndex}`,`audio[controls]${l.inert}${l.negTabIndex}`,`video[controls]${l.inert}${l.negTabIndex}`,`[contenteditable]${l.inert}${l.negTabIndex}`,`[tabindex]${l.inert}${l.negTabIndex}`];function d(e){(e.querySelector("[autofocus]")||e).focus()}function c(e,t){if(t&&m(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e))if(e.shadowRoot){let i=p(e.shadowRoot,t);for(;i;){let e=c(i,t);if(e)return e;i=h(i,t)}}else if("slot"===e.localName){let i=e.assignedElements({flatten:!0});for(let e of(t||i.reverse(),i)){let i=c(e,t);if(i)return i}}else{let i=p(e,t);for(;i;){let e=c(i,t);if(e)return e;i=h(i,t)}}return!t&&m(e)?e:null}function p(e,t){return t?e.firstElementChild:e.lastElementChild}function h(e,t){return t?e.nextElementSibling:e.previousElementSibling}let m=e=>!e.shadowRoot?.delegatesFocus&&e.matches(u.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.activeElement;return t?t.shadowRoot?g(t.shadowRoot)||document.activeElement:t:null}function f(e,t){return function t(i){if(!i||i===document||i===window)return null;let s=function e(t){return t.assignedSlot||(t.parentNode?e(t.parentNode):null)}(i);return s&&(i=s),i.closest(e)||t(i.getRootNode().host)}(t)}let _="data-a11y-dialog";class y{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(_)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=g(),this.previouslyFocused?.tagName==="BODY"&&e?.target&&(this.previouslyFocused=e.target),e?.type==="focus"?this.maintainFocus():d(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return!this.shown||this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this}on(e,t,i){return this.$el.addEventListener(e,t,i),this}off(e,t,i){return this.$el.removeEventListener(e,t,i),this}fire(e,t){let i=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(i),i}handleTriggerClicks(e){let t=e.composedPath()[0],i=f(`[${_}-show="${this.id}"]`,t),s=f(`[${_}-hide="${this.id}"]`,t),n=f(`[${_}-hide]`,t)&&f('[aria-modal="true"]',t)===this.$el;i&&this.show(e),(s||n)&&this.hide(e)}bindKeypress(e){if(f('[aria-modal="true"]',g())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){let[i,s]=function(e){let t=c(e,!0),i=t?c(e,!1)||t:null;return[t,i]}(e);if(!i)return t.preventDefault();let n=g();t.shiftKey&&n===i?(s.focus(),t.preventDefault()):t.shiftKey||n!==s||(i.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(){f(`[aria-modal="true"], [${_}-ignore-focus-trap]`,g())||d(this.$el)}}function b(){for(let e of document.querySelectorAll("[data-a11y-dialog]"))new y(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",b):b());var w=i(7953),k=i(57079),T=i(4611),S=i.n(T),C=i(32045),A=i(1519);class D extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#o=(()=>void dt7948.i(this,"dialog"))();setupDialog=(()=>(0,w.modifier)(e=>{let t=new y(e);t.show(),t.on("hide",()=>{this.dialog.hide()})}))();async handleButtonAction(e){"function"==typeof e.action&&await e.action(),this.dialog.cancel()}static #i=(()=>dt7948.n(this.prototype,"handleButtonAction",[r.action]))();static #n=(()=>(0,C.setComponentTemplate)((0,A.createTemplateFactory)({id:"zLJ20uVU",block:'[[[1,"\\n"],[41,[30,0,["dialog","show"]],[[[1," "],[11,0],[16,"aria-labelledby",[30,0,["dialog","titleElementId"]]],[24,1,"dialog-holder"],[24,"aria-hidden","true"],[16,0,[29,["dialog-container ",[30,0,["dialog","class"]]]]],[4,[30,0,["setupDialog"]],null,null],[12],[1,"\\n "],[10,0],[14,0,"dialog-overlay"],[14,"data-a11y-dialog-hide",""],[12],[13],[1,"\\n\\n"],[41,[30,0,["dialog","type"]],[[[1," "],[10,0],[14,0,"dialog-content"],[14,"role","document"],[12],[1,"\\n"],[41,[30,0,["dialog","title"]],[[[1," "],[10,0],[14,0,"dialog-header"],[12],[1,"\\n "],[10,"h3"],[15,1,[30,0,["dialog","titleElementId"]]],[12],[1,[30,0,["dialog","title"]]],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat dialog-close close"]],[["@action","@title","@icon"],[[30,0,["dialog","cancel"]],"modal.close","xmark"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[30,0,["dialog","message"]],[30,0,["dialog","bodyComponent"]]],null],[[[1," "],[10,0],[14,0,"dialog-body"],[12],[1,"\\n"],[41,[30,0,["dialog","bodyComponent"]],[[[1," "],[8,[30,0,["dialog","bodyComponent"]],null,[["@model"],[[30,0,["dialog","bodyComponentModel"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["dialog","message"]],[[[1," "],[10,2],[12],[1,[28,[32,2],[[30,0,["dialog","message"]]],null]],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["dialog","type"]],"notice"],null],[[[1," "],[10,0],[14,0,"dialog-footer"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["dialog","buttons"]]],null]],null],null,[[[1," "],[8,[32,0],[[16,0,[30,1,["class"]]]],[["@action","@translatedLabel","@icon"],[[28,[32,4],[[30,0,["handleButtonAction"]],[30,1]],null],[30,1,["label"]],[30,1,["icon"]]]],null],[1,"\\n"]],[1]],[[[1," "],[8,[32,0],[[16,0,[30,0,["dialog","confirmButtonClass"]]]],[["@action","@icon","@label","@disabled"],[[30,0,["dialog","didConfirmWrapped"]],[30,0,["dialog","confirmButtonIcon"]],[30,0,["dialog","confirmButtonLabel"]],[30,0,["dialog","confirmButtonDisabled"]]]],null],[1,"\\n"],[41,[30,0,["dialog","shouldDisplayCancel"]],[[[1," "],[8,[32,0],[[16,0,[30,0,["dialog","cancelButtonClass"]]]],[["@action","@label"],[[30,0,["dialog","cancel"]],[30,0,["dialog","cancelButtonLabel"]]]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/dialog-holder.0d5d21b0/node_modules/dialog-holder/components/dialog-holder.js",scope:()=>[S(),k.or,o.htmlSafe,k.notEq,n.fn],isStrictMode:!0}),this))()}},17221:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(32045),n=i(85024),r=i(70508),a=i(1519);let o=dt7948.c(class extends s.default{isLoading=!1;title=(()=>(0,r.i18n)("conditional_loading_section.loading"))();static #e=(()=>(0,s.setComponentTemplate)((0,a.createTemplateFactory)({id:"ySFXtxWo",block:'[[[1,"\\n"],[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"]],[]]],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/conditional-loading-section.js",isStrictMode:!0}),this))()},[(0,n.classNameBindings)("isLoading"),(0,n.classNames)("conditional-loading-section")])},17244:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(75093),n=i(27e3),r=i(21530),a=i(41657);class o extends a.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#_=(()=>void dt7948.i(this,"site"))();get type(){return"category"}get preloadedData(){return this.site.categories||[]}generatePreloadedCssClasses(){return[".hashtag-category-square { background-color: var(--primary-medium); }",...super.generatePreloadedCssClasses()]}generateColorCssClasses(e){let t,i,s;if(e.colors?1===e.colors.length?t=e.colors[0]:(i=e.colors[0],t=e.colors[1]):(t=e.color,e.parentCategory&&"square"===e.styleType&&(i=e.parentCategory.color)),i)s=`background: linear-gradient(-90deg, #${t} 50%, #${i} 50%);`;else if("icon"===e.styleType)s=`color: #${t};`;else{if("square"!==e.styleType)return[];s=`background-color: #${t};`}return[`.hashtag-color--category-${e.id} { ${s} }`]}generateIconHTML(e){e.preloaded?this.onLoad(e):this.load(e.id);let t="";"icon"===e.style_type&&e.icon&&(t=(0,r.iconHTML)(e.icon)),"emoji"===e.style_type&&e.emoji&&(t=(0,n.default)(`:${e.emoji}:`));let i=`hashtag-color--${this.type}-${e.id}`;return`${t}`}isLoaded(e){return!this.site.lazy_load_categories||super.isLoaded(e)}}},17285:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(75093),r=i(9032),a=i(14104),o=i(11837),l=i(21530),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[n.service]))();#n8=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #n=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#t0=(()=>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",i=this.pmTopicTrackingState.lookupCount("unread",{inboxFilter:t,groupName:e}),s=this.pmTopicTrackingState.lookupCount("new",{inboxFilter:t,groupName:e});if(i+s>0){let t=i>0&&s>0;return e?u.default.messageFormat("user.messages.read_more_group_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:i,NEW:s,username:this.currentUser.username,groupName:e,groupLink:this.groupLink(e),basePath:(0,o.default)("")}):u.default.messageFormat("user.messages.read_more_personal_pm_MF",{HAS_UNREAD_AND_NEW:t,UNREAD:i,NEW:s,username:this.currentUser.username,basePath:(0,o.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,o.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,i=0;return(this.currentUser&&(t=this.topicTrackingState.countUnread(),i=this.topicTrackingState.countNew()),i+t>0)?u.default.messageFormat("topic.read_more_MF",{HAS_UNREAD_AND_NEW:t>0&&i>0,UNREAD:t,NEW:i,HAS_CATEGORY:!!e,categoryLink:e?(0,a.categoryBadgeHTML)(e):null,basePath:(0,o.default)("")}):e?(0,u.i18n)("topic.read_more_in_category",{categoryLink:(0,a.categoryBadgeHTML)(e),latestLink:(0,o.default)("/latest")}):(0,u.i18n)("topic.read_more",{categoryLink:(0,o.default)("/categories"),latestLink:(0,o.default)("/latest")})}static #l=(()=>(0,d.setComponentTemplate)((0,c.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))()}},17313:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[i][0]:n[i][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},17328:(e,t,i)=>{"use strict";i.r(t),i.d(t,{failedCache:()=>n,localCache:()=>s,lookupCache:()=>d,normalize:()=>u,resetFailedCache:()=>a,resetLocalCache:()=>r,setFailedCache:()=>l,setLocalCache:()=>o});let s={},n={};function r(){s={}}function a(){n={}}function o(e,t){s[e]=t}function l(e,t){n[e]=t}function u(e){return e.replace(/\/$/,"")}function d(e){return s[u(e)]?.outerHTML}},17365:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(50890),n=i(86981),r=i(75093),a=i(70508);let o=class extends s.default{static #e=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[r.service]))();#n8=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #i=(()=>dt7948.g(this.prototype,"user",[s.inject]))();#tT=(()=>void dt7948.i(this,"user"))();get viewingSelf(){return this.user.get("viewingSelf")}get newLinkText(){return this.#n4("new")}get unreadLinkText(){return this.#n4("unread")}get navigationControlsButton(){return document.getElementById("navigation-controls__button")}#n4(e){let t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"group",groupName:this.group.name});return 0===t?(0,a.i18n)(`user.messages.${e}`):(0,a.i18n)(`user.messages.${e}_with_count`,{count:t})}changeGroupNotificationLevel(e){this.group.setNotification(e,this.get("user.model.id"))}static #n=(()=>dt7948.n(this.prototype,"changeGroupNotificationLevel",[n.action]))()}},17368:e=>{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var s=this;return this._timer=setTimeout(function(){s._attempts++,s._operationTimeoutCb&&(s._timeout=setTimeout(function(){s._operationTimeoutCb(s._attempts)},s._operationTimeout),s._options.unref&&s._timeout.unref()),s._fn(s._attempts)},i),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,i=0,s=0;s=i&&(t=n,i=a)}return t}},17393:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(85024),r=i(70508),a=i(33499),o=i(87542);let l=dt7948.c(class extends a.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",[s.computed]))();onChange(e){this.actionsMapping[e]?.()}static #i=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,o.pluginApiIdentifiers)("tags-admin-dropdown"),(0,o.selectKitOptions)({icons:["wrench","caret-down"],showFullTitle:!1}),(0,n.classNames)("tags-admin-dropdown")])},17453:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(24813),n=i(75093),r=i(58928),a=i(14086),o=i(14051),l=i(52493),u=i(48463),d=i(77296),c=i(35622);class p extends r.default{static #e=(()=>dt7948.g(this.prototype,"screenTrack",[n.service]))();#n7=(()=>void dt7948.i(this,"screenTrack"))();static #i=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();widget="post-stream";_topVisible=null;_bottomVisible=null;_currentPostObj=null;_currentVisible=null;_currentPercent=null;buildArgs(){return this.getProperties("posts","canCreatePost","filteredPostsCount","filteringRepliesToPostNumber","multiSelect","gaps","selectedQuery","selectedPostsCount","searchService","showReadIndicator","streamFilters","lastReadPostNumber","highestPostNumber","topicPageQueryParams")}scrolled(){if(this.isDestroyed||this.isDestroying||document.webkitFullscreenElement||document.fullscreenElement)return;let e=window.innerHeight,t=Math.round(5*e),i=[],n=[],r=document.scrollingElement.scrollTop,a=l.default.offset(document.querySelector(".posts-wrapper")).top,o=this.element.querySelectorAll(".onscreen-post, .cloaked-post"),d=function(e,t,i,s,n){if(ns;){let r=Math.floor((s+n)/2),a=e.item(r);l.default.offset(a).top-i+a.clientHeight>t?n=r-1:s=r+1}return s}(o,r-t,a,0,o.length-1),p=r+e,h=p+t,m=document.body.clientHeight;p>m&&(p=m),h>m&&(h=m);let g=null,f=null,_=Math.ceil(r+(0,u.default)()+5),y=!0,b=d,w=0;for(;bh)break;a>=r&&t<=p&&i.push(b),null===g&&(t<=_&&a>=_||w<=_&&t>=_)&&(f=(_-t)/s,g=b),w=a,n.push(b),b++}y&&(null===f&&(f=1),null===g&&(g=b-1));let k=this.posts,T=e=>this.queueRerender(e);if(i.length){let e=k.objectAt(i[0]);if(this._topVisible!==e){this._topVisible=e;let t=o.item(i[0]).id;this.topVisibleChanged({post:e,refresh:()=>{T(()=>{let e=document.getElementById(t);if(!e)return;let i=e=>e?e.offsetTop+i(e.offsetParent):0;window.scrollTo({top:i(e)-(0,u.default)()}),(0,s.schedule)("afterRender",()=>{window.scrollTo({top:i(e)-(0,u.default)()})})})}})}let t=k.objectAt(i[i.length-1]);this._bottomVisible!==t&&(this._bottomVisible=t,this.bottomVisibleChanged({post:t,refresh:T}));let n=k.objectAt(g),r=this._currentPostObj!==n;r&&(this._currentPostObj=n,this.currentPostChanged({post:n})),null!==f&&(f=Math.max(0,Math.min(1,f)),(r||this._currentPercent!==f)&&(this._currentPercent=f,this.currentPostScrolled({percent:f})))}else this._topVisible=null,this._bottomVisible=null,this._currentPostObj=null,this._currentPercent=null;let S=new Set,C=new Set,A=new Set;n.forEach(e=>{let t=k.objectAt(e);this._previouslyNearby.delete(t.post_number),i.includes(e)&&(S.add(t.post_number),t.read&&C.add(t.post_number)),A.add(t.post_number,t),(0,c.uncloak)(t,this)}),Object.values(this._previouslyNearby).forEach(e=>(0,c.cloak)(e,this)),this._previouslyNearby=A,this.screenTrack.setOnscreen(S,C)}_scrollTriggered(){(0,s.scheduleOnce)("afterRender",this,this.scrolled)}_posted(e){this.queueRerender(()=>{if(e){let t=e.post_number;d.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,a.default)(this,this._scrollTriggered,50)}static #n=(()=>dt7948.n(this.prototype,"_debouncedScroll",[o.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.site.useGlimmerPostStream?(0,s.next)(()=>this._scrollTriggered()):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&&d.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")})}}},17631:(e,t,i)=>{"use strict";i.r(t),i.d(t,{PLUGIN_API_VERSION:()=>eK,withPluginApi:()=>e0});var s=i(93317),n=i(41107),r=i.n(n),a=i(11651),o=i(96819),l=i(94078),u=i(15015),d=i(11666),c=i(9186),p=i(57882),h=i(60923),m=i(85983),g=i(42132),f=i(7229),_=i(71020),y=i(95922),b=i(58928),w=i(83149),k=i(72949),T=i(19237),S=i(74230),C=i(69464),A=i(944),D=i(21962),M=i(21863),x=i(50448),E=i(10619),L=i(65250),P=i(5493),F=i(7701),I=i(32383),N=i(43248),j=i(95817),O=i(90320),R=i(51229),U=i(93563),B=i(14104),Y=i(45611),H=i(23904),q=i(55199),z=i(14959),$=i(97870),V=i(43458),W=i(74084),K=i(85107),G=i(5795),J=i(63272),Q=i(24868),X=i(916),Z=i(97908),ee=i(71455),et=i(76056),ei=i(39668),es=i(54081),en=i(21530),er=i(61154),ea=i(56382),eo=i(46700),el=i(72095),eu=i(54143),ed=i(11597),ec=i(86384),ep=i(93156),eh=i(68459),em=i(19396),eg=i(43085),ef=i(8781),e_=i(40708),ey=i(5561),eb=i(77272),ev=i(70154),ew=i(3039),ek=i(77318),eT=i(16988),eS=i(77982),eC=i(58609),eA=i(40276),eD=i(35697),eM=i(94996),ex=i(5957),eE=i(8464),eL=i(63159),eP=i(25217),eF=i(78229),eI=i(38955),eN=i(59308),ej=i(22),eO=i(68325),eR=i(94023),eU=i(30698),eB=i(35622),eY=i(1664),eH=i(88627),eq=i(80345),ez=i(79596),e$=i(59334),eV=i(32045),eW=i(1519);let eK="2.1.1",eG=["actions-summary","avatar-flair","embedded-post","expand-hidden","expand-post-button","filter-jump-to-post","filter-show-all","post-article","post-article","post-avatar-user-info","post-avatar","post-body","post-contents","post-date","post-edits-indicator","post-email-indicator","post-gap","post-group-request","post-links","post-locked-indicator","post-meta-data","post-notice","post-placeholder","post-stream","post","poster-name","poster-name-title","posts-filtered-notice","reply-to-tab","select-post","topic-post-visited-line"],eJ=["component:topic-list"],eQ=new WeakMap;function eX(e,t,i,s){if("function"==typeof s)return!0;if(!s.pluginId)return console.warn((0,ek.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 n="_"+t+"/"+s.pluginId+"/"+i;if(eQ.get(e.class)?.includes(n))return!1;{let t=eQ.get(e.class)||[];return t.push(n),eQ.set(e.class,t),!0}}function eZ(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,Z.isTesting)())throw e;return}}}class e1{constructor(e,t){this.version=e,this.container=t,this.h=a.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){let i;t=t||{};let s=this.container.registry.normalize(e);if(this.container.cache[s]||"model:user"===s&&this.container.lookup("service:current-user"))return void console.error((0,ek.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`);if(eJ.includes(s)||(i=this.container.factoryFor(s)),!i){t.ignoreMissing||console.warn((0,ek.consolePrefix)(),`"${s}" was not found by modifyClass`);return}return i}modifyClass(e,t,i){let s=this._resolveClass(e,i);if(s)return eX(s,"member",e,t)&&(delete t.pluginId,"function"==typeof t?(0,W.default)(s.class,t):s.class.reopen?(0,W.withPrependsRolledBack)(s.class,()=>{s.class.reopen(t)}):Object.defineProperties(s.class.prototype||s.class,Object.getOwnPropertyDescriptors(t))),s}modifyClassStatic(e,t,i){let s=this._resolveClass(e,i);if(s)return eX(s,"static",e,t)&&(delete t.pluginId,(0,W.withPrependsRolledBack)(s.class,()=>{s.class.reopenClass(t)})),s}addBehaviorTransformerName(e){(0,eS._addTransformerName)(e,eS.transformerTypes.BEHAVIOR)}registerBehaviorTransformer(e,t){return(0,eS._registerTransformer)(e,eS.transformerTypes.BEHAVIOR,t)}addValueTransformerName(e){(0,eS._addTransformerName)(e,eS.transformerTypes.VALUE)}registerValueTransformer(e,t){return(0,eS._registerTransformer)(e,eS.transformerTypes.VALUE,t)}registerIconRenderer(e){(0,en.registerIconRenderer)(e)}replaceIcon(e,t){(0,en.replaceIcon)(e,t)}decorateCooked(e,t){this.decorateCookedElement((t,i)=>e(r()(t),i),t)}decorateCookedElement(e,t){t=t||{},e=eZ(e,"broken_decorator_alert"),(0,eR.addDecorator)(e,{afterAdopt:!!t.afterAdopt}),this.onAppEvent(t.afterAdopt?"decorate-post-cooked-element:after-adopt":"decorate-post-cooked-element:before-adopt",e),t.onlyStream||this.onAppEvent("decorate-non-stream-cooked-element",e)}addKeyboardShortcut(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};er.default.addShortcut(e,t,i)}removeKeyboardShortcut(e,t){er.default.unbind({[e]:t})}disableDefaultKeyboardShortcuts(e){(0,er.disableDefaultKeyboardShortcuts)(e)}addPosterIcon(e){this.addPosterIcons(e)}addPosterIcons(e){let t=this._lookupContainer("service:site"),i=t&&t.mobileView?"before":"after",n=class extends s.default{get definitions(){return(0,ei.makeArray)(e(this.args.outletArgs.post.user_custom_fields||{},this.args.outletArgs.post))}static #e=(()=>(0,eV.setComponentTemplate)((0,eW.createTemplateFactory)({id:"Bsc94Vx6",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["definitions"]]],null]],null],null,[[[1," "],[8,[32,0],null,[["@className","@emoji","@emojiTitle","@icon","@text","@title","@url"],[[30,1,["className"]],[30,1,["emoji"]],[30,1,["emojiTitle"]],[30,1,["icon"]],[30,1,["text"]],[30,1,["title"]],[30,1,["url"]]]],null],[1,"\\n"]],[1]],null],[1," "]],["definition"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/lib/plugin-api.js",scope:()=>[k.default],isStrictMode:!0}),this))()};"after"===i?this.renderAfterWrapperOutlet("post-meta-data-poster-name",n):this.renderBeforeWrapperOutlet("post-meta-data-poster-name",n),(0,J.withSilencedDeprecations)("discourse.post-stream-widget-overrides",()=>{(0,eH.decorateWidget)(`poster-name:${i}`,t=>{let i=t.attrs,s=e(i.userCustomFields||{},i);if(s)return Array.isArray(s)||(s=[s]),s.map(e=>{let i;return e.icon?i=(0,en.iconNode)(e.icon):e.emoji&&(i=e.emoji.split("|").map(i=>{let s={name:i};return e.emojiTitle&&(s.title=!0),t.attach("emoji",s)})),e.text&&(i=[i,e.text]),e.url&&(i=t.h("a",{attributes:{href:e.url}},i)),t.h("span.poster-icon",{className:e.className,attributes:{title:e.title}},i)})})})}decorateWidget(e,t){let i=e.split(":")[0];this.#n9(i,"decorateWidget"),(0,eH.decorateWidget)(e,t)}attachWidgetAction(e,t,i){let s=(0,eH.queryRegistry)(e)||this.container.factoryFor(`widget:${e}`)?.class;if(!s)return void console.error((0,ek.consolePrefix)(),`attachWidgetAction: Could not find widget ${e} in registry`);this.#n9(e,"attachWidgetAction"),s.prototype[t]=i}includePostAttributes(){(0,J.default)("`api.includePostAttributes` has been deprecated. Use `api.addTrackedPostProperties` instead.",eB.POST_STREAM_DEPRECATION_OPTIONS),this.addTrackedPostProperties(...arguments)}addTrackedPostProperties(){for(var e=arguments.length,t=Array(e),i=0;i(0,eE._addTrackedPostProperty)(e)),(0,eT.includeAttributes)(...t)}addPostMenuButton(){console.error("`api.addPostMenuButton`: This API was decommissioned. Use the value transformer `post-menu-buttons` instead.")}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(){console.error("`api.removePostMenuButton`: This API was decommissioned. Use the value transformer `post-menu-buttons` instead.")}replacePostMenuButton(){console.error("`api.replacePostMenuButton`: This API was decommissioned. Use the value transformer `post-menu-buttons` instead.")}onToolbarCreate(e){(0,p.addToolbarCallback)(e)}addComposerToolbarPopupMenuOption(e){(0,K.addPopupMenuOption)(e)}addToolbarPopupMenuOptionsCallback(e){(0,J.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,b.addWidgetCleanCallback)("post-stream",e)}onPageChange(e){let t=eZ(e,"broken_page_change_alert");this.onAppEvent("page:changed",e=>t(e.url,e.title))}onAppEvent(e,t){let i=this._lookupContainer("service:app-events");i&&i.on(e,t)}customUserAvatarClasses(e){(0,H.registerCustomAvatarHelper)(e)}disableNameSuppressionOnPosts(){(0,eY.disableNameSuppression)(),this.registerValueTransformer("post-meta-data-poster-name-suppress-similar-name",()=>!0)}registerCustomPostMessageCallback(e,t){(0,O.registerCustomPostMessageCallback)(e,t)}addBeforeLoadMoreNotificationsCallback(e){(0,R.addBeforeLoadMoreCallback)(e)}changeWidgetSetting(e,t,i){this.#n9(e,"changeWidgetSetting"),(0,eH.changeSetting)(e,t,i)}preventCloak(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,eB.preventCloak)(e),(0,eF.preventCloaking)(e,t)}createWidget(e,t){return(0,eH.createWidget)(e,t)}reopenWidget(e,t){return this.#n9(e,"reopenWidget"),(0,eH.reopenWidget)(e,t)}addFlagProperty(){(0,J.default)("addFlagProperty has been removed. Use the reviewable API instead.",{id:"discourse.add-flag-property"})}addHeaderPanel(){console.error((0,ek.consolePrefix)(),"api.addHeaderPanel: This API was decommissioned. Use api.headerIcons instead.")}addStorePluralization(e,t){let i=this._lookupContainer("service:store");i&&i.addPluralization(e,t)}registerConnectorClass(e,t,i){(0,eu.extraConnectorClass)(`${e}/${t}`,i)}renderInOutlet(e,t){(0,eu.extraConnectorComponent)(e,t)}renderBeforeWrapperOutlet(e,t){this.renderInOutlet(`${e}__before`,t)}renderAfterWrapperOutlet(e,t){this.renderInOutlet(`${e}__after`,t)}registerTopicFooterButton(e){(0,ed.registerTopicFooterButton)(e)}registerTopicFooterDropdown(e){(0,ec.registerTopicFooterDropdown)(e)}registerDesktopNotificationHandler(e){(0,Q.registerDesktopNotificationHandler)(e)}addPostSmallActionIcon(e,t){this.registerValueTransformer("post-small-action-icon",i=>{let{value:s,context:{code:n}}=i;return e===n?t:s}),(0,eU.addPostSmallActionIcon)(e,t)}addGroupPostSmallActionCode(e){(0,T.addGroupPostSmallActionCode)(e)}addPostSmallActionClassesCallback(e){this.registerValueTransformer("post-small-action-class",t=>{let{value:i,context:{post:s}}=t;return[...(0,ei.makeArray)(i),...(0,ei.makeArray)(e(s))]}),(0,eU.addPostSmallActionClassesCallback)(e)}addDiscoveryQueryParam(e,t){(0,N.addDiscoveryQueryParam)(e,t)}addTagsHtmlCallback(e,t){(0,eh.addTagsHtmlCallback)(e,t)}addUserMenuGlyph(){(0,J.default)("addUserMenuGlyph has been removed. Use api.registerUserMenuTab instead.",{id:"discourse.add-user-menu-glyph"})}addPostClassesCallback(e){this.registerValueTransformer("post-class",t=>{let{value:i,context:{post:s}}=t;return[...(0,ei.makeArray)(i),...(0,ei.makeArray)(e(s))]}),(0,eO.addPostClassesCallback)(e)}addTopicParticipantClassesCallback(e){(0,L.addTopicParticipantClassesCallback)(e)}addCustomUserFieldValidationCallback(e){(0,eC.addCustomUserFieldValidationCallback)(e)}addPostTransformCallback(e){(0,J.default)("`api.addPostTransformCallback` has been deprecated.",eB.POST_STREAM_DEPRECATION_OPTIONS),(0,eB.addPostTransformCallback)(e)}addNavigationBarItem(e){if(e.name){let t=e.customHref;if(t){let i=this.container.lookup("service:router");e.customHref=function(e,s){return t(e,s,i)}}let i=e.customFilter;if(i){let t=this.container.lookup("service:router");e.customFilter=function(e,s){return i(e,s,t)}}let s=e.forceActive;if(s){let t=this.container.lookup("service:router");e.forceActive=function(e,i){return s(e,i,t)}}let n=e.init;if(n){let t=this.container.lookup("service:router");e.init=function(e,i,s){n(e,i,s,t)}}(0,ex.addNavItem)(e)}else console.warn((0,ek.consolePrefix)(),"A 'name' is required when adding a Navigation Bar Item.",e)}formatUsername(e){(0,eD.replaceFormatter)(e)}modifySelectKit(e){return(0,e$.modifySelectKit)(e)}addGTMPageChangedCallback(e){(0,el.addGTMPageChangedCallback)(e)}addSharingSource(e){ef.default.addSharingId(e.id),ef.default.addSource(e)}addComposerUploadHandler(e,t){(0,d.addComposerUploadHandler)(e,t)}addComposerUploadPreProcessor(e,t){(0,d.addComposerUploadPreProcessor)(e,t)}addComposerUploadMarkdownResolver(e){(0,d.addComposerUploadMarkdownResolver)(e)}addUsernameSelectorDecorator(e){(0,Y.addUsernameSelectorDecorator)(e)}composerBeforeSave(e){eM.default.reopen({beforeSave:e})}addComposerSaveErrorCallback(e){(0,ej.addComposerSaveErrorCallback)(e)}serializeToTopic(e,t){eM.default.serializeToTopic(e,t)}serializeToDraft(e,t){eM.default.serializeToDraft(e,t)}serializeOnCreate(e,t){eM.default.serializeOnCreate(e,t)}serializeOnUpdate(e,t){eM.default.serializeOnUpdate(e,t)}addCategorySortCriteria(e){(0,h.addCategorySortCriteria)(e)}addCardClickListenerSelector(e){(0,u.addCardClickListenerSelector)(e)}replaceCategoryLinkRenderer(e){(0,B.replaceCategoryLinkRenderer)(e)}replaceTagRenderer(e){(0,ep.replaceTagRenderer)(e)}registerCustomLastUnreadUrlCallback(e){(0,eL.registerCustomLastUnreadUrlCallback)(e)}registerHighlightJSLanguage(e,t){(0,es.registerHighlightJSLanguage)(e,t)}registerHighlightJSPlugin(e){(0,es.registerHighlightJSPlugin)(e)}addGlobalNotice(e,t,i){(0,g.addGlobalNotice)(e,t,i)}addDocumentTitleCounter(e){(0,c.addPluginDocumentTitleCounter)(e)}decoratePluginOutlet(e,t,i){(0,J.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,w.addPluginOutletDecorator)(e,t,i||{})}setDesktopTopicTimelineScrollAreaHeight(e){(0,P.setDesktopScrollAreaHeight)(e)}setUserMenuNotificationsLimit(e){(0,F.setNotificationsLimit)(e)}addCategoryLinkIcon(e){(0,B.addExtraIconRenderer)(e)}get headerIcons(){return(0,_.headerIconsDAG)()}get headerButtons(){return(0,f.headerButtonsDAG)()}addToHeaderIcons(e){console.error((0,ek.consolePrefix)(),"api.addToHeaderIcons: This API was decommissioned. Use api.headerIcons instead.")}registerHomeLogoHrefCallback(e){(0,eS._registerTransformer)("home-logo-href",eS.transformerTypes.VALUE,t=>{let{value:i}=t;return e(i)})}addQuickAccessProfileItem(e){(0,I.addUserMenuProfileTabItem)(e)}addFeaturedLinkMetaDecorator(e){(0,em.addFeaturedLinkMetaDecorator)(e)}addAdvancedSearchOptions(e){(0,C.addAdvancedSearchOptions)(e)}addSaveableUserField(e){(0,eP.addSaveableUserField)(e)}addSaveableUserOptionField(e){(0,eP.addSaveableUserOptionField)(e)}addPluginReviewableParam(e,t){(0,S.addPluginReviewableParam)(e,t)}registerReviewableActionModal(e,t){(0,S.registerReviewableActionModal)(e,t)}setNewCategoryDefaultColors(e,t){(0,eI.setNewCategoryDefaultColors)(e,t)}setNotificationsLimit(e){(0,eN.setNotificationsLimit)(e)}addSearchResultsCallback(e){(0,eg.addSearchResultsCallback)(e)}addLogSearchLinkClickedCallbacks(e){(0,eg.addLogSearchLinkClickedCallbacks)(e)}addSearchSuggestion(e){(0,A.addSearchSuggestion)(e)}addSearchMenuAssistantSelectCallback(e){(0,D.addItemSelectCallback)(e)}forceDropdownForMenuPanels(e){(0,m.forceDropdownForMenuPanels)(e)}downloadCalendar(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,X.downloadCalendar)(e,t,i)}addSearchMenuOnKeyDownCallback(e){(0,x.addOnKeyUpCallback)(e)}addQuickSearchRandomTip(e){(0,M.addQuickSearchRandomTip)(e)}removeDefaultQuickSearchRandomTips(){(0,M.removeDefaultQuickSearchRandomTips)()}addUserSearchOption(e){ez.CUSTOM_USER_SEARCH_OPTIONS.push(e)}dispatchWidgetAppEvent(e,t,i){this.modifyClass(`component:${e}`,{pluginId:`${e}/${t}/${i}`,didInsertElement(){this._super(),this.dispatch(i,t)}},{ignoreMissing:!0})}customizeComposerText(e){(0,eM.registerCustomizationCallback)(e)}addCommunitySectionLink(e,t){(0,ey.addSectionLink)(e,t)}registerUserCategorySectionLinkCountable(e){let{badgeTextFunction:t,route:i,routeQuery:s,shouldRegister:n,refreshCountFunction:r,prioritizeOverDefaults:a}=e;(0,ev.registerCustomCountable)({badgeTextFunction:t,route:i,routeQuery:s,shouldRegister:n,refreshCountFunction:r,prioritizeOverDefaults:a})}registerCustomCategorySectionLinkLockIcon(e){return(0,ev.registerCustomCategoryLockIcon)(e)}registerCustomCategorySectionLinkPrefix(e){let{categoryId:t,prefixType:i,prefixValue:s,prefixColor:n}=e;(0,ev.registerCustomCategorySectionLinkPrefix)({categoryId:t,prefixType:i,prefixValue:s,prefixColor:n})}registerCustomTagSectionLinkPrefixIcon(e){let{tagName:t,prefixValue:i,prefixColor:s}=e;(0,ew.registerCustomTagSectionLinkPrefixIcon)({tagName:t,prefixValue:i,prefixColor:s})}refreshUserSidebarCategoriesSectionCounts(){let e=this._lookupContainer("service:app-events");e?.trigger(E.REFRESH_COUNTS_APP_EVENT_NAME)}addSidebarPanel(e){(0,eb.addSidebarPanel)(e)}addAdminSidebarSectionLink(e,t){(0,e_.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,eb.addSidebarSection)(e,t)}registerNotificationTypeRenderer(e,t){(0,eo.registerNotificationTypeRenderer)(e,t)}registerUserMenuTab(e){(0,eA.registerUserMenuTab)(e)}registerModelTransformer(e,t){(0,ea.registerModelTransformer)(e,t)}addUserMessagesNavigationDropdownRow(e,t,i){(0,U.registerCustomUserNavMessagesDropdownRow)(e,t,i)}addFullPageSearchType(e,t,i){(0,j.registerFullPageSearchType)(e,t,i)}addBeforeAuthCompleteCallback(e){(0,q.addBeforeAuthCompleteCallback)(e)}registerHashtagType(e,t){(0,et.registerHashtagType)(e,t)}addBulkActionButton(e){(0,l.addBulkDropdownButton)(e)}includeUserFieldPropertyOnSave(e){this.container.lookup("service:admin-custom-user-fields").addProperty(e)}addComposerImageWrapperButton(e,t,i,s){(0,eq.addImageWrapperButton)(e,t,i),(0,d.addApiImageWrapperButtonClickEvent)(s)}addAdminPluginConfigurationNav(e,t){if(!e)return void console.warn((0,ek.consolePrefix)(),"A pluginId must be provided!");(0,z.registerAdminPluginConfigNav)(e,t)}addAboutPageActivity(e,t){(0,o.addAboutPageActivity)(e,t)}registerPluginHeaderActionComponent(e,t){(0,$.registerPluginHeaderActionComponent)(e,t)}registerMoreTopicsTab(e){y.registeredTabs.push(e)}registerReportModeComponent(e,t){(0,V.registerReportModeComponent)(e,t)}registerRichEditorExtension(e){(0,G.registerRichEditorExtension)(e)}#n9(e,t){eG.includes(e)&&(0,J.default)(`The \`${e}\` widget has been deprecated and \`api.${t}\` is no longer a supported override.`,eB.POST_STREAM_DEPRECATION_OPTIONS)}}function e0(){let e,t,i;for(var s=arguments.length,n=Array(s),r=0;r=function(e,t){let i,s,n=/(\.0+)+$/,r=e.replace(n,"").split("."),a=t.replace(n,"").split("."),o=Math.min(r.length,a.length);for(i=0;i{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(96791),r=i(1519);class a extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,r.createTemplateFactory)({id:"s7oOE0o5",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"reviewable-input-textarea"],[4,[32,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null],[1," "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-field-textarea.js",scope:()=>[s.Textarea,n.on],isStrictMode:!0}),this))()}},17729:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})})},17805:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>R});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(64081),l=i(96848),u=i(75093),d=i(53329),c=i(73139),p=i(10458),h=i(14051),m=i(63272),g=i(11837),f=i(29466),_=i(40276),y=i(39902),b=i(70508),w=i(20854),k=i(90469),T=i(75631),S=i(7701),C=i(56640),A=i(32383),D=i(92362),M=i(454),x=i(32045),E=i(1519);let L=(0,i(96900).A)(i(7155)).cached,P="all-notifications",F=S.default,I="review-queue",N=[class extends _.default{id=(()=>P)();icon="bell";panelComponent=(()=>F)();get linkWhenActive(){return`${this.currentUser.path}/notifications`}},class extends _.default{id="replies";icon="user_menu.replies";panelComponent=(()=>D.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 _.default{id="likes";icon="heart";panelComponent=(()=>k.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 _.default{id="messages";icon="notification.private_message";panelComponent=(()=>T.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 _.default{id="bookmarks";icon=(()=>y.NO_REMINDER_ICON)();panelComponent=(()=>w.default)();notificationTypes=["bookmark_reminder"];get count(){return this.getUnreadCountForType("bookmark_reminder")}get linkWhenActive(){return`${this.currentUser.path}/activity/bookmarks`}},class extends _.default{id=(()=>I)();icon="flag";panelComponent=(()=>M.default)();linkWhenActive=(()=>(0,g.default)("/review"))();get shouldDisplay(){return this.currentUser.can_review&&this.currentUser.get("reviewable_count")}get count(){return this.currentUser.get("reviewable_count")}}],j=[class extends _.default{id="profile";icon="user";panelComponent=(()=>A.default)();get linkWhenActive(){return`${this.currentUser.path}/summary`}}],O=class extends _.default{id="other-notifications";icon="discourse-other-tab";panelComponent=(()=>C.default)();constructor(e,t,i,s){super(...arguments),this.otherNotificationTypes=s}get count(){return this.otherNotificationTypes.reduce((e,t)=>e+this.getUnreadCountForType(t),0)}get notificationTypes(){return this.otherNotificationTypes}};class R extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"router",[u.service]))();#g=(()=>void dt7948.i(this,"router"))();static #a=(()=>dt7948.g(this.prototype,"site",[u.service]))();#_=(()=>void dt7948.i(this,"site"))();static #l=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #d=(()=>dt7948.g(this.prototype,"currentTabId",[n.tracked],function(){return P}))();#n5=(()=>void dt7948.i(this,"currentTabId"))();static #p=(()=>dt7948.g(this.prototype,"currentPanelComponent",[n.tracked],function(){return F}))();#n6=(()=>void dt7948.i(this,"currentPanelComponent"))();static #m=(()=>dt7948.g(this.prototype,"currentNotificationTypes",[n.tracked]))();#re=(()=>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 #f=(()=>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=[];N.forEach(t=>{let i=new t(this.currentUser,this.siteSettings,this.site);i.shouldDisplay&&e.push(i)});let t=e.findIndex(e=>e.id===I);return _.CUSTOM_TABS_CLASSES.forEach(i=>{let s=new i(this.currentUser,this.siteSettings,this.site);s.shouldDisplay&&(-1===t?e.push(s):(e.insertAt(t,s),t++))}),e.push(new O(this.currentUser,this.siteSettings,this.site,this.#rt(e))),e.map((e,t)=>(e.position=t,e))}static #y=(()=>dt7948.n(this.prototype,"topTabs",[L]))();get bottomTabs(){let e=[];j.forEach(t=>{let i=new t(this.currentUser,this.siteSettings,this.site);i.shouldDisplay&&e.push(i)});let t=this.topTabs.length;return e.map((e,i)=>(e.position=i+t,e))}static #v=(()=>dt7948.n(this.prototype,"bottomTabs",[L]))();#rt(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,f.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 i=JSON.stringify(t);return(0,m.default)(`user-menu tab panelComponent must be passed as a component class (passed ${i})`,{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 #k=(()=>dt7948.n(this.prototype,"handleTabClick",[a.action]))();triggerRenderedAppEvent(){this.appEvents.trigger("user-menu:rendered")}static #S=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[a.action]))();focusFirstTab(e){e.querySelector(".btn.active")?.focus()}static #A=(()=>dt7948.n(this.prototype,"focusFirstTab",[a.action]))();static #M=(()=>(0,x.setComponentTemplate)((0,E.createTemplateFactory)({id:"inRhb1SZ",block:'[[[1,"\\n "],[11,0],[16,0,[30,0,["classNames"]]],[16,"data-tab-id",[30,0,["currentTabId"]]],[24,"data-max-width","320"],[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 "],[10,0],[14,0,"menu-tabs-container"],[14,"role","tablist"],[14,"aria-orientation","vertical"],[15,"aria-label",[28,[32,1],["user_menu.sr_menu_tabs"],null]],[12],[1,"\\n "],[11,0],[24,0,"top-tabs tabs-list"],[4,[32,0],[[30,0,["focusFirstTab"]]],null],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["topTabs"]]],null]],null],null,[[[1," "],[8,[32,2],null,[["@tab","@currentTabId","@onTabClick"],[[30,1],[30,0,["currentTabId"]],[28,[32,3],[[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,[31,1],[[28,[31,1],[[30,0,["bottomTabs"]]],null]],null],null,[[[1," "],[8,[32,2],null,[["@tab","@currentTabId","@onTabClick"],[[30,2],[30,0,["currentTabId"]],[28,[32,3],[[30,0,["handleTabClick"]],[30,2]],null]]],null],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["user-menu-tabs-list__after",[28,[32,5],null,[["user"],[[30,0,["currentUser"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,1,[28,[32,6],["quick-access-",[30,0,["currentTabId"]]],null]],[14,0,"quick-access-panel"],[12],[1,"\\n "],[8,[30,0,["currentPanelComponent"]],null,[["@closeUserMenu","@filterByTypes","@ariaLabelledby"],[[30,3],[30,0,["currentNotificationTypes"]],[28,[32,6],["user-menu-button-",[30,0,["currentTabId"]]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["tab","tab","@closeUserMenu"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/menu.js",scope:()=>[l.default,b.i18n,c.default,r.fn,d.default,p.default,r.concat],isStrictMode:!0}),this))()}},17827:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(73326),n=i(75370),r=i(13355),a=i(53329),o=i(32587),l=i(9616),u=i(10458),d=i(70508),c=i(7749),p=i(32045),h=i(1519),m=i(69522);let g=(0,n.default)((0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"tAaNBvrR",block:'[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface-top","div",[28,[32,1],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["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,[32,2],["user.theme"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@content","@value"],[[30,1,["userSelectableThemes"]],[30,1,["themeId"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["themeIdChanged"]],[[[1," "],[10,2],[14,0,"alert alert-success save-theme-alert"],[12],[1,[28,[32,2],["user.save_to_change_theme"],[["save_text"],[[28,[32,2],["save"],null]]]]],[13],[1,"\\n"]],[]],null],[41,[30,1,["showThemeSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,4],null,[["@labelKey","@checked"],["user.theme_default_on_all_devices",[30,1,["makeThemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,2],["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,1,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,2],["user.color_schemes.regular"],null]],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@content","@value","@onChange","@options"],[[30,1,["userSelectableColorSchemes"]],[30,1,["selectedColorSchemeId"]],[30,1,["loadColorScheme"]],[28,[32,5],null,[["translatedNone","autoInsertNoneItem"],[[30,1,["selectedColorSchemeNoneLabel"]],[30,1,["showColorSchemeNoneItem"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"control-subgroup dark-color-scheme"],[12],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,2],["user.color_schemes.dark"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@content","@value","@onChange"],[[30,1,["userSelectableDarkColorSchemes"]],[30,1,["selectedDarkColorSchemeId"]],[30,1,["loadDarkColorScheme"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,1,["previewingColorScheme"]],[[[41,[30,1,["previewingColorScheme"]],[[[1," "],[8,[32,6],[[24,0,"btn-default btn-small undo-preview"]],[["@action","@label","@icon"],[[30,1,["undoColorSchemePreview"]],"user.color_schemes.undo","arrow-rotate-left"]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"controls color-scheme-checkbox"],[12],[1,"\\n "],[8,[32,4],null,[["@labelKey","@checked"],["user.color_scheme_default_on_all_devices",[30,1,["makeColorSchemeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["showDarkColorSchemeSelector"]],[[[1," "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,2],["user.color_schemes.dark_instructions"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,2],["user.dark_mode"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,4],null,[["@labelKey","@checked"],["user.dark_mode_enable",[30,1,["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,[32,2],["user.text_size.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@id","@valueProperty","@content","@value","@onChange"],["text-size-selector","value",[30,1,["textSizes"]],[30,1,["textSize"]],[30,1,["selectTextSize"]]]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["showTextSetDefault"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,4],null,[["@labelKey","@checked"],["user.text_size_default_on_all_devices",[30,1,["makeTextSizeDefault"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["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,[32,2],["user.locale.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@id","@valueProperty","@langProperty","@content","@value","@onChange","@options"],["locale-selector","value","value",[30,1,["availableLocales"]],[30,1,["model","locale"]],[28,[32,7],[[28,[31,1],[[30,1,["model","locale"]]],null]],null],[28,[32,5],null,[["filterable","none"],[true,"user.locale.default"]]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,2],["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,[32,2],["user.home"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@id","@content","@valueProperty","@value","@onChange"],["home-selector",[30,1,["userSelectableHome"]],"value",[30,1,["homepageId"]],[28,[32,7],[[28,[31,1],[[30,1,["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,[32,2],["user.other_settings"],null]],[13],[1,"\\n\\n "],[8,[32,4],[[24,"data-setting-name","user-external-links"],[24,0,"pref-external-links"]],[["@labelKey","@checked"],["user.external_links_in_new_tab",[30,1,["model","user_option","external_links_in_new_tab"]]]],null],[1,"\\n "],[8,[32,4],[[24,"data-setting-name","user-enable-quoting"],[24,0,"pref-enable-quoting"]],[["@labelKey","@checked"],["user.enable_quoting",[30,1,["model","user_option","enable_quoting"]]]],null],[1,"\\n "],[8,[32,4],[[24,"data-setting-name","user-enable-smart-lists"],[24,0,"pref-enable-smart-lists"]],[["@labelKey","@checked"],["user.enable_smart_lists",[30,1,["model","user_option","enable_smart_lists"]]]],null],[1,"\\n "],[8,[32,4],[[24,"data-setting-name","user-enable-defer"],[24,0,"pref-defer-unread"]],[["@labelKey","@checked"],["user.enable_defer",[30,1,["model","user_option","enable_defer"]]]],null],[1,"\\n"],[41,[30,1,["siteSettings","automatically_unpin_topics"]],[[[1," "],[8,[32,4],[[24,"data-setting-name","user-auto-unpin"],[24,0,"pref-auto-unpin"]],[["@labelKey","@checked"],["user.automatically_unpin_topics",[30,1,["model","user_option","automatically_unpin_topics"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[32,4],[[24,"data-setting-name","user-dynamic-favicon"],[24,0,"pref-dynamic-favicon"]],[["@labelKey","@checked"],["user.dynamic_favicon",[30,1,["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,[32,2],["user.title_count_mode.title"],null]],[13],[1,"\\n "],[8,[32,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,1,["titleCountModes"]],[30,1,["model","user_option","title_count_mode"]],"user-title-count-mode",[28,[32,7],[[28,[31,1],[[30,1,["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,[32,2],["user.bookmark_after_notification.title"],null]],[13],[1,"\\n "],[8,[32,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,1,["bookmarkAfterNotificationModes"]],[30,1,["model","user_option","bookmark_auto_delete_preference"]],"bookmark-after-notification-mode",[28,[32,7],[[28,[31,1],[[30,1,["model","user_option","bookmark_auto_delete_preference"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,4],[[24,"data-setting-name","user-new-user-tips"],[24,0,"pref-new-user-tips"]],[["@labelKey","@checked"],["user.skip_new_user_tips.description",[30,1,["model","user_option","skip_new_user_tips"]]]],null],[1,"\\n"],[41,[30,1,["site","user_tips"]],[[[1," "],[8,[32,6],[[24,"data-setting-name","user-reset-seen-user-tips"],[24,0,"btn-default pref-reset-seen-user-tips"]],[["@action"],[[30,1,["resetSeenUserTips"]]]],[["default"],[[[[1,[28,[32,2],["user.reset_seen_user_tips"],null]]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface","div",[28,[32,1],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,1],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,8],null,[["@model","@action","@saved"],[[30,1,["model"]],[30,1,["save"]],[30,1,["saved"]]]],null],[1,"\\n "]],["@controller"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/interface.js",scope:()=>[a.default,u.default,d.i18n,c.default,o.default,s.hash,r.default,s.fn,l.default],isStrictMode:!0}),(0,m.default)(void 0,void 0)))},17844:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(7155),n=i(86981),r=i(91558),a=i(75093),o=i(15383),l=i(31075),u=i(87367),d=i(63272),c=i(71455),p=i(47872),h=i(18693),m=i(25217),g=i(63159);function f(e,t){let i={};return(0,o.isEmpty)(e)||e.forEach(function(e){i[e.id]=t.create(e)}),i}class _ extends p.default{static topicsFrom(e,t,i){if(!t)return;let s=(i=i||{}).listKey||"topics",r=f(t.users,m.default),a=f(t.primary_groups,n.default);return t.topic_list.categories&&t.topic_list.categories.forEach(e=>{h.default.current().updateCategory(e)}),t.topic_list[s].map(t=>(t.posters.forEach(e=>{e.user=r[e.user_id],e.extraClasses=e.extras,e.primary_group_id&&(e.primary_group=a[e.primary_group_id],e.primary_group&&(e.extraClasses=`${e.extraClasses||""} group-${e.primary_group.name}`))}),t.participants&&t.participants.forEach(e=>e.user=r[e.user_id]),e.createRecord("topic",t)))}static munge(e,t){return e.inserted=e.inserted||[],e.can_create_topic=e.topic_list.can_create_topic,e.more_topics_url=e.topic_list.more_topics_url,e.for_period=e.topic_list.for_period,e.loaded=!0,e.per_page=e.topic_list.per_page,e.topics=this.topicsFrom(t,e),e.topic_list.shared_drafts&&(e.sharedDrafts=this.topicsFrom(t,e,{listKey:"shared_drafts"})),e}static find(e,t){return(0,d.default)('TopicList.find is deprecated. Use `findFiltered("topicList")` on the `store` service instead.',{id:"discourse.topic-list-find",since:"3.1.0.beta5",dropFrom:"3.2.0.beta1"}),(0,c.getOwnerWithFallback)(this).lookup("service:store").findFiltered("topicList",{filter:e,params:t})}static hideUniformCategory(e,t){e.set("hideCategory",!function(e,t){if(t){if(t.has_children)return!0;let i=e.shared_drafts_category_id;return!!i&&t.id===i}return!0}(e.site,t))}static #e=(()=>dt7948.g(this.prototype,"session",[a.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"loadingBefore",[s.tracked],function(){return!1}))();#ri=(()=>void dt7948.i(this,"loadingBefore"))();static #n=(()=>dt7948.g(this.prototype,"canLoadMore",[(0,r.notEmpty)("more_topics_url")]))();#rs=(()=>void dt7948.i(this,"canLoadMore"))();forEachNew(e,t){let i=new Set;this.topics.forEach(e=>i.add(e.id)),e.forEach(e=>{i.has(e.id)||t(e)})}updateSortParams(e,t){let i={...this.params||{}};i.q?i={q:i.q}:(i.order=e||i.order,i.ascending=t),this.set("params",i)}updateNewListSubsetParam(e){let t={...this.params||{}};t.q?t={q:t.q}:t.subset=e,this.set("params",t)}loadMore(){if(this.loadingMore)return l.Promise.resolve();let e=this.more_topics_url;if(!e)return l.Promise.resolve();{let[t,i]=e.split("?");return t.match(/\.json$/)||(t+=".json"),e=t,i&&(e+="?"+i),this.set("loadingMore",!0),(0,u.ajax)({url:e}).then(async e=>{let t=0;if(e){let i=_.topicsFrom(this.store,e);return await g.default.applyTransformations(i),this.forEachNew(i,e=>{e.set("highlight",0==t++),this.topics.pushObject(e)}),this.setProperties({loadingMore:!1,more_topics_url:e.topic_list.more_topics_url}),this.session.set("topicList",this),{moreTopicsUrl:this.more_topics_url,newTopics:i}}})}}static #a=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();async loadBefore(e,t){this.loadingBefore=e.length;try{let i=`/${this.filter}.json?topic_ids=${e.join(",")}`,s=await (0,u.ajax)({url:i,data:this.params});this.topics.removeObjects(this.topics.filter(t=>e.includes(t.id)));let n=0;this.forEachNew(_.topicsFrom(this.store,s),e=>{e.set("highlight",!0),this.topics.insertAt(n,e),n++}),t&&this.session.set("topicList",this)}finally{this.loadingBefore=!1}}}},18038:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(96848),u=i(9032),d=i(76947),c=i(13355),p=i(39826),h=i(58843),m=i(33186),g=i(25217),f=i(70508),_=i(32045),y=i(1519);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"secondFactorImage",[n.tracked]))();#rn=(()=>void dt7948.i(this,"secondFactorImage"))();static #n=(()=>dt7948.g(this.prototype,"secondFactorKey",[n.tracked]))();#rr=(()=>void dt7948.i(this,"secondFactorKey"))();static #a=(()=>dt7948.g(this.prototype,"showSecondFactorKey",[n.tracked],function(){return!1}))();#ra=(()=>void dt7948.i(this,"showSecondFactorKey"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked]))();#sD=(()=>void dt7948.i(this,"errorMessage"))();static #d=(()=>dt7948.g(this.prototype,"secondFactorToken",[n.tracked]))();#ro=(()=>void dt7948.i(this,"secondFactorToken"))();maxSecondFactorNameLength=(()=>g.MAX_SECOND_FACTOR_NAME_LENGTH)();totpType=(()=>g.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 #p=(()=>dt7948.n(this.prototype,"totpRequested",[o.action]))();enableShowSecondFactorKey(e){e.preventDefault(),e.stopImmediatePropagation(),this.showSecondFactorKey=!0}static #m=(()=>dt7948.n(this.prototype,"enableShowSecondFactorKey",[o.action]))();enableSecondFactor(){if(!this.secondFactorToken||!this.secondFactorName){this.errorMessage=(0,f.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 #f=(()=>dt7948.n(this.prototype,"enableSecondFactor",[o.action]))();static #y=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"dPutVvPs",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,2],[[30,0,["totpRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[32,1],["user.second_factor.totp.add"],null]]],[["body"],[[[[1,"\\n "],[8,[32,3],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,[32,4],[[28,[32,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,[32,4],[[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,[32,5],["click",[30,0,["enableShowSecondFactorKey"]]],null],[12],[1,[28,[32,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,[32,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,[32,1],["user.second_factor.totp.default_name"],null]],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]],[24,1,"second-factor-name"],[24,4,"text"],[4,[32,5],["input",[28,[32,6],[[28,[32,7],[[28,[31,1],[[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,[32,1],["user.second_factor.label"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,8],[[16,2,[30,0,["secondFactorToken"]]],[24,"placeholder","123456"],[24,1,"second-factor-token"],[4,[32,5],["input",[28,[32,6],[[28,[32,7],[[28,[31,1],[[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,[32,9],[[24,0,"btn-primary add-totp"]],[["@action","@label"],[[30,0,["enableSecondFactor"]],"enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/second-factor-add-totp.js",scope:()=>[p.default,f.i18n,l.default,d.default,u.htmlSafe,a.on,m.default,r.fn,h.default,c.default],isStrictMode:!0}),this))()}},18089:(e,t,i)=>{"use strict";e.exports=new(i(15534))("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},18105:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},18209:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(24813),n=i(52137),r=i(31075),a=i(11837),o=i(54686),l=i(73389);class u extends l.UploaderPlugin{static pluginId="uppy-chunked-uploader";constructor(e,t){super(e,t),this.opts={limit:0,retryDelays:[0,1e3,3e3,5e3],...t},this.url=(0,a.default)(t.url),this.method=t.method||"POST",this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null)}_resetUploaderReferences(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}_uploadFile(e){return new r.Promise((t,i)=>{let r=new o.default(e,{getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onStart:()=>{this.uppy.emit("upload-started",e)},onProgress:(t,i)=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t,bytesTotal:i})},onChunkComplete:t=>{let i=this.uppy.getFile(e.id);i&&this.uppy.emit("chunk-uploaded",i,t)},onSuccess:()=>{this._resetUploaderReferences(e.id);let i=this.uppy.getFile(e.id);this.uppy.emit("upload-success",i||e,{}),t(r)},onError:t=>{this.uppy.log(t),this.uppy.emit("upload-error",e,t),this._resetUploaderReferences(e.id),i(t)},limit:this.opts.limit||5,retryDelays:this.opts.retryDelays||[],method:this.method,url:this.url,headers:this.opts.headers});this.uploaders[e.id]=r,this.uploaderEvents[e.id]=new n.default(this.uppy),(0,s.next)(()=>{e.isPaused||r.start()}),this._onFileRemove(e.id,i=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${i.id} was removed`)}),this._onCancelAll(e.id,()=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${e.id} was canceled`)}),this._onFilePause(e.id,e=>{e?r.pause():(0,s.next)(()=>{r.start()})}),this._onPauseAll(e.id,()=>{r.pause()}),this._onResumeAll(e.id,()=>{e.error&&r.abort(),(0,s.next)(()=>{r.start()})}),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e)})}_onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",i=>{e===i.id&&t(i.id)})}_onFilePause(e,t){this.uploaderEvents[e].on("upload-pause",(i,s)=>{e===i&&t(s)})}_onPauseAll(e,t){this.uploaderEvents[e].on("pause-all",()=>{this.uppy.getFile(e)&&t()})}_onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}_onResumeAll(e,t){this.uploaderEvents[e].on("resume-all",()=>{this.uppy.getFile(e)&&t()})}_upload(e){let t=e.map(e=>{let t=this.uppy.getFile(e);return this._uploadFile(t)});return r.Promise.all(t)}install(){this._install(this._upload.bind(this))}uninstall(){this._uninstall(this._upload.bind(this))}}},18231:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(91558),r=i(75093),a=i(38161),o=i(41107),l=i.n(o),u=i(76947),d=i(9861),c=i(14051),p=i(70508),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"loadingMore",[(0,n.alias)("topicList.loadingMore")]))();#rl=(()=>void dt7948.i(this,"loadingMore"))();static #n=(()=>dt7948.g(this.prototype,"loading",[(0,n.not)("loaded")]))();#sA=(()=>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 #a=(()=>dt7948.n(this.prototype,"loaded",[(0,c.default)("topicList.loaded")]))();_topicListChanged(){this._initFromTopicList(this.topicList)}static #l=(()=>dt7948.n(this.prototype,"_topicListChanged",[(0,a.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 #d=(()=>dt7948.n(this.prototype,"onMessage",[c.bind]))();showUnreadIndicator(e){return e.some(e=>void 0!==e.unread_by_group_member)}static #p=(()=>dt7948.n(this.prototype,"showUnreadIndicator",[(0,c.default)("topics")]))();click(e){if(this.site.desktopView)return;let t=l()(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 i=this.topics.findBy("id",parseInt(e,10));this.appEvents.trigger("topic-entrance:show",{topic:i,position:t.offset()})}return!1}}static #m=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"y1Rdvl5y",block:'[[[1,"\\n "],[8,[32,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["topics"]],[[[1," "],[8,[32,1],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,[32,2],["choose_topic.none_found"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]]],[1," "]],[]]]]],[1,"\\n "]],[],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/basic-topic-list.js",scope:()=>[u.default,d.default,p.i18n],isStrictMode:!0}),this))()}},18254:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(41107),r=i.n(n),a=i(31075),o=i(87367);class l extends s.default{static find(e){return new a.Promise(t=>{let i=r()('noscript[data-path="/'+e+'"]');if(i.length){let s=i.text();s=s.match(/((?:.|[\n\r])*)/)[1],t(l.create({path:e,html:s}))}else(0,o.ajax)(`/${e}.html`,{dataType:"html"}).then(i=>t(l.create({path:e,html:i})))})}}},18323:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(86981),n=i(91558),r=i(31075),a=i(87367),o=i(14051),l=i(11837),u=i(23081),d=i(47872);class c extends d.default{static createFromJson(e){let t={};"badge_types"in e&&e.badge_types.forEach(e=>t[e.id]=s.default.create(e));let i={};"badge_groupings"in e&&e.badge_groupings.forEach(e=>i[e.id]=u.default.create(e));let n=[];return("badge"in e?n=[e.badge]:e.badges&&(n=e.badges),n=n.map(e=>{let s=c.create(e);return s.setProperties({badge_type:t[s.badge_type_id],badge_grouping:i[s.badge_grouping_id]}),s}),"badge"in e)?n[0]:n}static findAll(e){let t="";return e&&e.onlyListable&&(t="?only_listable=true"),(0,a.ajax)(`/badges.json${t}`,{data:e}).then(e=>c.createFromJson(e))}static findById(e){return(0,a.ajax)(`/badges/${e}`).then(e=>c.createFromJson(e))}static #e=(()=>dt7948.g(this.prototype,"newBadge",[(0,n.none)("id")]))();#ru=(()=>void dt7948.i(this,"newBadge"))();static #i=(()=>dt7948.g(this.prototype,"image",[(0,n.alias)("image_url")]))();#rd=(()=>void dt7948.i(this,"image"))();url(){return(0,l.default)(`/badges/${this.id}/${this.slug}`)}static #n=(()=>dt7948.n(this.prototype,"url",[o.default]))();updateFromJson(e){e.badge&&Object.keys(e.badge).forEach(t=>this.set(t,e.badge[t])),e.badge_types&&e.badge_types.forEach(e=>{e.id===this.badge_type_id&&this.set("badge_type",Object.create(e))})}badgeTypeClassName(e){return e=e||"",`badge-type-${e.toLowerCase()}`}static #a=(()=>dt7948.n(this.prototype,"badgeTypeClassName",[(0,o.default)("badge_type.name")]))();save(e){let t="/admin/badges",i="POST";return this.id&&(t+=`/${this.id}`,i="PUT"),(0,a.ajax)(t,{type:i,data:e}).then(e=>(this.updateFromJson(e),this))}destroy(){return this.newBadge?r.Promise.resolve():(0,a.ajax)(`/admin/badges/${this.id}`,{type:"DELETE"})}}},18326:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(93317),n=i(75093),r=i(9032),a=i(57079),o=i(53329),l=i(6813),u=i(78085),d=i(2080),c=i(14104),p=i(43798),h=i(10458),m=i(27e3),g=i(32045),f=i(1519);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"CGfkbQDO",block:'[[[1,"\\n "],[10,1],[14,0,"topic"],[12],[1,"\\n "],[10,1],[14,0,"first-line"],[12],[1,"\\n "],[8,[32,0],null,[["@topic","@disableActions","@context"],[[30,1,["topic"]],true,"topic-view-title"]],null],[1,"\\n "],[10,1],[14,0,"topic-title"],[15,"data-topic-id",[30,1,["topic","id"]]],[12],[1,"\\n"],[41,[28,[32,1],[[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,[32,2],[[28,[32,3],[[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,[32,4],null,[["@string"],[[30,1,["topic","fancyTitle"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[8,[32,5],null,[["@name","@outletArgs"],["search-menu-results-topic-title-suffix",[28,[32,6],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,[32,7],[[30,1,["topic","category"]]],[["link"],[[52,[30,2],true,false]]]]],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1," "],[1,[28,[32,8],[[30,1,["topic"]]],[["tagName"],["span"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@result"],[[30,1]]],null],[1,"\\n "]],["@result","@withTopicUrl"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/type/topic.js",scope:()=>[d.default,a.and,m.default,r.htmlSafe,l.default,o.default,h.default,c.default,p.default,u.default],isStrictMode:!0}),this))()}},18509:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(73326),r=i(86981),a=i(85024),o=i(13355),l=i(63538),u=i(31789),d=i(11597),c=i(1519);let p=dt7948.c(class extends s.default{elementId="topic-footer-buttons";role="region";static #e=(()=>dt7948.g(this.prototype,"allButtons",[(0,d.getTopicFooterButtons)()]))();#rc=(()=>void dt7948.i(this,"allButtons"))();get buttons(){return this.allButtons.filterBy("anonymousOnly",!0).sortBy("priority").reverse()}static #i=(()=>dt7948.n(this.prototype,"buttons",[(0,r.computed)("allButtons.[]")]))();static #n=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"Tx4S0jDw",block:'[[[1,"\\n "],[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["buttons"]]],null]],null],null,[[[1," "],[8,[32,0],[[16,1,[28,[32,1],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[32,2],["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,[32,0],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["reply",[28,[32,3],["showLogin"],null],"topic.reply.title"]],null],[1,"\\n "],[13],[1,"\\n "]],["button"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/anonymous-topic-footer-buttons.js",scope:()=>[o.default,n.concat,l.default,u.default],isStrictMode:!0}),this))()},[(0,a.attributeBindings)("role")])},18527:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(27797);class n extends s.default{model(){return this.store.findAll("reviewable-topic")}setupController(e,t){e.set("reviewableTopics",t)}}},18562:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(63272),n=i(11837);function r(){return(0,s.default)("Use `{{base-path}}` instead of `{{base-url}}`",{id:"discourse.base-url"}),(0,n.default)("")}},18623:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(29466),n=i(77296);let r={initialize(e){this.selector=e.rootElement,document.querySelector(this.selector).addEventListener("click",s.default),window.addEventListener("hashchange",this.hashChanged)},hashChanged(){n.default.routeTo(document.location.hash)},teardown(){document.querySelector(this.selector).removeEventListener("click",s.default),window.removeEventListener("hashchange",this.hashChanged)}}},18649:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(32045),n=i(86981),r=i(91558),a=i(43343),o=i(94160),l=i(85024),u=i(78771),d=i.n(u),c=i(8760),p=i(70508),h=i(43682),m=i(75803),g=i(1519);let f=dt7948.c(class extends s.default{tabIndex=0;index=0;role="menuitemradio";static #e=(()=>dt7948.g(this.prototype,"lang",[(0,r.reads)("item.lang")]))();#rp=(()=>void dt7948.i(this,"lang"))();didInsertElement(){super.didInsertElement(...arguments),this.site.desktopView&&(this.element.addEventListener("mouseenter",this.handleMouseEnter),this.element.addEventListener("focus",this.handleMouseEnter))}willDestroyElement(){super.willDestroyElement(...arguments),this.site.desktopView&&(this.element.removeEventListener("mouseenter",this.handleMouseEnter),this.element.removeEventListener("focus",this.handleMouseEnter))}get isNone(){return this.rowValue===this.getValue(this.selectKit.noneItem)}static #i=(()=>dt7948.n(this.prototype,"isNone",[(0,n.computed)("rowValue")]))();get guid(){return(0,a.guidFor)(this.item)}static #n=(()=>dt7948.n(this.prototype,"guid",[(0,n.computed)("item")]))();get ariaChecked(){return this.isSelected?"true":"false"}static #a=(()=>dt7948.n(this.prototype,"ariaChecked",[(0,n.computed)("isSelected")]))();get title(){return this.rowTitle||this.getProperty(this.item,"title")||this.rowName}static #l=(()=>dt7948.n(this.prototype,"title",[(0,n.computed)("rowTitle","item.title","rowName")]))();get dasherizedTitle(){return(0,o.dasherize)((this.title||"").replace(".","-"))}static #d=(()=>dt7948.n(this.prototype,"dasherizedTitle",[(0,n.computed)("title")]))();get label(){let e=this.rowLabel||this.getProperty(this.item,"label")||this.title||this.rowName;return this.selectKit.options.allowAny&&this.rowValue===this.selectKit.filter&&this.getName(this.selectKit.noneItem)!==this.rowName&&this.getName(this.selectKit.newItem)===this.rowName?(0,p.i18n)("select_kit.create",{content:e}):e}static #p=(()=>dt7948.n(this.prototype,"label",[(0,n.computed)("rowLabel","item.label","title","rowName")]))();didReceiveAttrs(){super.didReceiveAttrs(...arguments),this.setProperties({rowName:this.getName(this.item),rowValue:this.getValue(this.item),rowLabel:this.getProperty(this.item,"labelProperty"),rowTitle:this.getProperty(this.item,"titleProperty"),rowLang:this.getProperty(this.item,"langProperty")})}get icons(){let e=(0,c.makeArray)(this.getProperty(this.item,"icon")),t=(0,c.makeArray)(this.getProperty(this.item,"icons"));return e.concat(t).filter(Boolean)}static #m=(()=>dt7948.n(this.prototype,"icons",[(0,n.computed)("item.{icon,icons}")]))();get highlightedValue(){return this.getValue(this.selectKit.highlighted)}static #f=(()=>dt7948.n(this.prototype,"highlightedValue",[(0,n.computed)("selectKit.highlighted")]))();get isHighlighted(){return this.rowValue===this.highlightedValue}static #y=(()=>dt7948.n(this.prototype,"isHighlighted",[(0,n.computed)("rowValue","highlightedValue")]))();get isSelected(){return this.rowValue===this.value}static #v=(()=>dt7948.n(this.prototype,"isSelected",[(0,n.computed)("rowValue","value")]))();handleMouseEnter(){return this.isDestroying&&this.isDestroyed||this.selectKit.onHover(this.rowValue,this.item),!1}static #k=(()=>dt7948.n(this.prototype,"handleMouseEnter",[n.action]))();click(e){return e.preventDefault(),e.stopPropagation(),this.selectKit.select(this.rowValue,this.item),!1}mouseDown(e){this.selectKit.options.preventHeaderFocus&&e.preventDefault()}focusIn(e){e.stopImmediatePropagation()}keyDown(e){if(this.selectKit.isExpanded)if("Backspace"===e.key){if(this.selectKit.isFilterExpanded)return this.selectKit.set("filter",this.selectKit.filter.slice(0,-1)),this.selectKit.triggerSearch(),this.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation(),!1}else{if("ArrowUp"===e.key)return this.selectKit.highlightPrevious(),!1;if("ArrowDown"===e.key)return this.selectKit.highlightNext(),!1;if("Enter"===e.key)return e.stopImmediatePropagation(),this.selectKit.select(this.getValue(this.selectKit.highlighted),this.selectKit.highlighted),!1;"Escape"===e.key?(this.selectKit.close(e),this.selectKit.headerElement().focus(),e.preventDefault(),e.stopPropagation()):(0,h.isValidInput)(e.key)&&(this.selectKit.set("filter",e.key),this.selectKit.triggerSearch(),this.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation())}}static #S=(()=>(0,s.setComponentTemplate)((0,g.createTemplateFactory)({id:"oi0GwTB7",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[32,0],[[30,1]],[["translatedTitle"],[[30,0,["dasherizedTitle"]]]]]],[1,"\\n"]],[1]],null],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n "]],["i"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-row.js",scope:()=>[d()],isStrictMode:!0}),this))()},[m.default,(0,l.classNameBindings)("isHighlighted","isSelected","isNone","isNone:none","item.classNames"),(0,l.attributeBindings)("tabIndex","title","rowValue:data-value","rowName:data-name","index:data-index","role","ariaChecked:aria-checked","guid:data-guid","rowLang:lang"),(0,l.tagName)("li"),(0,l.classNames)("select-kit-row")])},18652:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(32045),n=i(86981),r=i(24813),a=i(75093),o=i(9032),l=i(85024),u=i(38161),d=i(41107),c=i.n(d),p=i(13355),h=i(38069),m=i(14051),g=i(77296),f=i(70508),_=i(1519);function y(e,t){let i=new Date;return e.toDateString()===i.toDateString()?moment(e).format((0,f.i18n)("dates.time")):e.getYear()===i.getYear()?moment(e).format(t?(0,f.i18n)("dates.long_date_without_year_with_linebreak"):(0,f.i18n)("dates.long_no_year_no_time")):moment(e).format(t?(0,f.i18n)("dates.long_date_with_year_with_linebreak"):(0,f.i18n)("dates.long_date_with_year_without_time"))}let b=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"session",[a.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #n=(()=>dt7948.g(this.prototype,"historyStore",[a.service]))();#im=(()=>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 #a=(()=>dt7948.n(this.prototype,"createdDate",[(0,m.default)("topic.created_at")]))();bumpedDate(e){return new Date(e)}static #l=(()=>dt7948.n(this.prototype,"bumpedDate",[(0,m.default)("topic.bumped_at")]))();showTime(e,t){return t.getTime()-e.getTime()<1728e5}static #d=(()=>dt7948.n(this.prototype,"showTime",[(0,m.default)("createdDate","bumpedDate")]))();topDate(e,t){return y(e,t)}static #p=(()=>dt7948.n(this.prototype,"topDate",[(0,m.default)("createdDate","showTime")]))();bottomDate(e,t){return y(e,t)}static #m=(()=>dt7948.n(this.prototype,"bottomDate",[(0,m.default)("bumpedDate","showTime")]))();_inserted(){this.appEvents.on("topic-entrance:show",this,"_show"),this.appEvents.on("dom:clean",this,this.cleanUp)}static #f=(()=>dt7948.n(this.prototype,"_inserted",[(0,u.on)("didInsertElement")]))();_destroyed(){this.appEvents.off("dom:clean",this,this.cleanUp)}static #y=(()=>dt7948.n(this.prototype,"_destroyed",[(0,u.on)("didDestroyElement")]))();_setCSS(){let e=this._position,t=c()(this.element),i=t.width(),s=t.height();e.left=parseInt(e.left,10)-i/2,e.top=parseInt(e.top,10)-s/2;let n=c()(window).width();e.left+i>n&&(e.left=n-i-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 #v=(()=>dt7948.n(this.prototype,"_escListener",[m.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(),g.default.routeTo(e)}enterTop(){this._jumpTo(this.get("topic.url"))}static #k=(()=>dt7948.n(this.prototype,"enterTop",[n.action]))();enterBottom(){this._jumpTo(this.get("topic.lastPostUrl"))}static #S=(()=>dt7948.n(this.prototype,"enterBottom",[n.action]))();static #A=(()=>(0,s.setComponentTemplate)((0,_.createTemplateFactory)({id:"3GQMJAEB",block:'[[[1,"\\n "],[8,[32,0],[[16,"title",[28,[32,1],["topic_entrance.jump_top_button_title"],null]],[24,0,"btn-default full jump-top"]],[["@action","@translatedAriaLabel"],[[30,0,["enterTop"]],[28,[32,1],["topic_entrance.sr_jump_top_button"],[["date"],[[30,0,["topDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],["backward-step"],null]],[1,"\\n "],[1,[28,[32,3],[[30,0,["topDate"]]],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,0],[[16,"title",[28,[32,1],["topic_entrance.jump_bottom_button_title"],null]],[24,0,"btn-default full jump-bottom"]],[["@action","@translatedAriaLabel"],[[30,0,["enterBottom"]],[28,[32,1],["topic_entrance.sr_jump_bottom_button"],[["date"],[[30,0,["bottomDate"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[30,0,["bottomDate"]]],null]],[1,"\\n "],[1,[28,[32,2],["forward-step"],null]],[1,"\\n "]],[]]]]],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-entrance.js",scope:()=>[p.default,f.i18n,h.default,o.htmlSafe],isStrictMode:!0}),this))()},[(0,l.classNameBindings)("visible::hidden")])},18693:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(7155),n=i(86981),r=i(93239),a=i(91558),o=i(75093),l=i(9032),u=i(15383),d=i(14051),c=i(63272),p=i(97908),h=i(71455),m=i(8003),g=i(34472),f=i(88640),_=i(57471),y=i(23062),b=i(25380),w=i(47872),k=i(20405),T=i(35622);let S=dt7948.c(class extends w.default{static createCurrent(){let e=(0,h.getOwnerWithFallback)(this).lookup("service:store"),t=g.default.get("site");return t.isReadOnly=g.default.get("isReadOnly"),t.isStaffWritesOnly=g.default.get("isStaffWritesOnly"),e.createRecord("site",t)}static create(){let e=super.create.apply(this,arguments);return e.categories&&(e.categories=e.categories.map(t=>e.store.createRecord("category",t))),e.trust_levels&&(e.trustLevels=Object.entries(e.trust_levels).map(e=>{let[t,i]=e;return new k.default(i,t)}),delete e.trust_levels),e.post_action_types&&(e.postActionByIdLookup=n.default.create(),e.post_action_types=e.post_action_types.map(t=>{let i=b.default.create(t);return e.postActionByIdLookup.set("action"+t.id,i),i})),e.topic_flag_types&&(e.topicFlagByIdLookup=n.default.create(),e.topic_flag_types=e.topic_flag_types.map(t=>{let i=b.default.create(t);return e.topicFlagByIdLookup.set("action"+t.id,i),i})),e.archetypes&&(e.archetypes=e.archetypes.map(t=>(t.site=e,_.default.create(t)))),e.user_fields&&(e.user_fields=e.user_fields.map(e=>n.default.create(e))),e}static #e=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #a=(()=>dt7948.g(this.prototype,"categories",[s.tracked]))();#F=(()=>void dt7948.i(this,"categories"))();static #l=(()=>dt7948.g(this.prototype,"isReadOnly",[(0,a.alias)("is_readonly")]))();#rh=(()=>void dt7948.i(this,"isReadOnly"))();static #d=(()=>dt7948.g(this.prototype,"categoriesByCount",[(0,a.sort)("categories","topicCountDesc")]))();#rm=(()=>void dt7948.i(this,"categoriesByCount"))();#rg;init(){super.init(...arguments),this.topicCountDesc=["topic_count:desc"],this.categories=this.categories||[]}get desktopView(){return!this.mobileView}static #p=(()=>dt7948.n(this.prototype,"desktopView",[r.dependentKeyCompat]))();get mobileView(){return this.siteSettings.viewport_based_mobile_mode?!this.capabilities.viewport.sm:m.default.mobileView}static #m=(()=>dt7948.n(this.prototype,"mobileView",[r.dependentKeyCompat]))();get isMobileDevice(){return this.mobileView}static #f=(()=>dt7948.n(this.prototype,"isMobileDevice",[r.dependentKeyCompat]))();get useGlimmerPostStream(){let e;if(void 0!==this.#rg)return this.#rg;let t=this.siteSettings.glimmer_post_stream_mode;return"disabled"===t&&this.currentUser?.use_glimmer_post_stream_mode_auto_mode&&(t="auto"),"disabled"===t?e=!1:"enabled"===t?(T.havePostStreamWidgetExtensions?console.log([`⚠️ Using the new 'glimmer' post stream, even though some themes/plugins are not ready. The following plugins and/or themes are using deprecated APIs and may have broken customizations: `,...Array.from(T.havePostStreamWidgetExtensions).sort()].join(` - `)):(0,p.isTesting)()||(0,p.isRailsTesting)()||console.log("✅ Using the new 'glimmer' post stream!"),e=!0):T.havePostStreamWidgetExtensions?(console.warn([`⚠️ Detected themes/plugins which are incompatible with the new 'glimmer' post stream. Falling back to the old implementation. The following plugins and/or themes are using deprecated APIs: `,...Array.from(T.havePostStreamWidgetExtensions).sort()].join(` - `)),e=!1):((0,p.isTesting)()||(0,p.isRailsTesting)()||console.log("✅ Using the new 'glimmer' post stream!"),e=!0),this.#rg=e,e}get categoriesById(){let e=new Map;return this.categories.forEach(t=>e.set(t.id,t)),e}static #y=(()=>dt7948.n(this.prototype,"categoriesById",[(0,n.computed)("categories.[]")]))();get categoriesByParentId(){let e=new Map;for(let t of this.categories){let i=e.get(t.parent_category_id)||[];i.push(t),e.set(t.parent_category_id,i)}return e}static #v=(()=>dt7948.n(this.prototype,"categoriesByParentId",[(0,n.computed)("categories.@each.parent_category_id")]))();notificationLookup(e){let t=[];return Object.keys(e).forEach(i=>t[e[i]]=i),t}static #k=(()=>dt7948.n(this.prototype,"notificationLookup",[(0,d.default)("notification_types")]))();flagTypes(){let e=this.post_action_types;return e?e.filterBy("is_flag",!0):[]}static #S=(()=>dt7948.n(this.prototype,"flagTypes",[(0,d.default)("post_action_types.[]")]))();collectUserFields(e){e=e||{};let t=this.user_fields;return(0,u.isEmpty)(t)?[]:t.map(t=>{let i=e?e[t.id.toString()]:null;return i=i||(0,l.htmlSafe)("—"),{name:t.name,value:i}})}sortedCategories(e){return y.default.sortCategories(e)}static #A=(()=>dt7948.n(this.prototype,"sortedCategories",[(0,d.default)("categoriesByCount","categories.[]")]))();categoriesList(e){return this.siteSettings.fixed_category_positions?e:this.sortedCategories}static #M=(()=>dt7948.n(this.prototype,"categoriesList",[(0,d.default)("categories.[]")]))();trackedCategoriesList(e){let t=[];for(let i of e)i.isTracked&&(this.siteSettings.allow_uncategorized_topics||!i.isUncategorizedCategory)&&t.push(i);return t}static #E=(()=>dt7948.n(this.prototype,"trackedCategoriesList",[(0,d.default)("categories.[]","categories.@each.notification_level")]))();postActionTypeById(e){return this.get("postActionByIdLookup.action"+e)}topicFlagTypeById(e){return this.get("topicFlagByIdLookup.action"+e)}removeCategory(e){let t=this.categories,i=t.findBy("id",e);i&&t.removeObject(i)}updateCategory(e){let t=this.categories,i=(0,n.get)(e,"id"),s=t.findBy("id",i);return(null===e.permission&&delete e.permission,s)?(s.setProperties(e),s):(e=this.store.createRecord("category",e),t.pushObject(e),e)}},[f.default]),C=S;if("undefined"!=typeof Discourse){let e=!1;Object.defineProperty(Discourse,"Site",{get:()=>(e||((0,c.default)("Import the Site class instead of using Discourse.Site",{since:"2.4.0",id:"discourse.globals.site"}),e=!0),S)})}},18697:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(32045),n=i(91558),r=i(47920),a=i(41154),o=i(44337),l=i(55861),u=i(70508),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"filteredHistories",[(0,n.filterBy)("histories","created",!1)]))();#rf=(()=>void dt7948.i(this,"filteredHistories"))();static #i=(()=>(0,s.setComponentTemplate)((0,d.createTemplateFactory)({id:"loxH49hl",block:'[[[1,"\\n"],[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,[32,0],["review.history.title"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["filteredHistories"]]],null]],null],null,[[[41,[51,[30,1,["created"]]],[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[1,[28,[32,1],[[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[32,2],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[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,[32,4],[[30,1,["created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["rh"],false,["if","each","-track-array","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-histories.js",scope:()=>[u.i18n,l.default,r.default,a.default,o.default],isStrictMode:!0}),this))()}},18779:(e,t,i)=>{"use strict";i.r(t),i.d(t,{I:()=>d,R:()=>T,T:()=>y,a:()=>b});var s=i(93892),n=i(90760),r=i(11719);let a=new WeakMap;function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{includeAttributes:!1,localizeMapUpdates:!1},s=new WeakMap;return e.map((n,r)=>{let{name:o,params:d,paramNames:c,context:p,route:h}=n;if(a.has(n)&&i.includeAttributes){let e=a.get(n),t=l(e=function(e,t){let i={get metadata(){return u(e)}};return!Object.isExtensible(t)||t.hasOwnProperty("metadata")?Object.freeze(Object.assign({},t,i)):Object.assign(t,i)}(h,e),p);return s.set(n,e),i.localizeMapUpdates||a.set(n,t),t}let m=i.localizeMapUpdates?s:a,g={find(t,i){let s,n=[];3===t.length&&(n=e.map(e=>m.get(e)));for(let r=0;e.length>r;r++)if(s=m.get(e[r]),t.call(i,s,r,n))return s},get name(){return o},get paramNames(){return c},get metadata(){return u(n.route)},get parent(){let t=e[r-1];if(void 0===t)return null;return m.get(t)},get child(){let t=e[r+1];if(void 0===t)return null;return m.get(t)},get localName(){let e=this.name.split(".");return e[e.length-1]},get params(){return d},get queryParams(){return t}};return i.includeAttributes&&(g=l(g,p)),s.set(n,g),i.localizeMapUpdates||a.set(n,g),g})}function l(e,t){let i={get attributes(){return t}};return!Object.isExtensible(e)||e.hasOwnProperty("attributes")?Object.freeze(Object.assign({},e,i)):Object.assign(e,i)}function u(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class d{constructor(e,t,i,s){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=i,this.router=e,s&&this._processRoute(s)}getModel(e){return n.P.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return n.P.resolve(this.routePromise).then(t=>((0,r.t)(e),t)).then(()=>this.runBeforeModelHook(e)).then(()=>(0,r.t)(e)).then(()=>this.getModel(e)).then(t=>((0,r.t)(e),t)).then(t=>this.runAfterModelHook(e,t)).then(t=>this.becomeResolved(e,t))}becomeResolved(e,t){let i,s=this.serialize(t);e&&(this.stashResolvedModel(e,t),e[r.P]=e[r.P]||{},e[r.P][this.name]=s);let n=t===this.context;("context"in this||!n)&&(i=t);let o=a.get(this),l=new c(this.router,this.name,this.paramNames,s,this.route,i);return void 0!==o&&a.set(l,o),l}shouldSupersede(e){if(!e)return!0;let t=e.context===this.context;return e.name!==this.name||"context"in this&&!t||this.hasOwnProperty("params")&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(e.hasOwnProperty(i)&&e[i]!==t[i])return!1;return!0}(this.params,e.params)}get route(){return null!==this._route?this._route:this.fetchRoute()}set route(e){this._route=e}get routePromise(){return this._routePromise||this.fetchRoute(),this._routePromise}set routePromise(e){this._routePromise=e}log(e,t){e.log&&e.log(this.name+": "+t)}updateRoute(e){return e._internalName=this.name,this.route=e}runBeforeModelHook(e){let t;return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(t=this.route.beforeModel(e)),(0,r.i)(t)&&(t=null),n.P.resolve(t)}runAfterModelHook(e,t){let i,s=this.name;return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(i=this.route.afterModel(t,e)),i=(0,r.p)(i),n.P.resolve(i).then(()=>e.resolvedModels[s])}stashResolvedModel(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t}fetchRoute(){let e=this.router.getRoute(this.name);return this._processRoute(e)}_processRoute(e){return(this.routePromise=n.P.resolve(e),(0,r.a)(e))?(this.routePromise=this.routePromise.then(e=>this.updateRoute(e)),this.route=void 0):e?this.updateRoute(e):void 0}}class c extends d{constructor(e,t,i,s,n,r){super(e,t,i,n),this.params=s,this.isResolved=!0,this.context=r}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),n.P.resolve(this)}}class p extends d{constructor(e,t,i,s,n){super(e,t,i,n),this.params={},s&&(this.params=s)}getModel(e){let t,i=this.params;e&&e[r.Q]&&(i={},(0,r.m)(i,this.params),i.queryParams=e[r.Q]);let s=this.route;return s.deserialize?t=s.deserialize(i,e):s.model&&(t=s.model(i,e)),t&&(0,r.i)(t)&&(t=void 0),n.P.resolve(t)}}class h extends d{constructor(e,t,i,s){super(e,t,i),this.context=s,this.serializer=this.router.getSerializer(t)}getModel(e){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),super.getModel(e)}serialize(e){let{paramNames:t,context:i}=this;e||(e=i);let s={};if((0,r.b)(e))return s[t[0]]=e,s;if(this.serializer)return this.serializer.call(null,e,t);if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t);if(1!==t.length)return;let n=t[0];return/_id$/.test(n)?s[n]=e.id:s[n]=e,s}}class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.router=e,this.data=t}}function g(e,t,i){let s=e.routeInfos,n=t.resolveIndex>=s.length?s.length-1:t.resolveIndex,r=t.isAborted;throw new b(i,e.routeInfos[n].route,r,e)}function f(e,t){if(t.resolveIndex===e.routeInfos.length)return;let i=e.routeInfos[t.resolveIndex],s=_.bind(null,e,t);return i.resolve(t).then(s,null,e.promiseLabel("Proceed"))}function _(e,t,i){let s=e.routeInfos[t.resolveIndex].isResolved;if(e.routeInfos[t.resolveIndex++]=i,!s){let{route:e}=i;void 0!==e&&e.redirect&&e.redirect(i.context,t)}return(0,r.t)(t),f(e,t)}class y{constructor(){this.routeInfos=[],this.queryParams={},this.params={}}promiseLabel(e){let t="";return(0,r.f)(this.routeInfos,function(e){return""!==t&&(t+="."),t+=e.name,!0}),(0,r.c)("'"+t+"': "+e)}resolve(e){let t=this.params;(0,r.f)(this.routeInfos,e=>(t[e.name]=e.params||{},!0)),e.resolveIndex=0;let i=f.bind(null,this,e),s=g.bind(null,this,e);return n.P.resolve(null,this.promiseLabel("Start transition")).then(i,null,this.promiseLabel("Resolve route")).catch(s,this.promiseLabel("Handle error")).then(()=>this)}}class b{constructor(e,t,i,s){this.error=e,this.route=t,this.wasAborted=i,this.state=s}}class w extends m{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5?arguments[5]:void 0;super(e,r),this.preTransitionState=void 0,this.name=t,this.pivotHandler=i,this.contexts=s,this.queryParams=n}applyToState(e,t){let i=this.router.recognizer.handlersFor(this.name),s=i[i.length-1].handler;return this.applyToHandlers(e,i,s,t,!1)}applyToHandlers(e,t,i,s,n){let a,o,l=new y,u=this.contexts.slice(0),d=t.length;if(this.pivotHandler){for(a=0,o=t.length;a=0;--a){let r=t[a],o=r.handler,c=e.routeInfos[a],p=null;if(p=r.names.length>0?a>=d?this.createParamHandlerInfo(o,r.names,u,c):this.getHandlerInfoForDynamicSegment(o,r.names,u,c,i,a):this.createParamHandlerInfo(o,r.names,u,c),n){p=p.becomeResolved(null,p.context);let e=c&&c.context;r.names.length>0&&void 0!==c.context&&p.context===e&&(p.params=c&&c.params),p.context=e}let h=c;(a>=d||p.shouldSupersede(c))&&(d=Math.min(a,d),h=p),s&&!n&&(h=h.becomeResolved(null,h.context)),l.routeInfos.unshift(h)}if(u.length>0)throw Error("More context objects were passed than there are dynamic segments for the route: "+i);return s||this.invalidateChildren(l.routeInfos,d),(0,r.m)(l.queryParams,this.queryParams||{}),s&&e.queryParams&&(0,r.m)(l.queryParams,e.queryParams),l}invalidateChildren(e,t){for(let i=t,s=e.length;i0){if(o=i[i.length-1],(0,r.b)(o))return this.createParamHandlerInfo(e,t,i,s);i.pop()}else{if(s&&s.name===e||!this.preTransitionState)return s;let t=this.preTransitionState.routeInfos[a];o=null==t?void 0:t.context}return new h(this.router,e,t,o)}createParamHandlerInfo(e,t,i,s){let n={},a=t.length,o=[];for(;a--;){let l=s&&e===s.name&&s.params||{},u=i[i.length-1],d=t[a];(0,r.b)(u)?n[d]=""+i.pop():l.hasOwnProperty(d)?n[d]=l[d]:o.push(d)}if(o.length>0)throw Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${e}. Missing params: ${o}`);return new p(this.router,e,t,n)}}class k extends m{constructor(e,t,i){super(e,i),this.url=t,this.preTransitionState=void 0}applyToState(e){let t=new y,i=this.router.recognizer.recognize(this.url),s,n;if(!i)throw new r.U(this.url);let a=!1,o=this.url;function l(e){if(e&&e.inaccessibleByURL)throw new r.U(o);return e}for(s=0,n=i.length;s=0&&s;--i){let n=t[i],r=n.handler;e.add(t,{as:r}),s="/"===n.path||""===n.path||".index"===r.slice(-6)}})}hasRoute(e){return this.recognizer.hasRoute(e)}queryParamsTransition(e,t,i,s){if(this.fireQueryParamDidChange(s,e),!t&&this.activeTransition)return this.activeTransition;{let e=new r.T(this,void 0,void 0);return e.queryParamsOnly=!0,i.queryParams=this.finalizeQueryParamChange(s.routeInfos,s.queryParams,e),e[r.Q]=s.queryParams,this.toReadOnlyInfos(e,s),this.routeWillChange(e),e.promise=e.promise.then(t=>(e.isAborted||(this._updateURL(e,i),this.didTransition(this.currentRouteInfos),this.toInfos(e,s.routeInfos,!0),this.routeDidChange(e)),t),null,(0,r.c)("Transition complete")),e}}transitionByIntent(e,t){try{return this.getTransitionByIntent(e,t)}catch(t){return new r.T(this,e,void 0,t,void 0)}}recognize(e){let t=new k(this,e),i=this.generateNewState(t);if(null===i)return i;let s=o(i.routeInfos,i.queryParams,{includeAttributes:!1,localizeMapUpdates:!0});return s[s.length-1]}recognizeAndLoad(e){let t=new k(this,e),i=this.generateNewState(t);if(null===i)return n.P.reject(`URL ${e} was not recognized`);let s=new r.T(this,t,i,void 0);return s.then(()=>{let e=o(i.routeInfos,s[r.Q],{includeAttributes:!0,localizeMapUpdates:!1});return e[e.length-1]})}generateNewState(e){try{return e.applyToState(this.state,!1)}catch(e){return null}}getTransitionByIntent(e,t){let i,s=!!this.activeTransition,n=s?this.activeTransition[r.S]:this.state,a=e.applyToState(n,t),o=(0,r.g)(n.queryParams,a.queryParams);if(S(a.routeInfos,n.routeInfos)){if(o){let e=this.queryParamsTransition(o,s,n,a);return e.queryParamsOnly=!0,e}return this.activeTransition||new r.T(this,void 0,void 0)}if(t){let e=new r.T(this,void 0,a);return e.isIntermediate=!0,this.toReadOnlyInfos(e,a),this.setupContexts(a,e),this.routeWillChange(e),this.activeTransition}return i=new r.T(this,e,a,void 0,this.activeTransition),function(e,t){if(e.length!==t.length)return!1;for(let i=0,s=e.length;ithis.finalizeTransition(i,e),null,(0,r.c)("Settle transition promise when transition is finalized")),s||this.notifyExistingHandlers(a,i),this.fireQueryParamDidChange(a,o),i}doTransition(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i[i.length-1],a={};if(n&&Object.prototype.hasOwnProperty.call(n,"queryParams")&&(a=i.pop().queryParams),void 0===e){(0,r.d)(this,"Updating query params");let{routeInfos:e}=this.state;t=new w(this,e[e.length-1].name,void 0,[],a)}else"/"===e.charAt(0)?((0,r.d)(this,"Attempting URL transition to "+e),t=new k(this,e)):((0,r.d)(this,"Attempting transition to "+e),t=new w(this,e,void 0,i,a));return this.transitionByIntent(t,s)}finalizeTransition(e,t){try{(0,r.d)(e.router,e.sequence,"Resolved all models on destination route; finalizing transition.");let i=t.routeInfos;if(this.setupContexts(t,e),e.isAborted)return this.state.routeInfos=this.currentRouteInfos,n.P.reject((0,r.l)(e));return this._updateURL(e,t),e.isActive=!1,this.activeTransition=void 0,this.triggerEvent(this.currentRouteInfos,!0,"didTransition",[]),this.didTransition(this.currentRouteInfos),this.toInfos(e,t.routeInfos,!0),this.routeDidChange(e),(0,r.d)(this,e.sequence,"TRANSITION COMPLETE."),i[i.length-1].route}catch(t){if(!(0,r.e)(t)){let i=e[r.S].routeInfos;e.trigger(!0,"error",t,e,i[i.length-1].route),e.abort()}throw t}}setupContexts(e,t){let i,s,n,r=this.partitionRoutes(this.state,e);for(i=0,s=r.exited.length;i=0;--e){let t=s[e];(0,r.m)(a,t.params),t.route.inaccessibleByURL&&(i=null)}if(i){a.queryParams=e._visibleQueryParams||t.queryParams;let s=this.recognizer.generate(n,a),r=e.isCausedByInitialTransition,o="replace"===i&&!e.isCausedByAbortingTransition,l=e.queryParamsOnly&&"replace"===i,u="replace"===i&&e.isCausedByAbortingReplaceTransition;r||o||l||u?this.replaceURL(s):this.updateURL(s)}}finalizeQueryParamChange(e,t,i){for(let e in t)t.hasOwnProperty(e)&&null===t[e]&&delete t[e];let s=[];this.triggerEvent(e,!0,"finalizeQueryParamChange",[t,s,i]),i&&(i._visibleQueryParams={});let n={};for(let e=0,t=s.length;e0){let i=o(t,Object.assign({},this._lastQueryParams),{includeAttributes:!0,localizeMapUpdates:!1});e.from=i[i.length-1]||null}}toInfos(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0!==e&&t.length>0){let s=o(t,Object.assign({},e[r.Q]),{includeAttributes:i,localizeMapUpdates:!1});e.to=s[s.length-1]||null}}notifyExistingHandlers(e,t){let i=this.state.routeInfos,s,n,r,a;for(s=0,n=i.length;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s{"use strict";i.r(t),i.d(t,{getOwner:()=>r,isFactory:()=>n,setOwner:()=>a});var s=i(86049);function n(e){return null!=e&&"function"==typeof e.create}function r(e){return(0,s.getOwner)(e)}function a(e,t){(0,s.setOwner)(e,t)}},18796:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(7155),n=i(86981),r=i(75093),a=i(87367),o=i(47872);class l extends o.default{static #e=(()=>dt7948.g(this.prototype,"store",[r.service]))();#w=(()=>void dt7948.i(this,"store"))();static #i=(()=>dt7948.g(this.prototype,"can_delete",[s.tracked]))();#iM=(()=>void dt7948.i(this,"can_delete"))();static #n=(()=>dt7948.g(this.prototype,"can_edit_staff_notes",[s.tracked]))();#r_=(()=>void dt7948.i(this,"can_edit_staff_notes"))();static #a=(()=>dt7948.g(this.prototype,"can_permanently_delete",[s.tracked]))();#iE=(()=>void dt7948.i(this,"can_permanently_delete"))();static #l=(()=>dt7948.g(this.prototype,"can_publish_page",[s.tracked]))();#ry=(()=>void dt7948.i(this,"can_publish_page"))();static #d=(()=>dt7948.g(this.prototype,"can_split_merge_topic",[s.tracked]))();#rb=(()=>void dt7948.i(this,"can_split_merge_topic"))();static #p=(()=>dt7948.g(this.prototype,"created_by",[s.tracked]))();#rv=(()=>void dt7948.i(this,"created_by"))();static #m=(()=>dt7948.g(this.prototype,"notification_level",[s.tracked]))();#rw=(()=>void dt7948.i(this,"notification_level"))();loaded=!1;updateFromJson(e){let t=this.topic;e.allowed_users&&(e.allowed_users=e.allowed_users.map(e=>this.store.createRecord("user",e))),e.participants&&(e.participants=e.participants.map(e=>(e.topic=t,n.default.create(e)))),this.setProperties(e),this.set("loaded",!0)}updateNotifications(e){return(0,a.ajax)(`/t/${this.get("topic.id")}/notifications`,{type:"POST",data:{notification_level:e}}).then(()=>{this.setProperties({notification_level:e,notifications_reason_id:null})})}removeAllowedGroup(e){let t=this.allowed_groups,i=e.name;return(0,a.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-group",{type:"PUT",data:{name:i}}).then(()=>{t.removeObject(t.findBy("name",i))})}removeAllowedUser(e){let t=this.allowed_users,i=e.get("username");return(0,a.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-user",{type:"PUT",data:{username:i}}).then(()=>{t.removeObject(t.findBy("username",i))})}}},18830:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(85024),n=i(78771),r=i.n(n),a=i(18649),o=i(32045),l=i(1519);let u=dt7948.c(class extends a.default{static #e=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"QCgt4q9l",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[32,0],[[30,1]],[["translatedTitle"],[[30,0,["dasherizedTitle"]]]]]],[1,"\\n"]],[1]],null],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n "]],["i"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-none-row.js",scope:()=>[r()],isStrictMode:!0}),this))()},[(0,s.classNames)("none")])},18878:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(87367),n=i(96527),r=i(11837),a=i(46700),o=i(81932);class l extends o.default{constructor(e){let{notification:t,endComponent:i,appEvents:s,currentUser:n,siteSettings:r,site:o}=e;super(...arguments),this.appEvents=s,this.currentUser=n,this.endComponent=i,this.notification=t,this.siteSettings=r,this.site=o,this.renderDirector=(0,a.getRenderDirector)(this.#rk,t,n,r,o)}get className(){return this.renderDirector.classNames?.join(" ")||""}get linkHref(){return this.renderDirector.linkHref}get linkTitle(){return this.renderDirector.linkTitle}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.label}get labelClass(){return this.renderDirector.labelClasses?.join(" ")||""}get description(){return this.renderDirector.description}get descriptionClass(){return this.renderDirector.descriptionClasses?.join(" ")||""}get topicId(){return this.notification.topic_id}get avatarTemplate(){return this.notification.acting_user_avatar_template}get endOutletArgs(){return{notification:this.notification}}get #rk(){return this.site.notificationLookup[this.notification.notification_type]}onClick(){if(this.renderDirector.onClick?.(),this.appEvents.trigger("user-menu:notification-click",{notification:this.notification,href:this.linkHref}),!this.notification.read){this.notification.set("read",!0);let e={...this.currentUser.grouped_unread_notifications},t=e&&e[this.notification.notification_type];t>0&&(e[this.notification.notification_type]=t-1,this.currentUser.set("grouped_unread_notifications",e)),(0,s.setTransientHeader)("Discourse-Clear-Notifications",this.notification.id),(0,n.default)("cn",this.notification.id,{path:(0,r.default)("/")})}super.onClick(...arguments)}}},18915:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(78085),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"XsQ59kq7",block:'[[[1,"\\n "],[1,[28,[32,0],["search.post_format",[30,1]],null]],[1,"\\n "],[8,[32,1],null,[["@result"],[[30,1]]],null],[1,"\\n"]],["@result"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/type/post.js",scope:()=>[n.i18n,s.default],isStrictMode:!0}),(0,o.default)(void 0,"post:Post"))},18951:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(38161),n=i(41107),r=i.n(n),a=i(51318),o=i(14051),l=i(43085),u=i(70508);class d extends a.default{autocomplete="off";enterkeyhint="search";placeholder(e){return e?"":(0,u.i18n)("search.full_page_title")}static #e=(()=>dt7948.n(this.prototype,"placeholder",[(0,o.default)("searchService.searchContextEnabled")]))();becomeFocused(){let e=r()(this.element);(0,l.applySearchAutocomplete)(e,this.siteSettings),this.hasAutofocus&&(r()(window).scrollTop(0),e.focus())}static #i=(()=>dt7948.n(this.prototype,"becomeFocused",[(0,s.on)("didInsertElement")]))()}},19006:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(9032);function n(e){return(0,s.htmlSafe)(e)}},19237:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GROUP_ACTION_CODES:()=>y,ICONS:()=>w,addGroupPostSmallActionCode:()=>k,customGroupActionCodes:()=>b,default:()=>S,resetGroupPostSmallActionCodes:()=>T});var s=i(93317);i(7155);var n=i(9032),r=i(13355),a=i(1908),o=i(3289),l=i(63538),u=i(38069),d=i(91035),c=i(11837),p=i(77982),h=i(77296),m=i(70508),g=i(32045),f=i(1519);let _=(0,i(96900).A)(i(7155)).cached,y=["invited_group","removed_group"],b=[],w={"closed.enabled":"lock","closed.disabled":"unlock-keyhole","autoclosed.enabled":"lock","autoclosed.disabled":"unlock-keyhole","archived.enabled":"folder","archived.disabled":"folder-open","pinned.enabled":"thumbtack","pinned.disabled":"thumbtack unpinned","pinned_globally.enabled":"thumbtack","pinned_globally.disabled":"thumbtack unpinned","banner.enabled":"thumbtack","banner.disabled":"thumbtack unpinned","visible.enabled":"far-eye","visible.disabled":"far-eye-slash",split_topic:"right-from-bracket",invited_user:"circle-plus",invited_group:"circle-plus",user_left:"circle-minus",removed_user:"circle-minus",removed_group:"circle-minus",public_topic:"comment",open_topic:"comment",private_topic:"envelope",autobumped:"hand-point-right"};function k(e){b.push(e)}function T(){b.length=0}class S extends s.default{get CustomComponent(){return(0,p.applyValueTransformer)("post-small-action-custom-component",null,{actionCode:this.code,post:this.post})}static #e=(()=>dt7948.n(this.prototype,"CustomComponent",[_]))();get additionalClasses(){return(0,p.applyValueTransformer)("post-small-action-class",[],{post:this.args.post})}get code(){return this.args.post.action_code}get createdAt(){return new Date(this.args.post.created_at)}static #i=(()=>dt7948.n(this.prototype,"createdAt",[_]))();get description(){let e=this.createdAt?(0,d.autoUpdatingRelativeAge)(this.createdAt,{format:"medium-with-ago-and-on"}):"",t="";return this.username&&(t=this.isGroupAction?`@${this.username}`:`@${this.username}`),(0,n.htmlSafe)((0,m.i18n)(`action_codes.${this.code}`,{who:t,when:e,path:this.path}))}get icon(){return(0,p.applyValueTransformer)("post-small-action-icon",w[this.code]||"exclamation",{code:this.code,post:this.args.post})}static #n=(()=>dt7948.n(this.prototype,"icon",[_]))();get isGroupAction(){return y.includes(this.code)||b.includes(this.code)}get path(){return(0,c.default)(this.args.post.action_code_path||`/t/${this.args.post.topic.id}`)}get username(){return this.args.post.action_code_who}static #a=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"ueOA3oKI",block:'[[[1,"\\n "],[11,"article"],[17,1],[16,0,[52,[51,[30,2]],[28,[32,0],["small-action","onscreen-post",[52,[30,3,["deleted"]],"deleted"],[30,0,["additionalClasses"]]],null]]],[16,"aria-label",[28,[32,1],["share.post"],[["postNumber","username"],[[30,3,["post_number"]],[30,3,["username"]]]]]],[24,"role","region"],[16,"data-post-number",[30,3,["post_number"]]],[12],[1,"\\n"],[41,[51,[30,2]],[[[1," "],[10,0],[14,0,"topic-avatar"],[12],[1,"\\n "],[1,[28,[32,2],[[30,0,["icon"]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"small-action-desc"],[12],[1,"\\n "],[10,0],[14,0,"small-action-contents"],[12],[1,"\\n "],[8,[32,3],null,[["@ariaHidden","@size","@user"],[false,"small",[30,3,["user"]]]],null],[1,"\\n"],[41,[30,0,["CustomComponent"]],[[[1," "],[8,[30,0,["CustomComponent"]],null,[["@code","@post","@createdAt","@path","@username"],[[30,0,["code"]],[30,0,["post"]],[30,0,["createdAt"]],[30,0,["path"]],[30,0,["username"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,2],[12],[1,[28,[32,4],[[30,0,["description"]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,0,"small-action-buttons"],[12],[1,"\\n"],[41,[30,3,["canRecover"]],[[[1," "],[8,[32,5],[[24,0,"btn-flat small-action-recover"]],[["@icon","@action","@title"],["arrow-rotate-left",[30,4],"post.controls.undelete"]],null],[1,"\\n"]],[]],[[[41,[30,3,["can_edit"]],[[[1," "],[8,[32,5],[[24,0,"btn-flat small-action-edit"]],[["@icon","@action","@title"],["pencil",[30,5],"post.controls.edit"]],null],[1,"\\n "]],[]],null]],[]]],[41,[30,3,["canDelete"]],[[[1," "],[8,[32,5],[[24,0,"btn-flat btn-danger small-action-delete"]],[["@icon","@action","@title"],["trash-can",[30,6],"post.controls.delete"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[51,[30,0,["CustomComponent"]]],[[[41,[30,3,["cooked"]],[[[1," "],[10,0],[14,0,"small-action-custom-message"],[12],[1,"\\n "],[8,[32,6],null,[["@post"],[[30,3]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["&attrs","@cloaked","@post","@recoverPost","@editPost","@deletePost"],false,["unless","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/small-action.js",scope:()=>[l.default,m.i18n,u.default,o.default,n.htmlSafe,r.default,a.default],isStrictMode:!0}),this))()}},19349:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MAX_ANIMATION_TIME:()=>d,MINIMUM_SWIPE_DISTANCE:()=>u,SWIPE_DISTANCE_THRESHOLD:()=>o,SWIPE_VELOCITY_THRESHOLD:()=>l,default:()=>c,getMaxAnimationTimeMs:()=>r,shouldCloseMenu:()=>a});var s=i(14051),n=i(97908);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return(0,n.isTesting)()||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:Math.min(e,d)}function a(e,t){return"right"===t?e.deltaX>o&&e.velocityX>-l||e.velocityX>0:"left"===t?e.deltaX<-o&&e.velocityXo&&e.velocityY>-l||e.velocityY>0:"top"===t&&(e.deltaY<-o&&e.velocityY1){if(this.cancelled)return;this.cancelled=!0;let t=new CustomEvent("swipecancel",{detail:{originalEvent:e}});this.element.dispatchEvent(t);return}this.swipeState=this.#rT(e.touches[0])}static #e=(()=>dt7948.n(this.prototype,"touchStart",[s.bind]))();touchMove(e){let t=e.touches[0];t.type="pointermove",this.#rS(t,e)}static #i=(()=>dt7948.n(this.prototype,"touchMove",[s.bind]))();touchEnd(e){this.#rS({type:"pointerup"},e),0===e.touches.length&&(this.cancelled=!1)}static #n=(()=>dt7948.n(this.prototype,"touchEnd",[s.bind]))();touchCancel(e){this.#rS({type:"pointercancel"},e),0===e.touches.length&&(this.cancelled=!1)}static #a=(()=>dt7948.n(this.prototype,"touchCancel",[s.bind]))();addTouchListeners(){let e={passive:!1};this.element.addEventListener("touchstart",this.touchStart,e),this.element.addEventListener("touchmove",this.touchMove,e),this.element.addEventListener("touchend",this.touchEnd,e),this.element.addEventListener("touchcancel",this.touchCancel,e)}removeTouchListeners(){this.element.removeEventListener("touchstart",this.touchStart),this.element.removeEventListener("touchmove",this.touchMove),this.element.removeEventListener("touchend",this.touchEnd),this.element.removeEventListener("touchcancel",this.touchCancel)}#rC(e,t,i){if(e.start||!e.direction)if(Math.abs(t)>Math.abs(i))return t>0?"right":"left";else return i>0?"down":"up";return e.direction}#rA(e,t){if("pointerup"===t.type||"pointercancel"===t.type)return e;let i=Date.now(),s=i-e.timestamp;if(0===s)return e;let n=t.clientX-e.startLocation.x,r=t.clientY-e.startLocation.y,a=t.clientX-e.center.x,o=t.clientY-e.center.y,l=this.#rC(e,n,r);return{startLocation:e.startLocation,center:{x:t.clientX,y:t.clientY},velocityX:a/s,velocityY:o/s,deltaX:n,deltaY:r,start:!1,timestamp:i,direction:l,element:this.element,goingUp:()=>"up"===l,goingDown:()=>"down"===l}}#rT(e){return{center:{x:e.clientX,y:e.clientY},startLocation:{x:e.clientX,y:e.clientY},velocityX:0,velocityY:0,deltaX:0,deltaY:0,start:!0,timestamp:Date.now(),direction:null,element:this.element,goingUp:()=>!1,goingDown:()=>!1}}#rS(e,t){if(this.cancelled)return;if(!this.swipeState){this.swipeState=this.#rT(e);return}t.stopPropagation();let i=this.swipeState,s=this.#rA(i,e);if(!(i.start&&Math.abs(s.deltaX){if(!this.animationPending||!this.swiping||this.cancelled){this.animationPending=!1;return}let e=new CustomEvent("swipe",{detail:s});this.element.dispatchEvent(e),this.animationPending=!1})}}}}},19388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(86981),n=i(87367),r=i(72095),a=i(34472),o=i(43085),l=i(35697),u=i(27797),d=i(70508);class c extends u.default{queryParams={q:{},expanded:!1,context_id:{},context:{},skip_context:{}};category=null;titleToken(){return(0,d.i18n)("search.results_page",{term:(0,l.escapeExpression)(this.controllerFor("full-page-search").get("searchTerm"))})}model(e){let t=(0,r.getTransient)("lastSearch"),i={q:e.q};e.context_id&&!i.skip_context&&(i.search_context={type:e.context,id:e.context_id});let s=(0,o.getSearchKey)(i);return t&&t.data.searchKey===s?((0,r.setTransient)("lastSearch",{searchKey:s,model:t.data.model},5),t.data.model):a.default.getAndRemove("search",()=>(0,o.isValidSearchTerm)(e.q,this.siteSettings)?(0,n.ajax)("/search",{data:i}):null).then(async e=>{let t=e&&await (0,o.translateResults)(e)||{};return(0,r.setTransient)("lastSearch",{searchKey:s,model:t},5),t})}didTransition(){return this.controllerFor("full-page-search")._afterTransition(),!0}static #e=(()=>dt7948.n(this.prototype,"didTransition",[s.action]))()}},19396:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addFeaturedLinkMetaDecorator:()=>o,default:()=>u,extractLinkMeta:()=>l,topicFeaturedLinkNode:()=>d});var s=i(11651),n=i(21530),r=i(25217);let a=[];function o(e){a.push(e)}function l(e){let t=e.get("featured_link"),i=r.default.currentProp("user_option.external_links_in_new_tab")?"_blank":"",s=e.get("featured_link_root_domain"),n=e.siteSettings.exclude_rel_nofollow_domains,o="nofollow ugc";if(n&&(n=n.split("|")).includes(s)&&(o=o.replace("nofollow ","")),!t)return;let l={target:i,href:t,domain:s,rel:o};return a.length&&a.forEach(e=>e(l)),l}function u(e){let t=l(e);return t?`${(0,n.renderIcon)("string","up-right-from-square")} ${t.domain}`:""}function d(e){let t=l(e);if(t)return(0,s.h)("a.topic-featured-link",{attributes:{href:t.href,rel:t.rel,target:t.target}},[(0,n.renderIcon)("node","up-right-from-square"),t.domain])}},19434:(e,t,i)=>{"use strict";function s(e){let t={};for(let i in t[e]=1,t)if(i===e)return i;return e}i.r(t),i.d(t,{HAS_BLOCK:()=>r,isSimpleClick:()=>a});let n=s(`__ember${Date.now()}`),r=function(e){let t=n+Math.floor(Math.random()*Date.now());return s(`__${e}${t}__`)}("HAS_BLOCK");function a(e){let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,i=e.which>1;return!t&&!i}},19476:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(57330);i(71729),i(60569),i(89352),i(77188),i(77061);var n=i(34100),r=i(31847),a=i(51750);i(28543);let o=i(82876).default.create({get(e){return(0,n.g)(this,e)},getProperties(){for(var e=arguments.length,t=Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:1;return(0,r.s)(this,e,(parseFloat((0,n.g)(this,e))||0)+t)},decrementProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(0,r.s)(this,e,((0,n.g)(this,e)||0)-t)},toggleProperty(e){return(0,r.s)(this,e,!(0,n.g)(this,e))},cacheFor(e){let t=(0,s.peekMeta)(this);return null!==t?t.valueFor(e):void 0}})},19502:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RouteException:()=>c,default:()=>p}),i(7155);var s=i(50890),n=i(86981),r=i(91558),a=i(24813),o=i(14051),l=i(77296),u=i(70508);let d=(0,i(96900).A)(i(7155)).cached;class c{status;reason;constructor(e){let{status:t,reason:i,desc:s}=e;this.status=t,this.reason=i,this.desc=s}}class p extends s.default{thrown;lastTransition;static #e=(()=>dt7948.g(this.prototype,"isNotFound",[(0,r.equal)("thrown.status",404)]))();#rD=(()=>void dt7948.i(this,"isNotFound"))();static #i=(()=>dt7948.g(this.prototype,"isForbidden",[(0,r.equal)("thrown.status",403)]))();#rM=(()=>void dt7948.i(this,"isForbidden"))();static #n=(()=>dt7948.g(this.prototype,"isServer",[(0,r.gte)("thrown.status",500)]))();#rx=(()=>void dt7948.i(this,"isServer"))();static #a=(()=>dt7948.g(this.prototype,"isUnknown",[(0,r.none)("isNetwork","isServer")]))();#rE=(()=>void dt7948.i(this,"isUnknown"))();static #l=(()=>dt7948.g(this.prototype,"errorHtml",[(0,r.alias)("thrown.responseJSON.extras.html")]))();#rL=(()=>void dt7948.i(this,"errorHtml"))();networkFixed=!1;loading=!1;static #d=(()=>dt7948.g(this.prototype,"requestUrl",[(0,r.alias)("thrown.requestedUrl")]))();#rP=(()=>void dt7948.i(this,"requestUrl"))();isNetwork(e){return!!e&&0===e.readyState||!!e&&"timeout"===e.jqTextStatus}static #p=(()=>dt7948.n(this.prototype,"isNetwork",[(0,o.default)("thrown")]))();reason(e,t,i){if(i.reason)return i.reason;if(e)return(0,u.i18n)("errors.reasons.network");if(t>=500)return(0,u.i18n)("errors.reasons.server");if(404===t)return(0,u.i18n)("errors.reasons.not_found");if(403===t)return(0,u.i18n)("errors.reasons.forbidden");else if(null===i)return(0,u.i18n)("errors.reasons.unknown");else return(0,u.i18n)("errors.reasons.unknown")}static #m=(()=>dt7948.n(this.prototype,"reason",[(0,o.default)("isNetwork","thrown.status","thrown")]))();desc(e,t,i,s,n){if(n.desc)return n.desc;if(e)return(0,u.i18n)("errors.desc.network_fixed");if(t)return(0,u.i18n)("errors.desc.network");if(404===i)return(0,u.i18n)("errors.desc.not_found");if(403===i)return(0,u.i18n)("errors.desc.forbidden");else if(i>=500)return(0,u.i18n)("errors.desc.server",{status:i+" "+s});else if(null===n)return(0,u.i18n)("errors.desc.unknown");else return(0,u.i18n)("errors.desc.unknown")}static #f=(()=>dt7948.n(this.prototype,"desc",[(0,o.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 #y=(()=>dt7948.n(this.prototype,"buttons",[d]))();enabledButtons(e,t,i){return e?[this.buttons.ButtonLoadPage]:t?[this.buttons.ButtonBackDim,this.buttons.ButtonTryAgain]:i?[this.buttons.ButtonBackBright,this.buttons.ButtonTryAgain]:[this.buttons.ButtonBackBright]}static #v=(()=>dt7948.n(this.prototype,"enabledButtons",[(0,o.default)("networkFixed","isNetwork","lastTransition")]))();back(){let e=l.default.router.location.getURL();this.lastTransition?.method==="replace"?(this.setProperties({lastTransition:null,thrown:null}),l.default.handleURL(e)):window.history.back()}static #k=(()=>dt7948.n(this.prototype,"back",[n.action]))();tryLoading(){this.set("loading",!0),(0,a.schedule)("afterRender",()=>{let e=this.lastTransition;this.setProperties({lastTransition:null,thrown:null}),e.retry(),this.set("loading",!1)})}static #S=(()=>dt7948.n(this.prototype,"tryLoading",[n.action]))()}},19559:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(13355),l=i(70508),u=i(32045),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[a.service]))();#ty=(()=>void dt7948.i(this,"sidebarState"))();static #i=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();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 #a=(()=>dt7948.n(this.prototype,"setFilter",[r.action]))();clearFilter(){this.sidebarState.clearFilter(),document.querySelector(".sidebar-filter__input").focus()}static #l=(()=>dt7948.n(this.prototype,"clearFilter",[r.action]))();static #d=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"2mUOQeeg",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_links"],null]],[24,"enterkeyhint","done"],[24,0,"sidebar-filter__input"],[24,4,"text"],[4,[32,1],["input",[30,0,["setFilter"]]],null],[12],[13],[1,"\\n\\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:()=>[l.i18n,n.on,o.default],isStrictMode:!0}),this))()}},19647:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(86981),n=i(87367);class r extends s.default{static clear(e,t){return(0,n.ajax)(`/drafts/${e}.json`,{type:"DELETE",data:{draft_key:e,sequence:t}})}static get(e){return(0,n.ajax)(`/drafts/${e}.json`)}static getLocal(e,t){return t}static save(e,t,i,s){let{forceSave:r=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return i="string"==typeof i?i:JSON.stringify(i),(0,n.ajax)("/drafts.json",{type:"POST",data:{draft_key:e,sequence:t,data:i,owner:s,force_save:r},ignoreUnsent:!1})}}},19721:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SexpOpcodes:()=>s,VariableResolutionContext:()=>n,WellKnownAttrNames:()=>r,WellKnownTagNames:()=>a,getStringFromValue:()=>c,is:()=>o,isArgument:()=>p,isAttribute:()=>u,isFlushElement:()=>l,isGet:()=>m,isHelper:()=>h,isStringLiteral:()=>d});let s={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54},n={Strict:0,ResolveAsComponentOrHelperHead:1,ResolveAsHelperHead:5,ResolveAsModifierHead:6,ResolveAsComponentHead:7},r={class:0,id:1,value:2,name:3,type:4,style:5,href:6},a={div:0,span:1,p:2,a:3};function o(e){return function(t){return Array.isArray(t)&&t[0]===e}}let l=o(s.FlushElement);function u(e){return e[0]===s.StaticAttr||e[0]===s.DynamicAttr||e[0]===s.TrustingDynamicAttr||e[0]===s.ComponentAttr||e[0]===s.StaticComponentAttr||e[0]===s.TrustingComponentAttr||e[0]===s.AttrSplat||e[0]===s.Modifier}function d(e){return"string"==typeof e}function c(e){return e}function p(e){return e[0]===s.StaticArg||e[0]===s.DynamicArg}function h(e){return Array.isArray(e)&&e[0]===s.Call}let m=o(s.GetSymbol)},19816:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(96791),r=i(86981),a=i(85024),o=i(41154),l=i(38069),u=i(1519);let d=dt7948.c(class extends s.default{remove(e){e?.preventDefault(),this.removeAction(this.member)}static #e=(()=>dt7948.n(this.prototype,"remove",[r.action]))();static #i=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"QkEk4Y2V",block:'[[[1,"\\n "],[10,3],[15,6,[30,0,["member","adminPath"]]],[12],[1,"\\n "],[1,[28,[32,0],[[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,[32,1],["click",[30,0,["remove"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["xmark"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-member.js",scope:()=>[o.default,n.on,l.default],isStrictMode:!0}),this))()},[(0,a.classNames)("item")])},19832:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function n(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,i){var s=e+" ";switch(i){case"ss":return s+(n(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return s+(n(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return s+(n(e)?"godziny":"godzin");case"ww":return s+(n(e)?"tygodnie":"tygodni");case"MM":return s+(n(e)?"miesiące":"miesięcy");case"yy":return s+(n(e)?"lata":"lat")}}return e.defineLocale("pl",{months:function(e,s){return e?/D MMMM/.test(s)?i[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},19860:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&null!==e}},19873:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i){return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":e+" "+function(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}({ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i],+e)}return e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return(e%10==2||e%10==3)&&e%100!=12&&e%100!=13?e+"-і":e+"-ы";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})})},19930:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(57079),r=i(27e3),a=i(70508),o=i(32045),l=i(1519);class u extends s.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,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"i6QAwUit",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 "],[10,1],[14,0,"content"],[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 "],[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:()=>[a.i18n,r.default,n.and],isStrictMode:!0}),this))()}},19950:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(93317),n=i(7155),r=i(86981),a=i(96848),o=i(13355),l=i(53329),u=i(51667),d=i(61063),c=i(77681),p=i(14667),h=i(10458),m=i(14051),g=i(85113),f=i(70508),_=i(32045),y=i(1519);class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"isCollapsed",[n.tracked],function(){return!1}))();#rF=(()=>void dt7948.i(this,"isCollapsed"))();static #i=(()=>dt7948.g(this.prototype,"isLongPost",[n.tracked],function(){return!1}))();#rI=(()=>void dt7948.i(this,"isLongPost"))();maxPostHeight=300;toggleContent(){this.isCollapsed=!this.isCollapsed}static #n=(()=>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 #a=(()=>dt7948.n(this.prototype,"calculatePostBodySize",[m.bind]))();get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}static #l=(()=>(0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"NZz9a5qt",block:'[[[1,"\\n "],[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n "],[8,[32,0],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n "],[8,[32,1],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[32,2],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[32,3],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,[32,4],[[30,0,["calculatePostBodySize"]],[30,1]],null],[12],[1,"\\n"],[41,[30,1,["blank_post"]],[[[1," "],[10,2],[12],[1,[28,[32,5],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,6],[[30,1,["cooked"]],[30,1]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[32,7],[[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,[32,8],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-flagged-post-body","div",[28,[32,9],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@reviewable","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-flagged-post.js",scope:()=>[p.default,d.default,u.default,c.default,a.default,f.i18n,g.default,o.default,l.default,h.default],isStrictMode:!0}),this))()}},20037:(e,t,i)=>{"use strict";i.r(t),i.d(t,{formattedReminderTime:()=>n});var s=i(70508);function n(e,t){let i=moment.tz(e,t),n=i.format((0,s.i18n)("dates.time")),r=moment.tz(t),a=moment(r).add(1,"day");return i.isSame(a,"date")?(0,s.i18n)("bookmarks.reminders.tomorrow_with_time",{time:n}):i.isSame(r,"date")?(0,s.i18n)("bookmarks.reminders.today_with_time",{time:n}):(0,s.i18n)("bookmarks.reminders.at_time",{date_time:i.format((0,s.i18n)("dates.long_with_year"))})}},20089:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(73326),r=i(96791),a=i(86981),o=i(57079),l=i(13355),u=i(63538),d=i(29466),c=i(70508),p=i(75743),h=i(32045),m=i(1519);class g extends s.default{click(e){(0,d.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",[a.action]))();static #i=(()=>(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,o.and,p.default,n.hash,l.default,c.i18n,r.on],isStrictMode:!0}),this))()}},20124:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(70568),n=i(75370),r=i(96819),a=i(53329),o=i(1158),l=i(10458),u=i(70508),d=i(32045),c=i(1519),p=i(69522);let h=(0,n.default)((0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"Kvpxi1Em",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["about-wrapper",[28,[32,1],null,[["model","contactInfo","faqOverridden"],[[30,1,["model"]],[30,1,["contactInfo"]],[30,1,["faqOverridden"]]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,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,[32,3],[[24,0,"active"]],[["@route"],["about"]],[["default"],[[[[1,[28,[32,4],["about.simple_title"],null]]],[]]]]],[13],[1,"\\n"],[41,[30,1,["faqOverridden"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[32,3],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[32,4],["guidelines"],null]]],[]]]]],[13],[1,"\\n "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[32,3],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[32,4],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[41,[30,1,["renameFaqToGuidelines"]],[[[1," "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[32,3],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[32,4],["guidelines"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[32,3],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[32,4],["faq"],null]]],[]]]]],[13],[1,"\\n "]],[]]]],[]]],[41,[30,1,["site","tos_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-tos"],[12],[8,[32,3],null,[["@route"],["tos"]],[["default"],[[[[1,[28,[32,4],["tos"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[41,[30,1,["site","privacy_policy_url"]],[[[1," "],[10,"li"],[14,0,"nav-item-privacy"],[12],[8,[32,3],null,[["@route"],["privacy"]],[["default"],[[[[1,[28,[32,4],["privacy"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[8,[32,5],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@controller"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/about.js",scope:()=>[a.default,l.default,o.default,s.LinkTo,u.i18n,r.default],isStrictMode:!0}),(0,p.default)(void 0,void 0)))},20133:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(73326),r=i(86981),a=i(75093),o=i(13355),l=i(45141),u=i(53329),d=i(63538),c=i(38069),p=i(10458),h=i(10216),m=i(70508),g=i(38575),f=i(32045),_=i(1519);function y(e,t,i,s){let n=e+"."+t;return i&&(n+=i),(0,m.i18n)(n+"."+s)}class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>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 y(this.args.prefix,this.args.selectedLevel.key,this.args.suffix,"title")}static #i=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"HjDE0yfF",block:'[[[1,"\\n "],[11,"button"],[16,0,[28,[32,0],["btn btn-default",[52,[30,0,["showFullTitle"]],"btn-icon-text","no-text"]],null]],[17,1],[12],[1,"\\n "],[1,[28,[32,1],[[30,2,["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,1],["angle-down"],[["class"],["notifications-tracking-btn__caret"]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["&attrs","@selectedLevel"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[d.default,c.default],isStrictMode:!0}),this))()}class w extends s.default{registerDmenuApi(e){this.dmenuApi=e}static #e=(()=>dt7948.n(this.prototype,"registerDmenuApi",[r.action]))();async setNotificationLevel(e){await this.dmenuApi.close({focusTrigger:!0}),this.args.onChange?.(e)}static #i=(()=>dt7948.n(this.prototype,"setNotificationLevel",[r.action]))();description(e){return y(this.args.prefix,e.key,this.args.suffix,"description")}static #n=(()=>dt7948.n(this.prototype,"description",[r.action]))();label(e){return y(this.args.prefix,e.key,this.args.suffix,"title")}static #a=(()=>dt7948.n(this.prototype,"label",[r.action]))();isSelectedClass(e){return this.args.levelId===e.id?"-selected":""}static #l=(()=>dt7948.n(this.prototype,"isSelectedClass",[r.action]))();get selectedLevel(){return(0,h.buttonDetails)(this.args.levelId)}get levels(){return this.args.levels??h.allLevels}static #d=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"S8UxiZtY",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","@contentClass","@onRegisterApi","@title","@autofocus","@triggerComponent"],["notifications-tracking",true,[28,[32,1],["btn-default","notifications-tracking-trigger-btn",[30,2]],null],[30,3],[30,0,["registerDmenuApi"]],[30,4],false,[50,[32,2],0,null,[["showFullTitle","showCaret","selectedLevel","suffix","prefix"],[[30,5],[30,6],[30,0,["selectedLevel"]],[30,7],[30,8]]]]]],[["content"],[[[[1,"\\n "],[8,[32,3],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["levels"]]],null]],null],null,[[[1," "],[8,[30,9,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,1],["notifications-tracking-btn",[28,[30,0,["isSelectedClass"]],[[30,10]],null]],null]],[16,"data-level-id",[30,10,["id"]]],[16,"data-level-name",[30,10,["key"]]]],[["@action"],[[28,[32,5],[[30,0,["setNotificationLevel"]],[30,10,["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,11],[30,10],[30,12]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,8],[[30,10,["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,10]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"notifications-tracking-btn__description"],[12],[1,"\\n "],[1,[28,[30,0,["description"]],[[30,10]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[10]],null],[1," "]],[9]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@triggerClass","@contentClass","@title","@showFullTitle","@showCaret","@suffix","@prefix","dropdown","level","@levelId","@topic"],false,["component","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notifications-tracking.js",scope:()=>[g.default,d.default,b,l.default,o.default,n.fn,u.default,p.default,c.default],isStrictMode:!0}),this))()}},20139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(86981),n=i(91558),r=i(15383),a=i(31075),o=i(87367),l=i(16356),u=i(14051),d=i(77296),c=i(63159),p=i(25217);class h extends s.default{static create(){let e=super.create(...arguments);return e.user&&(e.user=p.default.create(e.user)),e}static findInvitedBy(e,t,i,n){e||a.Promise.resolve();let l={};return(0,r.isNone)(t)||(l.filter=t),(0,r.isNone)(i)||(l.search=i),l.offset=n||0,(0,o.ajax)((0,d.userPath)(`${e.username_lower}/invited.json`),{data:l}).then(e=>(e.invites=e.invites.map(e=>h.create(e)),s.default.create(e)))}static reinviteAll(){return(0,o.ajax)("/invites/reinvite-all",{type:"POST"})}static destroyAllExpired(){return(0,o.ajax)("/invites/destroy-all-expired",{type:"POST"})}static #e=(()=>dt7948.g(this.prototype,"topicId",[(0,n.alias)("topics.firstObject.id")]))();#rN=(()=>void dt7948.i(this,"topicId"))();static #i=(()=>dt7948.g(this.prototype,"topicTitle",[(0,n.alias)("topics.firstObject.title")]))();#rj=(()=>void dt7948.i(this,"topicTitle"))();save(e){return(this.id?(0,o.ajax)(`/invites/${this.id}`,{type:"PUT",data:e}):(0,o.ajax)("/invites",{type:"POST",data:e})).then(e=>this.setProperties(e))}destroy(){return(0,o.ajax)("/invites",{type:"DELETE",data:{id:this.id}}).then(()=>this.set("destroyed",!0))}reinvite(){return(0,o.ajax)("/invites/reinvite",{type:"POST",data:{email:this.email}}).then(()=>this.set("reinvited",!0)).catch(l.popupAjaxError)}shortKey(e){return e.slice(0,4)+"..."}static #n=(()=>dt7948.n(this.prototype,"shortKey",[(0,u.default)("invite_key")]))();groupIds(e){return e?e.map(e=>e.id):[]}static #a=(()=>dt7948.n(this.prototype,"groupIds",[(0,u.default)("groups")]))();topic(e){return e?c.default.create(e):null}static #l=(()=>dt7948.n(this.prototype,"topic",[(0,u.default)("topics.firstObject")]))();emailOrDomain(e,t){return e||t}static #d=(()=>dt7948.n(this.prototype,"emailOrDomain",[(0,u.default)("email","domain")]))()}},20140:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return(12===e&&(e=0),"pagi"===t)?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})})},20303:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(96791),l=i(86981),u=i(96848),d=i(9032),c=i(44077),p=i(57079),h=i(13355),m=i(45141),g=i(51318),f=i(63538),_=i(38069),y=i(69287),b=i(14086),w=i(97908),k=i(39668),T=i(70508),S=i(38575),C=i(1519);let A=(0,i(96900).A)(i(7155)).cached;class D extends s.default{get width(){return(0,d.htmlSafe)(`width: ${Math.floor(70*Math.random())+20}%`)}static #e=(()=>(0,r.setComponentTemplate)((0,C.createTemplateFactory)({id:"kpV4iEfH",block:'[[[1,"\\n "],[10,0],[14,0,"d-multi-select__skeleton"],[12],[1,"\\n "],[10,0],[14,0,"d-multi-select__skeleton-checkbox"],[12],[13],[1,"\\n "],[10,0],[14,0,"d-multi-select__skeleton-text"],[15,5,[30,0,["width"]]],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-multi-select.js",isStrictMode:!0}),this))()}class M extends s.default{static #e=(()=>dt7948.g(this.prototype,"searchTerm",[n.tracked],function(){return""}))();#rO=(()=>void dt7948.i(this,"searchTerm"))();static #i=(()=>dt7948.g(this.prototype,"preselectedItem",[n.tracked],function(){return null}))();#rR=(()=>void dt7948.i(this,"preselectedItem"))();compareKey="id";get hasSelection(){return this.args.selection?.length>0}get label(){return this.args.label??(0,T.i18n)("multi_select.label")}get data(){if(this.isDestroying||this.isDestroyed)return;let e=new Promise((e,t)=>{(0,b.default)(this,this.#rU,this.args.loadFn,this.searchTerm,e,t,w.INPUT_DELAY)});return new c.n(e)}static #n=(()=>dt7948.n(this.prototype,"data",[A]))();search(e){this.preselectedItem=null,this.searchTerm=e.target.value}static #a=(()=>dt7948.n(this.prototype,"search",[l.action]))();focus(e){e.focus()}static #l=(()=>dt7948.n(this.prototype,"focus",[l.action]))();handleKeydown(e){if(this.data.isResolved){if("Enter"===e.key&&(e.preventDefault(),this.preselectedItem&&this.toggle(this.preselectedItem,e)),"ArrowDown"===e.key){if(e.preventDefault(),!this.data.value?.length)return;if(null===this.preselectedItem)this.preselectedItem=this.data.value[0];else{let e=this.data.value.findIndex(e=>this.compare(e,this.preselectedItem));ethis.compare(e,this.preselectedItem));e>0&&(this.preselectedItem=this.data.value[e-1])}}}}static #d=(()=>dt7948.n(this.prototype,"handleKeydown",[l.action]))();remove(e,t){t?.stopPropagation(),this.args.onChange?.(this.args.selection?.filter(t=>!this.compare(t,e)))}static #p=(()=>dt7948.n(this.prototype,"remove",[l.action]))();isSelected(e){return this.args.selection?.filter(t=>this.compare(t,e)).length}static #m=(()=>dt7948.n(this.prototype,"isSelected",[l.action]))();toggle(e,t){t?.stopPropagation(),this.isSelected(e)?this.remove(e,t):this.args.onChange?.((0,k.makeArray)(this.args.selection).concat(e))}static #f=(()=>dt7948.n(this.prototype,"toggle",[l.action]))();compare(e,t){return this.args.compareFn?this.args.compareFn(e,t):e[this.compareKey]===t[this.compareKey]}static #y=(()=>dt7948.n(this.prototype,"compare",[l.action]))();#rU(e,t,i,s){return e(t).then(i).catch(s)}static #v=(()=>(0,r.setComponentTemplate)((0,C.createTemplateFactory)({id:"ewjE1Qi3",block:'[[[1,"\\n "],[8,[32,0],[[17,1]],[["@identifier","@triggerComponent","@triggerClass"],["d-multi-select",[28,[32,1],["div"],null],[28,[32,2],[[52,[30,0,["hasSelection"]],"--has-selection"]],null]]],[["trigger","content"],[[[[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"d-multi-select-trigger__selection"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[11,"button"],[24,0,"d-multi-select-trigger__selected-item"],[4,[32,3],["click",[28,[32,4],[[30,0,["remove"]],[30,3]],null]],null],[12],[1,"\\n "],[10,1],[14,0,"d-multi-select-trigger__selection-label"],[12],[18,7,[[30,3]]],[13],[1,"\\n "],[1,[28,[32,5],["xmark"],[["class"],["d-multi-select-trigger__remove-selection-icon"]]]],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"d-multi-select-trigger__label"],[12],[1,[30,0,["label"]]],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[32,6],[[24,0,"d-multi-select-trigger__expand-btn btn-transparent"]],[["@icon","@action"],["angle-down",[30,4,["show"]]]],null],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,7],[[24,0,"d-multi-select__content"]],null,[["default"],[[[[1,"\\n "],[8,[30,5,["item"]],[[24,0,"d-multi-select__search-container"]],null,[["default"],[[[[1,"\\n "],[1,[28,[32,5],["magnifying-glass"],null]],[1,"\\n "],[8,[32,8],[[24,0,"d-multi-select__search-input"],[24,"autocomplete","off"],[4,[32,3],["input",[30,0,["search"]]],null],[4,[32,3],["keydown",[30,0,["handleKeydown"]]],null],[4,[32,10],[[30,0,["focus"]]],null]],[["@placeholder","@type","@value"],[[28,[32,9],["multi_select.search"],null],"search",[28,[31,4],[[30,0,["searchTerm"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[30,5,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["data","isPending"]],[[[1," "],[10,0],[14,0,"d-multi-select__skeletons"],[12],[1,"\\n "],[8,[32,11],null,null,null],[1,"\\n "],[8,[32,11],null,null,null],[1,"\\n "],[8,[32,11],null,null,null],[1,"\\n "],[8,[32,11],null,null,null],[1,"\\n "],[8,[32,11],null,null,null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["data","isRejected"]],[[[1," "],[10,0],[14,0,"d-multi-select__error"],[12],[1,"\\n "],[18,8,[[30,0,["data","error"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["data","isResolved"]],[[[41,[30,0,["data","value"]],[[[1," "],[10,0],[14,0,"d-multi-select__search-results"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["data","value"]]],null]],null],null,[[[1," "],[8,[30,5,["item"]],[[16,0,[28,[32,2],["d-multi-select__result",[52,[28,[32,12],[[30,6],[30,0,["preselectedItem"]]],null],"--preselected",""]],null]],[24,"role","button"],[4,[32,3],["mouseenter",[28,[32,4],[[28,[31,5],[[30,0,["preselectedItem"]]],null],[30,6]],null]],null],[4,[32,3],["click",[28,[32,4],[[30,0,["toggle"]],[30,6]],null]],null]],null,[["default"],[[[[1,"\\n "],[8,[32,13],[[24,0,"d-multi-select__result-checkbox"]],[["@type","@checked"],["checkbox",[28,[30,0,["isSelected"]],[[30,6]],null]]],null],[1,"\\n\\n "],[10,1],[14,0,"d-multi-select__result-label"],[12],[1,"\\n "],[18,9,[[30,6]]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[6]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"d-multi-select__search-no-results"],[12],[1,"\\n "],[1,[28,[32,9],["multi_select.no_results"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]],null]],[]]]],[]]],[1," "]],[5]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@selection","item","@componentArgs","menu","result","&selection","&error","&result"],false,["if","each","-track-array","yield","readonly","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-multi-select.js",scope:()=>[S.default,y.default,f.default,o.on,a.fn,_.default,h.default,m.default,g.default,T.i18n,u.default,D,p.eq,r.Input],isStrictMode:!0}),this))()}},20322:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={initialize(e){e.lookup("service:route-history")}}},20352:(e,t,i)=>{"use strict";i.r(t),i.d(t,{and:()=>w,bool:()=>h,deprecatingAlias:()=>C,empty:()=>u,equal:()=>g,gt:()=>f,gte:()=>_,lt:()=>y,lte:()=>b,match:()=>m,none:()=>c,not:()=>p,notEmpty:()=>d,oneWay:()=>T,or:()=>k,readOnly:()=>S});var s=i(34100);i(57330);var n=i(35247);i(60569);var r=i(31847);i(71729),i(89352),i(77061),i(77188),i(28543),i(86981);var a=i(85156),o=i(56749);function l(e,t){return function(e){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;rt})}function _(e,t){return(0,s.c)(e,function(){return(0,s.g)(this,e)>=t})}function y(e,t){return(0,s.c)(e,function(){return(0,s.g)(this,e)e),k=l("or",e=>!e);function T(e){return(0,n.a)(e).oneWay()}function S(e){return(0,n.a)(e).readOnly()}function C(e,t){return(0,s.c)(e,{get(t){return(0,s.g)(this,e)},set(t,i){return(0,r.s)(this,e,i),i}})}},20377:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(99904),n=i(77296),r=i(70508);let a=class extends s.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,n.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}},20399:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(7953),r=i(33294),a=i(32045),o=i(1519);class l extends s.default{highlight=(()=>(0,n.modifier)(e=>{(0,r.default)(e,this.args.highlight)}))();static #e=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"wVEhS+Hk",block:'[[[1,"\\n "],[11,1],[4,[30,0,["highlight"]],null,null],[12],[18,1,null],[13],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/highlight-search.js",isStrictMode:!0}),this))()}},20405:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(86981),n=i(70508);class r{constructor(e,t){this.id=e,this._key=t}get name(){return(0,n.i18n)(`trust_levels.names.${this._key}`)}static #e=(()=>dt7948.n(this.prototype,"name",[s.computed]))();get detailedName(){return(0,n.i18n)("trust_levels.detailed_name",{level:this.id,name:this.name})}static #i=(()=>dt7948.n(this.prototype,"detailedName",[s.computed]))()}},20472:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(86981),r=i(75093),a=i(34543),o=i(32045),l=i(1519);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[r.service]))();#_=(()=>void dt7948.i(this,"site"))();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 #i=(()=>dt7948.n(this.prototype,"click",[n.action]))();static #n=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"T4kpUhF2",block:'[[[1,"\\n "],[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 "]],["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/new-list-header-controls-wrapper.js",scope:()=>[a.default],isStrictMode:!0}),this))()}},20493:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>T});var s=i(32045),n=i(73326),r=i(70568),a=i(75370),o=i(13355),l=i(57882),u=i(53329),d=i(32587),c=i(9616),p=i(54033),h=i(5706),m=i(19006),g=i(10458),f=i(27e3),_=i(70508),y=i(7749),b=i(63413),w=i(1519),k=i(69522);let T=(0,a.default)((0,s.setComponentTemplate)((0,w.createTemplateFactory)({id:"7D8k4ZFr",block:'[[[1,"\\n"],[41,[30,1,["showEnforcedRequiredFieldsNotice"]],[[[1," "],[10,0],[14,0,"alert alert-error"],[12],[1,[28,[32,0],["user.preferences.profile.enforced_required_fields"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,1,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,1,["siteSettings","allow_users_to_hide_profile"]],[[[1," "],[10,0],[14,0,"control-group user-hide-profile"],[14,"data-setting-name","user-hide-profile"],[12],[1,"\\n "],[8,[32,1],[[24,"data-setting-name","user-hide-profile"],[24,0,"pref-hide-profile"]],[["@labelKey","@checked"],["user.hide_profile",[30,1,["model","user_option","hide_profile"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.bio"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls bio-composer input-xxlarge"],[12],[1,"\\n "],[8,[32,2],null,[["@value"],[[30,1,["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,[32,0],["user.timezone"],null]],[13],[1,"\\n "],[8,[32,3],[[24,0,"input-xxlarge"]],[["@value","@onChange"],[[30,1,["model","user_option","timezone"]],[28,[32,4],[[28,[31,2],[[30,1,["model","user_option","timezone"]]],null]],null]]],null],[1,"\\n "],[8,[32,5],[[24,0,"btn-default"]],[["@icon","@label","@action"],["globe","user.use_current_timezone",[30,1,["useCurrentTimezone"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["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,[32,0],["user.location"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,6],[[24,0,"input-xxlarge"],[24,1,"edit-location"]],[["@type","@value"],["text",[30,1,["model","location"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.website"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,6],[[24,0,"input-xxlarge"],[24,1,"edit-website"]],[["@type","@value"],["text",[30,1,["model","website"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,1,["userFields"]]],null]],null],null,[[[1," "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-user-fields"],[12],[1,"\\n "],[8,[32,7],null,[["@field","@value"],[[30,2,["field"]],[30,2,["value"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n\\n"],[41,[51,[30,1,["showEnforcedRequiredFieldsNotice"]]],[[[41,[30,1,["siteSettings","allow_profile_backgrounds"]],[[[41,[30,1,["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,[32,0],["user.change_profile_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,8],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,1,["model","profile_background_upload_url"]],[30,1,["profileBackgroundUploadDone"]],[28,[32,4],[[28,[31,2],[[30,1,["model","profile_background_upload_url"]]],null],null],null],"profile_background","profile-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.change_profile_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,1,["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,[32,0],["user.change_card_background.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,8],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,1,["model","card_background_upload_url"]],[30,1,["cardBackgroundUploadDone"]],[28,[32,4],[[28,[31,2],[[30,1,["model","card_background_upload_url"]]],null],null],null],"card_background","profile-card-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.change_card_background.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.featured_topic"],null]],[13],[1,"\\n"],[41,[30,1,["model","featured_topic"]],[[[1," "],[10,"label"],[14,0,"featured-topic-link"],[12],[1,"\\n "],[8,[32,9],null,[["@route","@models"],["topic",[28,[32,10],[[30,1,["model","featured_topic","slug"]],[30,1,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[32,11],[[28,[32,12],[[30,1,["model","featured_topic","fancy_title"]]],null]],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,5],[[24,0,"btn-default feature-topic-on-profile-btn"]],[["@action","@label"],[[30,1,["showFeaturedTopicModal"]],"user.feature_topic_on_profile.open_search"]],null],[1,"\\n"],[41,[30,1,["model","featured_topic"]],[[[1," "],[8,[32,5],[[24,0,"btn-danger clear-feature-topic-on-profile-btn"]],[["@action","@label"],[[30,1,["clearFeaturedTopicFromProfile"]],"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,[32,0],["user.change_featured_topic.instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["download_calendar.default_calendar"],null]],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,13],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,1,["calendarOptions"]],[30,1,["model","user_option","default_calendar"]],"user-default-calendar",[28,[32,4],[[28,[31,2],[[30,1,["model","user_option","default_calendar"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["download_calendar.default_calendar_instruction"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,14],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-profile","div",[28,[32,15],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n\\n "],[8,[32,14],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-preferences","div",[28,[32,15],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n\\n "],[8,[32,14],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,15],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,16],null,[["@model","@action","@saved"],[[30,1,["model"]],[30,1,["save"]],[30,1,["saved"]]]],null],[1,"\\n "]],["@controller","uf"],false,["if","unless","mut","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/profile.js",scope:()=>[_.i18n,d.default,l.default,b.default,n.fn,o.default,s.Input,h.default,p.default,r.LinkTo,n.array,f.default,m.default,y.default,u.default,g.default,c.default],isStrictMode:!0}),(0,k.default)(void 0,void 0)))},20503:(e,t,i)=>{"use strict";i.r(t),i.d(t,{_reset:()=>n._reset,_resetWaiterNames:()=>n._resetWaiterNames,buildWaiter:()=>n.buildWaiter,getPendingWaiterState:()=>n.getPendingWaiterState,getWaiters:()=>n.getWaiters,hasPendingWaiters:()=>n.hasPendingWaiters,register:()=>n.register,unregister:()=>n.unregister,waitFor:()=>n.waitFor,waitForPromise:()=>n.waitForPromise});var s=i(60569),n=i(28438);(0,s.deprecate)("Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters",!1,{id:"ember-test-waiters-legacy-module-name",until:"3.0.0",for:"ember-test-waiters",since:{enabled:"2.2.0"}})},20583:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MUTABLE_CELL:()=>s});let s=Symbol("MUTABLE_CELL")},20649:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(8004);function n(e){var t=(0,s.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},20776:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(35697);function n(e){let{src:t,code:i,label:n}=e,r=t?`${(0,s.escapeExpression)(i)}`:(0,s.escapeExpression)(n);return`
  • ${r}
  • `}function r(e){let{options:t}=e;return`
      ${t.map(n).join("")}
    `}},20778:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(9032),r=i(57079),a=i(5493),o=i(89711),l=i(70508),u=i(47340),d=i(32045),c=i(1519);class p extends s.default{style=(()=>(0,n.htmlSafe)(`height: ${a.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,a.timelineDate)(this.args.date)}static #e=(()=>(0,d.setComponentTemplate)((0,c.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:()=>[o.default,r.and,r.not,u.default],isStrictMode:!0}),this))()}},20828:(e,t,i)=>{"use strict";async function s(){return(await Promise.all([i.e(592),i.e(458),i.e(736),i.e(967)]).then(i.bind(i,44736))).default}i.r(t),i.d(t,{default:()=>s})},20854:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(7701),n=i(87367),r=i(31351),a=i(18878),o=i(39902),l=i(22141),u=i(70508);class d extends s.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.#rB>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 #rB(){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.#rB})}async fetchItems(){let e=await (0,n.ajax)(`/u/${this.currentUser.username}/user-menu-bookmarks`),t=[],i=e.notifications.map(e=>l.default.create(e));await l.default.applyTransformations(i),i.forEach(e=>{t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))});let s=e.bookmarks.map(e=>o.default.create(e));return await o.default.applyTransformations(s),t.push(...s.map(e=>new r.default({bookmark:e,siteSettings:this.siteSettings,site:this.site}))),t}}},20910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(93317);i(7155);var n=i(73326),r=i(86981),a=i(75093),o=i(12719),l=i(89427),u=i(60833),d=i(60817),c=i(70508),p=i(11919),h=i(41666),m=i(32851),g=i(32045),f=i(1519);let _=(0,i(96900).A)(i(7155)).cached;class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[a.service]))();#n8=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #a=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #l=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();static #d=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #p=(()=>dt7948.g(this.prototype,"topicTrackingState",[a.service]))();#t0=(()=>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 d.default({tag:t,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}));return e}static #m=(()=>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(o.default)}static #f=(()=>dt7948.n(this.prototype,"showModal",[r.action]))();static #y=(()=>(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,c.i18n,n.array,n.hash,m.default,p.default],isStrictMode:!0}),this))()}},21077:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Container:()=>s.C,INIT_FACTORY:()=>s.I,Registry:()=>s.R,getFactoryFor:()=>s.g,privatize:()=>s.p,setFactoryFor:()=>s.s});var s=i(29023)},21127:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(96791),r=i(9032),a=i(38069),o=i(1519),l=i(69522);let u=(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"aTiNzI/H",block:'[[[1,"\\n "],[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,[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 "],[8,[32,2],[[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"]]],[4,[32,3],["input",[30,5]],null]],[["@value","@type"],[[30,4],[52,[30,2,["type"]],[30,2,["type"]],"text"]]],null],[1,"\\n "],[13],[1,"\\n"]],["@attributes","@validations","@id","@value","@onChange"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/input.js",scope:()=>[a.default,r.htmlSafe,s.Input,n.on],isStrictMode:!0}),(0,l.default)(void 0,"input:FormTemplateFieldInput"))},21157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{model(){return this.store.findAll("tagGroup")}titleToken(){return(0,n.i18n)("tagging.groups.title")}}},21161:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n}),i(60569),i(27251);var s=i(24813);function n(e,t){let i=e.__container__.lookup("router:main"),n=!1;return e.boot().then(()=>{i.location.setURL(t),n&&(0,s.run)(e.__deprecatedInstance__,"handleURL",t)}),e._readinessDeferrals>0?(i.initialURL=t,(0,s.run)(e,"advanceReadiness"),delete i.initialURL):n=!0,(0,e.testHelpers.wait)()}},21211:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setOwner:()=>s.setOwner});var s=i(92556)},21220:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>U});var s=i(93317),n=i(32045),r=i(73326),a=i(96791),o=i(24813),l=i(75093),u=i(57079),d=i(66354),c=i(76643),p=i(11666),h=i(45381),m=i(13251),g=i(99587),f=i(74521),_=i(27894),y=i(41156),b=i(13355),w=i(63465),k=i(53329),T=i(71641),S=i(51318),C=i(41154),A=i(63538),D=i(38069),M=i(21255),x=i(19006),E=i(10458),L=i(37759),P=i(14086),F=i(14051),I=i(96982),N=i(70508),j=i(56179),O=i(15601),R=i(1519);class U extends s.default{static #e=(()=>dt7948.g(this.prototype,"composer",[l.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"site",[l.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[l.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #a=(()=>dt7948.g(this.prototype,"keyValueStore",[l.service]))();#u=(()=>void dt7948.i(this,"keyValueStore"))();willDestroy(){super.willDestroy(...arguments),(0,o.cancel)(this.composerResizeDebounceHandler)}onResizeDragStart(){this.appEvents.trigger("composer:resize-started")}static #l=(()=>dt7948.n(this.prototype,"onResizeDragStart",[F.bind]))();onResizeDrag(e){this.appEvents.trigger("composer:div-resizing"),this.composer.set("composerHeight",`${e}px`),this.keyValueStore.set({key:"composerHeight",value:this.composer.composerHeight}),document.documentElement.style.setProperty("--composer-height",e?`${e}px`:""),this._triggerComposerResized()}static #d=(()=>dt7948.n(this.prototype,"onResizeDrag",[F.bind]))();onResizeDragEnd(){this.appEvents.trigger("composer:resize-ended")}static #p=(()=>dt7948.n(this.prototype,"onResizeDragEnd",[F.bind]))();_triggerComposerResized(){this.composerResizeDebounceHandler=(0,P.default)(this,this.composerResized,300)}composerResized(){this.appEvents.trigger("composer:resized")}static #m=(()=>(0,n.setComponentTemplate)((0,R.createTemplateFactory)({id:"9PKfkQFn",block:'[[[1,"\\n "],[8,[32,0],null,[["@composer","@showPreview","@openIfDraft","@typed","@cancelled","@save"],[[30,0,["composer","model"]],[30,0,["composer","isPreviewVisible"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","typed"]],[30,0,["composer","cancelled"]],[30,0,["composer","saveAction"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"grippie"],[4,[32,1],["#reply-control","top",[28,[32,2],null,[["onResizeStart","onThrottledDrag","onResizeEnd"],[[30,0,["onResizeDragStart"]],[30,0,["onResizeDrag"]],[30,0,["onResizeDragEnd"]]]]]],null],[12],[13],[1,"\\n"],[41,[30,0,["composer","visible"]],[[[1," "],[1,[28,[32,3],[[52,[30,0,["composer","isPreviewVisible"]],"composer-has-preview"]],null]],[1,"\\n\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1," "],[8,[32,4],null,[["@composer","@messageCount","@addLinkLookup"],[[30,0,["composer","model"]],[30,0,["composer","messageCount"]],[30,0,["composer","addLinkLookup"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","showFullScreenPrompt"]],[[[1," "],[8,[32,5],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,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-open","div",[28,[32,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,[32,8],null,[["@model","@canWhisper"],[[30,0,["composer","model"]],[30,0,["composer","canWhisper"]]]],null],[1,"\\n\\n "],[8,[32,6],null,[["@name","@outletArgs"],["composer-action-after",[28,[32,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,[32,9],["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,[32,10],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1," "],[8,[32,11],[[24,0,"display-edit-reason"]],[["@onClick","@showInput","@icon"],[[30,0,["composer","displayEditReason"]],[30,0,["composer","showEditReason"]],"circle-info"]],[["default"],[[[[1,"\\n "],[8,[32,12],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,[32,6],null,[["@name","@outletArgs"],["before-composer-controls",[28,[32,7],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n "],[8,[32,13],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,[32,14],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"composer-fields"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["before-composer-fields",[28,[32,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,[32,15],[[16,0,[28,[32,16],["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,[32,17],null,[["@type","@checked"],["checkbox",[30,0,["composer","model","isWarning"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[32,9],["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","isPreviewVisible"]],"with-preview"]]]],[12],[1,"\\n "],[8,[32,18],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,[32,19],null,[["@value","@onChange","@options"],[[30,0,["composer","model","categoryId"]],[30,0,["composer","updateCategory"]],[28,[32,2],null,[["disabled","scopedCategoryId","prioritizedCategoryId"],[[30,0,["composer","disableCategoryChooser"]],[30,0,["composer","scopedCategoryId"]],[30,0,["composer","prioritizedCategoryId"]]]]]]],null],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["after-composer-category-input",[28,[32,7],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[32,20],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,[32,21],null,[["@value","@onChange","@options"],[[30,0,["composer","model","tags"]],[28,[32,22],[[28,[31,2],[[30,0,["composer","model","tags"]]],null]],null],[28,[32,2],null,[["disabled","categoryId","minimum"],[[30,0,["composer","disableTagsChooser"]],[30,0,["composer","model","categoryId"]],[30,0,["composer","model","minimumRequiredTags"]]]]]]],null],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["after-composer-tag-input",[28,[32,7],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n "],[8,[32,20],null,[["@validation"],[[30,0,["composer","tagValidation"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["after-title-and-category",[28,[32,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,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields","div",[28,[32,7],null,[["model","showPreview"],[[30,0,["composer","model"]],[30,0,["composer","isPreviewVisible"]]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["composer-after-composer-editor",[28,[32,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,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields-below","div",[28,[32,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,[32,23],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," "],[8,[32,24],[[24,0,"cancel btn-transparent"]],[["@action","@icon","@preventFocus","@title"],[[30,0,["composer","cancel"]],[52,[30,0,["composer","canEdit"]],"xmark","trash-can"],true,"close"]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,24],[[24,0,"cancel btn-transparent"]],[["@action","@preventFocus","@title","@label"],[[30,0,["composer","cancel"]],true,"close","close"]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1,"\\n"],[41,[30,0,["composer","model","noBump"]],[[[1," "],[10,1],[14,0,"no-bump"],[12],[1,[28,[32,10],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["composer-after-save-or-cancel",[28,[32,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,[32,6],null,[["@name","@outletArgs"],["composer-mobile-buttons-bottom",[28,[32,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,[32,9],["composer.upload_title"],null]],[12],[1,"\\n "],[1,[28,[32,10],[[30,0,["composer","uploadIcon"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","allowPreview"]],[[[1," "],[11,3],[24,6,""],[24,0,"btn btn-default no-text mobile-preview"],[16,"title",[28,[32,9],["composer.show_preview"],null]],[16,"aria-label",[28,[32,9],["composer.show_preview"],null]],[4,[32,25],["click",[30,0,["composer","togglePreview"]]],null],[12],[1,"\\n "],[1,[28,[32,10],["desktop"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","isPreviewVisible"]],[[[1," "],[8,[32,24],[[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,[32,26],[[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,[32,27],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[32,9],["upload_selector.processing"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,27],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[32,9],["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,[32,25],["click",[30,0,["composer","cancelUpload"]]],null],[12],[1,[28,[32,10],["xmark"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","draftStatus"]],[[[1," "],[10,0],[15,0,[52,[30,0,["composer","isUploading"]],"hidden"]],[14,1,"draft-status"],[12],[1,"\\n "],[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,[32,28],[[30,0,["composer","model","draftConflictUser"]]],[["imageSize"],["small"]]]],[1,"\\n "],[1,[28,[32,10],["user-pen"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,10],["triangle-exclamation"],null]],[1,"\\n"]],[]]],[41,[30,0,["site","desktopView"]],[[[1," "],[1,[30,0,["composer","model","draftStatus"]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,29],[[30,0,["composer","allowPreview"]],[30,0,["site","desktopView"]]],null],[[[1," "],[8,[32,24],[[16,0,[28,[32,16],["btn-transparent btn-mini-toggle toggle-preview",[52,[51,[30,0,["composer","isPreviewVisible"]]],"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,[32,9],["composer.saved"],null]],[1,"\\n "],[11,3],[16,6,[30,0,["composer","createdPost","url"]]],[24,0,"permalink"],[4,[32,25],["click",[30,0,["composer","viewNewReply"]]],null],[12],[1,[28,[32,9],["composer.view_new_post"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,9],["composer.saving"],null]],[1,"\\n "],[1,[28,[32,27],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,[32,10],["share"],null]],[1,"\\n "],[1,[28,[32,30],[[30,0,["composer","draftTitle"]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,9],["composer.saved_draft"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[8,[32,13],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],[1," "]],[]]]]],[1,"\\n "]],[],false,["if","unless","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-container.js",scope:()=>[c.default,I.default,r.hash,M.default,m.default,h.default,k.default,E.default,d.default,N.i18n,D.default,w.default,S.default,_.default,p.default,y.default,A.default,n.Input,f.default,j.default,T.default,O.default,r.fn,g.default,b.default,a.on,u.or,L.default,C.default,u.and,x.default],isStrictMode:!0}),this))()}},21255:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(57165),n=i(75093);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"elementClasses",[n.service]))();#e8=(()=>void dt7948.i(this,"elementClasses"))();compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.documentElement,t.flatMap(e=>e?.split(" ")).filter(Boolean))}}},21270:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(39668);function n(e){return e.getTime()/864e5}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.class||"age";if(!e)return i;let r=n(t.startDate||new Date),a=n(new Date(e)),o=(0,s.helperContext)().siteSettings;return r-a>o.cold_age_days_high?i+" coldmap-high":r-a>o.cold_age_days_medium?i+" coldmap-med":r-a>o.cold_age_days_low?i+" coldmap-low":i}},21296:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(50890),n=i(86981),r=i(91558),a=i(75093),o=i(15383),l=i(13964),u=i(87367),d=i(16356),c=i(14051),p=i(70508);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();subpageTitle=(()=>(0,p.i18n)("user.preferences_nav.profile"))();static #n=(()=>dt7948.g(this.prototype,"canChangeBio",[(0,r.readOnly)("model.can_change_bio")]))();#rY=(()=>void dt7948.i(this,"canChangeBio"))();static #a=(()=>dt7948.g(this.prototype,"canChangeLocation",[(0,r.readOnly)("model.can_change_location")]))();#rH=(()=>void dt7948.i(this,"canChangeLocation"))();static #l=(()=>dt7948.g(this.prototype,"canChangeWebsite",[(0,r.readOnly)("model.can_change_website")]))();#rq=(()=>void dt7948.i(this,"canChangeWebsite"))();static #d=(()=>dt7948.g(this.prototype,"canUploadProfileHeader",[(0,r.readOnly)("model.can_upload_profile_header")]))();#rz=(()=>void dt7948.i(this,"canUploadProfileHeader"))();static #p=(()=>dt7948.g(this.prototype,"canUploadUserCardBackground",[(0,r.readOnly)("model.can_upload_user_card_background")]))();#r$=(()=>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","hide_profile"];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;if(!(0,o.isEmpty)(e))return 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 n.default.create({field:e,value:t})}))}static #m=(()=>dt7948.n(this.prototype,"userFields",[(0,c.default)("model.user_fields.@each.value")]))();showEnforcedRequiredFieldsNotice(e){return e}static #f=(()=>dt7948.n(this.prototype,"showEnforcedRequiredFieldsNotice",[(0,c.default)("currentUser.needs_required_fields_check")]))();canChangeDefaultCalendar(e){return"none_selected"!==e}static #y=(()=>dt7948.n(this.prototype,"canChangeDefaultCalendar",[(0,c.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 #v=(()=>dt7948.n(this.prototype,"showFeaturedTopicModal",[n.action]))();_missingRequiredFields(e,t){return e.filter(e=>"for_all_users"===e.requirement&&(0,o.isEmpty)(t[e.id])).map(e=>n.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(d.popupAjaxError)})}static #k=(()=>dt7948.n(this.prototype,"clearFeaturedTopicFromProfile",[n.action]))();useCurrentTimezone(){this.model.set("user_option.timezone",moment.tz.guess(!0))}static #S=(()=>dt7948.n(this.prototype,"useCurrentTimezone",[n.action]))();_updateUserFields(){let e=this.model,t=this.userFields;if(!(0,o.isEmpty)(t)){let i=e.get("user_fields");(0,o.isEmpty)(i)||t.forEach(function(e){let t=e.get("value");i[e.get("field.id").toString()]=(0,o.isEmpty)(t)?null:t})}}static #A=(()=>dt7948.n(this.prototype,"_updateUserFields",[n.action]))();profileBackgroundUploadDone(e){this.model.set("profile_background_upload_url",e.url)}static #M=(()=>dt7948.n(this.prototype,"profileBackgroundUploadDone",[n.action]))();cardBackgroundUploadDone(e){this.model.set("card_background_upload_url",e.url)}static #E=(()=>dt7948.n(this.prototype,"cardBackgroundUploadDone",[n.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(d.popupAjaxError).finally(()=>{this.currentUser.set("needs_required_fields_check",!1),this.set("saved",!0)})}static #P=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},21306:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(73326),r=i(86981),a=i(57079),o=i(13355),l=i(14104),u=i(38069),d=i(43798),c=i(32045),p=i(1519),h=i(69522);let m=(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"fnVZ2AA/",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,1]]],[["@action"],[[30,2]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"topic-title"],[12],[1,"\\n "],[10,0],[14,0,"topic-title__top-line"],[12],[1,"\\n "],[10,1],[14,0,"topic-statuses"],[12],[1,"\\n"],[41,[28,[32,1],[[30,3,["archetype"]],"private_message"],null],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["envelope"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["bookmarked"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["bookmark"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["closed"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["lock"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3,["pinned"]],[[[1," "],[10,1],[14,0,"topic-status"],[12],[1,"\\n "],[1,[28,[32,2],["thumbtack"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"fancy-title"],[12],[1,"\\n "],[1,[30,3,["title"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"topic-title__bottom-line"],[12],[1,"\\n "],[1,[28,[32,3],[[30,3,["category"]],[28,[32,4],null,[["link"],[false]]]],null]],[1,"\\n "],[1,[28,[32,5],[[30,3]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],["@class","@action","@topic"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-label-content.js",scope:()=>[o.default,a.eq,u.default,l.categoryLinkHTML,n.hash,d.default],isStrictMode:!0}),(0,h.default)(void 0,"topic-label-content:TopicLabelButton"));class g extends s.default{replyOnOriginal(){this.args.model.replyOnOriginal()}static #e=(()=>dt7948.n(this.prototype,"replyOnOriginal",[r.action]))();replyOnCurrent(){this.args.model.replyOnCurrent()}static #i=(()=>dt7948.n(this.prototype,"replyOnCurrent",[r.action]))();static #n=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"35xTpI3S",block:'[[[1,"\\n "],[8,[32,0],null,[["@class","@action","@topic"],["btn-primary btn-reply-where btn-reply-on-original",[30,0,["replyOnOriginal"]],[30,1,["originalTopic"]]]],null],[1,"\\n\\n "],[8,[32,0],null,[["@class","@action","@topic"],["btn-reply-where btn-reply-here",[30,0,["replyOnCurrent"]],[30,1,["currentTopic"]]]],null],[1,"\\n "]],["@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-label-content.js",scope:()=>[m],isStrictMode:!0}),this))()}},21337:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(86981),r=i(24813),a=i(85024),o=i(14013),l=i(1519);let u=dt7948.c(class extends s.default{get emptyBody(){return!1}static #e=(()=>dt7948.n(this.prototype,"emptyBody",[(0,n.computed)("selectKit.{filter,hasNoContent}")]))();didInsertElement(){super.didInsertElement(...arguments),this.element.style.position="relative",document.addEventListener("click",this.handleClick,!0),this.selectKit.mainElement().addEventListener("keydown",this._handleKeydown,!0)}willDestroyElement(){super.willDestroyElement(...arguments),document.removeEventListener("click",this.handleClick,!0),this.selectKit.mainElement()?.removeEventListener("keydown",this._handleKeydown,!0)}handleClick(e){this.selectKit.isExpanded&&this.selectKit.mainElement()&&(this.selectKit.mainElement().contains(e.target)||this.selectKit.close(e))}static #i=(()=>dt7948.n(this.prototype,"handleClick",[o.bind]))();_handleKeydown(e){this.selectKit.isExpanded&&"Tab"===e.key&&(0,r.next)(()=>{this.isDestroying||this.isDestroyed||this.selectKit.mainElement()?.contains(document.activeElement)||this.selectKit.close(e)})}static #n=(()=>dt7948.n(this.prototype,"_handleKeydown",[o.bind]))();static #a=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"PIO9XeZ6",block:'[[[1,"\\n"],[41,[30,0,["selectKit","isExpanded"]],[[[1," "],[18,1,null],[1,"\\n"]],[]],null],[1," "]],["&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-body.js",isStrictMode:!0}),this))()},[(0,a.classNameBindings)("emptyBody:empty-body"),(0,a.classNames)("select-kit-body")])},21364:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isEmberArray:()=>r,setEmberArray:()=>n});let s=new WeakSet;function n(e){s.add(e)}function r(e){return s.has(e)}},21426:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(27797);class r extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();afterModel(){let e=this.paramsFor("editCategory");this.router.replaceWith(`/c/${e.slug}/edit/general`)}}},21433:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(85024),n=i(17603),r=i.n(n),a=i(14013),o=i.n(a),l=i(70508),u=i(41877),d=i(32045),c=i(1519);let p=dt7948.c(class extends u.default{title(e){return(0,l.i18n)(`filters.top.${e||"this_week"}`).title}static #e=(()=>dt7948.n(this.prototype,"title",[o()("rowName")]))();static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"vcfIsNtu",block:'[[[1,"\\n "],[10,1],[14,0,"selection-indicator"],[12],[13],[1,"\\n\\n "],[10,1],[14,0,"period-title"],[12],[1,"\\n "],[1,[28,[32,0],[[30,0,["rowValue"]]],[["showDateRange","fullDay"],[true,[30,0,["selectKit","options","fullDay"]]]]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/period-chooser/period-chooser-row.js",scope:()=>[r()],isStrictMode:!0}),this))()},[(0,s.classNames)("period-chooser-row")])},21499:(e,t,i)=>{"use strict";i.r(t),i.d(t,{buildGroupPage:()=>a,default:()=>o});var s=i(86981),n=i(27797),r=i(70508);function a(e){return class extends n.default{type=(()=>e)();templateName="group-activity-posts";controllerName="group-activity-posts";titleToken(){return(0,r.i18n)(`groups.${e}`)}model(t,i){let n=(0,s.get)(i.to,"queryParams.category_id");return this.modelFor("group").findPosts({type:e,categoryId:n})}setupController(t,i){let s=i.length<20;t.setProperties({model:i,type:e,canLoadMore:!s})}didTransition(){return!0}static #e=(()=>dt7948.n(this.prototype,"didTransition",[s.action]))()}}let o=a("posts")},21502:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],i=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];return e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})})},21524:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(86981),n=i(24813),r=i(75093),a=i(94341),o=i(87367),l=i(16356),u=i(96527),d=i(27797);class c extends d.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>void dt7948.i(this,"modal"))();beforeModel(e){if(!this.currentUser)return(0,u.default)("destination_url",e.intent.url),this.router.replaceWith("login");let t=this.paramsFor("associate-account");this.redirectToAccount(t)}async redirectToAccount(e){await this.router.replaceWith("preferences.account",this.currentUser).followRedirects(),(0,n.next)(()=>this.showAssociateAccount(e))}static #a=(()=>dt7948.n(this.prototype,"redirectToAccount",[s.action]))();async showAssociateAccount(e){try{let t=await (0,o.ajax)(`/associate/${encodeURIComponent(e.token)}.json`);this.modal.show(a.default,{model:t})}catch(e){(0,l.popupAjaxError)(e)}}static #l=(()=>dt7948.n(this.prototype,"showAssociateAccount",[s.action]))()}},21530:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{REPLACEMENTS:()=>h,SVG_NAMESPACE:()=>d,convertIconClass:()=>w,disableMissingIconWarning:()=>g,enableMissingIconWarning:()=>f,iconHTML:()=>y,iconNode:()=>b,isExistingIconId:()=>C,registerIconRenderer:()=>k,renderIcon:()=>_,replaceIcon:()=>m,setIconList:()=>S});var n=i(11651),r=i(45841),a=i(63272),o=i(97908),l=i(21710),u=i(70508);let d="http://www.w3.org/2000/svg",c=[],p=!0,h={"d-tracking":"bell","d-muted":"discourse-bell-slash","d-regular":"far-bell","d-watching":"discourse-bell-exclamation","d-watching-first":"discourse-bell-one","d-drop-expanded":"caret-down","d-drop-collapsed":"caret-right","d-unliked":"far-heart","d-liked":"heart","d-post-share":"link","d-topic-share":"link","notification.mentioned":"at","notification.group_mentioned":"users","notification.quoted":"quote-right","notification.replied":"reply","notification.posted":"discourse-bell-exclamation","notification.watching_category_or_tag":"discourse-bell-exclamation","notification.edited":"pencil","notification.bookmark_reminder":"discourse-bookmark-clock","notification.liked":"heart","notification.liked_2":"heart","notification.liked_many":"heart","notification.liked_consolidated":"heart","notification.private_message":"envelope","notification.invited_to_private_message":"envelope","notification.invited_to_topic":"hand-point-right","notification.invitee_accepted":"user","notification.moved_post":"right-from-bracket","notification.linked":"link","notification.linked_consolidated":"link","notification.granted_badge":"certificate","notification.topic_reminder":"far-clock","notification.watching_first_post":"discourse-bell-one","notification.group_message_summary":"users","notification.post_approved":"check","notification.membership_request_accepted":"user-plus","notification.membership_request_consolidated":"users","notification.reaction":"bell","notification.votes_released":"plus","notification.chat_quoted":"quote-right","user_menu.replies":"reply","user_menu.drafts":"pencil","sidebar.all_categories":"list"};function m(e,t){h[e]=t}function g(){p=!1}function f(){p=!1}function _(e,t,i){for(let s of(i||={},c)){let n=s[e];if(!n)continue;let r=n({id:t,replacementId:h[t]},i);if(r)return r}}function y(e,t){return _("string",e,t)}function b(e,t){return _("node",e,t)}function w(e){return e.replace("far fa-","far-").replace("fab fa-","fab-").replace("fas fa-","").replace("fa-","").trim()}function k(e){c.unshift(e)}function T(e,t){let i=e.replacementId&&e.id.includes("notification.")?e.replacementId:e.id,s=`fa d-icon d-icon-${i} svg-icon`;return t&&t.class&&(s+=" "+t.class),s}function S(e){s=e}function C(e){return s?.includes(e)}function A(e){let t=e.replacementId||e.id||"";return!function(e){p&&(0,o.isDevelopment)()&&!C(e)&&console.warn(`The icon "${e}" is missing from the SVG subset.`)}(t=t.replace(" unpinned","")),t}k({name:"font-awesome",string(e,t){let i=(0,l.default)(A(e)),s=``,t.label&&(s+=`${(0,l.default)(t.label)}`),t.title&&(s=`${s}`),t.translatedtitle&&((0,a.default)("use 'translatedTitle' option instead of 'translatedtitle'",{since:"2.9.0.beta6",dropFrom:"2.10.0.beta1",id:"discourse.icon-renderer-translatedtitle"}),t.translatedTitle=t.translatedtitle),t.translatedTitle&&(s=`${s}`),s},node(e,t){let i=A(e),s=T(e,t)+" svg-node",a=(0,n.h)("svg",{attributes:{class:s,"aria-hidden":!0},namespace:d},[(0,n.h)("use",{href:(0,r.default)("http://www.w3.org/1999/xlink",`#${(0,l.default)(i)}`),namespace:d})]);return t.title?(0,n.h)("span",{title:t.title,attributes:{class:"svg-icon-title"}},[a]):a}})},21661:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(32045),n=i(73326),r=i(86981),a=i(85024),o=i(82066),l=i(70508),u=i(1519);let d=dt7948.c(class extends s.default{from=null;to=null;onChangeTo=null;onChangeFrom=null;toTimeFirst=!1;showToTime=!0;showFromTime=!0;clearable=!1;onChangeRanges(e,t){if(this.onChange){let i={from:this.from,to:this.to},s={};"from"===e.prop&&(this.to&&t?.isAfter(this.to)?(s[e.prop]=t,s.to=t.clone().add(1,"hour")):s[e.prop]=t),"to"===e.prop&&(t&&t.isBefore(this.from)?s[e.prop]=this.from.clone().add(1,"hour"):s[e.prop]=t);let n={...i,...s};this.onChange(n)}}static #e=(()=>dt7948.n(this.prototype,"onChangeRanges",[r.action]))();static #i=(()=>(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:"GsMoCYBW",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"from"]],[["@date","@onChange","@showTime","@placeholder","@timezone"],[[30,0,["from"]],[28,[32,1],[[30,0,["onChangeRanges"]],[28,[32,2],null,[["prop"],["from"]]]],null],[30,0,["showFromTime"]],[28,[32,3],["dates.from_placeholder"],null],[30,1]]],null],[1,"\\n\\n "],[8,[32,0],[[24,0,"to"]],[["@date","@relativeDate","@onChange","@timeFirst","@showTime","@clearable","@placeholder","@timezone"],[[30,0,["to"]],[30,0,["from"]],[28,[32,1],[[30,0,["onChangeRanges"]],[28,[32,2],null,[["prop"],["to"]]]],null],[30,0,["toTimeFirst"]],[30,0,["showToTime"]],[30,0,["clearable"]],[28,[32,3],["dates.to_placeholder"],null],[30,1]]],null],[1,"\\n "]],["@timezone"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/date-time-input-range.js",scope:()=>[o.default,n.fn,n.hash,l.i18n],isStrictMode:!0}),this))()},[(0,a.classNames)("d-date-time-input-range")])},21710:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});let s={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},n=/[&<>"'`]/g,r=/[&<>"'`]/;function a(e){return s[e]}function o(e){return null===e?"":e?(e=""+e,r.test(e))?e.replace(n,a):e:e+""}},21726:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(53329),r=i(10458),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"K+Jz+69p",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,"group-info-name"],[12],[1,"\\n "],[1,[30,0,["name"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["mentionName"]],[[[1," "],[10,1],[14,0,"group-info-mention-name"],[12],[1,"\\n "],[1,[30,0,["mentionName"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@group"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-info.js",scope:()=>[n.default,r.default],isStrictMode:!0}),this))();get names(){let{full_name:e,display_name:t,name:i}=this.args.group;return[...new Set([e,t,i].filter(Boolean))]}get name(){return this.names[0]}get mentionName(){return this.names[1]?`@${this.names[1]}`:null}}},21741:(e,t,i)=>{"use strict";i.r(t),i(3166);var s=i(41107),n=i.n(s),r=i(11651),a=i.n(r),o=i(79003);window.__widget_helpers=o.default,window.virtualDom=a(),window.$||(window.$=window.jQuery=n())},21762:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var s=i(8004);function n(e){return(0,s.A)(e).getComputedStyle(e)}},21815:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(66633),n=i(70508);let r=class extends s.default{get description(){return(0,n.i18n)("user_menu.reviewable.user_requires_approval",{username:this.reviewable.username})}get icon(){return"user"}}},21863:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addQuickSearchRandomTip:()=>h,default:()=>f,removeDefaultQuickSearchRandomTips:()=>g,resetQuickSearchRandomTips:()=>m});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(63538),l=i(70508),u=i(32045),d=i(1519);let c=[{label:"#",description:(0,l.i18n)("search.tips.category_tag"),clickable:!0},{label:"@",description:(0,l.i18n)("search.tips.author"),clickable:!0},{label:"in:",description:(0,l.i18n)("search.tips.in"),clickable:!0},{label:"status:",description:(0,l.i18n)("search.tips.status"),clickable:!0},{label:(0,l.i18n)("search.tips.full_search_key",{modifier:"Ctrl"}),description:(0,l.i18n)("search.tips.full_search")},{label:"@me",description:(0,l.i18n)("search.tips.me")}],p=[];function h(e){p.includes(e)||p.push(e)}function m(){p=[].concat(c)}function g(){p=p.filter(e=>!c.includes(e))}m();class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[a.service]))();#e2=(()=>void dt7948.i(this,"search"))();constructor(){super(...arguments),this.randomTip=p[Math.floor(Math.random()*p.length)]}tipSelected(e){e.target.classList.contains("tip-clickable")&&(this.args.searchTermChanged(this.randomTip.label),this.search.focusSearchInput(),e.stopPropagation(),e.preventDefault())}static #i=(()=>dt7948.n(this.prototype,"tipSelected",[r.action]))();static #n=(()=>(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"I5QpCe4W",block:'[[[1,"\\n "],[10,"li"],[14,0,"search-random-quick-tip"],[12],[1,"\\n "],[11,"button"],[16,0,[28,[32,0],["tip-label",[52,[30,0,["randomTip","clickable"]],"tip-clickable"]],null]],[24,"aria-describedby","tip-description"],[4,[32,1],["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],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/random-quick-tip.js",scope:()=>[o.default,n.on],isStrictMode:!0}),this))()}},21885:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(88252);let n=class extends(0,s.buildTagRoute)(){controllerName="tags-intersection"}},21950:(e,t,i)=>{"use strict";i.r(t),i.d(t,{a:()=>r,b:()=>n,g:()=>a,h:()=>o,s:()=>l});let s={};function n(e){s=e}function r(){return s}function a(e){if(Object.prototype.hasOwnProperty.call(s,e))return s[e]}function o(e){return Object.prototype.hasOwnProperty.call(s,e)}function l(e,t){return s[e]=t}},21953:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(60343),n=i(60149),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"/JOTl2gZ",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],[[30,2],[30,3],[30,4],[30,5]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,1],null,[["@collapsableSections","@toggleNavigationMenu"],[[30,2],[30,5]]],null],[1,"\\n"]],[]]]],["@currentUser","@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/sidebar/sections.js",scope:()=>[n.default,s.default],isStrictMode:!0}),(0,o.default)(void 0,"sections:SidebarSections"))},21962:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addItemSelectCallback:()=>b,default:()=>k,resetItemSelectCallbacks:()=>w});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(57079),l=i(45237),u=i(34893),d=i(86270),c=i(63538),p=i(38069),h=i(14051),m=i(11837),g=i(70508),f=i(32045),_=i(1519);let y=[];function b(e){y.push(e)}function w(){y.length=0}class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[a.service]))();#e2=(()=>void dt7948.i(this,"search"))();static #i=(()=>dt7948.g(this.prototype,"appEvents",[a.service]))();#t=(()=>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,m.default)(`/tag/${this.args.tag}`))):this.args.tags&&this.args.isIntersection&&this.args.additionalTags?.length&&(e=(0,m.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 #n=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();onClick(e){return this.itemSelected(),e.preventDefault(),!1}static #a=(()=>dt7948.n(this.prototype,"onClick",[r.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",i=!t||this.search.activeGlobalSearchTerm;if(y.length&&!y.some(t=>t({updatedTerm:e,searchTermChanged:this.args.searchTermChanged,usage:this.args.usage})))return;let s=this.search.searchContext?.type==="private_messages";this.args.searchTermChanged(e,{searchTopics:i,...t&&!this.args.searchAllTopics&&{setTopicContext:!0},...!this.args.searchAllTopics&&s&&{setPMInboxContext:!0}}),this.search.focusSearchInput()}static #l=(()=>dt7948.n(this.prototype,"itemSelected",[(0,h.debounce)(100)]))();static #d=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"s8jKZfxC",block:'[[[1,"\\n"],[1," "],[11,"li"],[16,0,[28,[32,0],[[30,1],"search-menu-assistant-item"],null]],[16,"data-usage",[30,2]],[4,[32,1],["keydown",[30,0,["onKeydown"]]],null],[4,[32,1],["click",[30,0,["onClick"]]],null],[12],[1,"\\n "],[10,3],[15,0,[28,[32,0],[[30,1],"search-link"],null]],[15,6,[30,0,["href"]]],[12],[1,"\\n "],[10,1],[14,0,"search-icon-wrapper"],[15,"aria-label",[28,[32,2],["search.title"],null]],[12],[1,"\\n "],[1,[28,[32,3],[[28,[32,4],[[30,3],"magnifying-glass"],null]],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"search-item-wrapper"],[12],[1,"\\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,[32,2],["search.in"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1," "],[8,[32,5],null,[["@result"],[[30,5]]],null],[1,"\\n"],[41,[28,[32,6],[[30,6],[30,7]],null],[[[1," "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n "],[1,[28,[32,3],["tag"],null]],[1,[30,6]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,6],[[[41,[28,[32,6],[[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,[32,7],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,[32,8],null,[["@result"],[[30,9]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]]],[]]],[1,"\\n"],[41,[28,[32,4],[[30,10],[30,11]],null],[[[1," "],[10,1],[14,0,"search-item-slug"],[12],[1,"\\n"],[41,[30,11],[[[1," "],[10,1],[14,0,"label-suffix"],[12],[1,[30,11]],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,10]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,12],[[[1," "],[10,1],[14,0,"extra-hint"],[12],[1,"\\n "],[1,[28,[32,2],[[52,[30,0,["site","mobileView"]],"search.mobile_enter_hint","search.enter_hint"]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@typeClass","@usage","@icon","@withInLabel","@category","@tag","@isIntersection","@additionalTags","@user","@label","@suffix","@extraHint"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/assistant-item.js",scope:()=>[c.default,n.on,g.i18n,p.default,o.or,l.default,o.and,u.default,d.default],isStrictMode:!0}),this))()}},22011:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(11837),n=i(23879),r=i(81932);class a extends r.default{constructor(e){let{reviewable:t,currentUser:i,siteSettings:s,site:r}=e;super(...arguments),this.reviewable=t,this.currentUser=i,this.siteSettings=s,this.site=r,this.renderDirector=(0,n.getRenderDirector)(this.reviewable.type,this.reviewable,this.currentUser,this.siteSettings,this.site)}get className(){let e=["reviewable"];return this.reviewable.pending?e.push("pending"):e.push("reviewed"),e.join(" ")}get linkHref(){return(0,s.default)(`/review/${this.reviewable.id}`)}get linkTitle(){return""}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.actor}get description(){return this.renderDirector.description}}},22103:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(32045),n=i(85024),r=i(14051),a=i(11837),o=i(1519);let l=dt7948.c(class extends s.default{tagClass(e){return"tag-"+e}static #e=(()=>dt7948.n(this.prototype,"tagClass",[(0,r.default)("tagRecord.id")]))();href(e){return(0,a.default)("/tag/"+e)}static #i=(()=>dt7948.n(this.prototype,"href",[(0,r.default)("tagRecord.id")]))();static #n=(()=>(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:"ZMkMNeJl",block:'[[[1,[30,0,["tagRecord","id"]]]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discourse-tag-bound.js",isStrictMode:!0}),this))()},[(0,n.attributeBindings)("href"),(0,n.classNameBindings)(":discourse-tag","style","tagClass"),(0,n.tagName)("a")])},22128:(e,t,i)=>{"use strict";i.r(t),i.d(t,{HUGE_FILE_THRESHOLD_BYTES:()=>S,default:()=>D});var s=i(7155);i(60569);var n=i(86981),r=i(64081),a=i(24813),o=i(75093),l=i(60551),u=i(54803),d=i(9552),c=i(65962),p=i(88230),h=i(87367),m=i(14051),g=i(11837),f=i(32386),_=i(8835),y=i(55709),b=i(76215),w=i(58387),k=i(18209),T=i(70508);let S=0x6400000,C={uploadDone:null,uploadError:null,autoStartUploads:!0,uploadUrl:null,uploadRootPath:"/uploads",validateUploadedFilesOptions:{},additionalParams:{},maxFiles:null,isUploadedFileAllowed:()=>!0,perFileData:null,uploadDropTargetOptions:null,preventDirectS3Uploads:!1,useChunkedUploads:!1,useMultipartUploadsIfAvailable:!1,uppyReady:null,onProgressUploadsChanged:null,type:null},A=["id","uploadDone","type"];class D{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"messageBus",[o.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"capabilities",[o.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #d=(()=>dt7948.g(this.prototype,"session",[o.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #p=(()=>dt7948.g(this.prototype,"uploading",[s.tracked],function(){return!1}))();#rV=(()=>void dt7948.i(this,"uploading"))();static #m=(()=>dt7948.g(this.prototype,"processing",[s.tracked],function(){return!1}))();#rW=(()=>void dt7948.i(this,"processing"))();static #f=(()=>dt7948.g(this.prototype,"uploadProgress",[s.tracked],function(){return 0}))();#rK=(()=>void dt7948.i(this,"uploadProgress"))();static #y=(()=>dt7948.g(this.prototype,"allowMultipleFiles",[s.tracked]))();#rG=(()=>void dt7948.i(this,"allowMultipleFiles"))();static #v=(()=>dt7948.g(this.prototype,"filesAwaitingUpload",[s.tracked],function(){return!1}))();#rJ=(()=>void dt7948.i(this,"filesAwaitingUpload"))();static #k=(()=>dt7948.g(this.prototype,"cancellable",[s.tracked],function(){return!1}))();#rQ=(()=>void dt7948.i(this,"cancellable"))();inProgressUploads=(()=>new l.TrackedArray)();uppyWrapper;#rX;#rZ;_fileInputEl;constructor(e,t){(0,r.setOwner)(this,e),this.uppyWrapper=new b.default(e),this.config=function(e){let t={},i=Object.getOwnPropertyDescriptors(e);return Object.defineProperties(t,{...Object.getOwnPropertyDescriptors(C),...i}),t}(t),function(e){for(let t of A)if(!e[t])throw Error(`Missing required UppyUpload config: ${t}`)}(this.config)}teardown(){this.messageBus.unsubscribe(`/uploads/${this.config.type}`),this._fileInputEl?.removeEventListener("change",this.#rX),this.appEvents.off(`upload-mixin:${this.config.id}:add-files`,this.addFiles),this.appEvents.off(`upload-mixin:${this.config.id}:cancel-upload`,this.cancelSingleUpload),this.uppyWrapper.uppyInstance?.close&&this.uppyWrapper.uppyInstance.close()}setup(e){e&&(this._fileInputEl=e,this.allowMultipleFiles=this._fileInputEl.multiple,this.#r1()),this.uppyWrapper.uppyInstance=new d.A({id:this.config.id,autoProceed:this.config.autoStartUploads,meta:(0,f.deepMerge)({upload_type:this.config.type},this.#r0),onBeforeFileAdded:e=>{let t=(0,f.deepMerge)({bypassNewUserRestriction:!0,user:this.currentUser,siteSettings:this.siteSettings,validateSize:!0},this.config.validateUploadedFilesOptions),i=(0,_.validateUploadedFile)(e,t)&&this.config.isUploadedFileAllowed(e);return Object.assign(this,{uploadProgress:0,uploading:i&&this.config.autoStartUploads,filesAwaitingUpload:!this.config.autoStartUploads,cancellable:i&&this.config.autoStartUploads}),i},onBeforeUpload:e=>{let t=Object.keys(e).length,i=this.config.maxFiles||this.siteSettings.simultaneous_uploads;if(this.allowMultipleFiles?i>0&&t>i:t>1)return this.dialog.alert((0,T.i18n)("post.errors.too_many_dragged_and_dropped_files",{count:this.allowMultipleFiles?i:1})),this.#r3(),!1;Object.values(e).forEach(e=>{(0,f.deepMerge)(e.meta,this.config.perFileData?.(e))})}});let t=this.#r2;t&&this.uppyWrapper.uppyInstance.use(c.default,t),this.uppyWrapper.uppyInstance.on("progress",e=>{this.uploadProgress=e}),this.uppyWrapper.uppyInstance.on("upload",(e,t)=>{this.uppyWrapper.addNeedProcessing(t.length),this.processing=!0,this.cancellable=!1,t.forEach(e=>{this.inProgressUploads.push(n.default.create({fileName:e.name,id:e.id,progress:0,extension:e.extension,processing:!1})),this.#r8()})}),this.uppyWrapper.uppyInstance.on("upload-progress",(e,t)=>{(0,a.run)(()=>{let i=this.inProgressUploads.find(t=>t.id===e.id);if(i){let e=Math.round(t.bytesUploaded/t.bytesTotal*100);i.set("progress",e)}})}),this.uppyWrapper.uppyInstance.on("upload-success",(e,t)=>{if(this.#rZ)Object.assign(this,{uploading:!1,processing:!0}),this.#r4(e).then(t=>{this.#r7(e.id),this.appEvents.trigger(`upload-mixin:${this.config.id}:upload-success`,e.name,t),this.config.uploadDone((0,f.deepMerge)(t,{file_name:e.name})),this.#r8(),0===this.inProgressUploads.length&&this.#r9()}).catch(t=>{(0,_.displayErrorForUpload)(t,this.siteSettings,e.name),this.#r8()});else{this.#r7(e.id);let i=t?.body||{};this.appEvents.trigger(`upload-mixin:${this.config.id}:upload-success`,e.name,i),this.config.uploadDone((0,f.deepMerge)(i,{file_name:e.name})),this.#r8(),0===this.inProgressUploads.length&&this.#r9()}}),this.uppyWrapper.uppyInstance.on("upload-error",(e,t,i)=>{i.aborted||(this.#r7(e.id),(0,_.displayErrorForUpload)(i||t,this.siteSettings,e.name),this.#r3())}),this.uppyWrapper.uppyInstance.on("file-removed",(e,t)=>{(0,a.run)(()=>{"cancel-all"!==t&&this.appEvents.trigger(`upload-mixin:${this.config.id}:upload-cancelled`,e.id)})}),this.siteSettings.enable_upload_debug_mode&&this.uppyWrapper.debug.instrumentUploadTimings(this.uppyWrapper.uppyInstance),!this.siteSettings.enable_direct_s3_uploads||this.config.preventDirectS3Uploads||this.config.useChunkedUploads?this.config.useChunkedUploads?this.#r5():this.#r6():this.config.useMultipartUploadsIfAvailable?new y.default((0,r.getOwner)(this),{uploadRootPath:this.config.uploadRootPath,uppyWrapper:this.uppyWrapper,errorHandler:this.config.uploadError}).apply(this.uppyWrapper.uppyInstance):this.#ae(),this.uppyWrapper.uppyInstance.on("cancel-all",()=>{this.appEvents.trigger(`upload-mixin:${this.config.id}:uploads-cancelled`),this.inProgressUploads.length&&(this.inProgressUploads.length=0,this.#r8())}),this.appEvents.on(`upload-mixin:${this.config.id}:add-files`,this.addFiles),this.appEvents.on(`upload-mixin:${this.config.id}:cancel-upload`,this.cancelSingleUpload),this.config.uppyReady?.(),this.uppyWrapper.useUploadPlugin(w.default,{capabilities:this.capabilities})}static #S=(()=>dt7948.n(this.prototype,"setup",[m.bind]))();openPicker(){this._fileInputEl.click()}static #A=(()=>dt7948.n(this.prototype,"openPicker",[m.bind]))();#r8(){this.config.onProgressUploadsChanged?.(this.inProgressUploads),this.appEvents.trigger(`upload-mixin:${this.config.id}:in-progress-uploads`,this.inProgressUploads)}startUpload(){if(this.filesAwaitingUpload&&this.uppyWrapper.uppyInstance?.getFiles().length)return this.uploading=!0,this.uppyWrapper.uppyInstance?.upload()}#r6(){this.uppyWrapper.uppyInstance.use(p.default,{endpoint:this.#at(),shouldRetry:()=>!1,headers:()=>({"X-CSRF-Token":this.session.csrfToken})})}#r5(){this.uppyWrapper.uppyInstance.use(k.default,{url:this.#at(),headers:{"X-CSRF-Token":this.session.csrfToken}})}#ae(){this.#rZ=!0,this.uppyWrapper.uppyInstance.use(u.default,{shouldUseMultipart:!1,getUploadParameters:e=>{let t={file_name:e.name,file_size:e.size,type:this.config.type};return e.meta.sha1_checksum&&(t.metadata={"sha1-checksum":e.meta.sha1_checksum}),(0,h.ajax)(`${this.config.uploadRootPath}/generate-presigned-put`,{type:"POST",data:t}).then(t=>(this.uppyWrapper.uppyInstance.setFileMeta(e.id,{uniqueUploadIdentifier:t.unique_identifier}),{method:"put",url:t.url,headers:{...t.signed_headers,"Content-Type":e.type}})).catch(t=>{(0,_.displayErrorForUpload)(t,this.siteSettings,e.name),this.#r3()})}})}#at(){let e=this.config.uploadUrl||this.config.uploadRootPath;return(0,g.default)(e)+".json?client_id="+this.messageBus.clientId}#r1(){this.#rX=(0,_.bindFileInputChangeListener)(this._fileInputEl,this.addFiles)}cancelSingleUpload(e){this.uppyWrapper.uppyInstance.removeFile(e.fileId),this.#r7(e.fileId)}static #M=(()=>dt7948.n(this.prototype,"cancelSingleUpload",[m.bind]))();cancelAllUploads(){this.uppyWrapper.uppyInstance?.cancelAll(),this.inProgressUploads.length=0,this.#r8()}static #E=(()=>dt7948.n(this.prototype,"cancelAllUploads",[m.bind]))();async addFiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.session.csrfToken||await (0,h.updateCsrfToken)(),e=Array.isArray(e)?e:[e];try{this.uppyWrapper.uppyInstance.addFiles(e.map(e=>({source:this.config.id,name:e.name,type:e.type,data:e,meta:{pasted:t.pasted}})))}catch(e){}}static #P=(()=>dt7948.n(this.prototype,"addFiles",[m.bind]))();#r4(e){return(0,h.ajax)(`${this.config.uploadRootPath}/complete-external-upload`,{type:"POST",data:(0,f.deepMerge)({unique_identifier:e.meta.uniqueUploadIdentifier},this.#r0)})}get #r0(){return"function"==typeof this.config.additionalParams?this.config.additionalParams():this.config.additionalParams}get #r2(){return"function"==typeof this.config.uploadDropTargetOptions?this.config.uploadDropTargetOptions():this.config.uploadDropTargetOptions}#r3(){this.uppyWrapper.uppyInstance?.cancelAll(),Object.assign(this,{uploading:!1,processing:!1,cancellable:!1,uploadProgress:0,filesAwaitingUpload:!1}),this._fileInputEl&&(this._fileInputEl.value="")}#r7(e){let t=this.inProgressUploads.findIndex(t=>t.id===e);-1!==t&&(this.inProgressUploads.splice(t,1),this.#r8())}#r9(){this.isDestroying||this.isDestroyed||(this.appEvents.trigger(`upload-mixin:${this.config.id}:all-uploads-complete`),this.#r3())}}},22141:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(7155),n=i(56382),r=i(47872);class a extends r.default{static async applyTransformations(e){await (0,n.applyModelTransformations)("notification",e)}static async initializeNotifications(e){let t=e.map(e=>this.create(e));return await this.applyTransformations(t),t}static #e=(()=>dt7948.g(this.prototype,"read",[s.tracked]))();#i0=(()=>void dt7948.i(this,"read"))()}},22238:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(57079),n=i(85074),r=i(38069),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"EacwI7ay",block:'[[[1,"\\n "],[10,0],[15,0,[29,["group-result ",[52,[30,1,["flairUrl"]],"--with-flair"]]]],[12],[1,"\\n"],[41,[30,1,["flairUrl"]],[[[1," "],[8,[32,0],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,[32,1],["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,[32,2],[[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],[1,"\\n"]],["@result"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/type/group.js",scope:()=>[n.default,r.default,s.or],isStrictMode:!0}),(0,l.default)(void 0,"group:Group"))},22245:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(7155),n=i(76632),r=i(93239),a=i(75093),o=i(60551),l=i(63272),u=i(44233),d=i(37389);let c=["search","login","signup","menu"],p=dt7948.c(class extends a.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"scrollDirection",[a.service]))();#ai=(()=>void dt7948.i(this,"scrollDirection"))();static #n=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"headerOffset",[s.tracked],function(){return 0}))();#as=(()=>void dt7948.i(this,"headerOffset"))();static #l=(()=>dt7948.g(this.prototype,"mainOutletOffset",[s.tracked],function(){return 0}))();#an=(()=>void dt7948.i(this,"mainOutletOffset"))();static #d=(()=>dt7948.g(this.prototype,"topicInfo",[s.tracked],function(){return null}))();#ar=(()=>void dt7948.i(this,"topicInfo"))();static #p=(()=>dt7948.g(this.prototype,"mainTopicTitleVisible",[s.tracked],function(){return!1}))();#aa=(()=>void dt7948.i(this,"mainTopicTitleVisible"))();static #m=(()=>dt7948.g(this.prototype,"hamburgerVisible",[s.tracked],function(){return!1}))();#ao=(()=>void dt7948.i(this,"hamburgerVisible"))();static #f=(()=>dt7948.g(this.prototype,"userVisible",[s.tracked],function(){return!1}))();#al=(()=>void dt7948.i(this,"userVisible"))();#au=(()=>new o.TrackedMap)();get topic(){return(0,l.default)("`.topic` is deprecated in service:header. Use `.topicInfo` or `.topicInfoVisible` instead.",{id:"discourse.header-service-topic",since:"3.3.0.beta4-dev",dropFrom:"3.4.0"}),this.topicInfoVisible?this.topicInfo:null}get topicInfoVisible(){return!!this.topicInfo&&!this.mainTopicTitleVisible&&(!this.site.mobileView||this.scrollDirection.lastScrollDirection!==d.SCROLLED_UP)}static #y=(()=>dt7948.n(this.prototype,"topicInfoVisible",[r.dependentKeyCompat]))();registerHider(e,t){let i=t.map(e=>{if(c.includes(e))return e;console.error(`Invalid button to hide: ${e}, valid buttons are: ${c.join(",")}`)}).filter(Boolean);i.length&&(this.#au.set(e,i),(0,n.registerDestructor)(e,()=>{this.#au.delete(e)}))}get headerButtonsHidden(){let e=new Set;return this.#au.forEach(t=>{t.forEach(t=>{e.add(t)})}),Array.from(e)}enterTopic(e,t){this.topicInfo=e,this.mainTopicTitleVisible=t}clearTopic(){this.topicInfo=null,this.mainTopicTitleVisible=!1}},[u.disableImplicitInjections])},22280:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,i=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i},week:{dow:1,doy:4}})})},22349:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(9032),n=i(5955),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"qHrR7CVa",block:'[[[1,"\\n "],[10,0],[14,0,"empty-state"],[12],[1,"\\n "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],[[28,[32,0],["user.no_likes_body"],[["preferencesUrl"],[[28,[32,2],["/my/preferences/notifications"],null]]]]],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/user-menu/likes-list-empty-state.js",scope:()=>[r.i18n,s.htmlSafe,n.default],isStrictMode:!0}),(0,l.default)(void 0,"likes-list-empty-state:LikesListEmptyState"))},22361:(e,t,i)=>{"use strict";var s=i(17020),n=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,r=/^\.|#/;e.exports=function(e,t){if(!e)return"DIV";var i,a,o,l,u=!t.hasOwnProperty("id"),d=s(e,n),c=null;for(r.test(d[1])&&(c="DIV"),l=0;l{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(7155),n=i(75093);class r extends n.default{static #e=(()=>dt7948.g(this.prototype,"callbacks",[s.tracked],function(){return[]}))();#ad=(()=>void dt7948.i(this,"callbacks"))();addButton(e){this.callbacks.push(e)}}},22374:e=>{var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},22392:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(73326),r=i(70568),a=i(85024),o=i(14051),l=i(1519);let u=dt7948.c(class extends s.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,o.default)("user","category")]))();static #i=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"Z1CGSwru",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[8,[32,0],null,[["@route","@query"],["full-page-search",[28,[32,1],null,[["q"],[[30,0,["searchParams"]]]]]]],[["default"],[[[[1,"\\n "],[1,[30,1]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," –\\n"]],[]]],[1," "]],["@count"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-summary-category-search.js",scope:()=>[r.LinkTo,n.hash],isStrictMode:!0}),this))()},[(0,a.tagName)("")])},22396:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DPageActionButton:()=>l,DPageActionListItem:()=>h,DangerActionListItem:()=>f,DangerButton:()=>c,DefaultActionListItem:()=>g,DefaultButton:()=>p,PrimaryButton:()=>d,WrappedActionListItem:()=>m,WrappedButton:()=>u});var s=i(73326),n=i(13355),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"gByzKFGP",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"d-page-action-button btn-small"],[17,1]],[["@action","@route","@routeModels","@label","@title","@icon","@isLoading","@disabled"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],null],[1,"\\n"]],["&attrs","@action","@route","@routeModels","@label","@title","@icon","@isLoading","@disabled"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-page-action-button.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,"d-page-action-button:DPageActionButton")),u=(0,r.setComponentTemplate)((0,a.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,o.default)(void 0,"d-page-action-button:WrappedButton")),d=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"DAeklTD4",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-primary"],[17,1]],[["@icon","@action","@route","@routeModels","@label","@title","@isLoading","@disabled"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9]]],null],[1,"\\n"]],["&attrs","@icon","@action","@route","@routeModels","@label","@title","@isLoading","@disabled"],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,o.default)(void 0,"d-page-action-button:PrimaryButton")),c=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"ipaubTLH",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-danger"],[17,1]],[["@action","@icon","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@icon","@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,o.default)(void 0,"d-page-action-button:DangerButton")),p=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"AF0b9WNh",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@icon","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@icon","@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,o.default)(void 0,"d-page-action-button:DefaultButton")),h=(0,r.setComponentTemplate)((0,a.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,o.default)(void 0,"d-page-action-button:DPageActionListItem")),m=(0,r.setComponentTemplate)((0,a.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:()=>[s.hash],isStrictMode:!0}),(0,o.default)(void 0,"d-page-action-button:WrappedActionListItem")),g=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"AF0b9WNh",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"btn-default"],[17,1]],[["@action","@icon","@route","@routeModels","@label","@title","@isLoading"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],["&attrs","@action","@icon","@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:()=>[h],isStrictMode:!0}),(0,o.default)(void 0,"d-page-action-button:DefaultActionListItem")),f=(0,r.setComponentTemplate)((0,a.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,o.default)(void 0,"d-page-action-button:DangerActionListItem"))},22433:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(86981),n=i(75093),r=i(43248),a=i(44233),o=i(34472),l=i(30258),u=i(23062),d=i(32047),c=i(17844),p=i(78566),h=i(27797),m=i(70508);let g=dt7948.c(class extends h.default{static #e=(()=>dt7948.g(this.prototype,"composer",[n.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"store",[n.service]))();#w=(()=>void dt7948.i(this,"store"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();static #d=(()=>dt7948.g(this.prototype,"searchService",[(0,n.service)("search")]))();#ac=(()=>void dt7948.i(this,"searchService"))();static #p=(()=>dt7948.g(this.prototype,"historyStore",[n.service]))();#im=(()=>void dt7948.i(this,"historyStore"))();queryParams=(()=>r.queryParams)();templateName="discovery/list";async model(e,t){let i=this.site.lazy_load_categories?await u.default.asyncFindBySlugPathWithID(e.category_slug_path_with_id):u.default.findBySlugPathWithID(e.category_slug_path_with_id);if(!i)return void this.router.replaceWith("/404");if(this.routeConfig?.no_subcategories===void 0&&"none"===i.default_list_filter&&this.routeConfig?.filter==="default"&&e){o.default.getAndRemove("topic_list"),this.router.replaceWith("discovery.categoryNone",e.category_slug_path_with_id);return}let s=this._createSubcategoryList(i),n=this._retrieveTopicList(i,t,e),r=!!this.routeConfig?.no_subcategories,a=this.filter(i).split("/")[0];return{category:i,modelParams:e,subcategoryList:await s,list:await n,noSubcategories:r,filterType:a}}filter(e){return this.routeConfig?.filter==="default"?e.get("default_view")||"latest":this.routeConfig?.filter}async _createSubcategoryList(e){if(e.isParent&&e.show_subcategory_list)return d.default.list(this.store,e)}async _retrieveTopicList(e,t,i){let s=(0,p.filterQueryParams)(i,this.routeConfig),n={cached:this.historyStore.isPoppedState},r=`c/${u.default.slugFor(e)}/${e.id}`;s.no_subcategories&&(r+="/none"),r+=`/l/${this.filter(e)}`;let a=await (0,p.findTopicList)(this.store,this.topicTrackingState,r,s,n);return c.default.hideUniformCategory(a,e),a}titleToken(){let e=this.currentModel.category,t=(0,m.i18n)("filters."+this.filter(e).replace("/",".")+".title"),i=e.displayName;if(e.parent_category_id){let t=u.default.list().findBy("id",e.parent_category_id);i=`${t.displayName}/${i}`}return(0,m.i18n)("filters.with_category",{filter:t,category:i})}setupController(e,t){super.setupController(...arguments),e.bulkSelectHelper.clear(),this.searchService.searchContext=t.category.get("searchContext"),(0,l.setTopicList)(t.list);let i=t.category.params;i?.order!==void 0&&(e.order=i.order),i?.ascending!==void 0&&(e.ascending=i.ascending)}deactivate(){super.deactivate(...arguments),this.composer.set("prioritizedCategoryId",null),this.searchService.searchContext=null}setNotification(e){this.currentModel.setNotification(e)}static #m=(()=>dt7948.n(this.prototype,"setNotification",[s.action]))();triggerRefresh(){this.refresh()}static #f=(()=>dt7948.n(this.prototype,"triggerRefresh",[s.action]))();resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.resetParams.call(this,e)}static #y=(()=>dt7948.n(this.prototype,"resetParams",[s.action]))()},[a.disableImplicitInjections]);function f(e){return class extends g{routeConfig=(()=>e)()}}},22450:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(51171),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"tEztJXUS",block:'[[[1,"\\n "],[8,[32,0],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,1,["selectedPostsCount"]],[30,1,["canSelectAll"]],[30,1,["canDeselectAll"]],[30,1,["canDeleteSelected"]],[30,1,["canMergeTopic"]],[30,1,["canChangeOwner"]],[30,1,["canMergePosts"]],[30,1,["toggleMultiSelect"]],[30,1,["mergePosts"]],[30,1,["deleteSelected"]],[30,1,["deselectAll"]],[30,1,["selectAll"]]]],null],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/selected-posts.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},22581:(e,t,i)=>{"use strict";i.r(t),i.d(t,{hidePopover:()=>r,showPopover:()=>n});var s=i(63272);function n(){(0,s.default)("`showPopover` is deprecated. Use tooltip service instead.",{id:"discourse.show-popover"})}function r(){(0,s.default)("`hidePopover` is deprecated. Use tooltip service instead.",{id:"discourse.hide-popover"})}},22593:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(93317),n=i(73326),r=i(86981),a=i(75093),o=i(10558),l=i(75242),u=i(78013),d=i(33385),c=i(61396),p=i(53329),h=i(1158),m=i(63538),g=i(88521),f=i(10458),_=i(4219),y=i(25495),b=i(77296),w=i(23062),k=i(32045),T=i(1519);class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();get filterMode(){return(0,_.calculateFilterMode)({category:this.args.category,filterType:this.args.filterType,noSubcategories:this.args.noSubcategories})}get skipCategoriesNavItem(){return this.router.currentRoute.queryParams.f===y.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(){b.default.routeTo(`/c/${w.default.slugFor(this.args.category)}/edit`)}static #a=(()=>dt7948.n(this.prototype,"editCategory",[r.action]))();createCategory(){this.router.transitionTo("newCategory")}static #l=(()=>dt7948.n(this.prototype,"createCategory",[r.action]))();reorderCategories(){this.modal.show(c.default)}static #d=(()=>dt7948.n(this.prototype,"reorderCategories",[r.action]))();static #p=(()=>(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:"+/lTI8ip",block:'[[[1,"\\n "],[8,[32,0],null,[["@category","@tags"],[[30,1],[52,[30,2],[28,[32,1],[[30,2,["id"]]],null]]]],null],[1,"\\n\\n "],[8,[32,2],null,[["@category","@tag","@additionalTags","@filter"],[[30,1],[30,2],[30,3],[30,0,["filterMode"]]]],null],[1,"\\n\\n"],[41,[30,1],[[[1," "],[8,[32,3],null,[["@name","@outletArgs"],["above-category-heading",[28,[32,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,[32,5],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1," "],[10,2],[12],[1,[28,[32,6],[[30,1,["description"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["category-heading","div",[28,[32,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,7],[[30,0,["bodyClass"]]],null]],[1,"\\n\\n "],[10,"section"],[15,0,[28,[32,8],["navigation-container",[52,[30,1],"category-navigation"]],null]],[12],[1,"\\n "],[8,[32,9],null,[["@category","@tag","@additionalTags","@filterMode","@noSubcategories","@canCreateTopic","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@draftCount","@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","draft_count"]],[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,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["category-navigation","div",[28,[32,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1," "],[8,[32,3],null,[["@name","@connectorTagName","@outletArgs"],["tag-navigation","div",[28,[32,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["@category","@tag","@additionalTags","@noSubcategories","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@showCategoryAdmin","@canBulkSelect","@bulkSelectHelper","@toggleTagInfo","@tagNotification","@model","@showDismissRead","@showResetNew","@dismissRead","@resetNew"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/navigation.js",scope:()=>[o.default,n.array,d.default,p.default,f.default,l.default,g.default,h.default,m.default,u.default],isStrictMode:!0}),this))()}},22595:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(56162),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"activity-cell:ActivityCell"))},22628:(e,t,i)=>{"use strict";var s=i(95461),n=i(3923);function r(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.")}}e.exports.Type=i(15534),e.exports.Schema=i(84913),e.exports.FAILSAFE_SCHEMA=i(93221),e.exports.JSON_SCHEMA=i(42642),e.exports.CORE_SCHEMA=i(3551),e.exports.DEFAULT_SCHEMA=i(81531),e.exports.load=s.load,e.exports.loadAll=s.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=i(31265),e.exports.types={binary:i(93444),float:i(93355),map:i(87247),null:i(16820),pairs:i(1636),set:i(42417),timestamp:i(65145),bool:i(40405),int:i(70124),merge:i(18089),omap:i(57104),seq:i(59278),str:i(72386)},e.exports.safeLoad=r("safeLoad","load"),e.exports.safeLoadAll=r("safeLoadAll","loadAll"),e.exports.safeDump=r("safeDump","dump")},22637:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(73326),n=i(75370),r=i(85168),a=i(38069),o=i(70508),l=i(90701),u=i(32045),d=i(1519),c=i(69522);let p=(0,n.default)((0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"O7lGSKeF",block:'[[[1,"\\n "],[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,[32,0],["groups.manage.categories.long_title"],null]],[13],[1,"\\n "],[10,0],[12],[1,[28,[32,0],["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,[32,1],["d-watching"],null]],[1,"\\n "],[1,[28,[32,0],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,1,["model","watchingCategories"]],[30,1,["selectedCategories"]],[28,[32,3],[[28,[31,0],[[30,1,["model","watchingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],["d-tracking"],null]],[1,"\\n "],[1,[28,[32,0],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,1,["model","trackingCategories"]],[30,1,["selectedCategories"]],[28,[32,3],[[28,[31,0],[[30,1,["model","trackingCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],["d-watching-first"],null]],[1,"\\n "],[1,[28,[32,0],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,1,["model","watchingFirstPostCategories"]],[30,1,["selectedCategories"]],[28,[32,3],[[28,[31,0],[[30,1,["model","watchingFirstPostCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],["d-regular"],null]],[1,"\\n "],[1,[28,[32,0],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,1,["model","regularCategories"]],[30,1,["selectedCategories"]],[28,[32,3],[[28,[31,0],[[30,1,["model","regularCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,1],["d-muted"],null]],[1,"\\n "],[1,[28,[32,0],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,1,["model","mutedCategories"]],[30,1,["selectedCategories"]],[28,[32,3],[[28,[31,0],[[30,1,["model","mutedCategories"]]],null]],null]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n "],[1,[28,[32,0],["groups.manage.categories.muted_categories_instructions"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage/categories.js",scope:()=>[o.i18n,a.default,l.default,s.fn,r.default],isStrictMode:!0}),(0,c.default)(void 0,void 0)))},22818:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(32045),n=i(70787);class r extends s.default{click(e){e?.target?.tagName==="A"&&(0,n.shouldOpenInNewTab)(e.target.href)&&(0,n.openLinkInNewTab)(e,e.target)}}},22911:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(15383),u=i(76947),d=i(13355),c=i(39826),p=i(50817),h=i(61667),m=i(33186),g=i(16356),f=i(77296),_=i(70508),y=i(32045),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"reason",[n.tracked],function(){return this.args.model.group.membership_request_template}))();#ap=(()=>void dt7948.i(this,"reason"))();get title(){return(0,_.i18n)("groups.membership_request.title",{group_name:this.args.model.group.name})}get disableSubmit(){return this.loading||(0,l.isEmpty)(this.reason)}async requestMember(){this.loading=!0;try{let e=await this.args.model.group.requestMembership(this.reason);f.default.routeTo(e.relative_url)}catch(e){(0,g.popupAjaxError)(e)}finally{this.loading=!1}}static #n=(()=>dt7948.n(this.prototype,"requestMember",[o.action]))();static #a=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"wcq50nvC",block:'[[[1,"\\n "],[8,[32,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,[32,1],["groups.membership_request.reason"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],[[16,2,[30,0,["reason"]]],[24,"maxlength","5000"],[4,[32,3],["input",[28,[32,4],[[28,[32,5],[[28,[31,0],[[30,0,["reason"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,6],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["requestMember"]],"groups.membership_request.submit",[30,0,["disableSubmit"]]]],null],[1,"\\n\\n "],[8,[32,7],null,[["@close"],[[30,1]]],null],[1,"\\n "],[8,[32,8],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@inline"],false,["mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/request-group-membership-form.js",scope:()=>[c.default,_.i18n,h.default,a.on,m.default,r.fn,d.default,p.default,u.default],isStrictMode:!0}),this))()}},22930:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var s=i(28617),n=i(59685),r=i(12850),a=i(63706),o=i(63348),l=i(4258),u=i(97109),d=i(89380),c=i(79161),p=i(80095);let h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,h=e.name,m=i.mainAxis,g=i.altAxis,f=i.boundary,_=i.rootBoundary,y=i.altBoundary,b=i.padding,w=i.tether,k=void 0===w||w,T=i.tetherOffset,S=void 0===T?0:T,C=(0,u.A)(t,{boundary:f,rootBoundary:_,padding:b,altBoundary:y}),A=(0,n.A)(t.placement),D=(0,d.A)(t.placement),M=!D,x=(0,r.A)(A),E=function(e){return"x"===e?"y":"x"}(x),L=t.modifiersData.popperOffsets,P=t.rects.reference,F=t.rects.popper,I="function"==typeof S?S(Object.assign({},t.rects,{placement:t.placement})):S,N="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(L){if(void 0===m||m){var R,U="y"===x?s.Mn:s.kb,B="y"===x?s.sQ:s.pG,Y="y"===x?"height":"width",H=L[x],q=H+C[U],z=H-C[B],$=k?-F[Y]/2:0,V=D===s.ni?P[Y]:F[Y],W=D===s.ni?-F[Y]:-P[Y],K=t.elements.arrow,G=k&&K?(0,o.A)(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,c.A)(),Q=J[U],X=J[B],Z=(0,a.u)(0,P[Y],G[Y]),ee=M?P[Y]/2-$-Z-Q-N.mainAxis:V-Z-Q-N.mainAxis,et=M?-P[Y]/2+$+Z+X+N.mainAxis:W+Z+X+N.mainAxis,ei=t.elements.arrow&&(0,l.A)(t.elements.arrow),es=ei?"y"===x?ei.clientTop||0:ei.clientLeft||0:0,en=null!=(R=null==j?void 0:j[x])?R:0,er=(0,a.u)(k?(0,p.jk)(q,H+ee-en-es):q,H,k?(0,p.T9)(z,H+et-en):z);L[x]=er,O[x]=er-H}if(void 0!==g&&g){var ea,eo="x"===x?s.Mn:s.kb,el="x"===x?s.sQ:s.pG,eu=L[E],ed="y"===E?"height":"width",ec=eu+C[eo],ep=eu-C[el],eh=-1!==[s.Mn,s.kb].indexOf(A),em=null!=(ea=null==j?void 0:j[E])?ea:0,eg=eh?ec:eu-P[ed]-F[ed]-em+N.altAxis,ef=eh?eu+P[ed]+F[ed]-em-N.altAxis:ep,e_=k&&eh?(0,a.P)(eg,eu,ef):(0,a.u)(k?eg:ec,eu,k?ef:ep);L[E]=e_,O[E]=e_-eu}t.modifiersData[h]=O}},requiresIfExists:["offset"]}},22991:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(86981),r=i(75093),a=i(9032),o=i(85811),l=i(39826),u=i(10919),d=i(70508),c=i(25351),p=i(99244),h=i(32045),m=i(1519);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>void dt7948.i(this,"modal"))();sendActivationEmail(){(0,u.resendActivationEmail)(this.args.model.currentEmail).then(()=>{this.modal.show(p.default,{model:{currentEmail:this.args.model.currentEmail}})})}static #i=(()=>dt7948.n(this.prototype,"sendActivationEmail",[n.action]))();editActivationEmail(){this.modal.show(c.default,{model:{currentEmail:this.args.model.currentEmail,newEmail:this.args.model.currentEmail}})}static #n=(()=>dt7948.n(this.prototype,"editActivationEmail",[n.action]))();static #a=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"pLpTN1eR",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"not-activated-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],["log_in"],null]]],[["body","footer"],[[[[1,"\\n "],[1,[28,[32,2],[[28,[32,1],["login.not_activated"],[["sentTo"],[[30,2,["sentTo"]]]]]],null]],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],null,[["@sendActivationEmail","@editActivationEmail"],[[30,0,["sendActivationEmail"]],[30,0,["editActivationEmail"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/not-activated.js",scope:()=>[l.default,d.i18n,a.htmlSafe,o.default],isStrictMode:!0}),this))()}},23062:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{default:()=>w,resetCategoryCache:()=>T});var n=i(7155);i(60569);var r=i(86981),a=i(75093),o=i(87367),l=i(14051),u=i(71455),d=i(11837),c=i(2087),p=i(10216),h=i(77982),m=i(642),g=i(47872),f=i(18693),_=i(63159);let y={},b={};class w extends g.default{static sortCategories(e){let t=new Map;e.forEach(e=>{let i=parseInt(e.parent_category_id,10)||-1,s=t.get(i)||[];s.pushObject(e),t.set(i,s)});let i=e=>e.flatMap(e=>[e,i(t.get(e.id)||[])]).flat();return i(t.get(-1)||[])}static isUncategorized(e){return e===f.default.currentProp("uncategorized_category_id")}static slugEncoded(){return"encoded"===(0,u.getOwnerWithFallback)(this).lookup("service:site-settings").slug_generation_method}static findUncategorized(){return s=s||w.list().findBy("id",f.default.currentProp("uncategorized_category_id"))}static slugFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!e)return"";let s=(0,r.get)(e,"parentCategory"),n="";s&&i>1&&(n=w.slugFor(s,t,i-1)+t);let a=(0,r.get)(e,"id"),o=(0,r.get)(e,"slug");return o&&0!==o.trim().length?n+o:`${n}${a}-category`}static list(){return f.default.currentProp("categoriesList")}static listByActivity(){return f.default.currentProp("sortedCategories")}static _idMap(){return f.default.currentProp("categoriesById")}static findSingleBySlug(e){return this.slugEncoded()?w.list().find(t=>w.slugFor(t)===encodeURI(e)):w.list().find(t=>w.slugFor(t)===e)}static findById(e){if(e)return"string"==typeof e&&(console.warn("Category.findById called with a string ID"),e=parseInt(e,10)),w._idMap().get(e)}static findByIds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e.forEach(e=>{let i=w.findById(e);i&&t.push(i)}),t}static hasAsyncFoundAll(e){let t=f.default.current().loadedCategoryIds||new Set;return e.every(e=>t.has(e))}static async asyncFindByIds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(e=e.map(e=>parseInt(e,10)),!f.default.current().lazy_load_categories||this.hasAsyncFoundAll(e))return this.findByIds(e);let t=await k.fetch(e);k.hadTooManyCalls();let i=e.map(e=>f.default.current().updateCategory(t.get(e))),s=f.default.current().loadedCategoryIds||new Set;return e.forEach(e=>s.add(e)),f.default.current().set("loadedCategoryIds",s),i}static async asyncFindById(e){return(await w.asyncFindByIds([e]))[0]}static findBySlugAndParent(e,t){return this.slugEncoded()&&(e=encodeURI(e)),w.list().find(i=>i.slug===e&&(i.parentCategory||null)===t)}static findBySlugPath(e){let t=null;for(let i of e)if(!(t=this.findBySlugAndParent(i,t)))return null;return t}static async asyncFindBySlugPath(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={slug_path:e};t.includePermissions&&(i.include_permissions=!0);let s=(await (0,o.ajax)("/categories/find",{data:i})).categories.map(e=>(e=f.default.current().updateCategory(e),t.includePermissions&&e.setupGroupsAndPermissions(),e));return s[s.length-1]}static async asyncFindBySlugPathWithID(e){let t=(await (0,o.ajax)("/categories/find",{data:{slug_path_with_id:e}})).categories.map(e=>f.default.current().updateCategory(e));return t[t.length-1]}static findBySlugPathWithID(e){let t=e.split("/").filter(Boolean);this.slugEncoded()&&(t=t.map(e=>decodeURI(e)));let i=null;if(t.length>0&&t[t.length-1].match(/^\d+$/)){let e=parseInt(t.pop(),10);i=w.findById(e)}else if(!(i=w.findBySlugPath(t))&&t.length>0&&t[t.length-1].match(/^\d+-category/)){let e=parseInt(t.pop(),10);i=w.findById(e)}return i}static findBySlug(e,t){let i,s=w.list();if(t){let n=w.findSingleBySlug(t);if(n){if("none"===e)return n;i=s.find(i=>i&&i.get("parentCategory")===n&&(!this.slugEncoded()&&w.slugFor(i)===t+"/"+e||this.slugEncoded()&&w.slugFor(i)===encodeURI(t)+"/"+encodeURI(e)))}}else if((i=w.findSingleBySlug(e))&&i.get("parentCategory"))return;return i||(i=s.findBy("id",parseInt(e,10))),i}static fetchVisibleGroups(e){return(0,o.ajax)(`/c/${e}/visible_groups.json`)}static reloadById(e){return(0,o.ajax)(`/c/${e}/show.json`)}static reloadBySlugPath(e){return(0,o.ajax)(`/c/${e}/find_by_slug.json`)}static reloadCategoryWithPermissions(e,t,i){return this.reloadBySlugPath(e.slug).then(e=>this._includePermissions(e.category,t,i))}static _includePermissions(e,t,i){let s=t.createRecord("category",e);return s.setupGroupsAndPermissions(),i.updateCategory(s),s}static search(e,t){let i,s,n=5;if(t){if(0===t.limit)return[];t.limit&&(n=t.limit),t.parentCategoryId&&(i=t.parentCategoryId)}let r=""===e,a=e;r||(a=e=e.toLowerCase(),e=e.replace(/-/g," "));let o=w.listByActivity(),l=o.length,u=[],d=()=>u.length===n,c=e=>!i||e.get("parent_category_id")===i;for(s=0;s0||t.get("slug").toLowerCase().indexOf(a)>0)&&c(t)&&!u.includes(t)&&u.push(t)}return u.sortBy("read_restricted")}static async asyncHierarchicalSearch(e,t){let i={term:e,parent_category_id:(t||={}).parentCategoryId,limit:t.limit,only:t.only,except:t.except,page:t.page,offset:t.offset,include_uncategorized:t.includeUncategorized};return(b[JSON.stringify(i)]||=await (0,o.ajax)("/categories/hierarchical_search",{method:"GET",data:i})).categories.map(e=>f.default.current().updateCategory(e))}static async asyncSearch(e,t){let i={term:e,parent_category_id:(t||={}).parentCategoryId,include_uncategorized:t.includeUncategorized,select_category_ids:t.selectCategoryIds,reject_category_ids:t.rejectCategoryIds,include_subcategories:t.includeSubcategories,include_ancestors:t.includeAncestors,prioritized_category_id:t.prioritizedCategoryId,limit:t.limit,page:t.page},s=y[JSON.stringify(i)]||=await (0,o.ajax)("/categories/search",{method:"POST",data:i});return t.includeAncestors?{ancestors:s.ancestors.map(e=>f.default.current().updateCategory(e)),categories:s.categories.map(e=>f.default.current().updateCategory(e)),categoriesCount:s.categories_count}:s.categories.map(e=>f.default.current().updateCategory(e))}static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"color",[n.tracked]))();#ah=(()=>void dt7948.i(this,"color"))();static #n=(()=>dt7948.g(this.prototype,"styleType",[n.tracked],function(){return this.style_type}))();#am=(()=>void dt7948.i(this,"styleType"))();static #a=(()=>dt7948.g(this.prototype,"emoji",[n.tracked]))();#ag=(()=>void dt7948.i(this,"emoji"))();static #l=(()=>dt7948.g(this.prototype,"icon",[n.tracked]))();#ns=(()=>void dt7948.i(this,"icon"))();static #d=(()=>dt7948.g(this.prototype,"localizations",[n.tracked],function(){return this.category_localizations}))();#af=(()=>void dt7948.i(this,"localizations"))();permissions=null;init(){super.init(...arguments),this.setupGroupsAndPermissions()}setupGroupsAndPermissions(){this.available_groups&&(this.set("availableGroups",this.available_groups),this.group_permissions&&this.set("permissions",this.group_permissions.map(e=>(this.available_groups.removeObject(e.group_name),e))))}get descriptionText(){return(0,h.applyValueTransformer)("category-description-text",this.get("description_text"),{category:this})}get displayName(){return(0,h.applyValueTransformer)("category-display-name",this.get("name"),{category:this})}get textColor(){return(0,h.applyValueTransformer)("category-text-color",this.get("text_color"),{category:this})}get parentCategory(){if(this.parent_category_id)return w.findById(this.parent_category_id)}static #p=(()=>dt7948.n(this.prototype,"parentCategory",[(0,r.computed)("parent_category_id","site.categories.[]")]))();set parentCategory(e){this.set("parent_category_id",e?.id)}get subcategories(){return this.site.categoriesByParentId.get(this.id)||[]}get unloadedSubcategoryCount(){return this.subcategory_count-this.subcategories.length}get serializedSubcategories(){return this.subcategory_list?.map(e=>w.create(e))}static #m=(()=>dt7948.n(this.prototype,"serializedSubcategories",[(0,r.computed)("subcategory_list")]))();minimumRequiredTags(){return this.required_tag_groups?.length>0?Math.max(this.required_tag_groups.reduce((e,t)=>e+t.min_count,0),this.minimum_required_tags||0):this.minimum_required_tags>0?this.minimum_required_tags:null}static #f=(()=>dt7948.n(this.prototype,"minimumRequiredTags",[(0,l.default)("required_tag_groups","minimum_required_tags")]))();availablePermissions(){return[m.default.create({id:m.default.FULL}),m.default.create({id:m.default.CREATE_POST}),m.default.create({id:m.default.READONLY})]}static #y=(()=>dt7948.n(this.prototype,"availablePermissions",[l.default]))();searchContext(e){return{type:"category",id:e,category:this}}static #v=(()=>dt7948.n(this.prototype,"searchContext",[(0,l.default)("id")]))();ancestors(e){return[...e||[],this]}static #k=(()=>dt7948.n(this.prototype,"ancestors",[(0,l.default)("parentCategory.ancestors")]))();predecessors(e,t){return e?[e,...t]:[]}static #S=(()=>dt7948.n(this.prototype,"predecessors",[(0,l.default)("parentCategory","parentCategory.predecessors")]))();get descendants(){let e=[this];for(let t=0;tdt7948.n(this.prototype,"level",[(0,l.default)("parentCategory.level")]))();isParent(e,t){return e||t&&t.length>0}static #M=(()=>dt7948.n(this.prototype,"isParent",[(0,l.default)("has_children","subcategories")]))();isGrandParent(e){return e&&e.some(e=>e.subcategories&&e.subcategories.length>0)}static #E=(()=>dt7948.n(this.prototype,"isGrandParent",[(0,l.default)("subcategories")]))();isMuted(e){return e===p.NotificationLevels.MUTED}static #P=(()=>dt7948.n(this.prototype,"isMuted",[(0,l.default)("notification_level")]))();isHidden(e,t){return!!e&&(!t||!t.some(e=>!e.isHidden))}static #I=(()=>dt7948.n(this.prototype,"isHidden",[(0,l.default)("isMuted","subcategories")]))();hasMuted(e,t){return!!e||!!t&&!!t.some(e=>e.hasMuted)}static #j=(()=>dt7948.n(this.prototype,"hasMuted",[(0,l.default)("isMuted","subcategories")]))();notificationLevelString(e){let t=Object.keys(p.NotificationLevels).find(t=>p.NotificationLevels[t]===e);if(t)return t.toLowerCase()}static #R=(()=>dt7948.n(this.prototype,"notificationLevelString",[(0,l.default)("notification_level")]))();path(){return`/c/${w.slugFor(this)}/${this.id}`}static #B=(()=>dt7948.n(this.prototype,"path",[(0,l.default)("name")]))();url(e){return(0,d.default)(e)}static #H=(()=>dt7948.n(this.prototype,"url",[(0,l.default)("path")]))();fullSlug(){return w.slugFor(this).replace(/\//g,"-")}static #z=(()=>dt7948.n(this.prototype,"fullSlug",[l.default]))();nameLower(e){return e.toLowerCase()}static #$=(()=>dt7948.n(this.prototype,"nameLower",[(0,l.default)("name")]))();unreadUrl(e){return`${e}/l/unread`}static #V=(()=>dt7948.n(this.prototype,"unreadUrl",[(0,l.default)("url")]))();newUrl(e){return`${e}/l/new`}static #W=(()=>dt7948.n(this.prototype,"newUrl",[(0,l.default)("url")]))();style(e,t){return`background-color: #${e}; color: #${t}`}static #K=(()=>dt7948.n(this.prototype,"style",[(0,l.default)("color","text_color")]))();moreTopics(e){return e>(this.num_featured_topics||2)}static #G=(()=>dt7948.n(this.prototype,"moreTopics",[(0,l.default)("topic_count")]))();totalTopicCount(e,t){return t&&t.forEach(t=>{e+=t.topic_count}),e}static #J=(()=>dt7948.n(this.prototype,"totalTopicCount",[(0,l.default)("topic_count","subcategories.[]")]))();defaultSlowModeMinutes(e){return e?e/60:null}static #Q=(()=>dt7948.n(this.prototype,"defaultSlowModeMinutes",[(0,l.default)("default_slow_mode_seconds")]))();isTracked(e){return e>=p.NotificationLevels.TRACKING}static #X=(()=>dt7948.n(this.prototype,"isTracked",[(0,l.default)("notification_level")]))();get unreadTopicsCount(){return this.topicTrackingState.countUnread({categoryId:this.id})}get newTopicsCount(){return this.topicTrackingState.countNew({categoryId:this.id})}save(){let e=this.id,t=e?`/categories/${e}`:"/categories";return this.styleType=this.style_type,(0,o.ajax)(t,{contentType:"application/json",data:JSON.stringify({name:this.name,slug:this.slug,color:this.color,text_color:this.text_color,secure:this.secure,permissions:this._permissionsForUpdate(),auto_close_hours:this.auto_close_hours,auto_close_based_on_last_post:this.get("auto_close_based_on_last_post"),default_slow_mode_seconds:this.default_slow_mode_seconds,position:this.position,email_in:this.email_in,email_in_allow_strangers:this.email_in_allow_strangers,mailinglist_mirror:this.mailinglist_mirror,parent_category_id:this.parent_category_id,uploaded_logo_id:this.get("uploaded_logo.id"),uploaded_logo_dark_id:this.get("uploaded_logo_dark.id"),uploaded_background_id:this.get("uploaded_background.id"),uploaded_background_dark_id:this.get("uploaded_background_dark.id"),allow_badges:this.allow_badges,category_setting_attributes:this.category_setting,custom_fields:this.custom_fields,topic_template:this.topic_template,form_template_ids:this.form_template_ids,all_topics_wiki:this.all_topics_wiki,allow_unlimited_owner_edits_on_first_post:this.allow_unlimited_owner_edits_on_first_post,allowed_tags:this.allowed_tags,allowed_tag_groups:this.allowed_tag_groups,allow_global_tags:this.allow_global_tags,required_tag_groups:this.required_tag_groups,sort_order:this.sort_order,sort_ascending:this.sort_ascending,topic_featured_link_allowed:this.topic_featured_link_allowed,show_subcategory_list:this.show_subcategory_list,num_featured_topics:this.num_featured_topics,default_view:this.default_view,subcategory_list_style:this.subcategory_list_style,default_top_period:this.default_top_period,minimum_required_tags:this.minimum_required_tags,navigate_to_first_post_after_read:this.get("navigate_to_first_post_after_read"),search_priority:this.search_priority,moderating_group_ids:this.moderating_group_ids,read_only_banner:this.read_only_banner,default_list_filter:this.default_list_filter,style_type:this.style_type,emoji:this.emoji,icon:this.icon,...this.siteSettings.content_localization_enabled&&{category_localizations_attributes:this._buildUpdatedLocalizations()}}),type:e?"PUT":"POST"})}_buildUpdatedLocalizations(){let e=this.category_localizations.filter(e=>!this.localizations.some(t=>t.id===e.id)).map(e=>({id:e.id,_destroy:!0}));return[...this.localizations,...e]}_permissionsForUpdate(){let e=this.permissions,t={};return e.length?e.forEach(e=>t[e.group_name]=e.permission_type):t.staff=m.default.FULL,t}destroy(){return(0,o.ajax)(`/categories/${this.id||this.slug}`,{type:"DELETE"})}addPermission(e){this.permissions.addObject(e),this.availableGroups.removeObject(e.group_name)}removePermission(e){let t=this.permissions.findBy("group_name",e);t&&(this.permissions.removeObject(t),this.availableGroups.addObject(e))}updatePermission(e,t){this.permissions.forEach((i,s)=>{i.group_name===e&&this.set(`permissions.${s}.permission_type`,t)})}latestTopic(e){if(e&&e.length)return e[0]}static #Z=(()=>dt7948.n(this.prototype,"latestTopic",[(0,l.default)("topics")]))();featuredTopics(e){if(e&&e.length)return e.slice(0,this.num_featured_topics||2).map(e=>_.default.create(e))}static #ee=(()=>dt7948.n(this.prototype,"featuredTopics",[(0,l.default)("topics")]))();setNotification(e){this.currentUser.set("muted_category_ids",this.currentUser.calculateMutedIds(e,this.id,"muted_category_ids"));let t=`/category/${this.id}/notifications`;return(0,o.ajax)(t,{data:{notification_level:e},type:"POST"}).then(t=>{this.currentUser.set("indirectly_muted_category_ids",t.indirectly_muted_category_ids),this.set("notification_level",e),this.notifyPropertyChange("notification_level")})}isUncategorizedCategory(e){return w.isUncategorized(e)}static #et=(()=>dt7948.n(this.prototype,"isUncategorizedCategory",[(0,l.default)("id")]))();get canCreateTopic(){return this.permission===m.default.FULL}get subcategoryWithCreateTopicPermission(){return this.subcategories?.find(e=>e.canCreateTopic)}}let k=new c.MultiCache(async e=>new Map((await (0,o.ajax)("/categories/find",{data:{ids:e}})).categories.map(e=>[e.id,e])));function T(){k.reset()}},23081:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(14051),n=i(47872),r=i(70508);class a extends n.default{i18nNameKey(){return this.name.toLowerCase().replace(/\s/g,"_")}static #e=(()=>dt7948.n(this.prototype,"i18nNameKey",[(0,s.default)("name")]))();displayName(){let e=`badges.badge_grouping.${this.i18nNameKey}.name`;return(0,r.i18n)(e,{defaultValue:this.name})}static #i=(()=>dt7948.n(this.prototype,"displayName",[(0,s.default)("name")]))()}},23131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(86981),n=i(93239),r=i(75093),a=i(63272);let o=[];function l(e,t){return class extends s.default{static printDeprecation(){(0,a.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(),o.push(e),super.reopen(...arguments)}static #e=(()=>dt7948.g(this.prototype,"discovery",[r.service]))();#a_=(()=>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",[n.dependentKeyCompat]))()}class d 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",[n.dependentKeyCompat]))();get category(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.category}static #i=(()=>dt7948.n(this.prototype,"category",[n.dependentKeyCompat]))()}class c 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",[n.dependentKeyCompat]))()}let p={initialize(e){e.register("controller:navigation/category",u),e.register("controller:discovery/topics",d),e.register("controller:tag-show",c),e.lookup("service:router").on("routeDidChange",t=>{let i=t.to?.name;(i?.startsWith("discovery.")||i?.startsWith("tags.show")||"tag.show"===i)&&o.forEach(t=>e.lookup(t))})}}},23146:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("groups.manage.interaction.title")}}},23217:(e,t,i)=>{"use strict";i.r(t),i.d(t,{apiInitializer:()=>r});var s=i(17631);let n=0;function r(e,t,i){return{name:`api-initializer${n++}`,after:"inject-objects",initialize:()=>(0,s.withPluginApi)(e,t,i)}}},23221:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(73326),r=i(86981),a=i(97908),o=i(86723),l=i(57166),u=i(35697),d=i(75743),c=i(17805),p=i(32045),h=i(1519);class m extends s.default{clickOutside(e){if(e.target.classList.contains("header-cloak")&&!(0,u.prefersReducedMotion)()){let e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),i=(0,l.isDocumentRTL)()?"-340px":"340px";e.animate([{transform:`translate3d(${i}, 0, 0)`}],{duration:200,fill:"forwards",easing:"ease-in"}).finished.then(()=>{(0,a.isTesting)()?this.args.toggleUserMenu():(0,o.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 #i=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"S7Hkd1b8",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"],[[28,[32,3],[[30,2],false],null]]],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:()=>[d.default,n.hash,c.default,n.fn],isStrictMode:!0}),this))()}},23316:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(94078),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[n.i18n,s.default],isStrictMode:!0}),(0,o.default)(void 0,"topic-bulk-select-dropdown:TopicBulkSelectDropdown"))},23393:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},i={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};return e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return(12===e&&(e=0),"ರಾತ್ರಿ"===t)?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})})},23521:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(73326),n=i(9032),r=i(75370),a=i(60208),o=i(32045),l=i(1519),u=i(69522);let d=(0,r.default)((0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"Aa9yzQJO",block:'[[[1,"\\n "],[8,[32,0],null,[["@action"],[[28,[32,1],[[30,1,["closeMessage"]],[30,1,["message"]]],null]]],null],[1,"\\n\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,2],[[30,1,["message","body"]]],null]],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/composer/group-mentioned.js",scope:()=>[a.default,s.fn,n.htmlSafe],isStrictMode:!0}),(0,u.default)(void 0,void 0)))},23544:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(24813),n=i(75093),r=i(96527),a=i(49375),o=i(27797),l=i(70508);class u extends o.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[n.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"composer",[n.service]))();#tN=(()=>void dt7948.i(this,"composer"))();static #n=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();beforeModel(e){let t=e.to.queryParams,i=t.username,s=t.groupname||t.group_name;if(!this.currentUser){(0,r.default)("destination_url",window.location.href),this.router.replaceWith("login");return}if(e.from)return(e.abort(),i)?this.openComposer(e,i):s?a.default.messageable(s).then(t=>{t.messageable?this.openComposer(e,s):this.dialog.alert((0,l.i18n)("composer.cant_send_pm",{username:s}))}).catch(()=>this.dialog.alert((0,l.i18n)("composer.create_message_error"))):this.openComposer(e);this.router.replaceWith("discovery.latest").followRedirects().then(()=>i?this.openComposer(e,i):s?a.default.messageable(s).then(t=>{t.messageable?this.openComposer(e,s):this.dialog.alert((0,l.i18n)("composer.cant_send_pm",{username:s}))}).catch(()=>this.dialog.alert((0,l.i18n)("composer.create_message_error"))):this.openComposer(e))}openComposer(e,t){(0,s.next)(()=>{this.composer.openNewMessage({recipients:t,title:e.to.queryParams.title,body:e.to.queryParams.body})})}}},23573:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("login.activate_account")}}},23585:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(35697);function n(e){return`
  • ${(0,s.escapeExpression)(e.name)}
  • `}function r(e){let{options:t}=e;return`
      ${t.map(n).join("")}
    `}},23613:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(57914),r=i(37759),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"3nQHdRvt",block:'[[[1,"\\n "],[1,[32,0]],[1,"\\n "],[1,[32,1]],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/loading.js",scope:()=>[r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},23704:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(32045),a=i(96791),o=i(86981),l=i(91558),u=i(75093),d=i(9032),c=i(15383),p=i(13355),h=i(50817),m=i(16356),g=i(714),f=i(77296),_=i(25217),y=i(70508),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[u.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"editing",[n.tracked],function(){return!1}))();#ay=(()=>void dt7948.i(this,"editing"))();static #a=(()=>dt7948.g(this.prototype,"newUsername",[n.tracked],function(){return this.args.user.username}))();#ab=(()=>void dt7948.i(this,"newUsername"))();static #l=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked],function(){return null}))();#sD=(()=>void dt7948.i(this,"errorMessage"))();static #d=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();static #p=(()=>dt7948.g(this.prototype,"taken",[n.tracked],function(){return!1}))();#av=(()=>void dt7948.i(this,"taken"))();static #m=(()=>dt7948.g(this.prototype,"maxLength",[(0,g.setting)("max_username_length")]))();#aw=(()=>void dt7948.i(this,"maxLength"))();static #f=(()=>dt7948.g(this.prototype,"minLength",[(0,g.setting)("min_username_length")]))();#ak=(()=>void dt7948.i(this,"minLength"))();static #y=(()=>dt7948.g(this.prototype,"newUsernameEmpty",[(0,l.empty)("newUsername")]))();#aT=(()=>void dt7948.i(this,"newUsernameEmpty"))();static #v=(()=>dt7948.g(this.prototype,"saveDisabled",[(0,l.or)("saving","newUsernameEmpty","taken","unchanged","errorMessage")]))();#aS=(()=>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 #k=(()=>dt7948.n(this.prototype,"toggleEditing",[o.action]))();async onInput(e){if(this.newUsername=e.target.value,this.taken=!1,this.errorMessage=null,(0,c.isEmpty)(this.newUsername)||this.newUsername===this.args.user.username)return;if(this.newUsername.lengthdt7948.n(this.prototype,"onInput",[o.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 #A=(()=>dt7948.n(this.prototype,"changeUsername",[o.action]))();static #M=(()=>(0,r.setComponentTemplate)((0,b.createTemplateFactory)({id:"9zbTTCcI",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-default 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,a.on,y.i18n,p.default,h.default,d.htmlSafe],isStrictMode:!0}),this))()}},23776:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(73326),n=i(75370),r=i(15395),a=i(53329),o=i(9616),l=i(81113),u=i(10458),d=i(70508),c=i(7749),p=i(32045),h=i(1519),m=i(69522);let g=(0,n.default)((0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"kGaEvWjI",block:'[[[1,"\\n "],[10,0],[14,0,"control-group notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[32,0],["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,[32,0],["user.like_notification_frequency.title"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,1,["likeNotificationFrequencies"]],[30,1,["model","user_option","like_notification_frequency"]],[28,[32,2],[[28,[31,0],[[30,1,["model","user_option","like_notification_frequency"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["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,[32,0],["user.desktop_notifications.label"],null]],[13],[1,"\\n "],[8,[32,3],null,null,null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["user.desktop_notifications.each_browser_note"],null]],[13],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-desktop-notifications","div",[28,[32,5],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,6],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-notifications","div",[28,[32,5],null,[["model","save"],[[30,1,["model"]],[30,1,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,5],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,7],null,[["@model","@action","@saved"],[[30,1,["model"]],[30,1,["save"]],[30,1,["saved"]]]],null],[1,"\\n "]],["@controller"],false,["mut","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/notifications.js",scope:()=>[d.i18n,c.default,s.fn,r.default,a.default,u.default,l.default,o.default],isStrictMode:!0}),(0,m.default)(void 0,void 0)))},23879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{getRenderDirector:()=>l});var s=i(66633),n=i(38487),r=i(46492),a=i(21815);let o={ReviewableFlaggedPost:n.default,ReviewableQueuedPost:r.default,ReviewableUser:a.default};function l(e,t,i,n,r){return new(o[e]||s.default)({reviewable:t,currentUser:i,siteSettings:n,site:r})}},23897:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(93317),n=i(73326),r=i(64081),a=i(75093),o=i(7953),l=i(57079),u=i(94832),d=i.n(u),c=i(78771),p=i.n(c),h=i(38425),m=i(53939),g=i(85990),f=i(32045),_=i(1519);class y extends s.default{static #e=(()=>dt7948.g(this.prototype,"tooltip",[a.service]))();#td=(()=>void dt7948.i(this,"tooltip"))();static #i=(()=>dt7948.g(this.prototype,"internalTooltip",[a.service]))();#aC=(()=>void dt7948.i(this,"internalTooltip"))();tooltipInstance=(()=>new g.default((0,r.getOwner)(this),{...this.allowedProperties,autoUpdate:!0,listeners:!0}))();registerTrigger=(()=>(0,o.modifier)(e=>(this.tooltipInstance.trigger=e,this.options.onRegisterApi?.(this.tooltipInstance),()=>{this.tooltipInstance.destroy()})))();get options(){return this.tooltipInstance?.options}get componentArgs(){return{close:this.tooltip.close,data:this.options.data}}get allowedProperties(){let e={};for(let[t,i]of Object.entries(m.TOOLTIP.options))e[t]=this.args[t]??i;return e}static #n=(()=>(0,f.setComponentTemplate)((0,_.createTemplateFactory)({id:"ltPEzvGn",block:'[[[1,"\\n "],[11,1],[16,0,[28,[32,0],["fk-d-tooltip__trigger",[52,[30,0,["tooltipInstance","expanded"]],"-expanded"]],null]],[24,"role","button"],[16,1,[30,0,["tooltipInstance","id"]]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-trigger",""],[16,"aria-expanded",[52,[30,0,["tooltipInstance","expanded"]],"true","false"]],[17,1],[4,[30,0,["registerTrigger"]],[[30,0,["allowedProperties"]]],null],[12],[1,"\\n "],[10,1],[14,0,"fk-d-tooltip__trigger-container"],[12],[1,"\\n"],[41,[48,[30,4]],[[[1," "],[18,4,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,2],[[[1," "],[10,1],[14,0,"fk-d-tooltip__icon"],[12],[1,[28,[32,1],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[41,[30,3],[[[1," "],[10,1],[14,0,"fk-d-tooltip__label"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["tooltipInstance","expanded"]],[[[1," "],[8,[32,2],null,[["@instance","@trapTab","@mainClass","@innerClass","@role","@inline"],[[30,0,["tooltipInstance"]],[28,[32,3],[[30,0,["options","interactive"]],[30,0,["options","trapTab"]]],null],[28,[32,0],["fk-d-tooltip__content",[28,[32,4],[[30,0,["options","identifier"]],"-content"],null]],null],"fk-d-tooltip__inner-content","tooltip",[30,0,["options","inline"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,5]],[[[1," "],[18,5,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[48,[30,6]],[[[1," "],[18,6,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,0,["options","component"]],[[[1," "],[8,[30,0,["options","component"]],null,[["@data","@close"],[[30,0,["options","data"]],[30,0,["tooltipInstance","close"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["options","content"]],[[[1," "],[1,[30,0,["options","content"]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["&attrs","@icon","@label","&trigger","&default","&content"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-tooltip.js",scope:()=>[d(),p(),h.default,l.and,n.concat],isStrictMode:!0}),this))()}},23904:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addExtraUserClasses:()=>s.addExtraUserClasses,classesForUser:()=>s.classesForUser,registerCustomAvatarHelper:()=>s.registerCustomAvatarHelper,renderAvatar:()=>s.renderAvatar});var s=i(41154)},23913:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(99915),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"WEHpblgx",block:'[[[1,"\\n "],[10,0],[14,0,"reviewable"],[12],[1,"\\n "],[10,"ul"],[14,0,"nav nav-pills reviewable-title"],[12],[1,"\\n "],[8,[32,0],null,[["@route","@label"],["review.index","review.view_all"]],null],[1,"\\n "],[8,[32,0],null,[["@route","@label"],["review.topics","review.grouped_by_topic"]],null],[1,"\\n"],[41,[30,1,["currentUser","admin"]],[[[1," "],[8,[32,0],null,[["@route","@label","@icon"],["review.settings","review.settings.title","wrench"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[46,[28,[31,2],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/review.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},23914:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(93317),n=i(86981),r=i(96848),a=i(24813),o=i(75093),l=i(57079),u=i(88436),d=i(53329),c=i(10458),p=i(40069),h=i(77722),m=i(21953),g=i(32045),f=i(1519);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"sidebarState",[o.service]))();#ty=(()=>void dt7948.i(this,"sidebarState"))();triggerRenderedAppEvent(){this.appEvents.trigger("sidebar-hamburger-dropdown:rendered")}static #d=(()=>dt7948.n(this.prototype,"triggerRenderedAppEvent",[n.action]))();focusFirstLink(){(0,a.schedule)("afterRender",()=>{let e=document.querySelector(".sidebar-hamburger-dropdown a");e&&e.focus()})}static #p=(()=>dt7948.n(this.prototype,"focusFirstLink",[n.action]))();get collapsableSections(){return!!this.site.mobileView||!!this.site.narrowDesktopView||this.args.collapsableSections}static #m=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"8ejT+huA",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","@outletArgs"],["before-sidebar-sections",[28,[32,3],null,[["toggleNavigationMenu"],[[30,1]]]]]],null],[1,"\\n"],[41,[28,[32,4],[[30,0,["sidebarState","showMainPanel"]],[30,2]],null],[[[1," "],[8,[32,5],null,[["@currentUser","@collapsableSections","@panel","@hideApiSections","@toggleNavigationMenu"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]],[30,0,["sidebarState","currentPanel"]],[30,2],[30,1]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,6],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,7],null,null,null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@toggleNavigationMenu","@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,d.default,c.default,l.or,m.default,p.default,h.default],isStrictMode:!0}),this))()}},23948:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(87367),n=i(47872);class r extends n.default{static find(e){return(0,s.ajax)(`/post_localizations/${e}`,{type:"GET",data:{post_id:e}})}static createOrUpdate(e,t,i){return(0,s.ajax)("/post_localizations/create_or_update",{type:"POST",data:{post_id:e,locale:t,raw:i}})}static destroy(e,t){return(0,s.ajax)("/post_localizations/destroy",{type:"DELETE",data:{post_id:e,locale:t}})}}},23963:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(86981),r=i(75093),a=i(13355),o=i(77296),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();routeToAdminGuide(){o.default.routeTo(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}static #i=(()=>dt7948.n(this.prototype,"routeToAdminGuide",[n.action]))();static #n=(()=>(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:()=>[a.default],isStrictMode:!0}),this))()}},24132:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(86981),n=i(86490),r=i(53329),a=i(54033),o=i(10458),l=i(14051),u=i(70508),d=i(32045),c=i(1519);class p extends(0,n.buildCategoryPanel)("images"){backgroundImageUrl(e){return e||""}static #e=(()=>dt7948.n(this.prototype,"backgroundImageUrl",[(0,l.default)("category.uploaded_background.url")]))();backgroundDarkImageUrl(e){return e||""}static #i=(()=>dt7948.n(this.prototype,"backgroundDarkImageUrl",[(0,l.default)("category.uploaded_background_dark.url")]))();logoImageUrl(e){return e||""}static #n=(()=>dt7948.n(this.prototype,"logoImageUrl",[(0,l.default)("category.uploaded_logo.url")]))();logoImageDarkUrl(e){return e||""}static #a=(()=>dt7948.n(this.prototype,"logoImageDarkUrl",[(0,l.default)("category.uploaded_logo_dark.url")]))();logoUploadDone(e){this._setFromUpload("category.uploaded_logo",e)}static #l=(()=>dt7948.n(this.prototype,"logoUploadDone",[s.action]))();logoUploadDeleted(){this._deleteUpload("category.uploaded_logo")}static #d=(()=>dt7948.n(this.prototype,"logoUploadDeleted",[s.action]))();logoDarkUploadDone(e){this._setFromUpload("category.uploaded_logo_dark",e)}static #p=(()=>dt7948.n(this.prototype,"logoDarkUploadDone",[s.action]))();logoDarkUploadDeleted(){this._deleteUpload("category.uploaded_logo_dark")}static #m=(()=>dt7948.n(this.prototype,"logoDarkUploadDeleted",[s.action]))();backgroundUploadDone(e){this._setFromUpload("category.uploaded_background",e)}static #f=(()=>dt7948.n(this.prototype,"backgroundUploadDone",[s.action]))();backgroundUploadDeleted(){this._deleteUpload("category.uploaded_background")}static #y=(()=>dt7948.n(this.prototype,"backgroundUploadDeleted",[s.action]))();backgroundDarkUploadDone(e){this._setFromUpload("category.uploaded_background_dark",e)}static #v=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDone",[s.action]))();backgroundDarkUploadDeleted(){this._deleteUpload("category.uploaded_background_dark")}static #k=(()=>dt7948.n(this.prototype,"backgroundDarkUploadDeleted",[s.action]))();_deleteUpload(e){this.set(e,s.default.create({id:null,url:null}))}_setFromUpload(e,t){this.set(e,s.default.create({url:t.url,id:t.id}))}static #S=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"u63kISqm",block:'[[[1,"\\n "],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[32,0],["category.logo"],null]],[13],[1,"\\n "],[8,[32,1],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageUrl"]],[30,0,["logoUploadDone"]],[30,0,["logoUploadDeleted"]],"category_logo","category-logo-uploader"]],null],[1,"\\n "],[10,0],[14,0,"category-logo-description"],[12],[1,"\\n "],[1,[28,[32,0],["category.logo_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[32,0],["category.logo_dark"],null]],[13],[1,"\\n "],[8,[32,1],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageDarkUrl"]],[30,0,["logoDarkUploadDone"]],[30,0,["logoDarkUploadDeleted"]],"category_logo_dark","category-dark-logo-uploader"]],null],[1,"\\n "],[10,0],[14,0,"category-logo-description"],[12],[1,"\\n "],[1,[28,[32,0],["category.logo_description"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n "],[10,"label"],[12],[1,[28,[32,0],["category.background_image"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundImageUrl"]],[30,0,["backgroundUploadDone"]],[30,0,["backgroundUploadDeleted"]],"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,[32,0],["category.background_image_dark"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundDarkImageUrl"]],[30,0,["backgroundDarkUploadDone"]],[30,0,["backgroundDarkUploadDeleted"]],"category_background_dark","category-dark-background-uploader"]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],null,[["@name","@outletArgs"],["category-custom-images",[28,[32,3],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/edit-category-images.js",scope:()=>[u.i18n,a.default,r.default,o.default],isStrictMode:!0}),this))()}},24154:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(13355),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"section-header:SidebarSectionHeader"))},24157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(93317),n=i(7155),r=i(32045),a=i(86981),o=i(13355),l=i(39826),u=i(50817),d=i(63067),c=i(70508),p=i(1519);class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"postNumber",[n.tracked]))();#aA=(()=>void dt7948.i(this,"postNumber"))();static #i=(()=>dt7948.g(this.prototype,"postDate",[n.tracked]))();#aD=(()=>void dt7948.i(this,"postDate"))();get filteredPostsCount(){return this.args.model.topic.postStream.filteredPostsCount}_jumpToIndex(e,t){let i=Math.min(e,Math.max(1,parseInt(t,10)));this.args.model.jumpToIndex(i),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 #n=(()=>dt7948.n(this.prototype,"jump",[a.action]))();static #a=(()=>(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,c.i18n,r.Input,d.default,o.default,u.default],isStrictMode:!0}),this))()}},24302:(e,t,i)=>{"use strict";i.d(t,{BN:()=>S,UE:()=>D,UU:()=>C,cY:()=>T,jD:()=>A,ll:()=>k,mG:()=>M,rD:()=>x});var s=i(57581),n=i(76111),r=i(32495);function a(e){let t=(0,r.L9)(e),i=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=(0,r.sb)(e),o=a?e.offsetWidth:i,l=a?e.offsetHeight:n,u=(0,s.LI)(i)!==o||(0,s.LI)(n)!==l;return u&&(i=o,n=l),{width:i,height:n,$:u}}function o(e){return(0,r.vq)(e)?e:e.contextElement}function l(e){let t=o(e);if(!(0,r.sb)(t))return(0,s.Jx)(1);let i=t.getBoundingClientRect(),{width:n,height:l,$:u}=a(t),d=(u?(0,s.LI)(i.width):i.width)/n,c=(u?(0,s.LI)(i.height):i.height)/l;return d&&Number.isFinite(d)||(d=1),c&&Number.isFinite(c)||(c=1),{x:d,y:c}}let u=(0,s.Jx)(0);function d(e){let t=(0,r.zk)(e);return(0,r.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:u}function c(e,t,i,n){void 0===t&&(t=!1),void 0===i&&(i=!1);let a=e.getBoundingClientRect(),u=o(e),c=(0,s.Jx)(1);t&&(n?(0,r.vq)(n)&&(c=l(n)):c=l(e));let p=!function(e,t,i){return void 0===t&&(t=!1),!!i&&(!t||i===(0,r.zk)(e))&&t}(u,i,n)?(0,s.Jx)(0):d(u),h=(a.left+p.x)/c.x,m=(a.top+p.y)/c.y,g=a.width/c.x,f=a.height/c.y;if(u){let e=(0,r.zk)(u),t=n&&(0,r.vq)(n)?(0,r.zk)(n):n,i=e,s=(0,r._m)(i);for(;s&&n&&t!==i;){let e=l(s),t=s.getBoundingClientRect(),n=(0,r.L9)(s),a=t.left+(s.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(s.clientTop+parseFloat(n.paddingTop))*e.y;h*=e.x,m*=e.y,g*=e.x,f*=e.y,h+=a,m+=o,i=(0,r.zk)(s),s=(0,r._m)(i)}}return(0,s.B1)({width:g,height:f,x:h,y:m})}function p(e,t){let i=(0,r.CP)(e).scrollLeft;return t?t.left+i:c((0,r.ep)(e)).left+i}function h(e,t,i){void 0===i&&(i=!1);let s=e.getBoundingClientRect();return{x:s.left+t.scrollLeft-(i?0:p(e,s)),y:s.top+t.scrollTop}}function m(e,t,i){let n;if("viewport"===t)n=function(e,t){let i=(0,r.zk)(e),s=(0,r.ep)(e),n=i.visualViewport,a=s.clientWidth,o=s.clientHeight,l=0,u=0;if(n){a=n.width,o=n.height;let e=(0,r.Tc)();(!e||e&&"fixed"===t)&&(l=n.offsetLeft,u=n.offsetTop)}return{width:a,height:o,x:l,y:u}}(e,i);else if("document"===t)n=function(e){let t=(0,r.ep)(e),i=(0,r.CP)(e),n=e.ownerDocument.body,a=(0,s.T9)(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=(0,s.T9)(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-i.scrollLeft+p(e),u=-i.scrollTop;return"rtl"===(0,r.L9)(n).direction&&(l+=(0,s.T9)(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:u}}((0,r.ep)(e));else if((0,r.vq)(t))n=function(e,t){let i=c(e,!0,"fixed"===t),n=i.top+e.clientTop,a=i.left+e.clientLeft,o=(0,r.sb)(e)?l(e):(0,s.Jx)(1),u=e.clientWidth*o.x,d=e.clientHeight*o.y;return{width:u,height:d,x:a*o.x,y:n*o.y}}(t,i);else{let i=d(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return(0,s.B1)(n)}function g(e){return"static"===(0,r.L9)(e).position}function f(e,t){if(!(0,r.sb)(e)||"fixed"===(0,r.L9)(e).position)return null;if(t)return t(e);let i=e.offsetParent;return(0,r.ep)(e)===i&&(i=i.ownerDocument.body),i}function _(e,t){let i=(0,r.zk)(e);if((0,r.Tf)(e))return i;if(!(0,r.sb)(e)){let t=(0,r.$4)(e);for(;t&&!(0,r.eu)(t);){if((0,r.vq)(t)&&!g(t))return t;t=(0,r.$4)(t)}return i}let s=f(e,t);for(;s&&(0,r.Lv)(s)&&g(s);)s=f(s,t);return s&&(0,r.eu)(s)&&g(s)&&!(0,r.sQ)(s)?i:s||(0,r.gJ)(e)||i}let y=async function(e){let t=this.getOffsetParent||_,i=this.getDimensions,n=await i(e.floating);return{reference:function(e,t,i){let n=(0,r.sb)(t),a=(0,r.ep)(t),o="fixed"===i,l=c(e,!0,o,t),u={scrollLeft:0,scrollTop:0},d=(0,s.Jx)(0);function m(){d.x=p(a)}if(n||!n&&!o)if(("body"!==(0,r.mq)(t)||(0,r.ZU)(a))&&(u=(0,r.CP)(t)),n){let e=c(t,!0,o,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else a&&m();o&&!n&&a&&m();let g=!a||n||o?(0,s.Jx)(0):h(a,u);return{x:l.left+u.scrollLeft-d.x-g.x,y:l.top+u.scrollTop-d.y-g.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},b={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:n,strategy:a}=e,o="fixed"===a,u=(0,r.ep)(n),d=!!t&&(0,r.Tf)(t.floating);if(n===u||d&&o)return i;let p={scrollLeft:0,scrollTop:0},m=(0,s.Jx)(1),g=(0,s.Jx)(0),f=(0,r.sb)(n);if((f||!f&&!o)&&(("body"!==(0,r.mq)(n)||(0,r.ZU)(u))&&(p=(0,r.CP)(n)),(0,r.sb)(n))){let e=c(n);m=l(n),g.x=e.x+n.clientLeft,g.y=e.y+n.clientTop}let _=!u||f||o?(0,s.Jx)(0):h(u,p,!0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-p.scrollLeft*m.x+g.x+_.x,y:i.y*m.y-p.scrollTop*m.y+g.y+_.y}},getDocumentElement:r.ep,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:n,strategy:a}=e,o=[..."clippingAncestors"===i?(0,r.Tf)(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let s=(0,r.v9)(e,[],!1).filter(e=>(0,r.vq)(e)&&"body"!==(0,r.mq)(e)),n=null,a="fixed"===(0,r.L9)(e).position,o=a?(0,r.$4)(e):e;for(;(0,r.vq)(o)&&!(0,r.eu)(o);){let t=(0,r.L9)(o),i=(0,r.sQ)(o);i||"fixed"!==t.position||(n=null),(a?!i&&!n:!i&&"static"===t.position&&!!n&&["absolute","fixed"].includes(n.position)||(0,r.ZU)(o)&&!i&&function e(t,i){let s=(0,r.$4)(t);return!(s===i||!(0,r.vq)(s)||(0,r.eu)(s))&&("fixed"===(0,r.L9)(s).position||e(s,i))}(e,o))?s=s.filter(e=>e!==o):n=t,o=(0,r.$4)(o)}return t.set(e,s),s}(t,this._c):[].concat(i),n],l=o[0],u=o.reduce((e,i)=>{let n=m(t,i,a);return e.top=(0,s.T9)(n.top,e.top),e.right=(0,s.jk)(n.right,e.right),e.bottom=(0,s.jk)(n.bottom,e.bottom),e.left=(0,s.T9)(n.left,e.left),e},m(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:_,getElementRects:y,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:i}=a(e);return{width:t,height:i}},getScale:l,isElement:r.vq,isRTL:function(e){return"rtl"===(0,r.L9)(e).direction}};function w(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k(e,t,i,n){let a;void 0===n&&(n={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:p="function"==typeof IntersectionObserver,animationFrame:h=!1}=n,m=o(e),g=l||u?[...m?(0,r.v9)(m):[],...(0,r.v9)(t)]:[];g.forEach(e=>{l&&e.addEventListener("scroll",i,{passive:!0}),u&&e.addEventListener("resize",i)});let f=m&&p?function(e,t){let i,n=null,a=(0,r.ep)(e);function o(){var e;clearTimeout(i),null==(e=n)||e.disconnect(),n=null}return!function r(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let d=e.getBoundingClientRect(),{left:c,top:p,width:h,height:m}=d;if(l||t(),!h||!m)return;let g=(0,s.RI)(p),f=(0,s.RI)(a.clientWidth-(c+h)),_={rootMargin:-g+"px "+-f+"px "+-(0,s.RI)(a.clientHeight-(p+m))+"px "+-(0,s.RI)(c)+"px",threshold:(0,s.T9)(0,(0,s.jk)(1,u))||1},y=!0;function b(t){let s=t[0].intersectionRatio;if(s!==u){if(!y)return r();s?r(!1,s):i=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==s||w(d,e.getBoundingClientRect())||r(),y=!1}try{n=new IntersectionObserver(b,{..._,root:a.ownerDocument})}catch(e){n=new IntersectionObserver(b,_)}n.observe(e)}(!0),o}(m,i):null,_=-1,y=null;d&&(y=new ResizeObserver(e=>{let[s]=e;s&&s.target===m&&y&&(y.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),i()}),m&&!h&&y.observe(m),y.observe(t));let b=h?c(e):null;return h&&function t(){let s=c(e);b&&!w(b,s)&&i(),b=s,a=requestAnimationFrame(t)}(),i(),()=>{var e;g.forEach(e=>{l&&e.removeEventListener("scroll",i),u&&e.removeEventListener("resize",i)}),null==f||f(),null==(e=y)||e.disconnect(),y=null,h&&cancelAnimationFrame(a)}}let T=n.cY,S=n.BN,C=n.UU,A=n.jD,D=n.UE,M=n.mG,x=(e,t,i)=>{let s=new Map,r={platform:b,...i},a={...r.platform,_c:s};return(0,n.rD)(e,t,{...r,platform:a})}},24308:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{static parse(e){return new s().parse(e)}parse(e){let t={};return(e?.split("|")??[]).forEach(e=>{let[i,s]=e.split(":").filter(Boolean);this[i+"Rule"]?t[i]=this[i+"Rule"](s):t[i]={}}),t}dateBeforeOrEqualRule(e){return{date:new Date(e)}}dateAfterOrEqualRule(e){return{date:new Date(e)}}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,i]=e.split(",").map(Number);return{min:t,max:i}}lengthRule(e){if(!e)throw Error("`length` rule expects min/max, eg: length:1,10");let[t,i]=e.split(",").map(Number);return{min:t,max:i}}}},24383:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i,s){var n={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?n[i][0]:n[i][1]}return e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},24448:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(85024),n=i(78771),r=i.n(n),a=i(27912),o=i(14013),l=i.n(o),u=i(70508),d=i(76684),c=i(32045),p=i(1519);let h=dt7948.c(class extends d.default{static #e=(()=>dt7948.g(this.prototype,"label",[(0,a.fmt)("value","user.user_notifications.filters.%@")]))();#aM=(()=>void dt7948.i(this,"label"))();caretIcon(e){return e?"caret-up":"caret-down"}static #i=(()=>dt7948.n(this.prototype,"caretIcon",[l()("selectKit.isExpanded")]))();static #n=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"Flo76t7P",block:'[[[1,"\\n "],[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n "],[10,1],[14,0,"filter-text"],[12],[1,"\\n "],[1,[28,[32,0],["user.user_notifications.filters.filter_by"],null]],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,0,"header-text"],[12],[1,"\\n "],[1,[28,[32,0],[[30,0,["label"]]],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/notifications-filter/notifications-filter-header.js",scope:()=>[u.i18n,r()],isStrictMode:!0}),this))()},[(0,s.classNames)("notifications-filter-header","btn-flat")])},24474:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(93317),n=i(39631),r=i(32045),a=i(1519);class o extends s.default{get users(){return this.args.users||[]}static #e=(()=>(0,r.setComponentTemplate)((0,a.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:()=>[n.default],isStrictMode:!0}),this))()}},24561:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(7155),n=i(50890),r=i(86981),a=i(75093),o=i(87367),l=i(16356),u=i(70508);class d extends n.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #a=(()=>dt7948.g(this.prototype,"loading",[s.tracked]))();#sA=(()=>void dt7948.i(this,"loading"))();async confirm(){this.loading=!0;try{await (0,o.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(`/u/${this.currentUser.username_lower}/preferences/account`)}static #l=(()=>dt7948.n(this.prototype,"confirm",[r.action]))()}},24564:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})})},24606:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(46447),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();model(){return this.modelFor("user")}titleToken(){let e=this.controllerFor(this.router.currentRouteName),t=e?.subpageTitle;return t?`${t} - ${(0,r.i18n)("user.preferences.title")}`:(0,r.i18n)("user.preferences.title")}}},24717:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})})},24753:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(87759)},24785:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(15096);class n extends s.default{pageId="guidelines"}},24807:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(13355),r=i(70508),a=i(32045),o=i(1519);class l extends s.default{static shouldRender(e){return e.state.showReadIndicator&&e.post.readers_count>0}static #e=(()=>(0,a.setComponentTemplate)((0,o.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:()=>[n.default,r.i18n],isStrictMode:!0}),this))()}},24813:(e,t,i)=>{"use strict";i.r(t),i.d(t,{_backburner:()=>d,_cancelTimers:()=>y,_getCurrentRunLoop:()=>o,_hasScheduledTimers:()=>_,_queues:()=>u,_rsvpErrorQueue:()=>l,begin:()=>m,bind:()=>h,cancel:()=>S,debounce:()=>C,end:()=>g,join:()=>p,later:()=>b,next:()=>T,once:()=>w,run:()=>c,schedule:()=>f,scheduleOnce:()=>k,throttle:()=>A}),i(60569);var s=i(54134);i(57330),i(71729),i(89352),i(77188),i(77061);var n=i(34100);i(28543);var r=i(75316);let a=null;function o(){return a}let l=`${Math.random()}${Date.now()}`.replace(".",""),u=["actions","routerTransitions","render","afterRender","destroy",l],d=new r.default(u,{defaultQueue:"actions",onBegin:function(e){a=e},onEnd:function(e,t){a=t,(0,n.I)(f)},onErrorTarget:s.onErrorTarget,onErrorMethod:"onerror",flush:function(e,t){("render"===e||e===l)&&(0,n.I)(f),t()}});function c(){return d.run(...arguments)}function p(e,t){for(var i=arguments.length,s=Array(i>2?i-2:0),n=2;n{"use strict";i.r(t),i.d(t,{alertChannel:()=>A,canUserReceiveNotifications:()=>S,clearDesktopNotificationHandlers:()=>w,confirmNotification:()=>T,context:()=>f,disable:()=>M,init:()=>k,onNotification:()=>C,registerDesktopNotificationHandler:()=>b,unsubscribe:()=>D});var s=i(31075),n=i(74130),r=i(86723),a=i(77296),o=i(35697),l=i(18693),u=i(25217),d=i(70508);let c=!1,p=!1,h=null,m="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",g="focus-tracker",f="discourse_desktop_notifications_",_=new n.default(f),y=[];function b(e){y.push(e)}function w(){y=[]}function k(e){if(p=!1,m=e.clientId,u.default.current()){try{_.getItem(g)}catch{console.info("Discourse desktop notifications are disabled - localStorage denied.");return}if(!("Notification"in window))return void console.info("Discourse desktop notifications are disabled - not supported by browser");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;c=!1}),window.addEventListener("focus",function(){c||(c=!0,_.setItem(g,m))}),document&&void 0!==document.hidden&&document.hidden?c=!1:(c=!0,_.setItem(g,m))}()}catch(e){console.error(e)}}}function T(e){let t=new Notification((0,d.i18n)("notifications.popup.confirm_title",{site_title:e.title}),{body:(0,d.i18n)("notifications.popup.confirm_body"),icon:e.site_logo_small_url||e.site_logo_url,tag:"confirm-subscription"}),i=()=>t.close();t.addEventListener("click",i),(0,r.default)(()=>{t.close(),t.removeEventListener("click",i)},1e4)}function S(e){return!(!c||e.isInDoNotDisturb())&&"disabled"!==_.getItem("notifications-disabled")}async function C(e,t,i,n){if(S(i)&&p){let i=e.translated_title||(0,d.i18n)(function(e){return"notifications.popup."+l.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}),r=t.site_logo_small_url||t.site_logo_url,u="discourse-notification-"+t.title+"-"+(e.topic_id||0);await function(){return!0===h?s.Promise.resolve():!1===h?s.Promise.reject():new s.Promise(function(e,t){Notification.requestPermission(function(i){"granted"===i?e():t()})})}();let c=new Notification(i,{body:e.excerpt,icon:r,tag:u});c.addEventListener("click",()=>{a.default.routeTo(e.post_url),n.trigger("desktop-notification-opened",{url:e.post_url}),c.close()},{once:!0})}y.forEach(s=>s(e,t,i))}function A(e){return`/notification-alert/${e.get("id")}`}function D(e,t){e.unsubscribe(A(t))}function M(){_.setItem("notifications-disabled","disabled")}},24873:(e,t,i)=>{"use strict";function s(e){let t=0;for(let i=0;is})},24973:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(61342);i(40413),i(78805),i(25601),i(57460);var n=i(82540);i(27926),i(82069),i(32693);class r extends s.FrameworkObject{}r.PrototypeMixin.reopen(n.default)},24986:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(73326),r=i(75093),a=i(9032),o=i(53329),l=i(38069),u=i(23904),d=i(77982),c=i(70508),p=i(44991),h=i(83305),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get avatar(){let e=(0,u.addExtraUserClasses)(this.currentUser,{});return(0,a.htmlSafe)((0,u.renderAvatar)(this.currentUser,{imageSize:this.avatarSize,hideTitle:!0,template:this.currentUser.avatar_template,username:this.currentUser.username,name:this.siteSettings.enable_names&&this.currentUser.name,...e}))}get avatarSize(){return(0,d.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 #n=(()=>(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:()=>[o.default,p.default,c.i18n,h.default,l.default,n.hash],isStrictMode:!0}),this))()}},24996:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(75370),n=i(57079),r=i(74105),a=i(68023),o=i(53329),l=i(1158),u=i(38069),d=i(10458),c=i(70508),p=i(32045),h=i(1519),m=i(69522);let g=(0,s.default)((0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"O+i08O9s",block:'[[[1,"\\n "],[1,[28,[32,0],["user-activity-page"],null]],[1,"\\n "],[8,[32,1],null,[["@name"],["user-activity-navigation-wrapper"]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[32,2],null,[["@ariaLabel"],["User secondary - activity"]],[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"user-nav__activity-all"]],[["@route","@ariaCurrentContext"],["userActivity.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["bars-staggered"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],[[24,0,"user-nav__activity-topics"]],[["@route","@ariaCurrentContext"],["userActivity.topics","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["list-ul"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.4"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,3],[[24,0,"user-nav__activity-replies"]],[["@route","@ariaCurrentContext"],["userActivity.replies","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,1,["user","showRead"]],[[[1," "],[8,[32,3],[[24,0,"user-nav__activity-read"],[16,"title",[28,[32,5],["user.read_help"],null]]],[["@route","@ariaCurrentContext"],["userActivity.read","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["clock-rotate-left"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user.read"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["user","showDrafts"]],[[[1," "],[8,[32,3],[[24,0,"user-nav__activity-drafts"]],[["@route","@ariaCurrentContext"],["userActivity.drafts","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[30,1,["draftLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,6],[[30,1,["model","pending_posts_count"]],0],null],[[[1," "],[8,[32,3],[[24,0,"user-nav__activity-pending"]],[["@route","@ariaCurrentContext"],["userActivity.pending","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["clock"],null]],[1,"\\n "],[10,1],[12],[1,[30,1,["pendingLabel"]]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,3],[[24,0,"user-nav__activity-likes"]],[["@route","@ariaCurrentContext"],["userActivity.likesGiven","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.1"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,1,["user","showBookmarks"]],[[[1," "],[8,[32,3],[[24,0,"user-nav__activity-bookmarks"]],[["@route","@ariaCurrentContext"],["userActivity.bookmarks","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["bookmark"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.3"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,1],null,[["@name","@connectorTagName","@outletArgs"],["user-activity-bottom","li",[28,[32,7],null,[["model"],[[30,1,["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,[31,2],null,null],null,null,null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/activity.js",scope:()=>[l.default,o.default,a.default,r.default,u.default,c.i18n,n.gt,d.default],isStrictMode:!0}),(0,m.default)(void 0,void 0)))},25021:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>j});var s=i(32045),n=i(96791),r=i(86981),a=i(93239),o=i(75093),l=i(85024),u=i(31075),d=i(57079),c=i(49382),p=i(76947),h=i(13355),m=i(86136),g=i(67784),f=i(25918),_=i(53329),y=i(76693),b=i(2080),w=i(41154),k=i(14104),T=i(63538),S=i(38069),C=i(43798),A=i(44337),D=i(19006),M=i(10458),x=i(82225),E=i(87367),L=i(64649),P=i(70787),F=i(70508),I=i(66468),N=i(1519);let j=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#h=(()=>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 u.Promise((t,i)=>{let s=()=>{e.destroy().then(()=>{this.appEvents.trigger("bookmarks:changed",null,e.attachedTo()),this._removeBookmarkFromList(e),t(!0)}).catch(e=>{i(e)})};if(!e.reminder_at)return s();this.dialog.deleteConfirm({message:(0,F.i18n)("bookmarks.confirm_delete"),didConfirm:()=>s(),didCancel:()=>t(!1)})})}static #n=(()=>dt7948.n(this.prototype,"removeBookmark",[r.action]))();screenExcerptForExternalLink(e){e?.target?.tagName==="A"&&(0,P.shouldOpenInNewTab)(e.target.href)&&(0,P.openLinkInNewTab)(e,e.target)}static #a=(()=>dt7948.n(this.prototype,"screenExcerptForExternalLink",[r.action]))();editBookmark(e){this.modal.show(f.default,{model:{bookmark:new L.BookmarkFormData(e),afterSave:t=>{this.appEvents.trigger("bookmarks:changed",t,e.attachedTo()),this.reload()},afterDelete:()=>{this.reload()}}})}static #l=(()=>dt7948.n(this.prototype,"editBookmark",[r.action]))();clearBookmarkReminder(e){return(0,E.ajax)(`/bookmarks/${e.id}`,{type:"PUT",data:{reminder_at:null}}).then(()=>{e.set("reminder_at",null)})}static #d=(()=>dt7948.n(this.prototype,"clearBookmarkReminder",[r.action]))();togglePinBookmark(e){e.togglePin().then(this.reload)}static #p=(()=>dt7948.n(this.prototype,"togglePinBookmark",[r.action]))();toggleBulkSelect(){this.bulkSelectHelper?.toggleBulkSelect(),this.rerender()}static #m=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[r.action]))();selectAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach(e=>e.click())}static #f=(()=>dt7948.n(this.prototype,"selectAll",[r.action]))();clearAll(){this.bulkSelectHelper.autoAddBookmarksToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach(e=>e.click())}static #y=(()=>dt7948.n(this.prototype,"clearAll",[r.action]))();get bulkSelectEnabled(){return this.bulkSelectHelper?.bulkSelectEnabled}static #v=(()=>dt7948.n(this.prototype,"bulkSelectEnabled",[a.dependentKeyCompat]))();_removeBookmarkFromList(e){this.content.removeObject(e)}_toggleSelection(e,t,i){let s=this.selected;if(e.checked){if(s.addObject(t),i){let t=Array.from(document.querySelectorAll("input.bulk-select")),i=t.indexOf(e),s=t.findIndex(e=>e.id===this.lastChecked.id),n=Math.min(i,s),r=Math.max(i,s);t.slice(n,r).filter(e=>!0!==e.checked).forEach(e=>{e.click()})}this.set("lastChecked",e)}else s.removeObject(t),this.set("lastChecked",null)}click(e){((t,i)=>{let s=e.target.closest(t);s&&i(s)})("input.bulk-select",()=>{let t=e.target,i=t.dataset.id,s=this.content.find(e=>e.id.toString()===i);this._toggleSelection(t,s,this.lastChecked&&e.shiftKey)})}static #k=(()=>(0,s.setComponentTemplate)((0,N.createTemplateFactory)({id:"1QZzKnba",block:'[[[1,"\\n "],[8,[32,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[32,1],null,[["@action"],[[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,[32,2],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,[32,3],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,[32,4],["bookmarks.bulk.selected_count"],[["count"],[[30,0,["selectedCount"]]]]]],[1,"\\n "],[13],[1,"\\n "],[8,[32,5],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"]],[]],null],[8,[32,6],[[24,0,"btn btn-default bulk-select-all"]],[["@action","@label"],[[30,0,["selectAll"]],"bookmarks.bulk.select_all"]],null],[1,"\\n "],[8,[32,6],[[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,[32,3],null,[["@action","@class","@icon","@title"],[[30,0,["toggleBulkSelect"]],"bulk-select","list-check","bookmarks.bulk.toggle"]],null],[1,"\\n "],[1,[28,[32,4],["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,[32,4],["post.bookmarks.updated"],null]],[13],[1,"\\n "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[32,4],["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,[31,2],[[28,[31,2],[[30,0,["content"]]],null]],null],null,[[[1," "],[10,"tr"],[15,0,[28,[32,7],["topic-list-item bookmark-list-item",[52,[30,1,["excerpt"]],"excerpt-expanded",""],[52,[30,1,["hasMetadata"]],"has-metadata",""]],null]],[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,[32,2],null,[["@name","@outletArgs"],["bookmark-list-before-link",[28,[32,8],null,[["bookmark"],[[30,1]]]]]],null],[1,"\\n\\n "],[10,1],[14,0,"link-top-line"],[12],[1,"\\n"],[41,[30,1,["hasMetadata"]],[[[1," "],[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,[32,9],["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,[32,9],["circle-info"],null]],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"bookmark-status-with-link"],[12],[1,"\\n"],[41,[30,1,["pinned"]],[[[1," "],[1,[28,[32,9],["thumbtack"],[["class"],["bookmark-pinned"]]]],[1,"\\n"]],[]],null],[41,[30,1,["bookmarkableTopicAlike"]],[[[1," "],[8,[32,10],null,[["@topic"],[[30,1,["topicStatus"]]]],null],[1,"\\n "],[1,[28,[32,11],[[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"],[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,[32,12],[[30,1,["category"]]],null]],[1,"\\n "],[1,[28,[32,13],[[30,1]],[["mode","tagsForUser"],["list",[30,0,["tagsForUser"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,14],[[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,[32,15],[[30,1,["bookmarkableUser"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","large"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["excerpt"]],[[[1," "],[11,2],[24,0,"post-excerpt"],[4,[32,16],["click",[30,0,["screenExcerptForExternalLink"]]],null],[12],[1,[28,[32,17],[[30,1,["excerpt"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[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,[32,15],[[30,1,["user"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","large"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,"td"],[14,0,"post-metadata topic-list-data updated-at"],[12],[1,[28,[32,18],[[30,1,["updated_at"]]],[["format"],["tiny"]]]],[13],[1,"\\n "],[8,[32,19],[[24,0,"post-metadata"]],[["@topic"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n "],[8,[32,20],null,[["@bookmark","@removeBookmark","@editBookmark","@clearBookmarkReminder","@togglePinBookmark"],[[30,1],[30,0,["removeBookmark"]],[30,0,["editBookmark"]],[30,0,["clearBookmarkReminder"]],[30,0,["togglePinBookmark"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,0],null,[["@condition"],[[30,0,["loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "]],["bookmark"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bookmark-list.js",scope:()=>[p.default,g.default,_.default,m.default,F.i18n,I.default,h.default,T.default,M.default,S.default,b.default,x.default,k.default,C.default,d.and,w.default,n.on,D.default,A.default,y.default,c.default],isStrictMode:!0}),this))()},[(0,l.classNames)("bookmark-list-wrapper")])},25171:(e,t,i)=>{"use strict";i.r(t),i.d(t,{assert:()=>p,assertGlobalContextWasSet:()=>m,default:()=>_,deprecate:()=>h,getPath:()=>u,getProp:()=>o,scheduleDestroy:()=>s,scheduleDestroyed:()=>n,scheduleRevalidate:()=>f,setPath:()=>d,setProp:()=>l,testOverrideGlobalContext:()=>g,toBool:()=>a,toIterator:()=>r,warnIfStyleNotTrusted:()=>c});let s,n,r,a,o,l,u,d,c,p,h,m,g,f=()=>{};function _(e){f=e.scheduleRevalidate,s=e.scheduleDestroy,n=e.scheduleDestroyed,r=e.toIterator,a=e.toBool,o=e.getProp,l=e.setProp,u=e.getPath,d=e.setPath,c=e.warnIfStyleNotTrusted,p=e.assert,h=e.deprecate}},25193:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CheckArray:()=>A,CheckBlockSymbolTable:()=>Y,CheckBoolean:()=>F,CheckDict:()=>D,CheckDocumentFragment:()=>z,CheckElement:()=>q,CheckFunction:()=>L,CheckHandle:()=>I,CheckInstanceof:()=>k,CheckInterface:()=>C,CheckMaybe:()=>S,CheckNode:()=>$,CheckNumber:()=>P,CheckObject:()=>U,CheckOption:()=>T,CheckOr:()=>B,CheckPrimitive:()=>E,CheckProgramSymbolTable:()=>H,CheckSafeString:()=>R,CheckString:()=>N,CheckUndefined:()=>j,CheckUnknown:()=>O,META_KIND:()=>f,OPERAND_TYPES:()=>l,buildEnum:()=>m,buildMetas:()=>y,buildSingleMeta:()=>_,check:()=>M,debug:()=>o,debugSlice:()=>r,logOpcode:()=>a,normalize:()=>u,normalizeAll:()=>p,normalizeParsed:()=>h,opcodeMetadata:()=>n,recordStackSize:()=>x,strip:()=>g,wrap:()=>w});var s=i(73523);function n(e,t){return null}function r(e,t,i){}function a(e,t){}function o(e,t,i){}Array(s.Op.Size).fill(null),Array(s.Op.Size).fill(null);let l=["u32","i32","owner","handle","str","option-str","array","str-array","bool","primitive","register","unknown","symbol-table","scope"];function u(e,t){let i;if(void 0===t.format)throw Error(`Missing format in ${JSON.stringify(t)}`);i=Array.isArray(t.format)?t.format[0]:t.format;let s=Array.isArray(t.format)?function(e){if(!Array.isArray(e))throw Error(`Expected operands array, got ${JSON.stringify(e)}`);return e.map(c)}(t.format.slice(1)):[];return{name:i,mnemonic:e,before:null,stackChange:function(e){if(void 0===e)return 0;let t=e[0],i=e[1];return d(t)||d(i)?null:i.length-t.length}(t["operand-stack"]),ops:s,operands:s.length,check:!0!==t.skip}}function d(e){if(!Array.isArray(e))throw Error(`Unexpected stack entry: ${JSON.stringify(e)}`);return e.some(e=>"..."===e.slice(-3))}function c(e){let[t,i]=e.split(":");if(-1!==l.indexOf(i))return{name:t,type:i};throw Error(`Expected operand, found ${JSON.stringify(e)}`)}function p(e){return{machine:h(e.machine),syscall:h(e.syscall)}}function h(e){let t=Object.create(null);for(let[i,s]of Object.entries(e))t[i]=u(i,s);return t}function m(e,t,i,s){let n,r=[`export enum ${e} {`];return Object.values(t).forEach((e,t)=>{r.push(` ${e.name} = ${i+t},`),n=t}),r.push(` Size = ${n+i+1},`),r.push("}"),{enumString:r.join(` `),predicate:s?g` export function is${e}(value: number): value is ${e} { return value >= ${i} && value <= ${s}; } `:g` export function is${e}(value: number): value is ${e} { return value >= ${i}; } `}}function g(e){let t="";for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;ne(t,i)).join(", ")}]`;let s=["{"];for(let n of Object.keys(t))s.push(`${" ".repeat(i+2)}${n}: ${e(t[n],i+2)},`);return s.push(`${" ".repeat(i)}}`),s.join(` `)}(t[i],0)};`}function y(e,t){let i=[];for(let s of Object.keys(t))i.push(_(e,t,s));return i.join(` `)}class b{validate(e){return!0}expected(){return""}}function w(e){return new b}function k(e){return new b}function T(e){return new b}function S(e){return new b}function C(e){return new b}function A(e){return new b}function D(e){return new b}function M(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2],e}function x(e){}let E=new b,L=new b,P=new b,F=new b,I=new b,N=new b,j=new b,O=new b,R=new b,U=new b;function B(e,t){return new b}let Y=new b,H=new b,q=new b,z=new b,$=new b},25217:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MAX_SECOND_FACTOR_NAME_LENGTH:()=>W,SECOND_FACTOR_METHODS:()=>V,addSaveableUserField:()=>X,addSaveableUserOptionField:()=>ee,default:()=>es,extendTextSizeCookie:()=>G});var s=i(7155),n=i(80115),r=i(86981),a=i(93239),o=i(91558),l=i(61312),u=i(64081),d=i(24813),c=i(75093),p=i(94160),h=i(9032),m=i(15383),g=i(31075),f=i(87367),_=i(714),y=i(96527),b=i(14051),w=i(63272),k=i(97908),T=i(91035),S=i(71455),C=i(11837),A=i(86723),D=i(10216),M=i(34472),x=i(88640),E=i(67698),L=i(77296),P=i(35697),F=i(18323),I=i(39902),N=i(23062),j=i(49375),O=i(47872),R=i(18693),U=i(88192),B=i(96247),Y=i(36491),H=i(28819),q=i(51972),z=i(36746),$=i(70508);let V={TOTP:1,BACKUP_CODE:2,SECURITY_KEY:3},W=300,K="text_size";function G(){let e=(0,y.default)(K);e&&(0,y.default)(K,e,{path:"/",expires:365})}let J=e=>-100>moment().diff(e,"years"),Q=["bio_raw","website","location","name","title","locale","custom_fields","user_fields","muted_usernames","ignored_usernames","allowed_pm_usernames","profile_background_upload_url","card_background_upload_url","muted_tags","tracked_tags","watched_tags","watching_first_post_tags","date_of_birth","primary_group_id","flair_group_id","user_notification_schedule","sidebar_category_ids","sidebar_tag_names","status"];function X(e){Q.push(e)}let Z=["mailing_list_mode","mailing_list_mode_frequency","external_links_in_new_tab","email_digests","email_in_reply_to","email_messages_level","email_level","email_previous_replies","color_scheme_id","dark_scheme_id","dynamic_favicon","enable_quoting","enable_smart_lists","enable_defer","automatically_unpin_topics","digest_after_minutes","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","include_tl0_in_digests","theme_ids","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile","hide_presence","text_size","title_count_mode","timezone","skip_new_user_tips","seen_popups","default_calendar","bookmark_auto_delete_preference","sidebar_link_to_filtered_list","sidebar_show_count_of_new_items","watched_precedence_over_muted","topics_unread_when_closed"];function ee(e){Z.push(e)}function et(e){return(0,r.computed)(`user_option.${e}`,{get(e){return(0,w.default)(`Getting ${e} property of user object is deprecated. Use user_option object instead`,{id:"discourse.user.userOptions",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.get(`user_option.${e}`)},set(e,t){return(0,w.default)(`Setting ${e} property of user object is deprecated. Use user_option object instead`,{id:"discourse.user.userOptions",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.user_option||this.set("user_option",{}),this.set(`user_option.${e}`,t)}})}let ei=dt7948.c(class e extends O.default.extend(l.default){static createCurrent(){let e=M.default.get("currentUser");if(e){if(e.isCurrent=!0,e.primary_group_id){let t=e.groups.find(t=>t.id===e.primary_group_id);t&&(e.primary_group_name=t.name)}e.user_option.timezone||(e.user_option.timezone=moment.tz.guess(),this._saveTimezone(e));let t=(0,S.getOwnerWithFallback)(this).lookup("service:store").createRecord("user",e);return t.statusManager.trackStatus(),t}return null}static #e=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"userTips",[c.service]))();#ax=(()=>void dt7948.i(this,"userTips"))();static #n=(()=>dt7948.g(this.prototype,"do_not_disturb_until",[s.tracked]))();#aE=(()=>void dt7948.i(this,"do_not_disturb_until"))();static #a=(()=>dt7948.g(this.prototype,"status",[s.tracked]))();#aL=(()=>void dt7948.i(this,"status"))();static #l=(()=>dt7948.g(this.prototype,"dismissed_banner_key",[s.tracked]))();#aP=(()=>void dt7948.i(this,"dismissed_banner_key"))();static #d=(()=>dt7948.g(this.prototype,"mailing_list_mode",[et("mailing_list_mode")]))();#aF=(()=>void dt7948.i(this,"mailing_list_mode"))();static #p=(()=>dt7948.g(this.prototype,"external_links_in_new_tab",[et("external_links_in_new_tab")]))();#aI=(()=>void dt7948.i(this,"external_links_in_new_tab"))();static #m=(()=>dt7948.g(this.prototype,"enable_quoting",[et("enable_quoting")]))();#aN=(()=>void dt7948.i(this,"enable_quoting"))();static #f=(()=>dt7948.g(this.prototype,"enable_smart_lists",[et("enable_smart_lists")]))();#aj=(()=>void dt7948.i(this,"enable_smart_lists"))();static #y=(()=>dt7948.g(this.prototype,"dynamic_favicon",[et("dynamic_favicon")]))();#aO=(()=>void dt7948.i(this,"dynamic_favicon"))();static #v=(()=>dt7948.g(this.prototype,"automatically_unpin_topics",[et("automatically_unpin_topics")]))();#aR=(()=>void dt7948.i(this,"automatically_unpin_topics"))();static #k=(()=>dt7948.g(this.prototype,"likes_notifications_disabled",[et("likes_notifications_disabled")]))();#aU=(()=>void dt7948.i(this,"likes_notifications_disabled"))();static #S=(()=>dt7948.g(this.prototype,"hide_profile",[et("hide_profile")]))();#aB=(()=>void dt7948.i(this,"hide_profile"))();static #A=(()=>dt7948.g(this.prototype,"hide_presence",[et("hide_presence")]))();#aY=(()=>void dt7948.i(this,"hide_presence"))();static #M=(()=>dt7948.g(this.prototype,"title_count_mode",[et("title_count_mode")]))();#aH=(()=>void dt7948.i(this,"title_count_mode"))();static #E=(()=>dt7948.g(this.prototype,"enable_defer",[et("enable_defer")]))();#aq=(()=>void dt7948.i(this,"enable_defer"))();static #P=(()=>dt7948.g(this.prototype,"timezone",[et("timezone")]))();#az=(()=>void dt7948.i(this,"timezone"))();static #I=(()=>dt7948.g(this.prototype,"skip_new_user_tips",[et("skip_new_user_tips")]))();#a$=(()=>void dt7948.i(this,"skip_new_user_tips"))();static #j=(()=>dt7948.g(this.prototype,"default_calendar",[et("default_calendar")]))();#aV=(()=>void dt7948.i(this,"default_calendar"))();static #R=(()=>dt7948.g(this.prototype,"bookmark_auto_delete_preference",[et("bookmark_auto_delete_preference")]))();#aW=(()=>void dt7948.i(this,"bookmark_auto_delete_preference"))();static #B=(()=>dt7948.g(this.prototype,"seen_popups",[et("seen_popups")]))();#aK=(()=>void dt7948.i(this,"seen_popups"))();static #H=(()=>dt7948.g(this.prototype,"should_be_redirected_to_top",[et("should_be_redirected_to_top")]))();#aG=(()=>void dt7948.i(this,"should_be_redirected_to_top"))();static #z=(()=>dt7948.g(this.prototype,"redirected_to_top",[et("redirected_to_top")]))();#aJ=(()=>void dt7948.i(this,"redirected_to_top"))();static #$=(()=>dt7948.g(this.prototype,"treat_as_new_topic_start_date",[et("treat_as_new_topic_start_date")]))();#aQ=(()=>void dt7948.i(this,"treat_as_new_topic_start_date"))();static #V=(()=>dt7948.g(this.prototype,"hasPMs",[(0,o.gt)("private_messages_stats.all",0)]))();#aX=(()=>void dt7948.i(this,"hasPMs"))();static #W=(()=>dt7948.g(this.prototype,"hasStartedPMs",[(0,o.gt)("private_messages_stats.mine",0)]))();#aZ=(()=>void dt7948.i(this,"hasStartedPMs"))();static #K=(()=>dt7948.g(this.prototype,"hasUnreadPMs",[(0,o.gt)("private_messages_stats.unread",0)]))();#a1=(()=>void dt7948.i(this,"hasUnreadPMs"))();static #G=(()=>dt7948.g(this.prototype,"adminPath",[(0,_.url)("id","username_lower","/admin/users/%@1/%@2")]))();#a0=(()=>void dt7948.i(this,"adminPath"))();static #J=(()=>dt7948.g(this.prototype,"isBasic",[(0,o.equal)("trust_level",0)]))();#a3=(()=>void dt7948.i(this,"isBasic"))();static #Q=(()=>dt7948.g(this.prototype,"isRegular",[(0,o.equal)("trust_level",3)]))();#a2=(()=>void dt7948.i(this,"isRegular"))();static #X=(()=>dt7948.g(this.prototype,"isLeader",[(0,o.equal)("trust_level",4)]))();#a8=(()=>void dt7948.i(this,"isLeader"))();static #Z=(()=>dt7948.g(this.prototype,"canManageTopic",[(0,o.or)("staff","isLeader")]))();#a4=(()=>void dt7948.i(this,"canManageTopic"))();static #ee=(()=>dt7948.g(this.prototype,"sidebarCategoryIds",[(0,o.alias)("sidebar_category_ids")]))();#a7=(()=>void dt7948.i(this,"sidebarCategoryIds"))();static #et=(()=>dt7948.g(this.prototype,"sidebarSections",[(0,o.alias)("sidebar_sections")]))();#a9=(()=>void dt7948.i(this,"sidebarSections"))();static #ei=(()=>dt7948.g(this.prototype,"sidebarTagNames",[(0,o.mapBy)("sidebarTags","name")]))();#a5=(()=>void dt7948.i(this,"sidebarTagNames"))();static #es=(()=>dt7948.g(this.prototype,"groupsWithMessages",[(0,o.filterBy)("groups","has_messages",!0)]))();#a6=(()=>void dt7948.i(this,"groupsWithMessages"))();static #en=(()=>dt7948.g(this.prototype,"canPickThemeWithCustomHomepage",[(0,o.alias)("can_pick_theme_with_custom_homepage")]))();#oe=(()=>void dt7948.i(this,"canPickThemeWithCustomHomepage"))();numGroupsToDisplay=2;statusManager=(()=>new en(this))();canBeDeleted(e,t){let i=this.siteSettings.delete_all_posts_max;return e&&t<=i}static #er=(()=>dt7948.n(this.prototype,"canBeDeleted",[(0,b.default)("can_be_deleted","post_count")]))();stream(){return z.default.create({user:this})}static #ea=(()=>dt7948.n(this.prototype,"stream",[(0,b.default)()]))();bookmarks(){return I.default.create({user:this})}static #eo=(()=>dt7948.n(this.prototype,"bookmarks",[(0,b.default)()]))();postsStream(){return q.default.create({user:this})}static #el=(()=>dt7948.n(this.prototype,"postsStream",[(0,b.default)()]))();userDraftsStream(){return H.default.create({user:this})}static #eu=(()=>dt7948.n(this.prototype,"userDraftsStream",[(0,b.default)()]))();get staff(){return this.admin||this.moderator}static #ed=(()=>dt7948.n(this.prototype,"staff",[(0,r.computed)("admin","moderator")]))();set staff(e){}get hasUnseenFeatures(){return this.staff&&this.get("has_unseen_features")}static #ec=(()=>dt7948.n(this.prototype,"hasUnseenFeatures",[(0,r.computed)("has_unseen_features")]))();destroySession(){return(0,f.ajax)(`/session/${this.username}`,{type:"DELETE"})}searchContext(e){return{type:"user",id:e,user:this}}static #ep=(()=>dt7948.n(this.prototype,"searchContext",[(0,b.default)("username_lower")]))();displayName(e,t){return this.siteSettings.enable_names&&!(0,m.isEmpty)(t)?t:e}static #eh=(()=>dt7948.n(this.prototype,"displayName",[(0,b.default)("username","name")]))();profileBackgroundUrl(e){return(0,m.isEmpty)(e)||!this.siteSettings.allow_profile_backgrounds?(0,h.htmlSafe)(""):(0,h.htmlSafe)("background-image: url("+(0,C.getURLWithCDN)(e)+")")}static #em=(()=>dt7948.n(this.prototype,"profileBackgroundUrl",[(0,b.default)("profile_background_upload_url")]))();path(){return(0,L.userPath)(this.username_lower)}static #eg=(()=>dt7948.n(this.prototype,"path",[(0,b.default)()]))();userApiKeys(){let e=this.user_api_keys;if(e)return e.map(e=>{let t=r.default.create(e);return t.revoke=()=>{this.revokeApiKey(t)},t.undoRevoke=()=>{this.undoRevokeApiKey(t)},t})}static #ef=(()=>dt7948.n(this.prototype,"userApiKeys",[(0,b.default)()]))();revokeApiKey(e){return(0,f.ajax)("/user-api-key/revoke",{type:"POST",data:{id:e.get("id")}}).then(()=>{e.set("revoked",!0)})}undoRevokeApiKey(e){return(0,f.ajax)("/user-api-key/undo-revoke",{type:"POST",data:{id:e.get("id")}}).then(()=>{e.set("revoked",!1)})}pmPath(e){let t=this.username_lower,i=e.details,s=i?.allowed_users,n=i?.allowed_groups;if(!n||s?.findBy("id",this.id))return(0,L.userPath)(`${t}/messages`);if(n){let e=n.find(e=>this.groups.some(t=>t.id===e.id));if(e)return(0,L.userPath)(`${t}/messages/group/${e.name}`)}}mutedTopicsPath(){return"latest"===(0,P.defaultHomepage)()?(0,C.default)("/?state=muted"):(0,C.default)("/latest?state=muted")}static #e_=(()=>dt7948.n(this.prototype,"mutedTopicsPath",[(0,b.default)()]))();watchingTopicsPath(){return"latest"===(0,P.defaultHomepage)()?(0,C.default)("/?state=watching"):(0,C.default)("/latest?state=watching")}static #ey=(()=>dt7948.n(this.prototype,"watchingTopicsPath",[(0,b.default)()]))();trackingTopicsPath(){return"latest"===(0,P.defaultHomepage)()?(0,C.default)("/?state=tracking"):(0,C.default)("/latest?state=tracking")}static #eb=(()=>dt7948.n(this.prototype,"trackingTopicsPath",[(0,b.default)()]))();username_lower(e){return e.toLowerCase()}static #ev=(()=>dt7948.n(this.prototype,"username_lower",[(0,b.default)("username")]))();trustLevel(e){return R.default.currentProp("trustLevels").findBy("id",parseInt(e,10))}static #ew=(()=>dt7948.n(this.prototype,"trustLevel",[(0,b.default)("trust_level")]))();previousVisitAt(e){return new Date(e)}static #ek=(()=>dt7948.n(this.prototype,"previousVisitAt",[(0,b.default)("previous_visit_at")]))();suspended(e){return e&&moment(e).isAfter()}static #eT=(()=>dt7948.n(this.prototype,"suspended",[(0,b.default)("suspended_till")]))();suspendedForever(e){return J(e)}static #eS=(()=>dt7948.n(this.prototype,"suspendedForever",[(0,b.default)("suspended_till")]))();silencedForever(e){return J(e)}static #eC=(()=>dt7948.n(this.prototype,"silencedForever",[(0,b.default)("silenced_till")]))();suspendedTillDate(e){return(0,T.longDate)(e)}static #eA=(()=>dt7948.n(this.prototype,"suspendedTillDate",[(0,b.default)("suspended_till")]))();silencedTillDate(e){return(0,T.longDate)(e)}static #eD=(()=>dt7948.n(this.prototype,"silencedTillDate",[(0,b.default)("silenced_till")]))();sidebarTags(e){return e&&0!==e.length?e.sort((e,t)=>e.name.localeCompare(t.name)):[]}static #eM=(()=>dt7948.n(this.prototype,"sidebarTags",[(0,b.default)("sidebar_tags.[]")]))();changeUsername(e){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/preferences/username`),{type:"PUT",data:{new_username:e}})}addEmail(e){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/preferences/email`),{type:"POST",data:{email:e}}).then(()=>{this.unconfirmed_emails||this.set("unconfirmed_emails",[]),this.unconfirmed_emails.pushObject(e)})}changeEmail(e){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/preferences/email`),{type:"PUT",data:{email:e}}).then(()=>{this.unconfirmed_emails||this.set("unconfirmed_emails",[]),this.unconfirmed_emails.pushObject(e)})}save(e){let t=this.getProperties(Q.filter(t=>!e||e.includes(t)));(e?Z.filter(t=>e.includes(t)):Z).forEach(e=>{t[e]=this.get(`user_option.${e}`)});let i={};return["muted","regular","watched","tracked","watched_first_post"].forEach(s=>{if(void 0===e||e.includes(`${s}_category_ids`)){let e=this.get(`${(0,p.camelize)(s)}Categories`);if(e){let n=e.map(e=>e.get("id"));i[`${s}_category_ids`]=n,t[`${s}_category_ids`]=0===n.length?[-1]:n}}}),["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"].forEach(i=>{(void 0===e||e.includes(i))&&(t[i]=this.get(i)?this.get(i).join(","):"")}),["sidebar_category_ids","sidebar_tag_names"].forEach(e=>{t[e]?.length===0&&(t[e]=null)}),this.set("isSaving",!0),(0,f.ajax)((0,L.userPath)(`${this.username_lower}.json`),{data:t,type:"PUT"}).then(e=>(this.setProperties(i),this.setProperties((0,r.getProperties)(e.user,"bio_excerpt")),e)).finally(()=>{this.set("isSaving",!1)})}setPrimaryEmail(e){return(0,f.ajax)((0,L.userPath)(`${this.username}/preferences/primary-email.json`),{type:"PUT",data:{email:e}}).then(()=>{this.secondary_emails.removeObject(e),this.secondary_emails.pushObject(this.email),this.set("email",e)})}destroyEmail(e){return(0,f.ajax)((0,L.userPath)(`${this.username}/preferences/email.json`),{type:"DELETE",data:{email:e}}).then(()=>{this.unconfirmed_emails.includes(e)?this.unconfirmed_emails.removeObject(e):this.secondary_emails.removeObject(e)})}changePassword(){return(0,f.ajax)("/session/forgot_password.json",{data:{login:this.email||this.username},type:"POST"})}async removePassword(){return(0,f.ajax)((0,L.userPath)(`${this.username}/remove-password`),{type:"PUT"})}loadSecondFactorCodes(){return(0,f.ajax)("/u/second_factors.json",{type:"POST"})}requestSecurityKeyChallenge(){return(0,f.ajax)("/u/create_second_factor_security_key.json",{type:"POST"})}registerSecurityKey(e){return(0,f.ajax)("/u/register_second_factor_security_key.json",{data:e,type:"POST"})}trustedSession(){return(0,f.ajax)("/u/trusted-session.json")}createPasskey(){return(0,f.ajax)("/u/create_passkey.json",{type:"POST"})}registerPasskey(e){return(0,f.ajax)("/u/register_passkey.json",{data:e,type:"POST"})}deletePasskey(e){return(0,f.ajax)(`/u/delete_passkey/${e}`,{type:"DELETE"})}createSecondFactorTotp(){return(0,f.ajax)("/u/create_second_factor_totp.json",{type:"POST"})}enableSecondFactorTotp(e,t){return(0,f.ajax)("/u/enable_second_factor_totp.json",{data:{second_factor_token:e,name:t},type:"POST"})}disableAllSecondFactors(){return(0,f.ajax)("/u/disable_second_factor.json",{type:"PUT"})}updateSecondFactor(e,t,i,s){return(0,f.ajax)("/u/second_factor.json",{data:{second_factor_target:s,name:t,disable:i,id:e},type:"PUT"})}updateSecurityKey(e,t,i){return(0,f.ajax)("/u/security_key.json",{data:{name:t,disable:i,id:e},type:"PUT"})}toggleSecondFactor(e,t,i,s){return(0,f.ajax)("/u/second_factor.json",{data:{second_factor_token:e,second_factor_method:t,second_factor_target:i,enable:s},type:"PUT"})}generateSecondFactorCodes(){return(0,f.ajax)("/u/second_factors_backup.json",{type:"PUT"})}revokeAssociatedAccount(e){return(0,f.ajax)((0,L.userPath)(`${this.username}/preferences/revoke-account`),{data:{provider_name:e},type:"POST"})}async loadUserAction(e){let t=await (0,f.ajax)(`/user_actions/${e}.json`);if(!t?.user_action)return;let i=t.user_action;if((this.get("stream.filter")||i.action_type)!==i.action_type||!this.get("stream.filter")&&!this.inAllStream(i))return;i.title=(0,E.emojiUnescape)((0,P.escapeExpression)(i.title));let s=U.default.collapseStream([U.default.create(i)]);this.stream.set("itemsLoaded",this.stream.get("itemsLoaded")+1),this.stream.get("content").insertAt(0,s[0])}inAllStream(e){return e.action_type===U.default.TYPES.posts||e.action_type===U.default.TYPES.topics}filteredGroups(){return(this.groups||[]).filter(e=>!e.automatic||"moderators"===e.name)}static #ex=(()=>dt7948.n(this.prototype,"filteredGroups",[(0,b.default)("groups.[]")]))();displayGroups(e,t){let i=e.slice(0,t);return 0===i.length?null:i}static #eE=(()=>dt7948.n(this.prototype,"displayGroups",[(0,b.default)("filteredGroups","numGroupsToDisplay")]))();statsCountNonPM(){if((0,m.isEmpty)(this.statsExcludingPms))return 0;let e=0;return this.statsExcludingPms.forEach(t=>{this.inAllStream(t)&&(e+=t.count)}),e}static #eL=(()=>dt7948.n(this.prototype,"statsCountNonPM",[(0,b.default)("statsExcludingPms.@each.count")]))();statsExcludingPms(){return(0,m.isEmpty)(this.stats)?[]:this.stats.rejectBy("isPM")}static #eP=(()=>dt7948.n(this.prototype,"statsExcludingPms",[(0,b.default)("stats.@each.isPM")]))();findDetails(t){let i=this;return M.default.getAndRemove(`user_${i.get("username")}`,()=>{if(t&&t.existingRequest)return t.existingRequest;let e=t&&t.forCard;t&&delete t.forCard;let s=e?`${i.get("username")}/card.json`:`${i.get("username")}.json`;return(0,f.ajax)((0,L.userPath)(s),{data:t})}).then(t=>{if((0,m.isEmpty)(t.user.stats)||(t.user.stats=e.groupStats(t.user.stats.map(e=>(e.count&&(e.count=parseInt(e.count,10)),B.default.create(e))))),!(0,m.isEmpty)(t.user.groups)&&!(0,m.isEmpty)(t.user.group_users)){let e=[];for(let i=0;i{e[t.get("id")]=t}),t.user.featured_user_badges=t.user.featured_user_badge_ids.map(t=>e[t])}return t.user.card_badge&&(t.user.card_badge=F.default.create(t.user.card_badge)),i.setProperties(t.user),i})}findStaffInfo(){return e.currentProp("staff")?(0,f.ajax)((0,L.userPath)(`${this.username_lower}/staff-info.json`)).then(e=>{this.setProperties(e)}):g.Promise.resolve(null)}pickAvatar(e,t){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/preferences/avatar/pick`),{type:"PUT",data:{upload_id:e,type:t}})}selectAvatar(e){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/preferences/avatar/select`),{type:"PUT",data:{url:e}})}isAllowedToUploadAFile(e){return this.staff||this.trust_level>0||this.siteSettings[`newuser_max_${"image"===e?"embedded_media":"attachments"}`]>0}createInvite(e,t,i){return(0,f.ajax)("/invites",{type:"POST",data:{email:e,group_ids:t,custom_message:i}})}generateInviteLink(e,t,i){return(0,f.ajax)("/invites",{type:"POST",data:{email:e,skip_email:!0,group_ids:t,topic_id:i}})}get mutedCategories(){return this.site.lazy_load_categories&&this.muted_category_ids&&!N.default.hasAsyncFoundAll(this.muted_category_ids)&&N.default.asyncFindByIds(this.muted_category_ids).then(()=>this.notifyPropertyChange("muted_category_ids")),N.default.findByIds(this.get("muted_category_ids"))}static #eF=(()=>dt7948.n(this.prototype,"mutedCategories",[a.dependentKeyCompat]))();set mutedCategories(e){this.set("muted_category_ids",e.map(e=>e.id))}get regularCategories(){return this.site.lazy_load_categories&&this.regular_category_ids&&!N.default.hasAsyncFoundAll(this.regular_category_ids)&&N.default.asyncFindByIds(this.regular_category_ids).then(()=>this.notifyPropertyChange("regular_category_ids")),N.default.findByIds(this.get("regular_category_ids"))}static #eI=(()=>dt7948.n(this.prototype,"regularCategories",[a.dependentKeyCompat]))();set regularCategories(e){this.set("regular_category_ids",e.map(e=>e.id))}get trackedCategories(){return this.site.lazy_load_categories&&this.tracked_category_ids&&!N.default.hasAsyncFoundAll(this.tracked_category_ids)&&N.default.asyncFindByIds(this.tracked_category_ids).then(()=>this.notifyPropertyChange("tracked_category_ids")),N.default.findByIds(this.get("tracked_category_ids"))}static #eN=(()=>dt7948.n(this.prototype,"trackedCategories",[a.dependentKeyCompat]))();set trackedCategories(e){this.set("tracked_category_ids",e.map(e=>e.id))}get watchedCategories(){return this.site.lazy_load_categories&&this.watched_category_ids&&!N.default.hasAsyncFoundAll(this.watched_category_ids)&&N.default.asyncFindByIds(this.watched_category_ids).then(()=>this.notifyPropertyChange("watched_category_ids")),N.default.findByIds(this.get("watched_category_ids"))}static #ej=(()=>dt7948.n(this.prototype,"watchedCategories",[a.dependentKeyCompat]))();set watchedCategories(e){this.set("watched_category_ids",e.map(e=>e.id))}get watchedFirstPostCategories(){return this.site.lazy_load_categories&&this.watched_first_post_category_ids&&!N.default.hasAsyncFoundAll(this.watched_first_post_category_ids)&&N.default.asyncFindByIds(this.watched_first_post_category_ids).then(()=>this.notifyPropertyChange("watched_first_post_category_ids")),N.default.findByIds(this.get("watched_first_post_category_ids"))}static #eO=(()=>dt7948.n(this.prototype,"watchedFirstPostCategories",[a.dependentKeyCompat]))();set watchedFirstPostCategories(e){this.set("watched_first_post_category_ids",e.map(e=>e.id))}canDeleteAccount(e){return!this.siteSettings.enable_discourse_connect&&e}static #eR=(()=>dt7948.n(this.prototype,"canDeleteAccount",[(0,b.default)("can_delete_account")]))();get sidebarLinkToFilteredList(){return this.get("user_option.sidebar_link_to_filtered_list")}static #eU=(()=>dt7948.n(this.prototype,"sidebarLinkToFilteredList",[a.dependentKeyCompat]))();get sidebarShowCountOfNewItems(){return this.get("user_option.sidebar_show_count_of_new_items")}static #eB=(()=>dt7948.n(this.prototype,"sidebarShowCountOfNewItems",[a.dependentKeyCompat]))();delete(){return this.can_delete_account?(0,f.ajax)((0,L.userPath)(this.username+".json"),{type:"DELETE",data:{context:window.location.pathname}}):g.Promise.reject((0,$.i18n)("user.delete_yourself_not_allowed"))}updateNotificationLevel(t){let{level:i,expiringAt:s=null,actingUser:n=null}=t;return n||=e.current(),(0,f.ajax)(`${(0,L.userPath)(this.username)}/notification_level.json`,{type:"PUT",data:{notification_level:i,expiring_at:s,acting_user_id:n.id}}).then(()=>{n.ignored_users||(n.ignored_users=[]),"normal"===i||"mute"===i?n.ignored_users.removeObject(this.username):"ignore"===i&&n.ignored_users.addObject(this.username)})}dismissBanner(e){this.set("dismissed_banner_key",e),(0,f.ajax)((0,L.userPath)(this.username+".json"),{type:"PUT",data:{dismissed_banner_key:e}})}checkEmail(){return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/emails.json`),{data:{context:window.location.pathname}}).then(e=>{e&&this.setProperties({email:e.email,secondary_emails:e.secondary_emails,unconfirmed_emails:e.unconfirmed_emails,associated_accounts:e.associated_accounts})})}summary(){let e=(0,S.getOwnerWithFallback)(this).lookup("service:store");return(0,f.ajax)((0,L.userPath)(`${this.username_lower}/summary.json`)).then(t=>{let i=t.user_summary,s={},n={};return t.topics.forEach(t=>s[t.id]=e.createRecord("topic",t)),F.default.createFromJson(t).forEach(e=>n[e.id]=e),i.topics=i.topic_ids.map(e=>s[e]),i.replies.forEach(e=>{e.topic=s[e.topic_id],e.url=e.topic.urlForPostNumber(e.post_number),e.createdAt=new Date(e.created_at)}),i.links.forEach(e=>{e.topic=s[e.topic_id],e.post_url=e.topic.urlForPostNumber(e.post_number)}),i.badges&&(i.badges=i.badges.map(e=>{let t=n[e.badge_id];return t.count=e.count,t})),i.top_categories&&i.top_categories.forEach(e=>{e.parent_category_id&&(e.parentCategory=N.default.findById(e.parent_category_id))}),i})}canManageGroup(e){return e.get("can_admin_group")||e.get("is_group_owner")}availableTitles(){let e=[];return(this.groups||[]).forEach(t=>{(0,r.get)(t,"title")&&e.push((0,r.get)(t,"title"))}),(this.badges||[]).forEach(t=>{(0,r.get)(t,"allow_title")&&e.push((0,r.get)(t,"name"))}),e.uniq().sort().map(e=>({name:(0,P.escapeExpression)(e),id:e}))}static #eY=(()=>dt7948.n(this.prototype,"availableTitles",[(0,b.default)("groups.@each.title","badges.[]")]))();availableFlairs(){let e=[];return this.groups&&this.groups.forEach(t=>{t.flair_url&&e.push({id:t.id,name:t.name,url:t.flair_url,bgColor:t.flair_bg_color,color:t.flair_color})}),e}static #eH=(()=>dt7948.n(this.prototype,"availableFlairs",[(0,b.default)("groups.[]")]))();currentTextSize(e,t){if((0,y.default)(K)){let[t,i]=(0,y.default)(K).split("|");if(i>=e)return t}return t}static #eq=(()=>dt7948.n(this.prototype,"currentTextSize",[(0,b.default)("user_option.text_size_seq","user_option.text_size")]))();updateTextSizeCookie(e){if(e){let t=this.get("user_option.text_size_seq");(0,y.default)(K,`${e}|${t}`,{path:"/",expires:365})}else(0,y.removeCookie)(K,{path:"/"})}enforcedSecondFactor(e,t){let i=this.siteSettings.enforce_second_factor;return!e&&("all"===i||"staff"===i&&t)}static #ez=(()=>dt7948.n(this.prototype,"enforcedSecondFactor",[(0,b.default)("second_factor_enabled","staff")]))();resolvedTimezone(){return(0,w.default)("user.resolvedTimezone() has been deprecated. Use user.user_option.timezone instead",{id:"discourse.user.resolved-timezone",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.user_option.timezone}calculateMutedIds(e,t,i){let s=this.get(i);return e===D.NotificationLevels.MUTED?s.concat(t).uniq():s.filter(e=>e!==t)}setPrimaryGroup(e){return(0,f.ajax)(`/admin/users/${this.id}/primary_group`,{type:"PUT",data:{primary_group_id:e}})}enterDoNotDisturbFor(e){return(0,f.ajax)({url:"/do-not-disturb.json",type:"POST",data:{duration:e}}).then(e=>this.updateDoNotDisturbStatus(e.ends_at))}leaveDoNotDisturb(){return(0,f.ajax)({url:"/do-not-disturb.json",type:"DELETE"}).then(()=>{this.updateDoNotDisturbStatus(null)})}updateDoNotDisturbStatus(e){this.set("do_not_disturb_until",e),this.appEvents.trigger("do-not-disturb:changed",this.do_not_disturb_until),(0,u.getOwner)(this).lookup("service:notifications")._checkDoNotDisturb()}updateDraftProperties(e){this.setProperties(e),this.appEvents.trigger("user-drafts:changed")}updateReviewableCount(e){this.set("reviewable_count",e),this.appEvents.trigger("user-reviewable-count:changed",e)}isInDoNotDisturb(){if(this!==(0,u.getOwner)(this).lookup("service:current-user"))throw"isInDoNotDisturb is only supported for currentUser";return(0,u.getOwner)(this).lookup("service:notifications").isInDoNotDisturb}trackedTags(e,t,i){return[...e,...t,...i]}static #e$=(()=>dt7948.n(this.prototype,"trackedTags",[(0,b.default)("tracked_tags.[]","watched_tags.[]","watching_first_post_tags.[]")]))()},[x.default]),es=ei;ei.reopenClass({findByUsername:(e,t)=>ei.create({username:e}).findDetails(t),checkUsername:(e,t,i)=>(0,f.ajax)((0,L.userPath)("check_username"),{data:{username:e,email:t,for_user_id:i}}),checkEmail:e=>(0,f.ajax)((0,L.userPath)("check_email"),{data:{email:e}}),loadRecentSearches:()=>(0,f.ajax)("/u/recent-searches"),resetRecentSearches:()=>(0,f.ajax)("/u/recent-searches",{type:"DELETE"}),groupStats(e){let t=B.default.create({count:0,action_type:U.default.TYPES.replies});e.filterBy("isResponse").forEach(e=>{t.set("count",t.get("count")+e.get("count"))});let i=(0,n.A)();i.pushObjects(e.rejectBy("isResponse"));let s=0;return i.forEach((e,t)=>{(e.action_type===U.default.TYPES.topics||e.action_type===U.default.TYPES.posts)&&(s=t+1)}),t.count>0&&i.insertAt(s,t),i},createAccount(e){let t={name:e.accountName,email:e.accountEmail,password:e.accountPassword,username:e.accountUsername,password_confirmation:e.accountPasswordConfirm,challenge:e.accountChallenge,user_fields:e.userFields,timezone:moment.tz.guess()};return e.inviteCode&&(t.invite_code=e.inviteCode),(0,f.ajax)((0,L.userPath)(),{data:t,type:"POST"})},_saveTimezone(e){(0,f.ajax)((0,L.userPath)(e.username+".json"),{type:"PUT",dataType:"json",data:{timezone:e.user_option.timezone}})},create(e){return e=e||{},this.deleteStatusTrackingFields(e),this._super(e)},deleteStatusTrackingFields(e){e.hasOwnProperty("_subscribersCount")&&delete e._subscribersCount,e.hasOwnProperty("_clearStatusTimerId")&&delete e._clearStatusTimerId}});class en{static #e=(()=>dt7948.g(this.prototype,"appEvents",[c.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();user;_subscribersCount=0;_clearStatusTimerId=null;constructor(e){this.user=e,(0,u.setOwner)(this,(0,u.getOwner)(e))}trackStatus(){this.user.id||(0,k.isTesting)()||console.warn("It's impossible to track user status on a user model that doesn't have id. This user model won't be receiving live user status updates."),0===this._subscribersCount&&(this.user.addObserver("status",this,"_statusChanged"),this.appEvents.on("user-status:changed",this,this._updateStatus),this.user.status?.ends_at&&this._scheduleStatusClearing(this.user.status.ends_at)),this._subscribersCount++}stopTrackingStatus(){0!==this._subscribersCount&&(1===this._subscribersCount&&(this.user.removeObserver("status",this,"_statusChanged"),this.appEvents.off("user-status:changed",this,this._updateStatus),this._unscheduleStatusClearing()),this._subscribersCount--)}isTrackingStatus(){return this._subscribersCount>0}_statusChanged(){this.user.trigger("status-changed",this.user);let e=this.user.status;e&&e.ends_at?this._scheduleStatusClearing(e.ends_at):this._unscheduleStatusClearing()}_scheduleStatusClearing(e){if((0,k.isTesting)())return;this._clearStatusTimerId&&this._unscheduleStatusClearing();let t=moment.utc(),i=moment.utc(e).diff(t,"milliseconds");this._clearStatusTimerId=(0,A.default)(this,"_autoClearStatus",i)}_unscheduleStatusClearing(){(0,d.cancel)(this._clearStatusTimerId),this._clearStatusTimerId=null}_autoClearStatus(){this.user.status=null}_updateStatus(e){e.hasOwnProperty(this.user.id)&&(this.user.status=e[this.user.id])}}if("undefined"!=typeof Discourse){let e=!1;Object.defineProperty(Discourse,"User",{get:()=>(e||((0,w.default)("Import the User class instead of using Discourse.User",{since:"2.4.0",id:"discourse.globals.user"}),e=!0),ei)})}},25220:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return(12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t)?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var s=100*e+t;if(s<600)return"يېرىم كېچە";if(s<900)return"سەھەر";if(s<1130)return"چۈشتىن بۇرۇن";if(s<1230)return"چۈش";if(s<1800)return"چۈشتىن كېيىن";else return"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})})},25325:(e,t,i)=>{"use strict";i.r(t),i.d(t,{C:()=>s});class s{size=0;misses=0;hits=0;constructor(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;this.limit=e,this.func=t,this.store=i}get(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}},25349:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(13355),l=i(53329),u=i(63538),d=i(29466),c=i(70508),p=i(24986),h=i(32045),m=i(1519);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();click(e){(0,d.wantsNewWindow)(e)||(e.preventDefault(),this.args.toggleUserMenu(),"button"===e.target.tagName.toLowerCase()?e.target.blur():e.target.closest("button").blur())}static #i=(()=>dt7948.n(this.prototype,"click",[r.action]))();static #n=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"+C1nv4bB",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 "],[8,[32,2],[[24,1,"toggle-current-user"],[24,0,"icon btn-flat"],[24,"aria-haspopup","true"],[16,"aria-expanded",[30,1]],[16,"aria-label",[28,[32,3],["user.avatar.header_title"],null]],[16,"title",[28,[32,3],["user.avatar.header_title"],null]],[4,[32,4],["click",[30,0,["click"]]],null]],null,[["default"],[[[[1,"\\n "],[8,[32,5],null,[["@active"],[[30,1]]],null],[1,"\\n "]],[]]]]],[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,o.default,c.i18n,n.on,p.default],isStrictMode:!0}),this))()}},25351:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(7155),r=i(86981),a=i(75093),o=i(72264),l=i(13355),u=i(39826),d=i(16356),c=i(10919),p=i(70508),h=i(99244),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"login",[a.service]))();#ot=(()=>void dt7948.i(this,"login"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"newEmail",[n.tracked],function(){return this.args.model.newEmail}))();#oi=(()=>void dt7948.i(this,"newEmail"))();static #a=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#sJ=(()=>void dt7948.i(this,"flash"))();get submitDisabled(){return this.newEmail===this.args.model.currentEmail}async changeEmail(){try{await (0,c.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,d.extractError)(e)}}static #l=(()=>dt7948.n(this.prototype,"changeEmail",[r.action]))();updateNewEmail(e){this.newEmail=e}static #d=(()=>dt7948.n(this.prototype,"updateNewEmail",[r.action]))();static #p=(()=>(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,o.default,l.default],isStrictMode:!0}),this))()}},25354:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{get name(){this._notImplemented()}get text(){this._notImplemented()}get actions(){}get actionsIcon(){}get links(){}get displaySection(){return!0}get collapsedByDefault(){return!1}_notImplemented(){throw"not implemented"}}},25376:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(32045),n=i(73326),r=i(96791),a=i(86981),o=i(70568),l=i(15383),u=i(85024),d=i(38161),c=i(57079),p=i(76947),h=i(13355),m=i(38069),g=i(44337),f=i(87367),_=i(16356),y=i(14051),b=i(9237),w=i(70508),k=i(7749),T=i(1519);let S=dt7948.c(class extends s.default{form=null;missingSettings(e,t,i,s){return[e,t,i,s].some(e=>(0,l.isEmpty)(e))}static #e=(()=>dt7948.n(this.prototype,"missingSettings",[(0,y.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 #i=(()=>dt7948.n(this.prototype,"mailboxes",[(0,y.default)("group.imap_mailboxes")]))();mailboxSelected(e,t){return 0===t||!(0,l.isEmpty)(e)}static #n=(()=>dt7948.n(this.prototype,"mailboxSelected",[(0,y.default)("group.imap_mailbox_name","mailboxes.length")]))();resetSettingsValid(){this.set("imapSettingsValid",!1)}static #a=(()=>dt7948.n(this.prototype,"resetSettingsValid",[a.action]))();_fillForm(){this.set("form",a.default.create({imap_server:this.group.imap_server,imap_port:(this.group.imap_port||"").toString(),imap_ssl:this.group.imap_ssl}))}static #l=(()=>dt7948.n(this.prototype,"_fillForm",[(0,d.on)("init")]))();prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,b.default)(e,"imap"))}static #d=(()=>dt7948.n(this.prototype,"prefillSettings",[a.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,f.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(_.popupAjaxError).finally(()=>this.set("testingSettings",!1))}static #p=(()=>dt7948.n(this.prototype,"testImapSettings",[a.action]))();static #m=(()=>(0,s.setComponentTemplate)((0,T.createTemplateFactory)({id:"sV21ygAU",block:'[[[1,"\\n "],[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,[32,0],["groups.manage.email.credentials.imap_server"],null]],[13],[1,"\\n "],[8,[32,1],[[24,3,"imap_server"],[24,"tabindex","8"],[4,[32,2],["change",[30,0,["resetSettingsValid"]]],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,[32,1],[[24,1,"enable_ssl_imap"],[24,"tabindex","11"],[4,[32,2],["change",[30,0,["resetSettingsValid"]]],null]],[["@type","@checked"],["checkbox",[30,0,["form","imap_ssl"]]]],null],[1,"\\n "],[1,[28,[32,0],["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,[32,0],["groups.manage.email.credentials.imap_port"],null]],[13],[1,"\\n "],[8,[32,1],[[24,3,"imap_port"],[24,"tabindex","9"],[4,[32,2],["change",[28,[32,3],[[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,[32,0],["groups.manage.email.mailboxes.synchronized"],null]],[13],[1,"\\n "],[8,[32,4],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,[32,3],[[28,[31,1],[[30,0,["group","imap_mailbox_name"]]],null]],null],[28,[32,5],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,[32,0],["groups.manage.email.prefill.title"],null]],[1,"\\n "],[11,3],[24,1,"prefill_imap_gmail"],[24,6,""],[4,[32,2],["click",[28,[32,3],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[32,0],["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,[32,0],["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,[32,6],[[24,"tabindex","12"],[24,0,"btn-primary test-imap-settings"]],[["@disabled","@action","@icon","@label","@title"],[[28,[32,7],[[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,[32,8],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,[32,9],["circle-check"],null]],[1,"\\n "],[1,[28,[32,0],["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,[32,0],["groups.manage.email.last_updated"],null]],[1,"\\n "],[10,"strong"],[12],[1,[28,[32,10],[[30,0,["group","imap_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n "],[1,[28,[32,0],["groups.manage.email.last_updated_by"],null]],[1,"\\n "],[8,[32,11],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],[1," "],[13],[1,"\\n "]],[],false,["if","mut","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/group-imap-email-settings.js",scope:()=>[w.i18n,s.Input,r.on,n.fn,k.default,n.hash,h.default,c.or,p.default,m.default,g.default,o.LinkTo],isStrictMode:!0}),this))()},[(0,u.tagName)("")])},25380:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MAX_MESSAGE_LENGTH:()=>o,default:()=>l});var s=i(91558),n=i(14051),r=i(47872),a=i(70508);let o=500;class l extends r.default{static #e=(()=>dt7948.g(this.prototype,"isIllegal",[(0,s.equal)("name_key","illegal")]))();#os=(()=>void dt7948.i(this,"isIllegal"))();translatedDescription(){return this.system?(0,a.i18n)(`post.actions.by_you.${this.name_key}`):(0,a.i18n)("post.actions.by_you.custom",{custom:this.name})}static #i=(()=>dt7948.n(this.prototype,"translatedDescription",[(0,n.default)()]))()}},25417:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(7155),r=i(96791),a=i(86981),o=i(29612),l=i(63538),u=i(67698),d=i(35697),c=i(59808),p=i(70508),h=i(32045),m=i(1519);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"isFocused",[n.tracked],function(){return!1}))();#on=(()=>void dt7948.i(this,"isFocused"))();get emojiHtml(){return(0,u.emojiUnescape)((0,d.escapeExpression)(`:${this.args.status.emoji}:`))}blur(){this.isFocused=!1}static #i=(()=>dt7948.n(this.prototype,"blur",[a.action]))();emojiSelected(e){this.args.status.emoji=e}static #n=(()=>dt7948.n(this.prototype,"emojiSelected",[a.action]))();focus(){this.isFocused=!0}static #a=(()=>dt7948.n(this.prototype,"focus",[a.action]))();updateDescription(e){this.args.status.description=e.target.value,this.args.status.emoji||="speech_balloon"}static #l=(()=>dt7948.n(this.prototype,"updateDescription",[a.action]))();static #d=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"oIDWN1l7",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],null,[["@emoji","@didSelectEmoji","@btnClass","@modalForMobile","@context"],[[30,1,["emoji"]],[30,0,["emojiSelected"]],"btn-emoji",false,"user-status"]],null],[1,"\\n\\n "],[11,"input"],[16,2,[30,1,["description"]]],[16,"placeholder",[28,[32,2],["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,4],null,null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@status"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-status-picker.js",scope:()=>[l.default,o.default,p.i18n,r.on,c.default],isStrictMode:!0}),this))()}},25420:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(3289),n=i(38069),r=i(44337),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"/LqJw0p9",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["actionsSummary"]]],null]],null],"id",[[[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,["deletedAt"]],[[[1," "],[10,0],[14,0,"post-action deleted-post"],[12],[1,"\\n "],[1,[28,[32,0],["trash-can"],null]],[1,"\\n "],[8,[32,1],null,[["@size","@user"],["tiny",[30,1,["deletedBy"]]]],null],[1,"\\n "],[1,[28,[32,2],[[30,1,["deletedAt"]]],[["format"],["tiny"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@post","actionSummary"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/actions-summary.js",scope:()=>[n.default,s.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,"actions-summary:PostActionsSummary"))},25444:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(28568),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"fdvFOAI/",block:'[[[1,"\\n "],[8,[32,0],null,[["@posts","@titlePath","@fetchMorePosts","@emptyText"],[[30,1,["model"]],"topic_html_title",[30,1,["fetchMorePosts"]],[28,[32,1],["groups.empty.posts"],null]]],null],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group-activity-posts.js",scope:()=>[n.default,r.i18n],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},25475:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(24813),n=i(75093),r=i(58423),a=i(35697),o=i(27797);class l extends o.default{static #e=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();async beforeModel(){let{loginRequired:e}=this.controllerFor("application");await this.router.replaceWith(e?"login":`discovery.${(0,a.defaultHomepage)()}`),(0,s.next)(()=>this.modal.show(r.default))}}},25495:(e,t,i)=>{"use strict";i.r(t),i.d(t,{TRACKED_QUERY_PARAM_VALUE:()=>r,hasTrackedFilter:()=>a,isTrackedTopic:()=>o});var s=i(18693),n=i(25217);let r="tracked";function a(e){return!!e&&(e.f===r||e.filter===r)}function o(e){if(e.category_id){for(let t of s.default.current().trackedCategoriesList)if(t.id===e.category_id||t.subcategories&&t.subcategories.some(t=>{if(t.id===e.category_id||t.subcategories&&t.subcategories.some(t=>t.id===e.category_id))return!0}))return!0}if(e.tags){for(let t of n.default.current().trackedTags)if(e.tags.includes(t))return!0}return!1}},25549:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.categoryLinkHTML});var s=i(14104)},25576:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(57079),n=i(63538),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[n.default,s.notEq],isStrictMode:!0}),(0,o.default)(void 0,"content:FKControlConditionalContentItem"))},25595:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(75370),n=i(32045),r=i(1519),a=i(69522);let o=(0,s.default)((0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"wxUBNXT4",block:'[[[46,[28,[31,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/invites.js",isStrictMode:!0}),(0,a.default)(void 0,void 0)))},25597:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(50890),n=i(86981);class r extends s.default{loadMore(){this.model.loadMore()}static #e=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))()}},25601:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(82876).default.create({compare:null})},25634:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(9732).default},25636:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(73326),n=i(96791),r=i(9032),a=i(75370),o=i(44286),l=i(13355),u=i(53329),d=i(49758),c=i(95556),p=i(38069),h=i(44337),m=i(10458),g=i(31789),f=i(70508),_=i(32045),y=i(1519),b=i(69522);let w=(0,a.default)((0,_.setComponentTemplate)((0,y.createTemplateFactory)({id:"hiquEQJw",block:'[[[1,"\\n"],[41,[30,1,["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,[32,0],["user.password.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,3],[24,6,""],[24,0,"btn btn-default"],[24,1,"change-password-button"],[4,[32,1],["click",[30,1,["changePassword"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["envelope"],null]],[1,"\\n"],[41,[30,1,["model","no_password"]],[[[1," "],[1,[28,[32,0],["user.change_password.set_password"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["user.change_password.action"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[1,[30,1,["passwordProgress"]]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[51,[30,1,["model","no_password"]]],[[[41,[30,1,["associatedAccountsLoaded"]],[[[41,[30,1,["canRemovePassword"]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[11,3],[24,6,""],[16,"hidden",[30,1,["removePasswordInProgress"]]],[24,1,"remove-password-link"],[4,[32,1],["click",[30,1,["removePassword"]]],null],[12],[1,"\\n "],[1,[28,[32,2],["trash-can"],null]],[1,"\\n "],[1,[28,[32,0],["user.change_password.remove"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,3],null,[["@action","@title","@icon","@label"],[[28,[32,4],[[28,[32,5],["checkEmail"],null],[30,1,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["canUsePasskeys"]],[[[1," "],[8,[32,6],null,[["@model"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.second_factor.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.second_factor.short_description"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"controls pref-second-factor"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn-default btn-second-factor"]],[["@action","@icon","@label"],[[30,1,["manage2FA"]],"lock","user.second_factor.enable"]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1,["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,[32,0],["user.auth_tokens.title"],null]],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,"\\n "],[1,[28,[32,0],["user.auth_tokens.short_description"],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-tokens"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["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,[32,2],[[30,3,["icon"]]],null]],[13],[1,"\\n"],[41,[51,[30,3,["is_active"]]],[[[1," "],[8,[32,7],null,[["@token","@revokeAuthToken","@showToken"],[[30,3],[30,1,["revokeAuthToken"]],[30,1,["showToken"]]]],null],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"auth-token-first"],[12],[1,"\\n "],[1,[28,[32,8],[[28,[32,0],["user.auth_tokens.device_location"],[["device","ip","location"],[[30,3,["device"]],[30,3,["client_ip"]],[30,3,["location"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"auth-token-second"],[12],[1,"\\n"],[41,[30,3,["is_active"]],[[[1," "],[1,[28,[32,8],[[28,[32,0],["user.auth_tokens.browser_active"],[["browser"],[[30,3,["browser"]]]]]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,8],[[28,[32,0],["user.auth_tokens.browser_last_seen"],[["browser","date"],[[30,3,["browser"]],[28,[32,9],[[30,3,["seen_at"]]],null]]]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,1,["canShowAllAuthTokens"]],[[[1," "],[11,3],[24,6,""],[4,[32,1],["click",[30,1,["toggleShowAllAuthTokens"]]],null],[12],[1,"\\n"],[41,[30,1,["showAllAuthTokens"]],[[[1," "],[1,[28,[32,2],["caret-up"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,0],["user.auth_tokens.show_few"],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,2],["caret-down"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["user.auth_tokens.show_all"],[["count"],[[30,1,["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,[32,1],["click",[28,[32,4],[[30,1,["revokeAuthToken"]],null],null]],null],[12],[1,"\\n "],[1,[28,[32,2],["right-from-bracket"],null]],[1,"\\n "],[10,1],[12],[1,"\\n "],[1,[28,[32,0],["user.auth_tokens.log_out_all"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,10],null,[["@model"],[[30,2]]],null],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,11],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-security","div",[28,[32,12],null,[["model","save"],[[30,1,["model"]],[30,0,["save"]]]]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,"br"],[12],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,11],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,12],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller","@model","token"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/security.js",scope:()=>[f.i18n,n.on,p.default,l.default,s.fn,g.default,c.default,o.default,r.htmlSafe,h.default,d.default,u.default,m.default],isStrictMode:!0}),(0,b.default)(void 0,void 0)))},25839:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{clearAllBodyScrollLocks:()=>c,disableBodyScroll:()=>d,enableBodyScroll:()=>p,locks:()=>a});if("undefined"!=typeof window){let e={get passive(){return}};window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}let r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],o=new Map,l=()=>{void 0!==n&&(document.body.style.paddingRight=n,n=void 0)},u=()=>{void 0!==s&&(document.body.style.touchAction=s.touchAction||"",s=void 0)},d=(e,t)=>{if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");o.set(e,(null==o?void 0:o.get(e))?(null==o?void 0:o.get(e))+1:1),a.some(t=>t.targetElement===e)||(a=[...a,{targetElement:e,options:t||{}}],r?(()=>window.requestAnimationFrame(()=>{let e=document.body;void 0===s&&(s={...e.style},e.style.touchAction="none")}))():(e=>{if(void 0===n){let t=!!e&&!0===e.reserveScrollBarGap,i=window.innerWidth-document.documentElement.getBoundingClientRect().width;if(t&&i>0){let e=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);n=document.body.style.paddingRight,document.body.style.paddingRight=`${e+i}px`}}})(t))},c=()=>{r?u():l(),a=[],o.clear()},p=e=>{if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");o.set(e,(null==o?void 0:o.get(e))?(null==o?void 0:o.get(e))-1:0),(null==o?void 0:o.get(e))===0&&(a=a.filter(t=>t.targetElement!==e),null==o||o.delete(e)),0===a.length&&(r?u():l())}},25908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{destroyUserStatusOnMentions:()=>o,updateUserStatusOnMention:()=>a});var s=i(43343),n=i(28051);let r={};function a(e,t,i){if(function(e){r[(0,s.guidFor)(e)]?.destroy(),e.querySelector("span.user-status-message")?.remove()}(t),i){let a=new n.UserStatusMessage(e,i);r[(0,s.guidFor)(t)]=a,t.appendChild(a.html)}}function o(){Object.values(r).forEach(e=>{e.destroy()})}},25918:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>I});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(91558),u=i(96848),d=i(75093),c=i(26592),p=i.n(c),h=i(31075),m=i(13355),g=i(39826),f=i(50817),_=i(14599),y=i(85564),b=i(38069),w=i(19006),k=i(16356),T=i(20037),S=i(61154),C=i(86723),A=i(67698),D=i(251),M=i(75988),x=i(39902),E=i(70508),L=i(7749),P=i(1519);let F={enter:{handler:"saveAndClose"},"d d":{handler:"delete"}};class I extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[d.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[d.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #n=(()=>dt7948.g(this.prototype,"site",[d.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"bookmarkApi",[d.service]))();#or=(()=>void dt7948.i(this,"bookmarkApi"))();static #l=(()=>dt7948.g(this.prototype,"postDetectedLocalDate",[n.tracked],function(){return null}))();#oa=(()=>void dt7948.i(this,"postDetectedLocalDate"))();static #d=(()=>dt7948.g(this.prototype,"postDetectedLocalTime",[n.tracked],function(){return null}))();#oo=(()=>void dt7948.i(this,"postDetectedLocalTime"))();static #p=(()=>dt7948.g(this.prototype,"postDetectedLocalTimezone",[n.tracked],function(){return null}))();#ol=(()=>void dt7948.i(this,"postDetectedLocalTimezone"))();static #m=(()=>dt7948.g(this.prototype,"prefilledDatetime",[n.tracked],function(){return null}))();#ou=(()=>void dt7948.i(this,"prefilledDatetime"))();static #f=(()=>dt7948.g(this.prototype,"flash",[n.tracked],function(){return null}))();#sJ=(()=>void dt7948.i(this,"flash"))();static #y=(()=>dt7948.g(this.prototype,"userTimezone",[n.tracked],function(){return this.currentUser.user_option.timezone}))();#od=(()=>void dt7948.i(this,"userTimezone"))();static #v=(()=>dt7948.g(this.prototype,"showOptions",[n.tracked],function(){return!!this.args.model.bookmark.id}))();#oc=(()=>void dt7948.i(this,"showOptions"))();static #k=(()=>dt7948.g(this.prototype,"userHasTimezoneSet",[(0,l.notEmpty)("userTimezone")]))();#op=(()=>void dt7948.i(this,"userHasTimezoneSet"))();static #S=(()=>dt7948.g(this.prototype,"showDelete",[(0,l.notEmpty)("bookmark.id")]))();#oh=(()=>void dt7948.i(this,"showDelete"))();static #A=(()=>dt7948.g(this.prototype,"editingExistingBookmark",[(0,l.notEmpty)("bookmark.id")]))();#om=(()=>void dt7948.i(this,"editingExistingBookmark"))();static #M=(()=>dt7948.g(this.prototype,"existingBookmarkHasReminder",[(0,l.and)("bookmark.id","bookmark.reminderAt")]))();#og=(()=>void dt7948.i(this,"existingBookmarkHasReminder"))();static #E=(()=>dt7948.g(this.prototype,"_closeWithoutSaving",[n.tracked],function(){return!1}))();#of=(()=>void dt7948.i(this,"_closeWithoutSaving"))();static #P=(()=>dt7948.g(this.prototype,"_savingBookmarkManually",[n.tracked],function(){return!1}))();#o_=(()=>void dt7948.i(this,"_savingBookmarkManually"))();static #I=(()=>dt7948.g(this.prototype,"_saving",[n.tracked],function(){return!1}))();#oy=(()=>void dt7948.i(this,"_saving"))();static #j=(()=>dt7948.g(this.prototype,"_deleting",[n.tracked],function(){return!1}))();#ob=(()=>void dt7948.i(this,"_deleting"))();_itsatrap=(()=>new(p()))();willDestroy(){super.willDestroy(...arguments),this._itsatrap?.destroy(),this._itsatrap=null,S.default.unpause()}get bookmark(){return this.args.model.bookmark}get modalTitle(){return(0,E.i18n)(this.bookmark.id?"bookmarks.edit":"bookmarks.create")}get autoDeletePreferences(){return Object.keys(x.AUTO_DELETE_PREFERENCES).map(e=>({id:x.AUTO_DELETE_PREFERENCES[e],name:(0,E.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,T.formattedReminderTime)(this.bookmark.reminderAt,this.userTimezone)}get timeOptions(){let e=(0,D.defaultTimeShortcuts)(this.userTimezone);return this.showPostLocalDate&&e.push({icon:"globe-americas",id:D.TIME_SHORTCUT_TYPES.POST_LOCAL_DATE,label:"time_shortcut.post_local_date",time:this.#ov(),timeFormatKey:"dates.long_no_year",hidden:!1}),e}get showPostLocalDate(){return!(!this.postDetectedLocalTime||!this.postDetectedLocalDate||this.#ov()<(0,M.now)(this.userTimezone))}get hiddenTimeShortcutOptions(){return this.editingExistingBookmark&&!this.existingBookmarkHasReminder?[D.TIME_SHORTCUT_TYPES.NONE]:[]}get customTimeShortcutLabels(){let e={};return this.existingBookmarkHasReminder&&(e[D.TIME_SHORTCUT_TYPES.NONE]="bookmarks.remove_reminder_keep_bookmark"),e}didInsert(){(0,C.default)(()=>{this.site.isMobileDevice&&document.getElementById("bookmark-name").blur()}),this.args.model.bookmark.id||document.getElementById("tap_tile_none").classList.add("active"),this.#ow(),this.#ok(),this.#oT()}static #R=(()=>dt7948.n(this.prototype,"didInsert",[o.action]))();saveAndClose(){if(this.flash=null,!this._saving&&!this._deleting)return this._saving=!0,this._savingBookmarkManually=!0,this.#oS().then(()=>this.args.closeModal()).catch(e=>this.#oC(e)).finally(()=>{this._saving=!1})}static #B=(()=>dt7948.n(this.prototype,"saveAndClose",[o.action]))();toggleShowOptions(){this.showOptions=!this.showOptions}static #H=(()=>dt7948.n(this.prototype,"toggleShowOptions",[o.action]))();onTimeSelected(e,t){if(this.bookmark.selectedReminderType=e,this.bookmark.selectedDatetime=t,this.bookmark.reminderAt=t,![D.TIME_SHORTCUT_TYPES.CUSTOM,D.TIME_SHORTCUT_TYPES.RELATIVE].includes(e))return this.saveAndClose()}static #z=(()=>dt7948.n(this.prototype,"onTimeSelected",[o.action]))();closingModal(e){e.initiatedBy!==g.CLOSE_INITIATED_BY_CLICK_OUTSIDE||this._closeWithoutSaving||this._savingBookmarkManually?this.args.closeModal(e):this.#oS().catch(e=>this.#oC(e)).then(()=>{this.args.closeModal(e)})}static #$=(()=>dt7948.n(this.prototype,"closingModal",[o.action]))();closeWithoutSavingBookmark(){this._closeWithoutSaving=!0,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}static #V=(()=>dt7948.n(this.prototype,"closeWithoutSavingBookmark",[o.action]))();delete(){if(!this.bookmark.id)return;this._deleting=!0;let e=()=>{this._closeWithoutSaving=!0,this.#oA().then(()=>{this._deleting=!1,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}).catch(e=>this.#oC(e))};this.existingBookmarkHasReminder?this.dialog.deleteConfirm({message:(0,E.i18n)("bookmarks.confirm_delete"),didConfirm:()=>e()}):e()}static #W=(()=>dt7948.n(this.prototype,"delete",[o.action]))();#ov(){let e=(0,M.parseCustomDatetime)(this.postDetectedLocalDate,this.postDetectedLocalTime,this.userTimezone,this.postDetectedLocalTimezone);return this.postDetectedLocalTime?e:(0,M.startOfDay)(e)}#oS(){return this.bookmark.selectedReminderType!==D.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)}):h.Promise.reject((0,E.i18n)("bookmarks.invalid_custom_datetime"))}#oA(){return this.bookmarkApi.delete(this.bookmark.id).then(e=>{this.args.model.afterDelete?.(e,this.bookmark.id)})}#oC(e){this._savingBookmarkManually=!1,"string"==typeof e?this.flash=(0,A.sanitize)(e):this.flash=(0,A.sanitize)((0,k.extractError)(e))}#ow(){S.default.pause(),Object.keys(F).forEach(e=>{this._itsatrap.bind(e,()=>(this[F[e].handler](),!1))})}#ok(){this.existingBookmarkHasReminder&&this.editingExistingBookmark&&(this.prefilledDatetime=this.bookmark.reminderAt,this.bookmark.selectedDatetime=(0,M.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone))}#oT(){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)}static #K=(()=>(0,r.setComponentTemplate)((0,P.createTemplateFactory)({id:"Z/TUUM+K",block:'[[[1,"\\n "],[8,[32,0],[[24,1,"bookmark-reminder-modal"],[24,0,"bookmark-reminder-modal"],[16,"data-bookmark-id",[30,0,["bookmark","id"]]],[4,[32,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,[32,2],[[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,[32,3],[[24,1,"bookmark-name"],[24,3,"bookmark-name"],[24,0,"bookmark-name"],[16,"placeholder",[28,[32,4],["post.bookmarks.name_placeholder"],null]],[16,"aria-label",[28,[32,4],["post.bookmarks.name_input_label"],null]]],[["@value"],[[30,0,["bookmark","name"]]]],null],[1,"\\n "],[8,[32,2],[[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,[32,4],["bookmarks.auto_delete_preference.label"],null]],[13],[1,"\\n "],[8,[32,5],[[24,0,"bookmark-option-selector"]],[["@content","@value","@id","@onChange"],[[30,0,["autoDeletePreferences"]],[30,0,["bookmark","autoDeletePreference"]],"bookmark-auto-delete-preference",[28,[32,6],[[28,[31,1],[[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,[32,7],["far-clock"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,4],["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,[32,4],["post.bookmarks.set_reminder"],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["userHasTimezoneSet"]],[[[1," "],[8,[32,8],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,[32,9],[[28,[32,4],["bookmarks.no_timezone"],[["basePath"],[[28,[32,10],null,null]]]]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,2],[[24,1,"save-bookmark"],[24,0,"btn-primary"]],[["@label","@action"],["bookmarks.save",[30,0,["saveAndClose"]]]],null],[1,"\\n "],[8,[32,11],null,[["@close"],[[30,0,["closeWithoutSavingBookmark"]]]],null],[1,"\\n"],[41,[30,0,["showDelete"]],[[[1," "],[8,[32,2],[[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," "]],[]]]]],[1,"\\n "]],[],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/bookmark.js",scope:()=>[g.default,u.default,m.default,r.Input,E.i18n,L.default,a.fn,b.default,_.default,w.default,y.default,f.default],isStrictMode:!0}),this))()}},26069:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(73326),n=i(96791),r=i(9032),a=i(75370),o=i(13355),l=i(7385),u=i(58843),d=i(2903),c=i(33186),p=i(70508),h=i(32045),m=i(1519),g=i(69522);let f=(0,a.default)((0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"ZsOSnrNg",block:'[[[1,"\\n "],[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,1,["lockImageUrl"]]],[14,0,"password-reset-img"],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n\\n "],[10,"form"],[12],[1,"\\n"],[41,[30,1,["model","error"]],[[[1," "],[10,0],[14,0,"error-info"],[12],[1,"\\n "],[1,[28,[32,0],[[30,1,["model","error"]]],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["model","can_login"]],[[[1," "],[10,0],[14,0,"email-login-form"],[12],[1,"\\n"],[41,[30,1,["secondFactorRequired"]],[[[41,[30,1,["model","security_key_required"]],[[[1," "],[8,[32,1],null,[["@setShowSecurityKey","@setSecondFactorMethod","@backupEnabled","@totpEnabled","@otherMethodAllowed","@action"],[[28,[32,2],[[28,[31,1],[[30,1,["model","security_key_required"]]],null]],null],[28,[32,2],[[28,[31,1],[[30,1,["secondFactorMethod"]]],null]],null],[30,1,["model","backup_codes_enabled"]],[30,1,["model","totp_enabled"]],[30,1,["secondFactorRequired"]],[30,1,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,3],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@totpEnabled","@isLogin"],[[30,1,["secondFactorMethod"]],[30,1,["secondFactorToken"]],[30,1,["model","backup_codes_enabled"]],[30,1,["model","totp_enabled"]],true]],[["default"],[[[[1,"\\n "],[8,[32,4],[[16,2,[30,1,["secondFactorToken"]]],[4,[32,5],["input",[28,[32,6],[[28,[32,2],[[28,[31,1],[[30,1,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,1,["secondFactorMethod"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1," "],[10,"h2"],[12],[1,[28,[32,7],["email_login.confirm_title"],[["site_name"],[[30,1,["siteSettings","title"]]]]]],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,7],["email_login.logging_in_as"],[["email"],[[30,1,["model","token_email"]]]]]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,1,["model","security_key_required"]]],[[[1," "],[8,[32,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@label","@action"],["email_login.confirm_button",[30,1,["finishLogin"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if","mut","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/email-login.js",scope:()=>[r.htmlSafe,d.default,s.fn,l.default,u.default,n.on,c.default,p.i18n,o.default],isStrictMode:!0}),(0,g.default)(void 0,void 0)))},26088:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Adapter:()=>a.default,QUnitAdapter:()=>l.default,Test:()=>r.default,setupForTesting:()=>o.default});var s=i(64874),n=i(82050),r=i(56042),a=i(11458),o=i(34078),l=i(47408);(0,n.registerTestImplementation)(s.E)},26132:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i,s){var n={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",""+e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",""+e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",""+e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",""+e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",""+e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",""+e+" ars"]};return s||t?n[i][0]:n[i][1]}return e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},26255:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";function t(e,t,i,s){var n={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?n[i][0]:n[i][1]}return e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,i){return e<12?i?"bn":"BN":i?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var i=t.toLowerCase();return i.includes("w")||i.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),i=e.length>1?e.substring(e.length-2):"";return 12!=i&&13!=i&&("2"==t||"3"==t||"50"==i||"70"==t||"80"==t)?"yê":"ê"}(e)},week:{dow:1,doy:4}})})},26281:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QUOTE_REGEXP:()=>r,buildQuote:()=>a});var s=i(39668),n=i(80484);let r=/\[quote=([^\]]*)\]((?:[\s\S](?!\[quote=[^\]]*\]))*?)\[\/quote\]/im;function a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!t)return"";let r=e.name;i.username&&i.username!==e.username&&(r=null);let a=[(0,n.prioritizeNameFallback)(r,i.username||e.username),`post:${i.post||e.post_number}`,`topic:${i.topic||e.topic_id}`];return i.full&&a.push("full:true"),(0,s.helperContext)().siteSettings.display_name_on_posts&&!(0,s.helperContext)().siteSettings.prioritize_username_in_ux&&r&&a.push(`username:${i.username||e.username}`),`[quote="${a.join(", ")}"] ${t.trim()} [/quote] `}},26340:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],n=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})})},26432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(73326),n=i(96791),r=i(75370),a=i(57079),o=i(13355),l=i(58843),u=i(74765),d=i(33186),c=i(70508),p=i(32045),h=i(1519),m=i(69522);let g=(0,r.default)((0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"RUjA+Sf8",block:'[[[1,"\\n "],[1,[32,0]],[1,"\\n\\n"],[41,[30,1,["message"]],[[[1," "],[10,0],[15,0,[29,["alert ",[30,1,["alertClass"]]]]],[12],[1,[30,1,["message"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,1,["loadError"]]],[[[1," "],[10,"h3"],[12],[1,[30,1,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,1,["customDescription"]],[[[1," "],[10,2],[14,0,"action-description"],[12],[1,[30,1,["customDescription"]]],[13],[1,"\\n"]],[]],null],[1," "],[10,2],[12],[1,[30,1,["secondFactorDescription"]]],[13],[1,"\\n"],[41,[30,1,["showSecurityKeyForm"]],[[[1," "],[10,0],[14,1,"security-key"],[12],[1,"\\n "],[8,[32,1],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,1,["authenticateSecurityKey"]],"key","login.security_key_authenticate"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[32,2],[[30,1,["showTotpForm"]],[30,1,["showBackupCodesForm"]]],null],[[[1," "],[10,"form"],[15,0,[30,1,["inputFormClass"]]],[12],[1,"\\n "],[8,[32,3],[[16,2,[30,1,["secondFactorToken"]]],[4,[32,4],["input",[28,[32,5],[[28,[32,6],[[28,[31,2],[[30,1,["secondFactorToken"]]],null]],null]],null]],null]],[["@secondFactorMethod"],[[30,1,["shownSecondFactorMethod"]]]],null],[1,"\\n\\n "],[8,[32,1],[[24,0,"btn-primary"],[24,4,"submit"]],[["@isLoading","@disabled","@action","@label"],[[30,1,["isLoading"]],[28,[32,7],[[30,1,["isSecondFactorTokenValid"]]],null],[30,1,["authenticateToken"]],"submit"]],null],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1,"\\n"],[41,[30,1,["alternativeMethods","length"]],[[[1," "],[10,2],[12],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,1,["alternativeMethods"]]],null]],null],null,[[[41,[28,[32,8],[[30,3],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,2,["class"]]]]],[4,[32,4],["click",[28,[32,6],[[30,1,["useAnotherMethod"]],[30,2,["id"]]],null]],null],[12],[1,"\\n "],[1,[28,[32,9],[[30,2,["translationKey"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1," "]],["@controller","method","index"],false,["if","unless","mut","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/second-factor-auth.js",scope:()=>[u.default,o.default,a.or,l.default,n.on,d.default,s.fn,a.not,a.gt,c.i18n],isStrictMode:!0}),(0,m.default)(void 0,void 0)))},26449:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(31075),r=i(11837),a=i(44233),o=i(96059);let l=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[s.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"capabilities",[s.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();worker=null;workerUrl=(()=>(0,r.getAbsoluteURL)("/javascripts/media-optimization-worker.js"))();currentComposerUploadData=null;promiseResolvers=null;workerDoneCount=0;workerPendingCount=0;async optimizeImage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.promiseResolvers=this.promiseResolvers||{},this.stopWorkerOnError=!t.hasOwnProperty("stopWorkerOnError")||t.stopWorkerOnError,/(\.|\/)(jpe?g|png)$/i.test(e.type)?e.size{let i;this.logIfDebug(`Transforming ${e.name}`),this.currentComposerUploadData=e,this.promiseResolvers[e.id]=t;try{i=await (0,o.fileToImageData)(e.data,this.capabilities.isIOS)}catch(e){return this.logIfDebug(e),t()}this.worker.postMessage({type:"compress",fileId:e.id,file:i.data.buffer,fileName:e.name,width:i.width,height:i.height,settings:{resize_threshold:this.siteSettings.composer_media_optimization_image_resize_dimensions_threshold,resize_target:this.siteSettings.composer_media_optimization_image_resize_width_target,resize_pre_multiply:this.siteSettings.composer_media_optimization_image_resize_pre_multiply,resize_linear_rgb:this.siteSettings.composer_media_optimization_image_resize_linear_rgb,encode_quality:this.siteSettings.composer_media_optimization_image_encode_quality,debug_mode:this.siteSettings.composer_media_optimization_debug_mode}},[i.data.buffer]),this.workerPendingCount++})):n.Promise.resolve()}async ensureAvailableWorker(){return this.worker&&this.workerInstalled?n.Promise.resolve():this.installPromise?this.installPromise:this.install()}async install(){return this.installPromise=new n.Promise((e,t)=>{this.afterInstalled=e,this.failedInstall=t,this.logIfDebug("Installing worker."),this.startWorker(),this.registerMessageHandler(),this.worker.postMessage({type:"install",settings:{mozjpeg_script:(0,r.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.js"),mozjpeg_wasm:(0,r.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.wasm"),resize_script:(0,r.getURLWithCDN)("/javascripts/squoosh/squoosh_resize.js"),resize_wasm:(0,r.getURLWithCDN)("/javascripts/squoosh/squoosh_resize_bg.wasm")}}),this.appEvents.on("composer:closed",this,"stopWorker")}),this.installPromise}startWorker(){this.logIfDebug("Starting media-optimization-worker"),this.worker=new Worker(this.workerUrl)}stopWorker(){this.worker&&(this.logIfDebug("Stopping media-optimization-worker..."),this.workerInstalled=!1,this.worker.terminate(),this.worker=null,this.workerDoneCount=0),this.workerPendingCount=0}registerMessageHandler(){this.worker.onmessage=e=>{switch(e.data.type){case"file":let t=new File([e.data.file],e.data.fileName,{type:"image/jpeg"});this.logIfDebug(`Finished optimization of ${t.name} new size: ${t.size}.`),this.promiseResolvers[e.data.fileId](t),this.workerDoneCount++,this.workerPendingCount--,this.workerDoneCount>4&&0===this.workerPendingCount&&(this.logIfDebug("Terminating worker to release memory in WASM."),this.stopWorker());break;case"error":this.logIfDebug(`Handling error message from image optimization for ${e.data.fileName}.`),this.stopWorkerOnError&&this.stopWorker(),this.promiseResolvers[e.data.fileId](),this.workerPendingCount--;break;case"installed":this.logIfDebug("Worker installed."),this.workerInstalled=!0,this.afterInstalled(),this.cleanupInstallPromises();break;case"installFailed":this.logIfDebug("Worker failed to install."),this.failedInstall(e.data.errorMessage),this.cleanupInstallPromises();break;default:this.logIfDebug(`Sorry, we are out of ${e}.`)}}}cleanupInstallPromises(){this.afterInstalled=null,this.failedInstall=null,this.installPromise=null}logIfDebug(){this.siteSettings.composer_media_optimization_debug_mode&&console.log(...arguments)}},[a.disableImplicitInjections])},26490:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(75093),r=i(2142),a=i(81879),o=i(27797),l=i(70508);class u extends o.default{static #e=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#h=(()=>void dt7948.i(this,"modal"))();titleToken(){return(0,l.i18n)("groups.members.title")}model(e){return this._params=e,this.modelFor("group")}setupController(e,t){e.setProperties({model:t,filterInput:this._params.filter,showing:"members"}),e.reloadMembers(!0)}showAddMembersModal(){this.modal.show(a.default,{model:this.modelFor("group")})}static #i=(()=>dt7948.n(this.prototype,"showAddMembersModal",[s.action]))();showInviteModal(){let e=this.modelFor("group");this.modal.show(r.default,{model:{groupIds:[e.id]}})}static #n=(()=>dt7948.n(this.prototype,"showInviteModal",[s.action]))();didTransition(){return this.controllerFor("group-index").set("filterInput",this._params.filter),!0}static #a=(()=>dt7948.n(this.prototype,"didTransition",[s.action]))()}},26547:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(96791),r=i(75093),a=i(16682),o=i(51318),l=i(50728),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get showFullnameInstructions(){return this.siteSettings.show_signup_form_full_name_instructions&&!this.args.nameValidation.reason}static #i=(()=>(0,d.setComponentTemplate)((0,c.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:()=>[o.default,l.default,n.on,u.i18n,a.default],isStrictMode:!0}),this))()}},26592:(e,t,i)=>{var s;!function(n,r,a){if(n){for(var o,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},d={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p={},h=1;h<20;++h)l[111+h]="f"+h;for(h=0;h<=9;++h)l[h+96]=h.toString();b.prototype.bind=function(e,t,i){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,i),this},b.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},b.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},b.prototype.reset=function(){return this._callbacks={},this._directMap={},this},b.prototype.destroy=function(){this.reset(),g(this.target,"keypress",this._handleKeyEvent),g(this.target,"keydown",this._handleKeyEvent),g(this.target,"keyup",this._handleKeyEvent),this.target=a,this._handleKeyEvent=a},b.prototype.stopCallback=function(e,t,i,s){if(this.paused)return!0;if(p[i]||p[s]||(" "+t.className+" ").indexOf(" itsatrap ")>-1||function e(t,i){return null!==t&&t!==r&&(t===i||e(t.parentNode,i))}(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);o=null},b.prototype.pause=function(){this.paused=!0},b.prototype.unpause=function(){this.paused=!1},b.prototype.bindGlobal=function(e,t,i){if(this.bind(e,t,i),e instanceof Array){for(var s=0;s95&&e<112||l.hasOwnProperty(e)&&(o[l[e]]=e);return o}()[e]?"keydown":"keypress"),"keypress"==i&&t.length&&(i="keydown"),i}(s,r,t),{key:s,modifiers:r,action:t}}function b(e){var t,i=this;if(e=e||r,!(i instanceof b))return new b(e);i.target=e,i._callbacks={},i._directMap={};var s={},n=!1,a=!1,o=!1;function l(e){e=e||{};var t,i=!1;for(t in s){if(e[t]){i=!0;continue}s[t]=0}i||(o=!1)}function u(e,t,n,r,a,o){var l,u,d=[],c=n.type;if(!i._callbacks[e])return[];for("keyup"==c&&_(e)&&(t=[e]),l=0;l1)return void function(i,r,a,u){function c(e){d(a,e,i),"keyup"!==u&&(n=f(e)),setTimeout(l,10)}s[i]=0;for(var p=0;p{"use strict";function s(){return()=>{}}i.r(t),i.d(t,{default:()=>s})},26628:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u}),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);i(28543),i(40413),i(78805),i(25601);var n=i(57460);i(82540),i(27926),i(82069),i(32693);var r=i(61312),a=i(61342),o=i(51899),l=i(35243);class u extends a.FrameworkObject.extend(r.default,n.default){isView=!0;_superTrigger;_superHas;init(e){super.init(e),this._superTrigger=this.trigger,this.trigger=this._trigger,this._superHas=this.has,this.has=this._has,this.parentView??=null,this._state="preRender",this._currentState=this._states.preRender}static #e=(()=>(0,l.d)(this.prototype,"renderer",[(0,s.p)("renderer","-dom")]))();#oD=(()=>void(0,l.i)(this,"renderer"))();instrumentDetails(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e}_trigger(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(20133),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.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:()=>[s.default,n.i18n],isStrictMode:!0}),(0,o.default)(void 0,"category-notifications-tracking:CategoryNotificationsTracking"))},26724:(e,t,i)=>{"use strict";i.r(t),i.d(t,{clearHTMLCache:()=>o,getCustomHTML:()=>a,setCustomHTML:()=>l});var s=i(9032),n=i(34472);let r={};function a(e){let t=r[e];if(t)return(0,s.htmlSafe)(t);let i=n.default.get("customHTML");if(i&&i[e]&&i[e].length)return(0,s.htmlSafe)(i[e])}function o(){r={}}function l(e,t){r[e]=t}},26746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{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 i of t.children)e.push(this._wrapDirectImage(i));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),i=Array(e).fill(0);return this.items.forEach(s=>{let n=0;for(let t=1;t{"use strict";i.r(t),i.d(t,{addBulkDropdownAction:()=>D,default:()=>M});var s=i(93317),n=i(7155),r=i(32045),a=i(96791),o=i(86981),l=i(64081),u=i(75093),d=i(9032),c=i(31075),p=i(17221),h=i(13355),m=i(39826),g=i(10822),f=i(14104),_=i(10216),y=i(23062),b=i(63159),w=i(59808),k=i(70508),T=i(56179),S=i(34875),C=i(1519);let A={};function D(e,t){A[e]=t}class M extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[u.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[u.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #n=(()=>dt7948.g(this.prototype,"activeComponent",[n.tracked],function(){return null}))();#oM=(()=>void dt7948.i(this,"activeComponent"))();static #a=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#n_=(()=>void dt7948.i(this,"tags"))();static #l=(()=>dt7948.g(this.prototype,"categoryId",[n.tracked]))();#ox=(()=>void dt7948.i(this,"categoryId"))();static #d=(()=>dt7948.g(this.prototype,"loading",[n.tracked]))();#sA=(()=>void dt7948.i(this,"loading"))();static #p=(()=>dt7948.g(this.prototype,"errors",[n.tracked]))();#oE=(()=>void dt7948.i(this,"errors"))();static #m=(()=>dt7948.g(this.prototype,"isSilent",[n.tracked],function(){return!1}))();#oL=(()=>void dt7948.i(this,"isSilent"))();static #f=(()=>dt7948.g(this.prototype,"closeNote",[n.tracked],function(){return null}))();#oP=(()=>void dt7948.i(this,"closeNote"))();notificationLevelId=null;constructor(){super(...arguments),"set-component"===this.model.initialAction&&this.model.initialActionLabel in A&&A[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,i=[];for(;tasync()=>{let i=await b.default.bulkOperation(t,e,n);return this.processedTopicCount+=t.length,i});return new c.Promise((e,i)=>{let n=async()=>{if(0===r.length)return e(s.map(e=>t.findBy("id",e)));let a=r.shift();try{let e=await a();e?.topic_ids&&s.push(...e.topic_ids),n()}catch{i()}};n()})}setComponent(e){this.activeComponent=e}static #y=(()=>dt7948.n(this.prototype,"setComponent",[o.action]))();registerCustomAction(e){this.customAction=e}static #v=(()=>dt7948.n(this.prototype,"registerCustomAction",[o.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={type:this.model.action},t=(0,l.getOwner)(this).lookup("controller:user-private-messages");t.isGroup&&(e.group=t.groupFilter);let i=(0,l.getOwner)(this).lookup("controller:group-messages");i.isGroup&&(e.group=i.model.name),this.performAndRefresh(e);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)):A[this.model.initialActionLabel](this)}}static #k=(()=>dt7948.n(this.prototype,"performAction",[o.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 i=await this.perform(e);i&&(i.forEach(t),this.model.refreshClosure?.(),this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast())}static #S=(()=>dt7948.n(this.prototype,"forEachPerformed",[o.action]))();async performAndRefresh(e){await this.perform(e),this.model.refreshClosure?.().then(()=>{this.args.closeModal(),this.model.bulkSelectHelper.toggleBulkSelect(),this.showToast()})}static #A=(()=>dt7948.n(this.prototype,"performAndRefresh",[o.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 #M=(()=>dt7948.n(this.prototype,"updateCloseNote",[o.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 #E=(()=>dt7948.n(this.prototype,"onCategoryChange",[o.action]))();static #P=(()=>(0,r.setComponentTemplate)((0,C.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,d.htmlSafe,T.default,g.default,S.default,a.on,w.default,r.Input,h.default],isStrictMode:!0}),this))()}},26819:(e,t,i)=>{e.exports=i(56687).Symbol},26884:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(48459),n=i(99117),r=i(69408);function a(e){return"html"===(0,s.A)(e)?e:e.assignedSlot||e.parentNode||((0,r.Ng)(e)?e.host:null)||(0,n.A)(e)}},26934:(e,t,i)=>{"use strict";i.r(t),i.d(t,{checkWaiters:()=>o,registerWaiter:()=>r,unregisterWaiter:()=>a});let s=[],n=[];function r(){let e,t;1==arguments.length?(t=null,e=arguments.length<=0?void 0:arguments[0]):(t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1]),l(t,e)>-1||(s.push(t),n.push(e))}function a(e,t){if(!n.length)return;1==arguments.length&&(t=e,e=null);let i=l(e,t);-1!==i&&(s.splice(i,1),n.splice(i,1))}function o(){if(!n.length)return!1;for(let e=0;e{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(57079),n=i(41666),r=i(32851),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"xgiL4VCl",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"],[41,[28,[32,1],[[30,1,["emptyStateComponent"]],[28,[32,2],[[30,1,["filteredLinks","length"]]],null]],null],[[[1," "],[8,[30,1,["emptyStateComponent"]],null,null,null],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["filteredLinks"]]],null]],null],"name",[[[1," "],[8,[32,3],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,1],[[30,4],[28,[32,4],[[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:()=>[n.default,s.and,s.not,r.default,s.eq],isStrictMode:!0}),(0,l.default)(void 0,"api-section:SidebarApiSection"))},26999:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return(12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t)?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})},27e3:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(9032),n=i(67698),r=i(35697);function a(e,t){return e=(0,s.isHTMLSafe)(e)?e.toString():(0,r.escapeExpression)(e),(0,s.htmlSafe)((0,n.emojiUnescape)(e,t))}},27040:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})},27100:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function i(e,t,i,s){return t?n(i)[0]:s?n(i)[1]:n(i)[2]}function s(e){return e%10==0||e>10&&e<20}function n(e){return t[e].split("_")}function r(e,t,r,a){var o=e+" ";return 1===e?o+i(e,t,r[0],a):t?o+(s(e)?n(r)[1]:n(r)[0]):a?o+n(r)[1]:o+(s(e)?n(r)[1]:n(r)[2])}return e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,s){return t?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})},27127:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(1519),r=i(69522);let a=(0,s.setComponentTemplate)((0,n.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"))},27149:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(1519),r=i(69522);let a=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:"6/Eb6fBg",block:'[[[1,"\\n"],[1," "],[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],[1,"\\n"]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/google-icon.js",isStrictMode:!0}),(0,r.default)(void 0,"google-icon:GoogleIcon"))},27155:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(11837),n=i(99904),r=i(70508);let a=class extends n.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"}}},27163:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(7155),n=i(55815);class r{static #e=(()=>dt7948.g(this.prototype,"shouldDisplay",[s.tracked],function(){return this._isInbox}))();#oF=(()=>void dt7948.i(this,"shouldDisplay"))();static #i=(()=>dt7948.g(this.prototype,"count",[s.tracked],function(){return 0}))();#t9=(()=>void dt7948.i(this,"count"))();constructor(e){let{group:t,currentUser:i,type:s,pmTopicTrackingState:n}=e;this.group=t,this.currentUser=i,this.type=s,this.pmTopicTrackingState=n}refreshCount(){this._refreshCount()}_refreshCount(){this.shouldDisplay&&this._shouldTrack&&(this.count=this.pmTopicTrackingState.lookupCount(this.type,{inboxFilter:this.group?"group":"user",groupName:this.group?.name}))}set setDisplayState(e){let t=this.shouldDisplay!==e;this.shouldDisplay=e,t&&this._refreshCount()}get inboxFilter(){throw"not implemented"}expand(){this._isInbox||(this.setDisplayState=!0)}collapse(){this._isInbox||(this.setDisplayState=!1)}pageChanged(e){let{currentRouteName:t,currentRouteParams:i,privateMessageTopic:s}=e;throw"not implemented"}get _isInbox(){return this.type===n.INBOX}get _shouldTrack(){return this.type===n.NEW||this.type===n.UNREAD}get prefixType(){if(this._isInbox)return"icon"}get prefixValue(){if(this._isInbox)return"inbox"}}},27202:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(64081),n=i(24813);class r{constructor(e,t,i,s){let{applyStyle:n=!0}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.widget=e,this.opts=i,this.componentName=t,this.trackedProperties=s||[],this.applyStyle=n,this._component=null}init(){let e=document.createElement("div");return this.applyStyle&&(e.style.display="inline-flex"),e.className="widget-component-connector",this.elem=e,(0,n.scheduleOnce)("afterRender",this,this.connectComponent),this.elem}destroy(){this._component?.destroy()}update(e){let t=!1;return(this.trackedProperties.forEach(i=>{e.opts[i]!==this.opts[i]&&(t=!0)}),t)?this.init():null}connectComponent(){let{elem:e,opts:t,widget:i,componentName:n}=this,r=i._findView(),a=(0,s.getOwner)(r).factoryFor(`component:${n}`).create(t);a.selectKit&&a.didReceiveAttrs(),r._connected.push(a),a.renderer.appendTo(a,e),this._component=a}}r.prototype.type="Widget"},27251:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w,triggerEvent:()=>D});var s=i(29023),n=i(86981),r=i(64081),a=i(88591),o=i(34521),l=i(15117),u=i(80115),d=i(34100);i(57330),i(60569),i(77188),i(71729),i(89352),i(77061);var c=i(31847);i(28543);var p=i(3561);i(40413),i(78805),i(25601),i(57460),i(82540),i(27926),i(82069),i(32693);var h=i(61312),m=i(24813),g=i(50729),f=i(18779),_=i(11719);function y(){return this}i(90760),i(76169);let{slice:b}=Array.prototype;class w extends n.default.extend(h.default){_routerMicrolib;_didSetupRouter=!1;_initialTransitionStarted=!1;currentURL=null;currentRouteName=null;currentPath=null;currentRoute=null;_qpCache=(()=>Object.create(null))();_qpUpdates=(()=>new Set)();_queuedQPChanges={};_bucketCache;_toplevelView=null;_handledErrors=(()=>new Set)();_engineInstances=(()=>Object.create(null))();_engineInfoByRoute=(()=>Object.create(null))();_routerService;_slowTransitionTimer=null;namespace;static dslCallbacks;static map(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this}static _routePath(e){let t,i,s=[];for(let n=1;n{e.setURL(i),(0,c.s)(t,"currentURL",i)})}didTransition(e){t.didTransition(e)}willTransition(e,i){t.willTransition(e,i)}triggerEvent(e,i,s,n){return D.bind(t)(e,i,s,n)}routeWillChange(e){t.trigger("routeWillChange",e),t._routerService.trigger("routeWillChange",e),e.isIntermediate&&t.set("currentRoute",e.to)}routeDidChange(e){t.set("currentRoute",e.to),(0,m.once)(()=>{t.trigger("routeDidChange",e),t._routerService.trigger("routeDidChange",e)})}transitionDidError(e,i){return e.wasAborted||i.isAborted?(0,_.l)(i):((i.trigger(!1,"error",e.error,i,e.route),t._isErrorHandled(e.error))?(i.rollback(),this.routeDidChange(i)):i.abort(),e.error)}replaceURL(i){e.replaceURL?(0,m.once)(()=>{e.replaceURL(i),(0,c.s)(t,"currentURL",i)}):this.updateURL(i)}}let a=this._routerMicrolib=new n,o=this.constructor.dslCallbacks||[y],l=this._buildDSL();l.route("application",{path:"/",resetNamespace:!0,overrideNameAssertion:!0},function(){for(let e=0;ei.factoryFor(`route-map:${e}`),addRouteForEngine(e,i){t._engineInfoByRoute[e]||(t._engineInfoByRoute[e]=i)}})}_resetQueuedQueryParameterChanges(){this._queuedQPChanges={}}_hasModuleBasedResolver(){let e=(0,r.getOwner)(this);return!!(0,d.g)(e,"application.__registry__.resolver.moduleBasedResolver")}startRouting(){if(this.setupRouter()){let e=(0,d.g)(this,"initialURL");void 0===e&&(e=(0,d.g)(this,"location").getURL());let t=this.handleURL(e);if(t&&t.error)throw t.error}}setupRouter(){if(this._didSetupRouter)return!1;this._didSetupRouter=!0,this._setupLocation();let e=(0,d.g)(this,"location");return!(0,d.g)(e,"cancelRouterSetup")&&(this._initRouterJs(),e.onUpdateURL(e=>{this.handleURL(e)}),!0)}_setOutlets(){if(this.isDestroying||this.isDestroyed)return;let e=this._routerMicrolib.currentRouteInfos;if(!e)return;let t=null,i=null;for(let s of e){let e=s.route,n=(0,g.getRenderState)(e);if(n){let e={render:n,outlets:{main:void 0}};i?i.outlets.main=e:t=e,i=e}else break}if(null!==t)if(this._toplevelView)this._toplevelView.setOutletState(t);else{let e=(0,r.getOwner)(this),i=e.factoryFor("view:-outlet"),s=e.lookup("application:main"),n=e.lookup("-environment:main"),a=e.lookup("template:-outlet");this._toplevelView=i.create({environment:n,template:a,application:s}),this._toplevelView.setOutletState(t);let o=e.lookup("-application-instance:main");o&&o.didCreateRootView(this._toplevelView)}}handleURL(e){let t=e.split(/#(.+)?/)[0];return this._doURLTransition("handleURL",t)}_doURLTransition(e,t){this._initialTransitionStarted=!0;let i=this._routerMicrolib[e](t||"/");return E(i,this),i}transitionTo(){for(var e=arguments.length,t=Array(e),i=0;i1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s{if(s)delete t[e],t[s.urlKey]=s.route.serializeQueryParam(i,s.urlKey,s.type);else{if(void 0===i)return;t[e]=this._serializeQueryParam(i,(0,p.default)(i))}})}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){L(this,e,t,(e,i,s)=>{s&&(delete t[e],t[s.prop]=s.route.deserializeQueryParam(i,s.urlKey,s.type))})}_deserializeQueryParam(e,t){if(null==e);else if("boolean"===t)return"true"===e;else if("number"===t)return Number(e).valueOf();else if("array"===t)return(0,u.A)(JSON.parse(e));return e}_pruneDefaultQueryParamValues(e,t){let i=this._queryParamsFor(e);for(let e in t){let s=i.map[e];s&&s.serializedDefaultValue===t[e]&&delete t[e]}}_doTransition(e,t,i,s){let n=e||(0,l.getActiveTargetName)(this._routerMicrolib);this._initialTransitionStarted=!0;let r={};this._processActiveTransitionQueryParams(n,t,r,i),Object.assign(r,i),this._prepareQueryParams(n,t,r,!!s);let a=this._routerMicrolib.transitionTo(n,...t,{queryParams:r});return E(a,this),a}_processActiveTransitionQueryParams(e,t,i,s){if(!this._routerMicrolib.activeTransition)return;let n={},r=this._qpUpdates,a=(0,g.getFullQueryParams)(this,this._routerMicrolib.activeTransition[_.S]);for(let e in a)r.has(e)||(n[e]=a[e]);this._fullyScopeQueryParams(e,t,s),this._fullyScopeQueryParams(e,t,n),Object.assign(i,n)}_prepareQueryParams(e,t,i,s){let n=M(this,e,t);this._hydrateUnsuppliedQueryParams(n,i,!!s),this._serializeQueryParams(n.routeInfos,i),s||this._pruneDefaultQueryParamValues(n.routeInfos,i)}_getQPMeta(e){let t=e.route;return t&&(0,d.g)(t,"_qp")}_queryParamsFor(e){let t,i=e.length,s=e[i-1].name,n=this._qpCache[s];if(void 0!==n)return n;let r=!0,a={},o=[];for(let i of e){if(!(t=this._getQPMeta(i))){r=!1;continue}for(let e of t.qps)o.push(e);Object.assign(a,t.map)}let l={qps:o,map:a};return r&&(this._qpCache[s]=l),l}_fullyScopeQueryParams(e,t,i){let s;for(let n of M(this,e,t).routeInfos)if(s=this._getQPMeta(n))for(let e of s.qps){let t=e.prop in i&&e.prop||e.scopedPropertyName in i&&e.scopedPropertyName||e.urlKey in i&&e.urlKey;t&&t!==e.scopedPropertyName&&(i[e.scopedPropertyName]=i[t],delete i[t])}}_hydrateUnsuppliedQueryParams(e,t,i){let s,n,r,a=e.routeInfos,o=this._bucketCache;for(let i of a)if(s=this._getQPMeta(i))for(let i=0,a=s.qps.length;i=0;--i){let s=e[i],n=s.route;if(void 0!==n&&!0!==t(n,s))return}}let T={willResolveModel(e,t,i){this._scheduleLoadingEvent(t,i)},error(e,t,i){let s=this,n=e[e.length-1];k(e,(e,i)=>{if(i!==n){let i=C(e,"error");if(i)return s._markErrorAsHandled(t),s.intermediateTransitionTo(i,t),!1}let r=S(e,"error");return!r||(s._markErrorAsHandled(t),s.intermediateTransitionTo(r,t),!1)}),function(e,t){let i,s=[];i=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e,t&&s.push(t),i&&(i.message&&s.push(i.message),i.stack&&s.push(i.stack),"string"==typeof i&&s.push(i)),console.error(...s)}(t,`Error while processing route: ${i.targetName}`)},loading(e,t){let i=this,s=e[e.length-1];k(e,(e,n)=>{if(n!==s){let t=C(e,"loading");if(t)return i.intermediateTransitionTo(t),!1}let r=S(e,"loading");return r?(i.intermediateTransitionTo(r),!1):t.pivotHandler!==e})}};function S(e,t){let i=(0,r.getOwner)(e),{routeName:s,fullRouteName:n,_router:a}=e,o=`${s}_${t}`,l=`${n}_${t}`;return A(i,a,o,l)?l:""}function C(e,t){let i=(0,r.getOwner)(e),{routeName:s,fullRouteName:n,_router:a}=e,o="application"===s?t:`${s}.${t}`,l="application"===n?t:`${n}.${t}`;return A(i,a,o,l)?l:""}function A(e,t,i,s){let n=t.hasRoute(s),r=e.factoryFor(`template:${i}`)||e.factoryFor(`route:${i}`);return n&&r}function D(e,t,i,s){let n,r;if(!e){if(t)return;throw Error(`Can't trigger action '${i}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks.`)}let a=!1;for(let t=e.length-1;t>=0;t--)if(r=(n=e[t].route)&&n.actions&&n.actions[i])if(!0===r.apply(n,s))a=!0;else{"error"===i&&n._router._markErrorAsHandled(s[0]);return}let o=T[i];if(o)return void o.call(this,e,...s);if(!a&&!t)throw Error(`Nothing handled the action '${i}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`)}function M(e,t,i){let s=e._routerMicrolib.applyIntent(t,i),{routeInfos:n,params:r}=s;for(let e of n)e.isResolved?r[e.name]=e.params:r[e.name]=e.serialize(e.context);return s}function x(e){let t=e._routerMicrolib.currentRouteInfos;if(0===t.length)return;let i=w._routePath(t),s=t[t.length-1].name,n=e.location.getURL();(0,c.s)(e,"currentPath",i),(0,c.s)(e,"currentRouteName",s),(0,c.s)(e,"currentURL",n)}function E(e,t){let i=new o.default(t,t._routerMicrolib,e[_.S]);t.currentState||t.set("currentState",i),t.set("targetState",i),e.promise=e.catch(e=>{if(t._isErrorHandled(e))t._clearHandledError(e);else throw e},"Transition Error")}function L(e,t,i,s){let n=e._queryParamsFor(t);for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e],r=n.map[e];s(e,t,r)}}w.reopen({didTransition:function(e){x(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)},willTransition:function(e,t){},rootURL:"/",location:"hash",url:(0,d.c)(function(){let e=(0,d.g)(this,"location");if("string"!=typeof e)return e.getURL()})})},27381:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C,resetLastEditNotificationClick:()=>S,setLastEditNotificationClick:()=>T});var s=i(7155),n=i(86981),r=i(91558),a=i(24813),o=i(75093),l=i(15383),u=i(60551),d=i(31075),c=i(87367),p=i(14051),h=i(63272),m=i(32386),g=i(79326),f=i(77296),_=i(35697),y=i(47872),b=i(63159),w=i(70508);let k=null;function T(e,t,i){k={topicId:e,postNumber:t,revisionNumber:i}}function S(){k=null}class C extends y.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"store",[o.service]))();#w=(()=>void dt7948.i(this,"store"))();static #n=(()=>dt7948.g(this.prototype,"filter",[s.tracked]))();#oI=(()=>void dt7948.i(this,"filter"))();static #a=(()=>dt7948.g(this.prototype,"filterRepliesToPostNumber",[s.tracked]))();#oN=(()=>void dt7948.i(this,"filterRepliesToPostNumber"))();static #l=(()=>dt7948.g(this.prototype,"filterUpwardsPostID",[s.tracked]))();#oj=(()=>void dt7948.i(this,"filterUpwardsPostID"))();static #d=(()=>dt7948.g(this.prototype,"gaps",[s.tracked]))();#oO=(()=>void dt7948.i(this,"gaps"))();static #p=(()=>dt7948.g(this.prototype,"lastId",[s.tracked]))();#oR=(()=>void dt7948.i(this,"lastId"))();static #m=(()=>dt7948.g(this.prototype,"loaded",[s.tracked]))();#oU=(()=>void dt7948.i(this,"loaded"))();static #f=(()=>dt7948.g(this.prototype,"loadingAbove",[s.tracked]))();#oB=(()=>void dt7948.i(this,"loadingAbove"))();static #y=(()=>dt7948.g(this.prototype,"loadingBelow",[s.tracked]))();#oY=(()=>void dt7948.i(this,"loadingBelow"))();static #v=(()=>dt7948.g(this.prototype,"loadingFilter",[s.tracked]))();#oH=(()=>void dt7948.i(this,"loadingFilter"))();static #k=(()=>dt7948.g(this.prototype,"loadingNearPost",[s.tracked]))();#oq=(()=>void dt7948.i(this,"loadingNearPost"))();static #S=(()=>dt7948.g(this.prototype,"postsWithPlaceholders",[s.tracked]))();#oz=(()=>void dt7948.i(this,"postsWithPlaceholders"))();static #A=(()=>dt7948.g(this.prototype,"stagingPost",[s.tracked]))();#o$=(()=>void dt7948.i(this,"stagingPost"))();static #M=(()=>dt7948.g(this.prototype,"stream",[s.tracked]))();#oV=(()=>void dt7948.i(this,"stream"))();static #E=(()=>dt7948.g(this.prototype,"timelineLookup",[s.tracked]))();#oW=(()=>void dt7948.i(this,"timelineLookup"))();static #P=(()=>dt7948.g(this.prototype,"userFilters",[s.tracked]))();#oK=(()=>void dt7948.i(this,"userFilters"))();static #I=(()=>dt7948.g(this.prototype,"posts",[s.tracked]))();#oG=(()=>void dt7948.i(this,"posts"))();static #j=(()=>dt7948.g(this.prototype,"loading",[(0,r.or)("loadingAbove","loadingBelow","loadingFilter","stagingPost")]))();#sA=(()=>void dt7948.i(this,"loading"))();static #R=(()=>dt7948.g(this.prototype,"notLoading",[(0,r.not)("loading")]))();#oJ=(()=>void dt7948.i(this,"notLoading"))();static #B=(()=>dt7948.g(this.prototype,"summary",[(0,r.equal)("filter","summary")]))();#oQ=(()=>void dt7948.i(this,"summary"))();static #H=(()=>dt7948.g(this.prototype,"canAppendMore",[(0,r.and)("notLoading","hasPosts","lastPostNotLoaded")]))();#oX=(()=>void dt7948.i(this,"canAppendMore"))();static #z=(()=>dt7948.g(this.prototype,"canPrependMore",[(0,r.and)("notLoading","hasPosts","firstPostNotLoaded")]))();#oZ=(()=>void dt7948.i(this,"canPrependMore"))();static #$=(()=>dt7948.g(this.prototype,"firstPostNotLoaded",[(0,r.not)("firstPostPresent")]))();#o1=(()=>void dt7948.i(this,"firstPostNotLoaded"))();static #V=(()=>dt7948.g(this.prototype,"lastPostNotLoaded",[(0,r.not)("loadedAllPosts")]))();#o0=(()=>void dt7948.i(this,"lastPostNotLoaded"))();_identityMap=null;init(){this._identityMap={};let e=[],t=g.default.create({posts:e,store:this.store});this.setProperties({posts:e,postsWithPlaceholders:t,stream:[],userFilters:[],filterRepliesToPostNumber:parseInt(this.get("topic.replies_to_post_number"),10)||!1,filterUpwardsPostID:!1,loaded:!1,loadingAbove:!1,loadingBelow:!1,loadingFilter:!1,stagingPost:!1,timelineLookup:[]})}filteredPostsCount(e,t,i){return e?i:t}static #W=(()=>dt7948.n(this.prototype,"filteredPostsCount",[(0,p.default)("isMegaTopic","stream.length","topic.highest_post_number")]))();hasPosts(){return this.get("posts.length")>0}static #K=(()=>dt7948.n(this.prototype,"hasPosts",[(0,p.default)("posts.[]")]))();hasLoadedData(e,t){return e&&t>0}static #G=(()=>dt7948.n(this.prototype,"hasLoadedData",[(0,p.default)("hasPosts","filteredPostsCount")]))();firstPostPresent(e){return!!e&&!!this.posts.findBy("post_number",1)}static #J=(()=>dt7948.n(this.prototype,"firstPostPresent",[(0,p.default)("hasLoadedData","posts.[]")]))();lastPostId(e,t,i){return e?i:t}static #Q=(()=>dt7948.n(this.prototype,"lastPostId",[(0,p.default)("isMegaTopic","stream.lastObject","lastId")]))();loadedAllPosts(e,t){return!!e&&(-1===t||!!this.posts.findBy("id",t))}static #X=(()=>dt7948.n(this.prototype,"loadedAllPosts",[(0,p.default)("hasLoadedData","lastPostId","posts.@each.id")]))();streamFilters(){let e={};this.filter&&(e.filter=this.filter);let t=this.userFilters;return(0,l.isEmpty)(t)||(e.username_filters=t.join(",")),this.filterRepliesToPostNumber&&(e.replies_to_post_number=this.filterRepliesToPostNumber),this.filterUpwardsPostID&&(e.filter_upwards_post_id=this.filterUpwardsPostID),e}static #Z=(()=>dt7948.n(this.prototype,"streamFilters",[(0,p.default)("filter","userFilters.[]","filterRepliesToPostNumber","filterUpwardsPostID")]))();hasNoFilters(){let e=this.streamFilters;return!(e&&("summary"===e.filter||e.username_filters))}static #ee=(()=>dt7948.n(this.prototype,"hasNoFilters",[(0,p.default)("streamFilters.[]","topic.posts_count","posts.length")]))();previousWindow(){if(!this.posts)return[];let e=this.posts[0];if(!e)return[];let t=this.stream,i=this.indexOf(e);if(-1===i)return[];let s=i-this.get("topic.chunk_size");return s<0&&(s=0),t.slice(s,i)}static #et=(()=>dt7948.n(this.prototype,"previousWindow",[(0,p.default)("posts.[]","stream.[]")]))();nextWindow(e){if(!e)return[];let t=this.stream,i=this.indexOf(e);return -1===i||i+1>=this.highest_post_number?[]:t.slice(i+1,i+this.get("topic.chunk_size")+1)}static #ei=(()=>dt7948.n(this.prototype,"nextWindow",[(0,p.default)("posts.lastObject","stream.[]")]))();cancelFilter(){this.setProperties({userFilters:[],filterRepliesToPostNumber:!1,filterUpwardsPostID:!1,mixedHiddenPosts:!1,filter:null})}refreshAndJumpToSecondVisible(){return this.refresh({}).then(()=>{this.posts&&this.posts.length>1&&f.default.jumpToPost(this.posts[1].get("post_number"))})}showTopReplies(){return this.cancelFilter(),this.set("filter","summary"),this.refreshAndJumpToSecondVisible()}filterParticipant(e){return this.cancelFilter(),this.userFilters.addObject(e),this.refreshAndJumpToSecondVisible()}filterReplies(e,t){return this.cancelFilter(),this.set("filterRepliesToPostNumber",e),this.appEvents.trigger("post-stream:filter-replies",{topic_id:this.get("topic.id"),post_number:e,post_id:t}),this.refresh({refreshInPlace:!0}).then(()=>{let t=document.querySelector(`#post_${e}`),i=t?t.getBoundingClientRect().top:null;this.appEvents.trigger("post-stream:refresh"),f.default.jumpToPost(e,{originalTopOffset:i}),(0,a.schedule)("afterRender",()=>{(0,_.highlightPost)(e)})})}filterUpwards(e){return this.cancelFilter(),this.set("filterUpwardsPostID",e),this.appEvents.trigger("post-stream:filter-upwards",{topic_id:this.get("topic.id"),post_id:e}),this.refresh({refreshInPlace:!0}).then(()=>{if(this.appEvents.trigger("post-stream:refresh"),this.posts&&this.posts.length>1){let e=this.posts[1].get("post_number");f.default.jumpToPost(e,{skipIfOnScreen:!0}),(0,a.schedule)("afterRender",()=>{(0,_.highlightPost)(e)})}})}refresh(e){(e=e||{}).nearPost=parseInt(e.nearPost,10),e.cancelFilter&&(this.cancelFilter(),delete e.cancelFilter);let t=this.topic;if(e.forceLoad)this.set("loaded",!1);else if(this.posts.findBy("post_number",e.nearPost))return d.Promise.resolve().then(()=>this._checkIfShouldShowRevisions());return e.refreshInPlace||this.set("loadingFilter",!0),this.set("loadingNearPost",e.nearPost),e=(0,m.deepMerge)(e,this.streamFilters),(0,b.loadTopicView)(t,e).then(e=>{this.updateFromJson(e.post_stream),this.setProperties({loadingFilter:!1,timelineLookup:e.timeline_lookup,loaded:!0}),this._checkIfShouldShowRevisions(),t.setProperties({errorLoading:!1,errorTitle:null,errorHtml:null,errorMessage:null,noRetry:!1})}).catch(e=>{throw this.errorLoading(e),Error(e)}).finally(()=>{this.set("loadingNearPost",null)})}fillGapBefore(e,t){let i=e.get("id"),s=this.stream,n=s.indexOf(i),r=this.posts;if(-1!==n){let a=r.indexOf(e),o=t.slice(0,this.topic.chunk_size),l=t.slice(this.topic.chunk_size);if(s.splice.apply(s,[n,0].concat(o)),-1!==a)return this.findPostsByIds(o).then(t=>{t.forEach(e=>{this._initUserModels(e);let t=this.storePost(e);if(!r.includes(t)){let e=a++;this.postsWithPlaceholders.insertPost(e,()=>{r.insertAt(e,t)})}}),l.length>0?this.get("gaps.before")[i]=l:delete this.get("gaps.before")[i],e.set("hasGap",!1),this.gapExpanded()})}return d.Promise.resolve()}fillGapAfter(e,t){let i=e.get("id"),s=this.stream;return -1!==s.indexOf(i)?(s.pushObjects(t),this.appendMore().then(()=>{delete this.get("gaps.after")[i],this.gapExpanded()})):d.Promise.resolve()}gapExpanded(){this.appEvents.trigger("post-stream:refresh"),this.streamFilters&&this.streamFilters.replies_to_post_number&&this.set("streamFilters.mixedHiddenPosts",!0)}appendMore(){if(!this.canAppendMore)return d.Promise.resolve();let e=this.postsWithPlaceholders;if(this.isMegaTopic){this.set("loadingBelow",!0);let t=[...Array(this.get("topic.chunk_size")-1).keys()].map(e=>-e-1);return e.appending(t),this.fetchNextWindow(this.get("posts.lastObject.post_number"),!0,e=>{this.appendPost(e)}).finally(()=>{e.finishedAppending(t),this.set("loadingBelow",!1)})}{let t=this.nextWindow;return(0,l.isEmpty)(t)?d.Promise.resolve():(this.set("loadingBelow",!0),e.appending(t),this.findPostsByIds(t).then(e=>(e.forEach(e=>this.appendPost(e)),e)).finally(()=>{e.finishedAppending(t),this.set("loadingBelow",!1)}))}}prependMore(){if(!this.canPrependMore)return d.Promise.resolve();if(this.isMegaTopic){this.set("loadingAbove",!0);let e=[];return this.fetchNextWindow(this.get("posts.firstObject.post_number"),!1,t=>{this.prependPost(t),e.push(t.get("id"))}).finally(()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)})}{let e=this.previousWindow;return(0,l.isEmpty)(e)?d.Promise.resolve():(this.set("loadingAbove",!0),this.findPostsByIds(e.reverse()).then(e=>{e.forEach(e=>this.prependPost(e))}).finally(()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)}))}}stagePost(e,t){if(this.stagingPost)return"alreadyStaging";this.set("stagingPost",!0);let i=this.topic;return(i.setProperties({posts_count:(i.get("posts_count")||0)+1,last_posted_at:new Date,"details.last_poster":t,highest_post_number:(i.get("highest_post_number")||0)+1}),e.setProperties({post_number:i.get("highest_post_number"),topic:i,created_at:new Date,id:-1}),this.loadedAllPosts)?(this.appendPost(e),this.stream.addObject(e.get("id")),"staged"):"offScreen"}commitPost(e){this.get("topic.id")===e.get("topic_id")&&this.loadedAllPosts&&(this.appendPost(e),this.stream.addObject(e.get("id"))),this.stream.removeObject(-1),this._identityMap[-1]=null,this.set("stagingPost",!1)}undoPost(e){this.stream.removeObject(-1),this.postsWithPlaceholders.removePost(()=>this.posts.removeObject(e)),this._identityMap[-1]=null;let t=this.topic;this.set("stagingPost",!1),t.setProperties({highest_post_number:(t.get("highest_post_number")||0)-1,posts_count:(t.get("posts_count")||0)-1})}prependPost(e){this._initUserModels(e);let t=this.storePost(e);return t&&this.posts.unshiftObject(t),e}appendPost(e){this._initUserModels(e);let t=this.storePost(e);if(t){let e=this.posts;e.includes(t)||(this.loadingBelow?e.pushObject(t):this.postsWithPlaceholders.appendPost(()=>e.pushObject(t))),-1!==t.get("id")&&this.set("lastAppended",t)}return e}removePosts(e){(0,l.isEmpty)(e)||this.postsWithPlaceholders.refreshAll(()=>{let t=this.posts,i=e.map(e=>e.get("id")),s=this._identityMap;this.stream.removeObjects(i),t.removeObjects(e),i.forEach(e=>delete s[e])})}findLoadedPost(e){return this._identityMap[e]}loadPostByPostNumber(e){let t=`/posts/by_number/${this.get("topic.id")}/${e}`,i=this.store;return(0,c.ajax)(t).then(e=>this.storePost(i.createRecord("post",e)))}loadNearestPostToDate(e){let t=`/posts/by-date/${this.get("topic.id")}/${e}`,i=this.store;return(0,c.ajax)(t).then(e=>this.storePost(i.createRecord("post",e)))}loadPost(e){let t=this.store,i=this._identityMap[e];return(0,c.ajax)("/posts/"+e).then(e=>(i&&(e.cooked=i.cooked),this.storePost(t.createRecord("post",e))))}triggerNewPostInStream(e,t){return(0,h.default)("Please use triggerNewPostsInStream, this method will be removed July 2021",{id:"discourse.post-stream.trigger-new-post"}),this.triggerNewPostsInStream([e],t)}triggerNewPostsInStream(e,t){let i=d.Promise.resolve();if(!e||0===e.length||!this.hasNoFilters)return i;let s=this.loadedAllPosts;this._loadingPostIds=this._loadingPostIds||[];let n=[];return(e.forEach(e=>{e&&!this.stream.includes(e)&&n.push(e)}),0===n.length)?i:s?(n.forEach(e=>{this._loadingPostIds.includes(e)||this._loadingPostIds.push(e)}),this.set("loadingLastPost",!0),this.findPostsByIds(this._loadingPostIds,t).then(e=>{this._loadingPostIds=null;let t=this.currentUser?.ignored_users;e.forEach(e=>{if(t?.includes(e.username))return void this.stream.removeObject(e.id);this.stream.addObject(e.id),this.appendPost(e)})}).finally(()=>{this.set("loadingLastPost",!1)})):(n.forEach(e=>this.stream.addObject(e)),i)}triggerRecoveredPost(e){if(this._identityMap[e])return this.triggerChangedPost(e,new Date);{let t=`/posts/${e}`,i=this.store;return(0,c.ajax)(t).then(e=>{let t=i.createRecord("post",e),s=this.stream,n=this.posts;this.storePost(t);let r=0;s.forEach(t=>{t{t.id{n.insertAt(r,t)}):t.post_number{this.storePost(i.createRecord("post",e))}).catch(()=>{this.removePosts([t])})}return d.Promise.resolve()}triggerDestroyedPost(e){let t=this._identityMap[e];return this.removePosts([t]),d.Promise.resolve()}triggerChangedPost(e,t,i){i=i||{};let s=d.Promise.resolve();if(!e)return s;let n=this._identityMap[e];if(n&&n.updated_at!==t){let t=this.store;return(0,c.ajax)("/posts/"+e).then(e=>{i.preserveCooked&&(e.cooked=n.get("cooked")),this.storePost(t.createRecord("post",e))})}return s}triggerLikedPost(e,t,i,s){let n=d.Promise.resolve(),r=this.findLoadedPost(e);return r&&(r.updateLikeCount(t,i,s),this.storePost(r)),n}triggerReadPost(e,t){let i=d.Promise.resolve();return i.then(()=>{let i=this.findLoadedPost(e);i&&t>i.readers_count&&(i.set("readers_count",t),this.storePost(i))}),i}triggerChangedTopicStats(){return this.firstPostNotLoaded?d.Promise.reject():d.Promise.resolve().then(()=>this.posts.findBy("post_number",1).id)}postForPostNumber(e){if(this.hasPosts)return this.posts.find(t=>t.get("post_number")===e)}closestPostForPostNumber(e){if(!this.hasPosts)return;let t=null;return this.posts.forEach(i=>{if(!t){t=i;return}Math.abs(e-i.get("post_number")){t!==e&&(t||(t=i.get("post_number")),Math.abs(e-i.get("post_number"))e)s=n-1;else{if(!(rt.clear()),this.set("gaps",null),e){let t=this.store;e.posts.forEach(e=>this.appendPost(t.createRecord("post",e))),delete e.posts;let i={before:new u.TrackedObject(e.gaps?.before||{}),after:new u.TrackedObject(e.gaps?.after||{})};e.gaps=i,this.setProperties(e)}}storePost(e){if(e){if((0,n.get)(e,"id")){let t=this._identityMap[e.get("id")],i=e.get("post_number");if(i&&i>(this.get("topic.highest_post_number")||0)&&(this.set("topic.highest_post_number",i),this.set("topic.last_posted_at",e.get("created_at"))),t)return t.updateFromPost(e),t;e.set("topic",this.topic),this._identityMap[e.get("id")]=e}return e}}fetchNextWindow(e,t,i){let s=!this.get("topic.suggested_topics"),r=`/t/${this.get("topic.id")}/posts.json`,a={post_number:e,asc:t,include_suggested:s};a=(0,m.deepMerge)(a,this.streamFilters);let o=this.store;return(0,c.ajax)(r,{data:a}).then(e=>{this._setSuggestedTopics(e);let t=(0,n.get)(e,"post_stream.posts");t&&t.forEach(e=>{e=this.storePost(o.createRecord("post",e)),i&&i.call(this,e)})})}findPostsByIds(e,t){let i=this._identityMap,s=e.filter(e=>!i[e]);return this.loadIntoIdentityMap(s,t).then(()=>e.map(e=>i[e]).compact())}loadIntoIdentityMap(e,t){if((0,l.isEmpty)(e))return d.Promise.resolve([]);let i=!this.get("topic.suggested_topics"),s="/t/"+this.get("topic.id")+"/posts.json",r=this.store,a={};return t&&t.background&&(a["Discourse-Background"]="true"),(0,c.ajax)(s,{data:{post_ids:e,include_suggested:i},headers:a}).then(e=>{this._setSuggestedTopics(e),e.user_badges&&(this.topic.user_badges??={},Object.assign(this.topic.user_badges,e.user_badges));let t=(0,n.get)(e,"post_stream.posts");t&&t.forEach(e=>this.storePost(r.createRecord("post",e)))})}backfillExcerpts(e){this._excerpts=this._excerpts||[];let t=this.stream;if(this._excerpts.loadNext=e,this._excerpts.loading)return this._excerpts.loading.then(()=>{if(!this._excerpts[t[e]]&&this._excerpts.loadNext===e)return this.backfillExcerpts(e)});let i=t.slice(Math.max(e-20,0),e+20);for(let e=i.length-1;e>=0;e--)this._excerpts[i[e]]&&i.splice(e,1);return this._excerpts.loading=(0,c.ajax)("/t/"+this.get("topic.id")+"/excerpts.json",{data:{post_ids:i}}).then(e=>{e.forEach(e=>{this._excerpts[e.post_id]=e})}).finally(()=>{this._excerpts.loading=null}),this._excerpts.loading}excerpt(e){if(this.isMegaTopic)return new d.Promise(e=>e(""));let t=this.stream;return new d.Promise((i,s)=>{let n=this._excerpts&&this._excerpts[t[e]];if(n)return void i(n);this.backfillExcerpts(e).then(()=>{i(this._excerpts[t[e]])}).catch(e=>s(e))})}indexOf(e){return this.stream.indexOf(e.get("id"))}errorLoading(e){let t=this.topic;if(this.set("loadingFilter",!1),t.set("errorLoading",!0),!e.jqXHR)throw e;let i=e.jqXHR.responseJSON;i&&i.extras&&i.extras.html?(t.set("errorTitle",i.extras.title),t.set("errorHtml",i.extras.html)):(t.set("errorMessage",(0,w.i18n)("topic.server_error.description")),t.set("noRetry",403===e.jqXHR.status))}_initUserModels(e){e.user=this.store.createRecord("user",{id:e.user_id,username:e.username,avatar_template:e.avatar_template}),e.user_status&&(e.user.status=e.user_status),e.mentioned_users&&(e.mentioned_users=e.mentioned_users.map(e=>this.store.createRecord("user",e)))}_checkIfShouldShowRevisions(){if(k){let e=k;S();let t=this.posts.mapBy("post_number");e.topicId===this.topic.id&&t.includes(e.postNumber)&&(0,a.schedule)("afterRender",()=>{this.appEvents.trigger("post:show-revision",e.postNumber,e.revisionNumber)})}}_setSuggestedTopics(e){e.suggested_topics&&(this.topic.setProperties({suggested_topics:e.suggested_topics,suggested_group_name:e.suggested_group_name}),this.topic.isPrivateMessage&&this.pmTopicTrackingState.startTracking())}}},27514:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(50729);class n extends s.default{setupController(e){let t=this.controllerFor("account-created").get("accountCreated");e.set("accountCreated",t),e.set("newEmail",t.email)}}},27567:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i(7155),n=i(80115),r=i(50890),a=i(86981),o=i(93239),l=i(91558),u=i(75093),d=i(15383),c=i(38161),p=i(31075),h=i(87367),m=i(714),g=i(96527),f=i(14086),_=i(14051),y=i(86301),b=i(32175),w=i(77296),k=i(58609),T=i(43378),S=i(35697),C=i(74627),A=i(25217),D=i(70508);class M extends r.default{static #e=(()=>dt7948.g(this.prototype,"site",[u.service]))();#_=(()=>void dt7948.i(this,"site"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"login",[u.service]))();#ot=(()=>void dt7948.i(this,"login"))();static #a=(()=>dt7948.g(this.prototype,"accountName",[s.tracked]))();#o3=(()=>void dt7948.i(this,"accountName"))();static #l=(()=>dt7948.g(this.prototype,"accountPassword",[s.tracked]))();#o2=(()=>void dt7948.i(this,"accountPassword"))();static #d=(()=>dt7948.g(this.prototype,"accountEmail",[s.tracked]))();#o8=(()=>void dt7948.i(this,"accountEmail"))();static #p=(()=>dt7948.g(this.prototype,"accountUsername",[s.tracked]))();#o4=(()=>void dt7948.i(this,"accountUsername"))();static #m=(()=>dt7948.g(this.prototype,"isDeveloper",[s.tracked],function(){return!1}))();#o7=(()=>void dt7948.i(this,"isDeveloper"))();static #f=(()=>dt7948.g(this.prototype,"authOptions",[s.tracked]))();#o9=(()=>void dt7948.i(this,"authOptions"))();static #y=(()=>dt7948.g(this.prototype,"skipConfirmation",[s.tracked]))();#o5=(()=>void dt7948.i(this,"skipConfirmation"))();accountChallenge=0;accountHoneypot=0;formSubmitted=!1;rejectedEmails=(()=>(0,n.A)())();prefilledUsername=null;maskPassword=!0;emailValidationVisible=!1;nameValidationHelper=(()=>new y.default(this))();usernameValidationHelper=(()=>new T.default({getAccountEmail:()=>this.accountEmail,getAccountUsername:()=>this.accountUsername,getPrefilledUsername:()=>this.prefilledUsername,getAuthOptionsUsername:()=>this.authOptions?.username,getForceValidationReason:()=>this.forceValidationReason,siteSettings:this.siteSettings,isInvalid:()=>this.isDestroying||this.isDestroyed,updateIsDeveloper:e=>this.isDeveloper=e,updateUsernames:e=>{this.accountUsername=e,this.prefilledUsername=e}}))();passwordValidationHelper=(()=>new b.default(this))();userFieldsValidationHelper=(()=>new k.default({getUserFields:()=>this.site.get("user_fields"),getAccountPassword:()=>this.accountPassword,showValidationOnInit:!1}))();static #v=(()=>dt7948.g(this.prototype,"hasAuthOptions",[(0,l.notEmpty)("authOptions")]))();#o6=(()=>void dt7948.i(this,"hasAuthOptions"))();static #k=(()=>dt7948.g(this.prototype,"canCreateLocal",[(0,m.setting)("enable_local_logins")]))();#le=(()=>void dt7948.i(this,"canCreateLocal"))();static #S=(()=>dt7948.g(this.prototype,"requireInviteCode",[(0,m.setting)("require_invite_code")]))();#lt=(()=>void dt7948.i(this,"requireInviteCode"))();init(){super.init(...arguments),(0,g.default)("email")&&(this.accountEmail=(0,g.default)("email")),this.fetchConfirmationValue()}get userFields(){return this.userFieldsValidationHelper.userFields}static #A=(()=>dt7948.n(this.prototype,"userFields",[o.dependentKeyCompat]))();get userFieldsValidation(){return this.userFieldsValidationHelper.userFieldsValidation}static #M=(()=>dt7948.n(this.prototype,"userFieldsValidation",[o.dependentKeyCompat]))();get usernameValidation(){return this.usernameValidationHelper.usernameValidation}static #E=(()=>dt7948.n(this.prototype,"usernameValidation",[o.dependentKeyCompat]))();get passwordValidation(){return this.passwordValidationHelper.passwordValidation}static #P=(()=>dt7948.n(this.prototype,"passwordValidation",[o.dependentKeyCompat]))();get nameTitle(){return this.nameValidationHelper.nameTitle}get nameValidation(){return this.nameValidationHelper.nameValidation}get forceValidationReason(){return this.nameValidationHelper.forceValidationReason}static #I=(()=>dt7948.n(this.prototype,"forceValidationReason",[o.dependentKeyCompat]))();actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}static #j=(()=>dt7948.n(this.prototype,"actionOnEnter",[_.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 #R=(()=>dt7948.n(this.prototype,"selectKitFocus",[_.bind]))();showCreateForm(e,t,i){return(e||t)&&!i}static #B=(()=>dt7948.n(this.prototype,"showCreateForm",[(0,_.default)("hasAuthOptions","canCreateLocal","skipConfirmation")]))();showExternalLoginButtons(e,t){return e&&!t}static #H=(()=>dt7948.n(this.prototype,"showExternalLoginButtons",[(0,_.default)("site.desktopView","hasAuthOptions")]))();submitDisabled(){return this.formSubmitted}static #z=(()=>dt7948.n(this.prototype,"submitDisabled",[(0,_.default)("formSubmitted")]))();bodyClasses(e,t,i){let s=[];return e&&s.push("has-user-fields"),t&&!i&&s.push("has-alt-auth"),this.canCreateLocal||s.push("no-local-logins"),s.join(" ")}static #$=(()=>dt7948.n(this.prototype,"bodyClasses",[(0,_.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions")]))();usernameDisabled(e,t){return e&&!t}static #V=(()=>dt7948.n(this.prototype,"usernameDisabled",[(0,_.default)("authOptions","authOptions.can_edit_username")]))();nameDisabled(e,t,i){return e&&!t&&i&&i.length>0}static #W=(()=>dt7948.n(this.prototype,"nameDisabled",[(0,_.default)("authOptions","authOptions.can_edit_name","authOptions.name")]))();showFullname(){return this.site.full_name_visible_in_signup}static #K=(()=>dt7948.n(this.prototype,"showFullname",[_.default]))();fullnameRequired(){return this.site.full_name_required_for_signup}static #G=(()=>dt7948.n(this.prototype,"fullnameRequired",[_.default]))();showEmailValidation(e,t,i){return e||t&&i}static #J=(()=>dt7948.n(this.prototype,"showEmailValidation",[(0,_.default)("emailValidation.ok","emailValidation.reason","emailValidationVisible")]))();get showPasswordValidation(){return this.passwordValidation.ok||this.passwordValidation.reason}get showUsernameInstructions(){return this.siteSettings.show_signup_form_username_instructions&&!this.usernameValidation.reason}get passwordRequired(){return(0,d.isEmpty)(this.authOptions?.auth_provider)}disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return(0,D.i18n)("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}static #Q=(()=>dt7948.n(this.prototype,"disclaimerHtml",[_.default]))();emailValidation(e,t,i,s,n){let r={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===i&&t?t:(0,d.isEmpty)(i)?a.default.create(Object.assign(r,{message:(0,D.i18n)("user.email.required"),reason:n?(0,D.i18n)("user.email.required"):null})):s.includes(i)||!(0,S.emailValid)(i)?a.default.create(Object.assign(r,{reason:(0,D.i18n)("user.email.invalid")})):this.authOptions?.email===i&&this.authOptions?.email_valid?a.default.create({ok:!0,reason:(0,D.i18n)("user.email.authenticated",{provider:this.authProviderDisplayName(this.authOptions?.auth_provider)})}):a.default.create({ok:!0,reason:(0,D.i18n)("user.email.ok")})}static #X=(()=>dt7948.n(this.prototype,"emailValidation",[(0,_.default)("serverAccountEmail","serverEmailValidation","accountEmail","rejectedEmails.[]","forceValidationReason")]))();setAccountUsername(e){this.accountUsername=e.target.value}static #Z=(()=>dt7948.n(this.prototype,"setAccountUsername",[a.action]))();checkEmailAvailability(){if(this.emailValidation.reason?this.set("emailValidationVisible",!0):this.set("emailValidationVisible",!1),this.emailValidation.ok&&this.serverAccountEmail!==this.accountEmail)return A.default.checkEmail(this.accountEmail).then(e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:a.default.create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.accountEmail,serverEmailValidation:a.default.create({ok:!0,reason:(0,D.i18n)("user.email.ok")})}))}).catch(()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})})}static #ee=(()=>dt7948.n(this.prototype,"checkEmailAvailability",[a.action]))();get emailDisabled(){return this.authOptions?.email===this.accountEmail&&this.authOptions?.email_valid}authProviderDisplayName(e){let t=(0,C.findAll)().find(t=>t.name===e);return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.accountUsername===this.prefilledUsername&&(this.accountUsername=""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,d.isEmpty)(this.accountUsername)||this.authOptions?.email)&&(0,f.default)(this,()=>this.usernameValidationHelper.fetchExistingUsername(),500)}static #et=(()=>dt7948.n(this.prototype,"prefillUsername",[(0,c.observes)("emailValidation","accountEmail")]))();hasAtLeastOneLoginButton(){return(0,C.findAll)().length>0}static #ei=(()=>dt7948.n(this.prototype,"hasAtLeastOneLoginButton",[_.default]))();showRightSide(e,t){return!e&&t}static #es=(()=>dt7948.n(this.prototype,"showRightSide",[(0,_.default)("authOptions","hasAtLeastOneLoginButton")]))();progressBarStep(e){return e?"activate":"signup"}static #en=(()=>dt7948.n(this.prototype,"progressBarStep",[(0,_.default)("authOptions")]))();fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,h.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.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.authOptions?.destination_url;return(0,d.isEmpty)(t)||(0,g.default)("destination_url",t,{path:"/"}),(0,d.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach(t=>e.userFields[t.field.id]=t.value)),this.set("formSubmitted",!0),A.default.createAccount(e).then(t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.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,w.userPath)("account-created"),t.submit()),new p.Promise(()=>{})}this.set("flash",t.message||(0,D.i18n)("create_account.failed")),t.is_developer&&(this.isDeveloper=!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors?.["user_password.password"]?.length>0&&this.passwordValidationHelper.rejectedPasswords.push(e.accountPassword),this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url")}},()=>(this.set("formSubmitted",!1),(0,g.removeCookie)("destination_url"),this.set("flash",(0,D.i18n)("create_account.failed"))))}associateHtml(e,t){if(e)return(0,D.i18n)("create_account.associate",{associate_link:e,provider:(0,D.i18n)(`login.${t}.name`)})}static #er=(()=>dt7948.n(this.prototype,"associateHtml",[(0,_.default)("authOptions.associate_url","authOptions.auth_provider")]))();scrollInputIntoView(e){e.target.scrollIntoView({behavior:"smooth",block:"center"})}static #ea=(()=>dt7948.n(this.prototype,"scrollInputIntoView",[a.action]))();togglePasswordMask(){this.toggleProperty("maskPassword")}static #eo=(()=>dt7948.n(this.prototype,"togglePasswordMask",[a.action]))();externalLogin(e){this.login.externalLogin(e,{signup:!0})}static #el=(()=>dt7948.n(this.prototype,"externalLogin",[a.action]))();createAccount(){this.set("flash",""),this.nameValidationHelper.forceValidationReason=!0,this.userFieldsValidationHelper.validationVisible=!0,this.set("emailValidationVisible",!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.userFieldsValidationHelper.validationVisible=!1,this.nameValidationHelper.forceValidationReason=!1,this.performAccountCreation()}static #eu=(()=>dt7948.n(this.prototype,"createAccount",[a.action]))()}},27696:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})})},27703:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(46447);class n extends s.default{}},27711:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(61312),n=i(75093);class r extends n.default.extend(s.default){}},27797:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(50729),r=i(24813),a=i(75093),o=i(98622);class l extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();willTransition(){(0,o.seenUser)()}_refreshTitleOnce(){this.send("_collectTitleTokens",[])}_collectTitleTokens(e){if(this.titleToken){let t=this.titleToken();t?.length&&(t instanceof Array?t.forEach(t=>e.push(t)):e.push(t))}return!0}static #i=(()=>dt7948.n(this.prototype,"_collectTitleTokens",[s.action]))();refreshTitle(){(0,r.once)(this,this._refreshTitleOnce)}static #n=(()=>dt7948.n(this.prototype,"refreshTitle",[s.action]))();isCurrentUser(e){return!!this.currentUser&&e.id===this.currentUser.id}}},27833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(24813),n=i(98043),r=i(97908),a=i(62340),o=i(25217);let l=5e3*!(0,r.isTesting)(),u={initialize(){(0,s.later)(()=>{(0,a.extendThemeCookie)(),(0,n.extendColorSchemeCookies)(),(0,o.extendTextSizeCookie)()},l)}}},27894:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(85024),r=i(13355),a=i(53329),o=i(14051),l=i(1519);let u=dt7948.c(class extends s.default{toggleTitle(e){return"draft"===e||"saving"===e?"composer.abandon":"composer.collapse"}static #e=(()=>dt7948.n(this.prototype,"toggleTitle",[(0,o.default)("composeState")]))();toggleToolbarTitle(e){return e?"composer.hide_toolbar":"composer.show_toolbar"}static #i=(()=>dt7948.n(this.prototype,"toggleToolbarTitle",[(0,o.default)("showToolbar")]))();fullscreenTitle(e){return"draft"===e?"composer.open":"fullscreen"===e?"composer.exit_fullscreen":"composer.enter_fullscreen"}static #n=(()=>dt7948.n(this.prototype,"fullscreenTitle",[(0,o.default)("composeState")]))();toggleIcon(e){return"draft"===e||"saving"===e?"xmark":"angles-down"}static #a=(()=>dt7948.n(this.prototype,"toggleIcon",[(0,o.default)("composeState")]))();fullscreenIcon(e){return"draft"===e?"angles-up":"fullscreen"===e?"discourse-compress":"discourse-expand"}static #l=(()=>dt7948.n(this.prototype,"fullscreenIcon",[(0,o.default)("composeState")]))();showFullScreenButton(e){return!this.site.mobileView&&!e}static #d=(()=>dt7948.n(this.prototype,"showFullScreenButton",[(0,o.default)("disableTextarea")]))();static #p=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"MBiSpe7i",block:'[[[1,"\\n "],[10,0],[14,0,"composer-controls"],[12],[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName"],["before-composer-toggles","div"]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,1],[[24,0,"btn-transparent 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,[32,1],[[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,[32,1],[[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],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer-toggles.js",scope:()=>[a.default,r.default],isStrictMode:!0}),this))()},[(0,n.tagName)("")])},27910:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(65296)},27926:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(11556);let n=i(82876).default.create(s.default)},27930:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(27797),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();beforeModel(){if(!this.siteSettings.enable_smtp)return this.router.transitionTo("group.manage.profile")}titleToken(){return(0,r.i18n)("groups.manage.email.title")}}},27990:(e,t,i)=>{var s=i(48653);e.exports=function(e,t){if(s(e)&&s(t))if("name"in e&&"name"in t)return e.id===t.id;else return e.init===t.init;return!1}},28040:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(93317),n=i(7155),r=i(73326),a=i(86981),o=i(75093),l=i(76947),u=i(39826),d=i(51442),c=i(71057),p=i(74470),h=i(14104),m=i(31352),g=i(21530),f=i(67698),_=i(23062),y=i(8464),b=i(70508),w=i(32045),k=i(1519);function T(e){return e?(Array.isArray(e)||(e=[e]),e):[]}class S extends s.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[o.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"siteSettings",[o.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #l=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #d=(()=>dt7948.g(this.prototype,"loading",[n.tracked]))();#sA=(()=>void dt7948.i(this,"loading"))();static #p=(()=>dt7948.g(this.prototype,"postRevision",[n.tracked]))();#li=(()=>void dt7948.i(this,"postRevision"))();static #m=(()=>dt7948.g(this.prototype,"viewMode",[n.tracked],function(){return this.site.mobileView?"inline":"side_by_side"}))();#ls=(()=>void dt7948.i(this,"viewMode"))();static #f=(()=>dt7948.g(this.prototype,"bodyDiff",[n.tracked]))();#ln=(()=>void dt7948.i(this,"bodyDiff"))();static #y=(()=>dt7948.g(this.prototype,"initialLoad",[n.tracked],function(){return!0}))();#lr=(()=>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,b.i18n)("post.revisions.controls.comparing_previous_to_current_out_of_total",{previous:this.previousVersion,icon:(0,g.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 i=t;"side_by_side_markdown"!==this.viewMode&&(i=await (0,f.sanitizeAsync)(i,{features:{editHistory:!0,historyOneboxes:!0},allowListed:{editHistory:{custom:(e,t)=>"class"===t},historyOneboxes:["header","article","div[style]"]}})),this.bodyDiff=i}static #v=(()=>dt7948.n(this.prototype,"calculateBodyDiff",[a.action]))();get previousTagChanges(){let e=T(this.postRevision.tags_changes?.previous),t=new Set(T(this.postRevision.tags_changes?.current));return e.map(e=>({name:e,deleted:!t.has(e)}))}get currentTagChanges(){let e=new Set(T(this.postRevision.tags_changes?.previous));return T(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,b.i18n)("post.revisions.controls.revert",{revision:this.previousVersion})}async refresh(e,t){this.loading=!0;try{let i=await y.default.loadRevision(e,t);this.postRevision=i}catch(i){this.args.closeModal(),this.dialog.alert(i.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){y.default.hideRevision(e,t).then(()=>this.refresh(e,t))}show(e,t){y.default.showRevision(e,t).then(()=>this.refresh(e,t))}async revert(e,t){try{let i=await e.revertToRevision(t);this.refresh(e.id,t),i.topic&&(e.set("topic.slug",i.topic.slug),e.set("topic.title",i.topic.title),e.set("topic.fancy_title",i.topic.fancy_title)),i.category_id&&e.set("topic.category",await _.default.asyncFindById(i.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=_.default.findById(this.postRevision.category_id_changes.previous);return(0,h.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-del"})}}get currentCategory(){if(this.postRevision?.category_id_changes?.current){let e=_.default.findById(this.postRevision.category_id_changes.current);return(0,h.categoryBadgeHTML)(e,{allowUncategorized:!0,extraClasses:"diff-ins"})}}displayInline(e){e?.preventDefault(),this.viewMode="inline"}static #k=(()=>dt7948.n(this.prototype,"displayInline",[a.action]))();displaySideBySide(e){e?.preventDefault(),this.viewMode="side_by_side"}static #S=(()=>dt7948.n(this.prototype,"displaySideBySide",[a.action]))();displaySideBySideMarkdown(e){e?.preventDefault(),this.viewMode="side_by_side_markdown"}static #A=(()=>dt7948.n(this.prototype,"displaySideBySideMarkdown",[a.action]))();loadFirstVersion(){this.refresh(this.postRevision.post_id,this.postRevision.first_revision)}static #M=(()=>dt7948.n(this.prototype,"loadFirstVersion",[a.action]))();loadPreviousVersion(){this.refresh(this.postRevision.post_id,this.postRevision.previous_revision)}static #E=(()=>dt7948.n(this.prototype,"loadPreviousVersion",[a.action]))();loadNextVersion(){this.refresh(this.postRevision.post_id,this.postRevision.next_revision)}static #P=(()=>dt7948.n(this.prototype,"loadNextVersion",[a.action]))();loadLastVersion(){return this.refresh(this.postRevision.post_id,this.postRevision.last_revision)}static #I=(()=>dt7948.n(this.prototype,"loadLastVersion",[a.action]))();hideVersion(){this.hide(this.postRevision.post_id,this.postRevision.current_revision)}static #j=(()=>dt7948.n(this.prototype,"hideVersion",[a.action]))();permanentlyDeleteVersions(){this.dialog.yesNoConfirm({message:(0,b.i18n)("post.revisions.controls.destroy_confirm"),didConfirm:()=>{y.default.permanentlyDeleteRevisions(this.postRevision.post_id).then(()=>{this.args.closeModal()})}})}static #R=(()=>dt7948.n(this.prototype,"permanentlyDeleteVersions",[a.action]))();showVersion(){this.show(this.postRevision.post_id,this.postRevision.current_revision)}static #B=(()=>dt7948.n(this.prototype,"showVersion",[a.action]))();editPost(){this.args.model.editPost(this.args.model.post),this.args.closeModal()}static #H=(()=>dt7948.n(this.prototype,"editPost",[a.action]))();revertToVersion(){this.revert(this.args.model.post,this.postRevision.current_revision)}static #z=(()=>dt7948.n(this.prototype,"revertToVersion",[a.action]))();static #$=(()=>(0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"DTARGu1i",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[29,["history-modal -max ",[28,[32,1],["--mode-",[28,[32,2],[[30,0,["viewMode"]]],null]],null]]]]],[["@title","@closeModal"],[[28,[32,3],[[30,0,["modalTitleKey"]]],null],[30,1]]],[["body","footer"],[[[[1,"\\n "],[8,[32,4],null,[["@condition"],[[30,0,["initialLoad"]]]],[["default"],[[[[1,"\\n "],[8,[32,5],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,[32,6],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,[32,7],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," "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/history.js",scope:()=>[u.default,r.concat,m.default,b.i18n,l.default,d.default,c.default,p.default],isStrictMode:!0}),this))()}},28051:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UserStatusMessage:()=>u});var s=i(64081),n=i(75093),r=i(91035),a=i(67698),o=i(35697),l=i(25217);class u{static #e=(()=>dt7948.g(this.prototype,"tooltip",[n.service]))();#td=(()=>void dt7948.i(this,"tooltip"))();html=null;content=null;constructor(e,t,i){(0,s.setOwner)(this,e),this.html=this.#la(t,i),this.content=this.#lo(t),this.tooltipInstance=this.tooltip.register(this.html,{identifier:"user-status-message-tooltip",content:this.content})}destroy(){this.tooltip.isDestroyed||this.tooltipInstance.destroy()}#ll(e){let t=(0,o.escapeExpression)(`:${e}:`);return(0,a.emojiUnescape)(t,{skipTitle:!0})}#la(e,t){let i=document.createElement("span");if(i.classList.add("user-status-message"),t?.class&&i.classList.add(t.class),i.innerHTML=this.#ll(e.emoji),t?.showDescription){let t=document.createElement("span");t.classList.add("user-status-message-description"),t.innerText=e.description,i.appendChild(t)}return i}#lo(e){let t=document.createElement("div");t.classList.add("user-status-message-tooltip-content"),t.innerHTML=this.#ll(e.emoji);let i=document.createElement("span");if(i.classList.add("user-status-tooltip-description"),i.innerText=e.description,t.appendChild(i),e.ends_at){let i=document.createElement("div");i.classList.add("user-status-tooltip-until"),i.innerText=this.#lu(e.ends_at),t.appendChild(i)}return t}#lu(e){let t=l.default.current(),i=t?t.user_option?.timezone:moment.tz.guess();return(0,r.until)(e,i,t?.locale)}}},28175:(e,t,i)=>{"use strict";function s(e){e.decorateCookedElement((e,t)=>{t.getModel()&&e.querySelectorAll("img").forEach(e=>e.loading="lazy")}),e.decorateCookedElement(t=>{let i=e.container.lookup("service:site-settings");t.querySelectorAll("img").forEach(e=>{let{smallUpload:t,dominantColor:s}=e.dataset;(!i.secure_uploads||!t)&&(t||s)&&!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",`#${s}`))})},{afterAdopt:!0})}i.r(t),i.d(t,{nativeLazyLoading:()=>s})},28202:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(73151),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"menu",[n.service]))();#nq=(()=>void dt7948.i(this,"menu"))();static #i=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"rtCNRCrc",block:'[[[1,"\\n "],[10,0],[14,1,"d-menu-portals"],[12],[13],[1,"\\n\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["menu","registeredMenus"]]],null]],null],"id",[[[41,[30,1,["detachedTrigger"]],[[[1," "],[8,[32,0],null,[["@menu"],[[30,1]]],null],[1,"\\n"]],[]],null]],[1]],null],[1," "]],["menu"],false,["each","-track-array","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-menus.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},28325:(e,t,i)=>{"use strict";i.r(t),i.d(t,{grantableBadges:()=>n,isBadgeGrantable:()=>r});var s=i(21530);function n(e,t){let i=t.reduce((e,t)=>(e[t.get("badge_id")]=!0,e),{});return e.filter(e=>e.get("enabled")&&e.get("manually_grantable")&&(!i[e.get("id")]||e.get("multiple_grant"))).map(e=>(e.get("icon")&&e.set("icon",(0,s.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))}},28347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SEPARATOR:()=>r,categoryHashtagTriggerRule:()=>o,replaceSpan:()=>a});var s=i(63272),n=i(58002);let r=":";function a(e,t,i,s){s=s?` data-type="${s}"`:"",e.replaceWith(`#${t}`)}function o(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,n.hashtagTriggerRule)(e,t)}},28353:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(93317),n=i(92330),r=i(32045),a=i(1519);class o extends s.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,a.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:()=>[n.default],isStrictMode:!0}),this))()}},28438:(e,t,i)=>{"use strict";i.r(t),i.d(t,{_reset:()=>s._reset,_resetWaiterNames:()=>n._resetWaiterNames,buildWaiter:()=>n.default,getPendingWaiterState:()=>s.getPendingWaiterState,getWaiters:()=>s.getWaiters,hasPendingWaiters:()=>s.hasPendingWaiters,register:()=>s.register,unregister:()=>s.unregister,waitFor:()=>a.default,waitForPromise:()=>r.default});var s=i(32096),n=i(32621),r=i(67919),a=i(62979)},28451:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>M});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(75093),u=i(15383),d=i(88695),c=i(65015),p=i(13355),h=i(39826),m=i(53329),g=i(10822),f=i(51318),_=i(19006),y=i(10458),b=i(77982),w=i(77296),k=i(63159),T=i(70508),S=i(56179),C=i(53753),A=i(34875),D=i(1519);class M extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"site",[l.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"topicName",[n.tracked]))();#ld=(()=>void dt7948.i(this,"topicName"))();static #a=(()=>dt7948.g(this.prototype,"saving",[n.tracked],function(){return!1}))();#tn=(()=>void dt7948.i(this,"saving"))();static #l=(()=>dt7948.g(this.prototype,"categoryId",[n.tracked]))();#ox=(()=>void dt7948.i(this,"categoryId"))();static #d=(()=>dt7948.g(this.prototype,"tags",[n.tracked]))();#n_=(()=>void dt7948.i(this,"tags"))();static #p=(()=>dt7948.g(this.prototype,"participants",[n.tracked],function(){return[]}))();#lc=(()=>void dt7948.i(this,"participants"))();static #m=(()=>dt7948.g(this.prototype,"chronologicalOrder",[n.tracked],function(){return!1}))();#lp=(()=>void dt7948.i(this,"chronologicalOrder"))();static #f=(()=>dt7948.g(this.prototype,"selection",[n.tracked],function(){return"new_topic"}))();#lh=(()=>void dt7948.i(this,"selection"))();static #y=(()=>dt7948.g(this.prototype,"selectedTopic",[n.tracked]))();#lm=(()=>void dt7948.i(this,"selectedTopic"))();static #v=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#sJ=(()=>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,u.isEmpty)(this.selectedTopic)&&(0,u.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 #k=(()=>dt7948.n(this.prototype,"performMove",[o.action]))();async movePostsTo(e){let t,i;this.saving=!0,this.flash=null,"existingTopic"===e?(t={destination_topic_id:this.selectedTopic.id,chronological_order:this.chronologicalOrder},i={post_ids:this.args.model.selectedPostIds,...t}):"existingMessage"===e?(t={destination_topic_id:this.selectedTopic.id,participants:this.participants.join(","),archetype:"private_message",chronological_order:this.chronologicalOrder},i={post_ids:this.args.model.selectedPostIds,...t}):"newTopic"===e?(t={},i={title:this.topicName,post_ids:this.args.model.selectedPostIds,category_id:this.categoryId,tags:this.tags}):(t={},i={title:this.topicName,post_ids:this.args.model.selectedPostIds,tags:this.tags,archetype:"private_message"}),t=(0,b.applyValueTransformer)("move-to-topic-merge-options",t),i=(0,b.applyValueTransformer)("move-to-topic-move-options",i);try{let e;e=this.args.model.selectedAllPosts?await (0,k.mergeTopic)(this.args.model.topic.id,t):await (0,k.movePosts)(this.args.model.topic.id,i),this.args.closeModal(),this.args.model.toggleMultiSelect(),w.default.routeTo(e.url)}catch{this.flash=(0,T.i18n)("topic.move_to.error")}finally{this.saving=!1}}static #S=(()=>dt7948.n(this.prototype,"movePostsTo",[o.action]))();updateTopicName(e){this.topicName=e}static #A=(()=>dt7948.n(this.prototype,"updateTopicName",[o.action]))();updateCategoryId(e){this.categoryId=e}static #M=(()=>dt7948.n(this.prototype,"updateCategoryId",[o.action]))();updateTags(e){this.tags=e}static #E=(()=>dt7948.n(this.prototype,"updateTags",[o.action]))();newTopicSelected(e){this.selectedTopic=e}static #P=(()=>dt7948.n(this.prototype,"newTopicSelected",[o.action]))();static #I=(()=>(0,r.setComponentTemplate)((0,D.createTemplateFactory)({id:"WB2aPGRH",block:'[[[1,"\\n "],[8,[32,0],[[24,1,"choosing-topic"],[24,0,"choose-topic-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[32,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,[32,2],[[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,[32,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,[32,2],[[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,[32,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,[32,3],[[28,[32,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,[32,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[32,4],[[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,[32,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[32,5],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,[32,3],[[28,[32,1],["topic.move_to_existing_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[32,6],null,[["@currentTopicId","@setSelectedTopicId","@selectedTopicId"],[[30,2,["topic","id"]],[28,[32,7],[[28,[31,1],[[30,0,["selectedTopic"]]],null]],null],[30,0,["selectedTopic","id"]]]],null],[1,"\\n\\n "],[10,"label"],[12],[1,[28,[32,1],["topic.move_to_new_message.participants"],null]],[13],[1,"\\n "],[8,[32,8],[[24,0,"participant-selector"]],[["@value","@onChange"],[[30,0,["participants"]],[28,[32,7],[[28,[31,1],[[30,0,["participants"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopic"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,9],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[32,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,[32,2],[[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,[32,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,[32,2],[[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,[32,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,[32,2],[[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,[32,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[8,[32,10],null,[["@name"],["move-to-topic-after-radio-buttons"]],null],[1,"\\n\\n"],[41,[30,0,["existingTopic"]],[[[1," "],[10,2],[12],[1,"\\n "],[1,[28,[32,3],[[28,[32,1],["topic.merge_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[32,11],null,[["@topicChangedCallback","@currentTopicId","@selectedTopicId"],[[30,0,["newTopicSelected"]],[30,2,["topic","id"]],[30,0,["selectedTopic","id"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopic"]],[[[1," "],[10,"hr"],[12],[13],[1,"\\n "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n "],[8,[32,9],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n "],[1,[28,[32,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,[32,3],[[28,[32,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,[32,1],["topic.split_topic.topic_name"],null]],[13],[1,"\\n "],[8,[32,4],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n "],[8,[32,10],null,[["@name","@outletArgs"],["split-new-topic-title-after",[28,[32,12],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,[32,1],["categories.category"],null]],[13],[1,"\\n "],[8,[32,13],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["categoryId"]],[28,[32,7],[[28,[31,1],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n "],[8,[32,10],null,[["@name","@outletArgs"],["split-new-topic-category-after",[28,[32,12],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,[32,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[32,5],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[1,"\\n "],[8,[32,10],null,[["@name","@outletArgs"],["split-new-topic-tag-after",[28,[32,12],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,[32,3],[[28,[32,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,[32,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n "],[8,[32,4],[[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,[32,1],["tagging.tags"],null]],[13],[1,"\\n "],[8,[32,5],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[32,14],[[24,0,"btn-primary"]],[["@disabled","@action","@icon","@label"],[[30,0,["buttonDisabled"]],[30,0,["performMove"]],"right-from-bracket",[30,0,["buttonTitle"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/move-to-topic.js",scope:()=>[h.default,T.i18n,g.default,_.default,f.default,A.default,d.default,a.fn,C.default,r.Input,m.default,c.default,y.default,S.default,p.default],isStrictMode:!0}),this))()}},28459:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(27797),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();model(){let e=this.modelFor("user");return e.get("profile_hidden")?this.router.replaceWith("user.profile-hidden"):e}setupController(e,t){this.controllerFor("user-activity").set("model",t)}titleToken(){return(0,r.i18n)("user.activity_stream")}}},28486:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(94160),n=i(16006),r=i(87367);class a extends n.default{find(e,t,i){return super.find(e,t,i).then(function(e){return{post:e}})}createRecord(e,t,i){let a=(0,s.underscore)(t);return i.nested_post=!0,(0,r.ajax)(this.pathFor(e,t),{type:"POST",data:i}).then(function(e){return new n.Result(e[a],e)})}}},28526:(e,t,i)=>{"use strict";function s(e){let t=e.match(/\//g);return t&&3===t.length&&(e=e.replace(/\/$/,"")),(e=(e=e.replace(/^https?:\/\//,"")).replace(/^www\./,"")).substring(0,80)}i.r(t),i.d(t,{default:()=>s})},28543:(e,t,i)=>{"use strict";function s(e){return e&&e.Object===Object?e:void 0}i.r(t),i.d(t,{E:()=>l,a:()=>a,b:()=>u,c:()=>r,g:()=>n,s:()=>o});let n=s(function(e){return e&&void 0===e.nodeType?e:void 0}("object"==typeof global&&global))||s("object"==typeof self&&self)||s("object"==typeof window&&window)||"undefined"!=typeof mainContext&&mainContext||Function("return this")(),r=function(e,t){return void 0===t?{imports:e,exports:e,lookup:e}:{imports:t.imports||e,exports:t.exports||e,lookup:t.lookup||e}}(n,n.Ember);function a(){return r.lookup}function o(e){r.lookup=e}let l={ENABLE_OPTIONAL_FEATURES:!1,EXTEND_PROTOTYPES:{Array:!0},LOG_STACKTRACE_ON_DEPRECATION:!0,LOG_VERSION:!0,RAISE_ON_DEPRECATION:!1,STRUCTURED_PROFILE:!1,_DEBUG_RENDER_TREE:!1,_ALL_DEPRECATIONS_ENABLED:!1,_OVERRIDE_DEPRECATION_VERSION:null,_DEFAULT_ASYNC_OBSERVERS:!1,_NO_IMPLICIT_ROUTE_MODEL:!1,_RERENDER_LOOP_LIMIT:1e3,EMBER_LOAD_HOOKS:{},FEATURES:{}};function u(){return l}(e=>{if("object"!=typeof e||null===e)return;for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t)||"EXTEND_PROTOTYPES"===t||"EMBER_LOAD_HOOKS"===t)continue;let i=l[t];!0===i?l[t]=!1!==e[t]:!1===i?l[t]=!0===e[t]:l[t]=e[t]}let{EXTEND_PROTOTYPES:t}=e;void 0!==t&&("object"==typeof t&&null!==t?l.EXTEND_PROTOTYPES.Array=!1!==t.Array:l.EXTEND_PROTOTYPES.Array=!1!==t);let{EMBER_LOAD_HOOKS:i}=e;if("object"==typeof i&&null!==i)for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];Array.isArray(t)&&(l.EMBER_LOAD_HOOKS[e]=t.filter(e=>"function"==typeof e))}let{FEATURES:s}=e;if("object"==typeof s&&null!==s)for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(l.FEATURES[e]=!0===s[e])})(n.EmberENV)},28565:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(85168),r=i(50114),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"n/ry5C6p",block:'[[[1,"\\n "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n "],[8,[32,0],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n "],[8,[32,1],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage/interaction.js",scope:()=>[r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},28568:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(86981),a=i(76947),o=i(67784),l=i(65338),u=i(57914),d=i(16356),c=i(70508),p=i(32045),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #i=(()=>dt7948.g(this.prototype,"canLoadMore",[n.tracked],function(){return!0}))();#rs=(()=>void dt7948.i(this,"canLoadMore"))();static #n=(()=>dt7948.g(this.prototype,"emptyText",[n.tracked],function(){return this.args.emptyText||(0,c.i18n)("post_list.empty")}))();#lg=(()=>void dt7948.i(this,"emptyText"))();async loadMore(){if(this.canLoadMore&&!this.loading&&void 0!==this.args.fetchMorePosts){this.loading=!0;try{let e=await this.args.fetchMorePosts();this.args.posts?.addObjects(e),0===e.length&&(this.canLoadMore=!1)}catch(e){(0,d.popupAjaxError)(e)}finally{this.loading=!1}}}static #a=(()=>dt7948.n(this.prototype,"loadMore",[r.action]))();static #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"3Tl1AUMV",block:'[[[1,"\\n"],[41,[30,0,["canLoadMore"]],[[[1," "],[1,[32,0]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,1],null,[["@action"],[[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"post-list"],[17,1],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1," "],[8,[32,2],null,[["@post","@idPath","@urlPath","@titlePath","@usernamePath","@additionalItemClasses","@titleAriaLabel","@showUserInfo","@resumeDraft","@removeDraft"],[[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12]]],[["abovePostItemHeader","belowPostItemMetaData","abovePostItemExcerpt","belowPostItem"],[[[[1,"\\n "],[18,13,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,14,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,15,[[30,3]]],[1,"\\n "]],[]],[[[1,"\\n "],[18,16,[[30,3]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[3]],[[[1," "],[10,0],[14,0,"post-list__empty-text"],[12],[1,[30,0,["emptyText"]]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[8,[32,3],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["&attrs","@posts","post","@idPath","@urlPath","@titlePath","@usernamePath","@additionalItemClasses","@titleAriaLabel","@showUserInfo","@resumeDraft","@removeDraft","&abovePostItemHeader","&belowPostItemMetaData","&abovePostItemExcerpt","&belowPostItem"],false,["if","each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-list/index.js",scope:()=>[u.default,o.default,l.default,a.default],isStrictMode:!0}),this))()}},28617:(e,t,i)=>{"use strict";i.d(t,{DD:()=>f,EP:()=>T,GM:()=>D,LF:()=>y,LG:()=>w,M9:()=>C,Mn:()=>s,OM:()=>l,Ol:()=>g,R9:()=>p,SE:()=>A,WY:()=>c,_N:()=>d,ci:()=>_,iW:()=>k,ir:()=>m,kb:()=>a,ni:()=>u,pA:()=>S,pG:()=>r,qZ:()=>o,sQ:()=>n,v5:()=>b,xf:()=>h});var s="top",n="bottom",r="right",a="left",o="auto",l=[s,n,r,a],u="start",d="end",c="clippingParents",p="viewport",h="popper",m="reference",g=l.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+d])},[]),f=[].concat(l,[o]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+d])},[]),_="beforeRead",y="read",b="afterRead",w="beforeMain",k="main",T="afterMain",S="beforeWrite",C="write",A="afterWrite",D=[_,y,b,w,k,T,S,C,A]},28638:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(69023),n=i(83882),r=i(85070),a=i(73523),o=i(73326);let l=a.CurriedType?.Component||0;function u(e,t,i){if(!t||!e||!i)throw Error("curryComponent requires a component class, named arguments, and an owner");let a=(0,r.dict)();for(let e of Object.keys(t))a[e]=(0,s.createComputeRef)(()=>t[e]);return(0,n.curry)(l,e,i,(0,n.createCapturedArgs)(a,n.EMPTY_POSITIONAL),!1)}class d{capabilities=(()=>(0,o.capabilities)("3.23",{hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}))();constructor(e){this.owner=e}createHelper(e,t){return{fn:e,args:t}}getValue(e){let{fn:t,args:i}=e;return t(...i.positional,this.owner)}}(0,o.setHelperManager)(e=>new d(e),u)},28689:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75093),n=i(87367),r=i(23062),a=i(27797),o=i(70508);class l extends a.default{static #e=(()=>dt7948.g(this.prototype,"site",[s.service]))();#_=(()=>void dt7948.i(this,"site"))();async model(){let e=await (0,n.ajax)("/about.json"),t=Object.fromEntries(e.users.map(e=>[e.id,e]));e.categories?.forEach(e=>{this.site.updateCategory(e)});let i=moment().utc().subtract(1,"year");return e.about.admins=e.about.admin_ids.map(e=>t[e]).filter(e=>moment(e.last_seen_at)>i),e.about.moderators=e.about.moderator_ids.map(e=>t[e]).filter(e=>moment(e.last_seen_at)>i),e.about.category_moderators?.forEach(e=>{e.category=r.default.findById(e.category_id),e.moderators=e.moderator_ids.map(e=>t[e])}),e.about}titleToken(){return(0,o.i18n)("about.simple_title")}}},28767:(e,t,i)=>{var s=i(15728),n=i(41432),r=i(74011),a=i(57364),o=i(48653),l=i(2873),u=i(91739),d=i(16832);function c(e,t){var i={a:e};return function e(t,i,s,u){if(t!==i){var c=s[u],_=!1;if(l(t)||l(i))h(t,i,s,u);else if(null==i)o(t)||(p(t,s,u),c=s[u]),c=f(c,new n(n.REMOVE,t,i));else if(r(i))if(r(t))if(t.tagName===i.tagName&&t.namespace===i.namespace&&t.key===i.key){var y=d(t.properties,i.properties);y&&(c=f(c,new n(n.PROPS,t,y))),c=function(t,i,s,a,o){for(var l=t.children,u=function(e,t){var i,s=g(t),n=s.keys,r=s.free;if(r.length===t.length)return{children:t,moves:null};var a=g(e),o=a.keys;if(a.free.length===e.length)return{children:t,moves:null};for(var l=[],u=0,d=r.length,c=0,p=0;p=r.length?t.length:r[u],y=0;y=_&&l.push(b)}var w=l.slice(),k=0,T=[],S=[],C=t.length-e.length;if(C>0&&w.length===t.length){for(var A=!0,p=0;A&&pp?c:p,_=0;_{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("groups.manage.tags.title")}}},28819:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(31075),n=i(87367),r=i(14051),a=i(67698),o=i(23062),l=i(94996),u=i(47872),d=i(18693),c=i(85783);class p extends u.default{limit=30;loading=!1;hasMore=!1;content=null;init(){super.init(...arguments),this.reset()}reset(){this.setProperties({loading:!1,hasMore:!0,content:[]})}noContent(e,t){return 0===e&&!t}static #e=(()=>dt7948.n(this.prototype,"noContent",[(0,r.default)("content.length","loading")]))();remove(e){this.set("content",this.content.filter(t=>t.draft_key!==e.draft_key))}findItems(e){if(e&&this.set("site",e),this.loading||!this.hasMore)return s.Promise.resolve();this.set("loading",!0);let t=`/drafts.json?offset=${this.content.length}&limit=${this.limit}`;return(0,n.ajax)(t).then(e=>{if(!e||!e.drafts)return;e.categories?.forEach(e=>d.default.current().updateCategory(e)),this.set("hasMore",e.drafts.size>=this.limit);let t=e.drafts.map(e=>(e.data=JSON.parse(e.data),(0,a.cook)(e.data.reply).then(t=>{e.excerpt=(0,a.excerpt)(t.toString(),300),e.post_number=e.data.postId||null,(e.draft_key.startsWith(l.NEW_PRIVATE_MESSAGE_KEY)||e.draft_key.startsWith(l.NEW_TOPIC_KEY))&&(e.title=e.data.title),e.data.categoryId&&(e.category=o.default.findById(e.data.categoryId)||null),this.content.push(c.default.create(e))})));return s.Promise.all(t)}).finally(()=>{this.set("loading",!1)})}}},28959:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(73326),n=i(53329),r=i(38069),a=i(10458),o=i(70508),l=i(90701),u=i(32045),d=i(1519),c=i(69522);let p=(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"9rz2FlD0",block:'[[[1,"\\n "],[10,0],[14,0,"control-group category-notifications"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[32,0],["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,[32,1],["d-watching"],null]],[1," "],[1,[28,[32,0],["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,[32,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedCategories"]],[30,3],[28,[32,3],[[28,[31,1],[[30,2,["watchedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-tracking"],null]],[1," "],[1,[28,[32,0],["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,[32,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1," "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["trackedCategories"]],[30,3],[28,[32,3],[[28,[31,1],[[30,2,["trackedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-watching-first"],null]],[1,"\\n "],[1,[28,[32,0],["user.watched_first_post_categories"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedFirstPostCategories"]],[30,3],[28,[32,3],[[28,[31,1],[[30,2,["watchedFirstPostCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-regular"],null]],[1," "],[1,[28,[32,0],["user.regular_categories"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["regularCategories"]],[30,3],[28,[32,3],[[28,[31,1],[[30,2,["regularCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],["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,[32,1],["d-muted"],null]],[1," "],[1,[28,[32,0],["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,[32,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["mutedCategories"]],[30,3],[28,[32,3],[[28,[31,1],[[30,2,["mutedCategories"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,0],[[52,[30,5],"user.muted_categories_instructions","user.muted_categories_instructions_dont_hide"]],null]],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-categories","div",[28,[32,5],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,[32,4],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[32,5],null,[["model"],[[30,2]]]]]],null],[1,"\\n "],[13],[1,"\\n"]],["@canSee","@model","@selectedCategories","@siteSettings","@hideMutedTags","@save"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/categories.js",scope:()=>[o.i18n,r.default,l.default,s.fn,n.default,a.default],isStrictMode:!0}),(0,c.default)(void 0,"categories:Categories"))},29023:(e,t,i)=>{"use strict";i.r(t),i.d(t,{C:()=>a,I:()=>p,R:()=>_,g:()=>h,p:()=>w,s:()=>m});var s=i(71729),n=i(51652);i(60569);var r=i(18793);class a{static _leakTracking;owner;registry;cache;factoryManagerCache;validationCache;isDestroyed;isDestroying;constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.registry=e,this.owner=t.owner||null,this.cache=(0,n.m)(t.cache||null),this.factoryManagerCache=(0,n.m)(t.factoryManagerCache||null),this.isDestroyed=!1,this.isDestroying=!1}lookup(e,t){if(this.isDestroyed)throw Error(`Cannot call \`.lookup('${e}')\` after the owner has been destroyed`);return function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!0===i.singleton||void 0===i.singleton&&o(e,t)){let i=e.cache[t];if(void 0!==i)return i}return function(e,t,i,s){let n=u(e,t,i);if(void 0!==n){if(function(e,t,i){let{instantiate:s,singleton:n}=i;return!1!==n&&!1!==s&&(!0===n||o(e,t))&&l(e,t)}(e,i,s)){let i=e.cache[t]=n.create();return e.isDestroying&&"function"==typeof i.destroy&&i.destroy(),i}if(function(e,t,i){let{instantiate:s,singleton:n}=i;return!1!==s&&(!1===n||!o(e,t))&&l(e,t)}(e,i,s))return n.create();if(function(e,t,i){let{instantiate:s,singleton:n}=i;return!1!==n&&!s&&o(e,t)&&!l(e,t)}(e,i,s)||function(e,t,i){let{instantiate:s,singleton:n}=i;return!1===s&&(!1===n||!o(e,t))&&!l(e,t)}(e,i,s))return n.class;throw Error("Could not create factory")}}(e,t,t,i)}(this,this.registry.normalize(e),t)}destroy(){this.isDestroying=!0,d(this)}finalizeDestroy(){c(this),this.isDestroyed=!0}reset(e){this.isDestroyed||(void 0===e?(d(this),c(this)):function(e,t){let i=e.cache[t];delete e.factoryManagerCache[t],i&&(delete e.cache[t],i.destroy&&i.destroy())}(this,this.registry.normalize(e)))}ownerInjection(){let e={};return(0,r.setOwner)(e,this.owner),e}factoryFor(e){if(this.isDestroyed)throw Error(`Cannot call \`.factoryFor('${e}')\` after the owner has been destroyed`);return u(this,this.registry.normalize(e),e)}}function o(e,t){return!1!==e.registry.getOption(t,"singleton")}function l(e,t){return!1!==e.registry.getOption(t,"instantiate")}function u(e,t,i){let s=e.factoryManagerCache[t];if(void 0!==s)return s;let n=e.registry.resolve(t);if(void 0===n)return;let r=new g(e,n,i,t);return e.factoryManagerCache[t]=r,r}function d(e){let t=e.cache;for(let e of Object.keys(t)){let i=t[e];i.destroy&&i.destroy()}}function c(e){e.cache=(0,n.m)(null),e.factoryManagerCache=(0,n.m)(null)}let p=Symbol("INIT_FACTORY");function h(e){return e[p]}function m(e,t){e[p]=t}class g{container;owner;class;fullName;normalizedName;madeToString;injections;constructor(e,t,i,s){this.container=e,this.owner=e.owner,this.class=t,this.fullName=i,this.normalizedName=s,this.madeToString=void 0,this.injections=void 0}toString(){return void 0===this.madeToString&&(this.madeToString=this.container.registry.makeToString(this.class,this.fullName)),this.madeToString}create(e){let{container:t}=this;if(t.isDestroyed)throw Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);let i=e?{...e}:{};return(0,r.setOwner)(i,t.owner),m(i,this),this.class.create(i)}}let f=/^[^:]+:[^:]+$/;class _{_failSet;resolver;fallback;registrations;_normalizeCache;_options;_resolveCache;_typeOptions;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=(0,n.m)(e.registrations||null),this._normalizeCache=(0,n.m)(null),this._resolveCache=(0,n.m)(null),this._failSet=new Set,this._options=(0,n.m)(null),this._typeOptions=(0,n.m)(null)}container(e){return new a(this,e)}register(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.normalize(e);this._failSet.delete(s),this.registrations[s]=t,this._options[s]=i}unregister(e){let t=this.normalize(e);delete this.registrations[t],delete this._resolveCache[t],delete this._options[t],this._failSet.delete(t)}resolve(e){let t=function(e,t){let i,s=e._resolveCache[t];return void 0!==s?s:e._failSet.has(t)?void 0:(e.resolver&&(i=e.resolver.resolve(t)),void 0===i&&(i=e.registrations[t]),void 0===i?e._failSet.add(t):e._resolveCache[t]=i,i)}(this,this.normalize(e));return void 0===t&&null!==this.fallback&&(t=this.fallback.resolve(e)),t}describe(e){return null!==this.resolver&&this.resolver.lookupDescription?this.resolver.lookupDescription(e):null!==this.fallback?this.fallback.describe(e):e}normalizeFullName(e){return null!==this.resolver&&this.resolver.normalize?this.resolver.normalize(e):null!==this.fallback?this.fallback.normalizeFullName(e):e}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this.normalizeFullName(e))}makeToString(e,t){return null!==this.resolver&&this.resolver.makeToString?this.resolver.makeToString(e,t):null!==this.fallback?this.fallback.makeToString(e,t):"string"==typeof e?e:e.name??"(unknown class)"}has(e){return!!this.isValidFullName(e)&&function(e,t){return void 0!==e.resolve(t)}(this,this.normalize(e))}optionsForType(e,t){this._typeOptions[e]=t}getOptionsForType(e){let t=this._typeOptions[e];return void 0===t&&null!==this.fallback&&(t=this.fallback.getOptionsForType(e)),t}options(e,t){let i=this.normalize(e);this._options[i]=t}getOptions(e){let t=this.normalize(e),i=this._options[t];return void 0===i&&null!==this.fallback&&(i=this.fallback.getOptions(e)),i}getOption(e,t){let i=this._options[e];if(void 0!==i&&void 0!==i[t])return i[t];let s=e.split(":")[0];return(i=this._typeOptions[s])&&void 0!==i[t]?i[t]:null!==this.fallback?this.fallback.getOption(e,t):void 0}knownForType(e){let t,i,s=(0,n.m)(null);for(let t of Object.keys(this.registrations))t.split(":")[0]===e&&(s[t]=!0);return null!==this.fallback&&(t=this.fallback.knownForType(e)),null!==this.resolver&&this.resolver.knownForType&&(i=this.resolver.knownForType(e)),Object.assign({},t,s,i)}isValidFullName(e){return f.test(e)}}let y=(0,n.m)(null),b=`${Math.random()}${Date.now()}`.replace(".","");function w(e){let[t]=e,i=y[t];if(i)return i;let[n,r]=t.split(":");return y[t]=(0,s.i)(`${n}:${r}-${b}`)}},29114:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(9032),n=i(11837),r=i(88192),a=i(73728),o=i(70508);class l extends a.default{userActionType=(()=>r.default.TYPES.posts)();emptyState(){let e,t,i=this.modelFor("user");return this.isCurrentUser(i)?(e=(0,o.i18n)("user_activity.no_replies_title"),t=(0,s.htmlSafe)((0,o.i18n)("user_activity.no_replies_body",{searchUrl:(0,n.default)("/search")}))):(e=(0,o.i18n)("user_activity.no_replies_title_others",{username:i.username}),t=""),{title:e,body:t}}titleToken(){return(0,o.i18n)("user_action_groups.5")}}},29203:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(32045),n=i(73326),r=i(86981),a=i(64081),o=i(85024),l=i(14051),u=i(22128),d=i(1519);let c=dt7948.c(class extends s.default{uppyUpload=(()=>new u.default((0,a.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 #i=(()=>dt7948.n(this.prototype,"startUpload",[r.action]))();static #n=(()=>(0,s.setComponentTemplate)((0,d.createTemplateFactory)({id:"Qewrhljr",block:'[[[1,"\\n "],[18,1,[[28,[32,0],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"]]]],[1,"\\n "]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/create-invite-uploader.js",scope:()=>[n.hash],isStrictMode:!0}),this))()},[(0,o.tagName)("div")])},29352:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addListener:()=>s.G,removeListener:()=>s.H,sendEvent:()=>s.k}),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);i(28543)},29387:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(7155),n=i(86981),r=i(64081),a=i(75093),o=i(60551),l=i(10216),u=i(63159);class d{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #n=(()=>dt7948.g(this.prototype,"pmTopicTrackingState",[a.service]))();#n8=(()=>void dt7948.i(this,"pmTopicTrackingState"))();static #a=(()=>dt7948.g(this.prototype,"topicTrackingState",[a.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();static #l=(()=>dt7948.g(this.prototype,"bulkSelectEnabled",[s.tracked],function(){return!1}))();#lf=(()=>void dt7948.i(this,"bulkSelectEnabled"))();static #d=(()=>dt7948.g(this.prototype,"autoAddTopicsToBulkSelect",[s.tracked],function(){return!1}))();#l_=(()=>void dt7948.i(this,"autoAddTopicsToBulkSelect"))();static #p=(()=>dt7948.g(this.prototype,"autoAddBookmarksToBulkSelect",[s.tracked],function(){return!1}))();#ly=(()=>void dt7948.i(this,"autoAddBookmarksToBulkSelect"))();static #m=(()=>dt7948.g(this.prototype,"lastCheckedElementId",[s.tracked],function(){return null}))();#lb=(()=>void dt7948.i(this,"lastCheckedElementId"))();selected=(()=>new o.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 #f=(()=>dt7948.n(this.prototype,"toggleBulkSelect",[n.action]))();dismissRead(e,t){let i="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:l.NotificationLevels.REGULAR},s="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);(this.selected.length?u.default.bulkOperation(this.selected,i,{},s):u.default.bulkOperationByFilter("unread",i,t,s)).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()})}}},29430:(e,t,i)=>{"use strict";i.r(t),i.d(t,{on:()=>s});let s=i(83882).on},29466:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r,wantsNewWindow:()=>n});var s=i(77296);function n(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||n(e,t)||"_blank"===t.target)return;let i=t.getAttribute("href"),r=t.getAttribute("target");!i||i.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")||i.startsWith("mailto:")||t.closest('[contenteditable="true"]')||i.match(/^http[s]?:\/\//i)&&!i.match(RegExp("^https?:\\/\\/"+window.location.hostname,"i"))||(e.preventDefault(),s.default.routeTo(i))}},29517:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ASYNC_OBSERVERS:()=>s.X,ComputedDescriptor:()=>s.J,ComputedProperty:()=>s.C,DEBUG_INJECTION_FUNCTIONS:()=>s.D,Libraries:()=>s.W,NAMESPACES:()=>c.N,NAMESPACES_BY_ID:()=>c.a,PROPERTY_DID_CHANGE:()=>s.Q,PROXY_CONTENT:()=>s.P,SYNC_OBSERVERS:()=>s.Y,TrackedDescriptor:()=>s.$,_getPath:()=>s._,_getProp:()=>s.V,_setProp:()=>a._,activateObserver:()=>s.j,addArrayObserver:()=>o.d,addListener:()=>s.G,addNamespace:()=>c.b,addObserver:()=>s.v,alias:()=>r.a,arrayContentDidChange:()=>o.c,arrayContentWillChange:()=>o.b,autoComputed:()=>s.R,beginPropertyChanges:()=>s.m,cached:()=>u.cached,changeProperties:()=>s.T,computed:()=>s.c,createCache:()=>d.createCache,defineDecorator:()=>s.z,defineProperty:()=>s.d,defineValue:()=>s.y,deprecateProperty:()=>p,descriptorForDecorator:()=>s.E,descriptorForProperty:()=>s.b,eachProxyArrayDidChange:()=>g,eachProxyArrayWillChange:()=>m,endPropertyChanges:()=>s.l,expandProperties:()=>s.e,findNamespace:()=>c.f,findNamespaces:()=>c.c,flushAsyncObservers:()=>s.I,get:()=>s.g,getCachedValueFor:()=>n.g,getProperties:()=>l.g,getValue:()=>d.getValue,hasListeners:()=>s.x,hasUnknownProperty:()=>s.h,inject:()=>s.p,isClassicDecorator:()=>s.f,isComputed:()=>s.U,isConst:()=>d.isConst,isElementDescriptor:()=>s.i,isNamespaceSearchDisabled:()=>c.i,libraries:()=>s.O,makeComputedDecorator:()=>s.F,markObjectAsDirty:()=>s.Z,nativeDescDecorator:()=>s.B,notifyPropertyChange:()=>s.n,objectAt:()=>s.o,on:()=>s.N,processAllNamespaces:()=>c.p,processNamespace:()=>c.d,removeArrayObserver:()=>o.e,removeListener:()=>s.H,removeNamespace:()=>c.r,removeObserver:()=>s.w,replace:()=>o.a,replaceInNativeArray:()=>o.r,revalidateObservers:()=>s.A,sendEvent:()=>s.k,set:()=>a.s,setClassicDecorator:()=>s.s,setNamespaceSearchDisabled:()=>c.e,setProperties:()=>l.s,setUnprocessedMixins:()=>c.s,tagForObject:()=>s.t,tagForProperty:()=>s.a,tracked:()=>s.S,trySet:()=>a.t});var s=i(34100),n=i(11128),r=i(35247);i(60569);var a=i(31847),o=i(95004),l=i(51750),u=i(95047),d=i(77188),c=i(95172);function p(e,t,i,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set(e){(0,a.s)(this,i,e)},get(){return(0,s.g)(this,i)}})}let h=new WeakMap;function m(e,t,i,s){let n=h.get(e);void 0!==n&&n.arrayWillChange(e,t,i,s)}function g(e,t,i,s){let n=h.get(e);void 0!==n&&n.arrayDidChange(e,t,i,s)}},29612:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(93317),n=i(73326),r=i(86981),a=i(34769),o=i(63538),l=i(38069),u=i(27e3),d=i(38575),c=i(32045),p=i(1519);class h extends s.default{onRegisterMenu(e){this.menu=e}static #e=(()=>dt7948.n(this.prototype,"onRegisterMenu",[r.action]))();get icon(){return this.args.icon??"far-face-smile"}get context(){return this.args.context??"topic"}get modalForMobile(){return this.args.modalForMobile??!0}static #i=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"ZQ8bzHGP",block:'[[[1,"\\n "],[8,[32,0],null,[["@triggerClass","@contentClass","@onRegisterApi","@identifier","@groupIdentifier","@modalForMobile","@maxWidth","@onShow","@onClose"],[[28,[32,1],[[30,1]],null],"emoji-picker-content",[30,0,["onRegisterMenu"]],"emoji-picker","emoji-picker",[30,0,["modalForMobile"]],405,[30,2],[30,3]]],[["trigger","content"],[[[[1,"\\n"],[41,[30,4],[[[1," "],[1,[28,[32,2],[[28,[32,3],[":",[30,4],":"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],[[30,0,["icon"]]],null]],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,5],[[[1," "],[10,1],[14,0,"d-button-label"],[12],[1,[30,5]],[13],[1,"\\n"]],[]],[[[1," ​\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[32,5],null,[["@close","@didSelectEmoji","@context"],[[30,0,["menu","close"]],[30,6],[30,0,["context"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@btnClass","@onShow","@onClose","@emoji","@label","@didSelectEmoji"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/index.js",scope:()=>[d.default,o.default,u.default,n.concat,l.default,a.default],isStrictMode:!0}),this))()}},29727:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(9032),n=i(15383),r=i(41500);function a(e,t,i){return(0,n.isEmpty)(e)?(0,s.htmlSafe)("
    "):(0,s.htmlSafe)((0,r.avatarImg)({size:t,avatarTemplate:e,...i}))}},29776:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(11837),n=i(99904),r=i(70508);let a=class extends n.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 i=this.notification.data.username;return i=i?`?username=${i.toLowerCase()}`:"",(0,s.default)(`/badges/${e}/${t}${i}`)}}get description(){return(0,r.i18n)("notifications.granted_badge",{description:this.notification.data.badge_name})}get label(){return null}}},29825:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ROUTER:()=>d,default:()=>p});var s=i(18793),n=i(61312);i(60569),i(57330),i(71729),i(89352);var r=i(77188);i(77061),i(34100),i(28543);var a=i(20352);i(86981),i(43050),i(40413),i(78805),i(25601),i(57460),i(82540),i(27926),i(82069),i(32693),i(80115);var o=i(75093);i(27251);var l=i(15117),u=i(35243);let d=Symbol("ROUTER");function c(e,t){return"/"===t?e:e.substring(t.length)}class p extends o.default.extend(n.default){[d];get _router(){let e=this[d];if(void 0!==e)return e;let t=(0,s.getOwner)(this).lookup("router:main");return this[d]=t}willDestroy(){super.willDestroy(),this[d]=void 0}transitionTo(){for(var e=arguments.length,t=Array(e),i=0;i1?t-1:0),s=1;s0){a=Object.assign({},a),this._router._prepareQueryParams(s,n,a,!0);let e=Object.assign({},o.state.queryParams);return this._router._prepareQueryParams(s,n,e,!0),(0,l.shallowEqual)(a,e)}return!0}recognize(e){this._router.setupRouter();let t=c(e,this.rootURL);return this._router._routerMicrolib.recognize(t)}recognizeAndLoad(e){this._router.setupRouter();let t=c(e,this.rootURL);return this._router._routerMicrolib.recognizeAndLoad(t)}refresh(e){if(!e)return this._router._routerMicrolib.refresh();let t=(0,s.getOwner)(this).lookup(`route:${e}`);return this._router._routerMicrolib.refresh(t)}static #e=(()=>(0,u.d)(this.prototype,"currentRouteName",[(0,a.readOnly)("_router.currentRouteName")]))();#lv=(()=>void(0,u.i)(this,"currentRouteName"))();static #i=(()=>(0,u.d)(this.prototype,"currentURL",[(0,a.readOnly)("_router.currentURL")]))();#lw=(()=>void(0,u.i)(this,"currentURL"))();static #n=(()=>(0,u.d)(this.prototype,"location",[(0,a.readOnly)("_router.location")]))();#lk=(()=>void(0,u.i)(this,"location"))();static #a=(()=>(0,u.d)(this.prototype,"rootURL",[(0,a.readOnly)("_router.rootURL")]))();#lT=(()=>void(0,u.i)(this,"rootURL"))();static #l=(()=>(0,u.d)(this.prototype,"currentRoute",[(0,a.readOnly)("_router.currentRoute")]))();#lS=(()=>void(0,u.i)(this,"currentRoute"))()}},29850:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(95047),n=i(86981),r=i(43343),a=i(64081),o=i(75093),l=i(53939),u=i(66325);class d extends u.default{static #e=(()=>dt7948.g(this.prototype,"menu",[o.service]))();#nq=(()=>void dt7948.i(this,"menu"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"modal",[o.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #a=(()=>dt7948.g(this.prototype,"expanded",[s.tracked],function(){return!1}))();#lC=(()=>void dt7948.i(this,"expanded"))();static #l=(()=>dt7948.g(this.prototype,"detachedTrigger",[s.tracked],function(){return!1}))();#lA=(()=>void dt7948.i(this,"detachedTrigger"))();static #d=(()=>dt7948.g(this.prototype,"options",[s.tracked]))();#lD=(()=>void dt7948.i(this,"options"))();static #p=(()=>dt7948.g(this.prototype,"portalOutletOverrideElement",[s.tracked]))();#lM=(()=>void dt7948.i(this,"portalOutletOverrideElement"))();static #m=(()=>dt7948.g(this.prototype,"_trigger",[s.tracked]))();#lx=(()=>void dt7948.i(this,"_trigger"))();constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(...arguments),(0,a.setOwner)(this,e),this.options={...l.MENU.options,...t},this.portalOutletOverrideElement=t.portalOutletElement}get portalOutletElement(){return this.portalOutletOverrideElement||document.getElementById("d-menu-portals")}get trigger(){return this._trigger}set trigger(e){this._trigger=e,this.id=e.id||(0,r.guidFor)(e),this.setupListeners()}get shouldTrapPointerDown(){return this.expanded}async close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{focusTrigger:!0};(0,a.getOwner)(this).isDestroying||(await super.close(...arguments),this.site.mobileView&&this.options.modalForMobile&&this.expanded&&await this.modal.close(),await this.menu.close(this),e.focusTrigger&&this.trigger?.focus?.(),await this.options.onClose?.(this))}static #f=(()=>dt7948.n(this.prototype,"close",[n.action]))();async show(){await super.show(...arguments),await this.menu.show(this)}static #y=(()=>dt7948.n(this.prototype,"show",[n.action]))();async onPointerMove(e){this.expanded&&this.trigger.contains(e.target)||await this.onTrigger(e)}static #v=(()=>dt7948.n(this.prototype,"onPointerMove",[n.action]))();async onClick(e){if(this.expanded&&this.untriggers.includes("click"))return await this.onUntrigger(e);await this.onTrigger(e)}static #k=(()=>dt7948.n(this.prototype,"onClick",[n.action]))();async onPointerLeave(e){this.untriggers.includes("hover")&&await this.onUntrigger(e)}static #S=(()=>dt7948.n(this.prototype,"onPointerLeave",[n.action]))();async onTrigger(e){e.stopPropagation(),await this.options.beforeTrigger?.(this),await this.show()}static #A=(()=>dt7948.n(this.prototype,"onTrigger",[n.action]))();async onUntrigger(e){e.stopPropagation(),await this.close()}static #M=(()=>dt7948.n(this.prototype,"onUntrigger",[n.action]))();destroy(){this.close(),this.tearDownListeners()}static #E=(()=>dt7948.n(this.prototype,"destroy",[n.action]))()}},29908:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(75093),r=i(51049),a=i(36491),o=i(46447),l=i(70508);class u extends o.default{static #e=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#h=(()=>void dt7948.i(this,"modal"))();model(){let e=this.modelFor("user");return this.siteSettings.enable_badges?a.default.findByUsername(e.get("username")).then(t=>(e.set("badges",t.map(e=>e.badge)),e)):e}setupController(e,t){e.reset(),e.setProperties({model:t,newNameInput:t.get("name"),newTitleInput:t.get("title"),newPrimaryGroupInput:t.get("primary_group_id"),newFlairGroupId:t.get("flair_group_id"),newStatus:t.status,subpageTitle:(0,l.i18n)("user.preferences_nav.account")})}showAvatarSelector(e){this.modal.show(r.default,{model:{user:e}})}static #i=(()=>dt7948.n(this.prototype,"showAvatarSelector",[s.action]))()}},29931:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(73326),n=i(86981),r=i(24813),a=i(15383),o=i(85024),l=i(57079),u=i(51489),d=i.n(u),c=i(8760),p=i(70508),h=i(87542),m=i(21337),g=i(43682),f=i(34001),_=i(45490),y=i(32045),b=i(1519);let w=dt7948.c(class extends h.default{multiSelect=!0;get caretIcon(){let e=this.selectKit.options.maximum;return e&&(0,c.makeArray)(this.value).length>=parseInt(e,10)?null:"plus"}static #e=(()=>dt7948.n(this.prototype,"caretIcon",[(0,n.computed)("value.[]")]))();search(e){return super.search(e).filter(e=>!(0,c.makeArray)(this.selectedContent).includes(e))}append(e){let t=e.map(e=>{let t=this.defaultItem(e,e),i=this.findValue(this.mainCollection,t)||this.findName(this.mainCollection,t);if(i){if(this.validateSelect(i))return this.getValue(i)}else if(this.validateCreate(e,this.content))return e}).filter(Boolean),i=(0,c.makeArray)(this.value).concat(t),s=(0,c.makeArray)(this.selectedContent).concat((0,c.makeArray)(t));this.selectKit.change(i,s)}deselect(e){this.clearErrors();let t=this.selectedContent.filter(t=>this.getValue(e)!==this.getValue(t));this.selectKit.change(this.valueProperty?t.mapBy(this.valueProperty):t,t)}select(e,t){if(this.selectKit.hasSelection&&1===this.selectKit.options.maximum){this.selectKit.deselectByValue(this.getValue(this.selectedContent.firstObject)),(0,r.next)(()=>{this.selectKit.select(e,t)});return}if((0,a.isPresent)(e)){if(this.findValue(this.mainCollection,this.selectKit.valueProperty?t:e)&&!this.validateSelect(t))return;let i=(0,c.makeArray)(this.value).concat((0,c.makeArray)(e)),s=(0,c.makeArray)(this.selectedContent).concat((0,c.makeArray)(t));this.selectKit.change([...new Set(i)],s.length?s:(0,c.makeArray)(this.defaultItem(e,e)))}else{if(!this.validateSelect(this.selectKit.highlighted))return;this.selectKit.change((0,c.makeArray)(this.value).concat((0,c.makeArray)(this.getValue(this.selectKit.highlighted))),(0,c.makeArray)(this.selectedContent).concat((0,c.makeArray)(this.selectKit.highlighted)))}}get selectedContent(){let e=(0,c.makeArray)(this.value).map(e=>this.selectKit.options.castInteger&&(0,g.isNumeric)(e)?Number(e):e);if(e.length){let t=[];return e.forEach(e=>{if(this.selectKit.valueProperty){let i=(0,c.makeArray)(this.content).findBy(this.selectKit.valueProperty,e);i&&t.push(i)}else(0,c.makeArray)(this.content).includes(e)&&t.push(e)}),this.selectKit.modifySelection(t)}return null}static #i=(()=>dt7948.n(this.prototype,"selectedContent",[(0,n.computed)("value.[]","content.[]","selectKit.noneItem")]))();_onKeydown(e){if("Enter"===e.code&&e.target.classList.contains("selected-name"))return e.stopPropagation(),this.selectKit.deselectByValue(e.target.dataset.value),!1;if("Backspace"===e.code){e.stopPropagation();let t=this.getFilterInput();if(t&&0===t.value.length){let e=this.element.querySelectorAll(".select-kit-header .choice.select-kit-selected-name");if(e.length){let t=e[e.length-1];t&&(t===document.activeElement?this.deselect(this.selectedContent.lastObject):t.focus())}}}return!0}static #n=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"4HBKdUlZ",block:'[[[1,"\\n"],[41,[51,[30,0,["selectKit","isHidden"]]],[[[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","headerComponent"]]],null]],[[[1," "],[8,[30,1],null,[["@tabindex","@value","@selectedContent","@selectKit","@id"],[[30,0,["tabindex"]],[30,0,["value"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-header"],null]]],null],[1,"\\n"]],[1]]],[1,"\\n "],[8,[32,2],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-body"],null]]],[["default"],[[[[1,"\\n"],[41,[51,[30,0,["selectKit","options","useHeaderFilter"]]],[[[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","filterComponent"]]],null]],[[[1," "],[8,[30,2],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[32,1],[[30,0,["selectKit","uniqueID"]],"-filter"],null]]],null],[1,"\\n"]],[2]]],[1,"\\n"],[41,[30,0,["selectedContent","length"]],[[[1," "],[10,0],[14,0,"selected-content"],[12],[1,"\\n"],[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","selectedChoiceComponent"]]],null]],[[[42,[28,[31,4],[[28,[31,4],[[30,0,["selectedContent"]]],null]],null],null,[[[1," "],[8,[30,3],null,[["@item","@selectKit","@mandatoryValues"],[[30,4],[30,0,["selectKit"]],[30,5]]],null],[1,"\\n"]],[4]],null]],[3]]],[1," "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["collections"]]],null]],null],null,[[[44,[[28,[32,0],[[30,0],[28,[32,3],[[30,6,["identifier"]],[30,0,["selectKit"]]],null]],null]],[[[1," "],[8,[30,7],null,[["@collection","@selectKit","@value"],[[30,6],[30,0,["selectKit"]],[30,0,["value"]]]],null],[1,"\\n"]],[7]]]],[6]],null],[1,"\\n"],[41,[30,0,["selectKit","filter"]],[[[41,[28,[32,4],[[30,0,["selectKit","hasNoContent"]],[28,[32,5],[[30,0,["selectKit","isLoading"]]],null]],null],[[[1," "],[10,1],[14,0,"no-content"],[14,"role","alert"],[12],[1,"\\n "],[1,[28,[32,6],["select_kit.no_content"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"results-count"],[14,"role","alert"],[12],[1,"\\n "],[1,[28,[32,6],["select_kit.results_count"],[["count"],[[30,0,["mainCollection","length"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["HeaderComponent","FilterComponent","SelectedChoiceComponent","item","@mandatoryValues","collection","CollectionComponent"],false,["unless","let","if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/multi-select.js",scope:()=>[h.resolveComponent,s.concat,m.default,d(),l.and,l.not,p.i18n],isStrictMode:!0}),this))()},[(0,h.pluginApiIdentifiers)(["multi-select"]),(0,h.selectKitOptions)({none:"select_kit.default_header_text",clearable:!0,filterable:!0,filterIcon:null,closeOnChange:!1,autoInsertNoneItem:!1,headerComponent:_.default,filterComponent:f.default,autoFilterable:!0,caretDownIcon:"caretIcon",caretUpIcon:"caretIcon",useHeaderFilter:!1}),(0,o.classNames)("multi-select")])},29980:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(73326),n=i(70568),r=i(75370),a=i(57079),o=i(76947),l=i(13355),u=i(21661),d=i(67784),c=i(53329),p=i(74230),h=i(38069),m=i(19006),g=i(10458),f=i(70508),_=i(56179),y=i(7749),b=i(53753),w=i(32045),k=i(1519),T=i(69522);let S=(0,r.default)((0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"cYKWeTry",block:'[[[1,"\\n"],[41,[30,1,["displayUnknownReviewableTypesWarning"]],[[[1," "],[10,0],[14,0,"alert alert-info unknown-reviewables"],[12],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,[28,[32,0],["review.unknown.title"],[["count"],[[30,1,["unknownReviewableTypes","length"]]]]]],[13],[1,"\\n\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["unknownReviewableTypes"]]],null]],null],null,[[[41,[28,[32,1],[[30,2,["source"]],[30,1,["unknownTypeSource"]]],null],[[[1," "],[10,"li"],[12],[1,[28,[32,0],["review.unknown.reviewable_unknown_source"],[["reviewableType"],[[30,2,["type"]]]]]],[13],[1,"\\n"]],[]],[[[1," "],[10,"li"],[12],[1,[28,[32,0],["review.unknown.reviewable_known_source"],[["reviewableType","pluginName"],[[30,2,["type"]],[30,2,["source"]]]]]],[13],[1,"\\n"]],[]]]],[2]],null],[1," "],[13],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,[28,[32,2],[[28,[32,0],["review.unknown.instruction"],[["url"],["https://meta.discourse.org/t/350179"]]]],null]],[13],[1,"\\n "],[10,0],[14,0,"unknown-reviewables__options"],[12],[1,"\\n "],[8,[32,3],[[24,0,"btn"]],[["@route"],["adminPlugins.index"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["puzzle-piece"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,0],["review.unknown.enable_plugins"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,5],[[24,0,"btn-default"]],[["@label","@icon","@action"],["review.unknown.ignore_all","trash-can",[30,1,["ignoreAllUnknownTypes"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"reviewable-container"],[12],[1,"\\n "],[10,0],[14,0,"reviewable-list"],[12],[1,"\\n"],[41,[30,1,["reviewables"]],[[[1," "],[8,[32,6],null,[["@action"],[[30,1,["loadMore"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"reviewables"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["reviewables"]]],null]],null],null,[[[1," "],[8,[32,7],null,[["@reviewable","@remove"],[[30,3],[30,1,["remove"]]]],null],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[32,8],null,[["@condition"],[[30,1,["reviewables","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"no-review"],[12],[1,"\\n "],[1,[28,[32,0],["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,[32,0],["review.filters.status"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@value","@content","@onChange"],[[30,1,["filterStatus"]],[30,1,["statuses"]],[28,[32,10],[[28,[31,3],[[30,1,["filterStatus"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["filtersExpanded"]],[[[1,"\\n "],[10,1],[12],[1,"\\n "],[8,[32,11],null,[["@name","@connectorTagName","@outletArgs"],["above-review-filters","div",[28,[32,12],null,[["model","additionalFilters"],[[30,1,["model"]],[30,1,["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,[32,0],["review.filters.type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@value","@content","@onChange","@options"],[[30,1,["filterType"]],[30,1,["allTypes"]],[28,[32,10],[[28,[31,3],[[30,1,["filterType"]]],null]],null],[28,[32,13],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,[32,0],["review.filters.score_type.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@value","@content","@onChange","@options"],[[30,1,["filterScoreType"]],[30,1,["allScoreTypes"]],[28,[32,10],[[28,[31,3],[[30,1,["filterScoreType"]]],null]],null],[28,[32,13],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,[32,0],["review.filters.priority.title"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@value","@content","@onChange"],[[30,1,["filterPriority"]],[30,1,["priorities"]],[28,[32,10],[[28,[31,3],[[30,1,["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,[32,0],["review.filters.category"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,14],null,[["@value","@onChange","@options"],[[30,1,["filterCategoryId"]],[28,[32,10],[[28,[31,3],[[30,1,["filterCategoryId"]]],null]],null],[28,[32,13],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,[32,0],["review.filtered_flagged_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,15],null,[["@value","@onChange","@options"],[[30,1,["filterFlaggedBy"]],[30,1,["updateFilterFlaggedBy"]],[28,[32,13],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,[32,0],["review.filtered_reviewed_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,15],null,[["@value","@onChange","@options"],[[30,1,["filterReviewedBy"]],[30,1,["updateFilterReviewedBy"]],[28,[32,13],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,[32,0],["review.filtered_user"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,15],[[24,0,"user-selector"]],[["@value","@onChange","@options"],[[30,1,["filterUsername"]],[30,1,["updateFilterUsername"]],[28,[32,13],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,1,["filterTopic"]],[[[1," "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n "],[10,"label"],[14,0,"filter-label"],[12],[1,"\\n "],[1,[28,[32,0],["review.filtered_topic"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,5],[[24,0,"btn-default"]],[["@label","@icon","@action"],["review.show_all_topics","xmark",[30,1,["resetTopic"]]]],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,[32,0],["review.date_filter"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,16],null,[["@from","@to","@onChange","@showFromTime","@showToTime"],[[30,1,["filterFromDate"]],[30,1,["filterToDate"]],[30,1,["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,[32,0],["review.order_by"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,9],null,[["@value","@content","@onChange"],[[30,1,["filterSortOrder"]],[30,1,["sortOrders"]],[28,[32,10],[[28,[31,3],[[30,1,["filterSortOrder"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"reviewable-filters-actions"],[12],[1,"\\n "],[8,[32,5],[[24,0,"btn-primary refresh"]],[["@icon","@label","@action"],["arrows-rotate","review.filters.refresh",[30,1,["refresh"]]]],null],[1,"\\n\\n"],[41,[30,1,["site","mobileView"]],[[[1," "],[8,[32,5],[[24,0,"btn-default expand-secondary-filters"]],[["@label","@icon","@action"],["show_help",[30,1,["toggleFiltersIcon"]],[30,1,["toggleFilters"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller","reviewable","r"],false,["if","each","-track-array","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/review-index.js",scope:()=>[f.i18n,a.eq,m.default,n.LinkTo,h.default,l.default,d.default,p.default,o.default,y.default,s.fn,c.default,g.default,s.hash,_.default,b.default,u.default],isStrictMode:!0}),(0,T.default)(void 0,void 0)))},30022:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317);i(7155);var n=i(64081),r=i(75093),a=i(26979),o=i(65005),l=i(32045),u=i(1519);let d=(0,i(96900).A)(i(7155)).cached;class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"sidebarState",[r.service]))();#ty=(()=>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:i}=e;super(),this.filterable=t,this.sidebarState=i}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",[d]))();get activeLink(){return this.filteredLinks.find(e=>{try{let i,s=e.currentWhen;if("boolean"==typeof s)return s;let n=e.query||{};if(i=e.model?[e.model]:e.models?e.models:[],"string"==typeof s)return s.split(" ").some(e=>t.isActive(e,...i,{queryParams:n}));return t.isActive(e.route,...i,{queryParams:n})}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,n.setOwner)(t,(0,n.getOwner)(this)),t})}get filteredSections(){return this.sections.filter(e=>e.filtered)}static #n=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"HbXEFMtW",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],"name",[[[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:()=>[o.default,a.default],isStrictMode:!0}),this))()}},30023:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(94160),n=i(43248),r=i(18693),a=i(22433),o=i(78566),l=i(88252);let u={after:"inject-discourse-objects",initialize(e){e.register("route:discovery.category",(0,a.default)({filter:"default"})),e.register("controller:discovery.category",n.default),e.register("route:discovery.category-none",(0,a.default)({filter:"default",no_subcategories:!0})),e.register("controller:discovery.category-none",n.default),e.register("route:discovery.category-all",(0,a.default)({filter:"default",no_subcategories:!1})),e.register("controller:discovery.category-all",n.default);let t=r.default.current();t.get("filters").forEach(t=>{let i=(0,s.dasherize)(t);e.register(`route:discovery.${i}`,(0,o.default)(t)),e.register(`controller:discovery.${i}`,n.default),e.register(`route:discovery.${i}-category`,(0,a.default)({filter:t})),e.register(`controller:discovery.${i}-category`,n.default),e.register(`route:discovery.${i}-category-none`,(0,a.default)({filter:t,no_subcategories:!0})),e.register(`controller:discovery.${i}-category-none`,n.default)}),e.register("route:tags.show-category",(0,l.buildTagRoute)()),e.register("controller:tags.show-category",n.default),e.register("route:tags.show-category-none",(0,l.buildTagRoute)({noSubcategories:!0})),e.register("controller:tags.show-category-none",n.default),e.register("route:tags.show-category-all",(0,l.buildTagRoute)({noSubcategories:!1})),e.register("controller:tags.show-category-all",n.default),t.get("filters").forEach(function(t){let i=(0,s.dasherize)(t);e.register(`route:tag.show-${i}`,(0,l.buildTagRoute)({navMode:t})),e.register(`controller:tag.show-${i}`,n.default),e.register(`route:tags.show-category-${i}`,(0,l.buildTagRoute)({navMode:t})),e.register(`controller:tags.show-category-${i}`,n.default),e.register(`route:tags.show-category-none-${i}`,(0,l.buildTagRoute)({navMode:t,noSubcategories:!0})),e.register(`controller:tags.show-category-none-${i}`,n.default),e.register(`route:tags.show-category-all-${i}`,(0,l.buildTagRoute)({navMode:t,noSubcategories:!1})),e.register(`controller:tags.show-category-all-${i}`,n.default)})}}},30137:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(7155),n=i(50890),r=i(86981),a=i(91558),o=i(75093),l=i(94160),u=i(16356),d=i(14051),c=i(10216),p=i(77296),h=i(23062),m=i(642),g=i(70508);let f=["name","slug","parent_category_id","description","color","text_color","style_type","emoji","icon","localizations"];class _ extends n.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"site",[o.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"router",[o.service]))();#g=(()=>void dt7948.i(this,"router"))();static #a=(()=>dt7948.g(this.prototype,"breadcrumbCategories",[s.tracked],function(){return this.site.get("categoriesList")}))();#lE=(()=>void dt7948.i(this,"breadcrumbCategories"))();selectedTab="general";saving=!1;deleting=!1;panels=[];showTooltip=!1;createdCategory=!1;expandedMenu=!1;parentParams=null;validators=[];textColors=["000000","FFFFFF"];static #l=(()=>dt7948.g(this.prototype,"showDeleteReason",[(0,a.and)("showTooltip","model.cannot_delete_reason")]))();#lL=(()=>void dt7948.i(this,"showDeleteReason"))();get formData(){let e=(0,r.getProperties)(this.model,...f);return this.model.styleType||(e.style_type="square"),e}canSaveForm(e){return!!e.name&&!!e.color&&(this.saving||this.deleting,!0)}static #d=(()=>dt7948.n(this.prototype,"canSaveForm",[r.action]))();deleteDisabled(e,t){return t||e||!1}static #p=(()=>dt7948.n(this.prototype,"deleteDisabled",[(0,d.default)("saving","deleting")]))();categoryName(e){return(e=e||"").trim().length>0?e:(0,g.i18n)("preview")}static #m=(()=>dt7948.n(this.prototype,"categoryName",[(0,d.default)("name")]))();saveLabel(e,t){return e?"saving":t?"category.save":"category.create"}static #f=(()=>dt7948.n(this.prototype,"saveLabel",[(0,d.default)("saving","model.id")]))();title(e,t){return e?(0,g.i18n)("category.edit_dialog_title",{categoryName:t}):(0,g.i18n)("category.create")}static #y=(()=>dt7948.n(this.prototype,"title",[(0,d.default)("model.id","model.name")]))();selectedTabTitle(e){return(0,g.i18n)(`category.${(0,l.underscore)(e)}`)}static #v=(()=>dt7948.n(this.prototype,"selectedTabTitle",[(0,d.default)("selectedTab")]))();registerValidator(e){this.validators.push(e)}static #k=(()=>dt7948.n(this.prototype,"registerValidator",[r.action]))();isLeavingForm(e){return!e.targetName.startsWith("editCategory.tabs")}static #S=(()=>dt7948.n(this.prototype,"isLeavingForm",[r.action]))();saveCategory(e){this.validators.some(e=>e())||(this.model.setProperties(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:m.default.FULL,notification_level:c.NotificationLevels.REGULAR}),this.site.updateCategory(this.model),this.router.transitionTo("editCategory",h.default.slugFor(this.model))),this.breadcrumbCategories=this.site.categoriesList.map(e=>e.id===this.model.id?this.model:e)}).catch(e=>{(0,u.popupAjaxError)(e),this.model.set("parent_category_id",void 0)}).finally(()=>{this.set("saving",!1)}))}static #A=(()=>dt7948.n(this.prototype,"saveCategory",[r.action]))();deleteCategory(){this.set("deleting",!0),this.dialog.deleteConfirm({title:(0,g.i18n)("category.delete_confirm"),didConfirm:()=>{this.model.destroy().then(()=>{this.router.transitionTo("discovery.categories")}).catch(()=>{this.displayErrors([(0,g.i18n)("category.delete_error")])}).finally(()=>{this.set("deleting",!1)})},didCancel:()=>this.set("deleting",!1)})}static #M=(()=>dt7948.n(this.prototype,"deleteCategory",[r.action]))();toggleDeleteTooltip(){this.toggleProperty("showTooltip")}static #E=(()=>dt7948.n(this.prototype,"toggleDeleteTooltip",[r.action]))();goBack(){p.default.routeTo(this.model.url)}static #P=(()=>dt7948.n(this.prototype,"goBack",[r.action]))()}},30171:(e,t,i)=>{"use strict";function s(e,t,i){return i.modifyComponentForRow(e,t)}i.r(t),i.d(t,{default:()=>s})},30175:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(9032),n=i(13355),r=i(39826),a=i(70508),o=i(32045),l=i(1519),u=i(69522);let d=(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"Zdg5vCi3",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"post-enqueued-modal"]],[["@closeModal","@title"],[[30,1],[28,[32,1],["review.approval.title"],null]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,[28,[32,1],["review.approval.description"],null]],[13],[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,2],[[28,[32,1],["review.approval.pending_posts"],[["count"],[[30,2,["pending_count"]]]]]],null]],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"review.approval.ok"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],["@closeModal","@model"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/post-enqueued.js",scope:()=>[r.default,a.i18n,s.htmlSafe,n.default],isStrictMode:!0}),(0,u.default)(void 0,"post-enqueued:PostEnqueued"))},30185:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(75093),r=i(94160),a=i(63538),o=i(77982),l=i(10991),u=i(37630),d=i(65450),c=i(32045),p=i(1519);let h={custom:l.default,new_user:u.default,returning_user:d.default};class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get Component(){return(0,o.applyValueTransformer)("post-notice-component",h[this.type],{type:this.type,post:this.args.post})}get classNames(){let e=[(0,r.dasherize)(this.type)];return new Date-new Date(this.args.post.created_at)>864e5*this.siteSettings.old_post_notice_days&&e.push("old"),e}get type(){return this.args.post.notice.type}static #i=(()=>(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:"RCwJw/W0",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["post-notice",[30,0,["classNames"]]],null]],[12],[1,"\\n "],[8,[30,0,["Component"]],null,[["@notice","@post"],[[30,1,["notice"]],[30,1]]],null],[1,"\\n "],[13],[1,"\\n "]],["@post"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/notice.js",scope:()=>[a.default],isStrictMode:!0}),this))()}},30258:(e,t,i)=>{"use strict";let s,n,r,a;i.r(t),i.d(t,{getHighestReadCache:()=>h,nextTopicUrl:()=>d,previousTopicUrl:()=>c,resetHighestReadCache:()=>m,setHighestReadCache:()=>p,setTopicId:()=>f,setTopicList:()=>u});var o=i(31075),l=i(10216);function u(e){s=e,s?.topics?.forEach(e=>{if(e.notification_level>=l.NotificationLevels.TRACKING){let t=h(e.id);if(t&&t>=e.last_read_post_number){let i=Math.max(e.highest_post_number-t,0);e.setProperties({unread_posts:i,new_posts:i}),m()}}}),n=null}function d(){return g(1)}function c(){return g(-1)}function p(e,t){r=e,a=t}function h(e){if(e===r)return a}function m(){r=void 0,a=void 0}function g(e){if(!s||!s.topics)return o.Promise.resolve(null);let t=function(){if(n&&s&&s.topics){let e=s.topics.findIndex(e=>e.id===n);if(e>-1)return e}return -1}();-1===t?t=0:t+=e;let i=s.topics[t];return!i&&t>0&&s.more_topics_url&&s.loadMore?s.loadMore().then(()=>g(e)):i?(n=i.id,o.Promise.resolve(i.lastUnreadUrl)):o.Promise.resolve(null)}function f(e){n=e}},30321:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(70508),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"GW0zdNrd",block:'[[[1,"\\n "],[10,2],[14,0,"user-profile-hidden"],[12],[1,[28,[32,0],["user.profile_hidden"],null]],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/profile-hidden.js",scope:()=>[n.i18n],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},30375:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(7953),a=i(51742),o=i.n(a),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"tooltip",[n.service]))();#td=(()=>void dt7948.i(this,"tooltip"))();registerDTooltip=(()=>(0,r.modifier)(e=>{o()("`` is deprecated. Use `` or the `tooltip` service instead.",{id:"discourse.d-popover"});let t=e.children[0],i=e.children[1];if(!t||!i)return;let s=this.tooltip.register(t,{content:i});return i.remove(),()=>{s.destroy()}}))();static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"kEXzdHRf",block:'[[[1,"\\n "],[11,0],[24,5,"display:inline-flex;"],[4,[30,0,["registerDTooltip"]],null,null],[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-packages/float-kit.d0433c99/node_modules/float-kit/components/d-popover.js",isStrictMode:!0}),this))()}},30407:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(93317),n=i(7155),r=i(32045),a=i(86981),o=i(96848),l=i(75093),u=i(9032),d=i(76947),c=i(13355),p=i(39826),h=i(13563),m=i(25217),g=i(70508),f=i(1519);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"capabilities",[l.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #i=(()=>dt7948.g(this.prototype,"loading",[n.tracked],function(){return!1}))();#sA=(()=>void dt7948.i(this,"loading"))();static #n=(()=>dt7948.g(this.prototype,"errorMessage",[n.tracked],function(){return null}))();#sD=(()=>void dt7948.i(this,"errorMessage"))();static #a=(()=>dt7948.g(this.prototype,"securityKeyName",[n.tracked]))();#lP=(()=>void dt7948.i(this,"securityKeyName"))();maxSecondFactorNameLength=(()=>m.MAX_SECOND_FACTOR_NAME_LENGTH)();get webauthnUnsupported(){return!(0,h.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,g.i18n)(e),this.loading=!0,this.args.model.secondFactor.requestSecurityKeyChallenge().then(e=>{if(e.error){this.errorMessage=e.error;return}this.errorMessage=(0,h.isWebauthnSupported)()?null:(0,g.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 #l=(()=>dt7948.n(this.prototype,"securityKeyRequested",[a.action]))();registerSecurityKey(){if(!this.securityKeyName){this.errorMessage=(0,g.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,h.stringToBuffer)(atob(e))})),timeout:2e4,attestation:"none",authenticatorSelection:{userVerification:"discouraged"}};navigator.credentials.create({publicKey:e}).then(e=>{let t={id:e.id,rawId:(0,h.bufferToBase64)(e.rawId),type:e.type,attestation:(0,h.bufferToBase64)(e.response.attestationObject),clientData:(0,h.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,g.i18n)("user.second_factor.security_key.already_added_error");return}if("NotAllowedError"===e.name){this.errorMessage=(0,g.i18n)("user.second_factor.security_key.not_allowed_error");return}this.errorMessage=e.message})}static #d=(()=>dt7948.n(this.prototype,"registerSecurityKey",[a.action]))();static #p=(()=>(0,r.setComponentTemplate)((0,f.createTemplateFactory)({id:"lCRtMs/S",block:'[[[1,"\\n "],[8,[32,0],[[4,[32,2],[[30,0,["securityKeyRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[32,1],["user.second_factor.security_key.add"],null]]],[["body"],[[[[1,"\\n "],[8,[32,3],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,[32,4],[[28,[32,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,[32,5],[[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,[32,6],[[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 "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/second-factor-add-security-key.js",scope:()=>[p.default,g.i18n,o.default,d.default,u.htmlSafe,r.Input,c.default],isStrictMode:!0}),this))()}},30408:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(77296),n=i(35697);let r={after:"inject-objects",initialize(e){s.default.rewrite(/^\/group\//,"/groups/"),s.default.rewrite(/^\/groups$/,"/g"),s.default.rewrite(/^\/groups\//,"/g/");let t=e.lookup("service:current-user"),i=e.lookup("service:site-settings");t?s.default.rewrite(/^\/my\//,`/u/${t.username_lower}/`):s.default.rewrite(/^\/my\/.*/,"/login-preferences"),(0,n.initializeDefaultHomepage)(i)}}},30456:(e,t,i)=>{"use strict";i.r(t),i.d(t,{FORMAT:()=>c,default:()=>p});var s=i(86981),n=i(91558),r=i(15383),a=i(85024),o=i(7749),l=i(87542),u=i(4736),d=i(51865);let c="YYYY-MM-DD HH:mmZ",p=dt7948.c(class extends o.default{static #e=(()=>dt7948.g(this.prototype,"isCustom",[(0,n.equal)("value","custom")]))();#lF=(()=>void dt7948.i(this,"isCustom"))();userTimezone=null;init(){super.init(...arguments),this.userTimezone=this.currentUser.user_option.timezone}modifyComponentForRow(){return d.default}_onChange(e){if("custom"!==e&&!(0,r.isEmpty)(e)){let{time:t}=this.content.find(t=>t.id===e);t&&this.onChangeInput?.(t.locale("en").format(c))}this.onChange?.(e)}static #i=(()=>dt7948.n(this.prototype,"_onChange",[s.action]))()},[(0,l.pluginApiIdentifiers)("future-date-input-selector"),(0,l.selectKitOptions)({autoInsertNoneItem:!1,headerComponent:u.default}),(0,a.classNames)("future-date-input-selector")])},30505:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(64081),r=i(75093),a=i(26592),o=i.n(a),l=i(7953),u=i(95397),d=i(14051),c=i(4877),p=i(32045),h=i(1519);class m extends s.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,i]of(this.textarea=e,this.#lI=new(o())(e),this.textManipulation=new c.default((0,n.getOwner)(this),{markdownOptions:this.args.markdownOptions,textarea:e}),Object.entries(this.args.keymap)))this.#lI.bind(t,i);let t=this.args.onSetup(this.textManipulation);return this.setupSmartList(),()=>{this.destroySmartList(),t?.(),this.#lI?.destroy(),this.#lI=null}}))();#lI;#lN=!1;#lj=!1;onInputSmartList(){this.#lN&&this.textManipulation.maybeContinueList(),this.#lN=!1}static #i=(()=>dt7948.n(this.prototype,"onInputSmartList",[d.bind]))();onBeforeInputSmartListShiftDetect(e){this.#lj=e.shiftKey}static #n=(()=>dt7948.n(this.prototype,"onBeforeInputSmartListShiftDetect",[d.bind]))();onBeforeInputSmartList(e){this.#lj||(this.#lN="insertLineBreak"===e.inputType)}static #a=(()=>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 #l=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"ULJQtalr",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[30,1]],[4,[30,0,["registerTextarea"]],null,null]],[["@autocomplete","@value","@placeholder","@aria-label","@disabled","@input","@focusIn","@focusOut","@id"],["off",[30,2],[30,3],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n "]],["@class","@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))()}},30507:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(41107),n=i.n(s);class r{constructor(e){this.html=e.html}init(){let e=n()(this.html);return this.decorate(e),e[0]}decorate(){}update(e){if(e.html!==this.html)return this.init()}destroy(){}}r.prototype.type="Widget"},30592:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(88192),n=i(73728),r=i(70508);class a extends n.default{userActionType=(()=>s.default.TYPES.edits)();titleToken(){return(0,r.i18n)("user_action_groups.11")}}},30619:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(7155),n=i(86981),r=i(75093),a=i(39826),o=i(25839),l=i(63272),u=i(44233),d=i(31662);let c=new Set(["admin","templateName","title","titleTranslated","modalClass","titleAriaElementId","panels"]),p=dt7948.c(class extends r.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"activeModal",[s.tracked]))();#lO=(()=>void dt7948.i(this,"activeModal"))();static #n=(()=>dt7948.g(this.prototype,"opts",[s.tracked],function(){return{}}))();#e3=(()=>void dt7948.i(this,"opts"))();static #a=(()=>dt7948.g(this.prototype,"containerElement",[s.tracked]))();#lR=(()=>void dt7948.i(this,"containerElement"))();triggerElement=null;setContainerElement(e){this.containerElement=e}static #l=(()=>dt7948.n(this.prototype,"setContainerElement",[n.action]))();async show(e,t){let i;if("string"==typeof e){this.dialog.alert(`Error: the '${e}' modal needs updating to work with the latest version of Discourse. See https://meta.discourse.org/t/268057.`),(0,l.default)(`Defining modals using a controller is no longer supported. Use the component-based API instead. (modal: ${e})`,{id:"discourse.modal-controllers",since:"3.1",dropFrom:"3.2",url:"https://meta.discourse.org/t/268057",raiseError:!0});return}this.close({initiatedBy:a.CLOSE_INITIATED_BY_MODAL_SHOW}),await (0,d.waitForClosedKeyboard)(this);let s=new Promise(e=>{i=e});this.opts=t??={},this.activeModal={component:e,opts:t,resolveShowPromise:i},this.triggerElement=document.activeElement;let n=Object.keys(t).filter(e=>c.has(e));if(n.length>0)throw Error(`${n.join(", ")} are not supported in the component-based modal API. See https://meta.discourse.org/t/268057`);return s}close(e){(0,o.clearAllBodyScrollLocks)(),this.activeModal?.resolveShowPromise?.(e),this.activeModal=null,this.opts={},this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null)}},[u.disableImplicitInjections])},30666:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(7155),r=i(86981),a=i(39631),o=i(13355),l=i(70508),u=i(32045),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"expanded",[n.tracked],function(){return!1}))();#lC=(()=>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 #i=(()=>dt7948.n(this.prototype,"toggleExpanded",[r.action]))();static #n=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[a.default,o.default,l.i18n],isStrictMode:!0}),this))()}},30682:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(99904),n=i(70508);let r=class extends s.default{get label(){return(0,n.i18n)("notifications.watching_first_post_label")}}},30688:(e,t,i)=>{"use strict";function s(e,t,i){return void 0===i||0==+i?Math[e](t):(i*=1,isNaN(t*=1)||"number"!=typeof i||i%1!=0)?NaN:+((t=(t=Math[e](+((t=t.toString().split("e"))[0]+"e"+(t[1]?t[1]-i:-i)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+i:i))}i.r(t),i.d(t,{default:()=>s})},30698:(e,t,i)=>{"use strict";i.r(t),i.d(t,{actionDescription:()=>_,actionDescriptionHtml:()=>f,addPostSmallActionClassesCallback:()=>w,addPostSmallActionIcon:()=>b,default:()=>T,resetPostSmallActionClassesCallbacks:()=>k});var s=i(86981),n=i(9032),r=i(11651),a=i(19237),o=i(91035),l=i(21530),u=i(77296),d=i(8135),c=i(68325),p=i(94023),h=i(30507),m=i(88627),g=i(70508);function f(e,t,i,s){let r=t?(0,o.autoUpdatingRelativeAge)(new Date(t),{format:"medium-with-ago-and-on"}):"",l="";return i&&(l=a.GROUP_ACTION_CODES.includes(e)||a.customGroupActionCodes.includes(e)?`@${i}`:`@${i}`),(0,n.htmlSafe)((0,g.i18n)(`action_codes.${e}`,{who:l,when:r,path:s}))}function _(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,s.computed)(e,t,function(){let s=this.get(e);if(s)return f(s,this.get(t),this.get(i),n?this.get(n):null)})}let y=[];function b(e,t){a.ICONS[e]=t}function w(e){y.push(e)}function k(){y.length=0}let T=(0,m.createWidget)("post-small-action",{buildKey:e=>`post-small-act-${e.id}`,tagName:"article.small-action.onscreen-post",buildAttributes:e=>({"aria-label":(0,g.i18n)("share.post",{postNumber:e.post_number,username:e.username}),role:"region"}),buildId:e=>`post_${e.post_number}`,buildClasses(e){let t=[];return e.deleted&&t.push("deleted"),y.length>0&&y.forEach(i=>{let s=i.call(this,e);s&&t.push(...s)}),t},html(e){let t=[],i=[];if(t.push(c.avatarFor.call(this,"small",{template:e.avatar_template,username:e.username,url:e.usernameUrl,ariaHidden:!1})),e.actionDescriptionWidget)t.push(this.attach(e.actionDescriptionWidget,e));else{let i=f(e.actionCode,new Date(e.created_at),e.actionCodeWho,e.actionCodePath);t.push(new h.default({html:`

    ${i}

    `}))}return e.canRecover&&i.push(this.attach("button",{className:"btn-flat small-action-recover",icon:"arrow-rotate-left",action:"recoverPost",title:"post.controls.undelete"})),e.canEdit&&!e.canRecover&&i.push(this.attach("button",{className:"btn-flat small-action-edit",icon:"pencil",action:"editPost",title:"post.controls.edit"})),e.canDelete&&i.push(this.attach("button",{className:"btn-flat btn-danger small-action-delete",icon:"trash-can",action:"deletePost",title:"post.controls.delete"})),[(0,r.h)("div.topic-avatar",(0,l.iconNode)(a.ICONS[e.actionCode]||"exclamation")),(0,r.h)("div.small-action-desc",[(0,r.h)("div.small-action-contents",t),(0,r.h)("div.small-action-buttons",i),!e.actionDescriptionWidget&&e.cooked?(0,r.h)("div.small-action-custom-message",[new p.default(e,new d.default(this),this.currentUser)]):null])]}})},30732:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(64081),r=i(24813),a=i(75093),o=i(60551),l=i(85990);class u extends a.default{registeredTooltips=(()=>new o.TrackedSet)();async show(){let e;if(arguments[0]instanceof l.default){if(e=arguments[0],e.expanded)return}else e=[...this.registeredTooltips].find(e=>e.trigger===arguments[0]),e||(e=new l.default((0,n.getOwner)(this),arguments[1]),e.trigger=arguments[0],e.detachedTrigger=!0);if(e.options.identifier)for(let t of this.registeredTooltips)t.options.identifier===e.options.identifier&&t!==e&&await this.close(t);return e.expanded?void await this.close(e):(this.registeredTooltips.has(e)||this.registeredTooltips.add(e),e.expanded=!0,await new Promise(e=>(0,r.schedule)("afterRender",e)),e)}static #e=(()=>dt7948.n(this.prototype,"show",[s.action]))();async close(e){"string"==typeof e&&(e=[...this.registeredTooltips].find(t=>t.options.identifier===e)),e&&(e.expanded=!1,this.registeredTooltips.has(e)&&this.registeredTooltips.delete(e),await new Promise(e=>(0,r.schedule)("afterRender",e)))}static #i=(()=>dt7948.n(this.prototype,"close",[s.action]))();register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new l.default((0,n.getOwner)(this),{...t,listeners:!0});return i.trigger=e,i.detachedTrigger=!0,i}static #n=(()=>dt7948.n(this.prototype,"register",[s.action]))()}},30769:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(91761);let n=new Proxy(i(77325).default,{get:(e,t,i)=>("string"==typeof t&&(0,s.deprecateUntil)(`importing ${t} from the 'ember' barrel file is deprecated.`,s.DEPRECATIONS.DEPRECATE_IMPORT_EMBER(t)),Reflect.get(e,t,i)),getOwnPropertyDescriptor:(e,t)=>("string"==typeof t&&(0,s.deprecateUntil)(`importing ${t} from the 'ember' barrel file is deprecated.`,s.DEPRECATIONS.DEPRECATE_IMPORT_EMBER(t)),Object.getOwnPropertyDescriptor(e,t))})},30814:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(78444),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"lxoJcZai",block:'[[[8,[32,0],null,[["@stream"],[[30,1,["model"]]]],null]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/posts.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},30895:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(53329),n=i(10458),r=i(32045),a=i(1519),o=i(69522);let l=(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"ccpYkg9G",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["category-title-before",[28,[32,1],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],["@category"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-title-before.js",scope:()=>[s.default,n.default],isStrictMode:!0}),(0,o.default)(void 0,"category-title-before:CategoryTitleBefore"))},30899:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9032),n=i(91035);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.htmlSafe)((0,n.autoUpdatingRelativeAge)(new Date(e),{...t,title:t.title??!0}))}},30965:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(96791),r=i(86981),a=i(75093),o=i(9032),l=i(13355),u=i(32045),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"userTips",[a.service]))();#ax=(()=>void dt7948.i(this,"userTips"))();get safeHtmlContent(){return(0,o.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 #i=(()=>dt7948.n(this.prototype,"handleDismiss",[r.action]))();handleSkip(e,t){t.preventDefault(),this.args.close(),this.userTips.skipTips()}static #n=(()=>dt7948.n(this.prototype,"handleSkip",[r.action]))();onClick(e){"A"===e.target.nodeName&&this.args.close()}static #a=(()=>dt7948.n(this.prototype,"onClick",[r.action]))();static #l=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[n.on,l.default],isStrictMode:!0}),this))()}},30992:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(75093),u=i(13355),d=i(39826),c=i(93709),p=i(11624),h=i(16356),m=i(251),g=i(63159),f=i(70508),_=i(7749),y=i(1519);let b=[{id:"600",name:(0,f.i18n)("topic.slow_mode_update.durations.10_minutes")},{id:"900",name:(0,f.i18n)("topic.slow_mode_update.durations.15_minutes")},{id:"1800",name:(0,f.i18n)("topic.slow_mode_update.durations.30_minutes")},{id:"2700",name:(0,f.i18n)("topic.slow_mode_update.durations.45_minutes")},{id:"3600",name:(0,f.i18n)("topic.slow_mode_update.durations.1_hour")},{id:"7200",name:(0,f.i18n)("topic.slow_mode_update.durations.2_hours")},{id:"14400",name:(0,f.i18n)("topic.slow_mode_update.durations.4_hours")},{id:"28800",name:(0,f.i18n)("topic.slow_mode_update.durations.8_hours")},{id:"43200",name:(0,f.i18n)("topic.slow_mode_update.durations.12_hours")},{id:"86400",name:(0,f.i18n)("topic.slow_mode_update.durations.24_hours")},{id:"custom",name:(0,f.i18n)("topic.slow_mode_update.durations.custom")}];class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"selectedSlowMode",[n.tracked]))();#lU=(()=>void dt7948.i(this,"selectedSlowMode"))();static #n=(()=>dt7948.g(this.prototype,"hours",[n.tracked]))();#lB=(()=>void dt7948.i(this,"hours"))();static #a=(()=>dt7948.g(this.prototype,"minutes",[n.tracked]))();#lY=(()=>void dt7948.i(this,"minutes"))();static #l=(()=>dt7948.g(this.prototype,"seconds",[n.tracked]))();#lH=(()=>void dt7948.i(this,"seconds"))();static #d=(()=>dt7948.g(this.prototype,"saveDisabled",[n.tracked],function(){return!1}))();#aS=(()=>void dt7948.i(this,"saveDisabled"))();static #p=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#sJ=(()=>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 b}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,m.timeShortcuts)(e),i=t.monday();return i.label="time_shortcut.next_week",[t.laterToday(),t.tomorrow(),t.twoDays(),i,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,p.toSeconds)(this._parseValue(this.hours),this._parseValue(this.minutes),this._parseValue(this.seconds));try{await g.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,f.i18n)("generic_error")}finally{this.saveDisabled=!1}}static #m=(()=>dt7948.n(this.prototype,"enableSlowMode",[o.action]))();async disableSlowMode(){this.saveDisabled=!0;try{await g.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,h.extractError)(e)}finally{this.saveDisabled=!1}}static #f=(()=>dt7948.n(this.prototype,"disableSlowMode",[o.action]))();setSlowModeDuration(e){if("custom"!==e){let t=parseInt(e,10);this._setFromSeconds(t)}this.selectedSlowMode=e}static #y=(()=>dt7948.n(this.prototype,"setSlowModeDuration",[o.action]))();_setFromSeconds(e){let{hours:t,minutes:i,seconds:s}=(0,p.fromSeconds)(e);this.hours=t,this.minutes=i,this.seconds=s}_parseValue(e){return parseInt(e,10)||0}static #v=(()=>(0,r.setComponentTemplate)((0,y.createTemplateFactory)({id:"Cm2rMF+F",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"edit-slow-mode-modal"]],[["@title","@closeModal","@flash"],[[28,[32,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,[32,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,[32,1],["topic.slow_mode_update.select"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,2],[[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,[32,1],["topic.slow_mode_update.hours"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],[[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,[32,1],["topic.slow_mode_update.minutes"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],[[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,[32,1],["topic.slow_mode_update.seconds"],null]],[1,"\\n "],[13],[1,"\\n "],[8,[32,3],[[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,[32,4],[[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,[32,5],[[28,[31,1],[[30,2,["topic","slow_mode_enabled_until"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,6],[[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,[32,6],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["disableSlowMode"]],[30,0,["submitDisabled"]],"topic.slow_mode_update.remove"]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/edit-slow-mode.js",scope:()=>[d.default,f.i18n,_.default,r.Input,c.default,a.fn,u.default],isStrictMode:!0}),this))()}},31003:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(16006),n=i(87367);class r extends s.default{find(e,t,i){let{postId:s,after:r=1}=i;return(0,n.ajax)(`/posts/${s}/replies?after=${r||1}`).then(e=>({post_replies:e}))}}},31066:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(75093),n=i(14051);class r extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"sessionStore",[s.service]))();#lq=(()=>void dt7948.i(this,"sessionStore"))();init(){super.init(...arguments),this.router.on("routeWillChange",this.routeWillChange)}willDestroy(){this.router.off("routeWillChange",this.routeWillChange)}get history(){let e=this.sessionStore.getObject("routeHistory");return null===e?[]:e}addToHistory(e){let t=this.history||[];t.unshift(e),t.length>1e3&&t.pop(),this.sessionStore.setObject({key:"routeHistory",value:t})}routeWillChange(){null!==this.router.currentURL&&this.router.currentURL!==this.lastURL&&this.addToHistory(this.router.currentURL)}static #n=(()=>dt7948.n(this.prototype,"routeWillChange",[n.bind]))();get lastURL(){return this.history[0]}}},31075:(e,t,i)=>{"use strict";i.r(t),i.d(t,{EventTarget:()=>s.E,Promise:()=>s.P,all:()=>s.e,allSettled:()=>s.f,asap:()=>s.b,async:()=>s.q,cast:()=>s.d,configure:()=>s.c,default:()=>s.a,defer:()=>s.j,denodeify:()=>s.k,filter:()=>s.s,hash:()=>s.h,hashSettled:()=>s.g,map:()=>s.p,off:()=>s.l,on:()=>s.o,race:()=>s.r,reject:()=>s.n,resolve:()=>s.m,rethrow:()=>s.i});var s=i(90760)},31145:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(46447);class n extends s.default{}},31253:(e,t,i)=>{var s=i(68486).FilterCSS,n=i(68486).getDefaultWhiteList,r=i(98414);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new s;function l(e){return e.replace(u,"<").replace(d,">")}var u=//g,c=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,m=/:?/gim,g=/&newline;?/gim,f=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,y=/u\s*r\s*l\s*\(.*/gi;function b(e){return e.replace(c,""")}function w(e){return e.replace(p,'"')}function k(e){return e.replace(h,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function T(e){return e.replace(m,":").replace(g," ")}function S(e){for(var t="",i=0,s=e.length;ie.charCodeAt(i)?" ":e.charAt(i);return r.trim(t)}function C(e){return e=S(e=T(e=k(e=w(e))))}function A(e){return e=l(e=b(e))}t.whiteList=a(),t.getDefaultWhiteList=a,t.onTag=function(e,t,i){},t.onIgnoreTag=function(e,t,i){},t.onTagAttr=function(e,t,i){},t.onIgnoreTagAttr=function(e,t,i){},t.safeAttrValue=function(e,t,i,s){if(i=C(i),"href"===t||"src"===t){if("#"===(i=r.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(f.lastIndex=0,f.test(i))return""}else if("style"===t){if(_.lastIndex=0,_.test(i)||(y.lastIndex=0,y.test(i)&&(f.lastIndex=0,f.test(i))))return"";!1!==s&&(i=(s=s||o).process(i))}return i=A(i)},t.escapeHtml=l,t.escapeQuote=b,t.unescapeQuote=w,t.escapeHtmlEntities=k,t.escapeDangerHtml5Entities=T,t.clearNonPrintableCharacter=S,t.friendlyAttrValue=C,t.escapeAttrValue=A,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var i=!Array.isArray(e),s=[],n=!1;return{onIgnoreTag:function(a,o,l){if(!function(t){return!!i||-1!==r.indexOf(e,t)}(a))return t(a,o,l);if(!l.isClosing)return n||(n=l.position),"[removed]";var u="[/removed]",d=l.position+u.length;return s.push([!1!==n?n:l.position,d]),n=!1,u},remove:function(e){var t="",i=0;return r.forEach(s,function(s){t+=e.slice(i,s[0]),i=s[1]}),t+=e.slice(i)}}},t.stripCommentTag=function(e){for(var t="",i=0;i{"use strict";function t(e,t){var i="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(i+=` `+e.mark.snippet),s+" "+i):s}function i(e,i){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=i,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=i},31314:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(96848)},31327:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(86981),r=i(85024),a=i(8760),o=i(75803),l=i(1519);let u=dt7948.c(class extends s.default{content=null;selectKit=null;get formattedContent(){return this.content?(0,a.makeArray)(this.content).map(e=>this.getName(e)).join(", "):this.getName(this.selectKit.noneItem)}static #e=(()=>dt7948.n(this.prototype,"formattedContent",[(0,n.computed)("content")]))();static #i=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"1KwK1LhC",block:'[[[1,"\\n "],[10,1],[14,0,"formatted-selection"],[12],[1,"\\n "],[1,[30,0,["formattedContent"]]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/multi-select/format-selected-content.js",isStrictMode:!0}),this))()},[o.default,(0,r.tagName)("")])},31337:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(93317),n=i(73326),r=i(96791),a=i(86981),o=i(75093),l=i(57079),u=i(53329),d=i(10458),c=i(29466),p=i(43085),h=i(77296),m=i(70508),g=i(32045),f=i(1519);class _ extends s.default{static #e=(()=>dt7948.g(this.prototype,"search",[o.service]))();#e2=(()=>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:i,result:s}=e;(0,p.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:s.id,searchResultType:i.type}),(0,c.wantsNewWindow)(t)||(t.preventDefault(),this.routeToSearchResult(t.currentTarget.href))}static #i=(()=>dt7948.n(this.prototype,"onClick",[a.action]))();onKeydown(e,t){let{resultType:i,result:s}=e;return"Escape"===t.key?(this.args.closeSearchMenu(),t.preventDefault(),!1):"Enter"===t.key?(t.preventDefault(),t.stopPropagation(),(0,p.logSearchLinkClick)({searchLogId:this.args.searchLogId,searchResultId:s.id,searchResultType:i.type}),this.routeToSearchResult(t.target.href),!1):void(this.search.handleResultInsertion(t),this.search.handleArrowUpOrDown(t))}static #n=(()=>dt7948.n(this.prototype,"onKeydown",[a.action]))();routeToSearchResult(e){h.default.routeTo(e),this.args.closeSearchMenu()}static #a=(()=>dt7948.n(this.prototype,"routeToSearchResult",[a.action]))();static #l=(()=>(0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"m0aDQ0lB",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["filteredResultTypes"]]],null]],null],null,[[[1," "],[10,0],[15,0,[30,1,["componentName"]]],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["search-menu-results-type-top",[28,[32,1],null,[["resultType"],[[30,1]]]]]],null],[1,"\\n "],[10,"ul"],[14,0,"list"],[15,"aria-label",[28,[32,2],[[28,[32,3],["search.results"],null]," ",[30,1,["type"]]],null]],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["results"]]],null]],null],null,[[[1," "],[11,"li"],[24,0,"item"],[4,[32,4],["keydown",[28,[32,5],[[30,0,["onKeydown"]],[28,[32,6],null,[["resultType","result"],[[30,1],[30,2]]]]],null]],null],[12],[1,"\\n "],[11,3],[16,6,[28,[32,7],[[30,2,["url"]],[30,2,["path"]]],null]],[24,0,"search-link"],[4,[32,4],["click",[28,[32,5],[[30,0,["onClick"]],[28,[32,6],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],[1," "]],["resultType","result","@displayNameWithUser"],false,["each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/types.js",scope:()=>[u.default,d.default,n.concat,m.i18n,r.on,n.fn,n.hash,l.or],isStrictMode:!0}),this))()}},31346:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(18231),a=i(44991),o=i(70508),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get suggestedTitle(){return this.currentUser?.pmPath(this.args.topic)&&this.args.topic.isPrivateMessage?(0,o.i18n)("suggested_topics.pm_title"):(0,o.i18n)("suggested_topics.title")}static #i=(()=>(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:()=>[a.default,o.i18n,r.default],isStrictMode:!0}),this))()}},31348:(e,t,i)=>{"use strict";function s(){let e=new Date().getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?i:3&i|8).toString(16)})}i.r(t),i.d(t,{default:()=>s})},31351:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(81932),n=i(39902);class r extends s.default{constructor(e){let{bookmark:t}=e;super(...arguments),this.bookmark=t}get className(){return"bookmark"}get linkHref(){return this.bookmark.bookmarkable_url}get linkTitle(){return this.bookmark.name}get icon(){return n.NO_REMINDER_ICON}get label(){return this.siteSettings.prioritize_full_name_in_ux&&this.bookmark.user?.name||this.bookmark.user?.username}get description(){return this.bookmark.title}get topicId(){return this.bookmark.topic_id}get avatarTemplate(){return this.bookmark.user.avatar_template}}},31352:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(94160);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,s.dasherize)(e.replace(".","-"))}},31391:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(9032);function n(e){let t="";return e.color&&(t+=`--category-badge-color: #${e.color};`),e.textColor&&(t+=`--category-badge-text-color: #${e.textColor};`),e.parentCategory?.color&&(t+=`--parent-category-badge-color: #${e.parentCategory.color};`),e.parentCategory?.textColor&&(t+=`--parent-category-badge-text-color: #${e.parentCategory.textColor};`),(0,s.htmlSafe)(t)}},31408:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{Tag:()=>m,addBlockDecorateCallback:()=>d,addTagDecorateCallback:()=>l,addTextDecorateCallback:()=>p,clearBlockDecorateCallbacks:()=>c,clearTagDecorateCallbacks:()=>u,clearTextDecorateCallbacks:()=>h,default:()=>f});let n=["MsoListParagraphCxSpFirst","MsoListParagraphCxSpMiddle","MsoListParagraphCxSpLast"],r=[],a=[],o=[];function l(e){r.push(e)}function u(){r=[]}function d(e){a.push(e)}function c(){a=[]}function p(e){o.push(e)}function h(){o=[]}class m{static named(e){let t=class extends m{};return t.tagName=e,t}static blocks(){return["address","article","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","main","nav","p","pre","section"]}static headings(){return["h1","h2","h3","h4","h5","h6"]}static emphases(){return[["b","**"],["strong","**"],["i","*"],["em","*"],["s","~~"],["strike","~~"]]}static slices(){return["dt","dd","thead","tbody","tfoot"]}static trimmable(){return[...m.blocks(),...m.headings(),...m.slices(),"aside","li","td","th","br","hr","blockquote","table","ol","tr","ul"]}static allowedTags(){return["ins","del","small","big","kbd","ruby","rt","rb","rp","mark"]}static block(e,t,i){return class extends m.named(e){constructor(){super(t,i),this.gap=` `}decorate(t){let i=this.element.parent;for(let e of a){let i=e.call(this,t);void 0!==i&&(t=i)}return"p"===e&&i?.name==="li"&&(this.gap=""),`${this.gap}${this.prefix}${t}${this.suffix}${this.gap}`}}}static div(){return class extends m.block("div"){decorate(e){let t=this.element.attributes;return/\bmathjax-math\b/.test(t.class)?"":/\bmath\b/.test(t.class)&&t["data-applied-mathjax"]?` $$ `+e+` $$ `:super.decorate(e)}}}static aside(){return class extends m.block("aside"){constructor(){super()}toMarkdown(){if(!/\bquote\b/.test(this.element.attributes.class))return super.toMarkdown();let e=this.element.children.find(e=>"blockquote"===e.name);if(!e)return super.toMarkdown();let t=g.parse([e],this.element)||"";if(0===(t=t.trim().replaceAll(/^> /gm,"").trim()).length)return"";let i=this.element.attributes["data-username"],s=this.element.attributes["data-post"],n=this.element.attributes["data-topic"],r=i&&s&&n?`[quote="${i}, post:${s}, topic:${n}"]`:"[quote]";return` ${r} ${t} [/quote] `}}}static heading(e,t){let i=`${[...Array(t)].map(()=>"#").join("")} `;return m.block(e,i,"")}static emphasis(e,t){return class extends m.named(e){constructor(){super(t,t,!0)}decorate(t){t.includes(` `)&&(this.prefix=`<${e}>`,this.suffix=``);let i=t.match(/^\s/);return i&&(this.prefix=i[0]+this.prefix),(i=t.match(/\s$/))&&(this.suffix=this.suffix+i[0]),super.decorate(t.trim())}}}static allowedTag(e){return class extends m.named(e){constructor(){super(`<${e}>`,``)}}}static replace(e,t){return class extends m.named(e){constructor(){super("",""),this.text=t}toMarkdown(){return this.text}}}static span(){return class extends m.named("span"){constructor(){super()}decorate(e){let t=this.element.attributes;return"badge badge-notification clicks"===t.class||/\bmathjax-math\b/.test(t.class)?"":/\bmath\b/.test(t.class)&&t["data-applied-mathjax"]?"$"+e+"$":super.decorate(e)}}}static link(){return class extends m.named("a"){constructor(){super("","",!0)}decorate(e){let t,i=this.element,s=i.attributes;if(/^mention/.test(s.class)&&"@"===e[0]||"hashtag"===s.class&&"#"===e[0])return e;if(s.class?.includes("hashtag-cooked"))if(s["data-ref"])return`#${s["data-ref"]}`;else{let e="";return s["data-type"]&&(e=`::${s["data-type"]}`),`#${s["data-slug"]}${e}`}if(["lightbox","d-lazyload"].includes(s.class)&&(t=(i.children||[]).find(e=>"img"===e.name))){let i=s.href,n=t.attributes["data-base62-sha1"];return e=s.title||"",n&&(i=`upload://${n}`),`![${e}](${i})`}if(s.href&&e!==s.href){e=e.replace(/\n{2,}/g,` `);let t="";return s.class?.includes("attachment")&&(t="|attachment"),`[${e}${t}](${s.href})`}return e}}}static image(){return class extends m.named("img"){constructor(){super("","",!0)}toMarkdown(){let e=this.element,t=e.attributes,i=e.parent?.attributes||{},s=t.class||i.class,n=t.src||i.src,r=t["data-base62-sha1"];if(r&&(n=`upload://${r}`),s?.includes("emoji"))return s.includes("user-status")?"":t.title||i.title;if(n){if(n.match(/^data:image\/([a-zA-Z]*);base64,([^\"]*)$/))return"[image]";let e=t.alt||i.alt||"",s=t.width||i.width,r=t.height||i.height,a=t.title;if(s&&r){let t=this.element.parentNames.includes("table")?"\\|":"|";e=`${e}${t}${s}x${r}`}return`![${e}](${n}${a?` "${a}"`:""})`}return""}}}static slice(e,t){return class extends m.named(e){constructor(){super("",t)}decorate(e){return this.element.next||(this.suffix=""),`${e}${this.suffix}`}}}static cell(e){return class extends m.named(e){constructor(){super("|")}toMarkdown(){let e=this.element.innerMarkdown().trim();if(e.includes(` `)){let e=this.element;for(;e=e.parent;)if("table"===e.name){e.tag().invalid();break}}return this.decorate(e)}}}static li(){return class extends m.slice("li",` `){decorate(e){let t=this.element.attributes,i=this.element.filterParentNames(["ol","ul"]).slice(1).map(()=>" ").join("");if(n.includes(t.class))try{let e=parseInt(t.style.match(/level./)[0].replace("level",""),10);i=Array(e).join(" ")+i}finally{"MsoListParagraphCxSpFirst"===t.class?i=` ${i}`:"MsoListParagraphCxSpLast"===t.class&&(e=`${e} `)}return super.decorate(`${i}* ${e.trimStart()}`)}}}static code(){return class extends m.named("code"){constructor(){super("`","`")}decorate(e){this.element.parentNames.includes("pre")?(this.prefix=` \`\`\` `,this.suffix=` \`\`\` `):this.inline=!0;let t=document.createElement("textarea");return t.innerHTML=e,super.decorate(t.innerText)}}}static blockquote(){return class extends m.named("blockquote"){constructor(){super(` > `,` `)}decorate(e){return e=e.trim().replace(/\n{2,}>/g,` >`).replace(/\n/g,` > `),super.decorate(e)}}}static table(){return class extends m.block("table"){constructor(){super(),this.isValid=!0}invalid(){if(this.isValid=!1,this.element.parentNames.includes("table")){let e=this.element;for(;e=e.parent;)if("table"===e.name){e.tag().invalid();break}}}countPipes(e){return(e.replace(/\\\|/,"").match(/\|/g)||[]).length}decorate(e){let t=(e=super.decorate(e).replace(/\|\n{2,}\|/g,`| |`)).trim().split(` `),i=this.countPipes(t[0]);if(this.isValid=this.isValid&&t.length>1&&i>2&&t.reduce((e,t)=>e&&this.countPipes(t)<=i),this.isValid){let t=[...Array(i-1)].map(()=>"| --- ").join("")+`| `;e=e.replace(`| `,`| `+t)}else e=e.replace(/\|/g," "),this.invalid();return e}}}static list(e){return class extends m.block(e){decorate(e){let t="",i=this.element.parent;return i?.name==="ul"&&(this.gap="",this.suffix=` `),this.element.filterParentNames(["li"]).length&&(this.gap="",t=` `),t+super.decorate(e.trimEnd())}}}static ol(){return class extends m.list("ol"){decorate(e){let t=(e=` `+e).match(/\n\t*\*/)[0],i=parseInt(this.element.attributes.start||1,10);for(;e.includes(t);)e=e.replace(t,t.replace("*",`${i}.`)),i++;return super.decorate(e.slice(1))}}}static tr(){return class extends m.slice("tr",`| `){decorate(e){return this.element.next||(this.suffix="|"),`${e}${this.suffix}`}}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.prefix=e,this.suffix=t,this.inline=i}decorate(e){for(let t of r){let i=t.call(this,e);void 0!==i&&(e=i)}if((this.prefix||this.suffix)&&(e=[this.prefix,e,this.suffix].join("")),this.inline){let{prev:t,next:i}=this.element;t&&"#text"!==t.name&&(e=" "+e),i&&"#text"!==i.name&&(e+=" ")}return e}toMarkdown(){let e=this.element.innerMarkdown();return e?.trim()?this.decorate(e):e}}class g{static toMarkdown(e,t,i,s,n){return new g(e,t,i,s,n).toMarkdown()}static parseChildren(e){return g.parse(e.children,e)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){let i=[],s={};for(let n=0;nm.block(e)),...m.headings().map((e,t)=>m.heading(e,t+1)),...m.slices().map(e=>m.slice(e,` `)),...m.emphases().map(e=>m.emphasis(e[0],e[1])),...m.allowedTags().map(e=>m.allowedTag(e)),m.aside(),m.cell("td"),m.cell("th"),m.replace("br",` `),m.replace("hr",` --- `),m.replace("head",""),m.li(),m.link(),m.image(),m.code(),m.blockquote(),m.table(),m.tr(),m.ol(),m.list("ul"),m.span(),m.div()]))s.set(e.tagName,e);return s.get(e)}(this.name))||m);return e.element=this,e.metadata=this.metadata,e}innerMarkdown(){return g.parseChildren(this)}leftTrimmable(){return this.previous&&m.trimmable().includes(this.previous.name)}rightTrimmable(){return this.next&&m.trimmable().includes(this.next.name)}text(){let e=this.data||"";return this.leftTrimmable()&&(e=e.trimStart()),this.rightTrimmable()&&(e=e.trimEnd()),e=e.replace(/[\s\t]+/g," "),o.forEach(t=>{let i=t.call(this,e,this.next,this.previous,this.metadata);void 0!==i&&(e=i)}),e}toMarkdown(){return"#text"===this.name?this.text():this.tag().toMarkdown()}filterParentNames(e){return this.parentNames.filter(t=>e.includes(t))}}function f(e){try{let{elements:t,placeholders:i}=function(e){let t=/]*>([\s\S]*?)<\/code>/gi,i=e,s=t.exec(i),n=[];for(;s;){let r=`DISCOURSE_PLACEHOLDER_${n.length+1}`,a=document.createElement("div");a.innerHTML=s[1];let o=a.innerText.replace(/^\n/,"").replace(/\n$/,"");n.push([r,o]),e=e.replace(s[0],`${r}`),s=t.exec(i)}let r=e=>{if("#text"!==e.nodeName&&void 0!==e.length){let t=[];for(let i=0;i]*>([\s\S]*?)<\/body>/);for(e=(e=(e=i?i[1]:e).replace(/\r|\n| /g," ")).replace(/\u00A0/g," ");t=e.match(/<[^\s>]+[^>]*>\s{2,}<[^\s>]+[^>]*>/);)e=e.replace(t[0],t[0].replace(/>\s{2,} <"));return e=e.replace(/[^!]*/g,"")}(e),{elements:r(a.content.childNodes),placeholders:n}}(e),s=g.parse(t).trim();return s=(s=s.replace(/^/,"").replace(/<\/b>$/,"").trim()).replace(/\n +/g,` `).replace(/ +\n/g,` `).replace(/ {2,}/g," ").replace(/\n{3,}/g,` `).replace(/\t/g," "),function(e,t){return t.forEach(t=>{e=e.replace(t[0],t[1])}),e}(s,i)}catch{return""}}},31433:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(85024),n=i(7749),r=i(33441),a=i(87542);let o=dt7948.c(class extends n.default{modifyComponentForRow(){return r.default}},[(0,a.pluginApiIdentifiers)(["homepage-style-selector"]),(0,s.classNames)("homepage-style-selector")])},31579:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(44460),n=i(70508);class r extends s.default{get name(){return"badges"}get route(){return"badges"}get title(){return(0,n.i18n)("sidebar.sections.community.links.badges.title")}get text(){return(0,n.i18n)(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_badges}get defaultPrefixValue(){return"certificate"}}},31630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(32045),n=i(9032),r=i(85024),a=i(14013),o=i.n(a),l=i(70508),u=i(13850),d=i(87542),c=i(1519);let p=dt7948.c(class extends s.default{descriptionKey="help";appendReason=!0;reasonText(e,t){let i=t?`pinned${e?"_globally":""}`:"unpinned",s=`topic_statuses.${i}.help`;return(0,l.i18n)(s)}static #e=(()=>dt7948.n(this.prototype,"reasonText",[o()("topic.pinned_globally","pinned")]))();isHidden(e,t,i){return t||!e&&!i}static #i=(()=>dt7948.n(this.prototype,"isHidden",[o()("pinned","topic.deleted","topic.unpinned")]))();static #n=(()=>(0,s.setComponentTemplate)((0,c.createTemplateFactory)({id:"gMTwjw1T",block:'[[[1,"\\n"],[41,[30,0,["appendReason"]],[[[1," "],[10,2],[14,0,"reason"],[12],[1,"\\n "],[8,[32,0],null,[["@value","@topic"],[[30,0,["pinned"]],[30,0,["topic"]]]],null],[1,"\\n "],[10,1],[14,0,"text"],[12],[1,[28,[32,1],[[30,0,["reasonText"]]],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,0],null,[["@value","@topic"],[[30,0,["pinned"]],[30,0,["topic"]]]],null],[1,"\\n"]],[]]],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/pinned-button.js",scope:()=>[u.default,n.htmlSafe],isStrictMode:!0}),this))()},[(0,d.pluginApiIdentifiers)("pinned-button"),(0,r.classNameBindings)("isHidden"),(0,r.classNames)("pinned-button")])},31633:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(87367),n=i(27797),r=i(70508);class a extends n.default{titleToken(){return(0,r.i18n)("user.change_email.title")}model(e){return(0,s.ajax)(`/u/confirm-old-email/${e.token}.json`)}}},31637:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return(12===e&&(e=0),"pagi"===t)?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})})},31662:(e,t,i)=>{"use strict";i.r(t),i.d(t,{waitForClosedKeyboard:()=>n});var s=i(64081);async function n(e){let t,i;if(!window.visualViewport)return;let n=(0,s.getOwner)(e),r=n.lookup("service:site"),a=n.lookup("service:capabilities");if(!a.isIpadOS&&r.desktopView||!document.documentElement.classList.contains("keyboard-visible"))return;let o=window.innerHeight;if(await Promise.race([new Promise(e=>{t=setTimeout(()=>{console.warn("Keyboard visibility didn't change after 1s."),e()},1e3)}),new Promise(e=>window.visualViewport.addEventListener("resize",i=e,{once:!0,passive:!0}))]),clearTimeout(t),window.visualViewport.removeEventListener("resize",i),"virtualKeyboard"in navigator){if(navigator.virtualKeyboard.boundingRect.height>0)return void console.warn("Expected virtual keyboard to be closed but it wasn't.")}else if(a.isFirefox&&a.isAndroid){if(Math.abs(o-Math.min(window.innerHeight,window.visualViewport.height))>150)return void console.warn("Expected virtual keyboard to be closed but it wasn't.")}else if(o-window.visualViewport.height>0)return void console.warn("Expected virtual keyboard to be closed but it wasn't.")}},31745:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(70568),u=i(75093),d=i(57079),c=i(25634),p=i(44337),h=i(87367),m=i(16356),g=i(35952),f=i(9237),_=i(70508),y=i(32045),b=i(1519);let w=(0,i(96900).A)(i(7155)).cached;class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"toasts",[u.service]))();#T=(()=>void dt7948.i(this,"toasts"))();static #n=(()=>dt7948.g(this.prototype,"smtpSettingsValid",[n.tracked],function(){return!1}))();#lz=(()=>void dt7948.i(this,"smtpSettingsValid"))();static #a=(()=>dt7948.g(this.prototype,"testingSettings",[n.tracked],function(){return!1}))();#l$=(()=>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,o.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 #l=(()=>dt7948.n(this.prototype,"formData",[w]))();changeSmtpSettingsValid(e){this.smtpSettingsValid=e,this.args.onChangeSmtpSettingsValid(e)}static #d=(()=>dt7948.n(this.prototype,"changeSmtpSettingsValid",[o.action]))();prefillSettings(e,t,i){i?.preventDefault();let s=(0,f.default)(e,"smtp");Object.keys(s).forEach(e=>{t(e,s[e])})}static #p=(()=>dt7948.n(this.prototype,"prefillSettings",[o.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:"short",data:{message:(0,_.i18n)("groups.manage.email.smtp_settings_valid")}})}).catch(m.popupAjaxError).finally(()=>this.testingSettings=!1)}static #m=(()=>dt7948.n(this.prototype,"testSmtpSettings",[o.action]))();resetTestingSettings(e,t,i){let{set:s}=i;this.changeSmtpSettingsValid(!1),s(e,t)}static #f=(()=>dt7948.n(this.prototype,"resetTestingSettings",[o.action]))();static #y=(()=>(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:()=>[c.default,_.i18n,r.fn,d.or,a.on,p.default,l.LinkTo],isStrictMode:!0}),this))()}},31746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(35621),n=i(31346),r=i(17631),a=i(70508);let o={initialize(){(0,r.withPluginApi)("1.37.2",e=>{e.registerMoreTopicsTab({id:"related-messages",name:(0,a.i18n)("related_messages.pill"),component:s.default,condition:e=>{let{context:t,topic:i}=e;return"pm"===t&&i.relatedMessages?.length>0}}),e.registerMoreTopicsTab({id:"suggested-topics",name:(0,a.i18n)("suggested_topics.pill"),component:n.default,condition:e=>{let{topic:t}=e;return t.suggestedTopics?.length>0}})})}}},31789:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(80115),n=i(57165),r=i(60569),a=i(86981),o=i(64081),l=i(24813),u=i(97908);function d(e,t){let i,n=(0,s.A)(function(e){return(0,s.A)(function(e){return(e._routerMicrolib||e.router).currentRouteInfos}(e)).mapBy("_route").reverse()}(e)).find(e=>"function"==typeof(i=(e.actions||e._actions)[t]));return{action:i,handler:n}}class c extends n.default{get router(){return(0,o.getOwner)(this).lookup("router:main")}static #e=(()=>dt7948.n(this.prototype,"router",[a.computed]))();compute(e){let[t,...i]=e;return function(e,t){for(var i=arguments.length,s=Array(i>2?i-2:0),n=2;n{let{handler:i}=d(t,e)}),function(){let{action:i,handler:n}=d(t,e);for(var r=arguments.length,a=Array(r),o=0;o{"use strict";i.r(t),i.d(t,{_:()=>a,s:()=>r,t:()=>o});var s=i(71729);i(71797),i(60569);var n=i(34100);function r(e,t,i,s){return e.isDestroyed?i:(0,n.q)(t)?function(e,t,i,s){let a=t.split("."),o=a.pop(),l=(0,n._)(e,a,!0);if(null!=l)return r(l,o,i);if(!s)throw Error(`Property set failed: object in path "${a.join(".")}" could not be found.`)}(e,t,i,s):a(e,t,i)}function a(e,t,i){let r,a=(0,s.l)(e,t);return null!==a&&n.r.has(a.set)?e[t]=i:void 0!==(r=e[t])||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=i,r!==i&&(0,n.n)(e,t)):e.setUnknownProperty(t,i),i}function o(e,t,i){return r(e,t,i,!0)}},31889:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(95940),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"NLHKiPHg",block:'[[[8,[32,0],null,[["@group"],[[30,1,["model"]]]],null]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage/email.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},32007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(17160)},32045:(e,t,i)=>{"use strict";i.r(t),i.d(t,{Input:()=>n.I,Textarea:()=>n.T,capabilities:()=>s.componentCapabilities,default:()=>n.C,getComponentTemplate:()=>s.getComponentTemplate,setComponentManager:()=>r.s,setComponentTemplate:()=>s.setComponentTemplate});var s=i(77061);i(34902);var n=i(92128);i(29023),i(60569),i(83882),i(24813),i(69023),i(77188);var r=i(43839)},32047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(81727),n=i(87367),r=i(14051),a=i(63272),o=i(91035),l=i(34472),u=i(18693),d=i(63159),c=i(70508);class p extends s.default{static categoriesFrom(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=["week","month"].find(e=>t.category_list.categories.filter(t=>t[`topics_${e}`]>0).length>=.66*t.category_list.categories.length)||"all";t.category_list.categories.forEach(e=>u.default.current().updateCategory(e));let n=p.create({store:e});return t.category_list.categories.forEach(e=>{e=this._buildCategoryResult(e,s),(!i||e.parent_category_id!==i.id)&&(i||e.parent_category_id)||n.pushObject(e)}),n}static _buildCategoryResult(e,t){e.topics&&(e.topics=e.topics.map(e=>d.default.create(e)));let i=e[`topics_${t}`];if(("week"===t||"month"===t)&&i>0){let s=(0,c.i18n)(`categories.topic_stat_unit.${t}`);e.stat=(0,c.i18n)("categories.topic_stat",{count:i,number:`${(0,o.number)(i)}`,unit:`${s}`}),e.statTitle=(0,c.i18n)(`categories.topic_stat_sentence_${t}`,{count:i}),e.pickAll=!1}else e.stat=`${(0,o.number)(e.topics_all_time)}`,e.statTitle=(0,c.i18n)("categories.topic_sentence",{count:e.topics_all_time}),e.pickAll=!0;u.default.current().mobileView&&(e.statTotal=(0,c.i18n)("categories.topic_stat_all_time",{count:e.topics_all_time,number:`${(0,o.number)(e.topics_all_time)}`}));let s=u.default.current().updateCategory(e);return s.setupGroupsAndPermissions(),s}static listForParent(e,t){return(0,a.default)("The listForParent method of CategoryList is deprecated. Use list instead",{id:"discourse.category-list.listForParent"}),p.list(e,t)}static list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return l.default.getAndRemove("categories_list",()=>{let e={};return t&&(e.parent_category_id=t?.id),(0,n.ajax)("/categories.json",{data:e})}).then(i=>p.create({store:e,categories:this.categoriesFrom(e,i,t),parentCategory:t,can_create_category:i.category_list.can_create_category,can_create_topic:i.category_list.can_create_topic}))}init(){this.set("content",this.categories||[]),super.init(...arguments),this.set("page",1),this.set("fetchedLastPage",!1)}async loadMore(){if(this.isLoading||this.fetchedLastPage)return;this.set("isLoading",!0);let e={page:this.page+1};this.parentCategory&&(e.parent_category_id=this.parentCategory.id);let t=await (0,n.ajax)("/categories.json",{data:e});this.set("page",e.page),0===t.category_list.categories.length&&this.set("fetchedLastPage",!0),this.set("isLoading",!1),p.categoriesFrom(this.store,t,this.parentCategory).forEach(e=>this.categories.pushObject(e))}static #e=(()=>dt7948.n(this.prototype,"loadMore",[r.bind]))()}},32051:(e,t,i)=>{"use strict";i.r(t),i.d(t,{g:()=>a,s:()=>r});var s=i(71729);let n=new WeakMap;function r(e,t){(0,s.e)(e)&&n.set(e,t)}function a(e){return n.get(e)}},32065:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(85070);function n(e){return(0,s.expect)(e.lookup("renderer:-dom"),"BUG: owner is missing renderer").debugRenderTree.capture()}},32079:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(86981),r=i(15383),a=i(54033),o=i(32045),l=i(1519);class u extends s.default{static controlType="image";setImage(e){this.args.field.set(e)}static #e=(()=>dt7948.n(this.prototype,"setImage",[n.action]))();removeImage(){this.setImage(void 0)}static #i=(()=>dt7948.n(this.prototype,"removeImage",[n.action]))();get imageUrl(){return(0,r.isBlank)(this.args.field.value)?null:this.args.field.value}static #n=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"bXD6Tv5Z",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"form-kit__control-image no-repeat contain-image"]],[["@id","@imageUrl","@onUploadDone","@onUploadDeleted","@type","@disabled","@placeholderUrl"],[[29,[[30,1,["id"]],"-",[30,1,["name"]]]],[30,0,["imageUrl"]],[30,0,["setImage"]],[30,0,["removeImage"]],[30,2],[30,1,["disabled"]],[30,1,["args","placeholderUrl"]]]],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],isStrictMode:!0}),this))()}},32096:(e,t,i)=>{"use strict";i.r(t),i.d(t,{_reset:()=>d,getPendingWaiterState:()=>c,getWaiters:()=>u,hasPendingWaiters:()=>p,register:()=>o,unregister:()=>l});var s=i(30769),n=i(82050);let r=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,i=function(){if("undefined"!=typeof globalThis)return a(globalThis);if("undefined"!=typeof self)return a(self);if("undefined"!=typeof window)return a(window);if("undefined"!=typeof global)return a(global);throw Error("unable to locate global object")}(),s=i[t];return void 0===s&&(s=i[t]=new Map),s}();function a(e){return e}function o(e){r.set(e.name,e)}function l(e){r.delete(e.name)}function u(){let e=[];return r.forEach(t=>{e.push(t)}),e}function d(){for(let e of u())e.isRegistered=!1;r.clear()}function c(){let e={pending:0,waiters:{}};return r.forEach(t=>{if(!t.waitUntil()){e.pending++;let i=t.debugInfo();e.waiters[t.name]=i||!0}}),e}function p(){return c().pending>0}s.default.Test&&(0,n.registerWaiter)(()=>!p())},32175:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(7155),n=i(93239),r=i(15383),a=i(60551),o=i(70508);function l(e){return{failed:!0,ok:!1,element:document.querySelector("#new-account-password"),...e}}function u(e){return{ok:!0,...e}}class d{static #e=(()=>dt7948.g(this.prototype,"rejectedPasswords",[s.tracked],function(){return new a.TrackedArray}))();#lV=(()=>void dt7948.i(this,"rejectedPasswords"))();static #i=(()=>dt7948.g(this.prototype,"rejectedPasswordsMessages",[s.tracked],function(){return new a.TrackedMap}))();#lW=(()=>void dt7948.i(this,"rejectedPasswordsMessages"))();constructor(e){this.owner=e}get passwordInstructions(){return(0,o.i18n)("user.password.instructions",{count:this.passwordMinLength})}get passwordMinLength(){return this.owner.admin||this.owner.isDeveloper?this.owner.siteSettings.min_admin_password_length:this.owner.siteSettings.min_password_length}get passwordValidation(){return this.owner.passwordRequired?this.rejectedPasswords.includes(this.owner.accountPassword)?l({reason:this.rejectedPasswordsMessages.get(this.owner.accountPassword)||(0,o.i18n)("user.password.common")}):(0,r.isEmpty)(this.owner.accountPassword)?l({message:(0,o.i18n)("user.password.required"),reason:this.owner.forceValidationReason?(0,o.i18n)("user.password.required"):null}):this.owner.accountPassword.lengthdt7948.n(this.prototype,"passwordValidation",[n.dependentKeyCompat]))()}},32196:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(32045),n=i(73326),r=i(96791),a=i(86981),o=i(91558),l=i(61667),u=i(74298),d=i(53329),c=i(10458),p=i(33186),h=i(14051),m=i(77210),g=i(70508),f=i(7749),_=i(70610),y=i(1519);class b extends s.default{tokenSeparator="|";static #e=(()=>dt7948.g(this.prototype,"showAssociatedGroups",[(0,o.readOnly)("site.can_associate_groups")]))();#lK=(()=>void dt7948.i(this,"showAssociatedGroups"))();static #i=(()=>dt7948.g(this.prototype,"canEdit",[(0,o.not)("model.automatic")]))();#sh=(()=>void dt7948.i(this,"canEdit"))();trustLevelOptions=(()=>[{name:(0,g.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 #n=(()=>dt7948.n(this.prototype,"groupTrustLevel",[(0,a.computed)("model.grant_trust_level","trustLevelOptions")]))();disableMembershipRequestSetting(e,t){return e=parseInt(e,10),t||e>1}static #a=(()=>dt7948.n(this.prototype,"disableMembershipRequestSetting",[(0,h.default)("model.visibility_level","model.public_admission")]))();disablePublicSetting(e,t){return e=parseInt(e,10),t||e>1}static #l=(()=>dt7948.n(this.prototype,"disablePublicSetting",[(0,h.default)("model.visibility_level","model.allow_membership_requests")]))();get emailDomains(){return this.model.emailDomains.split(this.tokenSeparator).filter(Boolean)}static #d=(()=>dt7948.n(this.prototype,"emailDomains",[(0,a.computed)("model.emailDomains")]))();loadAssociatedGroups(){m.default.list().then(e=>this.set("associatedGroups",e))}onChangeEmailDomainsSetting(e){this.set("model.automatic_membership_email_domains",e.join(this.tokenSeparator))}static #p=(()=>dt7948.n(this.prototype,"onChangeEmailDomainsSetting",[a.action]))();static #m=(()=>(0,s.setComponentTemplate)((0,y.createTemplateFactory)({id:"cf91juGz",block:'[[[1,"\\n "],[10,0],[14,0,"control-group"],[12],[1,"\\n "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[32,0],["groups.manage.membership.access"],null]],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[32,1],[[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,[32,0],["groups.public_admission"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[32,1],[[24,0,"group-form-public-exit"]],[["@type","@checked"],["checkbox",[30,0,["model","public_exit"]]]],null],[1,"\\n\\n "],[1,[28,[32,0],["groups.public_exit"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"label"],[12],[1,"\\n "],[8,[32,1],[[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,[32,0],["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,[32,0],["groups.membership_request_template"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],[[16,2,[30,0,["model","membership_request_template"]]],[24,3,"membership-request-template"],[24,0,"group-form-membership-request-template input-xxlarge"],[4,[32,3],["input",[28,[32,4],[[28,[32,5],[[28,[31,1],[[30,0,["model","membership_request_template"]]],null]],null]],null]],null]],null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[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,[32,0],["admin.groups.manage.membership.automatic"],null]],[13],[1,"\\n\\n "],[10,"label"],[14,"for","automatic_membership"],[12],[1,"\\n "],[1,[28,[32,0],["admin.groups.manage.membership.automatic_membership_email_domains"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,6],[[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,[30,0,["onChangeEmailDomainsSetting"]],[28,[32,7],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,[32,0],["admin.groups.manage.membership.automatic_membership_associated_groups"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,6],[[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,[32,5],[[28,[31,1],[[30,0,["model","associated_group_ids"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,8],null,[["@name","@connectorTagName","@outletArgs"],["groups-form-membership-below-automatic","div",[28,[32,9],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,[32,0],["admin.groups.manage.membership.effects"],null]],[13],[1,"\\n "],[10,"label"],[14,"for","grant_trust_level"],[12],[1,[28,[32,0],["admin.groups.manage.membership.trust_levels_title"],null]],[13],[1,"\\n\\n "],[8,[32,10],[[24,0,"groups-form-grant-trust-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["grant_trust_level","value",[30,0,["groupTrustLevel"]],[30,0,["trustLevelOptions"]],[28,[32,5],[[28,[31,1],[[30,0,["model","grant_trust_level"]]],null]],null]]],null],[1,"\\n "],[10,"label"],[12],[1,"\\n "],[8,[32,1],[[24,0,"groups-form-primary-group"]],[["@type","@checked"],["checkbox",[30,0,["model","primary_group"]]]],null],[1,"\\n\\n "],[1,[28,[32,0],["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,[32,0],["admin.groups.default_title"],null]],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,1],[[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,[32,0],["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,[32,11],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/groups-form-membership-fields.js",scope:()=>[g.i18n,s.Input,l.default,r.on,p.default,n.fn,_.default,n.hash,d.default,c.default,f.default,u.default],isStrictMode:!0}),this))()}},32197:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(73326),n=i(19006),r=i(70508),a=i(7749),o=i(80753),l=i(32045),u=i(1519);class d extends o.default{static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"8eJpAxC6",block:'[[[1,"\\n "],[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[32,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n "],[1,[30,0,["field","name"]]],[41,[51,[30,0,["field","required"]]],[[[1," "],[1,[28,[32,1],["user_fields.optional"],null]]],[]],null],[13],[1,"\\n\\n "],[10,0],[14,0,"controls"],[12],[1,"\\n "],[8,[32,2],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[32,0],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[32,3],[[28,[31,1],[[30,0,["value"]]],null]],null],[28,[32,4],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n "],[10,0],[14,0,"instructions"],[12],[1,[28,[32,5],[[30,0,["field","description"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "]],[],false,["unless","mut"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-fields/dropdown.js",scope:()=>[s.concat,r.i18n,a.default,s.fn,s.hash,n.default],isStrictMode:!0}),this))()}},32206:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A});var s=i(32045),n=i(73326),r=i(86981),a=i(9032),o=i(85024),l=i(57079),u=i(13355),d=i(50691),c=i(53329),p=i(2080),h=i(41154),m=i(14104),g=i(38069),f=i(44337),_=i(10458),y=i(27e3),b=i(714),w=i(14051),k=i(63272),T=i(77296),S=i(30698),C=i(1519);let A=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"moderatorAction",[(0,b.propertyEqual)("item.post_type","site.post_types.moderator_action")]))();#lG=(()=>void dt7948.i(this,"moderatorAction"))();static #i=(()=>dt7948.g(this.prototype,"actionDescription",[(0,S.actionDescription)("item.action_code","item.created_at","item.action_code_who","item.action_code_path")]))();#lJ=(()=>void dt7948.i(this,"actionDescription"))();constructor(){super(...arguments),(0,k.default)(" component is deprecated. Use or component to render a post list instead.",{since:"3.4.0.beta4",dropFrom:"3.5.0.beta1",id:"discourse.user-stream-item"})}get hidden(){return this.get("item.hidden")&&!(this.currentUser&&this.currentUser.staff)}static #n=(()=>dt7948.n(this.prototype,"hidden",[(0,r.computed)("item.hidden")]))();userUrl(e,t){return(0,T.userPath)((e||t).toLowerCase())}static #a=(()=>dt7948.n(this.prototype,"userUrl",[(0,w.default)("item.draft_username","item.username")]))();static #l=(()=>(0,s.setComponentTemplate)((0,C.createTemplateFactory)({id:"KVrRBtr6",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["user-stream-item-above",[28,[32,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,[32,2],[[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,[32,3],[[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,[32,4],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,[32,5],[[30,1,["title"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,5],[[30,1,["title"]]],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"category"],[12],[1,[28,[32,6],[[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,[32,7],[[30,1,["draftType"]]],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,8],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,[32,9],[[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,[32,10],["trash-can"],null]],[1,"\\n "],[1,[28,[32,3],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n "],[1,[28,[32,9],[[30,1,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,1],[12],[1,"\\n "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[32,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,[32,7],[[30,1,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[32,7],[[30,1,["excerpt"]]],null]]],[]]],[13],[1,"\\n\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["children"]]],null]],null],null,[[[1," "],[10,0],[14,0,"user-stream-item-actions child-actions"],[12],[1,"\\n "],[1,[28,[32,10],[[30,2,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[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,[32,3],[[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,[32,11],[[24,0,"btn-default resume-draft"]],[["@action","@icon","@label"],[[28,[32,12],[[30,4],[30,1]],null],"pencil","drafts.resume"]],null],[1,"\\n "],[8,[32,11],[[24,0,"btn-danger remove-draft"]],[["@action","@icon","@title"],[[28,[32,12],[[30,5],[30,1]],null],"trash-can","drafts.remove"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[18,6,null],[1,"\\n "]],["@item","child","grandChild","@resumeDraft","@removeDraft","&bottom"],false,["if","each","-track-array","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-stream-item.js",scope:()=>[c.default,_.default,l.or,h.default,p.default,y.default,m.default,a.htmlSafe,d.default,f.default,g.default,u.default,n.fn],isStrictMode:!0}),this))()},[(0,o.classNameBindings)(":user-stream-item",":item","hidden","item.deleted:deleted","moderatorAction"),(0,o.tagName)("li")])},32208:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(14104),n=i(30507);class r extends n.default{constructor(e){e.html=`${(0,s.categoryBadgeHTML)(e.category,e)}`,super(e)}}},32216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(63538),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:"NOl1L3Xb",block:'[[[1,"\\n "],[10,0],[15,0,[28,[32,0],["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],[1,"\\n"]],["@panelClass","@animationClass","&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/menu-panel.js",scope:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"menu-panel"))},32359:(e,t,i)=>{"use strict";function s(e,t,i){let s,n,r,a,o,l=e.tokens,u=0;for(n=0,r=l.length;n=0;s--)if(o=a[s],i?"link_open"===o.type||"link_close"===o.type?u-=o.nesting:"html_inline"===o.type&&("/i)&&u++:""===o.content.slice(0,4).toLowerCase()&&u--):("link_open"===o.type||"link_close"===o.type)&&"auto"===o.info&&(u-=o.nesting),"text"===o.type&&0===u){let i;(i=t(o.content,e))&&(l[n].children=a=e.md.utils.arrayReplaceAt(a,s,i))}}}i.r(t),i.d(t,{textReplace:()=>s})},32383:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addUserMenuProfileTabItem:()=>T,default:()=>C,resetUserMenuProfileTabItems:()=>S});var s=i(93317),n=i(86981),r=i(70568),a=i(75093),o=i(13355),l=i(41277),u=i(82208),d=i(30899),c=i(63538),p=i(38069),h=i(11945),m=i(31789),g=i(87367),f=i(15146),_=i(77296),y=i(70508),b=i(32045),w=i(1519);let k=[];function T(e){k.push(e)}function S(){k.clear()}class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"userStatus",[a.service]))();#tb=(()=>void dt7948.i(this,"userStatus"))();static #a=(()=>dt7948.g(this.prototype,"modal",[a.service]))();#h=(()=>void dt7948.i(this,"modal"))();saving=!1;get showToggleAnonymousButton(){return this.currentUser.can_post_anonymously||this.currentUser.is_anonymous}get isInDoNotDisturb(){return!!this.#lQ}get doNotDisturbDateTime(){return this.#lQ.getTime()}get showDoNotDisturbEndDate(){return!f.default.isEternal(this.currentUser.get("do_not_disturb_until"))}get extraItems(){return k}get #lQ(){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(l.default)}}static #l=(()=>dt7948.n(this.prototype,"doNotDisturbClick",[n.action]))();togglePresence(){this.currentUser.set("user_option.hide_presence",!this.isPresenceHidden),this.currentUser.save(["hide_presence"])}static #d=(()=>dt7948.n(this.prototype,"togglePresence",[n.action]))();setUserStatusClick(){this.args.closeUserMenu(),this.modal.show(u.default,{model:{status:this.currentUser.status,pauseNotifications:this.currentUser.isInDoNotDisturb(),saveAction:(e,t)=>this.userStatus.set(e,t),deleteAction:()=>this.userStatus.clear()}})}static #p=(()=>dt7948.n(this.prototype,"setUserStatusClick",[n.action]))();async toggleAnonymous(){await (0,g.ajax)((0,_.userPath)("toggle-anon"),{type:"POST"}),window.location.reload()}static #m=(()=>dt7948.n(this.prototype,"toggleAnonymous",[n.action]))();static #f=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"pSj89OfY",block:'[[[1,"\\n "],[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,[32,0],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["setUserStatusClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1," "],[1,[28,[32,1],[[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,[32,2],[[30,0,["currentUser","status","ends_at"]]],null]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["circle-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["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,[32,5],["presence-toggle",[52,[51,[30,0,["isPresenceHidden"]]],"enabled"]],null]],[15,"title",[28,[32,4],["presence_toggle.title"],null]],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["togglePresence"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[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,[32,4],["presence_toggle.offline"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["presence_toggle.online"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[15,0,[28,[32,5],["do-not-disturb",[52,[30,0,["isInDoNotDisturb"]],"enabled"]],null]],[12],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["doNotDisturbClick"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],[[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,[32,4],["pause_notifications.label"],null]],[13],[1,"\\n"],[41,[30,0,["showDoNotDisturbEndDate"]],[[[1," "],[1,[28,[32,2],[[30,0,["doNotDisturbDateTime"]]],null]],[1,"\\n"]],[]],null]],[]],[[[1," "],[1,[28,[32,4],["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,[32,6],null,[["@route","@model"],["user.summary",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["user"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["user.summary.title"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"activity"],[12],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["userActivity",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["bars-staggered"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["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,[32,6],null,[["@route","@model"],["userInvited",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["user-plus"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["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,[32,6],null,[["@route","@model"],["userActivity.drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["user_menu.drafts"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["currentUser","draft_count"]],[[[1," "],[1,[28,[32,4],["drafts.label_with_count"],[["count"],[[30,0,["currentUser","draft_count"]]]]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,4],["drafts.label"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,"li"],[14,0,"preferences"],[12],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["preferences",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["gear"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["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,[32,0],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["toggleAnonymous"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","is_anonymous"]],[[[1," "],[1,[28,[32,3],["ban"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["switch_from_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,3],["user-secret"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["switch_to_anon"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[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,[32,3],[[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,[32,0],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[28,[32,7],["logout"],null]]],[["default"],[[[[1,"\\n "],[1,[28,[32,3],["right-from-bracket"],null]],[1,"\\n "],[10,1],[14,0,"item-label"],[12],[1,"\\n "],[1,[28,[32,4],["user.log_out"],null]],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@ariaLabelledby","item"],false,["if","unless","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/profile-tab-content.js",scope:()=>[o.default,h.default,d.default,p.default,y.i18n,c.default,r.LinkTo,m.default],isStrictMode:!0}),this))()}},32386:(e,t,i)=>{"use strict";function s(e){return e&&"object"==typeof e}function n(){let e;for(var t=arguments.length,i=Array(t),n=0;ne&&!s(e)))throw Error('deepMerge: all values should be of type "object"');let r=i.shift();for(;e=i.shift();)!function e(t,i){return Object.keys(i).forEach(n=>{let r=t[n],a=i[n];Array.isArray(r)&&Array.isArray(a)?t[n]=r.concat(a):s(r)&&s(a)?t[n]=e({...r},a):t[n]=a}),t}(r,e||{});return r}function r(e){return JSON.parse(JSON.stringify(e))}i.r(t),i.d(t,{cloneJSON:()=>r,deepEqual:()=>function e(t,i){if(t===i)return!0;if(!(s(t)&&s(i))||Object.keys(t).length!==Object.keys(i).length)return!1;for(let s in t)if(!e(t[s],i[s]))return!1;return!0},deepFreeze:()=>function e(t){for(let i of Reflect.ownKeys(t)){let s=t[i];(s&&"object"==typeof s||"function"==typeof s)&&e(s)}return Object.freeze(t)},deepMerge:()=>n})},32395:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(32045),n=i(96791),r=i(86981),a=i(91558),o=i(15383),l=i(85024),u=i(78771),d=i.n(u),c=i(14013),p=i.n(c),h=i(70508),m=i(75803),g=i(1519);let f=dt7948.c(class extends s.default{tabIndex=(()=>-1)();static #e=(()=>dt7948.g(this.prototype,"isExpanded",[(0,a.not)("isHidden")]))();#lX=(()=>void dt7948.i(this,"isExpanded"))();get isHidden(){return!this.selectKit.options.filterable&&!this.selectKit.options.allowAny&&!this.selectKit.options.autoFilterable}static #i=(()=>dt7948.n(this.prototype,"isHidden",[(0,r.computed)("selectKit.options.{filterable,allowAny,autoFilterable}","content.[]")]))();placeholder(e,t){return(0,o.isPresent)(t)?t:(0,o.isPresent)(e)?(0,h.i18n)(e):(0,h.i18n)(this.selectKit.options.allowAny?"select_kit.filter_placeholder_with_any":"select_kit.filter_placeholder")}static #n=(()=>dt7948.n(this.prototype,"placeholder",[p()("selectKit.options.filterPlaceholder","selectKit.options.translatedFilterPlaceholder","selectKit.options.allowAny")]))();onPaste(){}static #a=(()=>dt7948.n(this.prototype,"onPaste",[r.action]))();onInput(e){return this.selectKit.onInput(e),!0}static #l=(()=>dt7948.n(this.prototype,"onInput",[r.action]))();onKeyup(e){return e.preventDefault(),e.stopImmediatePropagation(),!0}static #d=(()=>dt7948.n(this.prototype,"onKeyup",[r.action]))();onKeydown(e){return!!this.selectKit.onKeydown(e)&&("Tab"===e.key&&this.selectKit.isLoading?(this.selectKit.cancelSearch(),this.selectKit.close(e),!0):"ArrowLeft"===e.key||"ArrowRight"===e.key||("Backspace"!==e.key||this.selectKit.filter?"ArrowUp"===e.key?(this.selectKit.highlightLast(),e.preventDefault(),!1):"ArrowDown"===e.key?(this.selectKit.isExpanded||this.selectKit.open(e),this.selectKit.highlightFirst(),e.preventDefault(),!1):"Escape"===e.key?(this.selectKit.close(e),this.selectKit.headerElement().focus(),e.preventDefault(),e.stopPropagation(),!1):"Enter"===e.key&&this.selectKit.highlighted?(this.selectKit.select(this.getValue(this.selectKit.highlighted),this.selectKit.highlighted),e.preventDefault(),e.stopImmediatePropagation(),!1):"Enter"===e.key&&(!this.selectKit.highlighted||this.selectKit.enterDisabled)?(this.element.querySelector("input").focus(),this.selectKit.enterDisabled&&(e.preventDefault(),e.stopImmediatePropagation()),!1):void this.selectKit.set("highlighted",null):(this.selectKit.deselectLast(),e.preventDefault(),!1)))}static #p=(()=>dt7948.n(this.prototype,"onKeydown",[r.action]))();static #m=(()=>(0,s.setComponentTemplate)((0,g.createTemplateFactory)({id:"TcpkY9nI",block:'[[[1,"\\n"],[41,[51,[30,0,["isHidden"]]],[[[1,"\\n "],[8,[32,0],[[16,"tabindex",0],[24,0,"filter-input"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,3,"filter-input-search"],[16,"spellcheck",false],[4,[32,1],["paste",[30,0,["onPaste"]]],null],[4,[32,1],["keydown",[30,0,["onKeydown"]]],null],[4,[32,1],["keyup",[30,0,["onKeyup"]]],null],[4,[32,1],["input",[30,0,["onInput"]]],null]],[["@value","@type"],[[28,[31,1],[[30,0,["selectKit","filter"]]],null],"search"]],null],[1,"\\n\\n"],[41,[30,0,["selectKit","options","filterIcon"]],[[[1," "],[1,[28,[32,2],[[30,0,["selectKit","options","filterIcon"]]],[["class"],["filter-icon"]]]],[1,"\\n"]],[]],null]],[]],null],[1," "]],[],false,["unless","readonly","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-filter.js",scope:()=>[s.Input,n.on,d()],isStrictMode:!0}),this))()},[m.default,(0,l.attributeBindings)("role"),(0,l.classNameBindings)("isExpanded:is-expanded"),(0,l.classNames)("select-kit-filter")])},32495:(e,t,i)=>{"use strict";function s(){return"undefined"!=typeof window}function n(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function r(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!s()&&(e instanceof Node||e instanceof r(e).Node)}function l(e){return!!s()&&(e instanceof Element||e instanceof r(e).Element)}function u(e){return!!s()&&(e instanceof HTMLElement||e instanceof r(e).HTMLElement)}function d(e){return!!s()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof r(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:i,overflowY:s,display:n}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&!["inline","contents"].includes(n)}function p(e){return["table","td","th"].includes(n(e))}function h(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function m(e){let t=f(),i=l(e)?y(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!i[e]&&"none"!==i[e])||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(i.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(i.contain||"").includes(e))}function g(e){let t=w(e);for(;u(t)&&!_(t);){if(m(t))return t;if(h(t))break;t=w(t)}return null}function f(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function _(e){return["html","body","#document"].includes(n(e))}function y(e){return r(e).getComputedStyle(e)}function b(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function w(e){if("html"===n(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||a(e);return d(t)?t.host:t}function k(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}i.d(t,{$4:()=>w,CP:()=>b,L9:()=>y,Lv:()=>p,Tc:()=>f,Tf:()=>h,ZU:()=>c,_m:()=>k,ep:()=>a,eu:()=>_,gJ:()=>g,mq:()=>n,sQ:()=>m,sb:()=>u,v9:()=>function e(t,i,s){var n;void 0===i&&(i=[]),void 0===s&&(s=!0);let a=function e(t){let i=w(t);return _(i)?t.ownerDocument?t.ownerDocument.body:t.body:u(i)&&c(i)?i:e(i)}(t),o=a===(null==(n=t.ownerDocument)?void 0:n.body),l=r(a);if(o){let t=k(l);return i.concat(l,l.visualViewport||[],c(a)?a:[],t&&s?e(t):[])}return i.concat(a,e(a,[],s))},vq:()=>l,zk:()=>r})},32582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(75524)},32587:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(32045),n=i(63538),r=i(70508),a=i(1519),o=i(69522);let l=(0,s.setComponentTemplate)((0,a.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:()=>[n.default,s.Input,r.i18n],isStrictMode:!0}),(0,o.default)(void 0,"preference-checkbox:PreferenceCheckbox"))},32621:(e,t,i)=>{"use strict";function s(){}i.r(t),i.d(t,{_resetWaiterNames:()=>s,default:()=>r}),i(60569),i(32096);class n{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}function r(e){return new n(e)}},32690:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(47076),n=i.n(s),r=i(44233);let a=dt7948.c(class{static isServiceFactory=!0;static create(){return n()}},[r.disableImplicitInjections])},32693:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.R,onerrorDefault:()=>a});var s=i(90760),n=i(24813),r=i(54134);function a(e){let t=function(e){if(e)return e.errorThrown?function(e){let t=e.errorThrown;return"string"==typeof t&&(t=Error(t)),Object.defineProperty(t,"__reason_with_error_thrown__",{value:e,enumerable:!1}),t}(e):"UnrecognizedURLError"===e.name?void 0:"TransitionAborted"!==e.name?e:void 0}(e);if(t){let e=(0,r.getDispatchOverride)();if(e)e(t);else throw t}}i(60569),(0,s.c)("async",(e,t)=>{n._backburner.schedule("actions",null,e,t)}),(0,s.c)("after",e=>{n._backburner.schedule(n._rsvpErrorQueue,null,e)}),(0,s.o)("error",a)},32812:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(1158),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"dV3meYsV",block:'[[[1,"\\n "],[1,[28,[32,0],["tags-page"],null]],[1,"\\n "],[46,[28,[31,1],null,null],null,null,null],[1,"\\n "]],[],false,["component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/tags.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},32851:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w,isHex:()=>b});var s=i(93317),n=i(73326),r=i(96791),a=i(96848),o=i(95112),l=i(70568),u=i(24813),d=i(75093),c=i(57079),p=i(63538),h=i(38069),m=i(14051),g=i(63272),f=i(76164),_=i(32045),y=i(1519);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 s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[d.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,g.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 #i=(()=>dt7948.n(this.prototype,"maybeScrollIntoView",[m.bind]))();static #n=(()=>(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:()=>[a.default,o.default,f.default,l.LinkTo,c.or,n.hash,p.default,c.eq,h.default,r.on],isStrictMode:!0}),this))()}},32852:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(86981),n=i(85024),r=i(51318),a=i(14051),o=i(63272),l=i(35697),u=i(70508);let d=dt7948.c(class extends r.default{init(){super.init(...arguments),(0,o.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,l.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,s.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 #i=(()=>dt7948.n(this.prototype,"placeholder",[(0,a.default)("placeholderKey")]))()},[(0,n.classNameBindings)("invalid")])},32957:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(98849),n=i(86981),r=i(32045),a=i(94064);let o=s.default?Object.create(null):null,l=r.default.extend(a.default,{classNames:["ember-text-field"],tagName:"input",attributeBindings:["accept","autocomplete","autosave","dir","formaction","formenctype","formmethod","formnovalidate","formtarget","height","inputmode","lang","list","type","max","min","multiple","name","pattern","size","step","value","width"],value:"",type:(0,n.computed)({get:()=>"text",set(e,t){let i="text";return function(e){if(!s.default)return!!e;if(e in o)return o[e];let t=document.createElement("input");try{t.type=e}catch(e){}return o[e]=t.type===e}(t)&&(i=t),i}}),size:null,pattern:null,min:null,max:null});l.toString=()=>"@ember/component/text-field";let u=l},33020:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(57079),n=i(76350),r=i(13961),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.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:()=>[s.and,r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,"post-count-or-badges:PostCountOrBadges"))},33064:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=i(82876).default.create({_transitionTo(e){let t=this._currentState,i=this._currentState=this._states[e];this._state=e,t&&t.exit&&t.exit(this),i.enter&&i.enter(this)}})},33154:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(32045),n=i(73326),r=i(86981),a=i(91558),o=i(85024),l=i(4611),u=i.n(l),d=i(73935),c=i.n(d),p=i(1519);let h=dt7948.c(class extends s.default{static #e=(()=>dt7948.g(this.prototype,"selectedTags",[(0,a.reads)("collection.content.selectedTags.[]")]))();#nf=(()=>void dt7948.i(this,"selectedTags"))();get tags(){if(!this.selectedTags)return[];let e=this.selectedTags;return e.length>=20&&this.selectKit.filter?e=e.filter(e=>e.includes(this.selectKit.filter)):e.length>=20&&(e=e.slice(0,20)),e.map(e=>({value:e,classNames:"selected-tag"}))}static #i=(()=>dt7948.n(this.prototype,"tags",[(0,r.computed)("selectedTags.[]","selectKit.filter")]))();static #n=(()=>(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"4+VZ9I+p",block:'[[[1,"\\n"],[41,[30,0,["tags"]],[[[1," "],[10,0],[14,0,"mini-tag-chooser-selected-collection selected-tags"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["tags"]]],null]],null],null,[[[1," "],[8,[32,0],[[24,"tabindex","0"],[16,0,[30,1,["classNames"]]]],[["@translatedTitle","@icon","@action"],[[30,1,["value"]],"xmark",[28,[32,1],[[30,0,["selectKit","deselect"]],[30,1,["value"]]],null]]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1,["value"]]],[["noHref"],[true]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],["tag"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/mini-tag-chooser/selected-collection.js",scope:()=>[u(),n.fn,c()],isStrictMode:!0}),this))()},[(0,o.tagName)("")])},33186:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(86981);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"target.value";return function(i){return e((0,s.get)(i,t))}}},33193:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(1519),r=i(69522);let a=(0,s.setComponentTemplate)((0,n.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"))},33229:(e,t,i)=>{"use strict";i.d(t,{n4:()=>m});var s=i(11051),n=i(45617),r=i(65196),a=i(80173),o=i(64984),l=i(45675),u=i(74667),d=i(22930),c=i(79891),p=i(69108),h=[n.A,r.A,a.A,o.A,l.A,u.A,d.A,c.A,p.A],m=(0,s.UD)({defaultModifiers:h})},33261:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(75093),r=i(36471),a=i(11837),o=i(32045),l=i(1519);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"session",[n.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #i=(()=>dt7948.g(this.prototype,"interfaceColor",[n.service]))();#lZ=(()=>void dt7948.i(this,"interfaceColor"))();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,a.getURLWithCDN)(this.args.darkImg.url)}get darkMediaQuery(){return this.interfaceColor.darkModeForced?"all":this.interfaceColor.lightModeForced?"none":"(prefers-color-scheme: dark)"}static #n=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"cuLhbJ2K",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"]]],[15,"media",[30,0,["darkMediaQuery"]]],[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))()}},33289:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],n=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})})},33294:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CLASS_NAME:()=>a,default:()=>o});var s=i(15383),n=i(35952),r=i(98827);let a="search-highlight";function o(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,s.isEmpty)(t)){let s=t.match(RegExp(`${n.SEARCH_PHRASE_REGEXP}|[^\\s]+`,"g")).filter(e=>"l"!==e).map(e=>e.replace(/^"(.*)"$/,"$1")),o={};i.defaultClassName||(o.className=a),(0,r.default)(e,s,o)}}},33310:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l,htmlStatus:()=>o});var s=i(9032),n=i(21530),r=i(69606),a=i(70508);function o(e,t){let i=function(e,t){switch(e){case r.PENDING:return{name:"pending"};case r.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 r.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 r.IGNORED:return{icon:"up-right-from-square",name:"ignored"};case r.DELETED:return{icon:"trash-can",name:"deleted"}}}(e,t);if(!i)return;let s=i.icon?(0,n.iconHTML)(i.icon):"";return` ${s} ${(0,a.i18n)("review.statuses."+i.name+".title")} `}function l(e,t){return(0,s.htmlSafe)(o(e,t))}},33325:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(86981),n=i(43050),r=i(38108);function a(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],u=(0,r.default)(i);return"function"==typeof u&&e instanceof n.default?(i.writable=!1,i.initializer=void 0,i.value=void 0,i.get=l(a,u),(0,s.computed)(...a)(e,t,i)):{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,initializer(){let e;if(i.writable)if("object"==typeof u){let t={};u.get&&(t.get=l(a,u.get)),u.set&&(t.set=function(e,t){return e=e.map(o),function(i,n){let r=e.map(e=>(0,s.get)(this,e));return r.unshift(n),t.apply(this,r)}}(a,u.set)),e=t}else e=l(a,u);else throw Error("ember-computed-decorators does not support using getters and setters");return s.computed.apply(null,a.concat(e))}}}function o(e){let t,i=e.split(".");for(t=0;t(0,s.get)(this,e));return t.apply(this,i)}}},33343:(e,t,i)=>{"use strict";i.r(t),i.d(t,{needsSecondRowIf:()=>n});var s=i(63272);function n(){(0,s.default)("`needsSecondRowIf` is deprecated. Use widget hooks on `header-second-row`",{id:"discourse.header-extra-info.needs-second-row-if"})}},33385:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(93317),n=i(70508),r=i(32045),a=i(1519);class o extends s.default{get filterKey(){let e=this.args.filter;return e&&"categories"!==e?e.includes("/")?e.split("/").pop():e:null}get type(){let{category:e,tag:t,additionalTags:i}=this.args;return e&&t?"category_tag":t&&i?.length?"multi_tag":t?"single_tag":e?"category":"all"}get label(){let{category:e,tag:t,additionalTags:i,filter:s}=this.args,r=this.filterKey,a=this.type;if("categories"===s)return(0,n.i18n)("discovery.headings.categories");if("multi_tag"===a)return(0,n.i18n)("discovery.headings.multi_tag.default",{tags:[t?.id,...i||[]].filter(Boolean).join(" + ")});if(t?.id==="none"&&!i?.length){let t=e?"category":"all",i=`discovery.headings.no_tags.${t}`,s=r?`${i}.${r}`:null,a=`${i}.default`,o={category:e?.name,filter:r},l=s?(0,n.i18n)(s,o):"";return(l===s||l.includes("discovery.headings"))&&(l=(0,n.i18n)(a,o)),l}let o=`discovery.headings.${a}`,l=r?`${o}.${r}`:null,u=`${o}.default`,d={category:e?.name,tag:t?.id,filter:r},c=l?(0,n.i18n)(l,d):"";return(c===l||c.includes("discovery.headings"))&&(c=(0,n.i18n)(u,d)),c}static #e=(()=>(0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"qkunpgDT",block:'[[[1,"\\n"],[41,[30,1],[[[1," "],[10,"h1"],[14,1,"topic-list-heading"],[14,0,"sr-only"],[12],[1,[30,0,["label"]]],[13],[1,"\\n"]],[]],null],[1," "]],["@filter"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/accessible-discovery-heading.js",isStrictMode:!0}),this))()}},33388:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(77982);let n={before:"inject-discourse-objects",after:"discourse-bootstrap",initialize(){(0,s._freezeValidTransformerNames)()}}},33421:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(14104),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"hg7EapCk",block:'[[[1,"\\n "],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n"],[41,[30,1,["model","permissions"]],[[[1," "],[10,"label"],[14,0,"group-category-permissions-desc"],[12],[1,"\\n "],[1,[28,[32,0],["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,[31,2],[[28,[31,2],[[30,1,["model","permissions"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,[28,[32,1],[[30,2,["category"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[30,2,["description"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,0],["groups.permissions.none"],null]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],["@controller","permission"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/permissions.js",scope:()=>[r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},33441:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(9032),n=i(85024),r=i(18649),a=i(32045),o=i(1519);let l=dt7948.c(class extends r.default{static #e=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"GkX1520J",block:'[[[1,"\\n "],[10,0],[14,0,"texts"],[12],[1,"\\n "],[10,1],[14,0,"name"],[12],[1,[28,[32,0],[[30,0,["label"]]],null]],[13],[1,"\\n"],[41,[30,0,["item","description"]],[[[1," "],[10,1],[14,0,"desc"],[12],[1,[28,[32,0],[[30,0,["item","description"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/homepage-style-selector/homepage-style-selector-row.js",scope:()=>[s.htmlSafe],isStrictMode:!0}),this))()},[(0,n.classNames)("homepage-style-selector-row")])},33476:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(27797),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();templateName="user/stream";beforeModel(){return this.currentUser?this.isCurrentUser(this.modelFor("user"))?void 0:this.router.transitionTo("userActivity.drafts",this.currentUser):this.router.transitionTo("discovery.latest")}async model(){let e=this.modelFor("user").get("userDraftsStream");return e.reset(),await e.findItems(this.site),{stream:e,emptyState:this.emptyState()}}emptyState(){return{title:(0,r.i18n)("user_activity.no_drafts_title"),body:(0,r.i18n)("user_activity.no_drafts_body")}}activate(){this.appEvents.on("draft:destroyed",this,this.refresh)}deactivate(){this.appEvents.off("draft:destroyed",this,this.refresh)}titleToken(){return(0,r.i18n)("user_action_groups.15")}}},33499:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(85024),n=i(8212),r=i(76684),a=i(41877),o=i(87542);let l=dt7948.c(class extends n.default{modifyComponentForRow(){return a.default}},[(0,o.pluginApiIdentifiers)(["dropdown-select-box"]),(0,o.selectKitOptions)({autoFilterable:!1,filterable:!1,showFullTitle:!0,headerComponent:r.default,caretUpIcon:"caret-up",caretDownIcon:"caret-down",showCaret:!1,customStyle:null,btnCustomClasses:null}),(0,s.classNames)("dropdown-select-box")])},33529:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})},33571:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(86981),r=i(75093),a=i(13355),o=i(16356),l=i(25217),u=i(70508),d=i(75987),c=i(77611),p=i(32045),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>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,o.popupAjaxError)(e)}}static #i=(()=>dt7948.n(this.prototype,"removeIgnoredUser",[n.action]))();newIgnoredUser(){this.modal.show(c.default,{model:{actingUser:this.args.model,ignoredUsername:null,onUserIgnored:e=>{this.args.items.addObject(e)}}})}static #n=(()=>dt7948.n(this.prototype,"newIgnoredUser",[n.action]))();static #a=(()=>(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:()=>[d.default,u.i18n,a.default],isStrictMode:!0}),this))()}},33630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(81727),n=i(86981),r=i(31075),a=i(14051);class o extends s.default{loading=!1;loadingMore=!1;totalRows=0;refreshing=!1;content=null;loadMoreUrl=null;refreshUrl=null;findArgs=null;store=null;resultSetMeta=null;__type=null;canLoadMore(e,t){return tdt7948.n(this.prototype,"canLoadMore",[(0,a.default)("totalRows","length")]))();loadMore(){let e=this.loadMoreUrl;if(!e)return;let t=this.totalRows;return this.lengththis.set("loadingMore",!1))):r.Promise.resolve()}static #i=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();refresh(){if(this.refreshing)return;let e=this.refreshUrl;if(e)return this.set("refreshing",!0),this.store.refreshResults(this,this.__type,e).finally(()=>this.set("refreshing",!1))}}},33635:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(9032),n=i(21530),r=i(35697),a=i(70508);function o(e){let{currentUser:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;let i=(0,r.escapeExpression)(e.name);return e.admin&&t?.staff?(0,s.htmlSafe)((0,n.iconHTML)("shield-halved",{label:(0,a.i18n)("user.admin",{user:i})})):e.moderator?(0,s.htmlSafe)((0,n.iconHTML)("shield-halved",{label:(0,a.i18n)("user.moderator",{user:i})})):void 0}},33831:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>_});var s=i(73326),n=i(75370),r=i(53329),a=i(32587),o=i(9616),l=i(28959),u=i(5806),d=i(1158),c=i(10458),p=i(70508),h=i(7749),m=i(32045),g=i(1519),f=i(69522);let _=(0,n.default)((0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"zU1OT+jp",block:'[[[1,"\\n "],[1,[28,[32,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,[32,1],["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,[32,1],["user.new_topic_duration.label"],null]],[13],[1,"\\n "],[8,[32,2],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,1,["considerNewTopicOptions"]],[30,1,["model","user_option","new_topic_duration_minutes"]],[28,[32,3],[[28,[31,0],[[30,1,["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,[32,1],["user.auto_track_topics"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,1,["autoTrackDurations"]],[30,1,["model","user_option","auto_track_topics_after_msecs"]],[28,[32,3],[[28,[31,0],[[30,1,["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,[32,1],["user.notification_level_when_replying.label"],null]],[13],[1,"\\n "],[8,[32,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,1,["notificationLevelsForReplying"]],[30,1,["model","user_option","notification_level_when_replying"]],[28,[32,3],[[28,[31,0],[[30,1,["model","user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,4],null,[["@name","@outletArgs"],["user-preferences-tracking-topics",[28,[32,5],null,[["model","customAttrNames"],[[30,1,["model"]],[30,1,["customAttrNames"]]]]]]],null],[1,"\\n\\n "],[8,[32,6],null,[["@labelKey","@checked"],["user.topics_unread_when_closed",[30,1,["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,[32,7],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@siteSettings"],[[30,1,["canSee"]],[30,1,["model"]],[30,1,["selectedCategories"]],[30,1,["hideMutedTags"]],[30,1,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[12],[1,"\\n "],[8,[32,8],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,1,["model"]],[30,1,["selectedTags"]],[30,1,["save"]],[30,1,["siteSettings"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["showMutePrecedenceSetting"]],[[[1," "],[10,0],[14,0,"control-group user-preferences__watched-precedence-over-muted"],[12],[1,"\\n "],[8,[32,6],[[24,"data-setting-name","watched-precedence-over-muted"]],[["@labelKey","@checked"],["user.watched_precedence_over_muted",[30,1,["model","user_option","watched_precedence_over_muted"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canSave"]],[[[1," "],[8,[32,9],null,[["@model","@action","@saved"],[[30,1,["model"]],[30,1,["save"]],[30,1,["saved"]]]],null],[1,"\\n"]],[]],null],[1," "]],["@controller"],false,["mut","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/tracking.js",scope:()=>[d.default,p.i18n,h.default,s.fn,r.default,c.default,a.default,l.default,u.default,o.default],isStrictMode:!0}),(0,f.default)(void 0,void 0)))},34001:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(96791),r=i(86981),a=i(15383),o=i(85024),l=i(78771),u=i.n(l),d=i(14013),c=i.n(d),p=i(32395),h=i(1519);let m=dt7948.c(class extends p.default{computedPlaceholder(e,t){return this.hidePlaceholderWithSelection&&t||(0,a.isEmpty)(e)?"":e}static #e=(()=>dt7948.n(this.prototype,"computedPlaceholder",[c()("placeholder","selectKit.hasSelection")]))();onPaste(e){let t=e?.clipboardData;if(!t)return;let i=t.getData("text").split("|").filter(Boolean);if(i.length>1)return e.stopPropagation(),e.preventDefault(),this.selectKit.append(i),!1}static #i=(()=>dt7948.n(this.prototype,"onPaste",[r.action]))();static #n=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"2CCHnceQ",block:'[[[1,"\\n"],[41,[51,[30,0,["isHidden"]]],[[[1,"\\n "],[8,[32,0],[[16,"tabindex",0],[24,0,"filter-input"],[16,"placeholder",[30,0,["computedPlaceholder"]]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,3,"filter-input-search"],[16,"spellcheck",false],[4,[32,1],["paste",[30,0,["onPaste"]]],null],[4,[32,1],["keydown",[30,0,["onKeydown"]]],null],[4,[32,1],["keyup",[30,0,["onKeyup"]]],null],[4,[32,1],["input",[30,0,["onInput"]]],null]],[["@value","@type"],[[28,[31,1],[[30,0,["selectKit","filter"]]],null],"search"]],null],[1,"\\n\\n"],[41,[30,0,["selectKit","options","filterIcon"]],[[[1," "],[1,[28,[32,2],[[30,0,["selectKit","options","filterIcon"]]],[["class"],["filter-icon"]]]],[1,"\\n"]],[]],null]],[]],null],[1," "]],[],false,["unless","readonly","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/multi-select/multi-select-filter.js",scope:()=>[s.Input,n.on,u()],isStrictMode:!0}),this))()},[(0,o.classNames)("multi-select-filter")])},34016:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a}),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);i(28543);var n=i(82876),r=i(48085);let a=n.default.create({childViews:(0,s.B)({configurable:!1,enumerable:!1,get(){return(0,r.getChildViews)(this)}}),appendChild(e){(0,r.addChildView)(this,e)}})},34078:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o}),i(60569);var s=i(16994),n=i(11458),r=i(47408),a=i(43497);function o(){(0,a.setTesting)(!0),(0,s.getAdapter)()||(0,s.setAdapter)(void 0===self.QUnit?n.default.create():r.default.create())}},34100:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{$:()=>ej,A:()=>ei,B:()=>E,C:()=>em,D:()=>n,E:()=>j,F:()=>F,G:()=>H,H:()=>q,I:()=>en,J:()=>L,K:()=>S,L:()=>D,M:()=>C,N:()=>V,O:()=>eP,P:()=>eC,Q:()=>eo,R:()=>ey,S:()=>eI,T:()=>ep,U:()=>eb,V:()=>eM,W:()=>eL,X:()=>G,Y:()=>K,Z:()=>T,_:()=>ex,a:()=>w,b:()=>N,c:()=>e_,d:()=>ev,e:()=>B,f:()=>O,g:()=>eD,h:()=>eA,i:()=>x,j:()=>X,k:()=>z,l:()=>ec,m:()=>ed,n:()=>eu,o:()=>y,p:()=>eF,q:()=>eS,r:()=>P,s:()=>R,t:()=>k,u:()=>s,v:()=>J,w:()=>Q,x:()=>$,y:()=>ek,z:()=>ew});var r=i(57330),a=i(71729);i(60569);var o=i(89352),l=i(77188),u=i(77061),d=i(28543),c=i(71797),p=i(217),h=i(21364),m=i(25325),g=i(47249),f=i(18793),_=i(92065);function y(e,t){return Array.isArray(e)?e[t]:e.objectAt(t)}let b=(0,c.s)("SELF_TAG");function w(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0,n=(0,u.getCustomTagFor)(e);return void 0!==n?n(e,t,i):(0,l.tagFor)(e,t,s)}function k(e){return(0,a.e)(e)?(0,l.tagFor)(e,b):l.CONSTANT_TAG}function T(e,t){(0,l.dirtyTagFor)(e,t),(0,l.dirtyTagFor)(e,b)}let S=new WeakSet;function C(e,t,i){let s=e.readableLazyChainsFor(t);if(void 0!==s){if((0,a.e)(i))for(let[e,t]of s)(0,l.updateTag)(e,D(i,t,(0,l.tagMetaFor)(i),(0,r.peekMeta)(i)));s.length=0}}function A(e,t,i,s){let n=[];for(let r of t)M(n,e,r,i,s);return(0,l.combine)(n)}function D(e,t,i,s){return(0,l.combine)(M([],e,t,i,s))}function M(e,t,i,s,n){let o,u,d=t,c=s,p=n,h=i.length,m=-1;for(;;){let t=m+1;if(-1===(m=i.indexOf(".",t))&&(m=h),"@each"===(o=i.slice(t,m))&&m!==h){t=m+1,m=i.indexOf(".",t);let s=d.length;if("number"==typeof s&&(Array.isArray(d)||"objectAt"in d)){if(0===s){e.push(w(d,"[]"));break}}else break;o=-1===m?i.slice(t):i.slice(t,m);for(let t=0;tvoid 0)();_meta=(()=>void 0)();setup(e,t,i,s){s.writeDescriptors(t,this)}teardown(e,t,i){i.removeDescriptors(t)}}let P=new WeakSet;function F(e,t){let i=function(t,i,s,n,a){let o=3==arguments.length?(0,r.meta)(t):n;return e.setup(t,i,s,o),{enumerable:e.enumerable,configurable:e.configurable,get:function(e,t){return function(){return t.get(this,e)}}(i,e),set:function(e,t){let i=function(i){return t.set(this,e,i)};return P.add(i),i}(i,e)}};return R(i,e),Object.setPrototypeOf(i,t.prototype),i}let I=new WeakMap;function N(e,t,i){let s=void 0===i?(0,r.peekMeta)(e):i;if(null!==s)return s.peekDescriptors(t)}function j(e){return I.get(e)}function O(e){return"function"==typeof e&&I.has(e)}function R(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];I.set(e,t)}let U=/\.@each$/;function B(e,t){let i=e.indexOf("{");i<0?t(e.replace(U,".[]")):function e(t,i,s,n){let r=i.indexOf("}"),a=0,o,l,u=i.substring(s+1,r).split(","),d=i.substring(r+1);for(t+=i.substring(0,s),l=u.length;a5)||void 0===arguments[5]||arguments[5];s||"function"!=typeof i||(s=i,i=null),(0,r.meta)(e).addToListeners(t,i,s,!0===n,a)}function q(e,t,i,s){let n,a;"object"==typeof i?(n=i,a=s):(n=null,a=i),(0,r.meta)(e).removeFromListeners(t,n,a)}function z(e,t,i,s,n){if(void 0===s){let i=void 0===n?(0,r.peekMeta)(e):n;s=null!==i?i.matchingListeners(t):void 0}if(void 0===s||0===s.length)return!1;for(let n=s.length-3;n>=0;n-=3){let r=s[n],a=s[n+1],o=s[n+2];if(!a)continue;o&&q(e,t,r,a),r||(r=e);let l=typeof a;("string"===l||"symbol"===l)&&(a=r[a]),a.apply(r,i)}return!0}function $(e,t){let i=(0,r.peekMeta)(e);if(null===i)return!1;let s=i.matchingListeners(t);return void 0!==s&&s.length>0}function V(){for(var e=arguments.length,t=Array(e),i=0;i4&&void 0!==arguments[4]?arguments[4]:W,a=Y(t);H(e,a,i,s,!1,n);let o=(0,r.peekMeta)(e);null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||X(e,a,n)}function Q(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:W,a=Y(t),o=(0,r.peekMeta)(e);null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||et(e,a,n),q(e,a,i,s)}function X(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=function(e,t){let i=!0===t?K:G;return i.has(e)||(i.set(e,new Map),(0,o.registerDestructor)(e,()=>(function(e){K.size>0&&K.delete(e),G.size>0&&G.delete(e)})(e),!0)),i.get(e)}(e,i);if(s.has(t))s.get(t).count++;else{let i=t.substring(0,t.lastIndexOf(":")),n=D(e,i,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e));s.set(t,{count:1,path:i,tag:n,lastRevision:(0,l.valueForTag)(n),suspended:!1})}}let Z=!1,ee=[];function et(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!0===Z)return void ee.push([e,t,i]);let s=!0===i?K:G,n=s.get(e);if(void 0!==n){let i=n.get(t);i.count--,0===i.count&&(n.delete(t),0===n.size&&s.delete(e))}}function ei(e){G.has(e)&&G.get(e).forEach(t=>{t.tag=D(e,t.path,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e)),t.lastRevision=(0,l.valueForTag)(t.tag)}),K.has(e)&&K.get(e).forEach(t=>{t.tag=D(e,t.path,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e)),t.lastRevision=(0,l.valueForTag)(t.tag)})}let es=0;function en(e){let t=(0,l.valueForTag)(l.CURRENT_TAG);es!==t&&(es=t,G.forEach((t,i)=>{let s=(0,r.peekMeta)(i);t.forEach((t,n)=>{if(!(0,l.validateTag)(t.tag,t.lastRevision)){let a=()=>{try{z(i,n,[i,t.path],void 0,s)}finally{t.tag=D(i,t.path,(0,l.tagMetaFor)(i),(0,r.peekMeta)(i)),t.lastRevision=(0,l.valueForTag)(t.tag)}};e?e("actions",a):a()}})}))}function er(){K.forEach((e,t)=>{let i=(0,r.peekMeta)(t);e.forEach((e,s)=>{if(!e.suspended&&!(0,l.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,z(t,s,[t,e.path],void 0,i)}finally{e.tag=D(t,e.path,(0,l.tagMetaFor)(t),(0,r.peekMeta)(t)),e.lastRevision=(0,l.valueForTag)(e.tag),e.suspended=!1}})})}function ea(e,t,i){let s=K.get(e);if(!s)return;let n=s.get(Y(t));n&&(n.suspended=i)}let eo=Symbol("PROPERTY_DID_CHANGE"),el=0;function eu(e,t,i,s){let n=void 0===i?(0,r.peekMeta)(e):i;!(null!==n&&(n.isInitializing()||n.isPrototypeMeta(e)))&&(T(e,t),el<=0&&er(),eo in e&&(4==arguments.length?e[eo](t,s):e[eo](t)))}function ed(){el++,function(){Z=!0}()}function ec(){--el<=0&&(er(),function(){for(let[e,t,i]of(Z=!1,ee))et(e,t,i);ee=[]}())}function ep(e){ed();try{e()}finally{ec()}}function eh(){}class em extends L{_readOnly=!1;_hasConfig=!1;_getter=(()=>void 0)();_setter=(()=>void 0)();constructor(e){super();let t=e[e.length-1];if("function"==typeof t||null!==t&&"object"==typeof t){this._hasConfig=!0;let t=e.pop();"function"==typeof t?this._getter=t:(this._getter=t.get||eh,this._setter=t.set)}e.length>0&&this._property(...e)}setup(e,t,i,s){if(super.setup(e,t,i,s),!1===this._hasConfig){let{get:e,set:t}=i;void 0!==e&&(this._getter=e),void 0!==t&&(this._setter=function(i,s){let n=t.call(this,s);return void 0!==e&&void 0===n?e.call(this):n})}}_property(){let e=[];function t(t){e.push(t)}for(var i=arguments.length,s=Array(i),n=0;n{i=r.call(e,t)}),void 0!==o&&(0,l.updateTag)(a,A(e,o,n,s)),s.setValueFor(t,i),s.setRevisionFor(t,(0,l.valueForTag)(a)),C(s,t,i)}return(0,l.consumeTag)(a),Array.isArray(i)&&(0,l.consumeTag)((0,l.tagFor)(i,"[]")),i}set(e,t,i){let s;this._readOnly&&this._throwReadOnlyError(e,t);let n=(0,r.meta)(e);n.isInitializing()&&void 0!==this._dependentKeys&&this._dependentKeys.length>0&&"function"==typeof e[eo]&&e.isComponent&&J(e,t,()=>{e[eo](t)},void 0,!0);try{ed(),s=this._set(e,t,i,n),C(n,t,s);let r=(0,l.tagMetaFor)(e),a=(0,l.tagFor)(e,t,r),{_dependentKeys:o}=this;void 0!==o&&(0,l.updateTag)(a,A(e,o,r,n)),n.setRevisionFor(t,(0,l.valueForTag)(a))}finally{ec()}return s}_throwReadOnlyError(e,t){throw Error(`Cannot set read-only property "${t}" on object: ${(0,_.default)(e)}`)}_set(e,t,i,s){let n,r=void 0!==s.revisionFor(t),a=s.valueFor(t),{_setter:o}=this;ea(e,t,!0);try{n=o.call(e,t,i,a)}finally{ea(e,t,!1)}return r&&a===n||(s.setValueFor(t,n),eu(e,t,s,i)),n}teardown(e,t,i){void 0!==i.revisionFor(t)&&(i.setRevisionFor(t,void 0),i.setValueFor(t,void 0)),super.teardown(e,t,i)}}class eg extends em{get(e,t){let i,s=(0,r.meta)(e),n=(0,l.tagMetaFor)(e),a=(0,l.tagFor)(e,t,n),o=s.revisionFor(t);if(void 0!==o&&(0,l.validateTag)(a,o))i=s.valueFor(t);else{let{_getter:n}=this,r=(0,l.track)(()=>{i=n.call(e,t)});(0,l.updateTag)(a,r),s.setValueFor(t,i),s.setRevisionFor(t,(0,l.valueForTag)(a)),C(s,t,i)}return(0,l.consumeTag)(a),Array.isArray(i)&&(0,l.consumeTag)((0,l.tagFor)(i,"[]",n)),i}}class ef extends Function{readOnly(){return j(this)._readOnly=!0,this}meta(e){let t=j(this);return 0==arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return j(this)._getter}set enumerable(e){j(this).enumerable=e}}function e_(){for(var e=arguments.length,t=Array(e),i=0;i4)||void 0===arguments[4]||arguments[4];return!0===s||!1===n?Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:i}):e[t]=i,i}let eT=new m.C(1e3,e=>e.indexOf("."));function eS(e){return"string"==typeof e&&-1!==eT.get(e)}let eC=(0,c.s)("PROXY_CONTENT");function eA(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function eD(e,t){return eS(t)?ex(e,t):eM(e,t)}function eM(e,t){let i;if(null!=e)return"object"==typeof e||"function"==typeof e?(void 0===(i=e[t])&&"object"==typeof e&&!(t in e)&&eA(e)&&(i=e.unknownProperty(t)),(0,l.isTracking)()&&((0,l.consumeTag)((0,l.tagFor)(e,t)),(Array.isArray(i)||(0,h.isEmberArray)(i))&&(0,l.consumeTag)((0,l.tagFor)(i,"[]")))):i=e[t],i}function ex(e,t,i){for(let s of"string"==typeof t?t.split("."):t){if(null==e||e.isDestroyed||i&&("__proto__"===s||"constructor"===s))return;e=eM(e,s)}return e}eM("foo","a"),eM("foo",1),eM({},"a"),eM({},1),eM({unknownProperty(){}},"a"),eM({unknownProperty(){}},1),eD({},"foo"),eD({},"foo.bar");let eE={};(0,p.s)(eE),(0,l.track)(()=>eM({},"a")),(0,l.track)(()=>eM({},1)),(0,l.track)(()=>eM({a:[]},"a")),(0,l.track)(()=>eM({a:eE},"a"));class eL{_registry;_coreLibIndex;constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){for(let t of this._registry)if(t.name===e)return t}register(e,t,i){let s=this._registry.length;this._getLibraryByName(e)||(i&&(s=this._coreLibIndex++),this._registry.splice(s,0,{name:e,version:t}))}registerCoreLibrary(e,t){this.register(e,t,!0)}deRegister(e){let t,i=this._getLibraryByName(e);i&&(t=this._registry.indexOf(i),this._registry.splice(t,1))}isRegistered;logVersions}let eP=new eL;function eF(e){let t,i;for(var s=arguments.length,n=Array(s>1?s-1:0),r=1;rs)}])};return R(n),n}return eN(t)}function eN(e){let[t,i,s]=e,{getter:n,setter:a}=(0,l.trackedData)(i,s?s.initializer:void 0);function o(){let e=n(this);return(Array.isArray(e)||(0,h.isEmberArray)(e))&&(0,l.consumeTag)((0,l.tagFor)(e,"[]")),e}function u(e){a(this,e),(0,l.dirtyTagFor)(this,b)}return P.add(u),(0,r.meta)(t).writeDescriptors(i,new ej(o,u)),{enumerable:!0,configurable:!0,isTracked:!0,get:o,set:u}}eP.registerCoreLibrary("Ember",g.default);class ej{constructor(e,t){this._get=e,this._set=t,S.add(this)}get(e){return this._get.call(e)}set(e,t,i){this._set.call(e,i)}}},34118:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(86981),n=i(75093),r=i(99798),a=i(27797);class o extends a.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"session",[n.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #a=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();queryParams={filter:{refreshModel:!0}};beforeModel(e){let t,i=e.intent.url;if(("/"===i||"/latest"===i||"/categories"===i)&&!e.targetName.includes("discovery.top")&&this.currentUser?.get("user_option.should_be_redirected_to_top")){this.currentUser?.get("user_option.should_be_redirected_to_top",!1);let e=this.currentUser?.get("user_option.redirected_to_top.period")||"all";this.router.replaceWith("discovery.top",{queryParams:{period:e}})}else i&&(t=i.match(/top\/(.*)$/))&&this.site.periods.includes(t[1])&&this.router.replaceWith("discovery.top",{queryParams:{period:t[1]}})}clearPin(e){e.clearPin()}static #l=(()=>dt7948.n(this.prototype,"clearPin",[s.action]))();refresh(){(0,r.resetCachedTopicList)(this.session),super.refresh()}triggerRefresh(){this.refresh()}static #d=(()=>dt7948.n(this.prototype,"triggerRefresh",[s.action]))()}},34119:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=(0,i(94447).default)("archive")},34169:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(53285),n=i(54187);let r=(0,s.default)("group",n.ARCHIVE_FILTER)},34208:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(75093),r=i(38069),a=i(70508),o=i(32045),l=i(1519);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();get groups(){return this.site.whispers_allowed_groups_names}get title(){return this.groups?.length>0?(0,a.i18n)("post.whisper_groups",{groupNames:this.groups.join(", ")}):(0,a.i18n)("post.whisper")}static #i=(()=>(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:"Tpv8dI2E",block:'[[[1,"\\n "],[10,0],[14,0,"post-info whisper"],[15,"title",[30,0,["title"]]],[12],[1,"\\n "],[1,[28,[32,0],["far-eye-slash"],null]],[1,"\\n "],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/meta-data/whisper-indicator.js",scope:()=>[r.default],isStrictMode:!0}),this))()}},34303:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(75370),n=i(74230),r=i(32045),a=i(1519),o=i(69522);let l=(0,s.default)((0,r.setComponentTemplate)((0,a.createTemplateFactory)({id:"aoAa9aw1",block:'[[[8,[32,0],null,[["@reviewable"],[[30,1,["reviewable"]]]],null]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/review-show.js",scope:()=>[n.default],isStrictMode:!0}),(0,o.default)(void 0,void 0)))},34311:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(46447);class n extends s.default{model(){return this.modelFor("user")}setupController(e,t){e.reset(),e.setProperties({model:t,oldEmail:e.new?"":t.email,newEmail:e.new?"":t.email})}resetController(e,t){t&&e.set("new",void 0)}}},34334:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function s(e){return e>1&&e<5&&1!=~~(e/10)}function n(e,t,i,n){var r=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":if(t||n)return r+(s(e)?"sekundy":"sekund");return r+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":if(t||n)return r+(s(e)?"minuty":"minut");return r+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":if(t||n)return r+(s(e)?"hodiny":"hodin");return r+"hodinami";case"d":return t||n?"den":"dnem";case"dd":if(t||n)return r+(s(e)?"dny":"dní");return r+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":if(t||n)return r+(s(e)?"měsíce":"měsíců");return r+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":if(t||n)return r+(s(e)?"roky":"let");return r+"lety"}}return e.defineLocale("cs",{months:{standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},34403:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(96791),r=i(86981),a=i(32045),o=i(1519);class l extends s.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 #i=(()=>(0,a.setComponentTemplate)((0,o.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:()=>[n.on],isStrictMode:!0}),this))()}},34435:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(63272),n=i(91035);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,n.relativeAge)(new Date(e))}},34472:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(31075);let n={data:new Map,store(e,t){this.data.set(e,t)},getAndRemove(e,t){if(this.data.has(e)){let t=s.Promise.resolve(this.data.get(e));return this.data.delete(e),t}return t?new s.Promise(function(e,i){let s=t();s&&s.then?s.then(t=>e(t)).catch(e=>i(e)):e(s)}):s.Promise.resolve(null)},get(e){return this.data.get(e)},remove(e){this.data.delete(e)},reset(){this.data=new Map}}},34521:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(15117);class n{router;emberRouter;routerJsState;constructor(e,t,i){this.emberRouter=e,this.router=t,this.routerJsState=i}isActiveIntent(e,t,i){let n=this.routerJsState;if(!this.router.isActiveIntent(e,t,void 0,n))return!1;if(void 0!==i&&Object.keys(i).length>0){let r=Object.assign({},i);return this.emberRouter._prepareQueryParams(e,t,r),(0,s.shallowEqual)(r,n.queryParams)}return!0}}},34543:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(73326),r=i(96791),a=i(63538),o=i(70508),l=i(32045),u=i(1519);class d extends s.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,o.i18n)("filters.new.replies_with_count",{count:this.args.newRepliesCount}):(0,o.i18n)("filters.new.replies")}get topicsButtonLabel(){return this.args.newTopicsCount>0?(0,o.i18n)("filters.new.topics_with_count",{count:this.args.newTopicsCount}):(0,o.i18n)("filters.new.topics")}get staticLabel(){if(!this.args.noStaticLabel&&(!(this.args.newTopicsCount>0)||!(this.args.newRepliesCount>0)))if(this.args.newTopicsCount>0)return this.topicsButtonLabel;else return 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:()=>[a.default,r.on,n.fn,o.i18n],isStrictMode:!0}),this))()}},34582:(e,t,i)=>{"use strict";i.r(t),i.d(t,{normalizeEmberEventHandling:()=>o});var s=i(68204),n=i(32045),r=i(86981),a=i(82731);function o(e){(function(){s.EventDispatcher.reopen({events:{}})})(),function(e){let t={...l};if(e.customEvents)for(let[i,s]of Object.entries(e.customEvents))t[i]=s;let i={};for(let[e,s]of Object.entries(t))i[s]=e;r.default.reopen.call(n.default,{_trigger(e){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n{let i=e.trigger.call(e,d,n,t);return!1===i&&(t.preventDefault(),t.stopPropagation()),i};s.addEventListener(r,a),i.push({event:r,listener:a})}}(this,i)},willDestroyElement(){(function(e){let t=u.get(e);if(t?.length>0){let{element:i}=e;if(i)for(let{event:e,listener:s}of t)i.removeEventListener(e,s);u.delete(e)}})(this),this._super(...arguments)}})}(e),e.instanceInitializer({name:"rewire-action-modifier",initialize:e=>(function(e){let t=e.lookup("renderer:-dom"),i=t._runtimeResolver.lookupModifier;t._runtimeResolver.lookupModifier=(e,t)=>"action"===e?a.actionModifier:i(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,d=Symbol("INTERNAL")},34584:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(20133),n=i(32045),r=i(1519),a=i(69522);let o=(0,n.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:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,"group-notifications-tracking:GroupNotificationsTracking"))},34600:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},34680:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(70568),n=i(57079),r=i(38069),a=i(70508),o=i(32045),l=i(1519),u=i(69522);let d=(0,o.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:()=>[s.LinkTo,r.default,a.i18n,n.or],isStrictMode:!0}),(0,u.default)(void 0,"back-button"))},34686:(e,t,i)=>{"use strict";i.r(t),i.d(t,{setupComposerPosition:()=>r});var s=i(24813),n=i(77982);function r(e){let t=document.documentElement;function i(t){(0,n.applyBehaviorTransformer)("composer-position:editor-touch-move",()=>{let i=e.scrollHeight<=e.clientHeight,s=window.getSelection();i&&""===s.toString()&&(t.preventDefault(),t.stopPropagation())})}return(t.classList.contains("mobile-device")||t.classList.contains("ipados-device"))&&(window.addEventListener("scroll",a),a(),e.addEventListener("touchmove",i)),()=>{(t.classList.contains("mobile-device")||t.classList.contains("ipados-device"))&&(window.removeEventListener("scroll",a),e.removeEventListener("touchmove",i))}}function a(){(0,n.applyBehaviorTransformer)("composer-position:correct-scroll-position",()=>{(0,s.later)(()=>{let e=document.querySelector("#reply-control").getBoundingClientRect();if(e.top<-1){let t=window.scrollY+e.top;window.scrollTo({top:t,behavior:"instant"})}},150)})}},34696:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(50890),n=i(86981),r=i(75093);class a extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();newTagGroup(){this.router.transitionTo("tagGroups.new")}static #i=(()=>dt7948.n(this.prototype,"newTagGroup",[n.action]))()}},34710:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{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]}}},34769:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>U});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(96848),u=i(24813),d=i(75093),c=i(7953),p=i(52495),h=i(57079),m=i(13355),g=i(85448),f=i(53329),_=i(63538),y=i(10458),b=i(26599),w=i(27e3),k=i(33186),T=i(87367),S=i(16356),C=i(25839),A=i(14086),D=i(14051),M=i(97908),x=i(39668),E=i(67722),L=i(67698),P=i(70508),F=i(98819),I=i(32045),N=i(1519);let j=["favorites","smileys_&_emotion"],O=(e,t)=>e.tonable&&1!==t?`:${e.name}:t${t}:`:`:${e.name}:`,R=(e,t)=>e.tonable&&1!==t?(0,L.emojiUrlFor)(`${e.name}:t${t}`):(0,L.emojiUrlFor)(e.name);class U extends s.default{static #e=(()=>dt7948.g(this.prototype,"emojiStore",[d.service]))();#l1=(()=>void dt7948.i(this,"emojiStore"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[d.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"site",[d.service]))();#_=(()=>void dt7948.i(this,"site"))();static #a=(()=>dt7948.g(this.prototype,"isFiltering",[n.tracked],function(){return!1}))();#l0=(()=>void dt7948.i(this,"isFiltering"))();static #l=(()=>dt7948.g(this.prototype,"filteredEmojis",[n.tracked],function(){return null}))();#l3=(()=>void dt7948.i(this,"filteredEmojis"))();static #d=(()=>dt7948.g(this.prototype,"scrollObserverEnabled",[n.tracked],function(){return!0}))();#l2=(()=>void dt7948.i(this,"scrollObserverEnabled"))();static #p=(()=>dt7948.g(this.prototype,"scrollDirection",[n.tracked],function(){return"up"}))();#ai=(()=>void dt7948.i(this,"scrollDirection"))();static #m=(()=>dt7948.g(this.prototype,"emojis",[n.tracked],function(){return null}))();#l8=(()=>void dt7948.i(this,"emojis"))();static #f=(()=>dt7948.g(this.prototype,"visibleSections",[n.tracked],function(){return j}))();#l4=(()=>void dt7948.i(this,"visibleSections"))();static #y=(()=>dt7948.g(this.prototype,"lastVisibleSection",[n.tracked],function(){return"favorites"}))();#l7=(()=>void dt7948.i(this,"lastVisibleSection"))();static #v=(()=>dt7948.g(this.prototype,"term",[n.tracked],function(){return this.args.term}))();#l9=(()=>void dt7948.i(this,"term"))();prevYPosition=0;scrollableNode;setupSectionsNavScroll=(()=>(0,c.modifier)(e=>((0,C.disableBodyScroll)(e),()=>{(0,C.enableBodyScroll)(e)})))();scrollListener=(()=>(0,c.modifier)(e=>(this.scrollableNode=e,(0,C.disableBodyScroll)(e),e.addEventListener("scroll",this._handleScroll),()=>{this.scrollableNode=null,e.removeEventListener("scroll",this._handleScroll),(0,C.enableBodyScroll)(e)})))();addVisibleSections(e){this.visibleSections=(0,x.makeArray)(this.visibleSections).concat((0,x.makeArray)(e)).uniq()}get sections(){return!this.loading&&this.emojiStore.list?Object.keys(this.emojiStore.list):[]}get groups(){return{...{favorites:this.emojiStore.favoritesForContext(this.args.context).filter(e=>!this.site.denied_emojis?.includes(e)).map(e=>({name:e,group:"favorites",url:(0,L.emojiUrlFor)(e)}))},...this.emojiStore.list}}registerFilterInput(e){this.filterInput=e}static #k=(()=>dt7948.n(this.prototype,"registerFilterInput",[o.action]))();clearFavorites(){this.emojiStore.resetContext(this.args.context)}static #S=(()=>dt7948.n(this.prototype,"clearFavorites",[o.action]))();trapKeyDownEvents(e){"ArrowUp"===e.key&&e.stopPropagation(),"ArrowDown"===e.key&&e.target===this.filterInput&&(e.stopPropagation(),e.preventDefault(),this.scrollableNode.querySelector('.emoji[tabindex="0"]')?.focus())}static #A=(()=>dt7948.n(this.prototype,"trapKeyDownEvents",[o.action]))();didInputFilter(e){if(this.isFiltering=!0,!e?.length){(0,u.cancel)(this.debouncedFilterHandler),this.visibleSections=j,this.filteredEmojis=null,this.isFiltering=!1;return}this.debouncedFilterHandler=(0,A.default)(this,this.debouncedDidInputFilter,e,M.INPUT_DELAY)}static #M=(()=>dt7948.n(this.prototype,"didInputFilter",[o.action]))();focusFilter(e){e?.focus({preventScroll:!0})}static #E=(()=>dt7948.n(this.prototype,"focusFilter",[o.action]))();debouncedDidInputFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.toLowerCase(),(0,E.default)().then(t=>{let i=(0,p.emojiSearch)(e,{exclude:this.site.denied_emojis,searchAliases:t}).slice(0,50);this.filteredEmojis=i.map(e=>({name:e,url:(0,L.emojiUrlFor)(e)})),this.isFiltering=!1,(0,u.schedule)("afterRender",()=>{this.scrollableNode&&(this.scrollableNode.scrollTop=0)})})}onSectionsKeyDown(e){"Enter"===e.key?this.didSelectEmoji(e):this.didNavigateSection(e)}static #P=(()=>dt7948.n(this.prototype,"onSectionsKeyDown",[o.action]))();didNavigateSection(e){let t=e=>[...e.querySelectorAll(".emoji")],i=e=>{t(e)[0].focus()},s=e.target.closest(".emoji-picker__section"),n=()=>{this.filterInput?.focus()},r=()=>[...document.querySelectorAll(".emoji-picker__section:not(.hidden) .emoji")];if("ArrowRight"===e.key){e.preventDefault();let t=e.target.nextElementSibling;if(t)t.focus();else{let e=s.nextElementSibling;e&&i(e)}}if("ArrowLeft"===e.key){e.preventDefault();let i=e.target.previousElementSibling;if(i)i.focus();else{let e=s.previousElementSibling;e?(e=>{let i=t(e);return i[i.length-1].focus()})(e):n()}}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=r().filter(t=>t.offsetTop>e.target.offsetTop).findBy("offsetLeft",e.target.offsetLeft);if(t)t.focus();else{let e=s.nextElementSibling;e&&i(e)}}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=r().reverse().filter(t=>t.offsetTopdt7948.n(this.prototype,"didNavigateSection",[o.action]))();async didSelectEmoji(e){if(e.target.classList.contains("emoji")&&("click"===e.type||"Enter"===e.key)){e.preventDefault(),e.stopPropagation();let t=e.target.dataset.emoji,i=e.target.dataset.tonable,s=this.emojiStore.diversity;i&&s>1&&(t=`${t}:t${s}`),this.emojiStore.trackEmojiForContext(t,this.args.context),this.args.didSelectEmoji?.(t),await this.args.close?.()}}static #j=(()=>dt7948.n(this.prototype,"didSelectEmoji",[o.action]))();didRequestSection(e){this.term="",this.didInputFilter(null),this.scrollObserverEnabled=!1,this.addVisibleSections(this._getSectionsUpTo(e)),this.lastVisibleSection=e,this.scrollableNode&&this.capabilities.isIOS&&(this.scrollableNode.style.overflow="hidden"),(0,u.next)(()=>{(0,u.schedule)("afterRender",()=>{document.querySelector(`.emoji-picker__section[data-section="${e}"]`).scrollIntoView({block:"nearest"}),this.scrollableNode&&this.capabilities.isIOS&&(this.scrollableNode.style.overflow="scroll"),this.scrollObserverEnabled=!0})})}static #R=(()=>dt7948.n(this.prototype,"didRequestSection",[o.action]))();async loadEmojis(){if(this.emojiStore.list)return void this.didInputFilter(this.term);this.loading=!0;try{this.emojiStore.list=await (0,T.ajax)("/emojis.json"),this.didInputFilter(this.term)}catch(e){(0,S.popupAjaxError)(e)}finally{this.loading=!1}}static #B=(()=>dt7948.n(this.prototype,"loadEmojis",[o.action]))();_handleScroll(e){if(!this.scrollObserverEnabled)return;this._setScrollDirection(e.target);let t=[...document.querySelectorAll(".emoji-picker__section")].filter(t=>this._isSectionVisibleInPicker(t,e.target));if(t?.length){let e;e="up"===this.scrollDirection||this.prevYPosition<50?t.firstObject:t.lastObject,this.lastVisibleSection=e.dataset.section,this.addVisibleSections(t.map(e=>e.dataset.section)),document.querySelector(".emoji-picker__section-btn.active")?.scrollIntoView({block:"nearest",inline:"start"})}}static #H=(()=>dt7948.n(this.prototype,"_handleScroll",[D.bind]))();_setScrollDirection(e){e.scrollTop>this.prevYPosition?this.scrollDirection="down":this.scrollDirection="up",this.prevYPosition=e.scrollTop}_isSectionVisibleInPicker(e,t){let{bottom:i,height:s,top:n}=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n<=r.top?r.top-n<=s:i-r.bottom<=s}_getSectionsUpTo(e){let t=[];for(let i of document.querySelectorAll(".emoji-picker__section")){let s=i.dataset.section;if(t.push(i.dataset.section),s===e)break}return t}static #z=(()=>(0,I.setComponentTemplate)((0,N.createTemplateFactory)({id:"mLREVZ6e",block:'[[[1,"\\n"],[1," "],[11,0],[16,0,[28,[32,0],["emoji-picker"],null]],[17,1],[4,[32,1],[[30,0,["loadEmojis"]]],null],[4,[32,1],[[52,[30,2],[30,2],[28,[32,2],null,null]]],null],[4,[32,3],["keydown",[30,0,["trapKeyDownEvents"]]],null],[12],[1,"\\n "],[10,0],[14,0,"emoji-picker__filter-container"],[12],[1,"\\n "],[8,[32,4],null,[["@name","@outletArgs"],["emoji-picker-filter-container",[28,[32,5],null,[["term","focusFilter","registerFilterInput","didInputFilter","context","close"],[[30,0,["term"]],[30,0,["focusFilter"]],[30,0,["registerFilterInput"]],[30,0,["didInputFilter"]],[30,3],[30,4]]]]]],[["default"],[[[[1,"\\n "],[8,[32,6],[[16,"placeholder",[28,[32,7],["chat.emoji_picker.search_placeholder"],null]],[4,[32,1],[[30,0,["focusFilter"]]],null],[4,[32,1],[[30,0,["registerFilterInput"]]],null]],[["@value","@filterAction","@icons","@containerClass"],[[30,0,["term"]],[28,[32,8],[[30,0,["didInputFilter"]]],null],[28,[32,9],null,[["right"],["magnifying-glass"]]],"emoji-picker__filter"]],null],[1,"\\n\\n "],[8,[32,10],null,null,null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1," "],[8,[32,11],[[24,0,"btn-transparent emoji-picker__close-btn"]],[["@icon","@action"],["xmark",[30,4]]],null],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "],[13],[1,"\\n\\n "],[10,0],[14,0,"emoji-picker__content"],[12],[1,"\\n "],[11,0],[24,0,"emoji-picker__sections-nav"],[4,[30,0,["setupSectionsNavScroll"]],null,null],[12],[1,"\\n"],[42,[28,[31,2],[[30,0,["groups"]]],null],null,[[[41,[30,5,["length"]],[[[1," "],[8,[32,11],[[16,0,[28,[32,0],["btn-flat","emoji-picker__section-btn",[52,[28,[32,12],[[30,0,["lastVisibleSection"]],[30,6]],null],"active"]],null]],[24,"tabindex","-1"],[16,"data-section",[30,6]]],[["@action"],[[28,[32,13],[[30,0,["didRequestSection"]],[30,6]],null]]],[["default"],[[[[1,"\\n"],[41,[28,[32,12],[[30,6],"favorites"],null],[[[1," "],[1,[28,[32,14],[":star:"],null]],[1,"\\n"]],[]],[[[1," "],[10,"img"],[14,"width","18"],[14,"height","18"],[14,0,"emoji"],[15,"src",[28,[32,15],[[28,[32,16],[[30,5],"0"],null],[30,0,["emojiStore","diversity"]]],null]],[12],[13],[1,"\\n"]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],null]],[5,6]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,0,["emojiStore","list"]],[[[1," "],[11,0],[24,0,"emoji-picker__scrollable-content"],[4,[30,0,["scrollListener"]],null,null],[12],[1,"\\n "],[11,0],[24,0,"emoji-picker__sections"],[24,"role","button"],[4,[32,3],["click",[30,0,["didSelectEmoji"]]],null],[4,[32,3],["keydown",[30,0,["onSectionsKeyDown"]]],null],[12],[1,"\\n"],[41,[30,0,["term","length"]],[[[1," "],[10,0],[14,0,"emoji-picker__section filtered"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["filteredEmojis"]]],null]],null],null,[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,15],[[30,7],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","0"],[15,"data-emoji",[30,7,["name"]]],[15,"data-tonable",[52,[30,7,["tonable"]],"true"]],[15,"alt",[30,7,["name"]]],[15,"title",[28,[32,17],[[30,7],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[7]],[[[41,[30,0,["isFiltering"]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner medium"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,2],[14,0,"emoji-picker__no-results"],[12],[1,"\\n "],[1,[28,[32,7],["chat.emoji_picker.no_results"],null]],[1,"\\n "],[1,[28,[32,14],[":crying_cat_face:"],null]],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]],[1," "],[13],[1,"\\n"]],[]],[[[42,[28,[31,2],[[30,0,["groups"]]],null],null,[[[41,[30,8],[[[1," "],[10,0],[15,0,[28,[32,0],["emoji-picker__section",[52,[28,[32,18],[[30,0,["filteredEmojis"]],null],null],"hidden"]],null]],[15,"data-section",[30,9]],[14,"role","region"],[15,"aria-label",[28,[32,7],[[28,[32,19],["chat.emoji_picker.",[30,9]],null]],[["translatedFallback"],[[30,9]]]]],[12],[1,"\\n "],[10,0],[14,0,"emoji-picker__section-title-container"],[12],[1,"\\n "],[10,"h2"],[14,0,"emoji-picker__section-title"],[12],[1,"\\n "],[1,[28,[32,7],[[28,[32,19],["chat.emoji_picker.",[30,9]],null]],[["translatedFallback"],[[30,9]]]]],[1,"\\n "],[13],[1,"\\n"],[41,[28,[32,12],[[30,9],"favorites"],null],[[[1," "],[8,[32,11],[[24,0,"btn-transparent"]],[["@icon","@action"],["trash-can",[30,0,["clearFavorites"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"emoji-picker__section-emojis"],[12],[1,"\\n"],[44,[[28,[32,16],[[30,8],"0"],null]],[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,15],[[30,10],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","0"],[15,"data-emoji",[30,10,["name"]]],[15,"data-tonable",[52,[30,10,["tonable"]],"true"]],[15,"alt",[30,10,["name"]]],[15,"title",[28,[32,17],[[30,10],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[10]]],[1,"\\n"],[41,[28,[32,20],[[30,0,["visibleSections"]],[30,9]],null],[[[42,[28,[31,3],[[28,[31,3],[[30,8]],null]],null],null,[[[41,[28,[32,21],[[30,12],0],null],[[[1," "],[10,"img"],[14,"width","32"],[14,"height","32"],[14,0,"emoji"],[15,"src",[28,[32,15],[[30,11],[30,0,["emojiStore","diversity"]]],null]],[14,"tabindex","-1"],[15,"data-emoji",[30,11,["name"]]],[15,"data-tonable",[52,[30,11,["tonable"]],"true"]],[15,"alt",[30,11,["name"]]],[15,"title",[28,[32,17],[[30,11],[30,0,["emojiStore","diversity"]]],null]],[14,"loading","lazy"],[12],[13],[1,"\\n"]],[]],null]],[11,12]],null]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[8,9]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n "],[10,0],[14,0,"spinner medium"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@didInsert","@context","@close","emojis","section","emoji","emojis","section","emoji","emoji","index"],false,["if","each","-each-in","-track-array","let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/emoji-picker/content.js",scope:()=>[_.default,l.default,b.default,a.on,f.default,y.default,g.default,P.i18n,k.default,r.hash,F.default,m.default,h.eq,r.fn,w.default,R,o.get,O,h.notEq,r.concat,h.includes,h.gt],isStrictMode:!0}),this))()}},34778:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(96848),r=i(95112),a=i(14051),o=i(32045),l=i(1519);class u extends s.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",[a.bind]))();static #i=(()=>(0,o.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:()=>[n.default,r.default],isStrictMode:!0}),this))()}},34790:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(26592),n=i.n(s),r=i(61154);let a={initialize(e){r.default.init(n(),e),r.default.bindEvents()},teardown(){r.default.teardown()}}},34875:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(86981),n=i(75093),r=i(85024),a=i(14013),o=i(8760),l=i(29931),u=i(87542),d=i(18649),c=i(1714);let p=dt7948.c(class extends l.default{static #e=(()=>dt7948.g(this.prototype,"tagUtils",[n.service]))();#s2=(()=>void dt7948.i(this,"tagUtils"))();blockedTags=null;excludeSynonyms=!1;excludeHasSynonyms=!1;init(){super.init(...arguments),this.setProperties({blockedTags:this.blockedTags||[],termMatchesForbidden:!1,termMatchErrorMessage:null})}modifyComponentForRow(e,t){return this.getValue(t)!==this.selectKit.filter||t.count?c.default:d.default}get canCreateTag(){return this.allowCreate&&this.site.can_create_tag}static #i=(()=>dt7948.n(this.prototype,"canCreateTag",[(0,s.computed)("site.can_create_tag","allowCreate")]))();get maximumTagCount(){return this.unlimitedTagCount?null:parseInt(this.options.limit||this.options.maximum||this.siteSettings.max_tags_per_topic,10)}static #n=(()=>dt7948.n(this.prototype,"maximumTagCount",[(0,s.computed)("siteSettings.max_tags_per_topic","unlimitedTagCount")]))();get value(){return(0,o.makeArray)(this.tags).uniq()}static #a=(()=>dt7948.n(this.prototype,"value",[(0,s.computed)("tags.[]")]))();get content(){return(0,o.makeArray)(this.tags).uniq().map(e=>this.defaultItem(e,e))}static #l=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("tags.[]")]))();_onChange(e,t){this.onChange?this.onChange(e,t):this.set("tags",e)}static #d=(()=>dt7948.n(this.prototype,"_onChange",[s.action]))();validateCreate(e,t){return this.tagUtils.validateCreate(e,t,this.selectKit.options.maximum,e=>this.addError(e),this.termMatchesForbidden,e=>this.getValue(e),this.value)}createContentFromInput(e){return this.tagUtils.createContentFromInput(e)}search(e){let t=(0,o.makeArray)(this.tags).filter(Boolean),i={q:e,limit:this.siteSettings.max_tag_search_results,categoryId:this.categoryId};return(t.length||this.blockedTags.length)&&(i.selected_tags=t.concat(this.blockedTags).uniq().slice(0,100)),this.everyTag||(i.filterForInput=!0),this.excludeSynonyms&&(i.excludeSynonyms=!0),this.excludeHasSynonyms&&(i.excludeHasSynonyms=!0),this.tagUtils.searchTags("/tags/filter/search",i,this._transformJson)}_transformJson(e){if(this.isDestroyed||this.isDestroying)return[];let t=e.results;return this.setProperties({termMatchesForbidden:!!e.forbidden,termMatchErrorMessage:e.forbidden_message}),this.blockedTags&&(t=t.filter(e=>!this.blockedTags.includes(e.id))),this.siteSettings.tags_sort_alphabetically&&(t=t.sort((e,t)=>e.id>t.id)),t.uniqBy("id")}static #p=(()=>dt7948.n(this.prototype,"_transformJson",[a.bind]))()},[(0,u.pluginApiIdentifiers)("tag-chooser"),(0,u.selectKitOptions)({filterable:!0,filterPlaceholder:"tagging.choose_for_topic",limit:null,allowAny:"canCreateTag",maximum:"maximumTagCount"}),(0,r.attributeBindings)("categoryId"),(0,r.classNames)("tag-chooser")])},34893:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(57079),n=i(38069),r=i(91379),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"i78O0Th2",block:'[[[1,"\\n "],[1,[28,[32,0],["tag"],null]],[1,"\\n "],[1,[28,[32,1],[[28,[32,2],[[30,1,["id"]],[30,1]],null]],[["tagName"],["span"]]]],[1,"\\n"]],["@result"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/type/tag.js",scope:()=>[n.default,r.default,s.or],isStrictMode:!0}),(0,l.default)(void 0,"tag:Tag"))},34902:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{CompileTimeCompilationContextImpl:()=>er,DEFAULT_CAPABILITIES:()=>e_,EMPTY_BLOCKS:()=>E,MINIMAL_CAPABILITIES:()=>ey,StdLib:()=>M,WrappedBuilder:()=>eb,compilable:()=>eg,compileStatements:()=>ef,compileStd:()=>ei,debugCompiler:()=>s,invokeStaticBlock:()=>$,invokeStaticBlockWithStack:()=>V,meta:()=>H,programCompilationContext:()=>ea,templateCacheCounters:()=>ew,templateCompilationContext:()=>eo,templateFactory:()=>ek});var n=i(85070),r=i(73523),a=i(15958),o=i(19721),l=i(77061);function u(e){return t=>{if(!function(e){return Array.isArray(e)&&2===e.length}(t))return!1;let i=t[0];return i===o.SexpOpcodes.GetStrictKeyword||i===o.SexpOpcodes.GetLexicalSymbol||i===e}}Array(r.Op.Size).fill(null),Array(r.Op.Size).fill(null);let d=u(o.SexpOpcodes.GetFreeAsComponentHead),c=u(o.SexpOpcodes.GetFreeAsModifierHead),p=u(o.SexpOpcodes.GetFreeAsHelperHead),h=u(o.SexpOpcodes.GetFreeAsComponentOrHelperHead);function m(e){return e}function g(e,t,i,s,r){let{upvars:a}=m(i),o=(0,n.unwrap)(a[e[1]]),l=t.lookupBuiltInHelper(o);return s.helper(l,o)}let f={Modifier:1003,Component:1004,Helper:1005,ComponentOrHelper:1007,OptionalComponentOrHelper:1008,Local:1010,TemplateLocal:1011},_={Label:1e3,StartLabels:1001,StopLabels:1002,Start:1e3},y={Label:1,IsStrictMode:2,DebugSymbols:3,Block:4,StdLib:5,NonSmallInt:6,SymbolTable:7,Layout:8};function b(e){return{type:y.Label,value:e}}function w(){return{type:y.IsStrictMode,value:void 0}}function k(e){return{type:y.StdLib,value:e}}function T(e){return{type:y.SymbolTable,value:e}}function S(e){return{type:y.Layout,value:e}}class C{labels=(()=>(0,n.dict)())();targets=[];label(e,t){this.labels[e]=t}target(e,t){this.targets.push({at:e,target:t})}patch(e){let{targets:t,labels:i}=this;for(let{at:s,target:r}of t){let t=i[r]-s;(0,n.assert)(-1===e.getbyaddr(s),"Expected heap to contain a placeholder, but it did not"),e.setbyaddr(s,t)}}}function A(e,t,i,s,r){if(function(e){return e<_.Start}(r[0])){let[i,...s]=r;e.push(t,i,...s)}else switch(r[0]){case _.Label:return e.label(r[1]);case _.StartLabels:return e.startLabels();case _.StopLabels:return e.stopLabels();case f.Component:return function(e,t,i,s){let[,r,a]=s;if((0,n.assert)(d(r),"Attempted to resolve a component with incorrect opcode"),r[0]===o.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:s}=i,o=(0,n.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];a(t.component(o,(0,n.expect)(s,"BUG: expected owner when resolving component definition")))}else{let{upvars:s,owner:o}=m(i),l=(0,n.unwrap)(s[r[1]]),u=e.lookupComponent(l,o);a(t.resolvedComponent(u,l))}}(i,t,s,r);case f.Modifier:return function(e,t,i,s){let[,r,a]=s;(0,n.assert)(c(r),"Attempted to resolve a modifier with incorrect opcode");let l=r[0];if(l===o.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e}=i,s=(0,n.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];a(t.modifier(s))}else if(l===o.SexpOpcodes.GetStrictKeyword){let{upvars:s}=m(i),o=(0,n.unwrap)(s[r[1]]),l=e.lookupBuiltInModifier(o);a(t.modifier(l,o))}else{let{upvars:s,owner:o}=m(i),l=(0,n.unwrap)(s[r[1]]),u=e.lookupModifier(l,o);a(t.modifier(u,l))}}(i,t,s,r);case f.Helper:return function(e,t,i,s){let[,r,a]=s;(0,n.assert)(p(r),"Attempted to resolve a helper with incorrect opcode");let l=r[0];if(l===o.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e}=i,s=(0,n.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];a(t.helper(s))}else if(l===o.SexpOpcodes.GetStrictKeyword)a(g(r,e,i,t,"helper"));else{let{upvars:s,owner:o}=m(i),l=(0,n.unwrap)(s[r[1]]),u=e.lookupHelper(l,o);a(t.helper(u,l))}}(i,t,s,r);case f.ComponentOrHelper:return function(e,t,i,s){let[,r,{ifComponent:a,ifHelper:l}]=s;(0,n.assert)(h(r),"Attempted to resolve a component or helper with incorrect opcode");let u=r[0];if(u===o.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:s}=i,o=(0,n.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]],u=t.component(o,(0,n.expect)(s,"BUG: expected owner when resolving component definition"),!0);if(null!==u)return void a(u);let d=t.helper(o,null,!0);l((0,n.expect)(d,"BUG: helper must exist"))}else if(u===o.SexpOpcodes.GetStrictKeyword)l(g(r,e,i,t,"component or helper"));else{let{upvars:s,owner:o}=m(i),u=(0,n.unwrap)(s[r[1]]),d=e.lookupComponent(u,o);if(null!==d)a(t.resolvedComponent(d,u));else{let i=e.lookupHelper(u,o);l(t.helper(i,u))}}}(i,t,s,r);case f.OptionalComponentOrHelper:return function(e,t,i,s){let[,r,{ifComponent:a,ifHelper:l,ifValue:u}]=s;(0,n.assert)(h(r),"Attempted to resolve an optional component or helper with incorrect opcode");let d=r[0];if(d===o.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:s}=i,o=(0,n.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];if("function"!=typeof o&&("object"!=typeof o||null===o))return void u(t.value(o));let d=t.component(o,(0,n.expect)(s,"BUG: expected owner when resolving component definition"),!0);if(null!==d)return void a(d);let c=t.helper(o,null,!0);if(null!==c)return void l(c);u(t.value(o))}else if(d===o.SexpOpcodes.GetStrictKeyword)l(g(r,e,i,t,"value"));else{let{upvars:s,owner:o}=m(i),u=(0,n.unwrap)(s[r[1]]),d=e.lookupComponent(u,o);if(null!==d)return void a(t.resolvedComponent(d,u));let c=e.lookupHelper(u,o);null!==c&&l(t.helper(c,u))}}(i,t,s,r);case f.Local:{let e=r[1],t=(0,n.expect)(s.upvars,"BUG: attempted to resolve value but no upvars found")[e];(0,r[2])(t,s.moduleName);break}case f.TemplateLocal:{let[,e,i]=r,a=(0,n.expect)(s.scopeValues,"BUG: Attempted to get a template local, but template does not have any")[e];i(t.value(a));break}default:throw Error(`Unexpected high level opcode ${r[0]}`)}}class D{labelsStack=(()=>new n.Stack)();encoder=(()=>new a.InstructionEncoderImpl([]))();errors=[];handle;constructor(e,t,i){this.heap=e,this.meta=t,this.stdlib=i,this.handle=e.malloc()}error(e){this.encoder.encode(r.Op.Primitive,0),this.errors.push(e)}commit(e){let t=this.handle;return this.heap.pushMachine(r.MachineOp.Return),this.heap.finishMalloc(t,e),(0,n.isPresentArray)(this.errors)?{errors:this.errors,handle:t}:t}push(e,t){let{heap:i}=this,s=t|((0,r.isMachineOp)(t)?r.MACHINE_MASK:0)|(arguments.length<=2?0:arguments.length-2)<=0;t--){let i=(0,n.unwrap)(s[t]);e(_.Label,i.label),e(r.Op.Pop,1),i.callback(),0!==t&&e(r.MachineOp.Jump,b("END"))}e(_.Label,"END"),e(_.StopLabels),e(r.Op.Exit)}function G(e,t,i){e(_.StartLabels),e(r.MachineOp.PushFrame),e(r.MachineOp.ReturnTo,b("ENDINITIAL"));let s=t();e(r.Op.Enter,s),i(),e(_.Label,"FINALLY"),e(r.Op.Exit),e(r.MachineOp.Return),e(_.Label,"ENDINITIAL"),e(r.MachineOp.PopFrame),e(_.StopLabels)}function J(e,t,i,s){return G(e,t,()=>{e(r.Op.JumpUnless,b("ELSE")),i(),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"ELSE"),void 0!==s&&s()})}function Q(e,t,i,s,a,o){let{compilable:u,capabilities:d,handle:c}=t,p=i?[i,[]]:null,h=Array.isArray(o)||null===o?L(o):o;u?(e(r.Op.PushComponentDefinition,c),function(e,t){let{capabilities:i,layout:s,elementBlock:a,positional:o,named:u,blocks:d}=t,{symbolTable:c}=s;if(c.hasEval||(0,l.hasCapability)(i,r.InternalComponentCapabilities.prepareArgs))return Z(e,{capabilities:i,elementBlock:a,positional:o,named:u,atNames:!0,blocks:d,layout:s});e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame);let{symbols:p}=c,h=[],m=[],g=[],f=d.names;if(null!==a){let t=p.indexOf("&attrs");-1!==t&&(z(e,a),h.push(t))}for(let t of f){let i=p.indexOf(`&${t}`);-1!==i&&(z(e,d.get(t)),h.push(i))}if((0,l.hasCapability)(i,r.InternalComponentCapabilities.createArgs)){let t=Y(e,o)<<4;t|=8;let i=n.EMPTY_STRING_ARRAY;if(null!==u){i=u[0];let t=u[1];for(let s=0;s0)),e(r.Op.SetVariable,0),(0,n.reverse)(m)))-1===t?e(r.Op.Pop,1):e(r.Op.SetVariable,t+1);for(let t of(null!==o&&e(r.Op.Pop,o.length),(0,n.reverse)(h)))e(r.Op.SetBlock,t+1);e(r.Op.Constant,S(s)),e(r.Op.CompileBlock),e(r.MachineOp.InvokeVirtual),e(r.Op.DidRenderLayout,r.$s0),e(r.MachineOp.PopFrame),e(r.Op.PopScope),(0,l.hasCapability)(i,r.InternalComponentCapabilities.dynamicScope)&&e(r.Op.PopDynamicScope),e(r.Op.CommitComponentTransaction),e(r.Op.Load,r.$s0)}(e,{capabilities:d,layout:u,elementBlock:p,positional:s,named:a,blocks:h})):(e(r.Op.PushComponentDefinition,c),Z(e,{capabilities:d,elementBlock:p,positional:s,named:a,atNames:!0,blocks:h}))}function X(e,t,i,s,n,a,o,l){let u=i?[i,[]]:null,d=Array.isArray(a)||null===a?L(a):a;G(e,()=>(U(e,t),e(r.Op.Dup,r.$sp,0),2),()=>{e(r.Op.JumpUnless,b("ELSE")),l?e(r.Op.ResolveCurriedComponent):e(r.Op.ResolveDynamicComponent,w()),e(r.Op.PushDynamicComponentInstance),Z(e,{capabilities:!0,elementBlock:u,positional:s,named:n,atNames:o,blocks:d}),e(_.Label,"ELSE")})}function Z(e,t){let{capabilities:i,elementBlock:s,positional:a,named:o,atNames:u,blocks:d,layout:c}=t,p=!!d,h=!0===i||(0,l.hasCapability)(i,r.InternalComponentCapabilities.prepareArgs)||!(!o||0===o[0].length),m=d.with("attrs",s);e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame),function(e,t,i,s,a){let o=s.names;for(let t of o)z(e,s.get(t));let l=Y(e,t)<<4;a&&(l|=8),s&&(l|=7);let u=n.EMPTY_ARRAY;if(i){u=i[0];let t=i[1];for(let i=0;i{c?(e(r.Op.PushSymbolTable,T(c.symbolTable)),e(r.Op.Constant,S(c)),e(r.Op.CompileBlock)):e(r.Op.GetComponentLayout,r.$s0),e(r.Op.PopulateLayout,r.$s0)}),e(r.Op.Load,r.$s0)}function ee(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;e(r.Op.BeginComponentTransaction,r.$s0),e(r.Op.PushDynamicScope),e(r.Op.CreateComponent,0|t,r.$s0),n&&n(),e(r.Op.RegisterComponentDestructor,r.$s0),e(r.Op.GetComponentSelf,r.$s0),e(r.Op.VirtualRootScope,r.$s0),e(r.Op.SetVariable,0),e(r.Op.SetupForEval,r.$s0),s&&e(r.Op.SetNamedVariables,r.$s0),i&&e(r.Op.SetBlocks,r.$s0),e(r.Op.Pop,1),e(r.Op.InvokeComponentLayout,r.$s0),e(r.Op.DidRenderLayout,r.$s0),e(r.MachineOp.PopFrame),e(r.Op.PopScope),e(r.Op.PopDynamicScope),e(r.Op.CommitComponentTransaction)}function et(e,t,i){K(e,()=>e(r.Op.ContentType),s=>{s(r.ContentType.String,()=>{t?(e(r.Op.AssertSame),e(r.Op.AppendHTML)):e(r.Op.AppendText)}),"number"==typeof i?(s(r.ContentType.Component,()=>{e(r.Op.ResolveCurriedComponent),e(r.Op.PushDynamicComponentInstance),function(e){e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame),e(r.Op.PushEmptyArgs),e(r.Op.PrepareArgs,r.$s0),ee(e,!1,!1,!0,()=>{e(r.Op.GetComponentLayout,r.$s0),e(r.Op.PopulateLayout,r.$s0)}),e(r.Op.Load,r.$s0)}(e)}),s(r.ContentType.Helper,()=>{N(e,null,null,()=>{e(r.MachineOp.InvokeStatic,i)})})):(s(r.ContentType.Component,()=>{e(r.Op.AppendText)}),s(r.ContentType.Helper,()=>{e(r.Op.AppendText)})),s(r.ContentType.SafeString,()=>{e(r.Op.AssertSame),e(r.Op.AppendSafeHTML)}),s(r.ContentType.Fragment,()=>{e(r.Op.AssertSame),e(r.Op.AppendDocumentFragment)}),s(r.ContentType.Node,()=>{e(r.Op.AssertSame),e(r.Op.AppendNode)})})}function ei(e){let t=en(e,e=>(function(e){e(r.Op.Main,r.$s0),ee(e,!1,!1,!0)})(e)),i=en(e,e=>et(e,!0,null)),s=en(e,e=>et(e,!1,null));return new M(t,en(e,e=>et(e,!0,i)),en(e,e=>et(e,!1,s)),i,s)}O.add(o.SexpOpcodes.Concat,(e,t)=>{let[,i]=t;for(let t of i)U(e,t);e(r.Op.Concat,i.length)}),O.add(o.SexpOpcodes.Call,(e,t)=>{let[,i,s,n]=t;p(i)?e(f.Helper,i,t=>{I(e,t,s,n)}):(U(e,i),N(e,s,n))}),O.add(o.SexpOpcodes.Curry,(e,t)=>{let[,i,s,n,a]=t;!function(e,t,i,s,n){e(r.MachineOp.PushFrame),B(e,s,n,!1),e(r.Op.CaptureArgs),U(e,i),e(r.Op.Curry,t,w()),e(r.MachineOp.PopFrame),e(r.Op.Fetch,r.$v0)}(e,s,i,n,a)}),O.add(o.SexpOpcodes.GetSymbol,(e,t)=>{let[,i,s]=t;e(r.Op.GetVariable,i),R(e,s)}),O.add(o.SexpOpcodes.GetLexicalSymbol,(e,t)=>{let[,i,s]=t;e(f.TemplateLocal,i,t=>{e(r.Op.ConstantReference,t),R(e,s)})}),O.add(o.SexpOpcodes.GetStrictKeyword,(e,t)=>{e(f.Local,t[1],i=>{e(f.Helper,t,t=>{I(e,t,null,null)})})}),O.add(o.SexpOpcodes.GetFreeAsHelperHead,(e,t)=>{e(f.Local,t[1],i=>{e(f.Helper,t,t=>{I(e,t,null,null)})})}),O.add(o.SexpOpcodes.Undefined,e=>P(e,void 0)),O.add(o.SexpOpcodes.HasBlock,(e,t)=>{let[,i]=t;U(e,i),e(r.Op.HasBlock)}),O.add(o.SexpOpcodes.HasBlockParams,(e,t)=>{let[,i]=t;U(e,i),e(r.Op.SpreadBlock),e(r.Op.CompileBlock),e(r.Op.HasBlockParams)}),O.add(o.SexpOpcodes.IfInline,(e,t)=>{let[,i,s,n]=t;U(e,n),U(e,s),U(e,i),e(r.Op.IfInline)}),O.add(o.SexpOpcodes.Not,(e,t)=>{let[,i]=t;U(e,i),e(r.Op.Not)}),O.add(o.SexpOpcodes.GetDynamicVar,(e,t)=>{let[,i]=t;U(e,i),e(r.Op.GetDynamicVar)}),O.add(o.SexpOpcodes.Log,(e,t)=>{let[,i]=t;e(r.MachineOp.PushFrame),B(e,i,null,!1),e(r.Op.Log),e(r.MachineOp.PopFrame),e(r.Op.Fetch,r.$v0)});let es={evalSymbols:null,upvars:null,moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0};function en(e,t){let{constants:i,heap:s,resolver:n}=e,r=new D(s,es);t(function(){for(var e=arguments.length,t=Array(e),s=0;s`@${e}`),e[1]]}el.add(o.SexpOpcodes.Comment,(e,t)=>e(r.Op.Comment,t[1])),el.add(o.SexpOpcodes.CloseElement,e=>e(r.Op.CloseElement)),el.add(o.SexpOpcodes.FlushElement,e=>e(r.Op.FlushElement)),el.add(o.SexpOpcodes.Modifier,(e,t)=>{let[,i,s,n]=t;c(i)?e(f.Modifier,i,t=>{e(r.MachineOp.PushFrame),B(e,s,n,!1),e(r.Op.Modifier,t),e(r.MachineOp.PopFrame)}):(U(e,i),e(r.MachineOp.PushFrame),B(e,s,n,!1),e(r.Op.Dup,r.$fp,1),e(r.Op.DynamicModifier),e(r.MachineOp.PopFrame))}),el.add(o.SexpOpcodes.StaticAttr,(e,t)=>{let[,i,s,n]=t;e(r.Op.StaticAttr,ep(i),s,n??null)}),el.add(o.SexpOpcodes.StaticComponentAttr,(e,t)=>{let[,i,s,n]=t;e(r.Op.StaticComponentAttr,ep(i),s,n??null)}),el.add(o.SexpOpcodes.DynamicAttr,(e,t)=>{let[,i,s,n]=t;U(e,s),e(r.Op.DynamicAttr,ep(i),!1,n??null)}),el.add(o.SexpOpcodes.TrustingDynamicAttr,(e,t)=>{let[,i,s,n]=t;U(e,s),e(r.Op.DynamicAttr,ep(i),!0,n??null)}),el.add(o.SexpOpcodes.ComponentAttr,(e,t)=>{let[,i,s,n]=t;U(e,s),e(r.Op.ComponentAttr,ep(i),!1,n??null)}),el.add(o.SexpOpcodes.TrustingComponentAttr,(e,t)=>{let[,i,s,n]=t;U(e,s),e(r.Op.ComponentAttr,ep(i),!0,n??null)}),el.add(o.SexpOpcodes.OpenElement,(e,t)=>{let[,i]=t;e(r.Op.OpenElement,ec(i))}),el.add(o.SexpOpcodes.OpenElementWithSplat,(e,t)=>{let[,i]=t;e(r.Op.PutComponentOperations),e(r.Op.OpenElement,ec(i))}),el.add(o.SexpOpcodes.Component,(e,t)=>{let[,i,s,n,r]=t;d(i)?e(f.Component,i,t=>{Q(e,t,s,null,n,r)}):X(e,i,s,null,n,r,!0,!0)}),el.add(o.SexpOpcodes.Yield,(e,t)=>{let[,i,s]=t;return q(e,i,s)}),el.add(o.SexpOpcodes.AttrSplat,(e,t)=>{let[,i]=t;return q(e,i,null)}),el.add(o.SexpOpcodes.Debugger,(e,t)=>{let[,i]=t;return e(r.Op.Debugger,{type:y.DebugSymbols,value:void 0},i)}),el.add(o.SexpOpcodes.Append,(e,t)=>{let[,i]=t;if(Array.isArray(i))if(h(i))e(f.OptionalComponentOrHelper,i,{ifComponent(t){Q(e,t,null,null,null,null)},ifHelper(t){e(r.MachineOp.PushFrame),I(e,t,null,null),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)},ifValue(t){e(r.MachineOp.PushFrame),e(r.Op.ConstantReference,t),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)}});else if(i[0]===o.SexpOpcodes.Call){let[,t,s,n]=i;h(t)?e(f.ComponentOrHelper,t,{ifComponent(t){Q(e,t,null,s,eh(n),null)},ifHelper(t){e(r.MachineOp.PushFrame),I(e,t,s,n),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)}}):K(e,()=>{U(e,t),e(r.Op.DynamicContentType)},t=>{t(r.ContentType.Component,()=>{e(r.Op.ResolveCurriedComponent),e(r.Op.PushDynamicComponentInstance),Z(e,{capabilities:!0,elementBlock:null,positional:s,named:n,atNames:!1,blocks:L(null)})}),t(r.ContentType.Helper,()=>{N(e,s,n,()=>{e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append"))})})})}else e(r.MachineOp.PushFrame),U(e,i),e(r.MachineOp.InvokeStatic,k("cautious-append")),e(r.MachineOp.PopFrame);else e(r.Op.Text,null==i?"":String(i))}),el.add(o.SexpOpcodes.TrustingAppend,(e,t)=>{let[,i]=t;Array.isArray(i)?(e(r.MachineOp.PushFrame),U(e,i),e(r.MachineOp.InvokeStatic,k("trusting-append")),e(r.MachineOp.PopFrame)):e(r.Op.Text,null==i?"":String(i))}),el.add(o.SexpOpcodes.Block,(e,t)=>{let[,i,s,n,r]=t;d(i)?e(f.Component,i,t=>{Q(e,t,null,s,eh(n),r)}):X(e,i,null,s,n,r,!1,!1)}),el.add(o.SexpOpcodes.InElement,(e,t)=>{let[,i,s,n,a]=t;J(e,()=>(U(e,s),void 0===a?P(e,void 0):U(e,a),U(e,n),e(r.Op.Dup,r.$sp,0),4),()=>{e(r.Op.PushRemoteElement),$(e,i),e(r.Op.PopRemoteElement)})}),el.add(o.SexpOpcodes.If,(e,t)=>{let[,i,s,n]=t;return J(e,()=>(U(e,i),e(r.Op.ToBoolean),1),()=>{$(e,s)},n?()=>{$(e,n)}:void 0)}),el.add(o.SexpOpcodes.Each,(e,t)=>{let[,i,s,n,a]=t;return G(e,()=>(s?U(e,s):P(e,null),U(e,i),2),()=>{e(r.Op.EnterList,b("BODY"),b("ELSE")),e(r.MachineOp.PushFrame),e(r.Op.Dup,r.$fp,1),e(r.MachineOp.ReturnTo,b("ITER")),e(_.Label,"ITER"),e(r.Op.Iterate,b("BREAK")),e(_.Label,"BODY"),V(e,n,2),e(r.Op.Pop,2),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"BREAK"),e(r.MachineOp.PopFrame),e(r.Op.ExitList),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"ELSE"),a&&$(e,a)})}),el.add(o.SexpOpcodes.Let,(e,t)=>{let[,i,s]=t;V(e,s,Y(e,i))}),el.add(o.SexpOpcodes.WithDynamicVars,(e,t)=>{let[,i,s]=t;if(i){let[t,n]=i;Y(e,n),function(e,t,i){e(r.Op.PushDynamicScope),e(r.Op.BindDynamicScope,t),i(),e(r.Op.PopDynamicScope)}(e,t,()=>{$(e,s)})}else $(e,s)}),el.add(o.SexpOpcodes.InvokeComponent,(e,t)=>{let[,i,s,n,r]=t;d(i)?e(f.Component,i,t=>{Q(e,t,null,s,eh(n),r)}):X(e,i,null,s,n,r,!1,!1)});class em{compiled=null;constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"plain block";this.statements=e,this.meta=t,this.symbolTable=i,this.moduleName=s}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled;e.compiled=-1;let{statements:i,meta:s}=e,n=ef(i,s,t);return e.compiled=n,n}(this,e)}}function eg(e,t){let[i,s,n]=e.block;return new em(i,H(e),{symbols:s,hasEval:n},t)}function ef(e,t,i){let s=eo(i,t),{encoder:n,program:{constants:r,resolver:a}}=s;function o(){for(var e=arguments.length,i=Array(e),s=0;s{t(r.Op.GetComponentTagName,r.$s0),t(r.Op.PrimitiveReference),t(r.Op.Dup,r.$sp,0)}),t(r.Op.JumpUnless,b("BODY")),t(r.Op.Fetch,r.$s1),t(r.Op.PutComponentOperations),t(r.Op.OpenDynamicElement),t(r.Op.DidCreateElement,r.$s0),q(t,s,null),t(r.Op.FlushElement),t(_.Label,"BODY"),$(t,[i.block[0],[]]),t(r.Op.Fetch,r.$s1),t(r.Op.JumpUnless,b("END")),t(r.Op.CloseElement),t(_.Label,"END"),t(r.Op.Load,r.$s1),t(_.StopLabels);let d=a.encoder.commit(n.size);return"number"!=typeof d||(this.compiled=d),d}}let ev=0,ew={cacheHit:0,cacheMiss:0};function ek(e){let{id:t,moduleName:i,block:s,scope:n,isStrictMode:r}=e,a,o=t||"client-"+ev++,l=null,u=new WeakMap,d=e=>{if(void 0===a&&(a=JSON.parse(s)),void 0===e)return null===l?(ew.cacheMiss++,l=new eT({id:o,block:a,moduleName:i,owner:null,scope:n,isStrictMode:r})):ew.cacheHit++,l;let t=u.get(e);return void 0===t?(ew.cacheMiss++,t=new eT({id:o,block:a,moduleName:i,owner:e,scope:n,isStrictMode:r}),u.set(e,t)):ew.cacheHit++,t};return d.__id=o,d.__meta={moduleName:i},d}class eT{result="ok";layout=null;wrappedLayout=null;constructor(e){this.parsedLayout=e}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=eg((0,n.assign)({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new eb((0,n.assign)({},this.parsedLayout),this.moduleName)}}},34942:(e,t,i)=>{var s=i(19860),n=i(86820);function r(e,t,i,s){if(s){var r=s[t];if(n(r))r.unhook&&r.unhook(e,t,i);else if("attributes"===t)for(var a in r)e.removeAttribute(a);else if("style"===t)for(var o in r)e.style[o]="";else"string"==typeof r?e[t]="":e[t]=null}}function a(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function(e,t,i){for(var o in t){var l=t[o];void 0===l?r(e,o,l,i):n(l)?(r(e,o,l,i),l.hook&&l.hook(e,o,i?i[o]:void 0)):s(l)?function(e,t,i,n,r){var o=i?i[n]:void 0;if("attributes"===n){for(var l in r){var u=r[l];void 0===u?e.removeAttribute(l):e.setAttribute(l,u)}return}if(o&&s(o)&&a(o)!==a(r)){e[n]=r;return}s(e[n])||(e[n]={});var d="style"===n?"":void 0;for(var c in r){var p=r[c];e[n][c]=void 0===p?d:p}}(e,0,i,o,l):e[o]=l}}},34979:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(7155),r=i(73326),a=i(57079),o=i(13355),l=i(70508),u=i(34875),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"tags",[n.tracked],function(){return[]}))();#n_=(()=>void dt7948.i(this,"tags"))();static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"I1ziNUM9",block:'[[[1,"\\n "],[10,2],[12],[1,[28,[32,0],["topics.bulk.choose_append_tags"],null]],[13],[1,"\\n\\n "],[10,2],[12],[8,[32,1],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n "],[8,[32,2],[[24,0,"topic-bulk-actions__append-tags"]],[["@action","@disabled","@label"],[[28,[32,3],[[30,2],[28,[32,4],null,[["type","tags"],["append_tags",[30,0,["tags"]]]]]],null],[28,[32,5],[[30,0,["tags"]]],null],"topics.bulk.append_tags"]],null],[1,"\\n "]],["@categoryId","@performAndRefresh"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-actions/append-tags.js",scope:()=>[l.i18n,u.default,o.default,r.fn,r.hash,a.not],isStrictMode:!0}),this))()}},35039:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(7155),r=i(32045),a=i(86981),o=i(57079),l=i(13355),u=i(39826),d=i(34778),c=i(8464),p=i(70508),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"rawEmail",[n.tracked],function(){return this.args.model.rawEmail||""}))();#l5=(()=>void dt7948.i(this,"rawEmail"))();static #i=(()=>dt7948.g(this.prototype,"textPart",[n.tracked],function(){return""}))();#l6=(()=>void dt7948.i(this,"textPart"))();static #n=(()=>dt7948.g(this.prototype,"htmlPart",[n.tracked],function(){return""}))();#ue=(()=>void dt7948.i(this,"htmlPart"))();static #a=(()=>dt7948.g(this.prototype,"tab",[n.tracked],function(){return"raw"}))();#ut=(()=>void dt7948.i(this,"tab"))();constructor(){super(...arguments),this.args.model.id&&this.loadRawEmail(this.args.model.id)}async loadRawEmail(e){let t=await c.default.loadRawEmail(e);this.rawEmail=t.raw_email,this.textPart=t.text_part,this.htmlPart=t.html_part}static #l=(()=>dt7948.n(this.prototype,"loadRawEmail",[a.action]))();displayRaw(){this.tab="raw"}static #d=(()=>dt7948.n(this.prototype,"displayRaw",[a.action]))();displayTextPart(){this.tab="text_part"}static #p=(()=>dt7948.n(this.prototype,"displayTextPart",[a.action]))();displayHtmlPart(){this.tab="html_part"}static #m=(()=>dt7948.n(this.prototype,"displayHtmlPart",[a.action]))();static #f=(()=>(0,r.setComponentTemplate)((0,h.createTemplateFactory)({id:"fY3pfVw8",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"incoming-email-modal"]],[["@title","@closeModal"],[[28,[32,1],["raw_email.title"],null],[30,1]]],[["body"],[[[[1,"\\n "],[10,0],[14,0,"incoming-email-tabs"],[12],[1,"\\n "],[8,[32,2],[[16,0,[52,[28,[32,3],[[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,[32,2],[[16,0,[52,[28,[32,3],[[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,[32,2],[[16,0,[52,[28,[32,3],[[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,[32,3],[[30,0,["tab"]],"raw"],null],[[[41,[30,0,["rawEmail"]],[[[1," "],[8,[32,4],null,[["@value"],[[30,0,["rawEmail"]]]],null],[1,""]],[]],[[[1," "],[1,[28,[32,1],["raw_email.not_available"],null]],[1,""]],[]]]],[]],null],[41,[28,[32,3],[[30,0,["tab"]],"text_part"],null],[[[1," "],[8,[32,4],null,[["@value"],[[30,0,["textPart"]]]],null],[1,""]],[]],null],[41,[28,[32,3],[[30,0,["tab"]],"html_part"],null],[[[1," "],[8,[32,5],[[24,0,"incoming-email-html-part"]],[["@html"],[[30,0,["htmlPart"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/raw-email.js",scope:()=>[u.default,p.i18n,l.default,o.eq,r.Textarea,d.default],isStrictMode:!0}),this))()}},35050:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SELECTORS:()=>s});let s={DEFAULT_ITEM_SELECTOR:"*:not(.spoiler):not(.spoiled) a.lightbox"}},35241:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9032),n=i(91035);function r(e){return(0,s.htmlSafe)((0,n.durationTiny)(e))}},35243:(e,t,i)=>{"use strict";i.r(t),i.d(t,{a:()=>l,d:()=>a,i:()=>u});var s=Object.defineProperty;((e,t)=>{for(var i in t)s(e,i,{get:t[i],enumerable:!0})})({},{c:()=>d,f:()=>r,g:()=>a,i:()=>u,m:()=>o,n:()=>l,p:()=>c});var n=new WeakMap;function r(e,t,i,s){return a(e.prototype,t,i,s)}function a(e,t,i,s){let r={configurable:!0,enumerable:!0,writable:!0,initializer:null};for(let n of(s&&(r.initializer=s),i))r=n(e,t,r)||r;void 0===r.initializer?Object.defineProperty(e,t,r):function(e,t,i){let s=n.get(e);s||(s=new Map,n.set(e,s)),s.set(t,i)}(e,t,r)}function o(e,t,i){let{prototype:s}=e;return l(s,t,i)}function l(e,t,i){let s={...Object.getOwnPropertyDescriptor(e,t)};for(let n of i)s=n(e,t,s)||s;void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(e):void 0,s.initializer=void 0),Object.defineProperty(e,t,s)}function u(e,t){let i=function(e,t){let i=e.prototype;for(;i;){let e=n.get(i)?.get(t);if(e)return e;i=i.prototype}}(e.constructor,t);i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(e):void 0})}function d(e,t){return t.reduce((e,t)=>t(e)||e,e)}function c(e,t){for(let[i,s,n]of t)"field"===i?function(e,t,i){let s={configurable:!0,enumerable:!0,writable:!0,initializer:()=>Object.getOwnPropertyDescriptor(e,t)?.value};for(let n of i)s=n(e,t,s)||s;s.initializer&&(s.value=s.initializer.call(e),delete s.initializer),Object.defineProperty(e,t,s)}(e,s,n):l(e,s,n);return e}},35247:(e,t,i)=>{"use strict";i.r(t),i.d(t,{a:()=>l});var s=i(57330);i(60569);var n=i(77188),r=i(34100),a=i(31847),o=i(92065);function l(e){return(0,r.F)(new d(e),u)}class u extends Function{readOnly(){return(0,r.E)(this).readOnly(),this}oneWay(){return(0,r.E)(this).oneWay(),this}meta(e){let t=(0,r.E)(this);if(0==arguments.length)return t._meta||{};t._meta=e}}class d extends r.J{altKey;constructor(e){super(),this.altKey=e}setup(e,t,i,s){super.setup(e,t,i,s),r.K.add(this)}get(e,t){let i,a=(0,s.meta)(e),o=(0,n.tagMetaFor)(e),l=(0,n.tagFor)(e,t,o);(0,n.untrack)(()=>{i=(0,r.g)(e,this.altKey)});let u=a.revisionFor(t);return void 0!==u&&(0,n.validateTag)(l,u)||((0,n.updateTag)(l,(0,r.L)(e,this.altKey,o,a)),a.setRevisionFor(t,(0,n.valueForTag)(l)),(0,r.M)(a,t,i)),(0,n.consumeTag)(l),i}set(e,t,i){return(0,a.s)(e,this.altKey,i)}readOnly(){this.set=c}oneWay(){this.set=p}}function c(e,t){throw Error(`Cannot set read-only property '${t}' on object: ${(0,o.default)(e)}`)}function p(e,t,i){return(0,r.d)(e,t,null),(0,a.s)(e,t,i)}},35290:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(14051),n=i(642),r=i(47872);class a extends r.default{permissionName(e){return e?e[0]===n.default.FULL?"public":e[0]===n.default.READONLY?"visible":"private":"public"}static #e=(()=>dt7948.n(this.prototype,"permissionName",[(0,s.default)("permissions")]))()}},35367:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(9032),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();get shouldShow(){return this.args.category?.read_only_banner&&this.args.readOnly&&this.currentUser}static #i=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"EVXd1s4J",block:'[[[1,"\\n"],[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,[32,0],[[30,1,["read_only_banner"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@category"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-read-only-banner.js",scope:()=>[r.htmlSafe],isStrictMode:!0}),this))()}},35373:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s={after:"message-bus",initialize(){moment.tz.link(["Asia/Kolkata|IST","Asia/Seoul|KST","Asia/Tokyo|JST"]),delete moment.tz._links["us_pacific-new"]}}},35422:(e,t,i)=>{"use strict";function s(e){return"automatic"===e.column.type}i.r(t),i.d(t,{default:()=>s})},35469:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{fetchUnseenMentions:()=>f,linkSeenMentions:()=>g,resetMentions:()=>h});var n=i(87367),r=i(11837),a=i(77296),o=i(35697);let l={},u={},d={},c={},p={};function h(){l={},u={},d={},c={},p={},s=null}function m(e,t,i){let n=document.createElement("a");i.group?(n.href=(0,r.default)(`/g/${t}`),n.innerText=`@${t}`,n.classList.add("mention-group"),!i.reason&&i.details&&(n.dataset.mentionableUserCount=i.details.user_count,n.dataset.maxMentions=s)):(n.href=(0,a.userPath)(t.toLowerCase()),n.innerText=`@${(0,o.formatUsername)(t)}`,n.classList.add("mention")),n.dataset.name=t,i.reason&&(n.dataset.reason=i.reason,i.details&&(n.dataset.notifiedUserCount=i.details.notified_count)),e.replaceWith(n)}function g(e,t){let i=[...e.querySelectorAll("span.mention:not(.mention-tested)")];if(0===i.length)return[];let s=i.map(e=>e.innerText.slice(1));return!function(e,t){e.forEach((e,i)=>{let s=t[i];u[s.toLowerCase()]?m(e,s,{reason:d[s]}):c[s]?m(e,s,{group:!0,details:c[s],reason:p[s]}):l[s]&&e.classList.add("mention-tested")})}(i,s),s.uniq().filter(e=>!l[e]&&e.length>=t.min_username_length)}async function f(e){let{names:t,topicId:i,allowedNames:r}=e,a=await (0,n.ajax)("/composer/mentions",{data:{names:t,topic_id:i,allowed_names:r}});return t.forEach(e=>l[e]=!0),a.users.forEach(e=>u[e]=!0),Object.entries(a.user_reasons).forEach(e=>{let[t,i]=e;return d[t]=i}),Object.entries(a.groups).forEach(e=>{let[t,i]=e;return c[t]=i}),Object.entries(a.group_reasons).forEach(e=>{let[t,i]=e;return p[t]=i}),s=a.max_users_notified_per_group_mention,a}},35520:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(27797),r=i(70508);class a extends n.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();titleToken(){return(0,r.i18n)("groups.manage.membership.title")}afterModel(e){e.get("automatic")&&this.router.replaceWith("group.manage.interaction",e)}}},35545:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(86981),n=i(75093),r=i(12465),a=i(64469),o=i(70508);let l=class extends a.default{static #e=(()=>dt7948.g(this.prototype,"modal",[n.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"navigationMenu",[n.service]))();#ui=(()=>void dt7948.i(this,"navigationMenu"))();moreSectionButtonAction(){return this.modal.show(r.default,{model:this})}static #n=(()=>dt7948.n(this.prototype,"moreSectionButtonAction",[s.action]))();get moreSectionButtonText(){return(0,o.i18n)(`sidebar.sections.community.edit_section.${this.navigationMenu.isDesktopDropdownMode?"header_dropdown":"sidebar"}`)}get moreSectionButtonIcon(){return"pencil"}}},35621:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317);i(7155);var n=i(75093),r=i(9032),a=i(18231),o=i(11837),l=i(70508),u=i(32045),d=i(1519);let c=(0,i(96900).A)(i(7155)).cached;class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.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 #i=(()=>dt7948.n(this.prototype,"targetUser",[c]))();get searchLink(){return(0,o.default)(`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`)}static #n=(()=>(0,u.setComponentTemplate)((0,d.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,a.default,r.htmlSafe],isStrictMode:!0}),this))()}},35622:(e,t,i)=>{"use strict";i.r(t),i.d(t,{POST_STREAM_DEPRECATION_OPTIONS:()=>b,addPostTransformCallback:()=>S,cloak:()=>L,default:()=>F,disableCloaking:()=>x,havePostStreamWidgetExtensions:()=>w,postTransformCallbacks:()=>T,preventCloak:()=>E,uncloak:()=>P});var s=i(41107),n=i.n(s),r=i(11651),a=i(58928),o=i(14086),l=i(63272),u=i(21530),d=i(79326),c=i(77318),p=i(16988),h=i(77296),m=i(68325),g=i(82925),f=i(88627),_=i(70508),y=i(1519);let b={since:"v3.5.0.beta1-dev",id:"discourse.post-stream-widget-overrides"},w=null;(0,l.registerDeprecationHandler)((e,t)=>{t?.id==="discourse.post-stream-widget-overrides"&&(w||(w=new Set),w.add((0,c.consolePrefix)().slice(1,-1)))});let k=null;function T(e){if(null!==k)for(let t=0;t{D={},M={}}),(0,f.createWidget)("posts-filtered-notice",{buildKey:e=>`posts-filtered-notice-${e.id}`,buildClasses:()=>["posts-filtered-notice"],html(e){let t=e.streamFilters;if(t.filter_upwards_post_id||t.mixedHiddenPosts)return[(0,r.h)("span.filtered-replies-viewing",(0,_.i18n)("post.filtered_replies.viewing_subset")),this.attach("filter-show-all",e)];if(t.replies_to_post_number){let i=e.posts.findBy("post_number",t.replies_to_post_number);return[(0,r.h)("span.filtered-replies-viewing",(0,_.i18n)("post.filtered_replies_viewing",{count:i.reply_count})),(0,r.h)("span.filtered-user-row",[(0,r.h)("span.filtered-avatar",m.avatarFor.call(this,"small",{template:i.avatar_template,username:i.username,url:i.usernameUrl})),this.attach("filter-jump-to-post",{username:i.username,postNumber:t.replies_to_post_number})]),this.attach("filter-show-all",e)]}if(t.filter&&"summary"===t.filter)return[(0,r.h)("span.filtered-replies-viewing",(0,_.i18n)("post.filtered_replies.viewing_summary")),this.attach("filter-show-all",e)];if(t.username_filters){let t=e.posts[1],i=parseInt(e.filteredPostsCount,10)-1;return[(0,r.h)("span.filtered-replies-viewing",(0,_.i18n)("post.filtered_replies.viewing_posts_by",{post_count:i})),(0,r.h)("span.filtered-avatar",m.avatarFor.call(this,"small",{template:t.avatar_template,username:t.username,url:t.usernameUrl})),this.attach("poster-name",t),this.attach("filter-show-all",e)]}return[]}}),(0,f.createWidget)("filter-jump-to-post",{tagName:"a.filtered-jump-to-post",buildKey:e=>`jump-to-post-${e.id}`,html:e=>(0,_.i18n)("post.filtered_replies.post_number",{username:e.username,post_number:e.postNumber}),click(){h.default.jumpToPost(this.attrs.postNumber)}}),(0,f.createWidget)("filter-show-all",{tagName:"button.filtered-replies-show-all",buildKey:e=>`filtered-show-all-${e.id}`,buildClasses:()=>["btn","btn-primary"],html:()=>[(0,u.iconNode)("up-down"),(0,_.i18n)("post.filtered_replies.show_all")],click(){this.sendWidgetAction("cancelFilter"),this.appEvents.trigger("post-stream:filter-show-all",this.attrs.streamFilters)}});let F=(0,f.createWidget)("post-stream",{tagName:"div.post-stream.widget-post-stream",html(e){let t,i,s=(e.posts||[]).toArray(),n=s.length,r=n>0?s[n-1].post_number:0,a=[],o=e.gaps&&e.gaps.before?e.gaps.before:{},l=e.gaps&&e.gaps.after?e.gaps.after:{},u=this.site.mobileView;for(let c=0;cthis.siteSettings.show_time_gap_days&&a.push(new g.default(this,"div.time-gap",(0,y.createTemplateFactory)({id:"UXtHUJAZ",block:'[[[8,[39,0],null,[["@daysSince"],[[30,1,["daysSince"]]]],null]],["@data"],false,["post/time-gap"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-stream.js",isStrictMode:!1}),{daysSince:e}))}i=b,f.height=M[h.id],f.cloaked=D[h.id],T(f),f.isSmallAction?a.push(this.attach("post-small-action",f,{model:h})):(f.showReadIndicator=e.showReadIndicator,a.push(this.attach("post",f,{model:h})));let w=l[h.id];w&&a.push(this.attach("post-gap",{pos:"after",postId:h.id,gap:w},{model:h})),c!==n-1&&r<=e.highestPostNumber&&e.lastReadPostNumber===h.post_number&&a.push(this.attach("topic-post-visited-line",{post_number:h.post_number})),t=h}return e.streamFilters&&Object.keys(e.streamFilters).length&&(Object.keys(o).length>0||Object.keys(l).length>0)&&a.push(this.attach("posts-filtered-notice",{posts:s,streamFilters:e.streamFilters,filteredPostsCount:e.filteredPostsCount})),a}})},35684:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(24813),n=i(85024),r=i(80293),a=i(90592);let o=dt7948.c(class extends a.default{didInsertElement(){super.didInsertElement(...arguments),(0,s.schedule)("afterRender",()=>{let e=document.querySelector(`#${this.selectKit.uniqueID} #${this.id}`);if(!e)return;e.style.borderBottom="2px solid transparent";let t=(0,r.escapeExpression)(this.name);e.style.borderBottomColor=`#${t}`})}},[(0,n.classNames)("select-kit-selected-color")])},35697:(e,t,i)=>{"use strict";let s,n;i.r(t),i.d(t,{allowOnlyNumericInput:()=>eg,areCookiesEnabled:()=>ee,arrayToTable:()=>ep,avatarImg:()=>w,avatarUrl:()=>b,caretPosition:()=>O,caretRowCol:()=>j,cleanNullQueryParams:()=>ef,clipboardCopy:()=>eo,clipboardCopyAsync:()=>el,clipboardHelpers:()=>W,defaultHomepage:()=>B,determinePostReplaceSelection:()=>H,emailValid:()=>E,escapeExpression:()=>S,extractDomainFromUrl:()=>P,fillMissingDates:()=>Z,findTableRegex:()=>eh,formatUsername:()=>A,getCaretPosition:()=>ec,getElement:()=>e_,getRawAvatarSize:()=>y,getRawSize:()=>_,highlightPost:()=>x,hostnameValid:()=>L,inCodeBlock:()=>er,initializeDefaultHomepage:()=>U,isAppleDevice:()=>q,isNumeric:()=>X,isPrimaryTab:()=>ey,isiPad:()=>z,mergeSortedLists:()=>ed,optionalRequire:()=>eb,postRNWebviewMessage:()=>ei,postUrl:()=>M,prefersReducedMotion:()=>et,replaceFormatter:()=>D,safariHacksDisabled:()=>$,selectedNode:()=>I,selectedRange:()=>N,selectedText:()=>F,setCaretPosition:()=>R,setDefaultHomepage:()=>Y,slugify:()=>G,splitString:()=>T,tinyAvatar:()=>k,toAsciiPrintable:()=>K,toNumber:()=>Q,tokenRange:()=>em,translateModKey:()=>ea,translateSize:()=>f,unicodeSlugify:()=>J});var r=i(41107),a=i.n(r),o=i(41500),l=i(63272),u=i(21710),d=i(11837),c=i(67698),p=i(31408),h=i(6106),m=i(70508);function g(e){return function(){return(0,l.default)(`${e} should be imported from discourse/lib/avatar-utils instead of discourse/lib/utilities`,{id:"discourse.avatar-utils"}),o[e](...arguments)}}let f=g("translateSize"),_=g("getRawSize"),y=g("getRawAvatarSize"),b=g("avatarUrl"),w=g("avatarImg"),k=g("tinyAvatar");function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"string"==typeof e?e.split(t).filter(Boolean):[]}function S(e){return e?(0,u.default)(e):""}let C=e=>e;function A(e){return C(e||"")}function D(e){C=e}function M(e,t,i){let s=(0,d.default)("/t/");return e?s+=e+"/":s+="topic/",s+=t,i>1&&(s+="/"+i),s}function x(e){let t=document.querySelector(`#post_${e}`);if(!t)return;let i=t.querySelector(".topic-body, .small-action-desc");i&&e>1&&(i.setAttribute("tabindex","0"),i.focus())}function E(e){return/^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/.test(e)}function L(e){return e&&/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/.test(e)}function P(e){return(e=e.includes("://")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}function F(){let e=window.getSelection();if(e.isCollapsed)return"";let t=document.createElement("div");for(let i=0;i{e.replaceWith(e.dataset.oneboxSrc)}),t.querySelectorAll("div.video-placeholder-container[data-video-src]").forEach(e=>{let t=e.dataset.videoBase62Sha1;t?e.replaceWith(`![|video](upload://${t})`):e.replaceWith(`![|video](${e.dataset.videoSrc})`)}),(0,p.default)(t.outerHTML)}function I(){return N()?.commonAncestorContainer}function N(){let e=window.getSelection();if(e.rangeCount>0)return e.getRangeAt(0)}function j(e){let t=O(e),i=e.value.slice(0,t).split(` `),s=i.length,n=t-i.splice(0,s-1).reduce(function(e,t){return e+t.length+1},0);return{rowNum:s,colNum:n}}function O(e){return e?.selectionStart||0}function R(e,t){let i;if("string"==typeof e&&(e=document.querySelector(e)),e.setSelectionRange){e.focus(),e.setSelectionRange(t,t);return}if(e.createTextRange)return(i=e.createTextRange()).collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select()}function U(e){let t=document.querySelector("meta[name='discourse_current_homepage']");Y(t?.getAttribute("content")||e.top_menu.split("|")[0].split(",")[0])}function B(){return s}function Y(e){s=e}function H(e){let{selection:t,needle:i,replacement:s}=e,n=s.end-s.start-(i.end-i.start);if(t.end<=i.start)return{start:t.start,end:t.end};if(t.start<=i.start)if(t.endArray.isArray(e=e||[])?e:Array.from(e);function W(e,t){let i=e.clipboardData||e.originalEvent.clipboardData||e.delegatedEvent.originalEvent.clipboardData,s=V(i.types),n=V(i.files);s.includes("Files")&&0===n.length&&(n=V(i.items).filter(e=>"file"===e.kind));let r=n&&t.canUpload&&s.includes("Files"),a=r&&n.filter(e=>e.type.match("^image/"))[0]&&!(e=>1===e.files.length&&"image/png"===e.files[0].type&&e.types.every(e=>["text/html","Files"].includes(e))&&/2&&void 0!==arguments[2]?arguments[2]:0;if(s>50)return null;let n=t.find(e=>(e.content??"").includes(i));return n?.children?e(n.children,i,s+1):n}(n,i)?.type;return en.includes(r)}function ea(e){let{isApple:t}=h.capabilities;return e=t?e.toLowerCase().replace("shift","⇧").replace("meta","⌘").replace("alt","⌥").replace("ctrl","⌃").replace(/\+/g,""):e.toLowerCase().replace("shift",(0,m.i18n)("shortcut_modifier_key.shift")).replace("ctrl",(0,m.i18n)("shortcut_modifier_key.ctrl")).replace("meta",(0,m.i18n)("shortcut_modifier_key.ctrl")).replace("alt",(0,m.i18n)("shortcut_modifier_key.alt"))}function eo(e){return window.navigator.clipboard?window.navigator.clipboard.writeText(e).catch(function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")}):eu(e)?Promise.resolve():Promise.reject()}function el(e){return window.navigator.clipboard?window.ClipboardItem?window.navigator.clipboard.write([new window.ClipboardItem({"text/plain":e()})]).catch(function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")}):e().then(e=>e.text().then(e=>eo(e))):e().then(e=>{e.text().then(e=>eu(e))})}function eu(e){let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let i=window.getSelection(),s=window.document.createRange();i.removeAllRanges(),s.selectNode(t),i.addRange(s);let n=!1;try{n=window.document.execCommand("copy")}catch(e){console.log("error",e)}return i.removeAllRanges(),window.document.body.removeChild(t),n}function ed(e,t,i){let s=0,n=0,r=[];for(;s2&&void 0!==arguments[2]?arguments[2]:"col",s=arguments.length>3?arguments[3]:void 0,n="";n+="|",n+=t.join(" | "),n+=`| |`;let r={left:":--",center:":-:",right:"--:"};return n+=t.map((e,t)=>r[String(s?.[t])]||"---").join(" | "),n+=`| `,e.forEach(function(e){n+="|",n+=t.map(function(t,s){return String(e[`${i}${s}`]||"").replace(/\r?\n|\r/g," ").replaceAll("|","\\|")}).join(" | ")+`| `}),n}function eh(){return/((\r?){2}|^)(^\|[^\r\n]*(\r?\n)?)+(?=(\r?\n){2}|$)/gm}function em(e,t,i){let s=[],n=!1,r=[];return e.forEach(e=>{e.type===t&&(n=!0),e.type===i&&(s.push(r),r=[],n=!1),n&&r.push(e)}),s}function eg(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!["Enter","Backspace","Tab","Delete","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(e.key))if(t&&"-"===e.key)return;else e.preventDefault()}function ef(e){for(let[t,i]of Object.entries(e))("undefined"===i||"null"===i)&&(e[t]=null);return e}function e_(e){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}function ey(){return new Promise(e=>{h.capabilities.supportsServiceWorker?(navigator.serviceWorker.addEventListener("message",t=>{e(t.data.primaryTab)}),navigator.serviceWorker.ready.then(e=>{e.active.postMessage({action:"primaryTab"})})):e(!0)})}function eb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return window.require.has(e)&&window.require(e)[t]}},35743:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,i=e%100;if(0===e)return e+"-ев";if(0===i)return e+"-ен";if(i>10&&i<20)return e+"-ти";if(1===t)return e+"-ви";if(2===t)return e+"-ри";else if(7===t||8===t)return e+"-ми";else return e+"-ти"},week:{dow:1,doy:7}})})},35833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(86981),n=i(91558),r=i(85024),a=i(80293),o=i(70508),l=i(41877);let u=dt7948.c(class extends l.default{static #e=(()=>dt7948.g(this.prototype,"i18nPrefix",[(0,n.readOnly)("selectKit.options.i18nPrefix")]))();#us=(()=>void dt7948.i(this,"i18nPrefix"))();static #i=(()=>dt7948.g(this.prototype,"i18nPostfix",[(0,n.readOnly)("selectKit.options.i18nPostfix")]))();#un=(()=>void dt7948.i(this,"i18nPostfix"))();get label(){return(0,a.escapeExpression)((0,o.i18n)(`${this._start}.title`))}static #n=(()=>dt7948.n(this.prototype,"label",[(0,s.computed)("_start")]))();get icons(){return[(0,a.escapeExpression)(this.item.icon)]}static #a=(()=>dt7948.n(this.prototype,"icons",[(0,s.computed)("item.icon")]))();get description(){return(0,a.escapeExpression)((0,o.i18n)(`${this._start}.description`))}static #l=(()=>dt7948.n(this.prototype,"description",[(0,s.computed)("_start")]))();get _start(){return`${this.i18nPrefix}.${this.rowName}${this.i18nPostfix}`}static #d=(()=>dt7948.n(this.prototype,"_start",[(0,s.computed)("i18nPrefix","i18nPostfix","rowName")]))()},[(0,r.classNames)("notifications-button-row")])},35879:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(75093),u=i(47206),d=i(13355),c=i(35039),p=i(51667),h=i(77681),m=i(43044),g=i(14667),f=i(74329),_=i(38069),y=i(85113),b=i(32045),w=i(1519);class k extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[l.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"isCollapsed",[n.tracked],function(){return!1}))();#rF=(()=>void dt7948.i(this,"isCollapsed"))();static #n=(()=>dt7948.g(this.prototype,"isLongPost",[n.tracked],function(){return!1}))();#rI=(()=>void dt7948.i(this,"isLongPost"))();static #a=(()=>dt7948.g(this.prototype,"postBodyHeight",[n.tracked],function(){return 0}))();#ur=(()=>void dt7948.i(this,"postBodyHeight"))();maxPostHeight=300;showRawEmail(e){e?.preventDefault(),this.modal.show(c.default,{model:{rawEmail:this.args.reviewable.payload.raw_email}})}static #l=(()=>dt7948.n(this.prototype,"showRawEmail",[o.action]))();toggleContent(){this.isCollapsed=!this.isCollapsed}static #d=(()=>dt7948.n(this.prototype,"toggleContent",[o.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 #p=(()=>dt7948.n(this.prototype,"setPostBodyHeight",[o.action]))();static #m=(()=>(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:"WOTc+DkA",block:'[[[1,"\\n "],[8,[32,0],null,[["@reviewable","@tagName"],[[30,1],""]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"title-text"],[12],[1,"\\n "],[1,[28,[32,1],["square-plus"],[["title"],["review.new_topic"]]]],[1,"\\n "],[1,[28,[32,2],[[30,1,["payload","title"]],[30,1]],null]],[1,"\\n "],[13],[1,"\\n "],[1,[28,[32,3],[[30,1,["category"]]],null]],[1,"\\n "],[8,[32,4],null,[["@tags"],[[30,1,["payload","tags"]]]],null],[1,"\\n"],[41,[30,1,["payload","via_email"]],[[[1," "],[11,3],[24,6,""],[24,0,"show-raw-email"],[4,[32,5],["click",[30,0,["showRawEmail"]]],null],[12],[1,"\\n "],[1,[28,[32,1],["envelope"],[["title"],["post.via_email"]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n "],[8,[32,6],null,[["@user"],[[30,1,["target_created_by"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"post-contents"],[12],[1,"\\n "],[8,[32,7],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n\\n "],[8,[32,8],[[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]]],[["@rawText","@categoryId","@topicId","@paintOneboxes","@opts","@onOffsetHeightCalculated"],[[28,[32,2],[[30,1,["payload","raw"]],[30,1]],null],[30,1,["category_id"]],[30,1,["topic_id"]],true,[28,[32,9],null,[["removeMissing"],[true]]],[30,0,["setPostBodyHeight"]]]],null],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1," "],[8,[32,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,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@reviewable","&default"],false,["if","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-queued-post.js",scope:()=>[g.default,_.default,y.default,f.default,m.default,a.on,p.default,h.default,u.default,r.hash,d.default],isStrictMode:!0}),this))()}},35933:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n}),i(86981),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);function n(e){let t=e.__container__.lookup("service:-routing");return(0,s.g)(t,"currentPath")}i(28543),i(76169),i(93892),i(90760),i(11719),i(90400),i(50890)},35952:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ADMIN_SEARCH_RESULT_TYPES:()=>f,API_KEY_SCOPE_MODES:()=>_,AUTO_GROUPS:()=>u,CATEGORY_STYLE_TYPES:()=>o,CATEGORY_TEXT_COLORS:()=>l,GROUP_SMTP_SSL_MODES:()=>d,INVITE_DESCRIPTION_MAX_LENGTH:()=>y,MAX_AUTO_MEMBERSHIP_DOMAINS_LOOKUP:()=>c,MAX_NOTIFICATIONS_LIMIT_PARAMS:()=>p,MAX_UNOPTIMIZED_CATEGORIES:()=>m,REVIEWABLE_UNKNOWN_TYPE_SOURCE:()=>g,SEARCH_PHRASE_REGEXP:()=>n,SEARCH_PRIORITIES:()=>s,SIDEBAR_SECTION:()=>a,SIDEBAR_URL:()=>r,TOPIC_VISIBILITY_REASONS:()=>h});let s={ignore:1,very_low:2,low:3,normal:0,high:4,very_high:5},n='"([^"]+)"',r={max_icon_length:40,max_name_length:80,max_value_length:1e3},a={max_title_length:30},o={square:0,icon:1,emoji:2},l=["FFFFFF","000000"],u={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"}},d={none:0,ssl_tls:1,starttls:2},c=10,p=60,h={op_flag_threshold_reached:0,op_unhidden:1,embedded_topic:2,manually_unlisted:3,manually_relisted:4,bulk_action:5,unknown:99},m=1e3,g="unknown",f=["page","setting","theme","component","report"],_=["global","read_only","granular"],y=100},35980:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>S});var s=i(73326),n=i(70568),r=i(9032),a=i(75370),o=i(76947),l=i(13355),u=i(67784),d=i(51318),c=i(41154),p=i(1158),h=i(63538),m=i(38069),g=i(44337),f=i(35241),_=i(92202),y=i(69398),b=i(70508),w=i(32045),k=i(1519),T=i(69522);let S=(0,a.default)((0,w.setComponentTemplate)((0,k.createTemplateFactory)({id:"dFrb9VBO",block:'[[[1,"\\n "],[1,[28,[32,0],["user-invites-page"],null]],[1,"\\n\\n"],[41,[30,1,["canInviteToForum"]],[[[1," "],[8,[32,1],[[16,0,[28,[32,2],["user-content",[52,[30,1,["hasLoadedInitialInvites"]],"--loaded"]],null]]],[["@id","@action"],["user-content",[30,1,["loadMore"]]]],[["default"],[[[[1,"\\n "],[10,"section"],[14,0,"user-additional-controls"],[12],[1,"\\n"],[41,[30,1,["showSearch"]],[[[1," "],[10,0],[14,0,"user-invite-search"],[12],[1,"\\n "],[10,"form"],[12],[1,"\\n "],[8,[32,3],null,[["@value","@placeholderKey"],[[30,1,["searchTerm"]],"user.invited.search"]],null],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"section"],[14,0,"user-invite-buttons"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-default invite-button"]],[["@icon","@action","@label"],["plus",[30,1,["createInvite"]],"user.invited.create"]],null],[1,"\\n"],[41,[30,1,["canBulkInvite"]],[[[41,[30,1,["siteSettings","allow_bulk_invite"]],[[[41,[30,1,["site","desktopView"]],[[[1," "],[8,[32,4],[[24,0,"btn-default"]],[["@icon","@action","@label"],["upload",[30,1,["createInviteCsv"]],"user.invited.bulk_invite.text"]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[30,1,["showBulkActionButtons"]],[[[41,[30,1,["inviteExpired"]],[[[41,[30,1,["removedAll"]],[[[1," "],[10,1],[14,0,"removed-all"],[12],[1,"\\n "],[1,[28,[32,5],["user.invited.removed_all"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,4],null,[["@icon","@action","@label"],["xmark",[30,1,["destroyAllExpired"]],"user.invited.remove_all"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,1,["invitePending"]],[[[41,[30,1,["reinvitedAll"]],[[[1," "],[10,1],[14,0,"reinvited-all"],[12],[1,"\\n "],[8,[32,4],null,[["@icon","@disabled","@label"],["check",true,"user.invited.reinvited_all"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,1,["hasEmailInvites"]],[[[1," "],[8,[32,4],[[24,0,"btn-default"]],[["@icon","@action","@label"],["arrows-rotate",[30,1,["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,1,["model","invites"]],[[[41,[30,1,["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,[32,5],["user.invited.user"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.redeemed_at"],null]],[13],[1,"\\n"],[41,[30,1,["model","can_see_invite_details"]],[[[1," "],[10,"th"],[12],[1,[28,[32,5],["user.last_seen"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.topics_entered"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.posts_read_count"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.time_read"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.days_visited"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.invited_via"],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["model","invites"]]],null]],null],null,[[[1," "],[10,"tr"],[12],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["user",[30,2,["user"]]]],[["default"],[[[[1,[28,[32,7],[[30,2,["user"]]],[["imageSize"],["tiny"]]]]],[]]]]],[1,"\\n "],[8,[32,6],null,[["@route","@model"],["user",[30,2,["user"]]]],[["default"],[[[[1,[30,2,["user","username"]]]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[32,8],[[30,2,["redeemed_at"]]],null]],[13],[1,"\\n"],[41,[30,1,["model","can_see_invite_details"]],[[[1," "],[10,"td"],[12],[1,[28,[32,8],[[30,2,["user","last_seen_at"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[32,9],[[30,2,["user","topics_entered"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[32,9],[[30,2,["user","posts_read_count"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[32,10],[[30,2,["user","time_read"]]],null]],[13],[1,"\\n "],[10,"td"],[12],[1,"\\n "],[10,1],[15,"title",[28,[32,5],["user.invited.days_visited"],null]],[12],[1,[28,[32,11],[[30,2,["user","days_visited"]]],null]],[13],[1,"\\n /\\n "],[10,1],[15,"title",[28,[32,5],["user.invited.account_age_days"],null]],[12],[1,[28,[32,11],[[30,2,["user","days_since_created"]]],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,"td"],[12],[1,[28,[32,11],[[30,2,["invite_source"]]],null]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],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,[32,5],["user.invited.invited_via"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["user.invited.sent"],null]],[13],[1,"\\n "],[10,"th"],[12],[1,[28,[32,5],["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,[31,2],[[28,[31,2],[[30,1,["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,[32,5],["user.invited.invited_via"],null]],[13],[1,"\\n"],[41,[30,3,["email"]],[[[1," "],[1,[28,[32,12],["envelope"],null]],[1,"\\n "],[1,[30,3,["email"]]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,12],["link"],null]],[1,"\\n "],[1,[28,[32,5],["user.invited.invited_via_link"],[["key","count","max"],[[30,3,["shortKey"]],[30,3,["redemption_count"]],[30,3,["max_redemptions_allowed"]]]]]],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,3,["groups"]]],null]],null],null,[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[29,["/g/",[30,4,["name"]]]]],[12],[1,[28,[32,12],["users"],null]],[1,"\\n "],[1,[30,4,["name"]]],[13],[13],[1,"\\n"]],[4]],null],[1,"\\n"],[41,[30,3,["topic"]],[[[1," "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[30,3,["topic","url"]]],[12],[1,[28,[32,12],["file"],null]],[1," "],[1,[30,3,["topic","title"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,3,["description"]],[[[1," "],[10,0],[14,0,"invite-description"],[12],[1,"\\n "],[1,[30,3,["description"]]],[1,"\\n "],[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,[32,5],["user.invited.sent"],null]],[13],[1,"\\n "],[1,[28,[32,8],[[30,3,["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,[32,5],["user.invited.expires_at"],null]],[13],[1,"\\n"],[41,[30,1,["inviteExpired"]],[[[1," "],[1,[28,[32,13],[[30,3,["expires_at"]]],null]],[1,"\\n"]],[]],[[[41,[30,3,["expired"]],[[[1," "],[1,[28,[32,5],["user.invited.expired"],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,13],[[30,3,["expires_at"]]],null]],[1,"\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n\\n"],[41,[30,3,["can_delete_invite"]],[[[1," "],[10,"td"],[14,0,"invite-actions"],[12],[1,"\\n "],[8,[32,4],[[24,0,"btn-default"]],[["@icon","@action","@title"],["pencil",[28,[32,14],[[30,1,["editInvite"]],[30,3]],null],"user.invited.edit"]],null],[1,"\\n "],[8,[32,4],[[24,0,"cancel"]],[["@icon","@action","@title"],["trash-can",[28,[32,14],[[30,1,["destroyInvite"]],[30,3]],null],[52,[30,3,["destroyed"]],"user.invited.removed","user.invited.remove"]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[1,"\\n "],[8,[32,15],null,[["@condition"],[[30,1,["invitesLoading"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"user-invite-none"],[12],[1,"\\n"],[41,[30,1,["canBulkInvite"]],[[[1," "],[1,[28,[32,11],[[28,[32,5],["user.invited.bulk_invite.none"],null]],null]],[1,"\\n"]],[]],[[[1," "],[1,[28,[32,5],["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,1,["model","error"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],["@controller","invite","invite","g"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user-invited-show.js",scope:()=>[p.default,u.default,h.default,d.default,l.default,b.i18n,n.LinkTo,c.default,g.default,_.default,f.default,r.htmlSafe,m.default,y.default,s.fn,o.default],isStrictMode:!0}),(0,T.default)(void 0,void 0)))},36e3:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(33294);function n(e,t){let{highlightTerm:i}=t;i&&i.length>2&&(0,s.default)(e,i,{defaultClassName:!0})}},36070:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r}),i(60569);var s=i(64081),n=i(75093);class r{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();constructor(e){(0,s.setOwner)(this,e)}log(e){this.siteSettings.enable_upload_debug_mode&&console.log(e)}#ua(e){if(!e)return;let t=Math.floor(e.duration/6e4),i=(e.duration%6e4/1e3).toFixed(0);this.log(`${e.name}: duration: ${t+":"+(i<10?"0":"")+i} (${e.duration}ms)`)}#uo(){return this.#ul("testing support 1"),this.#ul("testing support 2"),this.#uu("performance api support","testing support 1","testing support 2")}#ul(e){return performance.mark(e)}#uu(e,t,i){let s;try{s=performance.measure(e,t,i)}catch(s){s.message.includes("Failed to execute 'measure' on 'Performance'")&&console.warn(`Uppy performance measure failed: ${e}, ${t}, ${i}`)}return s}instrumentUploadTimings(e){this.#uo()&&(e.on("upload",(e,t)=>{t.forEach(e=>{let{id:t}=e;return this.#ul(`upload-${t}-start`)})}),e.on("create-multipart",e=>{this.#ul(`upload-${e}-create-multipart`)}),e.on("create-multipart-success",e=>{this.#ul(`upload-${e}-create-multipart-success`)}),e.on("complete-multipart",e=>{this.#ul(`upload-${e}-complete-multipart`),this.#ua(this.#uu(`upload-${e}-multipart-all-parts-complete`,`upload-${e}-create-multipart-success`,`upload-${e}-complete-multipart`))}),e.on("complete-multipart-success",e=>{this.#ul(`upload-${e}-complete-multipart-success`),this.#ua(this.#uu(`upload-${e}-multipart-total-network-exclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart`)),this.#ua(this.#uu(`upload-${e}-multipart-total-network-inclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart-success`)),this.#ua(this.#uu(`upload-${e}-multipart-complete-convert-to-upload`,`upload-${e}-complete-multipart`,`upload-${e}-complete-multipart-success`))}),e.on("upload-success",e=>{this.#ul(`upload-${e.id}-end`),this.#ua(this.#uu(`upload-${e.id}-multipart-total-inclusive-preprocessing`,`upload-${e.id}-start`,`upload-${e.id}-end`))}))}}},36100:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(7155),r=i(86981),a=i(75093),o=i(13355),l=i(63538),u=i(38069),d=i(86723),c=i(77982),p=i(70508),h=i(32045),m=i(1519);class g extends s.default{static shouldRender(e){let t=e.post.showLike||e.post.likeCount>0;return(0,c.applyValueTransformer)("like-button-render-decision",t,{post:e.post})}static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"isAnimated",[n.tracked],function(){return!1}))();#ud=(()=>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,d.default)(async()=>{this.isAnimated=!1,await this.args.buttonActions.toggleLike(),e()},400)})}static #n=(()=>dt7948.n(this.prototype,"toggleLike",[r.action]))();static #a=(()=>(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"XhAR4DZE",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","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:()=>[f,o.default,l.default],isStrictMode:!0}),this))()}class f extends s.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,p.i18n)(e,{count:this.args.post.liked?this.args.post.likeCount-1:this.args.post.likeCount})}static #e=(()=>(0,h.setComponentTemplate)((0,m.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:()=>[o.default,l.default,p.i18n,u.default],isStrictMode:!0}),this))()}},36231:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(38161),n=i(51318);class r extends n.default{_init(){navigator.userAgent.includes("Chrome")?this.set("type","text"):this.set("type","password")}static #e=(()=>dt7948.n(this.prototype,"_init",[(0,s.on)("init")]))()}},36310:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});class s{constructor(){this.updateRect()}updateRect(){let e=document.getSelection();if(this.range=e?.rangeCount&&e?.getRangeAt?.(0),this.range){if(this.range.collapsed){let e=document.createElement("span");e.textContent="​",this.range.insertNode(e),this.rect=e.getBoundingClientRect(),e.parentNode.removeChild(e)}else this.rect=this.range.getBoundingClientRect();return this.rect}}getBoundingClientRect(){return this.rect}getClientRects(){return this.range.getClientRects()}get clientWidth(){return this.rect.width}get clientHeight(){return this.rect.height}}function n(){return new s}},36394:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(75093);class n extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[s.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[s.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get isRestricted(){return this._needsRequiredFields||this._needs2fa}isAllowedRoute(e){return!!["faq","about","tos","privacy","safe-mode"].includes(e)||(this._needs2fa?"preferences.second-factor"===e:!this._needsRequiredFields||!!e.startsWith("admin")||"preferences.profile"===e)}get redirectRoute(){return this._needs2fa?"preferences.second-factor":this._needsRequiredFields?"preferences.profile":void 0}get _needs2fa(){let e="staff"===this.siteSettings.enforce_second_factor&&this.currentUser?.staff||"all"===this.siteSettings.enforce_second_factor,t=!this.currentUser||this.currentUser.is_anonymous||this.currentUser.second_factor_enabled||!this.siteSettings.enforce_second_factor_on_external_auth&&"oauth"===this.currentUser.login_method;return e&&!t}get _needsRequiredFields(){return this.currentUser?.needs_required_fields_check}}},36450:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(50890),n=i(86981),r=i(91558),a=i(16356),o=i(14051),l=i(39668);class u extends s.default{static #e=(()=>dt7948.g(this.prototype,"allowPmUsersEnabled",[(0,r.and)("model.user_option.enable_allowed_pm_users","model.user_option.allow_private_messages")]))();#uc=(()=>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,l.makeArray)(e).uniq()}static #i=(()=>dt7948.n(this.prototype,"mutedUsernames",[(0,n.computed)("model.muted_usernames")]))();get allowedPmUsernames(){let e=this.model.allowed_pm_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,l.makeArray)(e).uniq()}static #n=(()=>dt7948.n(this.prototype,"allowedPmUsernames",[(0,n.computed)("model.allowed_pm_usernames")]))();onChangeMutedUsernames(e){this.model.set("muted_usernames",e.uniq().join(","))}static #a=(()=>dt7948.n(this.prototype,"onChangeMutedUsernames",[n.action]))();onChangeAllowedPmUsernames(e){this.model.set("allowed_pm_usernames",e.uniq().join(","))}static #l=(()=>dt7948.n(this.prototype,"onChangeAllowedPmUsernames",[n.action]))();disableAllowPmUsersSetting(e){return!e}static #d=(()=>dt7948.n(this.prototype,"disableAllowPmUsersSetting",[(0,o.default)("model.user_option.allow_private_messages")]))();save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then(()=>this.set("saved",!0)).catch(a.popupAjaxError)}static #p=(()=>dt7948.n(this.prototype,"save",[n.action]))()}},36471:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(9032),r=i(11837),a=i(32045),o=i(1519);class l extends s.default{get cdnSrc(){return(0,r.getURLWithCDN)(this.args.src)}get style(){if(this.args.width&&this.args.height)return(0,n.htmlSafe)(`--aspect-ratio: ${this.args.width/this.args.height};`)}static #e=(()=>(0,a.setComponentTemplate)((0,o.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))()}},36491:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(86981),n=i(31075),r=i(87367),a=i(16356),o=i(14051),l=i(18323),u=i(63159),d=i(25217);class c extends s.default{static createFromJson(e){void 0===e.users&&(e.users=[]);let t={};e.users.forEach(function(e){t[e.id]=d.default.create(e)}),e.granted_bies=e.granted_bies??[],e.granted_bies.forEach(function(e){t[e.id]=d.default.create(e)}),void 0===e.topics&&(e.topics=[]);let i={};e.topics.forEach(function(e){i[e.id]=u.default.create(e)}),void 0===e.badges&&(e.badges=[]);let s={};l.default.createFromJson(e).forEach(function(e){s[e.get("id")]=e});let n=[];return(n=(n="user_badge"in e?[e.user_badge]:e.user_badge_info&&e.user_badge_info.user_badges||e.user_badges).map(function(e){let n=c.create(e),r=Date.parse(n.get("granted_at"));return n.set("grantedAt",r),n.set("badge",s[n.get("badge_id")]),n.get("user_id")&&n.set("user",t[n.get("user_id")]),n.get("granted_by_id")&&n.set("granted_by",t[n.get("granted_by_id")]),n.get("topic_id")&&n.set("topic",i[n.get("topic_id")]),n}),"user_badge"in e)?n[0]:(e.user_badge_info&&(n.grant_count=e.user_badge_info.grant_count,n.username=e.user_badge_info.username),n)}static findByUsername(e,t){if(!e)return n.Promise.resolve([]);let i="/user-badges/"+e+".json";return t&&t.grouped&&(i+="?grouped=true"),(0,r.ajax)(i).then(function(e){return c.createFromJson(e)})}static findByBadgeId(e,t){return t||(t={}),t.badge_id=e,(0,r.ajax)("/user_badges.json",{data:t}).then(function(e){return c.createFromJson(e)})}static grant(e,t,i){return(0,r.ajax)("/user_badges",{type:"POST",data:{username:t,badge_id:e,reason:i}}).then(function(e){return c.createFromJson(e)})}postUrl(){if(this.topic_title)return"/t/-/"+this.topic_id+"/"+this.post_number}static #e=(()=>dt7948.n(this.prototype,"postUrl",[o.default]))();revoke(){return(0,r.ajax)("/user_badges/"+this.id,{type:"DELETE"})}favorite(){return this.toggleProperty("is_favorite"),(0,r.ajax)(`/user_badges/${this.id}/toggle_favorite`,{type:"PUT"}).catch(e=>{this.toggleProperty("is_favorite"),(0,a.popupAjaxError)(e)})}}},36498:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(93317),n=i(7155),r=i(86981),a=i(75093),o=i(13355),l=i(63538),u=i(96527),d=i(32045),c=i(1519);let p="content-localization-show-original";class h extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"showingOriginal",[n.tracked],function(){return!1}))();#up=(()=>void dt7948.i(this,"showingOriginal"))();constructor(){super(...arguments),this.showingOriginal=(0,u.default)(p)}async showOriginal(){this.showingOriginal?(0,u.removeCookie)(p,{path:"/"}):(0,u.default)(p,!0,{path:"/",expires:30}),this.router.refresh()}static #n=(()=>dt7948.n(this.prototype,"showOriginal",[r.action]))();get title(){return this.showingOriginal?"translator.content_not_translated":"translator.content_translated"}static #a=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"6Zw7kv1a",block:'[[[1,"\\n "],[8,[32,0],[[16,0,[28,[32,1],["btn btn-default btn-toggle-localized-content no-text",[52,[51,[30,0,["showingOriginal"]]],"btn-active"]],null]]],[["@icon","@title","@action"],["language",[30,0,["title"]],[30,0,["showOriginal"]]]],null],[1,"\\n "]],[],false,["unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-localized-content-toggle.js",scope:()=>[o.default,l.default],isStrictMode:!0}),this))()}},36624:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(73326),n=i(70568),r=i(75370),a=i(13355),o=i(50114),l=i(32196),u=i(42573),d=i(1158),c=i(70508),p=i(53753),h=i(32045),m=i(1519),g=i(69522);let f=(0,r.default)((0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:"8unJGGcL",block:'[[[1,"\\n "],[1,[28,[32,0],["groups-new-page"],null]],[1,"\\n\\n "],[10,"section"],[12],[1,"\\n "],[10,"h1"],[12],[1,[28,[32,1],["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,[32,2],null,[["@model","@disableSave"],[[30,1,["model"]],[30,1,["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,[32,1],["admin.groups.add_owners"],null]],[13],[1,"\\n\\n "],[8,[32,3],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["owner-selector",[30,1,["splitOwnerUsernames"]],[30,1,["updateOwnerUsernames"]],[28,[32,4],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,[32,1],["groups.members.title"],null]],[13],[1,"\\n\\n "],[8,[32,3],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["member-selector",[30,1,["splitUsernames"]],[30,1,["updateUsernames"]],[28,[32,4],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,5],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n "],[8,[32,6],null,[["@model"],[[30,1,["model"]]]],null],[1,"\\n\\n "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n "],[8,[32,7],[[24,0,"btn-primary group-form-save"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,1,["save"]],[30,1,["saving"]],"admin.groups.new.create"]],null],[1,"\\n\\n "],[8,[32,8],null,[["@route"],["groups"]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],["cancel"],null]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/groups/new.js",scope:()=>[d.default,c.i18n,u.default,p.default,s.hash,l.default,o.default,a.default,n.LinkTo],isStrictMode:!0}),(0,g.default)(void 0,void 0)))},36660:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(31075),n=i(11666),r=i(50864);let a={initialize(e){let t=e.lookup("service:site-settings"),i=e.lookup("service:capabilities");if(t.composer_media_optimization_image_enabled){if(i.isIOS&&!t.composer_ios_media_optimisation_image_enabled||"undefined"==typeof OffscreenCanvas||!("createImageBitmap"in self))return;(0,n.addComposerUploadPreProcessor)(r.default,t=>{let{isMobileDevice:i}=t;return{optimizeFn:(t,i)=>e.isDestroyed||e.isDestroying?s.Promise.resolve():e.lookup("service:media-optimization-worker").optimizeImage(t,i),runParallel:!i}})}}}},36707:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(91558),n=i(85024),r=i(70508),a=i(72516),o=i(87542);let l=dt7948.c(class extends a.default{static #e=(()=>dt7948.g(this.prototype,"isHidden",[(0,s.readOnly)("category.deleted")]))();#uh=(()=>void dt7948.i(this,"isHidden"))()},[(0,n.classNames)("category-notifications-button"),(0,o.pluginApiIdentifiers)(["category-notifications-button"]),(0,o.selectKitOptions)({i18nPrefix:"category.notifications",showFullTitle:!1,headerAriaLabel:(0,r.i18n)("category.notifications.title")})])},36741:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(1158),a=i(57914),o=i(37759),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"loadingSlider",[n.service]))();#um=(()=>void dt7948.i(this,"loadingSlider"))();get shouldDisplay(){let{mode:e,loading:t,stillLoading:i}=this.loadingSlider;return"spinner"===e&&t||"slider"===e&&i}static #i=(()=>(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:()=>[o.default,r.default,a.default],isStrictMode:!0}),this))()}},36746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(80115),n=i(31075),r=i(27e3),a=i(87367),o=i(714),l=i(14051),u=i(47872),d=i(18693),c=i(88192);class p extends u.default{loaded=!1;itemsLoaded=0;content=[];static #e=(()=>dt7948.g(this.prototype,"baseUrl",[(0,o.url)("itemsLoaded","user.username_lower","/user_actions.json?offset=%@&username=%@")]))();#ug=(()=>void dt7948.i(this,"baseUrl"))();filterParam(e){return e===c.default.TYPES.replies?[c.default.TYPES.replies,c.default.TYPES.quotes].join(","):e||[c.default.TYPES.topics,c.default.TYPES.posts].join(",")}static #i=(()=>dt7948.n(this.prototype,"filterParam",[(0,l.default)("filter")]))();filterBy(e){return this.setProperties(Object.assign({itemsLoaded:0,content:[],lastLoadedUrl:null},e)),this.findItems()}nextFindUrl(){let e=this.baseUrl;return this.filterParam&&(e+=`&filter=${this.filterParam}`),this.actingUsername&&(e+=`&acting_username=${this.actingUsername}`),e}static #n=(()=>dt7948.n(this.prototype,"nextFindUrl",[(0,l.default)("baseUrl","filterParam","actingUsername")]))();noContent(e,t){return e&&0===t.length}static #a=(()=>dt7948.n(this.prototype,"noContent",[(0,l.default)("loaded","content.[]")]))();canLoadMore(){return this.nextFindUrl!==this.lastLoadedUrl}static #l=(()=>dt7948.n(this.prototype,"canLoadMore",[(0,l.default)("nextFindUrl","lastLoadedUrl")]))();remove(e){this.content.forEach(t=>{["likes","stars","edits","bookmarks"].forEach(i=>{let s=t.get(`childGroups.${i}.items`);s&&s.removeObject(e)})});let t=this.content.filter(e=>["likes","stars","edits","bookmarks"].some(t=>e.get(`childGroups.${t}.items.length`)>0));this.setProperties({content:t,itemsLoaded:t.length})}findItems(){if(!this.canLoadMore)return n.Promise.resolve();let e=this.nextFindUrl;return this.loading?n.Promise.resolve():(this.set("loading",!0),(0,a.ajax)(e).then(e=>{if(e&&e.user_actions){let t=(0,s.A)();e.categories?.forEach(e=>{d.default.current().updateCategory(e)}),e.user_actions?.forEach(e=>{e.titleHtml=(0,r.default)(e.title),t.pushObject(c.default.create(e))}),this.content.pushObjects(c.default.collapseStream(t)),this.setProperties({itemsLoaded:this.itemsLoaded+e.user_actions.length})}}).finally(()=>this.setProperties({loaded:!0,loading:!1,lastLoadedUrl:e})))}}},36803:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(50890),n=i(14051);class r extends s.default{selectedCategories(e,t,i,s,n){return[].concat(e,t,i,s,n).filter(Boolean)}static #e=(()=>dt7948.n(this.prototype,"selectedCategories",[(0,n.default)("model.watchingCategories.[]","model.watchingFirstPostCategories.[]","model.trackingCategories.[]","model.regularCategories.[]","model.mutedCategories.[]")]))()}},36812:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(93317),n=i(73326),r=i(96791),a=i(86981),o=i(75093),l=i(57079),u=i(29727),d=i(38069),c=i(11837),p=i(32045),h=i(1519);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[o.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();get url(){return"user"===this.args.type?this.args.user.path:(0,c.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 #i=(()=>dt7948.n(this.prototype,"click",[a.action]))();static #n=(()=>(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:"uQOcUGLt",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"]],[28,[32,4],[[30,4],"tiny"],null],[28,[32,5],null,[["title"],[[30,2]]]]],null]],[1,"\\n"]],[]],[[[1," "],[10,1],[12],[1,"\\n "],[1,[28,[32,6],["users"],null]],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n "]],["@type","@username","@user","@avatarSize"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/header/topic/participant.js",scope:()=>[n.concat,r.on,l.eq,u.default,l.or,n.hash,d.default],isStrictMode:!0}),this))()}},36833:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(75093),u=i(13355),d=i(39826),c=i(10822),p=i(916),h=i(70508),m=i(1519);class g extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[l.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"selectedCalendar",[n.tracked],function(){return"ics"}))();#uf=(()=>void dt7948.i(this,"selectedCalendar"))();static #n=(()=>dt7948.g(this.prototype,"remember",[n.tracked],function(){return!1}))();#u_=(()=>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,p.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,p.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 #a=(()=>dt7948.n(this.prototype,"downloadCalendar",[o.action]))();selectCalendar(e){this.selectedCalendar=e}static #l=(()=>dt7948.n(this.prototype,"selectCalendar",[o.action]))();static #d=(()=>(0,r.setComponentTemplate)((0,m.createTemplateFactory)({id:"btqWJXXC",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"download-calendar-modal"]],[["@title","@closeModal"],[[28,[32,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,[32,2],[[24,1,"ics"]],[["@name","@value","@selection","@onChange"],["select-calendar","ics",[30,0,["selectedCalendar"]],[28,[32,3],[[30,0,["selectCalendar"]],"ics"],null]]],null],[1,"\\n "],[1,[28,[32,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,[32,2],[[24,1,"google"]],[["@name","@value","@selection","@onChange"],["select-calendar","google",[30,0,["selectedCalendar"]],[28,[32,3],[[30,0,["selectCalendar"]],"google"],null]]],null],[1,"\\n "],[1,[28,[32,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,[32,4],null,[["@type","@checked"],["checkbox",[30,0,["remember"]]]],null],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["download_calendar.remember"],null]],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[12],[1,[28,[32,1],["download_calendar.remember_explanation"],null]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]],[[[1,"\\n "],[8,[32,5],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["downloadCalendar"]],"download_calendar.download"]],null],[1,"\\n "],[8,[32,5],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/download-calendar.js",scope:()=>[d.default,h.i18n,c.default,a.fn,r.Input,u.default],isStrictMode:!0}),this))()}},36874:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});class s{cache;constructor(){this.cache=new Map}has(e){return this.cache.has(e)}stash(e,t,i){let s=this.cache.get(e);void 0===s&&(s=new Map,this.cache.set(e,s)),s.set(t,i)}lookup(e,t,i){if(!this.has(e))return i;let s=this.cache.get(e);return s.has(t)?s.get(t):i}}},36950:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(87367),n=i(27797),r=i(70508);class a extends n.default{titleToken(){return(0,r.i18n)("user.change_email.title")}model(e){return(0,s.ajax)(`/u/confirm-new-email/${e.token}.json`)}}},36981:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(57165),n=i(89137),r=i(44273);class a extends s.default{compute(e){let[t]=e;return!!(0,r.assertExists)((0,n.getOwner)(this),"Could not find owner").factoryFor(`component:${t}`)}}},37008:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},37131:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(96791),r=i(86981),a=i(24813),o=i(38069),l=i(70508),u=i(32045),d=i(1519);class c extends s.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,a.schedule)("afterRender",()=>{document.getElementById(this.id)?.focus()})}static #e=(()=>dt7948.n(this.prototype,"toggleProperties",[r.action]))();click(){this.toggleProperties()}static #i=(()=>dt7948.n(this.prototype,"click",[r.action]))();keyPress(e){"Enter"===e.key&&this.toggleProperties()}static #n=(()=>dt7948.n(this.prototype,"keyPress",[r.action]))();static #a=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[n.on,o.default],isStrictMode:!0}),this))()}},37142:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(85024),n=i(78771),r=i.n(n),a=i(92496),o=i(87542),l=i(32045),u=i(1519);let d=dt7948.c(class extends a.default{static #e=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"88yHImIh",block:'[[[1,"\\n "],[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n"],[44,[[28,[32,0],[[30,0],[30,0,["selectKit","options","selectedNameComponent"]]],null]],[[[1," "],[8,[30,1],null,[["@tabindex","@item","@selectKit","@shouldDisplayClearableButton"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[30,0,["shouldDisplayClearableButton"]]]],null],[1,"\\n"]],[1]]],[1,"\\n "],[1,[28,[32,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n "],[13],[1,"\\n "]],["SelectedNameComponent"],false,["let"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/tag-drop/tag-drop-header.js",scope:()=>[o.resolveComponent,r()],isStrictMode:!0}),this))()},[(0,s.classNames)("tag-drop-header")])},37258:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s});let s=function(){var e;function t(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(e){return e.nodeName.toLowerCase()}function s(e){let t=[];return!function e(s,n){for(let r=s.firstChild;r;r=r.nextSibling)3===r.nodeType?n+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:n,node:r}),n=e(r,n),i(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:n,node:r}));return n}(e,0),t}return{"before:highlightElement":t=>{let{el:i}=t;e=s(i)},"after:highlightElement":n=>{let{el:r,result:a,text:o}=n;if(!e.length)return;let l=document.createElement("div");l.innerHTML=a.value,a.value=function(e,s,n){let r=0,a="",o=[];function l(){return e.length&&s.length?e[0].offset!==s[0].offset?e[0].offset"}function d(e){a+=""}function c(e){("start"===e.event?u:d)(e.node)}for(;e.length||s.length;){let i=l();if(a+=t(n.substring(r,i[0].offset)),r=i[0].offset,i===e){o.reverse().forEach(d);do c(i.splice(0,1)[0]),i=l();while(i===e&&i.length&&i[0].offset===r)o.reverse().forEach(u)}else"start"===i[0].event?o.push(i[0].node):o.pop(),c(i.splice(0,1)[0])}return a+t(n.substr(r))}(e,s(l),o),r.innerHTML=a.value}}}()},37274:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(85024),n=i(72516),r=i(87542);let a=dt7948.c(class extends n.default{},[(0,r.pluginApiIdentifiers)("group-notifications-button"),(0,r.selectKitOptions)({i18nPrefix:"groups.notifications"}),(0,s.classNames)("group-notifications-button")])},37280:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return(12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t)?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})})},37367:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(75093),r=i(9032),a=i(15383),o=i(39826),l=i(11837),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get description(){return(0,u.i18n)("anonymous_flagging.description",{email:this.#uy,topic_title:this.args.model.flagModel.topic.title,url:(0,l.getAbsoluteURL)(this.args.model.flagModel.url)})}get #uy(){return(0,a.isEmpty)(this.siteSettings.email_address_to_report_illegal_content)?this.siteSettings.contact_email:this.siteSettings.email_address_to_report_illegal_content}static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"3rdzQ5Am",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"anonymous-flag-modal"]],[["@title","@closeModal","@bodyClass"],[[28,[32,1],["anonymous_flagging.title"],null],[30,1],"anonymous-flag-modal__body"]],[["body"],[[[[1,"\\n "],[10,2],[12],[1,[28,[32,2],[[28,[32,1],["flagging.review_process_description"],null]],null]],[13],[1,"\\n "],[10,2],[12],[1,[28,[32,2],[[30,0,["description"]]],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/anonymous-flag.js",scope:()=>[o.default,u.i18n,r.htmlSafe],isStrictMode:!0}),this))()}},37375:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,function(e){return i[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,i){if(e<2)return" யாமம்";if(e<6)return" வைகறை";if(e<10)return" காலை";if(e<14)return" நண்பகல்";if(e<18)return" எற்பாடு";else if(e<22)return" மாலை";else return" யாமம்"},meridiemHour:function(e,t){return(12===e&&(e=0),"யாமம்"===t)?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t?e>=10?e:e+12:e+12},week:{dow:0,doy:6}})})},37389:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SCROLLED_DOWN:()=>d,SCROLLED_UP:()=>c,UNSCROLLED:()=>u,default:()=>p});var s=i(7155),n=i(24813),r=i(75093),a=i(14086),o=i(14051),l=i(44233);let u=Symbol("unscrolled"),d=Symbol("scroll-down"),c=Symbol("scroll-up"),p=dt7948.c(class extends r.default{static #e=(()=>dt7948.g(this.prototype,"router",[r.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"lastScrollDirection",[s.tracked],function(){return u}))();#ub=(()=>void dt7948.i(this,"lastScrollDirection"))();#uv=null;#uw=0;#uk=!1;constructor(){super(...arguments),this.routeDidChange(),window.addEventListener("scroll",this.onScroll,{passive:!0}),this.router.on("routeWillChange",this.routeWillChange),this.router.on("routeDidChange",this.routeDidChange)}willDestroy(){window.removeEventListener("scroll",this.onScroll),this.router.off("routeDidChange",this.routeDidChange)}routeWillChange(){this.#uk=!0}static #n=(()=>dt7948.n(this.prototype,"routeWillChange",[o.bind]))();routeDidChange(){this.#uk=!0,this.lastScrollDirection=u,(0,a.default)(this.unpause,1e3)}static #a=(()=>dt7948.n(this.prototype,"routeDidChange",[o.bind]))();unpause(){this.#uk=!1}static #l=(()=>dt7948.n(this.prototype,"unpause",[o.bind]))();onScroll(){if(this.#uk){this.#uv=window.scrollY;return}(0,n.throttle)(this.handleScroll,100,!1)}static #d=(()=>dt7948.n(this.prototype,"onScroll",[o.bind]))();handleScroll(){if(this.router._router._routerMicrolib.activeTransition)return;let e=window.scrollY;this.calculateDirection(e)}static #p=(()=>dt7948.n(this.prototype,"handleScroll",[o.bind]))();calculateDirection(e){let t=Math.floor(e-this.#uv);if(t<=5&&t>=-5||0===e)return;let i=this.lastScrollDirection,s=t>0?d:c,n=Math.floor(document.body.clientHeight-e-window.innerHeight);e<0?this.lastScrollDirection=u:s!==i&&n>0&&(this.lastScrollDirection=s),this.#uv=Math.floor(e),n>0?this.#uw=0:((0,a.default)(this,this.#uT,1e3),1===this.#uw&&(this.lastScrollDirection=u)),this.lastScrollTimestamp=Date.now()}#uT(){this.#uw=1}},[l.disableImplicitInjections])},37405:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(96791),r=i(86981),a=i(57079),o=i(40854),l=i(65170),u=i(87943),d=i(32045),c=i(1519);class p extends s.default{static controlType="checkbox";handleInput(){this.args.field.set(!this.args.field.value)}static #e=(()=>dt7948.n(this.prototype,"handleInput",[r.action]))();static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"ZFkM0UjX",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 "],[10,1],[12],[1,[30,1,["title"]]],[13],[1,"\\n "],[8,[32,3],null,[["@field"],[[30,1]]],null],[1,"\\n "],[8,[32,4],null,[["@field"],[[30,1]]],null],[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:()=>[o.default,a.eq,n.on,l.default,u.default],isStrictMode:!0}),this))()}},37434:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(16006);class n extends s.default{pathFor(){return"/review/topics"}}},37554:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(50890),n=i(86981),r=i(14086),a=i(97908);class o extends s.default{queryParams=["order","asc","filter","type"];order=null;asc=null;filter="";type=null;groups=null;onTypeChanged(e){this.set("type",e)}static #e=(()=>dt7948.n(this.prototype,"onTypeChanged",[n.action]))();onFilterChanged(e){(0,r.default)(this,this._debouncedFilter,e,a.INPUT_DELAY)}static #i=(()=>dt7948.n(this.prototype,"onFilterChanged",[n.action]))();_debouncedFilter(e){this.set("filter",e)}}},37599:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(7155);i(60569);var n=i(64081),r=i(75093),a=i(8835),o=i(22128),l=i(70508);class u{static #e=(()=>dt7948.g(this.prototype,"dialog",[r.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[r.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"session",[r.service]))();#tF=(()=>void dt7948.i(this,"session"))();static #a=(()=>dt7948.g(this.prototype,"capabilities",[r.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"_uppyUpload",[s.tracked]))();#uS=(()=>void dt7948.i(this,"_uppyUpload"))();constructor(e){(0,n.setOwner)(this,e)}get uploading(){this._uppyUpload.uploading}generateVideoThumbnail(e,t,i){if(!this.siteSettings.video_thumbnails_enabled||!(0,a.isVideo)(e.name))return i();let s=document.createElement("video");s.src=URL.createObjectURL(e.data),s.autoplay=!0,s.muted=!0,s.playsinline=!0;let r=t.substring(t.lastIndexOf("/")+1).split(".")[0];s[this.capabilities.isIOS?"onloadedmetadata":"oncanplaythrough"]=()=>{let e=document.createElement("canvas"),t=e.getContext("2d");setTimeout(()=>{if(0===s.videoWidth)return i();e.width=s.videoWidth,e.height=s.videoHeight,t.drawImage(s,0,0,s.videoWidth,s.videoHeight);let a=t.getImageData(0,0,s.videoWidth,s.videoHeight).data,u=!0;for(let e=0;e{this._uppyUpload=new o.default((0,n.getOwner)(this),{id:"video-thumbnail",type:"thumbnail",additionalParams:{videoSha1:r},uploadDone(){i()}}),this._uppyUpload.setup(),this._uppyUpload.uppyWrapper.uppyInstance.on("upload-error",(e,t,s)=>{let n=(0,l.i18n)("wizard.upload_error");s.body.errors&&(n=s.body.errors.join(` `)),console.error(n),i()});try{e.name=`${r}.png`,this._uppyUpload.addFiles(e)}catch(e){}})},100)},s.onerror=()=>{console.warn("Video could not be loaded or decoded for thumbnail generation"),i()}}}},37630:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(93317),n=i(75093),r=i(38069),a=i(80484),o=i(70508),l=i(32045),u=i(1519);class d extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();get user(){return this.siteSettings.display_name_on_posts&&(0,a.prioritizeNameInUx)(this.args.post.name)?this.args.post.name:this.args.post.username}static #i=(()=>(0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:"4qbRWpnZ",block:'[[[1,"\\n "],[1,[28,[32,0],["handshake-angle"],null]],[1,"\\n "],[10,2],[12],[1,[28,[32,1],["post.notice.new_user"],[["user"],[[30,0,["user"]]]]]],[13],[1,"\\n "]],[],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post/notice/new-user.js",scope:()=>[r.default,o.i18n],isStrictMode:!0}),this))()}},37759:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a,renderSpinner:()=>n,spinnerHTML:()=>r});var s=i(9032);function n(e){let t="
    "}let r=n();function a(){let{size:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.htmlSafe)(n(e))}},37857:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(86981),r=i(57079),a=i(13355),o=i(63538),l=i(77982),u=i(77296),d=i(32045),c=i(1519);class p extends s.default{static shouldRender(e,t){let{post:i}=e,{reviewable_id:s,canFlag:n,hidden:r}=i,a=s||n&&!r||t.siteSettings.allow_all_users_to_flag_illegal_content&&!t.currentUser;return(0,l.applyValueTransformer)("flag-button-render-decision",a,{post:i})}get dynamicFlagButtonClass(){return(0,l.applyValueTransformer)("flag-button-dynamic-class","",{post:this.args.post})}get isFlagButtonDisabled(){return(0,l.applyValueTransformer)("flag-button-disabled-state",!1,{post:this.args.post})}get title(){return this.args.post.currentUser?"post.controls.flag":"post.controls.anonymous_flag"}navigateToReviewable(){u.default.routeTo(`/review/${this.args.post.reviewable_id}`)}static #e=(()=>dt7948.n(this.prototype,"navigateToReviewable",[n.action]))();static #i=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"yvUBcBnE",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],[[16,0,[28,[32,1],["post-action-menu__flag create-flag",[30,0,["dynamicFlagButtonClass"]]],null]],[17,2]],[["@action","@icon","@label","@title","@disabled"],[[30,3,["showFlags"]],"flag",[52,[30,4],"post.controls.flag_action"],[30,0,["title"]],[30,0,["isFlagButtonDisabled"]]]],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:()=>[a.default,o.default,r.gt],isStrictMode:!0}),this))()}},37862:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>U});var s=i(93317),n=i(7155),r=i(73326),a=i(96791),o=i(86981),l=i(64081),u=i(75093),d=i(60551),c=i(44077),p=i(57079),h=i(13355),m=i(14529),g=i(53329),f=i(25420),_=i(65468),y=i(1908),b=i(57595),w=i(7940),k=i(57978),T=i(58869),S=i(45604),C=i(30185),A=i(55565),D=i(63538),M=i(10458),x=i(97908),E=i(11837),L=i(97944),P=i(84181),F=i(77982),I=i(77296),N=i(35697),j=i(70508),O=i(32045),R=i(1519);class U extends s.default{static #e=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #i=(()=>dt7948.g(this.prototype,"capabilities",[u.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #n=(()=>dt7948.g(this.prototype,"currentUser",[u.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #a=(()=>dt7948.g(this.prototype,"dialog",[u.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #l=(()=>dt7948.g(this.prototype,"keyValueStore",[u.service]))();#u=(()=>void dt7948.i(this,"keyValueStore"))();static #d=(()=>dt7948.g(this.prototype,"modal",[u.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #p=(()=>dt7948.g(this.prototype,"search",[u.service]))();#e2=(()=>void dt7948.i(this,"search"))();static #m=(()=>dt7948.g(this.prototype,"site",[u.service]))();#_=(()=>void dt7948.i(this,"site"))();static #f=(()=>dt7948.g(this.prototype,"siteSettings",[u.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #y=(()=>dt7948.g(this.prototype,"store",[u.service]))();#w=(()=>void dt7948.i(this,"store"))();static #v=(()=>dt7948.g(this.prototype,"expandedFirstPost",[n.tracked]))();#uC=(()=>void dt7948.i(this,"expandedFirstPost"))();static #k=(()=>dt7948.g(this.prototype,"repliesAbove",[n.tracked]))();#uA=(()=>void dt7948.i(this,"repliesAbove"))();static #S=(()=>dt7948.g(this.prototype,"repliesBelow",[n.tracked],function(){return new d.TrackedArray}))();#uD=(()=>void dt7948.i(this,"repliesBelow"))();decoratorState=(()=>new d.TrackedMap)();get additionalClasses(){return(0,F.applyValueTransformer)("post-class",[],{post:this.args.post})}get canLoadMoreRepliesBelow(){return this.repliesBelow.length0}get id(){return`post_${this.args.post.post_number}`}get isFromCurrentUser(){return this.currentUser&&this.currentUser.id===this.args.post.user_id}get isReplyingDirectlyToPostAbove(){return this.args.prevPost&&this.args.post.reply_to_post_number===this.args.prevPost.post_number&&this.args.post.id!==this.args.post.topic?.postStream?.filterUpwardsPostID}get isReplyToTabDisplayed(){return S.default.shouldRender({post:this.args.post,isReplyingDirectlyToPostAbove:this.isReplyingDirectlyToPostAbove},null,(0,l.getOwner)(this))}get minHeight(){return this.args.height?`${this.args.height}px`:null}get repliesShown(){return this.filteredRepliesView?this.filteredRepliesShown:this.repliesBelow.length>0}get shouldShowTopicMap(){if(1!==this.args.post.post_number)return!1;let e="private_message"===this.args.post.topic.archetype,t="regular"===this.args.post.topic.archetype,i=this.siteSettings.show_topic_map_in_topics_without_replies;return(0,F.applyValueTransformer)("post-show-topic-map",e||t&&(this.args.post.topic.posts_count>1||i),{post:this.args.post,isPM:e,isRegular:t,showWithoutReplies:i})}get staged(){return -1===this.args.post.id||this.args.post.isSaving||this.args.post.staged}copyLink(){if(this.site.mobileView)return this.share();let e=this.args.post,t=e.id,i=()=>(0,N.clipboardCopy)((0,E.getAbsoluteURL)(e.shareUrl));(0,x.isTesting)()&&(i=()=>{}),(0,L.default)({postId:t,actionClass:"post-action-menu__copy-link",messageKey:"post.controls.link_copied",actionCallback:i,errorCallback:()=>this.share()})}static #A=(()=>dt7948.n(this.prototype,"copyLink",[o.action]))();async loadMoreReplies(){let e=this.repliesBelow.length?this.repliesBelow.at(-1).post_number:1;(await this.store.find("post-reply",{postId:this.args.post.id,after:e})).forEach(e=>{let t=this.store.createRecord("post",e);this.repliesBelow.push(t)})}static #M=(()=>dt7948.n(this.prototype,"loadMoreReplies",[o.action]))();async expandFirstPost(){this.expandedFirstPost=new c.n(this.args.post.expand())}static #E=(()=>dt7948.n(this.prototype,"expandFirstPost",[o.action]))();async share(){let e=this.args.post;try{await (0,P.nativeShare)(this.capabilities,{url:e.shareUrl})}catch{let t=e.topic;this.modal.show(m.default,{model:{category:t.category,topic:t,post:e}})}}static #P=(()=>dt7948.n(this.prototype,"share",[o.action]))();async toggleFilteredRepliesView(){let e=this.args.post,t=this.args.post.topic.postStream.filterRepliesToPostNumber;if(t&&t===e.post_number)return void this.args.cancelFilter(t);await e.get("topic.postStream").filterReplies(e.post_number,e.id),this.args.updateTopicPageQueryParams()}static #I=(()=>dt7948.n(this.prototype,"toggleFilteredRepliesView",[o.action]))();async toggleLike(){let e=this.args.post,t=e.likeAction;if(t?.canToggle){let i=await t.togglePromise(e);return this.appEvents.trigger("page:like-toggled",e,t),this.#uM(i)}}static #j=(()=>dt7948.n(this.prototype,"toggleLike",[o.action]))();async toggleReplyAbove(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.args.post.reply_to_post_number;this.siteSettings.enable_filtered_replies_view&&(await this.args.post.topic?.postStream?.filterUpwards?.(this.args.post.id),this.args.updateTopicPageQueryParams());let i=this.args.post.topicUrl;if(this.site.mobileView){i&&I.default.routeTo(`${i}/${t}`);return}if(this.repliesAbove?.value.length){if(this.repliesAbove=null,!0===e){let{post_number:e}=this.args.post;I.default.routeTo(`${i}/${e}`)}}else this.repliesAbove=new c.n(this.#ux())}static #R=(()=>dt7948.n(this.prototype,"toggleReplyAbove",[o.action]))();async toggleReplies(){return this.filteredRepliesView?await this.toggleFilteredRepliesView():await this.toggleRepliesBelow()}static #B=(()=>dt7948.n(this.prototype,"toggleReplies",[o.action]))();toggleRepliesBelow(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.repliesBelow.length)return this.loadMoreReplies();if(this.repliesBelow.length=0,!0===e){let{topicUrl:e,post_number:t}=this.args.post;I.default.routeTo(`${e}/${t}`)}}static #H=(()=>dt7948.n(this.prototype,"toggleRepliesBelow",[o.action]))();#uM(e){if(!e||!e.acted)return;let t=this.keyValueStore.get("lastWarnedLikes"),i=Date.now()-864e5;if(t&&parseInt(t,10)>i)return;let{remaining:s,max:n}=e;s===Math.ceil(.1*n)&&(this.dialog.alert((0,j.i18n)("post.few_likes_left")),this.keyValueStore.set({key:"lastWarnedLikes",value:Date.now()}))}async #ux(){return(await this.store.find("post-reply-history",{postId:this.args.post.id})).map(e=>this.store.createRecord("post",e))}static #z=(()=>(0,O.setComponentTemplate)((0,R.createTemplateFactory)({id:"glPpJbgK",block:'[[[1,"\\n "],[11,0],[17,1],[16,0,[52,[51,[30,2]],[28,[32,0],["topic-post","clearfix",[52,[51,[30,0,["site","mobileView"]]],"post--sticky-avatar sticky-avatar"],[52,[30,0,["staged"]],"post--staged staged"],[52,[30,3],"post--selected selected"],[52,[30,4,["topicOwner"]],"post--topic-owner topic-owner"],[52,[30,0,["isFromCurrentUser"]],"post--current-user current-user-post"],[52,[30,4,["group_moderator"]],"post--category-moderator category-moderator"],[52,[30,4,["hidden"]],"post--hidden post-hidden"],[52,[30,4,["deleted"]],"post--deleted deleted"],[52,[30,4,["primary_group_name"]],[28,[32,0],[[28,[32,1],["post--group-",[30,4,["primary_group_name"]]],null],[28,[32,1],["group-",[30,4,["primary_group_name"]]],null]],null]],[52,[30,4,["wiki"]],"post--wiki wiki"],[52,[30,4,["isWhisper"]],"post--whisper whisper"],[52,[28,[32,2],[[30,4,["isModeratorAction"]],[28,[32,3],[[30,4,["isWarning"]],[30,4,["firstPost"]]],null]],null],"post--moderator moderator","post--regular regular"],[52,[30,4,["user_suspended"]],"post--user-suspended user-suspended"],[30,0,["additionalClasses"]]],null]]],[16,"data-post-number",[30,4,["post_number"]]],[16,1,[52,[30,2],[28,[32,1],["post_",[30,4,["post_number"]]],null]]],[12],[1,"\\n"],[41,[51,[30,2]],[[[44,[[28,[32,4],null,[["post","actions","decoratorState","topicPageQueryParams"],[[30,4],[28,[32,5],null,[["updateTopicPageQueryParams"],[[30,5]]]],[30,0,["decoratorState"]],[30,6]]]]],[[[1," "],[8,[32,6],null,[["@name","@outletArgs"],["post-article",[30,7]]],[["default"],[[[[1,"\\n "],[10,"article"],[15,1,[30,0,["id"]]],[15,0,[28,[32,0],["boxed","onscreen-post",[52,[30,0,["hasRepliesAbove"]],"post--has-replies-above replies-above"],[52,[30,4,["is_auto_generated"]],"post--auto-generated is-auto-generated"],[52,[30,4,["via_email"]],"post--via-email via-email"]],null]],[15,"aria-label",[28,[32,7],["share.post",[28,[32,5],null,[["postNumber","username"],[[30,4,["post_number"]],[30,4,["username"]]]]]],null]],[14,"role","region"],[15,"data-post-id",[30,4,["id"]]],[15,"data-topic-id",[30,4,["topicId"]]],[15,"data-user-id",[30,4,["user_id"]]],[12],[1,"\\n"],[41,[30,0,["hasRepliesAbove"]],[[[1," "],[10,0],[14,0,"post__row row"],[12],[1,"\\n "],[10,"section"],[15,1,[28,[32,1],["embedded-posts__top--",[30,4,["post_number"]]],null]],[14,0,"post__embedded-posts post__embedded-posts--top post__body embedded-posts top topic-body"],[12],[1,"\\n "],[8,[32,8],[[24,0,"post__collapse-button post__collapse-button-down collapse-down"]],[["@action","@icon","@title"],[[30,0,["toggleReplyAbove"]],"chevron-down","post.collapse"]],null],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["repliesAbove","value"]]],null]],null],"id",[[[1," "],[8,[32,9],null,[["@post","@above","@highlightTerm"],[[30,8],true,[30,9]]],null],[1,"\\n"]],[8]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[32,3],[[28,[32,10],[[30,4,["deletedAt"]]],null],[30,4,["notice"]]],null],[[[1," "],[10,0],[14,0,"post__row row"],[12],[1,"\\n "],[8,[32,11],null,[["@post"],[[30,4]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"post__row row"],[12],[1,"\\n "],[8,[32,12],null,[["@post"],[[30,4]]],null],[1,"\\n "],[10,0],[14,0,"post__body topic-body clearfix"],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["post-metadata",[30,7]]],[["default"],[[[[1,"\\n "],[8,[32,13],null,[["@post","@editPost","@hasRepliesAbove","@isReplyingDirectlyToPostAbove","@multiSelect","@repliesAbove","@selectBelow","@selectReplies","@selected","@showHistory","@showRawEmail","@togglePostSelection","@toggleReplyAbove"],[[30,4],[30,10],[30,0,["hasRepliesAbove"]],[30,0,["isReplyingDirectlyToPostAbove"]],[30,11],[30,0,["repliesAbove"]],[30,12],[30,13],[30,3],[30,14],[30,15],[30,16],[30,0,["toggleReplyAbove"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[10,0],[15,0,[28,[32,0],["post__regular regular",[52,[51,[30,0,["repliesShown"]]],"post__contents contents"],[52,[30,0,["isReplyToTabDisplayed"]],"post__contents--avoid-tab avoid-tab"]],null]],[12],[1,"\\n "],[8,[32,6],null,[["@name","@outletArgs"],["post-content-cooked-html",[30,7]]],[["default"],[[[[1,"\\n "],[8,[32,14],null,[["@post","@highlightTerm","@decoratorState"],[[30,4],[30,9],[30,0,["decoratorState"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,4,["requestedGroupName"]],[[[1," "],[10,0],[14,0,"post__group-request group-request"],[12],[1,"\\n "],[10,3],[15,6,[30,0,["groupRequestUrl"]]],[12],[1,"\\n "],[1,[28,[32,7],["groups.requests.handle"],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,4,["cooked_hidden"]],[30,4,["can_see_hidden_post"]]],null],[[[1," "],[11,3],[24,0,"post__expand-hidden expand-hidden"],[4,[32,15],["click",[30,17]],null],[12],[1,"\\n "],[1,[28,[32,7],["post.show_hidden"],null]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[28,[32,10],[[30,0,["expandedFirstPost","isResolved"]]],null],[30,4,["expandablePost"]]],null],[[[1," "],[8,[32,8],[[24,0,"post__expand-button expand-post"]],[["@action","@translatedLabel"],[[30,0,["expandFirstPost"]],[52,[30,0,["expandedFirstPost","isPending"]],[28,[32,7],["loading"],null],[28,[32,1],[[28,[32,7],["post.show_full"],null],"..."],null]]]],null],[1,"\\n"]],[]],null],[1,"\\n "],[10,"section"],[14,0,"post__menu-area post-menu-area clearfix"],[12],[1,"\\n "],[8,[32,16],null,[["@post","@prevPost","@nextPost","@canCreatePost","@changeNotice","@changePostOwner","@copyLink","@deletePost","@editPost","@filteredRepliesView","@grantBadge","@lockPost","@permanentlyDeletePost","@rebakePost","@recoverPost","@repliesShown","@replyToPost","@share","@showFlags","@showLogin","@showPagePublish","@showReadIndicator","@toggleLike","@togglePostType","@toggleReplies","@toggleWiki","@unhidePost","@unlockPost"],[[30,4],[30,18],[30,19],[30,20],[30,21],[30,22],[30,0,["copyLink"]],[30,23],[30,10],[30,0,["filteredRepliesView"]],[30,24],[30,25],[30,26],[30,27],[30,28],[30,0,["repliesShown"]],[30,29],[30,0,["share"]],[30,30],[30,31],[30,32],[30,33],[30,0,["toggleLike"]],[30,34],[30,0,["toggleReplies"]],[30,35],[30,36],[30,37]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["repliesBelow"]],[[[1," "],[10,"section"],[15,1,[28,[32,1],["embedded-posts__bottom--",[30,4,["post_number"]]],null]],[14,0,"post__embedded-posts post__embedded-posts--bottom embedded-posts bottom"],[12],[1,"\\n"],[42,[28,[31,4],[[28,[31,4],[[30,0,["repliesBelow"]]],null]],null],"id",[[[1," "],[8,[32,9],[[24,"role","region"],[16,"aria-label",[28,[32,7],["post.sr_embedded_reply_description"],[["post_number","username"],[[30,4,["post_number"]],[30,38,["username"]]]]]]],[["@post","@highlightTerm"],[[30,38],[30,9]]],null],[1,"\\n"]],[38]],null],[1,"\\n "],[8,[32,8],[[24,0,"post__collapse-button post__collapse-button-up collapse-up"]],[["@action","@ariaLabel","@icon","@title"],[[30,0,["toggleRepliesBelow"]],"post.sr_collapse_replies","chevron-up","post.collapse"]],null],[1,"\\n\\n"],[41,[30,0,["canLoadMoreRepliesBelow"]],[[[1," "],[8,[32,8],[[24,0,"post__load-more load-more-replies"]],[["@label","@action"],["post.load_more_replies",[30,0,["loadMoreReplies"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"post__actions post-actions"],[12],[1,"\\n "],[8,[32,17],null,[["@post"],[[30,4]]],null],[1,"\\n "],[13],[1,"\\n "],[8,[32,18],null,[["@post"],[[30,4]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["shouldShowTopicMap"]],[[[1," "],[10,0],[14,0,"post__topic-map topic-map --op"],[12],[1,"\\n "],[8,[32,19],null,[["@model","@cancelFilter","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,4,["topic"]],[30,39],[30,4,["topic","details"]],[30,4,["topic","postStream"]],[28,[32,20],[[30,4,["topic","archetype"]],"private_message"],null],[30,40],[30,41],[30,42]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[7]]]],[]],null],[1," "],[13],[1,"\\n "]],["&attrs","@cloaked","@selected","@post","@updateTopicPageQueryParams","@topicPageQueryParams","postOutletArgs","reply","@highlightTerm","@editPost","@multiSelect","@selectBelow","@selectReplies","@showHistory","@showRawEmail","@togglePostSelection","@expandHidden","@prevPost","@nextPost","@canCreatePost","@changeNotice","@changePostOwner","@deletePost","@grantBadge","@lockPost","@permanentlyDeletePost","@rebakePost","@recoverPost","@replyToPost","@showFlags","@showLogin","@showPagePublish","@showReadIndicator","@togglePostType","@toggleWiki","@unhidePost","@unlockPost","reply","@cancelFilter","@showInvite","@removeAllowedGroup","@removeAllowedUser"],false,["unless","if","let","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post.js",scope:()=>[D.default,r.concat,p.or,p.and,M.default,r.hash,g.default,j.i18n,h.default,b.default,p.not,C.default,_.default,T.default,y.default,a.on,k.default,f.default,w.default,A.default,p.eq],isStrictMode:!0}),this))()}},37867:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(97908);function n(){return!(0,s.isTesting)()&&visualViewport?.scale!==1&&document.documentElement.clientWidth/window.innerWidth!=1}},37919:(e,t,i)=>{"use strict";var s=i(54546);e.exports=function(e,t,i){var n="__INDIVIDUAL_ONE_VERSION_"+e,r=s(n+"_ENFORCE_SINGLETON",t);if(r!==t)throw Error("Can only have one copy of "+e+`. You already have version `+r+` installed. This means you cannot install version `+t);return s(n,i)}},37924:(e,t,i)=>{"use strict";i.r(t),i.d(t,{buildInitializerMethod:()=>_,default:()=>f,getEngineParent:()=>s.getEngineParent,setEngineParent:()=>s.setEngineParent});var s=i(98701);i(71729);var n=i(50890),r=i(97979),a=i(29023),o=i(68225);i(60569);var l=i(68338);i(86981);var u=i(76169);i(57330),i(89352),i(77188),i(77061);var d=i(34100),c=i(31847);i(28543),i(93892),i(90760),i(11719);var p=i(90400);i(72344);var h=i(66528);i(26628),i(48424),i(34016),i(33064),i(69686),i(65521),i(34902),i(92128);var m=i(6488);i(83882),i(24813),i(69023);var g=i(40413);i(78805),i(25601),i(57460),i(82540),i(27926),i(82069),i(32693);class f extends r.default.extend(g.default){static initializers=(()=>Object.create(null))();static instanceInitializers=(()=>Object.create(null))();static initializer=(()=>_("initializers","initializer"))();static instanceInitializer=(()=>_("instanceInitializers","instance initializer"))();static buildRegistry(e){let t=new a.R({resolver:function(e){return e.Resolver.create({namespace:e})}(e)});return t.set=c.s,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",n.default,{instantiate:!1}),e.register("service:-routing",p.default),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",l.default),e.register("component-lookup:main",h.default)}(t),(0,m.s)(t),t}init(e){super.init(e),this.buildRegistry()}_initializersRan=!1;ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ensureInitializers(),u.default.create({...e,base:this})}buildRegistry(){return this.__registry__=this.constructor.buildRegistry(this)}initializer(e){this.constructor.initializer(e)}instanceInitializer(e){this.constructor.instanceInitializer(e)}runInitializers(){this._runInitializer("initializers",(e,t)=>{t.initialize(this)})}runInstanceInitializers(e){this._runInitializer("instanceInitializers",(t,i)=>{i.initialize(e)})}_runInitializer(e,t){let i,s=(0,d.g)(this.constructor,e),n=function(e){let t=[];for(let i in e)t.push(i);return t}(s),r=new o.default;for(let e of n)i=s[e],r.add(i.name,i,i.before,i.after);r.topsort(t)}}function _(e,t){return function(t){let i=this.superclass;if(void 0!==i[e]&&i[e]===this[e]){let t={[e]:Object.create(this[e])};this.reopenClass(t)}this[e][t.name]=t}}},37958:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(95112)},37984:(e,t,i)=>{"use strict";i.r(t),i.d(t,{shaRegExp:()=>r,versionExtendedRegExp:()=>n,versionRegExp:()=>s});let s=/\d+[.]\d+[.]\d+/,n=/\d+[.]\d+[.]\d+-[a-z]*([.]\d+)?/,r=/[a-z\d]{8}$/},37998:(e,t,i)=>{"use strict";function s(e){let[t,i,s]=e;return 3===e.length&&"object"==typeof t&&null!==t&&"string"==typeof i&&("object"==typeof s&&null!==s&&"enumerable"in s&&"configurable"in s||void 0===s)}function n(e){return s(e)||function(e){let[t]=e;return 1===e.length&&"function"==typeof t&&"prototype"in t&&!t.__isComputedDecorator}(e)}i.r(t),i.d(t,{isDescriptor:()=>n,isFieldDescriptor:()=>s})},38027:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})},38063:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(86981);function n(e,t){"category_id"===t&&(t="category.id");let i=(0,s.get)(e,t);return Array.isArray(i)?i.slice(0):i}},38069:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(9032),n=i(21530);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.htmlSafe)((0,n.renderIcon)("string",e,t))}},38073:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ASSIGN:()=>s});let s=!0},38108:(e,t,i)=>{"use strict";function s(e){return e.value||"function"==typeof e.initializer&&e.initializer()}i.r(t),i.d(t,{default:()=>s})},38132:(e,t,i)=>{"use strict";i.r(t)},38161:(e,t,i)=>{"use strict";i.r(t),i.d(t,{observes:()=>o,off:()=>d,on:()=>u,unobserves:()=>l}),i(60569),i(86981);var s=i(91558),n=i(29352),r=i(96730),a=i(59677);let o=(0,a.decoratorWithRequiredParams)((e,t,i,n)=>{for(let i of n)(0,s.expandProperties)(i,i=>{(0,r.addObserver)(e,i,null,t)});return i},"observes"),l=(0,a.decoratorWithRequiredParams)((e,t,i,n)=>{for(let i of n)(0,s.expandProperties)(i,i=>{(0,r.removeObserver)(e,i,null,t)});return i},"unobserves"),u=(0,a.decoratorWithRequiredParams)((e,t,i,s)=>{for(let i of s)(0,n.addListener)(e,i,null,t);return i},"on"),d=(0,a.decoratorWithRequiredParams)((e,t,i,s)=>{for(let i of s)(0,n.removeListener)(e,i,null,t);return i},"off")},38174:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(32045),n=i(85024),r=i(70508),a=i(1519);let o=dt7948.c(class extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,a.createTemplateFactory)({id:"D0SiUum/",block:'[[[1,"\\n"],[41,[30,0,["unreadTopicsCount"]],[[[1," "],[10,3],[15,6,[30,0,["category","unreadUrl"]]],[15,"title",[28,[32,0],["topic.unread_topics"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[32,0],["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,[32,0],["topic.new_topics"],[["count"],[[30,0,["newTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[32,0],["filters.new.lower_title_with_count"],[["count"],[[30,0,["newTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-unread.js",scope:()=>[r.i18n],isStrictMode:!0}),this))()},[(0,n.classNames)("category__badges"),(0,n.tagName)("span")])},38256:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(64081),n=i(24813);class r{constructor(e,t){this.widget=e,this.opts=t}init(){let e=document.createElement("div");e.classList.add("widget-connector");let{opts:t,widget:i}=this;return(0,n.next)(()=>{let n=i._findView();if(t.component){let r=(0,s.getOwner)(n).factoryFor("component:connector-container").create({layoutName:`components/${t.component}`,model:i.findAncestorModel()});n._connected.push(r),r.renderer.appendTo(r,e)}}),e}update(){}}r.prototype.type="Widget"},38322:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("review.title")}}},38342:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(9032),n=i(67698),r=i(81932),a=i(35697),o=i(70508);class l extends r.default{constructor(e){let{message:t}=e;super(...arguments),this.message=t}get className(){let e=["message"];return e.push(this.message.unread?"unread":"read"),e.join(" ")}get linkHref(){let e=Math.min((this.message.last_read_post_number||0)+1,this.message.highest_post_number);return(0,a.postUrl)(this.message.slug,this.message.id,e)}get linkTitle(){return(0,o.i18n)("user.private_message")}get icon(){return"notification.private_message"}get label(){return this.siteSettings.prioritize_full_name_in_ux&&this.message.last_poster_name||this.message.last_poster_username}get description(){return(0,s.htmlSafe)((0,n.emojiUnescape)(this.message.fancy_title))}get topicId(){return this.message.id}get avatarTemplate(){return this.message.last_poster_avatar_template}}},38425:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(73326),r=i(9032),a=i(7953),o=i(57079),l=i(94832),u=i.n(l),d=i(15553),c=i.n(d),p=i(93805),h=i.n(p),m=i(62999),g=i(8195),f=i(16065),_=i(65149),y=i(32045),b=i(1519);class w extends s.default{closeOnScroll=(()=>(0,a.modifier)(()=>{let e=(0,g.getScrollParent)(this.trigger),t=()=>{this.args.instance.close()};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}}))();trapPointerDown=(()=>(0,a.modifier)(e=>{let t=e=>{e.stopPropagation()};return e.addEventListener("pointerdown",t),()=>{e.removeEventListener("pointerdown",t)}}))();get supportsCloseOnClickOutside(){return this.args.instance.expanded&&this.options.closeOnClickOutside}get supportsCloseOnEscape(){return this.args.instance.expanded&&this.options.closeOnEscape}get supportsCloseOnScroll(){return this.args.instance.expanded&&this.options.closeOnScroll}get trigger(){return this.args.instance?.trigger}get content(){return this.args.instance?.content}get options(){return this.args.instance.options}static #e=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"CRxYI5K7",block:'[[[1,"\\n "],[8,[32,0],null,[["@inline","@portalOutletElement"],[[30,1],[30,2,["portalOutletElement"]]]],[["default"],[[[[1,"\\n "],[11,0],[16,0,[28,[32,1],[[30,3],[52,[30,0,["options","animated"]],"-animated"],[52,[30,2,["expanded"]],"-expanded"]],null]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-content",""],[16,"aria-labelledby",[30,2,["id"]]],[16,"aria-expanded",[52,[30,2,["expanded"]],"true","false"]],[16,"role",[30,4]],[16,5,[28,[32,2],[[28,[32,3],["max-width: ",[30,0,["options","maxWidth"]],"px"],null]],null]],[17,5],[4,[32,4],[[30,0,["trigger"]],[30,0,["options"]],[30,2]],null],[4,[30,0,["trapPointerDown"]],null,null],[4,[52,[30,6],[50,[32,5],2,null,[["autofocus"],[[30,0,["options","autofocus"]]]]]],null,null],[4,[52,[28,[32,6],[[30,2,["expanded"]],[30,0,["supportsCloseOnClickOutside"]]],null],[50,[32,7],2,[[28,[32,8],[[30,2,["close"]],[28,[32,9],null,[["focusTrigger"],[false]]]],null],[28,[32,9],null,[["target"],[[30,0,["content"]]]]]],null]],null,null],[4,[52,[30,0,["supportsCloseOnEscape"]],[50,[32,10],2,[[30,2,["close"]]],null]],null,null],[4,[52,[30,0,["supportsCloseOnScroll"]],[50,[30,0,["closeOnScroll"]],2,null,null]],null,null],[12],[1,"\\n "],[10,0],[15,0,[30,7]],[12],[1,"\\n "],[18,8,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@inline","@instance","@mainClass","@role","&attrs","@trapTab","@innerClass","&default"],false,["if","modifier","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-float-body.js",scope:()=>[m.default,u(),r.htmlSafe,n.concat,f.default,h(),o.and,c(),n.fn,n.hash,_.default],isStrictMode:!0}),this))()}},38448:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(72439);let n={after:"inject-discourse-objects",initialize(e){this.routerClass=(0,s.mapRoutes)(),e.register("router:main",this.routerClass)},teardown(){this.routerClass.dslCallbacks.length=0}}},38465:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>y});var s=i(75370),n=i(76947),r=i(13355),a=i(74105),o=i(68023),l=i(67784),u=i(53329),d=i(1158),c=i(38069),p=i(57914),h=i(10458),m=i(70508),g=i(32045),f=i(1519),_=i(69522);let y=(0,s.default)((0,g.setComponentTemplate)((0,f.createTemplateFactory)({id:"0jIuGoFw",block:'[[[1,"\\n"],[41,[30,1,["model","canLoadMore"]],[[[1," "],[1,[32,0]],[1,"\\n"]],[]],null],[1,"\\n "],[1,[28,[32,1],["user-notifications-page"],null]],[1,"\\n\\n "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n "],[8,[32,2],null,[["@ariaLabel"],["User secondary - notifications"]],[["default"],[[[[1,"\\n "],[8,[32,3],[[24,0,"user-nav__notifications-all"]],[["@route","@ariaCurrentContext"],["userNotifications.index","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["bell"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user.filters.all"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],[[24,0,"user-nav__notifications-responses"]],[["@route","@ariaCurrentContext"],["userNotifications.responses","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["reply"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.5"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],[[24,0,"user-nav__notifications-likes"]],[["@route","@ariaCurrentContext"],["userNotifications.likesReceived","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["heart"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.2"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,1,["siteSettings","enable_mentions"]],[[[1," "],[8,[32,3],[[24,0,"user-nav__notifications-mentions"]],[["@route","@ariaCurrentContext"],["userNotifications.mentions","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["at"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.7"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,3],[[24,0,"user-nav__notifications-edits"]],[["@route","@ariaCurrentContext"],["userNotifications.edits","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["pencil"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.11"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],[[24,0,"user-nav__notifications-links"]],[["@route","@ariaCurrentContext"],["userNotifications.links","subNav"]],[["default"],[[[[1,"\\n "],[1,[28,[32,4],["link"],null]],[1,"\\n "],[10,1],[12],[1,[28,[32,5],["user_action_groups.17"],null]],[13],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,6],null,[["@name","@connectorTagName","@outletArgs"],["user-notifications-bottom","li",[28,[32,7],null,[["model"],[[30,1,["model"]]]]]]],null],[1,"\\n\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,1,["model"]],[[[1," "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n "],[8,[32,8],[[24,0,"btn-default dismiss-notifications"]],[["@title","@action","@label","@icon","@disabled"],["user.dismiss_notifications_tooltip",[30,1,["resetNew"]],"user.dismiss_notifications","check",[30,1,["allNotificationsRead"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[32,9],[[24,0,"notification-history user-stream"]],[["@action"],[[30,1,["loadMore"]]]],[["default"],[[[[1,"\\n "],[46,[28,[31,2],null,null],null,null,null],[1,"\\n "],[8,[32,10],null,[["@condition"],[[30,1,["model","loadingMore"]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,["if","component","-outlet"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/notifications.js",scope:()=>[p.default,d.default,o.default,a.default,c.default,m.i18n,u.default,h.default,r.default,l.default,n.default],isStrictMode:!0}),(0,_.default)(void 0,void 0)))},38487:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(9032),n=i(66633),r=i(67698),a=i(70508);let o=class extends n.default{get description(){let e=this.reviewable.topic_fancy_title,t=this.reviewable.post_number;return e&&t?(0,s.htmlSafe)((0,a.i18n)("user_menu.reviewable.post_number_with_topic_title",{post_number:t,title:(0,r.emojiUnescape)(e)})):(0,a.i18n)("user_menu.reviewable.deleted_post")}}},38492:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(86981),r=i(75093),a=i(13355),o=i(63857),l=i(70508),u=i(32045),d=i(1519);class c extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[r.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"modal",[r.service]))();#h=(()=>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(o.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 #n=(()=>dt7948.n(this.prototype,"dismissReadPosts",[n.action]))();static #a=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[a.default],isStrictMode:!0}),this))()}},38508:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(86981),n=i(91558),r=i(85024),a=i(27912),o=i(91268),l=i.n(o),u=i(70508),d=i(7749),c=i(87542);let p=dt7948.c(class extends d.default{static #e=(()=>dt7948.g(this.prototype,"content",[(0,n.reads)("groupsWithShortcut")]))();#uE=(()=>void dt7948.i(this,"content"))();static #i=(()=>dt7948.g(this.prototype,"hasManyGroups",[(0,n.gte)("content.length",10)]))();#uL=(()=>void dt7948.i(this,"hasManyGroups"))();static #n=(()=>dt7948.g(this.prototype,"enableGroupDirectory",[(0,a.setting)("enable_group_directory")]))();#uP=(()=>void dt7948.i(this,"enableGroupDirectory"))();valueProperty=null;nameProperty=null;get groupsWithShortcut(){let e=[];return(this.enableGroupDirectory||this.get("currentUser.staff"))&&e.push((0,u.i18n)("groups.index.all")),e.concat(this.groups)}static #a=(()=>dt7948.n(this.prototype,"groupsWithShortcut",[(0,s.computed)("groups.[]")]))();onChange(e){(this.groups||[]).includes(e)?l().routeToUrl(`/g/${e}`):l().routeToUrl("/g")}static #l=(()=>dt7948.n(this.prototype,"onChange",[s.action]))()},[(0,c.pluginApiIdentifiers)("group-dropdown"),(0,c.selectKitOptions)({caretDownIcon:"caret-right",caretUpIcon:"caret-down",filterable:"hasManyGroups"}),(0,r.classNames)("group-dropdown")])},38575:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(93317),n=i(73326),r=i(96791),a=i(86981),o=i(64081),l=i(75093),u=i(28638),d=i(7953),c=i(57079),p=i(4611),h=i.n(p),m=i(60300),g=i.n(m),f=i(94832),_=i.n(f),y=i(47064),b=i(38425),w=i(53939),k=i(29850),T=i(32045),S=i(1519);class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"menu",[l.service]))();#nq=(()=>void dt7948.i(this,"menu"))();static #i=(()=>dt7948.g(this.prototype,"site",[l.service]))();#_=(()=>void dt7948.i(this,"site"))();menuInstance=(()=>new k.default((0,o.getOwner)(this),{...this.allowedProperties,autoUpdate:!0,listeners:!0}))();registerTrigger=(()=>(0,d.modifier)(e=>(this.menuInstance.trigger=e,this.options.onRegisterApi?.(this.menuInstance),()=>{this.menuInstance.destroy()})))();registerFloatBody=(()=>(0,d.modifier)(e=>(this.body=e,()=>{this.body=null})))();teardownFloatBody(){this.body=null}static #n=(()=>dt7948.n(this.prototype,"teardownFloatBody",[a.action]))();forwardTabToContent(e){if(this.body&&"Tab"===e.key){e.preventDefault();let t=this.body.querySelector('button, a, input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])');t?.focus()||this.body.focus()}}static #a=(()=>dt7948.n(this.prototype,"forwardTabToContent",[a.action]))();get menuId(){return`d-menu-${this.menuInstance.id}`}get options(){return this.menuInstance?.options??{}}get componentArgs(){return{close:this.menuInstance.close,show:this.menuInstance.show,data:this.options.data}}get triggerComponent(){let e=this;return this.args.triggerComponent||(0,u.default)(h(),{get icon(){return e.args.icon},get translatedLabel(){return e.args.label},get translatedAriaLabel(){return e.args.ariaLabel},get translatedTitle(){return e.args.title},get disabled(){return e.args.disabled},get isLoading(){return e.args.isLoading}},(0,o.getOwner)(this))}get allowedProperties(){let e={};for(let[t,i]of Object.entries(w.MENU.options))e[t]=this.args[t]??i;return e}static #l=(()=>(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:"2LBEqvXU",block:'[[[1,"\\n "],[8,[30,0,["triggerComponent"]],[[16,0,[28,[32,0],["fk-d-menu__trigger",[52,[30,0,["menuInstance","expanded"]],"-expanded"],[28,[32,1],[[30,0,["options","identifier"]],"-trigger"],null],[30,1],[30,2]],null]],[16,1,[30,0,["menuInstance","id"]]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-trigger",""],[16,"aria-expanded",[52,[30,0,["menuInstance","expanded"]],"true","false"]],[17,3],[4,[30,0,["registerTrigger"]],null,null],[4,[32,2],["keydown",[30,0,["forwardTabToContent"]]],null]],[["@componentArgs"],[[30,0,["componentArgs"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,5]],[[[1," "],[18,5,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["menuInstance","expanded"]],[[[41,[28,[32,3],[[30,0,["site","mobileView"]],[30,0,["options","modalForMobile"]]],null],[[[1," "],[8,[32,4],[[16,0,[28,[32,0],["fk-d-menu-modal",[28,[32,1],[[30,0,["options","identifier"]],"-content"],null],[30,4],[30,2]],null]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-content",""]],[["@closeModal","@hideHeader","@autofocus","@inline"],[[30,0,["menuInstance","close"]],true,[30,0,["options","autofocus"]],[28,[32,5],null,null]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"fk-d-menu-modal__grip"],[14,"aria-hidden","true"],[12],[13],[1,"\\n"],[41,[48,[30,6]],[[[1," "],[18,6,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[48,[30,7]],[[[1," "],[18,7,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,0,["options","component"]],[[[1," "],[8,[30,0,["options","component"]],null,[["@data","@close"],[[30,0,["options","data"]],[30,0,["menuInstance","close"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["options","content"]],[[[1," "],[1,[30,0,["options","content"]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[8,[32,6],[[4,[30,0,["registerFloatBody"]],null,null]],[["@instance","@trapTab","@mainClass","@innerClass","@role","@inline"],[[30,0,["menuInstance"]],[30,0,["options","trapTab"]],[28,[32,0],["fk-d-menu",[28,[32,1],[[30,0,["options","identifier"]],"-content"],null],[30,2],[30,4]],null],"fk-d-menu__inner-content","dialog",[30,0,["options","inline"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,6]],[[[1," "],[18,6,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[48,[30,7]],[[[1," "],[18,7,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,0,["options","component"]],[[[1," "],[8,[30,0,["options","component"]],null,[["@data","@close"],[[30,0,["options","data"]],[30,0,["menuInstance","close"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["options","content"]],[[[1," "],[1,[30,0,["options","content"]]],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1," "]],["@triggerClass","@class","&attrs","@contentClass","&trigger","&default","&content"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-menu.js",scope:()=>[_(),n.concat,r.on,c.and,g(),y.isTesting,b.default],isStrictMode:!0}),this))()}},38628:(e,t,i)=>{"use strict";function s(e,t){let i=e.factoryFor("controller:basic").class;i=i.extend({toString:()=>`(generated ${t} controller)`});let s=`controller:${t}`;return e.register(s,i),e.factoryFor(s)}function n(e,t){s(e,t);let i=`controller:${t}`;return e.lookup(i)}i.r(t),i.d(t,{default:()=>n,generateControllerFactory:()=>s}),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061),i(34100),i(28543),i(50890)},38791:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>d});var s=i(11651),n=i(11837),r=i(21530),a=i(29466),o=i(77296),l=i(88627),u=i(70508);let d=(0,l.createWidget)("link",{tagName:"a",href(e){if(!e.route)return(0,n.default)(e.href);{let t=this.register.lookup("service:router");return e.model?t.urlFor(e.route,e.model):t.urlFor(e.route)}},buildClasses(e){let t=[];return t.push("widget-link"),e.className&&t.push(e.className),t},buildAttributes(e){let t={href:this.href(e),title:e.title?(0,u.i18n)(e.title,e.titleOptions):this.label(e)};return e.attributes&&Object.keys(e.attributes).forEach(i=>t[i]=e.attributes[i]),t},label:e=>e.labelCount&&e.count?(0,u.i18n)(e.labelCount,{count:e.count}):e.rawLabel||(e.label?(0,u.i18n)(e.label):""),html(e){if(e.contents)return e.contents();let t=[];if(e.icon){if(e["aria-label"]){let i=(0,r.iconNode)(e.icon);i.properties.attributes["aria-label"]=(0,u.i18n)(e["aria-label"],e.ariaLabelOptions),i.properties.attributes.role="img",i.properties.attributes["aria-hidden"]=!1,t.push(i)}else t.push((0,r.iconNode)(e.icon));t.push(" ")}if(!e.hideLabel){let i=this.label(e);e.omitSpan?t.push(i):t.push((0,s.h)("span.d-label",i))}let i=this.currentUser;if(i&&e.badgeCount){let n=parseInt(i.get(e.badgeCount),10);if(n>0){let i=e.badgeTitle?(0,u.i18n)(e.badgeTitle):"";t.push(" "),t.push((0,s.h)("span.badge-notification",{className:e.badgeClass,attributes:{title:i}},n))}}return t},click(e){if((!this.attrs.attributes||"_blank"!==this.attrs.attributes.target)&&!(0,a.wantsNewWindow)(e))return(e.preventDefault(),this.attrs.action)?(e.preventDefault(),this.sendWidgetAction(this.attrs.action,this.attrs.actionParam)):(this.sendWidgetEvent("linkClicked",this.attrs),o.default.routeToTag(e.target.closest("a")))}})},38804:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var s=i(93317);i(7155);var n=i(73326),r=i(86981),a=i(75093),o=i(9032),l=i(57079),u=i(53329),d=i(74329),c=i(14104),p=i(10458),h=i(35952),m=i(11837),g=i(23062),f=i(70508),_=i(609),y=i.n(_),b=i(56179),w=i(60188),k=i(32045),T=i(1519);let S=(0,i(96900).A)(i(7155)).cached;class C extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[a.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"site",[a.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();uncategorizedSiteSettingLink=(()=>(0,m.default)("/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"))();customizeTextContentLink=(()=>(0,m.default)("/admin/customize/site_texts?q=uncategorized"))();get styleTypes(){return Object.keys(h.CATEGORY_STYLE_TYPES).map(e=>({id:e,name:(0,f.i18n)(`category.styles.options.${e}`)}))}get showWarning(){return this.args.category.isUncategorizedCategory}get backgroundColors(){let e=this.site.get("categoriesList");return this.siteSettings.category_colors.split("|").filter(Boolean).map(e=>e.toUpperCase()).concat(e.map(e=>e.color.toUpperCase())).uniq()}static #a=(()=>dt7948.n(this.prototype,"backgroundColors",[S]))();get usedBackgroundColors(){let e=this.site.get("categoriesList"),t=this.args.category.id,i=this.args.category.color;return e.map(e=>t&&i.toUpperCase()===e.color.toUpperCase()?null:e.color.toUpperCase()).compact()}static #l=(()=>dt7948.n(this.prototype,"usedBackgroundColors",[S]))();get parentCategories(){return this.site.get("categoriesList").filter(e=>e.level+1dt7948.n(this.prototype,"parentCategories",[S]))();categoryBadgePreview(e){let t=this.args.category,i=g.default.create({id:t.id,name:e.name||(0,f.i18n)("category.untitled"),color:e.color,text_color:e.text_color,parent_category_id:parseInt(t.get("parent_category_id"),10),read_restricted:t.get("read_restricted")});return(0,c.categoryBadgeHTML)(i,{link:!1,previewColor:!0,styleType:e.style_type,emoji:e.emoji,icon:e.icon})}static #p=(()=>dt7948.n(this.prototype,"categoryBadgePreview",[r.action]))();get subCategories(){return this.args.category.isNew?null:g.default.list().filter(e=>e.get("parent_category_id")===this.args.category.id)}static #m=(()=>dt7948.n(this.prototype,"subCategories",[S]))();get showDescription(){let e=this.args.category;return!e.isUncategorizedCategory&&e.id&&e.topic_url}static #f=(()=>dt7948.n(this.prototype,"showDescription",[S]))();showCategoryTopic(){window.open(this.args.category.get("topic_url"),"_blank").focus()}static #y=(()=>dt7948.n(this.prototype,"showCategoryTopic",[r.action]))();updateColor(e,t){let i=t.replace("#","");if("color"===e.name){let e=this.colorDifference(i,h.CATEGORY_TEXT_COLORS[0]),t=this.colorDifference(i,h.CATEGORY_TEXT_COLORS[1]);this.args.form.setProperties({color:i,text_color:h.CATEGORY_TEXT_COLORS[e>t?0:1]})}else e.set(i)}static #v=(()=>dt7948.n(this.prototype,"updateColor",[r.action]))();colorDifference(e,t){let i=parseInt(e.substr(0,2),16),s=parseInt(e.substr(2,2),16),n=parseInt(e.substr(4,2),16),r=parseInt(t.substr(0,2),16),a=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return Math.max(i,r)-Math.min(i,r)+(Math.max(s,a)-Math.min(s,a))+(Math.max(n,o)-Math.min(n,o))}static #k=(()=>dt7948.n(this.prototype,"colorDifference",[r.action]))();get categoryDescription(){return this.args.category.description?(0,o.htmlSafe)(this.args.category.description):(0,f.i18n)("category.no_description")}get canSelectParentCategory(){return!this.args.category.isUncategorizedCategory}get panelClass(){let e="general"===this.args.selectedTab?"active":"";return`edit-category-tab edit-category-tab-general ${e}`}static #S=(()=>(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:"jxoruqkW",block:'[[[1,"\\n "],[10,0],[15,0,[30,0,["panelClass"]]],[12],[1,"\\n"],[41,[30,0,["showWarning"]],[[[1," "],[8,[30,1,["Alert"]],null,[["@type","@icon"],["warning","triangle-exclamation"]],[["default"],[[[[1,"\\n "],[1,[28,[32,0],[[28,[32,1],["category.uncategorized_general_warning"],[["settingLink","customizeLink"],[[30,0,["uncategorizedSiteSettingLink"]],[30,0,["customizeTextContentLink"]]]]]],null]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[32,2],null,[["@name","@outletArgs"],["category-name-fields-details",[28,[32,3],null,[["form","category"],[[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n"],[41,[51,[30,2,["isUncategorizedCategory"]]],[[[1," "],[8,[30,1,["Field"]],null,[["@name","@title","@format","@validation"],["name",[28,[32,1],["category.name"],null],"large","required"]],[["default"],[[[[1,"\\n "],[8,[30,3,["Input"]],[[16,"placeholder",[28,[32,1],["category.name_placeholder"],null]],[24,0,"category-name"]],[["@maxlength"],["50"]],null],[1,"\\n "]],[3]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@format"],["slug",[28,[32,1],["category.slug"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,4,["Input"]],[[16,"placeholder",[28,[32,1],["category.slug_placeholder"],null]]],[["@maxlength"],["255"]],null],[1,"\\n "]],[4]]]]],[1,"\\n "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["canSelectParentCategory"]],[[[1," "],[8,[30,1,["Field"]],[[24,0,"parent-category"]],[["@name","@title","@format"],["parent_category_id",[28,[32,1],["category.parent"],null],"large"]],[["default"],[[[[1,"\\n "],[8,[30,5,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@value","@allowSubCategories","@allowRestrictedCategories","@onChange","@options"],[[30,6,["parent_category_id"]],true,true,[30,5,["set"]],[28,[32,5],null,[["allowUncategorized","excludeCategoryId","autoInsertNoneItem","none"],[false,[30,2,["id"]],true,true]]]]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],[5]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["subCategories"]],[[[1," "],[8,[30,1,["Container"]],null,[["@title"],[[28,[32,1],["categories.subcategories"],null]]],[["default"],[[[[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["subCategories"]]],null]],null],null,[[[1," "],[1,[28,[32,6],[[30,7]],[["hideParent"],["true"]]]],[1,"\\n"]],[7]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1," "],[8,[30,1,["Section"]],null,[["@title"],[[28,[32,1],["category.description"],null]]],[["default"],[[[[1,"\\n"],[41,[30,2,["topic_url"]],[[[1," "],[8,[30,1,["Container"]],null,[["@subtitle"],[[30,0,["categoryDescription"]]]],[["default"],[[[[1,"\\n "],[8,[30,1,["Button"]],[[24,0,"btn-default edit-category-description"]],[["@action","@icon","@label"],[[30,0,["showCategoryTopic"]],"pencil","category.change_in_category_topic"]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n "],[8,[30,1,["Section"]],[[24,0,"category-style"]],[["@title"],[[28,[32,1],["category.style"],null]]],[["default"],[[[[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@format","@validation"],["style_type",[28,[32,1],["category.styles.type"],null],"large","required"]],[["default"],[[[[1,"\\n "],[1,[28,[32,0],[[28,[30,0,["categoryBadgePreview"]],[[30,6]],null]],null]],[1,"\\n "],[8,[30,8,["Select"]],null,null,[["default"],[[[[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,0,["styleTypes"]]],null]],null],null,[[[1," "],[8,[30,9,["Option"]],null,[["@value"],[[30,10,["id"]]]],[["default"],[[[[1,"\\n "],[1,[30,10,["name"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[10]],null],[1," "]],[9]]]]],[1,"\\n "]],[8]]]]],[1,"\\n\\n"],[41,[28,[32,7],[[30,6,["style_type"]],"emoji"],null],[[[1," "],[8,[30,1,["Field"]],null,[["@name","@title","@format","@validation"],["emoji",[28,[32,1],["category.styles.emoji"],null],"small","required"]],[["default"],[[[[1,"\\n "],[8,[30,11,["Emoji"]],null,null,null],[1,"\\n "]],[11]]]]],[1,"\\n"]],[]],[[[41,[28,[32,7],[[30,6,["style_type"]],"icon"],null],[[[1," "],[8,[30,1,["Field"]],null,[["@name","@title","@format","@validation"],["icon",[28,[32,1],["category.styles.icon"],null],"small","required"]],[["default"],[[[[1,"\\n "],[8,[30,12,["Icon"]],null,null,null],[1,"\\n "]],[12]]]]],[1,"\\n "]],[]],null]],[]]],[1,"\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@format"],["color",[28,[32,1],["category.background_color"],null],"full"]],[["default"],[[[[1,"\\n "],[8,[30,13,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper edit-background-color"],[12],[1,"\\n "],[8,[32,8],null,[["@hexValue","@valid","@ariaLabelledby","@onChangeColor"],[[28,[31,4],[[30,13,["value"]]],null],[30,2,["colorValid"]],"background-color-label",[28,[32,9],[[30,0,["updateColor"]],[30,13]],null]]],null],[1,"\\n "],[8,[32,10],null,[["@colors","@usedColors","@value","@ariaLabel","@onSelectColor"],[[30,0,["backgroundColors"]],[30,0,["usedBackgroundColors"]],[28,[31,4],[[30,13,["value"]]],null],[28,[32,1],["category.predefined_colors"],null],[28,[32,9],[[30,0,["updateColor"]],[30,13]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[13]]]]],[1,"\\n\\n "],[8,[30,1,["Field"]],null,[["@name","@title","@format"],["text_color",[28,[32,1],["category.foreground_color"],null],"full"]],[["default"],[[[[1,"\\n "],[8,[30,14,["Custom"]],null,null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n "],[10,0],[14,0,"colorpicker-wrapper edit-text-color"],[12],[1,"\\n "],[8,[32,8],null,[["@hexValue","@ariaLabelledby","@onChangeColor"],[[28,[31,4],[[30,14,["value"]]],null],"foreground-color-label",[28,[32,9],[[30,0,["updateColor"]],[30,14]],null]]],null],[1,"\\n "],[8,[32,10],null,[["@colors","@value","@ariaLabel","@onSelectColor"],[[32,11],[28,[31,4],[[30,14,["value"]]],null],[28,[32,1],["category.predefined_colors"],null],[28,[32,9],[[30,0,["updateColor"]],[30,14]],null]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],[14]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@form","@category","field","field","field","@transientData","s","field","select","styleType","field","field","field","field"],false,["if","unless","each","-track-array","readonly"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/edit-category-general.js",scope:()=>[o.htmlSafe,f.i18n,u.default,p.default,b.default,n.hash,d.default,l.eq,y(),n.fn,w.default,h.CATEGORY_TEXT_COLORS],isStrictMode:!0}),this))()}},38830:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(50890),n=i(86981),r=i(24813),a=i(75093),o=i(94160),l=i(15383),u=i(87367),d=i(16356),c=i(35952),p=i(14051),h=i(70508);class m extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[a.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"toasts",[a.service]))();#T=(()=>void dt7948.i(this,"toasts"))();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;unknownTypeSource=(()=>c.REVIEWABLE_UNKNOWN_TYPE_SOURCE)();allTypes(){return(this.reviewableTypes||[]).map(e=>{let t=(0,o.underscore)(e).replace(/[^\w]+/g,"_");return{id:e,name:(0,h.i18n)(`review.types.${t}.title`)}})}static #a=(()=>dt7948.n(this.prototype,"allTypes",[(0,p.default)("reviewableTypes")]))();allScoreTypes(){return this.scoreTypes||[]}static #l=(()=>dt7948.n(this.prototype,"allScoreTypes",[(0,p.default)("scoreTypes")]))();priorities(){return["any","low","medium","high"].map(e=>({id:e,name:(0,h.i18n)(`review.filters.priority.${e}`)}))}static #d=(()=>dt7948.n(this.prototype,"priorities",[p.default]))();sortOrders(){return["score","score_asc","created_at","created_at_asc"].map(e=>({id:e,name:(0,h.i18n)(`review.filters.orders.${e}`)}))}static #p=(()=>dt7948.n(this.prototype,"sortOrders",[p.default]))();statuses(){return["pending","approved","rejected","deleted","ignored","reviewed","all"].map(e=>({id:e,name:(0,h.i18n)(`review.statuses.${e}.title`)}))}static #m=(()=>dt7948.n(this.prototype,"statuses",[p.default]))();toggleFiltersIcon(e){return e?"chevron-up":"chevron-down"}static #f=(()=>dt7948.n(this.prototype,"toggleFiltersIcon",[(0,p.default)("filtersExpanded")]))();setRange(e){this.setProperties(e)}refreshModel(){(0,r.next)(()=>this.send("refreshRoute"))}displayUnknownReviewableTypesWarning(e){return e?.length>0&&this.currentUser.admin}static #y=(()=>dt7948.n(this.prototype,"displayUnknownReviewableTypesWarning",[(0,p.default)("unknownReviewableTypes")]))();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 #v=(()=>dt7948.n(this.prototype,"remove",[n.action]))();resetTopic(){this.set("topic_id",null),this.refreshModel()}static #k=(()=>dt7948.n(this.prototype,"resetTopic",[n.action]))();ignoreAllUnknownTypes(){return this.dialog.deleteConfirm({message:(0,h.i18n)("review.unknown.delete_confirm"),didConfirm:async()=>{try{await (0,u.ajax)("/admin/unknown_reviewables/destroy",{type:"delete"}),this.set("unknownReviewableTypes",[]),this.toasts.success({data:{message:(0,h.i18n)("review.unknown.ignore_success")}})}catch(e){(0,d.popupAjaxError)(e)}}})}static #S=(()=>dt7948.n(this.prototype,"ignoreAllUnknownTypes",[n.action]))();refresh(){let e=this.status,t=this.filterStatus,i=this.sort_order,s=this.filterSortOrder,n=["reviewed","all"],r=["approved","rejected","deleted","ignored","pending"];n.includes(e)&&"created_at"===i&&r.includes(t)&&"created_at"===s&&(s="score"),r.includes(e)&&"score"===i&&n.includes(t)&&"score"===s&&(s="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,l.isPresent)(this.filterFromDate)?this.filterFromDate.toISOString(!0).split("T")[0]:null,to_date:(0,l.isPresent)(this.filterToDate)?this.filterToDate.toISOString(!0).split("T")[0]:null,sort_order:s,additional_filters:JSON.stringify(this.additionalFilters)}),this.refreshModel()}static #A=(()=>dt7948.n(this.prototype,"refresh",[n.action]))();loadMore(){return this.reviewables.loadMore()}static #M=(()=>dt7948.n(this.prototype,"loadMore",[n.action]))();toggleFilters(){this.toggleProperty("filtersExpanded")}static #E=(()=>dt7948.n(this.prototype,"toggleFilters",[n.action]))();updateFilterReviewedBy(e){this.set("filterReviewedBy",e.firstObject)}static #P=(()=>dt7948.n(this.prototype,"updateFilterReviewedBy",[n.action]))();updateFilterFlaggedBy(e){this.set("filterFlaggedBy",e.firstObject)}static #I=(()=>dt7948.n(this.prototype,"updateFilterFlaggedBy",[n.action]))();updateFilterUsername(e){this.set("filterUsername",e.firstObject)}static #j=(()=>dt7948.n(this.prototype,"updateFilterUsername",[n.action]))()}},38897:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(70508);function n(e,t){return(0,s.i18n)(e?"yes_value":"no_value",t)}},38955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c,setNewCategoryDefaultColors:()=>d});var s=i(75093),n=i(31075),r=i(35952),a=i(27797),o=i(70508);let l="0088CC",u="FFFFFF";function d(e,t){l=e,u=t}class c extends a.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();controllerName="edit-category-tabs";templateName="edit-category-tabs";beforeModel(){if(!this.currentUser)return void this.router.replaceWith("/404");this.currentUser.admin||this.currentUser.moderator&&!1!==this.siteSettings.moderators_manage_categories_and_groups||this.router.replaceWith("/404")}model(){return n.Promise.resolve(this.groupPermissions()).then(e=>this.newCategoryWithPermissions(e)).catch(()=>this.newCategoryWithPermissions(this.defaultGroupPermissions()))}newCategoryWithPermissions(e){return this.store.createRecord("category",{color:l,text_color:u,group_permissions:e,available_groups:this.site.groups.map(e=>e.name),allow_badges:!0,topic_featured_link_allowed:!0,custom_fields:{},category_setting:{},search_priority:r.SEARCH_PRIORITIES.normal,required_tag_groups:[],form_template_ids:[],minimum_required_tags:0,category_localizations:[]})}titleToken(){return(0,o.i18n)("category.create")}groupPermissions(){return this.defaultGroupPermissions()}defaultGroupPermissions(){return[{group_name:this.site.groups.findBy("id",0).name,permission_type:1}]}}},38961:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(56749);function n(e){return(0,s.default)(e)||"string"==typeof e&&!1===/\S/.test(e)}},39017:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(32045),n=i(53329),r=i(79894),a=i(62937),o=i(10458),l=i(1519);class u extends s.default{static #e=(()=>(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:"4rqXLWE1",block:'[[[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["user-profile-avatar-wrapper",[28,[32,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"user-profile-avatar"],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["user-profile-avatar-img-wrapper",[28,[32,1],null,[["user"],[[30,1]]]]]],[["default"],[[[[1,"\\n "],[1,[28,[32,2],[[30,1],"huge"],null]],[1,"\\n "]],[]]]]],[1,"\\n\\n "],[8,[32,3],null,[["@user"],[[30,1]]],null],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[32,0],null,[["@name","@outletArgs"],["user-profile-avatar-flair",[28,[32,1],null,[["model"],[[30,1]]]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "]],["@user"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-profile-avatar.js",scope:()=>[n.default,o.default,a.default,r.default],isStrictMode:!0}),this))()}},39029:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var s=i(86981),n=i(85024),r=i(82439),a=i.n(r),o=i(87457),l=i(47064),u=i(8760),d=i(40504),c=i(43193),p=i(29931),h=i(87542);let m="MORE_ICONS_COLLECTION",g=dt7948.c(class extends p.default{init(){super.init(...arguments),this._cachedIconsList=null,this._resultCount=0,(0,l.isDevelopment)()&&(0,d.disableMissingIconWarning)(),this.insertAfterCollection(h.MAIN_COLLECTION,m)}modifyComponentForCollection(e){if(e===m)return c.default}modifyContentForCollection(e){if(e===m)return{shouldShowMoreTip:200===this._resultCount}}get content(){return(0,u.makeArray)(this.value).map(this._processIcon)}static #e=(()=>dt7948.n(this.prototype,"content",[(0,s.computed)("value.[]")]))();search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e&&this._cachedIconsList?.length?(this._resultCount=this._cachedIconsList.length,this._cachedIconsList):(0,o.ajax)("/svg-sprite/picker-search",{data:{filter:e,only_available:this.onlyAvailable}}).then(t=>(t=t.map(this._processIcon),""===e&&(this._cachedIconsList=t),this._resultCount=t.length,t))}_processIcon(e){let t="object"==typeof e?e.id:e,i=(0,d.convertIconClass)(t),s="#svg-sprites",n="ajax-icon-holder";return"object"==typeof e&&(0===a()(`${s} .${n}`).length&&a()(s).append(``),a()(`${s} symbol#${i}`).length||a()(`${s} .${n}`).append(`${e.symbol}`)),{id:t,name:t,icon:i}}willDestroyElement(){a()("#svg-sprites .ajax-icon-holder").remove(),super.willDestroyElement(...arguments),this._cachedIconsList=null,this._resultCount=0,(0,l.isDevelopment)()&&(0,d.enableMissingIconWarning)()}_onChange(e,t){1===this.selectKit.options.maximum&&(e=e.length?e[0]:null,t=t.length?t[0]:null),this.onChange?.(e,t)}static #i=(()=>dt7948.n(this.prototype,"_onChange",[s.action]))()},[(0,h.pluginApiIdentifiers)("icon-picker"),(0,n.classNames)("icon-picker")])},39117:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(86981),r=i(13355),a=i(32045),o=i(1519);class l extends s.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",[n.action]))();static #i=(()=>(0,a.setComponentTemplate)((0,o.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))()}},39139:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var s=i(93317),n=i(96791),r=i(86981),a=i(96848),o=i(57079),l=i(97944),u=i(32045),d=i(1519);class c extends s.default{#uF;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.#uF=e}static #e=(()=>dt7948.n(this.prototype,"setElement",[r.action]))();sharedBehaviorOnClick(e){e.currentTarget?.blur()}static #i=(()=>dt7948.n(this.prototype,"sharedBehaviorOnClick",[r.action]))();showFeedback(e){this.#uF&&(0,l.showAlert)(this.args.post.id,this.args.buttonConfig.key,e,{actionBtn:this.#uF})}static #n=(()=>dt7948.n(this.prototype,"showFeedback",[r.action]))();static #a=(()=>(0,u.setComponentTemplate)((0,d.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:()=>[o.or,a.default,n.on],isStrictMode:!0}),this))()}},39168:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(93317),n=i(7155),r=i(32045),a=i(73326),o=i(86981),l=i(75093),u=i(15383),d=i(13355),c=i(39826),p=i(95397),h=i(35879),m=i(16356),g=i(70508),f=i(7749),_=i(1519);let y="other_reason";class b extends s.default{static #e=(()=>dt7948.g(this.prototype,"siteSettings",[l.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #i=(()=>dt7948.g(this.prototype,"reason",[n.tracked]))();#ap=(()=>void dt7948.i(this,"reason"))();static #n=(()=>dt7948.g(this.prototype,"customReason",[n.tracked]))();#uI=(()=>void dt7948.i(this,"customReason"))();static #a=(()=>dt7948.g(this.prototype,"feedback",[n.tracked]))();#uN=(()=>void dt7948.i(this,"feedback"))();static #l=(()=>dt7948.g(this.prototype,"submitting",[n.tracked],function(){return!1}))();#uj=(()=>void dt7948.i(this,"submitting"))();get configuredReasons(){return this.siteSettings.reviewable_revision_reasons.split("|").filter(Boolean).map(e=>({id:e,name:e})).concat([{id:y,name:(0,g.i18n)("review.revise_and_reject_post.other_reason")}])}get showCustomReason(){return this.reason===y}get sendPMDisabled(){return(0,u.isEmpty)(this.reason)||this.reason===y&&(0,u.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,m.popupAjaxError)(e)}finally{this.submitting=!1}}static #d=(()=>dt7948.n(this.prototype,"rejectAndSendPM",[o.action]))();static #p=(()=>(0,r.setComponentTemplate)((0,_.createTemplateFactory)({id:"PZonl7oE",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"revise-and-reject-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[32,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,[32,2],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,[32,1],["review.revise_and_reject_post.reason"],null]],[13],[1,"\\n "],[8,[32,3],[[24,0,"revise-and-reject-reviewable__reason"]],[["@name","@content","@value","@onChange"],["reason",[30,0,["configuredReasons"]],[30,0,["reason"]],[28,[32,4],[[28,[31,0],[[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,[32,1],["review.revise_and_reject_post.custom_reason"],null]],[13],[1,"\\n "],[8,[32,5],[[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,[32,1],["review.revise_and_reject_post.feedback"],null]],[1,"\\n "],[10,1],[14,0,"revise-and-reject-reviewable__optional"],[12],[1,"("],[1,[28,[32,1],["review.revise_and_reject_post.optional"],null]],[1,")"],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,6],[[24,0,"revise-and-reject-reviewable__feedback"]],[["@name","@value","@onChange"],["feedback",[30,0,["feedback"]],[28,[32,4],[[28,[31,0],[[30,0,["feedback"]]],null]],null]]],null],[1,"\\n "],[13],[1,"\\n "]],[]],[[[1,"\\n "],[8,[32,7],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["rejectAndSendPM"]],[30,0,["sendPMDisabled"]],"review.revise_and_reject_post.send_pm"]],null],[1,"\\n "],[8,[32,7],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal","@model"],false,["mut","if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/revise-and-reject-post-reviewable.js",scope:()=>[c.default,g.i18n,h.default,f.default,a.fn,r.Input,p.default,d.default],isStrictMode:!0}),this))()}},39216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(93317),n=i(38069),r=i(39902),a=i(70508),o=i(32045),l=i(1519);class u extends s.default{get icon(){return this.args.bookmark?.get("reminder_at")?r.WITH_REMINDER_ICON:r.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,a.i18n)("bookmarks.create")}static #e=(()=>(0,o.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:()=>[n.default],isStrictMode:!0}),this))()}},39234:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(60569),n=i(77318);let r=!1,a={initialize(){r||((0,s.registerDeprecationHandler)((e,t,i)=>{let s=(0,n.consolePrefix)();i(s?`${s} ${e}`:e,t)}),r=!0)}}},39240:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(86981),r=i(64081),a=i(96848),o=i(15383),l=i(85024),u=i(13355),d=i(14051),c=i(22128),p=i(70508),h=i(1519);let m=dt7948.c(class extends s.default{uppyUpload=(()=>new c.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,d.default)("uppyUpload.uploading","uploadedAvatarId")]))();uploadLabel(){return this.uppyUpload.uploading?`${(0,p.i18n)("uploading")} ${this.uppyUpload.uploadProgress}%`:(0,p.i18n)("upload")}static #i=(()=>dt7948.n(this.prototype,"uploadLabel",[(0,d.default)("uppyUpload.uploading","uppyUpload.uploadProgress")]))();chooseImage(){this.uppyUpload.openPicker()}static #n=(()=>dt7948.n(this.prototype,"chooseImage",[n.action]))();static #a=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"OsC918ko",block:'[[[1,"\\n "],[11,"input"],[24,0,"hidden-upload-field"],[16,"disabled",[30,0,["uploading"]]],[24,"accept","image/*"],[24,"aria-hidden","true"],[24,4,"file"],[4,[32,0],[[30,0,["uppyUpload","setup"]]],null],[12],[13],[1,"\\n "],[8,[32,1],[[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,[32,2],["user.change_avatar.image_is_not_a_square"],null]],[13],[1,"\\n"]],[]],null],[1," "]],[],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/avatar-uploader.js",scope:()=>[a.default,u.default,p.i18n],isStrictMode:!0}),this))()},[(0,l.tagName)("span")])},39269:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){return e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},39416:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(75370),r=i(25021),a=i(76947),o=i(13355),l=i(27127),u=i(53329),d=i(1158),c=i(70508),p=i(1519),h=i(69522);let m=(0,n.default)((0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:"yljuARog",block:'[[[1,"\\n "],[1,[28,[32,0],["user-activity-bookmarks-page"],null]],[1,"\\n\\n "],[8,[32,1],null,[["@condition"],[[30,1,["loading"]]]],[["default"],[[[[1,"\\n "],[8,[32,2],null,[["@name","@connectorTagName"],["above-user-bookmarks","div"]],null],[1,"\\n\\n"],[41,[30,1,["permissionDenied"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[32,3],["bookmarks.list_permission_denied"],null]],[13],[1,"\\n"]],[]],[[[41,[30,1,["userDoesNotHaveBookmarks"]],[[[1," "],[8,[32,4],null,[["@title","@body"],[[28,[32,3],["user.no_bookmarks_title"],null],[30,1,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"inline-form full-width bookmark-search-form"],[12],[1,"\\n "],[8,[32,5],[[16,"placeholder",[28,[32,3],["bookmarks.search_placeholder"],null]],[24,1,"bookmark-search"],[24,"autocomplete","off"]],[["@type","@value","@enter"],["text",[30,1,["searchTerm"]],[30,1,["search"]]]],null],[1,"\\n "],[8,[32,6],[[24,0,"btn-primary"]],[["@action","@icon"],[[30,1,["search"]],"magnifying-glass"]],null],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["nothingFound"]],[[[1," "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[32,3],["user.no_bookmarks_search"],null]],[13],[1,"\\n"]],[]],[[[1," "],[8,[32,7],null,[["@bulkSelectHelper","@loadMore","@reload","@loadingMore","@content"],[[30,1,["bulkSelectHelper"]],[30,1,["loadMore"]],[30,1,["reload"]],[30,1,["loadingMore"]],[30,1,["model","bookmarks"]]]],null],[1,"\\n"]],[]]],[1," "]],[]]]],[]]],[1," "]],[]]]]],[1,"\\n "]],["@controller"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/bookmarks.js",scope:()=>[d.default,a.default,u.default,c.i18n,l.default,s.Input,o.default,r.default],isStrictMode:!0}),(0,h.default)(void 0,void 0)))},39443:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(75093),n=i(49679),r=i(27797);class a extends r.default{static #e=(()=>dt7948.g(this.prototype,"router",[s.service]))();#g=(()=>void dt7948.i(this,"router"))();async model(){return n.default.find()}}},39449:(e,t,i)=>{"use strict";function s(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}i.d(t,{A:()=>l});var n=0;function r(e){return"__private_"+n+++"_"+e}var a=r("uppy"),o=r("events");class l{constructor(e){Object.defineProperty(this,a,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:[]}),s(this,a)[a]=e}on(e,t){return s(this,o)[o].push([e,t]),s(this,a)[a].on(e,t)}remove(){for(let[e,t]of s(this,o)[o].splice(0))s(this,a)[a].off(e,t)}onFilePause(e,t){this.on("upload-pause",(i,s)=>{e===(null==i?void 0:i.id)&&t(s)})}onFileRemove(e,t){this.on("file-removed",i=>{e===i.id&&t(i.id)})}onPause(e,t){this.on("upload-pause",(i,s)=>{e===(null==i?void 0:i.id)&&t(s)})}onRetry(e,t){this.on("upload-retry",i=>{e===(null==i?void 0:i.id)&&t()})}onRetryAll(e,t){this.on("retry-all",()=>{s(this,a)[a].getFile(e)&&t()})}onPauseAll(e,t){this.on("pause-all",()=>{s(this,a)[a].getFile(e)&&t()})}onCancelAll(e,t){var i=this;this.on("cancel-all",function(){s(i,a)[a].getFile(e)&&t(...arguments)})}onResumeAll(e,t){this.on("resume-all",()=>{s(this,a)[a].getFile(e)&&t()})}}},39559:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var s=i(93317),n=i(73326),r=i(86981),a=i(75093),o=i(57079),l=i(13355),u=i(45141),d=i(63538),c=i(38069),p=i(11837),h=i(38575),m=i(32045),g=i(1519);class f extends s.default{static #e=(()=>dt7948.g(this.prototype,"adminTopicMenuButtons",[a.service]))();#uO=(()=>void dt7948.i(this,"adminTopicMenuButtons"))();static #i=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();onRegisterApi(e){this.dMenu=e}static #n=(()=>dt7948.n(this.prototype,"onRegisterApi",[r.action]))();async onButtonAction(e){await this.dMenu.close(),this.args[e]?.()}static #a=(()=>dt7948.n(this.prototype,"onButtonAction",[r.action]))();async onExtraButtonAction(e){await this.dMenu.close(),e?.()}static #l=(()=>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 #d=(()=>(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:"MVAWy7N4",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,[29,["btn-default btn-icon toggle-admin-menu ",[30,1]]]]],[["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,2,["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,2,["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,2,["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,2,["item"]],[[16,0,[52,[30,3,["closed"]],"topic-admin-open","topic-admin-close"]]],null,[["default"],[[[[1,"\\n "],[8,[32,4],null,[["@label","@action","@icon"],[[52,[30,3,["closed"]],"topic.actions.open","topic.actions.close"],[28,[32,5],[[30,0,["onButtonAction"]],"toggleClosed"],null],[52,[30,3,["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,2,["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,2,["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,2,["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,2,["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,2,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","canManageTopic"]],[[[1," "],[8,[30,2,["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,2,["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,2,["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,2,["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,2,["divider"]],null,null,null],[1,"\\n\\n"],[41,[30,0,["currentUser","staff"]],[[[1," "],[8,[30,2,["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,2,["item"]],null,null,[["default"],[[[[1,"\\n "],[8,[32,4],[[16,0,[28,[32,8],["btn-transparent",[30,4,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,4,["label"]],[30,4,["translatedLabel"]],[30,4,["icon"]],[28,[32,5],[[30,0,["onExtraButtonAction"]],[30,4,["action"]]],null]]],null],[1,"\\n "]],[]]]]],[1,"\\n"]],[4]],null]],[]],null],[1," "]],[2]]]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "]],["@buttonClasses","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,c.default,u.default,o.or,l.default,n.fn,o.and,o.not,d.default],isStrictMode:!0}),this))()}},39573:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(93317),n=i(70508),r=i(32045),a=i(1519);class o extends s.default{adjustAggregatedData(e){let t=[];return e.forEach(e=>{let i=new Date(`${e.viewed_at}T00:00:00Z`),s=i.toLocaleDateString(n.default.currentBcp47Locale,{year:"numeric",month:"2-digit",day:"2-digit"}),r=t.find(e=>e.dateStr===s);r?r.views+=e.views:t.push({dateStr:s,views:e.views,localDate:i})}),t.map(e=>({viewed_at:e.localDate.toISOString().split("T")[0],views:e.views}))}formatDate(e){return e.toLocaleDateString(n.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,a.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))()}},39601:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o,replaceEmoji:()=>a});var s=i(67698),n=i(35697),r=i(30507);function a(e){let t=(0,s.emojiUnescape)((0,n.escapeExpression)(e));return[new r.default({html:`${t}`})]}let o=(0,i(88627).createWidget)("emoji",{tagName:"img.emoji",buildAttributes(e){let t={src:(0,s.emojiUrlFor)(e.name),alt:`:${e.alt||e.name}:`};return e.title&&(t.title="string"==typeof e.title?e.title:e.name),t}})},39631:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(41154),n=i(80484),r=i(47920),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"w+EHpaL1",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 "],[8,[32,0],null,[["@username","@ariaHidden"],[[30,1,["username"]],true]],[["default"],[[[[1,"\\n "],[1,[28,[32,1],[[30,1]],[["imageSize"],["large"]]]],[1,"\\n "]],[]]]]],[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 "],[8,[32,0],null,[["@username"],[[30,1,["username"]]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[28,[32,2],[[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,2],[[30,1,["name"]]],null],[[[1," "],[1,[30,1,["username"]]],[1,"\\n"]],[]],[[[1," "],[1,[30,1,["name"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "]],[]]]]],[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.default,s.default,n.prioritizeNameInUx],isStrictMode:!0}),(0,l.default)(void 0,"about-page-user:AboutPageUser"))},39668:(e,t,i)=>{"use strict";let s;i.r(t),i.d(t,{createHelperContext:()=>m,findHelper:()=>p,helperContext:()=>g,htmlHelper:()=>u,makeArray:()=>l,registerHelper:()=>c,registerHelpers:()=>h,registerRawHelper:()=>_,registerUnbound:()=>f});var n=i(57165),r=i(94160),a=i(9032),o=i(63272);function l(e){return null==e?[]:Array.isArray(e)?e:[e]}function u(e){return(0,o.default)('htmlHelper is deprecated. Use a plain function and `htmlSafe()` from "@ember/template" instead.',{id:"discourse.html-helper"}),n.default.helper(function(){for(var t=arguments.length,i=Array(t),s=0;s1?i[0].concat({hash:i[i.length-1]}):i,(0,a.htmlSafe)(e.apply(this,i)||"")})}let d={};function c(e,t){d[e]=n.default.helper(t)}function p(e){return d[e]||d[(0,r.dasherize)(e)]}function h(e){Object.keys(d).forEach(t=>{e.register(`helper:${t}`,d[t],{singleton:!1})})}function m(e){s=e}function g(){return s}function f(e,t){(0,o.default)(`[registerUnbound ${e}] registerUnbound is deprecated. Instead, you should export a default function from 'discourse/helpers/${e}.js'.`,{id:"discourse.register-unbound"}),d[e]=class extends n.default{compute(e,i){return t(...e,i)}}}function _(e){(0,o.default)(`[registerRawHelper ${e}] the raw handlebars system has been removed, so calls to registerRawHelper should be removed.`,{id:"discourse.register-raw-helper"})}},39723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n,homepageDestination:()=>a,homepageRewriteParam:()=>r});var s=i(35697);function n(e){let t=e._routerMicrolib;for(let e of["updateURL","replaceURL"]){let i=t[e].bind(t);t[e]=function(e){return i(e=function(e,t){let i=t?.intent?.url;if(i?.startsWith(a())||i?.startsWith("/login-required")||t?.intent.name===`discovery.${(0,s.defaultHomepage)()}`&&t?.intent.queryParams[r]){let t=(i||e).split("?",2)[1];if(e="/",t){let i=new URLSearchParams(t);i.delete(r),i.size&&(e+=`?${i.toString()}`)}}return e}(e,this.activeTransition))}}}let r="_discourse_homepage_rewrite";function a(){return`/${(0,s.defaultHomepage)()}?${r}=1`}},39762:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(27797);class n extends s.default{model(){return this.store.find("reviewable-settings")}setupController(e,t){e.set("settings",t)}}},39826:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CLOSE_INITIATED_BY_BUTTON:()=>D,CLOSE_INITIATED_BY_CLICK_OUTSIDE:()=>x,CLOSE_INITIATED_BY_ESC:()=>M,CLOSE_INITIATED_BY_MODAL_SHOW:()=>E,CLOSE_INITIATED_BY_SWIPE_DOWN:()=>L,default:()=>P});var s=i(93317),n=i(7155),r=i(96791),a=i(86981),o=i(96848),l=i(85754),u=i(75093),d=i(7953),c=i(57079),p=i(71277),h=i(13355),m=i(52802),g=i(63538),f=i(69287),_=i(21255),y=i(25839),b=i(14051),w=i(19349),k=i(58470),T=i(68223),S=i(32045),C=i(1519);let A=(0,i(96900).A)(i(7155)).cached,D="initiatedByCloseButton",M="initiatedByESC",x="initiatedByClickOut",E="initiatedByModalShow",L="initiatedBySwipeDown";class P extends s.default{static #e=(()=>dt7948.g(this.prototype,"modal",[u.service]))();#h=(()=>void dt7948.i(this,"modal"))();static #i=(()=>dt7948.g(this.prototype,"site",[u.service]))();#_=(()=>void dt7948.i(this,"site"))();static #n=(()=>dt7948.g(this.prototype,"appEvents",[u.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #a=(()=>dt7948.g(this.prototype,"capabilities",[u.service]))();#s=(()=>void dt7948.i(this,"capabilities"))();static #l=(()=>dt7948.g(this.prototype,"wrapperElement",[n.tracked]))();#uR=(()=>void dt7948.i(this,"wrapperElement"))();static #d=(()=>dt7948.g(this.prototype,"animating",[n.tracked],function(){return!1}))();#uU=(()=>void dt7948.i(this,"animating"))();registerModalContainer=(()=>(0,d.modifier)(e=>{this.modalContainer=e}))();setupModalBody=(()=>(0,d.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,w.getMaxAnimationTimeMs)(),easing:"ease",fill:"forwards"}).finished,this.animating=!1),this.wrapperElement=e}static #p=(()=>dt7948.n(this.prototype,"setupModal",[a.action]))();cleanupModal(){document.documentElement.removeEventListener("keydown",this.handleDocumentKeydown),this.appEvents.off("keyboard-visibility-change",this.handleKeyboardVisibilityChange)}static #m=(()=>dt7948.n(this.prototype,"cleanupModal",[a.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.#uB(e.deltaY)}static #f=(()=>dt7948.n(this.prototype,"handleSwipe",[a.action]))();async handleSwipeEnded(e){if(!this.animating){if(e.goingUp()||e.velocityY<.4)return await this.#uB(0);this.modalContainer.style.transform=`translateY(${e.deltaY}px)`,this.closeModal(L)}}static #y=(()=>dt7948.n(this.prototype,"handleSwipeEnded",[a.action]))();handleWrapperPointerDown(e){e.stopPropagation()}static #v=(()=>dt7948.n(this.prototype,"handleWrapperPointerDown",[a.action]))();handleWrapperClick(e){if(0===e.button&&this.dismissable)return this.closeModal(x)}static #k=(()=>dt7948.n(this.prototype,"handleWrapperClick",[a.action]))();async closeModal(e){if(this.args.closeModal){if(this.site.mobileView&&(this.animating=!0,this.#uY(window.innerHeight),await this.#uB(this.modalContainer.clientHeight),this.animating=!1),this.site.desktopView)try{this.animating=!0,await this.#uH()}finally{this.animating=!1}this.args.closeModal({initiatedBy:e})}}static #S=(()=>dt7948.n(this.prototype,"closeModal",[a.action]))();handleDocumentKeydown(e){!this.args.hidden&&("Escape"===e.key&&this.dismissable&&(e.stopPropagation(),this.closeModal(M)),"Enter"===e.key&&this.shouldTriggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".d-modal__footer .btn-primary")?.click(),e.preventDefault()))}static #A=(()=>dt7948.n(this.prototype,"handleDocumentKeydown",[a.action]))();handleCloseButton(){this.closeModal(D)}static #M=(()=>dt7948.n(this.prototype,"handleCloseButton",[a.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 #E=(()=>dt7948.n(this.prototype,"dynamicElement",[A]))();handleKeyboardVisibilityChange(e){e&&this.capabilities.isIOS&&!this.capabilities.isIpadOS&&window.scrollTo(0,0)}static #P=(()=>dt7948.n(this.prototype,"handleKeyboardVisibilityChange",[b.bind]))();#uY(e){let t=this.wrapperElement.nextElementSibling;if(!t)return;let i=1-e/this.modalContainer.clientHeight;t.animate([{opacity:Math.max(0,Math.min(i,.6))}],{fill:"forwards"})}async #uB(e){this.#uY(e),await this.modalContainer.animate([{transform:`translateY(${e}px)`}],{fill:"forwards",duration:(0,w.getMaxAnimationTimeMs)()}).finished}async #uH(){let e=this.wrapperElement.nextElementSibling;e&&await Promise.all([this.modalContainer.animate([{transform:"scale(1)",opacity:1,offset:0},{transform:"scale(0)",opacity:0,offset:1}],{fill:"forwards",duration:(0,w.getMaxAnimationTimeMs)(300),easing:"cubic-bezier(0.4, 0, 0.2, 1)"}).finished,e.animate([{opacity:.6},{opacity:0}],{fill:"forwards",duration:(0,w.getMaxAnimationTimeMs)(300),easing:"cubic-bezier(0.4, 0, 0.2, 1)"}).finished])}static #I=(()=>(0,S.setComponentTemplate)((0,C.createTemplateFactory)({id:"Xypvnm6P",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],[4,[32,12],["pointerdown",[30,0,["handleWrapperPointerDown"]]],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,o.default,l.default,T.default,c.and,c.not,c.or,k.default,h.default,m.default,r.on],isStrictMode:!0}),this))()}},39829:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(59294),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[n.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"router",[n.service]))();#g=(()=>void dt7948.i(this,"router"))();static #n=(()=>dt7948.g(this.prototype,"messageBus",[n.service]))();#c=(()=>void dt7948.i(this,"messageBus"))();static #a=(()=>dt7948.g(this.prototype,"appEvents",[n.service]))();#t=(()=>void dt7948.i(this,"appEvents"))();static #l=(()=>dt7948.g(this.prototype,"topicTrackingState",[n.service]))();#t0=(()=>void dt7948.i(this,"topicTrackingState"))();static #d=(()=>dt7948.g(this.prototype,"site",[n.service]))();#_=(()=>void dt7948.i(this,"site"))();static #p=(()=>dt7948.g(this.prototype,"siteSettings",[n.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();anonymous=!1;get sections(){return this.anonymous?this.site.anonymous_sidebar_sections:this.currentUser.sidebarSections}static #m=(()=>(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"OV58iLbc",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","@toggleNavigationMenu"],[[30,1],[30,2],[30,3]]],null],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n "]],["section","@collapsable","@toggleNavigationMenu"],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))()}},39902:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AUTO_DELETE_PREFERENCES:()=>b,NO_REMINDER_ICON:()=>w,WITH_REMINDER_ICON:()=>k,default:()=>T});var s=i(86981),n=i(91558),r=i(94160),a=i(15383),o=i(31075),l=i(87367),u=i(20037),d=i(14051),c=i(91035),p=i(11837),h=i(56382),m=i(47872),g=i(63159),f=i(25217),_=i(70508),y=i(23062);let b={NEVER:0,CLEAR_REMINDER:3,WHEN_REMINDER_SENT:1,ON_OWNER_REPLY:2},w="bookmark",k="discourse-bookmark-clock";class T extends m.default{static create(e){return(e=e||{}).currentUser=e.currentUser||f.default.current(),e.user=f.default.create(e.user),super.create(e)}static createFor(e,t,i){return T.create({bookmarkable_type:t,bookmarkable_id:i,user_id:e.id,auto_delete_preference:e.user_option.bookmark_auto_delete_preference})}static bulkOperation(e,t){let i={bookmark_ids:e.mapBy("id"),operation:t};return(0,l.ajax)("/bookmarks/bulk",{type:"PUT",data:i})}static async applyTransformations(e){await (0,h.applyModelTransformations)("bookmark",e)}static #e=(()=>dt7948.g(this.prototype,"newBookmark",[(0,n.none)("id")]))();#uq=(()=>void dt7948.i(this,"newBookmark"))();get url(){return(0,p.default)(`/bookmarks/${this.id}`)}static #i=(()=>dt7948.n(this.prototype,"url",[s.computed]))();destroy(){return this.newBookmark?o.Promise.resolve():(0,l.ajax)(this.url,{type:"DELETE"})}attachedTo(){return{target:this.bookmarkable_type.toLowerCase(),targetId:this.bookmarkable_id}}togglePin(){return this.newBookmark?o.Promise.resolve():(0,l.ajax)(this.url+"/toggle_pin",{type:"PUT"})}pinAction(){return this.pinned?"unpin":"pin"}lastPostUrl(e){return this.urlForPostNumber(e)}static #n=(()=>dt7948.n(this.prototype,"lastPostUrl",[(0,d.default)("highest_post_number","url")]))();urlForPostNumber(e){let t=(0,p.default)(`/t/${this.topic_id}`);return e>0&&(t+=`/${e}`),t}bumpedAt(e,t){return e?new Date(e):t}static #a=(()=>dt7948.n(this.prototype,"bumpedAt",[(0,d.default)("bumped_at","createdAt")]))();bumpedAtTitle(e,t){let i="YYYY-MM-DDTHH:mm:ss";if(moment(e).isValid()&&moment(t).isValid())return moment(e).format(i)!==moment(t).format(i)?`${(0,_.i18n)("topic.created_at",{date:(0,c.longDate)(t)})} ${(0,_.i18n)("topic.bumped_at",{date:(0,c.longDate)(e)})}`:(0,_.i18n)("topic.created_at",{date:(0,c.longDate)(t)})}static #l=(()=>dt7948.n(this.prototype,"bumpedAtTitle",[(0,d.default)("bumpedAt","createdAt")]))();reminderTitle(e,t){return(0,a.isEmpty)(t)?(0,_.i18n)("bookmarks.created_generic",{name:e||""}):(0,_.i18n)("bookmarks.created_with_reminder_generic",{date:(0,u.formattedReminderTime)(t,this.currentUser?.user_option?.timezone||moment.tz.guess()),name:e||""})}static #d=(()=>dt7948.n(this.prototype,"reminderTitle",[(0,d.default)("name","reminder_at")]))();createdAt(e){return new Date(e)}static #p=(()=>dt7948.n(this.prototype,"createdAt",[(0,d.default)("created_at")]))();visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e;let t=this.title,i=[];return e.forEach(function(e){t.toLowerCase().includes(e)||i.push(e)}),i}static #m=(()=>dt7948.n(this.prototype,"visibleListTags",[(0,d.default)("tags")]))();get category(){return y.default.findById(this.category_id)}static #f=(()=>dt7948.n(this.prototype,"category",[(0,s.computed)("category_id")]))();formattedReminder(e,t){return(0,r.capitalize)((0,u.formattedReminderTime)(e,t?.user_option?.timezone||moment.tz.guess()))}static #y=(()=>dt7948.n(this.prototype,"formattedReminder",[(0,d.default)("reminder_at","currentUser")]))();reminderAtExpired(e){return moment(e)dt7948.n(this.prototype,"reminderAtExpired",[(0,d.default)("reminder_at")]))();topicForList(){let e="Topic"===this.bookmarkable_type?null:this.linked_post_number;return g.default.create({id:this.topic_id,fancy_title:this.fancy_title,linked_post_number:e,last_read_post_number:this.last_read_post_number,highest_post_number:this.highest_post_number})}static #k=(()=>dt7948.n(this.prototype,"topicForList",[(0,d.default)()]))();bookmarkableTopicAlike(e){return["Topic","Post"].includes(e)}static #S=(()=>dt7948.n(this.prototype,"bookmarkableTopicAlike",[(0,d.default)("bookmarkable_type")]))();hasMetadata(){return this.reminder_at||this.name}static #A=(()=>dt7948.n(this.prototype,"hasMetadata",[(0,d.default)("reminder_at","name")]))()}},39904:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.default});var s=i(76806)},40069:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(93317),n=i(75093),r=i(30022),a=i(32045),o=i(1519);class l extends s.default{static #e=(()=>dt7948.g(this.prototype,"sidebarState",[n.service]))();#ty=(()=>void dt7948.i(this,"sidebarState"))();get panelCssClass(){return`${this.sidebarState.currentPanel.key}-panel`}static #i=(()=>(0,a.setComponentTemplate)((0,o.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))()}},40077:(e,t,i)=>{"use strict";i.r(t),i.d(t,{isDestroyed:()=>r,isDestroying:()=>n});var s=i(30769);let n=s.default._isDestroying,r=s.default._isDestroyed},40105:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>o});var s=i(63272),n=i(71455),r=i(18693),a=i(25217);let o={after:"sniff-capabilities",initialize(e){(0,n.setDefaultOwner)(e.__container__),window.Discourse=e,Object.defineProperty(e,"SiteSettings",{get:()=>((0,s.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,s.default)("import discourse/models/user instead of using Discourse.User",{since:"2.8",dropFrom:"3.2",id:"discourse.global.user"}),a.default)}),Object.defineProperty(e,"Site",{get:()=>((0,s.default)("import discourse/models/site instead of using Discourse.Site",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site"}),r.default)})},teardown(){delete window.Discourse}}},40171:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(54187);let n=(0,s.default)("user","private-messages",s.INBOX_FILTER)},40248:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n});var s=i(24813);function n(e){return(0,s._getCurrentRunLoop)()?e():(0,s.run)(e)}},40254:function(e,t,i){!function(e,t){t(i(84571))}(0,function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})})},40276:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CUSTOM_TABS_CLASSES:()=>r,default:()=>n,registerUserMenuTab:()=>a,resetUserMenuTabs:()=>o});var s=i(70508);class n{constructor(e,t,i){this.currentUser=e,this.siteSettings=t,this.site=i}get shouldDisplay(){return!0}get count(){return 0}get title(){let e,t=this.id.replaceAll(/-/g,"_"),i=this.count;return e=this.count?`user_menu.tabs.${t}_with_unread`:`user_menu.tabs.${t}`,(0,s.i18n)(e,{count:i})}get panelComponent(){throw Error("not implemented")}get id(){throw Error("not implemented")}get icon(){throw Error("not implemented")}get notificationTypes(){}getUnreadCountForType(e){let t=`grouped_unread_notifications.${this.site.notification_types[e]}`,i=`grouped_unread_high_priority_notifications.${this.site.notification_types[e]}`;return this.currentUser.get(t)||this.currentUser.get(i)||0}}let r=[];function a(e){r.push(e(n))}function o(){r.length=0}},40357:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(75370),n=i(76162),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"eKbOG6XZ",block:'[[[1,"\\n "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n "],[10,"h3"],[12],[1,[28,[32,0],["tagging.groups.new_title"],null]],[13],[1,"\\n "],[8,[32,1],null,[["@model","@onSave"],[[30,1,["model"]],[30,1,["onSave"]]]],null],[1,"\\n "],[13],[1,"\\n "]],["@controller"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/tag-groups-new.js",scope:()=>[r.i18n,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},40395:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>w});var s=i(93317),n=i(7155),r=i(96791),a=i(86981),o=i(75093),l=i(13355),u=i(39826),d=i(50817),c=i(992),p=i(42638),h=i(87367),m=i(16356),g=i(70508),f=i(88444),_=i.n(f),y=i(32045),b=i(1519);class w extends s.default{static #e=(()=>dt7948.g(this.prototype,"router",[o.service]))();#g=(()=>void dt7948.i(this,"router"))();static #i=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#o=(()=>void dt7948.i(this,"dialog"))();static #n=(()=>dt7948.g(this.prototype,"showPreview",[n.tracked],function(){return!1}))();#C=(()=>void dt7948.i(this,"showPreview"))();togglePreview(){this.showPreview=!this.showPreview}static #a=(()=>dt7948.n(this.prototype,"togglePreview",[a.action]))();editTemplate(){this.router.transitionTo("adminCustomizeFormTemplates.edit",this.args.model)}static #l=(()=>dt7948.n(this.prototype,"editTemplate",[a.action]))();deleteTemplate(){return this.dialog.yesNoConfirm({message:(0,g.i18n)("admin.form_templates.delete_confirm",{template_name:this.args.model.name}),didConfirm:()=>{(0,h.ajax)(`/admin/customize/form-templates/${this.args.model.id}.json`,{type:"DELETE"}).then(()=>{this.args.refreshModel()}).catch(m.popupAjaxError)}})}static #d=(()=>dt7948.n(this.prototype,"deleteTemplate",[a.action]))();static #p=(()=>(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:"48yDYrc+",block:'[[[1,"\\n "],[8,[32,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,[32,1],[[24,0,"form-templates__preview-toggle"],[4,[32,2],["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,[32,3],null,[["@id"],[[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[32,4],null,[["@lang","@code"],["yaml",[30,1,["template"]]]],null],[1,"\\n"]],[]]],[1," "]],[]],[[[1,"\\n "],[8,[32,5],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["editTemplate"]],"pencil","admin.form_templates.view_template.edit"]],null],[1,"\\n "],[8,[32,6],null,[["@close"],[[30,2]]],null],[1,"\\n "],[8,[32,5],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteTemplate"]],"trash-can","admin.form_templates.view_template.delete"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@model","@closeModal"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/customize-form-template-view.js",scope:()=>[u.default,c.default,r.on,p.default,_(),l.default,d.default],isStrictMode:!0}),this))()}},40405:(e,t,i)=>{"use strict";e.exports=new(i(15534))("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},40413:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s}),i(60569);let s=i(82876).default.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:n("register"),unregister:n("unregister"),hasRegistration:n("has"),registeredOption:n("getOption"),registerOptions:n("options"),registeredOptions:n("getOptions"),registerOptionsForType:n("optionsForType"),registeredOptionsForType:n("getOptionsForType")});function n(e){return function(){return this.__registry__[e](...arguments)}}},40419:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n}),i(86981),i(57330),i(71729),i(60569),i(89352),i(77188),i(77061);var s=i(34100);function n(e){let t=e.__container__.lookup("service:-routing");return(0,s.g)(t,"currentRouteName")}i(28543),i(76169),i(93892),i(90760),i(11719),i(90400),i(50890)},40428:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var s=i(85024),n=i(43193),r=i(29931),a=i(87542);let o="MORE_GROUPS_COLLECTION",l=dt7948.c(class extends r.default{init(){super.init(...arguments),this.insertAfterCollection(a.MAIN_COLLECTION,o)}modifyComponentForCollection(e){if(e===o)return n.default}modifyContent(e){let t=this.selectKit.options.displayedGroupsLimit;return e.length>t?(this.showFilterForMore=!0,e=e.slice(0,t)):this.showFilterForMore=!1,e}modifyContentForCollection(e){if(e===o)return{shouldShowMoreTip:this.showFilterForMore}}},[(0,a.pluginApiIdentifiers)("group-chooser"),(0,a.selectKitOptions)({allowAny:!1,displayedGroupsLimit:100}),(0,s.classNames)("group-chooser")])},40457:(e,t,i)=>{var s=i(98414),n=/[^a-zA-Z0-9\\_:.-]/gim;function r(e){return!function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e:e.substr(1,e.length-2)}t.parseTag=function(e,t,i){"use strict";var n="",r=0,a=!1,o=!1,l=0,u=e.length,d="",c="";e:for(l=0;l"===p||l===u-1){n+=i(e.slice(r,a)),d=function(e){var t,i=s.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=s.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(c=e.slice(a,l+1)),n+=t(a,n.length,d,c,function(e){return"0;t--){var i=e[t];if(" "!==i){if("="===i)return t;return -1}}}(e,c-1)))continue;d(l,r(s.trim(e.slice(i,c)))),l=!1,i=c+1;continue}}return i{"use strict";i.r(t),i.d(t,{default:()=>m});var s=i(32045),n=i(96791),r=i(86981),a=i(24813),o=i(85024),l=i(38161),u=i(31075),d=i(14051),c=i(49349),p=i(70508),h=i(1519);let m=dt7948.c(class extends s.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,d.default)("site.mobileView")]))();click(e){e.stopPropagation()}didInsertElement(){super.didInsertElement(...arguments),(0,a.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,c.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,p.i18n)("dates.previous_month"),nextMonth:(0,p.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),u.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 #i=(()=>dt7948.n(this.prototype,"_destroy",[(0,l.on)("willDestroyElement")]))();get placeholder(){return this._placeholder||(0,p.i18n)("dates.placeholder")}static #n=(()=>dt7948.n(this.prototype,"placeholder",[(0,r.computed)("_placeholder")]))();set placeholder(e){this.set("_placeholder",e)}_opts(){return null}_toggleHasValueClass(e){let t=this.element.querySelector(".date-picker");t&&(e?t.classList.add("--has-value"):t.classList.remove("--has-value"))}onChangeDate(e){this._toggleHasValueClass(e.target.value),this._handleSelection(e.target.value)}static #a=(()=>dt7948.n(this.prototype,"onChangeDate",[r.action]))();static #l=(()=>(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:"4ieVrfch",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[16,1,[30,0,["inputId"]]],[4,[32,1],["input",[30,0,["onChangeDate"]]],null]],[["@type","@value"],[[30,0,["inputType"]],[28,[31,0],[[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],[1," "]],[],false,["readonly","unless"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/date-input.js",scope:()=>[s.Input,n.on],isStrictMode:!0}),this))()},[(0,o.classNames)("d-date-input")])},40555:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(27797),n=i(70508);class r extends s.default{titleToken(){return(0,n.i18n)("groups.manage.profile.title")}}},40633:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>u});var s=i(96791),n=i(38069),r=i(70508),a=i(32045),o=i(1519),l=i(69522);let u=(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"GNtbf8nb",block:'[[[1,"\\n "],[11,3],[24,0,"clear-search"],[24,"aria-label","clear_input"],[16,"title",[28,[32,0],["search.clear_search"],null]],[24,6,""],[4,[32,1],["click",[30,1]],null],[12],[1,"\\n "],[1,[28,[32,2],["xmark"],null]],[1,"\\n "],[13],[1,"\\n"]],["@clearSearch"],false,[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/clear-button.js",scope:()=>[r.i18n,s.on,n.default],isStrictMode:!0}),(0,l.default)(void 0,"clear-button"))},40650:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var s=i(93317),n=i(7155),r=i(86981),a=i(75093),o=i(13355),l=i(39826),u=i(70508),d=i(32045),c=i(1519);class p extends s.default{static #e=(()=>dt7948.g(this.prototype,"currentUser",[a.service]))();#r=(()=>void dt7948.i(this,"currentUser"))();static #i=(()=>dt7948.g(this.prototype,"siteSettings",[a.service]))();#b=(()=>void dt7948.i(this,"siteSettings"))();static #n=(()=>dt7948.g(this.prototype,"deletingTopic",[n.tracked],function(){return!1}))();#uz=(()=>void dt7948.i(this,"deletingTopic"))();static #a=(()=>dt7948.g(this.prototype,"flash",[n.tracked]))();#sJ=(()=>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,u.i18n)("post.controls.delete_topic_error"),this.deletingTopic=!1}}static #l=(()=>dt7948.n(this.prototype,"deleteTopic",[r.action]))();static #d=(()=>(0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"y4epOioC",block:'[[[1,"\\n "],[8,[32,0],[[24,0,"delete-topic-confirm-modal"]],[["@title","@closeModal","@flash"],[[28,[32,1],["topic.actions.delete"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n "],[10,2],[12],[1,"\\n "],[1,[28,[32,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,[32,2],[[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,[32,2],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"post.controls.delete_topic_confirm_modal_no"]],null],[1,"\\n "]],[]]]]],[1,"\\n "]],["@closeModal"],false,["if"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/delete-topic-confirm.js",scope:()=>[l.default,u.i18n,o.default],isStrictMode:!0}),this))()}},40657:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>h});var s=i(73326),n=i(75370),r=i(63724),a=i(53329),o=i(1158),l=i(10458),u=i(70508),d=i(32045),c=i(1519),p=i(69522);let h=(0,n.default)((0,d.setComponentTemplate)((0,c.createTemplateFactory)({id:"7KjyXftR",block:'[[[1,"\\n "],[1,[28,[32,0],["user-badges-page"],null]],[1,"\\n\\n "],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n "],[8,[32,1],null,[["@name","@outletArgs"],["user-badges-content",[28,[32,2],null,[["sortedBadges","maxFavBadges","favoriteBadges","canFavoriteMoreBadges","favorite"],[[30,1,["sortedBadges"]],[30,1,["siteSettings","max_favorite_badges"]],[30,1,["favoriteBadges"]],[30,1,["canFavoriteMoreBadges"]],[30,1,["favorite"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,1,["siteSettings","max_favorite_badges"]],[[[1," "],[10,2],[14,0,"favorite-count"],[12],[1,"\\n "],[1,[28,[32,3],["badges.favorite_count"],[["count","max"],[[30,1,["favoriteBadges","length"]],[30,1,["siteSettings","max_favorite_badges"]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["sortedBadges"]]],null]],null],null,[[[1," "],[8,[32,4],null,[["@badge","@count","@canFavorite","@isFavorite","@username","@canFavoriteMoreBadges","@onFavoriteClick","@filterUser"],[[30,2,["badge"]],[30,2,["count"]],[30,2,["can_favorite"]],[30,2,["is_favorite"]],[30,1,["username"]],[30,1,["canFavoriteMoreBadges"]],[28,[32,5],[[30,1,["favorite"]],[30,2]],null],"true"]],null],[1,"\\n"]],[2]],null],[1," "],[8,[32,1],null,[["@name","@outletArgs"],["after-user-profile-badges",[28,[32,2],null,[["user"],[[30,1,["user","model"]]]]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n "]],["@controller","ub"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/user/badges.js",scope:()=>[o.default,a.default,l.default,u.i18n,r.default,s.fn],isStrictMode:!0}),(0,p.default)(void 0,void 0)))},40708:(e,t,i)=>{"use strict";i.r(t),i.d(t,{addAdminSidebarSectionLink:()=>w,clearAdditionalAdminSidebarSectionLinks:()=>_,default:()=>k,useAdminNavConfig:()=>b}),i(7155),i(60569);var s=i(14959),n=i(91399),r=i(71455),a=i(11837),o=i(34472),l=i(84530),u=i(46235),d=i(25354),c=i(2427),p=i(78863),h=i(35697),m=i(70508);let g=(0,i(96900).A)(i(7155)).cached,f={};function _(){f={}}class y extends c.default{constructor(e){let{adminSidebarNavLink:t,adminSidebarStateManager:i,router:s,currentUser:n}=e;super(...arguments),this.router=s,this.currentUser=n,this.adminSidebarNavLink=t,this.adminSidebarStateManager=i}get name(){return this.adminSidebarNavLink.name}get classNames(){return"admin-sidebar-nav-link"}get route(){return this.adminSidebarNavLink.route}get href(){if(this.adminSidebarNavLink.href)return(0,a.default)(this.adminSidebarNavLink.href)}get query(){return this.adminSidebarNavLink.query}get models(){return this.adminSidebarNavLink.routeModels}get text(){return this.adminSidebarNavLink.label?(0,m.i18n)(this.adminSidebarNavLink.label,{translatedFallback:this.adminSidebarNavLink.text}):this.adminSidebarNavLink.text}get prefixType(){return"icon"}get prefixValue(){return this.adminSidebarNavLink.icon}get title(){return this.adminSidebarNavLink.text}get currentWhen(){return"adminPlugins.show.settings"===this.router.currentRoute.name&&this.adminSidebarNavLink.route?.split(".").last===this.router.currentRoute.parent.params.plugin_id?this.router.currentRoute.name:this.adminSidebarNavLink.currentWhen?this.adminSidebarNavLink.currentWhen:void 0}get keywords(){return this.adminSidebarStateManager.keywords[this.adminSidebarNavLink.name]||{navigation:[]}}get suffixType(){if(this.#u$)return"icon"}get suffixValue(){if(this.#u$)return"circle"}get suffixCSSClass(){if(this.#u$)return"admin-sidebar-nav-link__dot"}get #u$(){return"admin_whats_new"===this.adminSidebarNavLink.name&&this.currentUser.hasUnseenFeatures}}function b(e){for(let[t,i]of Object.entries(f)){let s=e.find(e=>e.name===t);s&&i.length&&s.links.push(...i)}return e}function w(e,t){return(f.hasOwnProperty(e)||(f[e]=[]),t.name=`admin_additional_${e}_${t.name}`,t.href||t.route)?t.label||t.text?t.label&&(0,m.i18n)(t.label)===m.default.missingTranslation(t.label,null,{})?void console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have a valid I18n label, got ${t.label}`):void f[e].push(t):void console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have either label (which is an I18n key) or text`):void console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have either href or route`)}class k extends u.default{key=(()=>p.ADMIN_PANEL)();hidden=!0;displayHeader=!0;expandActiveSection=!0;scrollActiveLinkIntoView=!0;get sections(){let e=(0,r.getOwnerWithFallback)(this).lookup("service:current-user"),t=(0,r.getOwnerWithFallback)(this).lookup("service:site-settings"),i=(0,r.getOwnerWithFallback)(this).lookup("service:store"),a=(0,r.getOwnerWithFallback)(this).lookup("service:router"),u=(0,r.getOwnerWithFallback)(this).lookup("service:session");this.adminSidebarStateManager=(0,r.getOwnerWithFallback)(this).lookup("service:admin-sidebar-state-manager");let c=this.adminSidebarStateManager.navConfig||l.ADMIN_NAV_MAP;if(!u.get("safe_mode")){let e=c.find(e=>"plugins"===e.name).links;(function(e){return(o.default.get("visiblePlugins")||[]).filter(t=>!!t.admin_route&&!!t.enabled&&!!(0,n.adminRouteValid)(e,t.admin_route)).map(e=>{let t=e.admin_route.use_new_show_route?"adminPlugins.show":`adminPlugins.${e.admin_route.location}`,i=(0,s.configNavForPlugin)(e.name),n=[];return i&&(Array.isArray(i.links)&&(n=[...i.links]),n.length&&(n=n.map(i=>(i.icon||(i.icon="gear"),i.route!==`${t}.${e.name}`)?(i.routeModels=[e.name],i):void 0).compact())),{name:`admin_plugin_${e.admin_route.location}`,route:t,routeModels:e.admin_route.use_new_show_route?[e.admin_route.location]:[],label:e.admin_route.label,text:e.humanized_name,icon:"gear",description:e.description,links:n}})})(a).forEach(t=>{e.mapBy("name").includes(t.name)||e.push(t)}),this.adminSidebarStateManager.setLinkKeywords("admin_installed_plugins",function(){return(o.default.get("visiblePlugins")||[]).mapBy("name")}())}i.findAll("theme").then(e=>{this.adminSidebarStateManager.setLinkKeywords("admin_themes_and_components",e.content.rejectBy("component").mapBy("name")),this.adminSidebarStateManager.setLinkKeywords("admin_themes_and_components",e.content.filterBy("component").mapBy("name"))}),t.experimental_form_templates&&c.find(e=>"appearance"===e.name).links.push({name:"admin_customize_form_templates",route:"adminCustomizeFormTemplates",label:"admin.form_templates.nav_title",icon:"list"}),t.use_overhauled_theme_color_palette&&(c.find(e=>"appearance"===e.name).links.find(e=>"admin_color_palettes"===e.name).route="adminConfig.colorPalettes"),c.forEach(e=>e.links.forEach(e=>{e.keywords&&this.adminSidebarStateManager.setLinkKeywords(e.name,(0,m.i18n)(e.keywords).split("|"))}));let h=b(c);return!e.admin&&e.moderator&&(h.forEach(e=>{e.links=e.links.filter(e=>e.moderator)}),h=h.filterBy("links.length")),h.map(t=>(function(e,t,i,s){return class extends d.default{constructor(){super(...arguments),this.adminNavSectionData=e,this.hideSectionHeader=e.hideSectionHeader,this.adminSidebarStateManager=t}get sectionLinks(){return this.adminNavSectionData.links}get name(){return`${p.ADMIN_PANEL}-${this.adminNavSectionData.name}`}get title(){return this.adminNavSectionData.text}get text(){return this.adminNavSectionData.label?(0,m.i18n)(this.adminNavSectionData.label):this.adminNavSectionData.text}get links(){return this.sectionLinks.map(e=>new y({adminSidebarNavLink:e,adminSidebarStateManager:this.adminSidebarStateManager,router:i,currentUser:s}))}get displaySection(){return!0}get collapsedByDefault(){return"root"!==this.adminNavSectionData.name}}})(t,this.adminSidebarStateManager,a,e))}static #e=(()=>dt7948.n(this.prototype,"sections",[g]))();get searchable(){return(0,r.getOwnerWithFallback)(this).lookup("service:current-user").admin}get filterable(){let e=(0,r.getOwnerWithFallback)(this).lookup("service:current-user");return!e.admin&&e.moderator}filterNoResultsDescription(e){let t=(0,h.escapeExpression)(e);(0,m.i18n)("sidebar.no_results.description_admin_search",{filter:t})}get onSearchClick(){(0,r.getOwnerWithFallback)(this).lookup("service:modal").show(this.adminSidebarStateManager.modals.adminSearch)}}},40765:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var s=i(85024),n=i(18649);let r=dt7948.c(class extends n.default{},[(0,s.classNames)("font-selector-row")])},40854:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>a});var s=i(32045),n=i(1519),r=i(69522);let a=(0,s.setComponentTemplate)((0,n.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"))},41062:(e,t,i)=>{var s,n="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},r=i(66883);"undefined"!=typeof document?s=document:(s=n["__GLOBAL_DOCUMENT_CACHE@4"])||(s=n["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=s},41107:function(e,t){var i;!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,function(s,n){"use strict";var r=[],a=Object.getPrototypeOf,o=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},u=r.push,d=r.indexOf,c={},p=c.toString,h=c.hasOwnProperty,m=h.toString,g=m.call(Object),f={},_=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=s.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function k(e,t,i){var s,n,r=(i=i||b).createElement("script");if(r.text=e,t)for(s in w)(n=t[s]||t.getAttribute&&t.getAttribute(s))&&r.setAttribute(s,n);i.head.appendChild(r).parentNode.removeChild(r)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[p.call(e)]||"object":typeof e}var S="3.7.1",C=/HTML$/i,A=function(e,t){return new A.fn.init(e,t)};function D(e){var t=!!e&&"length"in e&&e.length,i=T(e);return!(_(e)||y(e))&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}A.fn=A.prototype={jquery:S,constructor:A,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+P+")"+P+"*"),H=RegExp(P+"|>"),q=new RegExp(R),z=RegExp("^"+j+"$"),$={ID:RegExp("^#("+j+")"),CLASS:RegExp("^\\.("+j+")"),TAG:RegExp("^("+j+"|[*])"),ATTR:RegExp("^"+O),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+N+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,J=RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),Q=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},X=function(){eo()},Z=ec(function(e){return!0===e.disabled&&M(e,"fieldset")},{dir:"parentNode",next:"legend"});try{_.apply(r=o.call(b.childNodes),b.childNodes),r[b.childNodes.length].nodeType}catch(e){_={apply:function(e,t){u.apply(e,o.call(t))},call:function(e){u.apply(e,o.call(arguments,1))}}}function ee(e,t,i,s){var n,r,a,o,u,d,c,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return i;if(!s&&(eo(t),t=t||l,p)){if(11!==g&&(u=K.exec(e))){if(n=u[1]){if(9===g){if(!(a=t.getElementById(n)))return i;else if(a.id===n)return _.call(i,a),i}else if(h&&(a=h.getElementById(n))&&ee.contains(t,a)&&a.id===n)return _.call(i,a),i}else if(u[2])return _.apply(i,t.getElementsByTagName(e)),i;else if((n=u[3])&&t.getElementsByClassName)return _.apply(i,t.getElementsByClassName(n)),i}if(!D[e+" "]&&(!m||!m.test(e))){if(c=e,h=t,1===g&&(H.test(e)||Y.test(e))){for((h=G.test(e)&&ea(t.parentNode)||t)==t&&f.scope||((o=t.getAttribute("id"))?o=A.escapeSelector(o):t.setAttribute("id",o=y)),r=(d=eu(e)).length;r--;)d[r]=(o?"#"+o:":scope")+" "+ed(d[r]);c=d.join(",")}try{return _.apply(i,h.querySelectorAll(c)),i}catch(t){D(e,!0)}finally{o===y&&t.removeAttribute("id")}}}return eg(e.replace(F,"$1"),t,i,s)}function et(){var e=[];function i(s,n){return e.push(s+" ")>t.cacheLength&&delete i[e.shift()],i[s+" "]=n}return i}function ei(e){return e[y]=!0,e}function es(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function en(e){return function(t){if("form"in t){if(t.parentNode&&!1===t.disabled){if("label"in t)if("label"in t.parentNode)return t.parentNode.disabled===e;else return t.disabled===e;return t.isDisabled===e||!e!==t.isDisabled&&Z(t)===e}return t.disabled===e}return"label"in t&&t.disabled===e}}function er(e){return ei(function(t){return t*=1,ei(function(i,s){for(var n,r=e([],i.length,t),a=r.length;a--;)i[n=r[a]]&&(i[n]=!(s[n]=i[n]))})})}function ea(e){return e&&void 0!==e.getElementsByTagName&&e}function eo(e){var i,s=e?e.ownerDocument||e:b;return s!=l&&9===s.nodeType&&s.documentElement&&(c=(l=s).documentElement,p=!A.isXMLDoc(l),g=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&b!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",X),f.getById=es(function(e){return c.appendChild(e).id=A.expando,!l.getElementsByName||!l.getElementsByName(A.expando).length}),f.disconnectedMatch=es(function(e){return g.call(e,"*")}),f.scope=es(function(){return l.querySelectorAll(":scope")}),f.cssHas=es(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),f.getById?(t.filter.ID=function(e){var t=e.replace(J,Q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,Q);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var i,s,n,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(n=t.getElementsByName(e),s=0;r=n[s++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},m=[],es(function(e){var t;c.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll(":checked").length||m.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")}),f.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),I=function(e,t){if(e===t)return a=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==b&&ee.contains(b,e)?-1:t===l||t.ownerDocument==b&&ee.contains(b,t)?1:n?d.call(n,e)-d.call(n,t):0:4&i?-1:1}),l}for(e in ee.matches=function(e,t){return ee(e,null,null,t)},ee.matchesSelector=function(e,t){if(eo(e),p&&!D[t+" "]&&(!m||!m.test(t)))try{var i=g.call(e,t);if(i||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){D(t,!0)}return ee(t,l,null,[e]).length>0},ee.contains=function(e,t){return(e.ownerDocument||e)!=l&&eo(e),A.contains(e,t)},ee.attr=function(e,i){(e.ownerDocument||e)!=l&&eo(e);var s=t.attrHandle[i.toLowerCase()],n=s&&h.call(t.attrHandle,i.toLowerCase())?s(e,i,!p):void 0;return void 0!==n?n:e.getAttribute(i)},ee.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},A.uniqueSort=function(e){var t,i=[],s=0,r=0;if(a=!f.sortStable,n=!f.sortStable&&o.call(e,0),E.call(e,I),a){for(;t=e[r++];)t===e[r]&&(s=i.push(r));for(;s--;)L.call(e,i[s],1)}return n=null,e},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(o.apply(this)))},(t=A.expr={cacheLength:50,createPseudo:ei,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,Q),e[3]=(e[3]||e[4]||e[5]||"").replace(J,Q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ee.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ee.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&q.test(i)&&(t=eu(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,Q).toLowerCase();return"*"===e?function(){return!0}:function(e){return M(e,t)}},CLASS:function(e){var t=T[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(s){var n=ee.attr(s,e);return null==n?"!="===t:!t||((n+="","="===t)?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&n.indexOf(i)>-1:"$="===t?i&&n.slice(-i.length)===i:"~="===t?(" "+n.replace(U," ")+" ").indexOf(i)>-1:"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,s,n){var r="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===s&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var u,d,c,p,h,m=r!==a?"nextSibling":"previousSibling",g=t.parentNode,f=o&&t.nodeName.toLowerCase(),_=!l&&!o,b=!1;if(g){if(r){for(;m;){for(c=t;c=c[m];)if(o?M(c,f):1===c.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&_){for(b=(p=(u=(d=g[y]||(g[y]={}))[e]||[])[0]===w&&u[1])&&u[2],c=p&&g.childNodes[p];c=++p&&c&&c[m]||(b=p=0)||h.pop();)if(1===c.nodeType&&++b&&c===t){d[e]=[w,p,b];break}}else if(_&&(b=p=(u=(d=t[y]||(t[y]={}))[e]||[])[0]===w&&u[1]),!1===b)for(;(c=++p&&c&&c[m]||(b=p=0)||h.pop())&&(!((o?M(c,f):1===c.nodeType)&&++b)||(_&&((d=c[y]||(c[y]={}))[e]=[w,b]),c!==t)););return(b-=n)===s||b%s==0&&b/s>=0}}},PSEUDO:function(e,i){var s,n=t.pseudos[e]||t.setFilters[e.toLowerCase()]||ee.error("unsupported pseudo: "+e);return n[y]?n(i):n.length>1?(s=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?ei(function(e,t){for(var s,r=n(e,i),a=r.length;a--;)s=d.call(e,r[a]),e[s]=!(t[s]=r[a])}):function(e){return n(e,0,s)}):n}},pseudos:{not:ei(function(e){var t=[],i=[],s=em(e.replace(F,"$1"));return s[y]?ei(function(e,t,i,n){for(var r,a=s(e,null,n,[]),o=e.length;o--;)(r=a[o])&&(e[o]=!(t[o]=r))}):function(e,n,r){return t[0]=e,s(t,null,r,i),t[0]=null,!i.pop()}}),has:ei(function(e){return function(t){return ee(e,t).length>0}}),contains:ei(function(e){return e=e.replace(J,Q),function(t){return(t.textContent||A.text(t)).indexOf(e)>-1}}),lang:ei(function(e){return z.test(e||"")||ee.error("unsupported lang: "+e),e=e.replace(J,Q).toLowerCase(),function(t){var i;do if(i=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType)return!1}}),target:function(e){var t=s.location&&s.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:en(!1),disabled:en(!0),checked:function(e){return M(e,"input")&&!!e.checked||M(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return M(e,"input")&&"button"===e.type||M(e,"button")},text:function(e){var t;return M(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:er(function(){return[0]}),last:er(function(e,t){return[t-1]}),eq:er(function(e,t,i){return[i<0?i+t:i]}),even:er(function(e,t){for(var i=0;it?t:i;--s>=0;)e.push(s);return e}),gt:er(function(e,t,i){for(var s=i<0?i+t:i;++s1?function(t,i,s){for(var n=e.length;n--;)if(!e[n](t,i,s))return!1;return!0}:e[0]}function eh(e,t,i,s,n){for(var r,a=[],o=0,l=e.length,u=null!=t;o-1},u,!0),m=[function(e,t,s){var r=!l&&(s||t!=i)||((n=t).nodeType?p(e,t,s):h(e,t,s));return n=null,r}];c-1&&(e[u]=!(a[u]=p))}}else h=eh(h===a?h.splice(f,h.length):h),r?r(null,a,h,l):_.apply(a,h)})}(c>1&&ep(m),c>1&&ed(s.slice(0,c-1).concat({value:" "===s[c-2].type?"*":""})).replace(F,"$1"),r,c0,r=e.length>0,a=function(a,o,u,d,c){var h,m,g,f=0,y="0",b=a&&[],k=[],T=i,S=a||r&&t.find.TAG("*",c),C=w+=null==T?1:Math.random()||.1,D=S.length;for(c&&(i=o==l||o||c);y!==D&&null!=(h=S[y]);y++){if(r&&h){for(m=0,o||h.ownerDocument==l||(eo(h),u=!p);g=e[m++];)if(g(h,o||l,u)){_.call(d,h);break}c&&(w=C)}n&&((h=!g&&h)&&f--,a&&b.push(h))}if(f+=y,n&&y!==f){for(m=0;g=s[m++];)g(b,k,o,u);if(a){if(f>0)for(;y--;)b[y]||k[y]||(k[y]=x.call(d));k=eh(k)}_.apply(d,k),c&&!a&&k.length>0&&f+s.length>1&&A.uniqueSort(d)}return c&&(w=C,i=T),b};return n?ei(a):a}(a,r))).selector=e}return o}function eg(e,i,s,n){var r,a,o,l,u,d="function"==typeof e&&e,c=!n&&eu(e=d.selector||e);if(s=s||[],1===c.length){if((a=c[0]=c[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===i.nodeType&&p&&t.relative[a[1].type]){if(!(i=(t.find.ID(o.matches[0].replace(J,Q),i)||[])[0]))return s;d&&(i=i.parentNode),e=e.slice(a.shift().value.length)}for(r=$.needsContext.test(e)?0:a.length;r--&&(o=a[r],!t.relative[l=o.type]);)if((u=t.find[l])&&(n=u(o.matches[0].replace(J,Q),G.test(a[0].type)&&ea(i.parentNode)||i))){if(a.splice(r,1),!(e=n.length&&ed(a)))return _.apply(s,n),s;break}}return(d||em(e,c))(n,i,!p,s,!i||G.test(e)&&ea(i.parentNode)||i),s}el.prototype=t.filters=t.pseudos,t.setFilters=new el,f.sortStable=y.split("").sort(I).join("")===y,eo(),f.sortDetached=es(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),A.find=ee,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,ee.compile=em,ee.select=eg,ee.setDocument=eo,ee.tokenize=eu,ee.escape=A.escapeSelector,ee.getText=A.text,ee.isXML=A.isXMLDoc,ee.selectors=A.expr,ee.support=A.support,ee.uniqueSort=A.uniqueSort}();var j=function(e,t,i){for(var s=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&A(e).is(i))break;s.push(e)}return s},O=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},R=A.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(e,t,i){return _(t)?A.grep(e,function(e,s){return!!t.call(e,s,e)!==i}):t.nodeType?A.grep(e,function(e){return e===t!==i}):"string"!=typeof t?A.grep(e,function(e){return d.call(t,e)>-1!==i}):A.filter(t,e,i)}A.filter=function(e,t,i){var s=t[0];return(i&&(e=":not("+e+")"),1===t.length&&1===s.nodeType)?A.find.matchesSelector(s,e)?[s]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,i,s=this.length,n=this;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t1?A.uniqueSort(i):i},filter:function(e){return this.pushStack(B(this,e||[],!1))},not:function(e){return this.pushStack(B(this,e||[],!0))},is:function(e){return!!B(this,"string"==typeof e&&R.test(e)?A(e):e||[],!1).length}});var Y,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(e,t,i){var s,n;if(!e)return this;if(i=i||Y,"string"==typeof e){if((s="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:H.exec(e))&&(s[1]||!t))if(!s[1])return(n=b.getElementById(s[2]))&&(this[0]=n,this.length=1),this;else{if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),U.test(s[1])&&A.isPlainObject(t))for(s in t)_(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e)}return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==i.ready?i.ready(e):e(A):A.makeArray(e,this)}).prototype=A.fn,Y=A(b);var q=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&A.find.matchesSelector(i,e))){r.push(i);break}}return this.pushStack(r.length>1?A.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?d.call(A(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return j(e,"parentNode")},parentsUntil:function(e,t,i){return j(e,"parentNode",i)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return j(e,"nextSibling")},prevAll:function(e){return j(e,"previousSibling")},nextUntil:function(e,t,i){return j(e,"nextSibling",i)},prevUntil:function(e,t,i){return j(e,"previousSibling",i)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},function(e,t){A.fn[e]=function(i,s){var n=A.map(this,t,i);return"Until"!==e.slice(-5)&&(s=i),s&&"string"==typeof s&&(n=A.filter(s,n)),this.length>1&&(z[e]||A.uniqueSort(n),q.test(e)&&n.reverse()),this.pushStack(n)}});var V=/[^\x20\t\r\n\f]+/g;function W(e){return e}function K(e){throw e}function G(e,t,i,s){var n;try{e&&_(n=e.promise)?n.call(e).done(t).fail(i):e&&_(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(s))}catch(e){i.apply(void 0,[e])}}A.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return A.each(e.match(V)||[],function(e,i){t[i]=!0}),t}(e):A.extend({},e);var t,i,s,n,r=[],a=[],o=-1,l=function(){for(n=n||e.once,s=t=!0;a.length;o=-1)for(i=a.shift();++o-1;)r.splice(i,1),i<=o&&o--}),this},has:function(e){return e?A.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return n=a=[],r=i="",this},disabled:function(){return!r},lock:function(){return n=a=[],i||t||(r=i=""),this},locked:function(){return!!n},fireWith:function(e,i){return!n&&(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!s}};return u},A.extend({Deferred:function(e){var t=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return A.Deferred(function(i){A.each(t,function(t,s){var n=_(e[s[4]])&&e[s[4]];r[s[1]](function(){var e=n&&n.apply(this,arguments);e&&_(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[s[0]+"With"](this,n?[e]:arguments)})}),e=null}).promise()},then:function(e,i,n){var r=0;function a(e,t,i,n){return function(){var o=this,l=arguments,u=function(){var s,u;if(!(e=r&&(i!==K&&(o=void 0,l=[s]),t.rejectWith(o,l))}};e?d():(A.Deferred.getErrorHook?d.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(d.error=A.Deferred.getStackHook()),s.setTimeout(d))}}return A.Deferred(function(s){t[0][3].add(a(0,s,_(n)?n:W,s.notifyWith)),t[1][3].add(a(0,s,_(e)?e:W)),t[2][3].add(a(0,s,_(i)?i:K))}).promise()},promise:function(e){return null!=e?A.extend(e,n):n}},r={};return A.each(t,function(e,s){var a=s[2],o=s[5];n[s[1]]=a.add,o&&a.add(function(){i=o},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(s[3].fire),r[s[0]]=function(){return r[s[0]+"With"](this===r?void 0:this,arguments),this},r[s[0]+"With"]=a.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,i=t,s=Array(i),n=o.call(arguments),r=A.Deferred(),a=function(e){return function(i){s[e]=this,n[e]=arguments.length>1?o.call(arguments):i,--t||r.resolveWith(s,n)}};if(t<=1&&(G(e,r.done(a(i)).resolve,r.reject,!t),"pending"===r.state()||_(n[i]&&n[i].then)))return r.then();for(;i--;)G(n[i],a(i),r.reject);return r.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(e,t){s.console&&s.console.warn&&e&&J.test(e.name)&&s.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},A.readyException=function(e){s.setTimeout(function(){throw e})};var Q=A.Deferred();function X(){b.removeEventListener("DOMContentLoaded",X),s.removeEventListener("load",X),A.ready()}A.fn.ready=function(e){return Q.then(e).catch(function(e){A.readyException(e)}),this},A.extend({isReady:!1,readyWait:1,ready:function(e){!(!0===e?--A.readyWait:A.isReady)&&(A.isReady=!0,!0!==e&&--A.readyWait>0||Q.resolveWith(b,[A]))}}),A.ready.then=Q.then,"complete"!==b.readyState&&("loading"===b.readyState||b.documentElement.doScroll)?(b.addEventListener("DOMContentLoaded",X),s.addEventListener("load",X)):s.setTimeout(A.ready);var Z=function(e,t,i,s,n,r,a){var o=0,l=e.length,u=null==i;if("object"===T(i))for(o in n=!0,i)Z(e,t,o,i[o],!0,r,a);else if(void 0!==s&&(n=!0,_(s)||(a=!0),u&&(a?(t.call(e,s),t=null):(u=t,t=function(e,t,i){return u.call(A(e),i)})),t))for(;o1,null,!0)},removeData:function(e){return this.each(function(){eo.remove(this,e)})}}),A.extend({queue:function(e,t,i){var s;if(e)return t=(t||"fx")+"queue",s=ea.get(e,t),i&&(!s||Array.isArray(i)?s=ea.access(e,t,A.makeArray(i)):s.push(i)),s||[]},dequeue:function(e,t){t=t||"fx";var i=A.queue(e,t),s=i.length,n=i.shift(),r=A._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===t&&i.unshift("inprogress"),delete r.stop,n.call(e,function(){A.dequeue(e,t)},r)),!s&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ea.get(e,i)||ea.access(e,i,{empty:A.Callbacks("once memory").add(function(){ea.remove(e,[t+"queue",i])})})}}),A.fn.extend({queue:function(e,t){var i=2;return("string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,eT=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),f.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",f.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="",f.option=!!e.lastChild}();var eS={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function eC(e,t){var i;return(i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t))?A.merge([e],i):i}function eA(e,t){for(var i=0,s=e.length;i",""]);var eD=/<|&#?\w+;/;function eM(e,t,i,s,n){for(var r,a,o,l,u,d=t.createDocumentFragment(),c=[],p=0,h=e.length;p-1){n&&n.push(r);continue}if(l=eg(r),a=eC(d.appendChild(r),"script"),l&&eA(a),i)for(u=0;r=a[u++];)eT.test(r.type||"")&&i.push(r)}return d}var ex=/^([^.]*)(?:\.(.+)|)/;function eE(){return!0}function eL(){return!1}function eP(e,t,i,s,n,r){var a,o;if("object"==typeof t){for(o in"string"!=typeof i&&(s=s||i,i=void 0),t)eP(e,o,i,s,t[o],r);return e}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=eL;else if(!n)return e;return 1===r&&(a=n,(n=function(e){return A().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=A.guid++)),e.each(function(){A.event.add(this,t,n,s,i)})}function eF(e,t,i){if(!i){void 0===ea.get(e,t)&&A.event.add(e,t,eE);return}ea.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var i,s=ea.get(this,t);if(1&e.isTrigger&&this[t]){if(s)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),ea.set(this,t,s),this[t](),i=ea.get(this,t),ea.set(this,t,!1),s!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else s&&(ea.set(this,t,A.event.trigger(s[0],s.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=eE)}})}A.event={global:{},add:function(e,t,i,s,n){var r,a,o,l,u,d,c,p,h,m,g,f=ea.get(e);if(en(e))for(i.handler&&(i=(r=i).handler,n=r.selector),n&&A.find.matchesSelector(em,n),i.guid||(i.guid=A.guid++),(l=f.events)||(l=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(V)||[""]).length;u--;)h=g=(o=ex.exec(t[u])||[])[1],m=(o[2]||"").split(".").sort(),h&&(c=A.event.special[h]||{},h=(n?c.delegateType:c.bindType)||h,c=A.event.special[h]||{},d=A.extend({type:h,origType:g,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&A.expr.match.needsContext.test(n),namespace:m.join(".")},r),(p=l[h])||((p=l[h]=[]).delegateCount=0,(!c.setup||!1===c.setup.call(e,s,m,a))&&e.addEventListener&&e.addEventListener(h,a)),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?p.splice(p.delegateCount++,0,d):p.push(d),A.event.global[h]=!0)},remove:function(e,t,i,s,n){var r,a,o,l,u,d,c,p,h,m,g,f=ea.hasData(e)&&ea.get(e);if(f&&(l=f.events)){for(u=(t=(t||"").match(V)||[""]).length;u--;){if(h=g=(o=ex.exec(t[u])||[])[1],m=(o[2]||"").split(".").sort(),!h){for(h in l)A.event.remove(e,h+t[u],i,s,!0);continue}for(c=A.event.special[h]||{},p=l[h=(s?c.delegateType:c.bindType)||h]||[],o=o[2]&&RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=p.length;r--;)d=p[r],(n||g===d.origType)&&(!i||i.guid===d.guid)&&(!o||o.test(d.namespace))&&(!s||s===d.selector||"**"===s&&d.selector)&&(p.splice(r,1),d.selector&&p.delegateCount--,c.remove&&c.remove.call(e,d));a&&!p.length&&(c.teardown&&!1!==c.teardown.call(e,m,f.handle)||A.removeEvent(e,h,f.handle),delete l[h])}A.isEmptyObject(l)&&ea.remove(e,"handle events")}},dispatch:function(e){var t,i,s,n,r,a,o=Array(arguments.length),l=A.event.fix(e),u=(ea.get(this,"events")||Object.create(null))[l.type]||[],d=A.event.special[l.type]||{};for(t=1,o[0]=l;t=1)){for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=0,r=[],a={};i-1:A.find(n,this,null,[u]).length),a[n]&&r.push(s);r.length&&o.push({elem:u,handlers:r})}}return u=this,l\s*$/g;function eO(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function eR(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function eU(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function eB(e,t){var i,s,n,r,a,o;if(1===t.nodeType){if(ea.hasData(e)&&(o=ea.get(e).events))for(n in ea.remove(t,"handle events"),o)for(i=0,s=o[n].length;i1&&"string"==typeof m&&!f.checkClone&&eN.test(m))return e.each(function(n){var r=e.eq(n);g&&(t[0]=m.call(this,n,r.html())),eY(r,t,i,s)});if(p&&(r=(n=eM(t,e[0].ownerDocument,!1,e,s)).firstChild,1===n.childNodes.length&&(n=r),r||s)){for(o=(a=A.map(eC(n,"script"),eR)).length;c0&&eA(a,!l&&eC(e,"script")),o},cleanData:function(e){for(var t,i,s,n=A.event.special,r=0;void 0!==(i=e[r]);r++)if(en(i)){if(t=i[ea.expando]){if(t.events)for(s in t.events)n[s]?A.event.remove(i,s):A.removeEvent(i,s,t.handle);i[ea.expando]=void 0}i[eo.expando]&&(i[eo.expando]=void 0)}}}),A.fn.extend({detach:function(e){return eH(this,e,!0)},remove:function(e){return eH(this,e)},text:function(e){return Z(this,function(e){return void 0===e?A.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return eY(this,arguments,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&eO(this,e).appendChild(e)})},prepend:function(){return eY(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eO(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return eY(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return eY(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(A.cleanData(eC(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return A.clone(this,e,t)})},html:function(e){return Z(this,function(e){var t=this[0]||{},i=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!eI.test(e)&&!eS[(ek.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;iA.inArray(this,e)&&(A.cleanData(eC(this)),i&&i.replaceChild(t,this))},e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){A.fn[e]=function(e){for(var i,s=[],n=A(e),r=n.length-1,a=0;a<=r;a++)i=a===r?this:this.clone(!0),A(n[a])[t](i),u.apply(s,i.get());return this.pushStack(s)}});var eq=RegExp("^("+ec+")(?!px)[a-z%]+$","i"),ez=/^--/,e$=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=s),t.getComputedStyle(e)},eV=function(e,t,i){var s,n,r={};for(n in t)r[n]=e.style[n],e.style[n]=t[n];for(n in s=i.call(e),t)e.style[n]=r[n];return s},eW=RegExp(eh.join("|"),"i");function eK(e,t,i){var s,n,r,a,o=ez.test(t),l=e.style;return(i=i||e$(e))&&(a=i.getPropertyValue(t)||i[t],o&&a&&(a=a.replace(F,"$1")||void 0),""!==a||eg(e)||(a=A.style(e,t)),!f.pixelBoxStyles()&&eq.test(a)&&eW.test(t)&&(s=l.width,n=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=i.width,l.width=s,l.minWidth=n,l.maxWidth=r)),void 0!==a?a+"":a}function eG(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function e(){if(d){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",em.appendChild(u).appendChild(d);var e=s.getComputedStyle(d);i="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",a=36===t(e.right),n=36===t(e.width),d.style.position="absolute",r=12===t(d.offsetWidth/3),em.removeChild(u),d=null}}function t(e){return Math.round(parseFloat(e))}var i,n,r,a,o,l,u=b.createElement("div"),d=b.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===d.style.backgroundClip,A.extend(f,{boxSizingReliable:function(){return e(),n},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,i,n;return null==o&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",em.appendChild(e).appendChild(t).appendChild(i),o=parseInt((n=s.getComputedStyle(t)).height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,em.removeChild(e)),o}}))}();var eJ=["Webkit","Moz","ms"],eQ=b.createElement("div").style,eX={};function eZ(e){var t=A.cssProps[e]||eX[e];return t||(e in eQ?e:eX[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=eJ.length;i--;)if((e=eJ[i]+t)in eQ)return e}(e)||e)}var e1=/^(none|table(?!-c[ea]).+)/,e0={position:"absolute",visibility:"hidden",display:"block"},e3={letterSpacing:"0",fontWeight:"400"};function e2(e,t,i){var s=ep.exec(t);return s?Math.max(0,s[2]-(i||0))+(s[3]||"px"):t}function e8(e,t,i,s,n,r){var a=+("width"===t),o=0,l=0,u=0;if(i===(s?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(u+=A.css(e,i+eh[a],!0,n)),s?("content"===i&&(l-=A.css(e,"padding"+eh[a],!0,n)),"margin"!==i&&(l-=A.css(e,"border"+eh[a]+"Width",!0,n))):(l+=A.css(e,"padding"+eh[a],!0,n),"padding"!==i?l+=A.css(e,"border"+eh[a]+"Width",!0,n):o+=A.css(e,"border"+eh[a]+"Width",!0,n));return!s&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-o-.5))||0),l+u}function e4(e,t,i){var s=e$(e),n=(!f.boxSizingReliable()||i)&&"border-box"===A.css(e,"boxSizing",!1,s),r=n,a=eK(e,t,s),o="offset"+t[0].toUpperCase()+t.slice(1);if(eq.test(a)){if(!i)return a;a="auto"}return(!f.boxSizingReliable()&&n||!f.reliableTrDimensions()&&M(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===A.css(e,"display",!1,s))&&e.getClientRects().length&&(n="border-box"===A.css(e,"boxSizing",!1,s),(r=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+e8(e,t,i||(n?"border":"content"),r,s,a)+"px"}function e7(e,t,i,s,n){return new e7.prototype.init(e,t,i,s,n)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=eK(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,s){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,r,a,o=es(t),l=ez.test(t),u=e.style;if(l||(t=eZ(o)),a=A.cssHooks[t]||A.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(e,!1,s))?n:u[t];if("string"==(r=typeof i)&&(n=ep.exec(i))&&n[1]&&(i=ey(e,t,n),r="number"),null!=i&&i==i)"number"!==r||l||(i+=n&&n[3]||(A.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,s))||(l?u.setProperty(t,i):u[t]=i)}},css:function(e,t,i,s){var n,r,a,o=es(t);return(ez.test(t)||(t=eZ(o)),(a=A.cssHooks[t]||A.cssHooks[o])&&"get"in a&&(n=a.get(e,!0,i)),void 0===n&&(n=eK(e,t,s)),"normal"===n&&t in e3&&(n=e3[t]),""===i||i)?(r=parseFloat(n),!0===i||isFinite(r)?r||0:n):n}}),A.each(["height","width"],function(e,t){A.cssHooks[t]={get:function(e,i,s){if(i)return!e1.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?e4(e,t,s):eV(e,e0,function(){return e4(e,t,s)})},set:function(e,i,s){var n,r=e$(e),a=!f.scrollboxSize()&&"absolute"===r.position,o=(a||s)&&"border-box"===A.css(e,"boxSizing",!1,r),l=s?e8(e,t,s,o,r):0;return o&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-e8(e,t,"border",!1,r)-.5)),l&&(n=ep.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=A.css(e,t)),e2(e,i,l)}}}),A.cssHooks.marginLeft=eG(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(eK(e,"marginLeft"))||e.getBoundingClientRect().left-eV(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(e,t){A.cssHooks[e+t]={expand:function(i){for(var s=0,n={},r="string"==typeof i?i.split(" "):[i];s<4;s++)n[e+eh[s]+t]=r[s]||r[s-2]||r[0];return n}},"margin"!==e&&(A.cssHooks[e+t].set=e2)}),A.fn.extend({css:function(e,t){return Z(this,function(e,t,i){var s,n,r={},a=0;if(Array.isArray(t)){for(s=e$(e),n=t.length;a1)}}),A.Tween=e7,e7.prototype={constructor:e7,init:function(e,t,i,s,n,r){this.elem=e,this.prop=i,this.easing=n||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=r||(A.cssNumber[i]?"":"px")},cur:function(){var e=e7.propHooks[this.prop];return e&&e.get?e.get(this):e7.propHooks._default.get(this)},run:function(e){var t,i=e7.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):e7.propHooks._default.set(this),this}},e7.prototype.init.prototype=e7.prototype,e7.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=A.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1===e.elem.nodeType&&(A.cssHooks[e.prop]||null!=e.elem.style[eZ(e.prop)])?A.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},e7.propHooks.scrollTop=e7.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=e7.prototype.init,A.fx.step={};var e9,e5,e6=/^(?:toggle|show|hide)$/,te=/queueHooks$/;function tt(){return s.setTimeout(function(){e9=void 0}),e9=Date.now()}function ti(e,t){var i,s=0,n={height:e};for(t=+!!t;s<4;s+=2-t)n["margin"+(i=eh[s])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function ts(e,t,i){for(var s,n=(tn.tweeners[t]||[]).concat(tn.tweeners["*"]),r=0,a=n.length;r1)},removeAttr:function(e){return this.each(function(){A.removeAttr(this,e)})}}),A.extend({attr:function(e,t,i){var s,n,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?A.prop(e,t,i):(1===r&&A.isXMLDoc(e)||(n=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?tr:void 0)),void 0!==i)?null===i?void A.removeAttr(e,t):n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=A.find.attr(e,t))?void 0:s},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&M(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,s=0,n=t&&t.match(V);if(n&&1===e.nodeType)for(;i=n[s++];)e.removeAttribute(i)}}),tr={set:function(e,t,i){return!1===t?A.removeAttr(e,i):e.setAttribute(i,i),i}},A.each(A.expr.match.bool.source.match(/\w+/g),function(e,t){var i=ta[t]||A.find.attr;ta[t]=function(e,t,s){var n,r,a=t.toLowerCase();return s||(r=ta[a],ta[a]=n,n=null!=i(e,t,s)?a:null,ta[a]=r),n}});var to=/^(?:input|select|textarea|button)$/i,tl=/^(?:a|area)$/i;function tu(e){return(e.match(V)||[]).join(" ")}function td(e){return e.getAttribute&&e.getAttribute("class")||""}function tc(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}A.fn.extend({prop:function(e,t){return Z(this,A.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[A.propFix[e]||e]})}}),A.extend({prop:function(e,t,i){var s,n,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return(1===r&&A.isXMLDoc(e)||(t=A.propFix[t]||t,n=A.propHooks[t]),void 0!==i)?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:e[t]=i:n&&"get"in n&&null!==(s=n.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):to.test(e.nodeName)||tl.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(A.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),A.fn.extend({addClass:function(e){var t,i,s,n,r,a;return _(e)?this.each(function(t){A(this).addClass(e.call(this,t,td(this)))}):(t=tc(e)).length?this.each(function(){if(s=td(this),i=1===this.nodeType&&" "+tu(s)+" "){for(r=0;ri.indexOf(" "+n+" ")&&(i+=n+" ");s!==(a=tu(i))&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,i,s,n,r,a;return _(e)?this.each(function(t){A(this).removeClass(e.call(this,t,td(this)))}):arguments.length?(t=tc(e)).length?this.each(function(){if(s=td(this),i=1===this.nodeType&&" "+tu(s)+" "){for(r=0;r-1;)i=i.replace(" "+n+" "," ");s!==(a=tu(i))&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var i,s,n,r,a=typeof e,o="string"===a||Array.isArray(e);return _(e)?this.each(function(i){A(this).toggleClass(e.call(this,i,td(this),t),t)}):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=tc(e),this.each(function(){if(o)for(n=0,r=A(this);n-1)return!0;return!1}});var tp=/\r/g;A.fn.extend({val:function(e){var t,i,s,n=this[0];if(!arguments.length)return n?(t=A.valHooks[n.type]||A.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(tp,""):null==i?"":i:void 0;return s=_(e),this.each(function(i){var n;1===this.nodeType&&(null==(n=s?e.call(this,i,A(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=A.map(n,function(e){return null==e?"":e+""})),(t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))})}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:tu(A.text(e))}},select:{get:function(e){var t,i,s,n=e.options,r=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?r+1:n.length;for(s=r<0?l:a?r:0;s-1)&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=A.inArray(A(e).val(),t)>-1}},f.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var th=s.location,tm={guid:Date.now()},tg=/\?/;A.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=new s.DOMParser().parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],(!t||i)&&A.error("Invalid XML: "+(i?A.map(i.childNodes,function(e){return e.textContent}).join(` `):e)),t};var tf=/^(?:focusinfocus|focusoutblur)$/,t_=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(e,t,i,n){var r,a,o,l,u,d,c,p,m=[i||b],g=h.call(e,"type")?e.type:e,f=h.call(e,"namespace")?e.namespace.split("."):[];if((a=p=o=i=i||b,!(3===i.nodeType||8===i.nodeType||tf.test(g+A.event.triggered)))&&(g.indexOf(".")>-1&&(g=(f=g.split(".")).shift(),f.sort()),u=0>g.indexOf(":")&&"on"+g,(e=e[A.expando]?e:new A.Event(g,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:A.makeArray(t,[e]),c=A.event.special[g]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!y(i)){for(l=c.delegateType||g,tf.test(l+g)||(a=a.parentNode);a;a=a.parentNode)m.push(a),o=a;o===(i.ownerDocument||b)&&m.push(o.defaultView||o.parentWindow||s)}for(r=0;(a=m[r++])&&!e.isPropagationStopped();)p=a,e.type=r>1?l:c.bindType||g,(d=(ea.get(a,"events")||Object.create(null))[e.type]&&ea.get(a,"handle"))&&d.apply(a,t),(d=u&&a[u])&&d.apply&&en(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,!n&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(m.pop(),t))&&en(i)&&u&&_(i[g])&&!y(i)&&((o=i[u])&&(i[u]=null),A.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,t_),i[g](),e.isPropagationStopped()&&p.removeEventListener(g,t_),A.event.triggered=void 0,o&&(i[u]=o)),e.result}},simulate:function(e,t,i){var s=A.extend(new A.Event,i,{type:e,isSimulated:!0});A.event.trigger(s,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each(function(){A.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return A.event.trigger(e,t,i,!0)}});var ty=/\[\]$/,tb=/\r?\n/g,tv=/^(?:submit|button|image|reset|file)$/i,tw=/^(?:input|select|textarea|keygen)/i;A.param=function(e,t){var i,s=[],n=function(e,t){var i=_(t)?t():t;s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,function(){n(this.name,this.value)});else for(i in e)!function e(t,i,s,n){var r;if(Array.isArray(i))A.each(i,function(i,r){s||ty.test(t)?n(t,r):e(t+"["+("object"==typeof r&&null!=r?i:"")+"]",r,s,n)});else if(s||"object"!==T(i))n(t,i);else for(r in i)e(t+"["+r+"]",i[r],s,n)}(i,e[i],t,n);return s.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&tw.test(this.nodeName)&&!tv.test(e)&&(this.checked||!ew.test(e))}).map(function(e,t){var i=A(this).val();return null==i?null:Array.isArray(i)?A.map(i,function(e){return{name:t.name,value:e.replace(tb,`\r `)}}):{name:t.name,value:i.replace(tb,`\r `)}}).get()}});var tk=/%20/g,tT=/#.*$/,tS=/([?&])_=[^&]*/,tC=/^(.*?):[ \t]*([^\r\n]*)$/mg,tA=/^(?:GET|HEAD)$/,tD=/^\/\//,tM={},tx={},tE="*/".concat("*"),tL=b.createElement("a");function tP(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var s,n=0,r=t.toLowerCase().match(V)||[];if(_(i))for(;s=r[n++];)"+"===s[0]?(e[s=s.slice(1)||"*"]=e[s]||[]).unshift(i):(e[s]=e[s]||[]).push(i)}}function tF(e,t,i,s){var n={},r=e===tx;function a(o){var l;return n[o]=!0,A.each(e[o]||[],function(e,o){var u=o(t,i,s);return"string"!=typeof u||r||n[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!n["*"]&&a("*")}function tI(e,t){var i,s,n=A.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:s||(s={}))[i]=t[i]);return s&&A.extend(!0,e,s),e}tL.href=th.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:th.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(th.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":tE,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?tI(tI(e,A.ajaxSettings),t):tI(A.ajaxSettings,e)},ajaxPrefilter:tP(tM),ajaxTransport:tP(tx),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,r,a,o,l,u,d,c,p,h=A.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?A(m):A.event,f=A.Deferred(),_=A.Callbacks("once memory"),y=h.statusCode||{},w={},k={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=tC.exec(r);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(w[e=k[e.toLowerCase()]=k[e.toLowerCase()]||e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),C(0,t),this}};if(f.promise(S),h.url=((e||h.url||th.href)+"").replace(tD,th.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(V)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=tL.protocol+"//"+tL.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=A.param(h.data,h.traditional)),tF(tM,h,t,S),u)return S;for(c in(d=A.event&&h.global)&&0==A.active++&&A.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!tA.test(h.type),n=h.url.replace(tT,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(tk,"+")):(p=h.url.slice(n.length),h.data&&(h.processData||"string"==typeof h.data)&&(n+=(tg.test(n)?"&":"?")+h.data,delete h.data),!1===h.cache&&(n=n.replace(tS,"$1"),p=(tg.test(n)?"&":"?")+"_="+tm.guid+++p),h.url=n+p),h.ifModified&&(A.lastModified[n]&&S.setRequestHeader("If-Modified-Since",A.lastModified[n]),A.etag[n]&&S.setRequestHeader("If-None-Match",A.etag[n])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+tE+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(!1===h.beforeSend.call(m,S,h)||u))return S.abort();if(T="abort",_.add(h.complete),S.done(h.success),S.fail(h.error),i=tF(tx,h,t,S)){if(S.readyState=1,d&&g.trigger("ajaxSend",[S,h]),u)return S;h.async&&h.timeout>0&&(o=s.setTimeout(function(){S.abort("timeout")},h.timeout));try{u=!1,i.send(w,C)}catch(e){if(u)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,l){var c,p,b,w,k,T=t;!u&&(u=!0,o&&s.clearTimeout(o),i=void 0,r=l||"",S.readyState=4*(e>0),c=e>=200&&e<300||304===e,a&&(w=function(e,t,i){for(var s,n,r,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=e.mimeType||t.getResponseHeader("Content-Type"));if(s){for(n in o)if(o[n]&&o[n].test(s)){l.unshift(n);break}}if(l[0]in i)r=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){r=n;break}a||(a=n)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),i[r]}(h,S,a)),!c&&A.inArray("script",h.dataTypes)>-1&&0>A.inArray("json",h.dataTypes)&&(h.converters["text script"]=function(){}),w=function(e,t,i,s){var n,r,a,o,l,u={},d=e.dataTypes.slice();if(d[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(r=d.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&s&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift()){if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=u[l+" "+r]||u["* "+r])){for(n in u)if((o=n.split(" "))[1]===r&&(a=u[l+" "+o[0]]||u["* "+o[0]])){!0===a?a=u[n]:!0!==u[n]&&(r=o[0],d.unshift(o[1]));break}}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}}return{state:"success",data:t}}(h,w,S,c),c?(h.ifModified&&((k=S.getResponseHeader("Last-Modified"))&&(A.lastModified[n]=k),(k=S.getResponseHeader("etag"))&&(A.etag[n]=k)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=w.state,p=w.data,c=!(b=w.error))):(b=T,(e||!T)&&(T="error",e<0&&(e=0))),S.status=e,S.statusText=(t||T)+"",c?f.resolveWith(m,[p,T,S]):f.rejectWith(m,[S,T,b]),S.statusCode(y),y=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[S,h,c?p:b]),_.fireWith(m,[S,T]),d&&(g.trigger("ajaxComplete",[S,h]),--A.active||A.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,i){return A.get(e,t,i,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],function(e,t){A[t]=function(e,i,s,n){return _(i)&&(n=n||s,s=i,i=void 0),A.ajax(A.extend({url:e,type:t,dataType:n,data:i,success:s},A.isPlainObject(e)&&e))}}),A.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),A._evalUrl=function(e,t,i){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,i)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(_(e)&&(e=e.call(this[0])),t=A(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return _(e)?this.each(function(t){A(this).wrapInner(e.call(this,t))}):this.each(function(){var t=A(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=_(e);return this.each(function(i){A(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new s.XMLHttpRequest}catch(e){}};var tN={0:200,1223:204},tj=A.ajaxSettings.xhr();f.cors=!!tj&&"withCredentials"in tj,f.ajax=tj=!!tj,A.ajaxTransport(function(e){var t,i;if(f.cors||tj&&!e.crossDomain)return{send:function(n,r){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];for(a in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(tN[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&s.setTimeout(function(){t&&i()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),A.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),A.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,i;return{send:function(s,n){t=A("