1import{$n as xi,Wn as ur,k as Je}from"./chunk-DF3w6kHy.js";import{Gt as T,ar as gc,q as J,tt as Ke}from"./chunk-_fV1tyTy.js";import{t}from"./chunk-C1fI3aoN2.js";import{c as b}from"./chunk-Cr9yfTcF2.js";var v=(()=>{class e{#s=T(t);#i=T(b);#e=Ke([]);remarkDismissalsSignal=this.#e.asReadonly();createTracker(){gc(()=>{let i=this.#s.userChangeSignal()?.current?.user?.settings?.dismissals?.remarks;i&&this.#e.set(i)})}async registerRemarkDismissal(s){return this.#i.addRemarkDismissal(s)}async registerHintDismissalCold(s){return this.#i.addHintDismissal(s)}async registerHintDismissal(s){await this.registerHintDismissalCold(s)}async isDismissed(s){if(ur(s))return this.#t(s);if(xi(s,`section`))return this.#r(s);throw new Je(`Unsupported item type`,s)}#r(s){let i=this.#s.validUserSignal();if(!i)return!1;let r=i.settings?.dismissals?.remarks;return r&&r.includes(s.id)}#t(s){let i=this.#s.validUserSignal();return i?i.settings?.dismissals?.hints?.includes(s)??!1:!1}static ɵfac=function(i){return new(i||e)};static ɵprov=J({token:e,factory:e.ɵfac,providedIn:`root`})}return e})();export{v as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.