1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="357d11d5-d1bc-5b1c-827d-2af1c73b73e5")}catch(e){}}(); 3import{A as $,B as C,Ca as R,P as I,T as j,X as P,_ as T,a as O,c as z,e as k,fa as D,g as d,h as b,j as S,ka as a,ke as _,l as y,ma as f,pa as F,qc as K,s as q,sa as H,u as E,ua as v,va as M,w as m,wa as L,x as A,y as g}from"./chunk-6JDAX46X.js";import{a as p}from"./chunk-NRZQXNCQ.js";function Y(){return n=>new z(o=>{let t,e,i=new O;return i.add(n.subscribe({complete:()=>{t&&o.next(e),o.complete()},error:s=>{o.error(s)},next:s=>{e=s,t||(t=b.schedule(()=>{o.next(e),t=void 0}),i.add(t))}})),i})}function w(n){return typeof n.ngrxOnStoreInit=="function"}function x(n){return typeof n.ngrxOnStateInit=="function"}function it(n){let o=new v("@ngrx/component-store ComponentStore with Hooks");return[{provide:o,useClass:n},{provide:n,useFactory:()=>{let t=L(o);return t.\u0275hasProvider=!0,w(t)&&t.ngrxOnStoreInit(),x(t)&&t.state$.pipe(j(1)).subscribe(()=>t.ngrxOnStateInit()),t}}]}var B=new v("@ngrx/component-store Initial State"),ot=(()=>{class n{constructor(t){this.destroySubject$=new d(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new d(1),this.isInitialized=!1,this.state$=this.select(e=>e),this.state=_(this.stateSubject$.pipe(a(this.destroy$)),{requireSync:!1,manualCleanup:!0}),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return e=>{let i=!0,s,r=(g(e)?e:m(e)).pipe(q(S),f(()=>this.assertStateIsInitialized()),F(this.stateSubject$),$(([u,l])=>t(l,u)),f(u=>this.stateSubject$.next(u)),I(u=>i?(s=u,y):A(u)),a(this.destroy$)).subscribe();if(s)throw s;return i=!1,r}}initState(t){E([t],S).subscribe(e=>{this.isInitialized=!0,this.stateSubject$.next(e)})}setState(t){typeof t!="function"?this.initState(t):this.updater(t)()}patchState(t){let e=typeof t=="function"?t(this.get()):t;this.updater((i,s)=>p(p({},i),s))(e)}get(t){this.assertStateIsInitialized();let e;return this.stateSubject$.pipe(j(1)).subscribe(i=>{e=t?t(i):i}),e}select(...t){let{observablesOrSelectorsObject:e,projector:i,config:s}=G(t);return(N(e,i)?this.stateSubject$:C(e)).pipe(s.debounce?Y():W(),i?$(r=>e.length>0&&Array.isArray(r)?i(...r):i(r)):W(),P(s.equal),D({refCount:!0,bufferSize:1}),a(this.destroy$))}selectSignal(...t){let e=[...t],i=(l,h)=>l===h,s=typeof e[t.length-1]=="object"?{equal:e.pop().equal||i}:{equal:i},c=e.pop(),r=e,u=r.length===0?()=>c(this.state()):()=>{let l=r.map(h=>h());return c(...l)};return R(u,s)}effect(t){let e=new k;return t(e).pipe(a(this.destroy$)).subscribe(),i=>(g(i)?i:m(i)).pipe(a(this.destroy$)).subscribe(c=>{e.next(c)})}checkProviderForHooks(){b.schedule(()=>{if(K()&&(w(this)||x(this))&&!this.\u0275hasProvider){let t=[w(this)?"OnStoreInit":"",x(this)?"OnStateInit":""].filter(e=>e);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${t.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}static{this.\u0275fac=function(e){return new(e||n)(M(B,8))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();function G(n){let o=Array.from(n),e={debounce:!1,equal:(c,r)=>c===r};if(J(o[o.length-1])&&(e=p(p({},e),o.pop())),o.length===1&&typeof o[0]!="function")return{observablesOrSelectorsObject:o[0],projector:void 0,config:e};let i=o.pop();return{observablesOrSelectorsObject:o,projector:i,config:e}}function J(n){let o=n;return typeof o.debounce<"u"||typeof o.equal<"u"}function N(n,o){return Array.isArray(n)&&n.length===0&&o}function W(){return n=>n}function st(n,o,t){let e=typeof n=="function"?{next:n,error:o,complete:t}:n;return i=>i.pipe(f({next:e.next,complete:e.complete}),I(s=>(e.error(s),y)),e.finalize?T(e.finalize):s=>s)}export{it as a,ot as b,st as c}; 4//# sourceMappingURL=chunk-X5WMLQQS.js.map 5 6//# debugId=357d11d5-d1bc-5b1c-827d-2af1c73b73e5
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.