PageSourceSearch

https://librarysearch.mtroyal.ca/nde/node_modules_ngrx_store_fesm2…2_ngrx-store_mjs-_da110.d5b3f4a756fa1729.js

js mtroyal.ca collected 2026-10-01 10:20:28 UTC 18,636 bytes, 2 lines download raw bytes

1(self.webpackChunkprimoVeNde=self.webpackChunkprimoVeNde||[]).push([["node_modules_ngrx_store_fesm2022_ngrx-store_mjs-_da110"],{81383:(Wt,ce,h)=>{h.r(ce),h.d(ce,{ACTIVE_RUNTIME_CHECKS:()=>g,ActionsSubject:()=>l,FEATURE_REDUCERS:()=>v,FEATURE_STATE_PROVIDER:()=>G,INIT:()=>x,INITIAL_REDUCERS:()=>B,INITIAL_STATE:()=>m,META_REDUCERS:()=>j,REDUCER_FACTORY:()=>N,ROOT_STORE_PROVIDER:()=>C,ReducerManager:()=>f,ReducerManagerDispatcher:()=>Z,ReducerObservable:()=>A,STORE_FEATURES:()=>L,ScannedActionsSubject:()=>E,State:()=>y,StateObservable:()=>q,Store:()=>p,StoreFeatureModule:()=>D,StoreModule:()=>U,StoreRootModule:()=>S,UPDATE:()=>Oe,USER_PROVIDED_META_REDUCERS:()=>V,USER_RUNTIME_CHECKS:()=>$,combineReducers:()=>b,compose:()=>H,createAction:()=>Ee,createActionGroup:()=>Ge,createFeature:()=>pt,createFeatureSelector:()=>ke,createReducer:()=>Kt,createReducerFactory:()=>Y,createSelector:()=>ee,createSelectorFactory:()=>Fe,defaultMemoize:()=>P,defaultStateFn:()=>Ue,emptyProps:()=>He,isNgrxMockEnvironment:()=>Pe,on:()=>Bt,props:()=>pe,provideState:()=>Ut,provideStore:()=>xt,reduceState:()=>je,resultMemoize:()=>_t,select:()=>Me,setNgrxMockEnvironment:()=>dt,union:()=>ze});var ie,se,ue,ae,de,le,_e,fe,o=h(68930),R=h(35930),T=h(75858),We=h(32478);const O={};function Ee(e,t){if(O[e]=(O[e]||0)+1,"function"==typeof t)return F(e,(...r)=>({...t(...r),type:e}));switch(t?t._as:"empty"){case"empty":return F(e,()=>({type:e}));case"props":return F(e,r=>({...r,type:e}));default:throw new Error("Unexpected config.")}}function pe(){return{_as:"props",_p:void 0}}function ze(e){}function F(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}function k(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Ge(e){const{source:t,events:n}=e;return Object.keys(n).reduce((r,c)=>({...r,[Ye(c)]:Ee(Ze(t,c),n[c])}),{})}function He(){return{_as:"props",_p:void 0}}function Ye(e){return e.trim().split(" ").map((t,n)=>0===n?function Ve(e){return e.charAt(0).toLowerCase()+e.substring(1)}(t):k(t)).join("")}function Ze(e,t){return`[${e}] ${t}`}const x="@ngrx/store/init";class l extends R.BehaviorSubject{constructor(){super({type:x})}next(t){if("function"==typeof t)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(typeof t>"u")throw new TypeError("Actions must be objects");if(typeof t.type>"u")throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}static#e=ie=()=>(this.\u0275fac=function(n){return new(n||l)},this.\u0275prov=o.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac}))}ie();const qe=[l],w=new o.InjectionToken("@ngrx/store Internal Root Guard"),Re=new o.InjectionToken("@ngrx/store Internal Initial State"),m=new o.InjectionToken("@ngrx/store Initial State"),N=new o.InjectionToken("@ngrx/store Reducer Factory"),ye=new o.InjectionToken("@ngrx/store Internal Reducer Factory Provider"),B=new o.InjectionToken("@ngrx/store Initial Reducers"),K=new o.InjectionToken("@ngrx/store Internal Initial Reducers"),L=new o.InjectionToken("@ngrx/store Store Features"),Ie=new o.InjectionToken("@ngrx/store Internal Store Reducers"),W=new o.InjectionToken("@ngrx/store Internal Feature Reducers"),he=new o.InjectionToken("@ngrx/store Internal Feature Configs"),z=new o.InjectionToken("@ngrx/store Internal Store Features"),Te=new o.InjectionToken("@ngrx/store Internal Feature Reducers Token"),v=new o.InjectionToken("@ngrx/store Feature Reducers"),V=new o.InjectionToken("@ngrx/store User Provided Meta Reducers"),j=new o.InjectionToken("@ngrx/store Meta Reducers"),ge=new o.InjectionToken("@ngrx/store Internal Resolved Meta Reducers"),$=new o.InjectionToken("@ngrx/store User Runtime Checks Config"),Se=new o.InjectionToken("@ngrx/store Internal User Runtime Checks Config"),g=new o.InjectionToken("@ngrx/store Internal Runtime Checks"),M=new o.InjectionToken("@ngrx/store Check if Action types are unique"),C=new o.InjectionToken("@ngrx/store Root Store Provider"),G=new o.InjectionToken("@ngrx/store Feature State Provider");function b(e,t={}){const n=Object.keys(e),r={};for(let i=0;i<n.length;i++){const s=n[i];"function"==typeof e[s]&&(r[s]=e[s])}const c=Object.keys(r);return function(s,a){s=void 0===s?t:s;let d=!1;const _={};for(let u=0;u<c.length;u++){const I=c[u],Lt=r[I],Ke=s[I],Le=Lt(Ke,a);_[I]=Le,d=d||Le!==Ke}return d?_:s}}function H(...e){return function(t){if(0===e.length)return t;const n=e[e.length-1];return e.slice(0,-1).reduceRight((c,i)=>i(c),n(t))}}function Y(e,t){return Array.isArray(t)&&t.length>0&&(e=H.apply(null,[...t,e])),(n,r)=>{const c=e(n);return(i,s)=>c(i=void 0===i?r:i,s)}}class A extends R.Observable{}class Z extends l{}const Oe="@ngrx/store/update-reducers";class f extends R.BehaviorSubject{get currentReducers(){return this.reducers}constructor(t,n,r,c){super(c(r,n)),this.dispatcher=t,this.initialState=n,this.reducers=r,this.reducerFactory=c}addFeature(t){this.addFeatures([t])}addFeatures(t){const n=t.reduce((r,{reducers:c,reducerFactory:i,metaReducers:s,initialState:a,key:d})=>{const _="function"==typeof c?function Je(e){const t=Array.isArray(e)&&e.length>0?H(...e):n=>n;return(n,r)=>(n=t(n),(c,i)=>n(c=void 0===c?r:c,i))}(s)(c,a):Y(i,s)(c,a);return r[d]=_,r},{});this.addReducers(n)}
1removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(n=>n.key))}addReducer(t,n){this.addReducers({[t]:n})}addReducers(t){this.reducers={...this.reducers,...t},this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(n=>{this.reducers=function Qe(e,t){return Object.keys(e).filter(n=>n!==t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{})}(this.reducers,n)}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Oe,features:t})}ngOnDestroy(){this.complete()}static#e=se=()=>(this.\u0275fac=function(n){return new(n||f)(o.\u0275\u0275inject(Z),o.\u0275\u0275inject(m),o.\u0275\u0275inject(B),o.\u0275\u0275inject(N))},this.\u0275prov=o.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac}))}se();const Xe=[f,{provide:A,useExisting:f},{provide:Z,useExisting:l}];class E extends R.Subject{ngOnDestroy(){this.complete()}static#e=ue=()=>(this.\u0275fac=(()=>{let t;return function(r){return(t||(t=o.\u0275\u0275getInheritedFactory(E)))(r||E)}})(),this.\u0275prov=o.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}))}ue();const et=[E];class q extends R.Observable{}class y extends R.BehaviorSubject{constructor(t,n,r,c){super(c);const a={state:c},d=t.pipe((0,T.observeOn)(R.queueScheduler)).pipe((0,T.withLatestFrom)(n)).pipe((0,T.scan)(je,a));this.stateSubscription=d.subscribe(({state:_,action:u})=>{this.next(_),r.next(u)}),this.state=(0,We.toSignal)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static#e=ae=()=>(this.INIT=x,this.\u0275fac=function(n){return new(n||y)(o.\u0275\u0275inject(l),o.\u0275\u0275inject(A),o.\u0275\u0275inject(E),o.\u0275\u0275inject(m))},this.\u0275prov=o.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac}))}function je(e={state:void 0},[t,n]){const{state:r}=e;return{state:n(r,t),action:t}}ae();const tt=[y,{provide:q,useExisting:y}];class p extends R.Observable{constructor(t,n,r,c){super(),this.actionsObserver=n,this.reducerManager=r,this.injector=c,this.source=t,this.state=t.state}select(t,...n){return Me.call(null,t,...n)(this)}selectSignal(t,n){return(0,o.computed)(()=>t(this.state()),n)}lift(t){const n=new p(this,this.actionsObserver,this.reducerManager);return n.operator=t,n}dispatch(t,n){if("function"==typeof t)return this.processDispatchFn(t,n);this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,n){this.reducerManager.addReducer(t,n)}removeReducer(t){this.reducerManager.removeReducer(t)}processDispatchFn(t,n){!function $e(e,t){if(null==e)throw new Error(`${t} must be defined.`)}(this.injector,"Store Injector");const r=n?.injector??function rt(){try{return(0,o.inject)(o.Injector)}catch{return}}()??this.injector;return(0,o.effect)(()=>{const c=t();(0,o.untracked)(()=>this.dispatch(c))},{injector:r})}static#e=de=()=>(this.\u0275fac=function(n){return new(n||p)(o.\u0275\u0275inject(q),o.\u0275\u0275inject(l),o.\u0275\u0275inject(f),o.\u0275\u0275inject(o.Injector))},this.\u0275prov=o.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}))}de();const nt=[p];function Me(e,t,...n){return function(c){let i;if("string"==typeof e){const s=[t,...n].filter(Boolean);i=c.pipe((0,T.pluck)(e,...s))}else{if("function"!=typeof e)throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);i=c.pipe((0,T.map)(s=>e(s,t)))}return i.pipe((0,T.distinctUntilChanged)())}}const Q="https://ngrx.io/guide/store/configuration/runtime-checks";function Ae(e){return void 0===e}function De(e){return null===e}function me(e){return Array.isArray(e)}function ve(e){return"object"==typeof e&&null!==e}function Ce(e){if(!function st(e){return ve(e)&&!me(e)}(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function J(e){return"function"==typeof e}let be=!1;function dt(e){be=e}function Pe(){return be}function X(e,t){return e===t}function _t(e,t){return P(e,X,t)}function P(e,t=X,n=X){let i,r=null,c=null;return{memoized:function _(){if(void 0!==i)return i.result;if(!r)return c=e.apply(null,arguments),r=arguments,c;if(!function lt(e,t,n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!0;return!1}(arguments,r,t))return c;const u=e.apply(null,arguments);return r=arguments,n(c,u)?c:(c=u,u)},reset:function s(){r=null,c=null},setResult:function a(u=void 0){i={result:u}},clearResult:function d(){i=void 0}}}function ee(...e){return Fe(P)(...e)}function Ue(e,t,n,r){if(void 0===n){const i=t.map(s=>s(e));return r.memoized.apply(null,i)}const c=t.map(i=>i(e,n));return r.memoized.apply(null,[...c,n])}function Fe(e,t={stateFn:Ue}){return function(...n){let r=n;if(Array.isArray(r[0])){const[u,...I]=r;r=[...u,...I]}else 1===r.length&&function ft(e){return!!e&&"object"==typeof e&&Object.values(e).every(t=>"function"==typeof t)}(r[0])&&(r=function Et(e){const t=Object.values(e),n=Object.keys(e),r=(...c)=>n.reduce((i,s,a)=>({...i,[s]:c[a]}),{});return[...t,r]}(r[0]));const c=r.slice(0,r.length-1),i=r[r.length-1],s=c.filter(u=>u.release&&"function"==typeof u.release),a=e(function(...u){return i.apply(null,u)}),d=P(function(u,I){return t.stateFn.apply(null,[u,c,I,a])});return Object.assign(d.memoized,{release:function _(){d.reset(),a.reset(),s.forEac
1h(u=>u.release())},projector:a.memoized,setResult:d.setResult,clearResult:d.clearResult})}}function ke(e){return ee(t=>{const n=t[e];return!Pe()&&(0,o.isDevMode)()&&!(e in t)&&console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...).  If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),n},t=>t)}function pt(e){const{name:t,reducer:n,extraSelectors:r}=e,c=ke(t),i=function Rt(e,t){const n=function yt(e){return e(void 0,{type:"@ngrx/feature/init"})}(t);return(Ce(n)?Object.keys(n):[]).reduce((c,i)=>({...c,[`select${k(i)}`]:ee(e,s=>s?.[i])}),{})}(c,n),s={[`select${k(t)}State`]:c,...i},a=r?r(s):{};return{name:t,reducer:n,...s,...a}}function It(e){return e instanceof o.InjectionToken?(0,o.inject)(e):e}function ht(e,t){return t.map((n,r)=>{if(e[r]instanceof o.InjectionToken){const c=(0,o.inject)(e[r]);return{key:n.key,reducerFactory:c.reducerFactory?c.reducerFactory:b,metaReducers:c.metaReducers?c.metaReducers:[],initialState:c.initialState}}return n})}function Tt(e){return e.map(t=>t instanceof o.InjectionToken?(0,o.inject)(t):t)}function te(e){return"function"==typeof e?e():e}function gt(e,t){return e.concat(t)}function St(){if((0,o.inject)(p,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function ne(e){Object.freeze(e);const t=J(e);return Object.getOwnPropertyNames(e).forEach(n=>{if(!n.startsWith("\u0275")&&function at(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const r=e[n];(ve(r)||J(r))&&!Object.isFrozen(r)&&ne(r)}}),e}function re(e,t=[]){return(Ae(e)||De(e))&&0===t.length?{path:["root"],value:e}:Object.keys(e).reduce((r,c)=>{if(r)return r;const i=e[c];return function ut(e){return J(e)&&e.hasOwnProperty("\u0275cmp")}(i)?r:!(Ae(i)||De(i)||function it(e){return"number"==typeof e}(i)||function ct(e){return"boolean"==typeof e}(i)||function ot(e){return"string"==typeof e}(i)||me(i))&&(Ce(i)?re(i,[...t,c]):{path:[...t,c],value:i})},!1)}function xe(e,t){if(!1===e)return;const n=e.path.join("."),r=new Error(`Detected unserializable ${t} at "${n}". ${Q}#strict${t}serializability`);throw r.value=e.value,r.unserializablePath=n,r}function At(e){return(0,o.isDevMode)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...e}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Dt({strictActionSerializability:e,strictStateSerializability:t}){return n=>e||t?function jt(e,t){return function(n,r){t.action(r)&&xe(re(r),"action");const c=e(n,r);return t.state()&&xe(re(c),"state"),c}}(n,{action:r=>e&&!oe(r),state:()=>t}):n}function mt({strictActionImmutability:e,strictStateImmutability:t}){return n=>e||t?function Ot(e,t){return function(n,r){const c=t.action(r)?ne(r):r,i=e(n,c);return t.state()?ne(i):i}}(n,{action:r=>e&&!oe(r),state:()=>t}):n}function oe(e){return e.type.startsWith("@ngrx")}function vt({strictActionWithinNgZone:e}){return t=>e?function Mt(e,t){return function(n,r){if(t.action(r)&&!o.NgZone.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${Q}#strictactionwithinngzone`);return e(n,r)}}(t,{action:n=>e&&!oe(n)}):t}function Ct(e){return[{provide:Se,useValue:e},{provide:$,useFactory:bt,deps:[Se]},{provide:g,deps:[$],useFactory:At},{provide:j,multi:!0,deps:[g],useFactory:mt},{provide:j,multi:!0,deps:[g],useFactory:Dt},{provide:j,multi:!0,deps:[g],useFactory:vt}]}function we(){return[{provide:M,multi:!0,deps:[g],useFactory:Pt}]}function bt(e){return e}function Pt(e){if(!e.strictActionTypeUniqueness)return;const t=Object.entries(O).filter(([,n])=>n>1).map(([n])=>n);if(t.length)throw new Error(`Action types are registered more than once, ${t.map(n=>`"${n}"`).join(", ")}. ${Q}#strictactiontypeuniqueness`)}function Ut(e,t,n={}){return(0,o.makeEnvironmentProviders)([...Be(e,t,n),Nt])}function Ne(e={},t={}){return[{provide:w,useFactory:St},{provide:Re,useValue:t.initialState},{provide:m,useFactory:te,deps:[Re]},{provide:K,useValue:e},{provide:Ie,useExisting:e instanceof o.InjectionToken?e:K},{provide:B,deps:[K,[new o.Inject(Ie)]],useFactory:It},{provide:V,useValue:t.metaReducers?t.metaReducers:[]},{provide:ge,deps:[j,V],useFactory:gt},{provide:ye,useValue:t.reducerFactory?t.reducerFactory:b},{provide:N,deps:[ye,ge],useFactory:Y},qe,Xe,et,tt,nt,Ct(t.runtimeChecks),we()]}const kt=[{provide:C,useFactory:function Ft(){(0,o.inject)(l),(0,o.inject)(A),(0,o.inject)(E),(0,o.inject)(p),(0,o.inject)(w,{optional:!0}),(0,o.inject)(M,{optional:!0})}},(0,o.provideEnvironmentInitializer)(()=>(0,o.inject)(C))];function xt(e,t){return(0,o.makeEnvironmentProviders)([...Ne(e,t),kt])}const Nt=[{provide:G,useFactory:function wt(){(0,o.inject)(C);const e=(0,o.inject)(z),t=(0,o.inject)(v),n=(0,o.inject)(f);(0,o.inject)(M,{optional:!0});const r=e.map((c,i)=>{const a=t.shift()[i];return{...c,reducers:a,initialState:te(c.initialState)}});n.addFeatures(r)}},(0,o.provideEnvironmentInitializer)(()=>(0,o.inject)(G))];function Be(e,t,n={}){return[{provide:he,multi:!0,useValue:e instanceof Object?{}:n},{provide:L,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof o.InjectionToken||!n.reducerFactory?b:n.reducerFactory,metaReducers:n instanceof o.InjectionToken||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof o.InjectionToken||!n.initialState?void 0:n.initialState}},{provide:z,deps:[he,L],useFactory:ht},{provide:W,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:Te,multi:!0,useExisting:t instanceof o.InjectionToken?t:W},{provide:v,multi:!0,deps:[W,[new o.Inject(Te)]],useFactory:Tt},we()]}class S{constructor(t,n,r,c,i,s){}static#e=le=()=>(this.\u0275fac=function(n){return new(n||S)(o.\u0275\u0275inject(l),o.\u0275\u0275inject(A),o.\u0275\u0275inject(E),o.\u
10275\u0275inject(p),o.\u0275\u0275inject(w,8),o.\u0275\u0275inject(M,8))},this.\u0275mod=o.\u0275\u0275defineNgModule({type:S}),this.\u0275inj=o.\u0275\u0275defineInjector({}))}le();class D{constructor(t,n,r,c,i){this.features=t,this.featureReducers=n,this.reducerManager=r;const s=t.map((a,d)=>{const u=n.shift()[d];return{...a,reducers:u,initialState:te(a.initialState)}});r.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static#e=_e=()=>(this.\u0275fac=function(n){return new(n||D)(o.\u0275\u0275inject(z),o.\u0275\u0275inject(v),o.\u0275\u0275inject(f),o.\u0275\u0275inject(S),o.\u0275\u0275inject(M,8))},this.\u0275mod=o.\u0275\u0275defineNgModule({type:D}),this.\u0275inj=o.\u0275\u0275defineInjector({}))}_e();class U{static forRoot(t,n){return{ngModule:S,providers:[...Ne(t,n)]}}static forFeature(t,n,r={}){return{ngModule:D,providers:[...Be(t,n,r)]}}static#e=fe=()=>(this.\u0275fac=function(n){return new(n||U)},this.\u0275mod=o.\u0275\u0275defineNgModule({type:U}),this.\u0275inj=o.\u0275\u0275defineInjector({}))}function Bt(...e){return{reducer:e.pop(),types:e.map(r=>r.type)}}function Kt(e,...t){const n=new Map;for(const r of t)for(const c of r.types){const i=n.get(c);if(i){const s=(a,d)=>r.reducer(i(a,d),d);n.set(c,s)}else n.set(c,r.reducer)}return function(r=e,c){const i=n.get(c.type);return i?i(r,c):r}}fe()}}]);
2//# sourceMappingURL=node_modules_ngrx_store_fesm2022_ngrx-store_mjs-_da110.d5b3f4a756fa1729.js.map

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.