From d9e2a1a0a5a00ec8338b189a3dae93079aa870cd Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Wed, 31 Jul 2024 12:17:02 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/buch/commit/320a69bf2f94a2b6978c9064277e3cc6b7b19462 --- 404.html | 2 +- chunk-5LUD6JC3.js | 2 -- chunk-6WBBFKKJ.js | 1 - chunk-7XFUBETA.js | 2 ++ chunk-OUM7I4SI.js | 1 + chunk-TH4YVO56.js | 8 -------- chunk-UYFSIOAA.js | 1 + chunk-UZOWJZPK.js | 8 ++++++++ chunk-VHYXJGGB.js | 1 - index.html | 2 +- main-6W7WALDM.js | 2 -- main-FMIN5GQI.js | 2 ++ ngsw-worker.js | 2 +- ngsw.json | 28 ++++++++++++++-------------- polyfills-6EAL64PA.js | 2 -- polyfills-SCHOHYNV.js | 2 ++ 16 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 chunk-5LUD6JC3.js delete mode 100644 chunk-6WBBFKKJ.js create mode 100644 chunk-7XFUBETA.js create mode 100644 chunk-OUM7I4SI.js delete mode 100644 chunk-TH4YVO56.js create mode 100644 chunk-UYFSIOAA.js create mode 100644 chunk-UZOWJZPK.js delete mode 100644 chunk-VHYXJGGB.js delete mode 100644 main-6W7WALDM.js create mode 100644 main-FMIN5GQI.js delete mode 100644 polyfills-6EAL64PA.js create mode 100644 polyfills-SCHOHYNV.js diff --git a/404.html b/404.html index a9bb70a..e5c026c 100644 --- a/404.html +++ b/404.html @@ -19,5 +19,5 @@
Loading ...
- + diff --git a/chunk-5LUD6JC3.js b/chunk-5LUD6JC3.js deleted file mode 100644 index 92e43a3..0000000 --- a/chunk-5LUD6JC3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as ve,A as pe,Aa as Le,B as b,Ba as $e,C as S,D as ke,Da as We,E as me,F as A,G as M,H as h,K as j,Ka as qe,L as Pe,M as Te,Ma as J,N as ge,P as G,Pa as Ce,Q as N,Qa as k,T as v,U as s,W as R,Z as y,_ as x,a as d,aa as f,b as p,ba as ye,c as Se,ca as l,da as u,e as Ne,ea as D,h as O,ha as Be,ia as m,ja as je,k as Oe,la as c,na as Ge,oa as E,pa as X,ra as Re,sa as Ue,ua as He,v as xe,y as Z,ya as _e,z as V,za as K}from"./chunk-TH4YVO56.js";var et=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(s(R),s(G))},e.\u0275dir=h({type:e});let t=e;return t})(),jt=(()=>{let e=class e extends et{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(e)))(o||e)}})(),e.\u0275dir=h({type:e,features:[y]});let t=e;return t})(),ae=new S("");var Gt={provide:ae,useExisting:V(()=>le),multi:!0};function Rt(){let t=_e()?_e().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Ut=new S(""),le=(()=>{let e=class e extends et{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Rt())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(s(R),s(G),s(Ut,8))},e.\u0275dir=h({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&m("input",function(C){return o._handleInput(C.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(C){return o._compositionEnd(C.target.value)})},features:[E([Gt]),y]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function tt(t){return t!=null&&typeof t.length=="number"}var ue=new S(""),ce=new S(""),Ht=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,W=class{static min(e){return Lt(e)}static max(e){return $t(e)}static required(e){return Wt(e)}static requiredTrue(e){return qt(e)}static email(e){return zt(e)}static minLength(e){return Yt(e)}static maxLength(e){return Zt(e)}static pattern(e){return Xt(e)}static nullValidator(e){return it(e)}static compose(e){return lt(e)}static composeAsync(e){return ct(e)}};function Lt(t){return e=>{if(F(e.value)||F(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n{if(F(e.value)||F(t))return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function Wt(t){return F(t.value)?{required:!0}:null}function qt(t){return t.value===!0?null:{required:!0}}function zt(t){return F(t.value)||Ht.test(t.value)?null:{email:!0}}function Yt(t){return e=>F(e.value)||!tt(e.value)?null:e.value.lengthtt(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Xt(t){if(!t)return it;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),i=>{if(F(i.value))return null;let r=i.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function it(t){return null}function nt(t){return t!=null}function rt(t){return He(t)?Ne(t):t}function ot(t){let e={};return t.forEach(n=>{e=n!=null?d(d({},e),n):e}),Object.keys(e).length===0?null:e}function st(t,e){return e.map(n=>n(t))}function Kt(t){return!t.validate}function at(t){return t.map(e=>Kt(e)?e:n=>e.validate(n))}function lt(t){if(!t)return null;let e=t.filter(nt);return e.length==0?null:function(n){return ot(st(n,e))}}function ut(t){return t!=null?lt(at(t)):null}function ct(t){if(!t)return null;let e=t.filter(nt);return e.length==0?null:function(n){let i=st(n,e).map(rt);return Oe(i).pipe(O(ot))}}function dt(t){return t!=null?ct(at(t)):null}function ze(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ht(t){return t._rawValidators}function ft(t){return t._rawAsyncValidators}function De(t){return t?Array.isArray(t)?t:[t]:[]}function ee(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ye(t,e){let n=De(e);return De(t).forEach(r=>{ee(n,r)||n.push(r)}),n}function Ze(t,e){return De(e).filter(n=>!ee(t,n))}var te=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ut(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=dt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},g=class extends te{get formDirective(){return null}get path(){return null}},q=class extends te{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},ie=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Jt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Yi=p(d({},Jt),{"[class.ng-submitted]":"isSubmitted"}),pt=(()=>{let e=class e extends ie{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(q,2))},e.\u0275dir=h({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ye("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[y]});let t=e;return t})(),mt=(()=>{let e=class e extends ie{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(g,10))},e.\u0275dir=h({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ye("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[y]});let t=e;return t})();var U="VALID",Q="INVALID",P="PENDING",H="DISABLED",w=class{},ne=class extends w{constructor(e,n){super(),this.value=e,this.source=n}},L=class extends w{constructor(e,n){super(),this.pristine=e,this.source=n}},$=class extends w{constructor(e,n){super(),this.touched=e,this.source=n}},T=class extends w{constructor(e,n){super(),this.status=e,this.source=n}},Ve=class extends w{constructor(e){super(),this.source=e}},be=class extends w{constructor(e){super(),this.source=e}};function Ae(t){return(de(t)?t.validators:t)||null}function Qt(t){return Array.isArray(t)?ut(t):t||null}function Me(t,e){return(de(e)?e.asyncValidators:t)||null}function ei(t){return Array.isArray(t)?dt(t):t||null}function de(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function gt(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new Z(1e3,"");if(!i[n])throw new Z(1001,"")}function vt(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new Z(1002,"")})}var z=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Se,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===U}get invalid(){return this.status===Q}get pending(){return this.status==P}get disabled(){return this.status===H}get enabled(){return this.status!==H}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ye(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ye(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ze(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ze(e,this._rawAsyncValidators))}hasValidator(e){return ee(this._rawValidators,e)}hasAsyncValidator(e){return ee(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(p(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new $(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new $(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(p(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new L(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new L(!0,i))}markAsPending(e={}){this.status=P;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(p(d({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(r=>{r.disable(p(d({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ne(this.value,i)),this._events.next(new T(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=U,this._forEachChild(i=>{i.enable(p(d({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(p(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===U||this.status===P)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ne(this.value,n)),this._events.next(new T(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(p(d({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?H:U}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=P,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=rt(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new T(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?H:this.errors?Q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(P)?P:this._anyControlsHaveStatus(Q)?Q:U}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new L(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new $(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){de(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Qt(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ei(this._rawAsyncValidators)}},re=class extends z{constructor(e,n,i){super(Ae(n),Me(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,i={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){vt(this,!0,e),Object.keys(e).forEach(i=>{gt(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,i)=>(e[i]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,i)=>i._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let i=this.controls[n];i&&e(i,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,i]of Object.entries(this.controls))if(this.contains(n)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,i,r)=>((i.enabled||this.disabled)&&(n[r]=i.value),n))}_reduceChildren(e,n){let i=e;return this._forEachChild((r,o)=>{i=n(i,r,o)}),i}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var yt=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Ee}),Ee="always";function Fe(t,e){return[...e.path,t]}function Xe(t,e,n=Ee){we(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),ii(t,e),ri(t,e),ni(t,e),ti(t,e)}function Ke(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),se(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function oe(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function ti(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function we(t,e){let n=ht(t);e.validator!==null?t.setValidators(ze(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=ft(t);e.asyncValidator!==null?t.setAsyncValidators(ze(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();oe(e._rawValidators,r),oe(e._rawAsyncValidators,r)}function se(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=ht(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.validator);o.length!==r.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=ft(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==e.asyncValidator);o.length!==r.length&&(n=!0,t.setAsyncValidators(o))}}}let i=()=>{};return oe(e._rawValidators,i),oe(e._rawAsyncValidators,i),n}function ii(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&_t(t,e)})}function ni(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&_t(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function _t(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ri(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function oi(t,e){t==null,we(t,e)}function si(t,e){return se(t,e)}function ai(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function li(t){return Object.getPrototypeOf(t.constructor)===jt}function ui(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ci(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===le?n=o:li(o)?i=o:r=o}),r||i||n||null}function di(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Je(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function Qe(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var _=class extends z{constructor(e=null,n,i){super(Ae(n),Me(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),de(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Qe(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Je(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Je(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Qe(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var hi=t=>t instanceof _,fi=(()=>{let e=class e extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=ge(e)))(o||e)}})(),e.\u0275dir=h({type:e,features:[y]});let t=e;return t})();var Ct=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=h({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Dt=new S("");var pi={provide:g,useExisting:V(()=>B)},B=(()=>{let e=class e extends g{constructor(i,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new N,this._setValidators(i),this._setAsyncValidators(r)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(se(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let r=this.form.get(i.path);return Xe(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){Ke(i.control||null,i,!1),di(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,r){this.form.get(i.path).setValue(r)}onSubmit(i){return this.submitted=!0,ui(this.form,this.directives),this.ngSubmit.emit(i),this.form._events.next(new Ve(this.control)),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1,this.form._events.next(new be(this.form))}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&(Ke(r||null,i),hi(o)&&(Xe(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);oi(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&si(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){we(this.form,this),this._oldForm&&se(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(ue,10),s(ce,10),s(yt,8))},e.\u0275dir=h({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&m("submit",function(C){return o.onSubmit(C)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[E([pi]),y,j]});let t=e;return t})(),mi={provide:g,useExisting:V(()=>Vt)},Vt=(()=>{let e=class e extends fi{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){bt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(ue,10),s(ce,10))},e.\u0275dir=h({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[E([mi]),y]});let t=e;return t})(),gi={provide:g,useExisting:V(()=>he)},he=(()=>{let e=class e extends g{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Fe(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){bt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(ue,10),s(ce,10))},e.\u0275dir=h({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[E([gi]),y]});let t=e;return t})();function bt(t){return!(t instanceof Vt)&&!(t instanceof B)&&!(t instanceof he)}var vi={provide:q,useExisting:V(()=>Ie)},Ie=(()=>{let e=class e extends q{set isDisabled(i){}constructor(i,r,o,a,C){super(),this._ngModelWarningConfig=C,this._added=!1,this.name=null,this.update=new N,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ci(this,a)}ngOnChanges(i){this._added||this._setUpControl(),ai(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return Fe(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(s(g,13),s(ue,10),s(ce,10),s(ae,10),s(Dt,8))},e.\u0275dir=h({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[E([vi]),y,j]});let t=e;return t})();var yi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({});let t=e;return t})(),Y=class extends z{constructor(e,n,i){super(Ae(n),Me(i,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,i={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,i={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),n&&(this.controls.splice(r,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){vt(this,!1,e),e.forEach((i,r)=>{gt(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((n,i)=>i._syncPendingControls()?!0:n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,i)=>{e(n,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var At=t=>t instanceof Y;var Mt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:Dt,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:yt,useValue:i.callSetDisabledState??Ee}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[yi]});let t=e;return t})();var Ft=(()=>{class t{constructor(n,i){this.renderer=n,this.elementRef=i,this.onInput=r=>{let o=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,a=o?o.toISOString():null;this.onChange(a)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(n){let i=n?new Date(n):null,r=i?new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(s(R),s(G))},t.\u0275dir=h({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,i){n&1&&m("input",function(o){return i.onInput(o.target.valueAsDate)})("blur",function(){return i.onTouched()})},standalone:!0,features:[E([{provide:ae,useExisting:V(()=>t),multi:!0}])]}),t})();var It=(()=>{let e=class e{constructor(i){this.service=i}isbnExists(){return i=>this.service.check(i.value).pipe(O(r=>r?{isbnexists:!0}:null))}};e.\u0275fac=function(r){return new(r||e)(ke(k))},e.\u0275prov=pe({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var St=function(t){if(!t.value||typeof t.value!="string")return null;let n=t.value.replace(/-/g,"").length;return n===10||n===13?null:{isbnformat:!0}},Nt=function(t){return!At(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function Ci(t,e){if(t&1&&(l(0,"p",1),c(1),u()),t&2){let n=e.$implicit;v(),Ge(" ",n,` -`)}}var xt=(()=>{let e=class e{constructor(i){this.form=i,this.messages={}}get errors(){if(!this.controlName)return[];let i=this.form.control.get(this.controlName);return!i||!i.errors||!i.touched?[]:Object.keys(i.errors).map(r=>this.messages[r])}};e.\u0275fac=function(r){return new(r||e)(s(B))},e.\u0275cmp=A({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(r,o){r&1&&x(0,Ci,2,1,"p",0),r&2&&f("ngForOf",o.errors)},dependencies:[K]});let t=e;return t})();var Vi=()=>({required:"Title is required"}),bi=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),Ai=()=>({atleastonevalue:"At least one author required"});function Mi(t,e){if(t&1&&D(0,"input",20),t&2){let n=e.index;f("formControlName",n),ve("aria-label","Author "+n)}}var fe=(()=>{let e=class e{constructor(){this.submitBook=new N,this.form=new re({title:new _("",{nonNullable:!0,validators:W.required}),subtitle:new _("",{nonNullable:!0}),isbn:new _("",{nonNullable:!0,validators:[W.required,St],asyncValidators:me(It).isbnExists()}),description:new _("",{nonNullable:!0}),published:new _("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new _("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(i){this.form.patchValue(i),this.form.setControl("authors",this.buildAuthorsArray(i.authors))}setEditMode(i){let r=this.form.controls.isbn;i?r.disable():r.enable()}buildAuthorsArray(i){return new Y(i.map(r=>new _(r,{nonNullable:!0})),Nt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new _("",{nonNullable:!0}))}submitForm(){let i=this.form.getRawValue(),r=i.authors.filter(a=>!!a),o=p(d({},i),{authors:r});this.submitBook.emit(o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=A({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[j],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(r,o){r&1&&(l(0,"form",0),m("ngSubmit",function(){return o.submitForm()}),l(1,"label",1),c(2,"Title"),u(),D(3,"input",2)(4,"bm-form-errors",3),l(5,"label",4),c(6,"Subtitle"),u(),D(7,"input",5),l(8,"label",6),c(9,"ISBN"),u(),D(10,"input",7)(11,"bm-form-errors",8),l(12,"label"),c(13,"Authors"),u(),l(14,"button",9),m("click",function(){return o.addAuthorControl()}),c(15," + Author "),u(),l(16,"fieldset",10),x(17,Mi,1,2,"input",11),u(),D(18,"bm-form-errors",12),l(19,"label",13),c(20,"Description"),u(),D(21,"textarea",14),l(22,"label",15),c(23,"Published"),u(),D(24,"input",16),l(25,"label",17),c(26,"Thumbnail URL"),u(),D(27,"input",18),l(28,"button",19),c(29," Save "),u()()),r&2&&(f("formGroup",o.form),v(4),f("messages",X(6,Vi)),v(7),f("messages",X(7,bi)),v(6),f("ngForOf",o.authors.controls),v(),f("messages",X(8,Ai)),v(10),f("disabled",o.form.invalid))},dependencies:[K,Ct,le,pt,mt,B,Ie,he,Ft,xt]});let t=e;return t})();var Pt=(()=>{let e=class e{constructor(i,r){this.service=i,this.router=r}create(i){this.service.create(i).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}};e.\u0275fac=function(r){return new(r||e)(s(k),s(J))},e.\u0275cmp=A({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(r,o){r&1&&(l(0,"h1"),c(1,"Create Book"),u(),l(2,"bm-book-form",0),m("submitBook",function(C){return o.create(C)}),u())},dependencies:[fe]});let t=e;return t})();function Fi(t,e){if(t&1){let n=Be();l(0,"bm-book-form",1),m("submitBook",function(r){Pe(n);let o=je();return Te(o.update(r))}),u()}if(t&2){let n=e.ngIf;f("book",n)}}var Tt=(()=>{let e=class e{constructor(i,r,o){this.service=i,this.route=r,this.router=o,this.book$=this.route.paramMap.pipe(O(a=>a.get("isbn")),xe(a=>this.service.getSingle(a)))}update(i){this.service.update(i).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}};e.\u0275fac=function(r){return new(r||e)(s(k),s(qe),s(J))},e.\u0275cmp=A({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(r,o){r&1&&(l(0,"h1"),c(1,"Edit Book"),u(),x(2,Fi,1,1,"bm-book-form",0),Re(3,"async")),r&2&&(v(2),f("ngIf",Ue(3,1,o.book$)))},dependencies:[Le,fe,$e]});let t=e;return t})();var wi=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:Pt},{path:"edit/:isbn",component:Tt}],Bt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[Ce.forChild(wi),Ce]});let t=e;return t})();var xn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[We,Bt,Mt]});let t=e;return t})();export{xn as AdminModule}; diff --git a/chunk-6WBBFKKJ.js b/chunk-6WBBFKKJ.js deleted file mode 100644 index 343bdba..0000000 --- a/chunk-6WBBFKKJ.js +++ /dev/null @@ -1 +0,0 @@ -import{A as s,d as i}from"./chunk-TH4YVO56.js";var c=(()=>{let t=class t{constructor(){this._isAuthenticated$=new i(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{c as a}; diff --git a/chunk-7XFUBETA.js b/chunk-7XFUBETA.js new file mode 100644 index 0000000..1ed60fe --- /dev/null +++ b/chunk-7XFUBETA.js @@ -0,0 +1,2 @@ +import{$ as k,A as ve,Aa as E,B as V,Ba as Ve,C as N,Ca as ee,D as Be,Da as qe,E as ye,Ea as ze,F as b,G as A,Ga as Ye,H as h,K as j,L as Re,M as je,N as _e,Na as Ze,P as G,Pa as te,Q as O,Sa as be,T as v,Ta as P,U as s,W as U,Z as H,_ as y,a as d,aa as Ce,b as m,ba as f,c as xe,ca as De,da as a,e as ke,ea as l,fa as C,h as x,ia as Ge,ja as p,k as Pe,ka as Ue,ma as u,oa as He,pa as M,qa as Q,sa as Le,ta as $e,v as Te,va as We,y as J,z as D,za as L}from"./chunk-UZOWJZPK.js";var nt=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(s(U),s(G))},e.\u0275dir=h({type:e});let t=e;return t})(),Ut=(()=>{let e=class e extends nt{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_e(e)))(o||e)}})(),e.\u0275dir=h({type:e,features:[y]});let t=e;return t})(),ce=new N("");var Ht={provide:ce,useExisting:D(()=>de),multi:!0};function Lt(){let t=Ve()?Ve().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var $t=new N(""),de=(()=>{let e=class e extends nt{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Lt())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(s(U),s(G),s($t,8))},e.\u0275dir=h({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&p("input",function(S){return o._handleInput(S.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(S){return o._compositionEnd(S.target.value)})},features:[M([Ht]),y]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function rt(t){return t!=null&&typeof t.length=="number"}var he=new N(""),fe=new N(""),Wt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Y=class{static min(e){return qt(e)}static max(e){return zt(e)}static required(e){return Yt(e)}static requiredTrue(e){return Zt(e)}static email(e){return Xt(e)}static minLength(e){return Kt(e)}static maxLength(e){return Jt(e)}static pattern(e){return Qt(e)}static nullValidator(e){return ot(e)}static compose(e){return dt(e)}static composeAsync(e){return ft(e)}};function qt(t){return e=>{if(F(e.value)||F(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(F(e.value)||F(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function Yt(t){return F(t.value)?{required:!0}:null}function Zt(t){return t.value===!0?null:{required:!0}}function Xt(t){return F(t.value)||Wt.test(t.value)?null:{email:!0}}function Kt(t){return e=>F(e.value)||!rt(e.value)?null:e.value.lengthrt(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Qt(t){if(!t)return ot;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(F(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function ot(t){return null}function st(t){return t!=null}function at(t){return We(t)?ke(t):t}function lt(t){let e={};return t.forEach(i=>{e=i!=null?d(d({},e),i):e}),Object.keys(e).length===0?null:e}function ut(t,e){return e.map(i=>i(t))}function ei(t){return!t.validate}function ct(t){return t.map(e=>ei(e)?e:i=>e.validate(i))}function dt(t){if(!t)return null;let e=t.filter(st);return e.length==0?null:function(i){return lt(ut(i,e))}}function ht(t){return t!=null?dt(ct(t)):null}function ft(t){if(!t)return null;let e=t.filter(st);return e.length==0?null:function(i){let n=ut(i,e).map(at);return Pe(n).pipe(x(lt))}}function mt(t){return t!=null?ft(ct(t)):null}function Xe(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function pt(t){return t._rawValidators}function gt(t){return t._rawAsyncValidators}function Ae(t){return t?Array.isArray(t)?t:[t]:[]}function ne(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ke(t,e){let i=Ae(e);return Ae(t).forEach(r=>{ne(i,r)||i.push(r)}),i}function Je(t,e){return Ae(e).filter(i=>!ne(t,i))}var re=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ht(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},g=class extends re{get formDirective(){return null}get path(){return null}},Z=class extends re{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},oe=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ti={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ki=m(d({},ti),{"[class.ng-submitted]":"isSubmitted"}),vt=(()=>{let e=class e extends oe{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(s(Z,2))},e.\u0275dir=h({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&De("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[y]});let t=e;return t})(),yt=(()=>{let e=class e extends oe{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(s(g,10))},e.\u0275dir=h({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&De("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[y]});let t=e;return t})();var $="VALID",ie="INVALID",T="PENDING",W="DISABLED",w=class{},se=class extends w{constructor(e,i){super(),this.value=e,this.source=i}},q=class extends w{constructor(e,i){super(),this.pristine=e,this.source=i}},z=class extends w{constructor(e,i){super(),this.touched=e,this.source=i}},B=class extends w{constructor(e,i){super(),this.status=e,this.source=i}},Me=class extends w{constructor(e){super(),this.source=e}},Ee=class extends w{constructor(e){super(),this.source=e}};function Fe(t){return(me(t)?t.validators:t)||null}function ii(t){return Array.isArray(t)?ht(t):t||null}function we(t,e){return(me(e)?e.asyncValidators:t)||null}function ni(t){return Array.isArray(t)?mt(t):t||null}function me(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function _t(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new J(1e3,"");if(!n[i])throw new J(1001,"")}function Ct(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new J(1002,"")})}var X=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=L(()=>this.statusReactive()),this.statusReactive=H(void 0),this._pristine=L(()=>this.pristineReactive()),this.pristineReactive=H(!0),this._touched=L(()=>this.touchedReactive()),this.touchedReactive=H(!1),this._events=new xe,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return E(this.statusReactive)}set status(e){E(()=>this.statusReactive.set(e))}get valid(){return this.status===$}get invalid(){return this.status===ie}get pending(){return this.status==T}get disabled(){return this.status===W}get enabled(){return this.status!==W}get pristine(){return E(this.pristineReactive)}set pristine(e){E(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return E(this.touchedReactive)}set touched(e){E(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ke(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ke(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Je(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Je(e,this._rawAsyncValidators))}hasValidator(e){return ne(this._rawValidators,e)}hasAsyncValidator(e){return ne(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(m(d({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new z(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new z(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(m(d({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new q(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new q(!0,n))}markAsPending(e={}){this.status=T;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(m(d({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=W,this.errors=null,this._forEachChild(r=>{r.disable(m(d({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,n)),this._events.next(new B(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(d({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=$,this._forEachChild(n=>{n.enable(m(d({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(d({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$||this.status===T)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new se(this.value,i)),this._events.next(new B(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(m(d({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?W:$}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=T,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=at(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new B(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new O,this.statusChanges=new O}_calculateStatus(){return this._allControlsDisabled()?W:this.errors?ie:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T)?T:this._anyControlsHaveStatus(ie)?ie:$}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new q(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new z(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){me(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ii(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ni(this._rawAsyncValidators)}},ae=class extends X{constructor(e,i,n){super(Fe(i),we(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){Ct(this,!0,e),Object.keys(e).forEach(n=>{_t(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Dt=new N("CallSetDisabledState",{providedIn:"root",factory:()=>Ie}),Ie="always";function Se(t,e){return[...e.path,t]}function Qe(t,e,i=Ie){Ne(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),oi(t,e),ai(t,e),si(t,e),ri(t,e)}function et(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ue(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function le(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function ri(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Ne(t,e){let i=pt(t);e.validator!==null?t.setValidators(Xe(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=gt(t);e.asyncValidator!==null?t.setAsyncValidators(Xe(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function ue(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=pt(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(c=>c!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=gt(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(c=>c!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return le(e._rawValidators,n),le(e._rawAsyncValidators,n),i}function oi(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Vt(t,e)})}function si(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Vt(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Vt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ai(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function li(t,e){t==null,Ne(t,e)}function ui(t,e){return ue(t,e)}function ci(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function di(t){return Object.getPrototypeOf(t.constructor)===Ut}function hi(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function fi(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===de?i=o:di(o)?n=o:r=o}),r||n||i||null}function mi(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function tt(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function it(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var _=class extends X{constructor(e=null,i,n){super(Fe(i),we(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),me(i)&&(i.nonNullable||i.initialValueIsDefault)&&(it(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tt(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tt(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){it(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var pi=t=>t instanceof _,gi=(()=>{let e=class e extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Se(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_e(e)))(o||e)}})(),e.\u0275dir=h({type:e,features:[y]});let t=e;return t})();var bt=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=h({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var At=new N("");var vi={provide:g,useExisting:D(()=>R)},R=(()=>{let e=class e extends g{get submitted(){return E(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=L(()=>this._submittedReactive()),this._submittedReactive=H(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new O,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ue(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Qe(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){et(n.control||null,n,!1),mi(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),hi(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Me(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Ee(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(et(r||null,n),pi(o)&&(Qe(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);li(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&ui(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ne(this.form,this),this._oldForm&&ue(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(he,10),s(fe,10),s(Dt,8))},e.\u0275dir=h({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&p("submit",function(S){return o.onSubmit(S)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[M([vi]),y,j]});let t=e;return t})(),yi={provide:g,useExisting:D(()=>Mt)},Mt=(()=>{let e=class e extends gi{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){Et(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(he,10),s(fe,10))},e.\u0275dir=h({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[M([yi]),y]});let t=e;return t})(),_i={provide:g,useExisting:D(()=>pe)},pe=(()=>{let e=class e extends g{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Se(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Et(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(g,13),s(he,10),s(fe,10))},e.\u0275dir=h({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[M([_i]),y]});let t=e;return t})();function Et(t){return!(t instanceof Mt)&&!(t instanceof R)&&!(t instanceof pe)}var Ci={provide:Z,useExisting:D(()=>Oe)},Oe=(()=>{let e=class e extends Z{set isDisabled(n){}constructor(n,r,o,c,S){super(),this._ngModelWarningConfig=S,this._added=!1,this.name=null,this.update=new O,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=fi(this,c)}ngOnChanges(n){this._added||this._setUpControl(),ci(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Se(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(s(g,13),s(he,10),s(fe,10),s(ce,10),s(At,8))},e.\u0275dir=h({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[M([Ci]),y,j]});let t=e;return t})();var Di=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=A({type:e}),e.\u0275inj=V({});let t=e;return t})(),K=class extends X{constructor(e,i,n){super(Fe(i),we(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){Ct(this,!1,e),e.forEach((n,r)=>{_t(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var Ft=t=>t instanceof K;var wt=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:At,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Dt,useValue:n.callSetDisabledState??Ie}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=A({type:e}),e.\u0275inj=V({imports:[Di]});let t=e;return t})();var St=(()=>{class t{constructor(i,n){this.renderer=i,this.elementRef=n,this.onInput=r=>{let o=r?new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()):null,c=o?o.toISOString():null;this.onChange(c)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(i){let n=i?new Date(i):null,r=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",r)}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",i)}}return t.\u0275fac=function(i){return new(i||t)(s(U),s(G))},t.\u0275dir=h({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(i,n){i&1&&p("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[M([{provide:ce,useExisting:D(()=>t),multi:!0}])]}),t})();var Ot=(()=>{class t{service;constructor(i){this.service=i}isbnExists(){return i=>this.service.check(i.value).pipe(x(n=>n?{isbnexists:!0}:null))}static \u0275fac=function(n){return new(n||t)(Be(P))};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xt=function(t){if(!t.value||typeof t.value!="string")return null;let i=t.value.replace(/-/g,"").length;return i===10||i===13?null:{isbnformat:!0}},kt=function(t){return!Ft(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function bi(t,e){if(t&1&&(a(0,"p",1),u(1),l()),t&2){let i=e.$implicit;v(),He(" ",i,` +`)}}var Tt=(()=>{class t{form;controlName;messages={};constructor(i){this.form=i}get errors(){if(!this.controlName)return[];let i=this.form.control.get(this.controlName);return!i||!i.errors||!i.touched?[]:Object.keys(i.errors).map(n=>this.messages[n])}static \u0275fac=function(n){return new(n||t)(s(R))};static \u0275cmp=b({type:t,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,r){n&1&&k(0,bi,2,1,"p",0),n&2&&f("ngForOf",r.errors)},dependencies:[ee]})}return t})();var Mi=()=>({required:"Title is required"}),Ei=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),Fi=()=>({atleastonevalue:"At least one author required"});function wi(t,e){if(t&1&&C(0,"input",20),t&2){let i=e.index;f("formControlName",i),Ce("aria-label","Author "+i)}}var ge=(()=>{class t{book;submitBook=new O;form=new ae({title:new _("",{nonNullable:!0,validators:Y.required}),subtitle:new _("",{nonNullable:!0}),isbn:new _("",{nonNullable:!0,validators:[Y.required,xt],asyncValidators:ye(Ot).isbnExists()}),description:new _("",{nonNullable:!0}),published:new _("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new _("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(i){this.form.patchValue(i),this.form.setControl("authors",this.buildAuthorsArray(i.authors))}setEditMode(i){let n=this.form.controls.isbn;i?n.disable():n.enable()}buildAuthorsArray(i){return new K(i.map(n=>new _(n,{nonNullable:!0})),kt)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new _("",{nonNullable:!0}))}submitForm(){let i=this.form.getRawValue(),n=i.authors.filter(o=>!!o),r=m(d({},i),{authors:n});this.submitBook.emit(r)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=b({type:t,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[j],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(n,r){n&1&&(a(0,"form",0),p("ngSubmit",function(){return r.submitForm()}),a(1,"label",1),u(2,"Title"),l(),C(3,"input",2)(4,"bm-form-errors",3),a(5,"label",4),u(6,"Subtitle"),l(),C(7,"input",5),a(8,"label",6),u(9,"ISBN"),l(),C(10,"input",7)(11,"bm-form-errors",8),a(12,"label"),u(13,"Authors"),l(),a(14,"button",9),p("click",function(){return r.addAuthorControl()}),u(15," + Author "),l(),a(16,"fieldset",10),k(17,wi,1,2,"input",11),l(),C(18,"bm-form-errors",12),a(19,"label",13),u(20,"Description"),l(),C(21,"textarea",14),a(22,"label",15),u(23,"Published"),l(),C(24,"input",16),a(25,"label",17),u(26,"Thumbnail URL"),l(),C(27,"input",18),a(28,"button",19),u(29," Save "),l()()),n&2&&(f("formGroup",r.form),v(4),f("messages",Q(6,Mi)),v(7),f("messages",Q(7,Ei)),v(6),f("ngForOf",r.authors.controls),v(),f("messages",Q(8,Fi)),v(10),f("disabled",r.form.invalid))},dependencies:[ee,bt,de,vt,yt,R,Oe,pe,St,Tt]})}return t})();var Rt=(()=>{class t{service;router;constructor(i,n){this.service=i,this.router=n}create(i){this.service.create(i).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||t)(s(P),s(te))};static \u0275cmp=b({type:t,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(n,r){n&1&&(a(0,"h1"),u(1,"Create Book"),l(),a(2,"bm-book-form",0),p("submitBook",function(c){return r.create(c)}),l())},dependencies:[ge]})}return t})();function Si(t,e){if(t&1){let i=Ge();a(0,"bm-book-form",1),p("submitBook",function(r){Re(i);let o=Ue();return je(o.update(r))}),l()}if(t&2){let i=e.ngIf;f("book",i)}}var jt=(()=>{class t{service;route;router;book$;constructor(i,n,r){this.service=i,this.route=n,this.router=r,this.book$=this.route.paramMap.pipe(x(o=>o.get("isbn")),Te(o=>this.service.getSingle(o)))}update(i){this.service.update(i).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||t)(s(P),s(Ze),s(te))};static \u0275cmp=b({type:t,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(n,r){n&1&&(a(0,"h1"),u(1,"Edit Book"),l(),k(2,Si,1,1,"bm-book-form",0),Le(3,"async")),n&2&&(v(2),f("ngIf",$e(3,1,r.book$)))},dependencies:[qe,ge,ze]})}return t})();var Ni=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:Rt},{path:"edit/:isbn",component:jt}],Gt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=A({type:t});static \u0275inj=V({imports:[be.forChild(Ni),be]})}return t})();var Tn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=A({type:t});static \u0275inj=V({imports:[Ye,Gt,wt]})}return t})();export{Tn as AdminModule}; diff --git a/chunk-OUM7I4SI.js b/chunk-OUM7I4SI.js new file mode 100644 index 0000000..7c7f8e7 --- /dev/null +++ b/chunk-OUM7I4SI.js @@ -0,0 +1 @@ +import{A as i,d as e}from"./chunk-UZOWJZPK.js";var s=(()=>{class t{_isAuthenticated$=new e(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(a){return new(a||t)};static \u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{s as a}; diff --git a/chunk-TH4YVO56.js b/chunk-TH4YVO56.js deleted file mode 100644 index fbed340..0000000 --- a/chunk-TH4YVO56.js +++ /dev/null @@ -1,8 +0,0 @@ -var Gg=Object.defineProperty,qg=Object.defineProperties;var Wg=Object.getOwnPropertyDescriptors;var wl=Object.getOwnPropertySymbols;var Zg=Object.prototype.hasOwnProperty,Yg=Object.prototype.propertyIsEnumerable;var El=(t,e,r)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})Zg.call(e,r)&&El(t,r,e[r]);if(wl)for(var r of wl(e))Yg.call(e,r)&&El(t,r,e[r]);return t},K=(t,e)=>qg(t,Wg(e));var fr=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},s=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(t,e)).next())});var ks=null;var Ps=1,Il=Symbol("SIGNAL");function k(t){let e=ks;return ks=t,e}function Cl(){return ks}var Fs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qg(t){if(!(Us(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ps)){if(!t.producerMustRecompute(t)&&!js(t)){t.dirty=!1,t.lastCleanEpoch=Ps;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ps}}function Ls(t){return t&&(t.nextProducerIndex=0),k(t)}function bl(t,e){if(k(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Us(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function js(t){Bs(t);for(let e=0;e0}function Bs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Kg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Jg(t){return t.producerNode!==void 0}function Xg(){throw new Error}var em=Xg;function Ml(t){em=t}function C(t){return typeof t=="function"}function wn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var co=wn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Wt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Q=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(C(n))try{n()}catch(i){e=i instanceof co?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sl(i)}catch(s){e=e??[],s instanceof co?e=[...e,...s.errors]:e.push(s)}}if(e)throw new co(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Sl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Wt(r,e)}remove(e){let{_finalizers:r}=this;r&&Wt(r,e),e instanceof t&&e._removeParent(this)}};Q.EMPTY=(()=>{let t=new Q;return t.closed=!0,t})();var Hs=Q.EMPTY;function uo(t){return t instanceof Q||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Sl(t){C(t)?t():t.unsubscribe()}var $e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var En={setTimeout(t,e,...r){let{delegate:n}=En;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=En;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function lo(t){En.setTimeout(()=>{let{onUnhandledError:e}=$e;if(e)e(t);else throw t})}function at(){}var Tl=zs("C",void 0,void 0);function xl(t){return zs("E",void 0,t)}function Nl(t){return zs("N",t,void 0)}function zs(t,e,r){return{kind:t,value:e,error:r}}var Zt=null;function In(t){if($e.useDeprecatedSynchronousErrorHandling){let e=!Zt;if(e&&(Zt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Zt;if(Zt=null,r)throw n}}else t()}function _l(t){$e.useDeprecatedSynchronousErrorHandling&&Zt&&(Zt.errorThrown=!0,Zt.error=t)}var Yt=class extends Q{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,uo(e)&&e.add(this)):this.destination=rm}static create(e,r,n){return new Cn(e,r,n)}next(e){this.isStopped?qs(Nl(e),this):this._next(e)}error(e){this.isStopped?qs(xl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?qs(Tl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},tm=Function.prototype.bind;function Gs(t,e){return tm.call(t,e)}var Ws=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){fo(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){fo(n)}else fo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){fo(r)}}},Cn=class extends Yt{constructor(e,r,n){super();let o;if(C(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&$e.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Gs(e.next,i),error:e.error&&Gs(e.error,i),complete:e.complete&&Gs(e.complete,i)}):o=e}this.destination=new Ws(o)}};function fo(t){$e.useDeprecatedSynchronousErrorHandling?_l(t):lo(t)}function nm(t){throw t}function qs(t,e){let{onStoppedNotification:r}=$e;r&&En.setTimeout(()=>r(t,e))}var rm={closed:!0,next:at,error:nm,complete:at};var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pe(t){return t}function Zs(...t){return Ys(t)}function Ys(t){return t.length===0?pe:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var T=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=im(r)?r:new Cn(r,n,o);return In(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Al(n),new n((o,i)=>{let s=new Cn({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[bn](){return this}pipe(...r){return Ys(r)(this)}toPromise(r){return r=Al(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function Al(t){var e;return(e=t??$e.Promise)!==null&&e!==void 0?e:Promise}function om(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function im(t){return t&&t instanceof Yt||om(t)&&uo(t)}function Qs(t){return C(t?.lift)}function x(t){return e=>{if(Qs(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,e,r,n,o){return new Ks(t,e,r,n,o)}var Ks=class extends Yt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Mn(){return x((t,e)=>{let r=null;t._refCount++;let n=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var bt=class extends T{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Qs(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Q;let r=this.getSubject();e.add(this.source.subscribe(N(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Q.EMPTY)}return e}refCount(){return Mn()(this)}};var Rl=wn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class t extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new ho(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Rl}next(r){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){In(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Hs:(this.currentObservers=null,i.push(r),new Q(()=>{this.currentObservers=null,Wt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new T;return r.source=this,r}}return t.create=(e,r)=>new ho(e,r),t})(),ho=class extends ee{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Hs}};var se=class extends ee{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Js={now(){return(Js.delegate||Date).now()},delegate:void 0};var po=class extends Q{constructor(e,r){super()}schedule(e,r=0){return this}};var hr={setInterval(t,e,...r){let{delegate:n}=hr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=hr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var go=class extends po{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,r),this}requestAsyncId(e,r,n=0){return hr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&hr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,o;try{this.work(e)}catch(i){n=!0,o=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Wt(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Sn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Sn.now=Js.now;var mo=class extends Sn{constructor(e,r=Sn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var pr=new mo(go),Ol=pr;var ge=new T(t=>t.complete());function vo(t){return t&&C(t.schedule)}function Xs(t){return t[t.length-1]}function yo(t){return C(Xs(t))?t.pop():void 0}function Ze(t){return vo(Xs(t))?t.pop():void 0}function Pl(t,e){return typeof Xs(t)=="number"?t.pop():e}function Fl(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function kl(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Qt(t){return this instanceof Qt?(this.v=t,this):new Qt(t)}function Ll(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){n[f]&&(o[f]=function(M){return new Promise(function(v,I){i.push([f,M,v,I])>1||c(f,M)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(n[f](g))}catch(M){h(i[0][3],M)}}function u(f){f.value instanceof Qt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function jl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof kl=="function"?kl(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Tn=t=>t&&typeof t.length=="number"&&typeof t!="function";function Do(t){return C(t?.then)}function wo(t){return C(t[bn])}function Eo(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function Io(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function sm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Co=sm();function bo(t){return C(t?.[Co])}function Mo(t){return Ll(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield Qt(r.read());if(o)return yield Qt(void 0);yield yield Qt(n)}}finally{r.releaseLock()}})}function So(t){return C(t?.getReader)}function $(t){if(t instanceof T)return t;if(t!=null){if(wo(t))return am(t);if(Tn(t))return cm(t);if(Do(t))return um(t);if(Eo(t))return Vl(t);if(bo(t))return lm(t);if(So(t))return dm(t)}throw Io(t)}function am(t){return new T(e=>{let r=t[bn]();if(C(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cm(t){return new T(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,lo)})}function lm(t){return new T(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Vl(t){return new T(e=>{fm(t,e).catch(r=>e.error(r))})}function dm(t){return Vl(Mo(t))}function fm(t,e){var r,n,o,i;return Fl(this,void 0,void 0,function*(){try{for(r=jl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function Ee(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function To(t,e=0){return x((r,n)=>{r.subscribe(N(n,o=>Ee(n,t,()=>n.next(o),e),()=>Ee(n,t,()=>n.complete(),e),o=>Ee(n,t,()=>n.error(o),e)))})}function xo(t,e=0){return x((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function $l(t,e){return $(t).pipe(xo(e),To(e))}function Ul(t,e){return $(t).pipe(xo(e),To(e))}function Bl(t,e){return new T(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Hl(t,e){return new T(r=>{let n;return Ee(r,e,()=>{n=t[Co](),Ee(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>C(n?.return)&&n.return()})}function No(t,e){if(!t)throw new Error("Iterable cannot be null");return new T(r=>{Ee(r,e,()=>{let n=t[Symbol.asyncIterator]();Ee(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function zl(t,e){return No(Mo(t),e)}function Gl(t,e){if(t!=null){if(wo(t))return $l(t,e);if(Tn(t))return Bl(t,e);if(Do(t))return Ul(t,e);if(Eo(t))return No(t,e);if(bo(t))return Hl(t,e);if(So(t))return zl(t,e)}throw Io(t)}function q(t,e){return e?Gl(t,e):$(t)}function b(...t){let e=Ze(t);return q(t,e)}function xn(t,e){let r=C(t)?t:()=>t,n=o=>o.error(r());return new T(e?o=>e.schedule(n,0,o):n)}function ea(t){return!!t&&(t instanceof T||C(t.lift)&&C(t.subscribe))}var ct=wn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ql(t){return t instanceof Date&&!isNaN(t)}function _(t,e){return x((r,n)=>{let o=0;r.subscribe(N(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:hm}=Array;function pm(t,e){return hm(e)?t(...e):t(e)}function Nn(t){return _(e=>pm(t,e))}var{isArray:gm}=Array,{getPrototypeOf:mm,prototype:vm,keys:ym}=Object;function _o(t){if(t.length===1){let e=t[0];if(gm(e))return{args:e,keys:null};if(Dm(e)){let r=ym(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Dm(t){return t&&typeof t=="object"&&mm(t)===vm}function Ao(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function gr(...t){let e=Ze(t),r=yo(t),{args:n,keys:o}=_o(t);if(n.length===0)return q([],e);let i=new T(wm(n,e,o?s=>Ao(o,s):pe));return r?i.pipe(Nn(r)):i}function wm(t,e,r=pe){return n=>{Wl(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=q(t[c],e),l=!1;u.subscribe(N(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Wl(t,e,r){t?Ee(r,t,e):e()}function Zl(t,e,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=M=>u{i&&e.next(M),u++;let v=!1;$(r(M,l++)).subscribe(N(e,I=>{o?.(I),i?f(I):e.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(I)):g(I)}h()}catch(I){e.error(I)}}))};return t.subscribe(N(e,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(t,e,r=1/0){return C(e)?Y((n,o)=>_((i,s)=>e(n,i,o,s))($(t(n,o))),r):(typeof e=="number"&&(r=e),x((n,o)=>Zl(n,o,t,r)))}function Ye(t=1/0){return Y(pe,t)}function Yl(){return Ye(1)}function Mt(...t){return Yl()(q(t,Ze(t)))}function Ro(t){return new T(e=>{$(t()).subscribe(e)})}function Em(...t){let e=yo(t),{args:r,keys:n}=_o(t),o=new T(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(n?Ao(n,a):a),i.complete())}))}});return e?o.pipe(Nn(e)):o}var Im=["addListener","removeListener"],Cm=["addEventListener","removeEventListener"],bm=["on","off"];function ta(t,e,r,n){if(C(r)&&(n=r,r=void 0),n)return ta(t,e,r).pipe(Nn(n));let[o,i]=Tm(t)?Cm.map(s=>a=>t[s](e,a,r)):Mm(t)?Im.map(Ql(t,e)):Sm(t)?bm.map(Ql(t,e)):[];if(!o&&Tn(t))return Y(s=>ta(s,e,r))($(t));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...c)=>s.next(1i(a)})}function Ql(t,e){return r=>n=>t[r](e,n)}function Mm(t){return C(t.addListener)&&C(t.removeListener)}function Sm(t){return C(t.on)&&C(t.off)}function Tm(t){return C(t.addEventListener)&&C(t.removeEventListener)}function Kl(t=0,e,r=Ol){let n=-1;return e!=null&&(vo(e)?r=e:n=e),new T(o=>{let i=ql(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function xm(...t){let e=Ze(t),r=Pl(t,1/0),n=t;return n.length?n.length===1?$(n[0]):Ye(r)(q(n,e)):ge}var Nm=new T(at);function me(t,e){return x((r,n)=>{let o=0;r.subscribe(N(n,i=>t.call(e,i,o++)&&n.next(i)))})}function Ae(t){return x((e,r)=>{let n=null,o=!1,i;n=e.subscribe(N(r,void 0,void 0,s=>{i=$(t(s,Ae(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Jl(t,e,r,n,o){return(i,s)=>{let a=r,c=e,u=0;i.subscribe(N(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Qe(t,e){return C(e)?Y(t,e,1):Y(t,1)}function Xl(t){return new T(e=>t.subscribe(e))}var _m={connector:()=>new ee};function Oo(t,e=_m){let{connector:r}=e;return x((n,o)=>{let i=r();$(t(Xl(i))).subscribe(o),o.add(n.subscribe(i))})}function Am(t,e=pr){return x((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{i=u,s=e.now(),o||(o=e.schedule(c,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function St(t){return x((e,r)=>{let n=!1;e.subscribe(N(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function Re(t){return t<=0?()=>ge:x((e,r)=>{let n=0;e.subscribe(N(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function ed(){return x((t,e)=>{t.subscribe(N(e,at))})}function mr(t){return _(()=>t)}function na(t,e){return e?r=>Mt(e.pipe(Re(1),ed()),r.pipe(na(t))):Y((r,n)=>$(t(r,n)).pipe(Re(1),mr(r)))}function Rm(t,e=pr){let r=Kl(t,e);return na(()=>r)}function Om(t,e=pe){return t=t??Pm,x((r,n)=>{let o,i=!0;r.subscribe(N(n,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,n.next(s))}))})}function Pm(t,e){return t===e}function Po(t=km){return x((e,r)=>{let n=!1;e.subscribe(N(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function km(){return new ct}function Tt(t){return x((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Ke(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((o,i)=>t(o,i,n)):pe,Re(1),r?St(e):Po(()=>new ct))}function _n(t){return t<=0?()=>ge:x((e,r)=>{let n=[];e.subscribe(N(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function ra(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((o,i)=>t(o,i,n)):pe,_n(1),r?St(e):Po(()=>new ct))}function td(t,e){let r=C(t)?t:()=>t;return C(e)?Oo(e,{connector:r}):n=>new bt(n,r)}function Fm(t){return t?e=>Oo(t)(e):e=>td(new ee)(e)}function oa(t,e){return x(Jl(t,e,arguments.length>=2,!0))}function ia(...t){let e=Ze(t);return x((r,n)=>{(e?Mt(t,r,e):Mt(t,r)).subscribe(n)})}function ve(t,e){return x((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(N(n,c=>{o?.unsubscribe();let u=0,l=i++;$(t(c,l)).subscribe(o=N(n,d=>n.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ko(t){return x((e,r)=>{$(t).subscribe(N(r,()=>r.complete(),at)),!r.closed&&e.subscribe(r)})}function re(t,e,r){let n=C(t)||e||r?{next:t,error:e,complete:r}:t;return n?x((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(N(i,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):pe}var Hd="https://g.co/ng/security#xss",y=class extends Error{constructor(e,r){super(yi(e,r)),this.code=e}};function yi(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Sr(t){return{toString:t}.toString()}var Fo="__parameters__";function Lm(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function zd(t,e,r){return Sr(()=>{let n=Lm(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Fo)?c[Fo]:Object.defineProperty(c,Fo,{value:[]})[Fo];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var ae=globalThis;function H(t){for(let e in t)if(t[e]===H)return e;throw Error("Could not find renamed property on target object.")}function jm(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function De(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(De).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function nd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Vm=H({__forward_ref__:H});function Gd(t){return t.__forward_ref__=Gd,t.toString=function(){return De(this())},t}function ye(t){return qd(t)?t():t}function qd(t){return typeof t=="function"&&t.hasOwnProperty(Vm)&&t.__forward_ref__===Gd}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Di(t){return rd(t,Zd)||rd(t,Yd)}function Wd(t){return Di(t)!==null}function rd(t,e){return t.hasOwnProperty(e)?t[e]:null}function $m(t){let e=t&&(t[Zd]||t[Yd]);return e||null}function od(t){return t&&(t.hasOwnProperty(id)||t.hasOwnProperty(Um))?t[id]:null}var Zd=H({\u0275prov:H}),id=H({\u0275inj:H}),Yd=H({ngInjectableDef:H}),Um=H({ngInjectorDef:H}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=w({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Qd(t){return t&&!!t.\u0275providers}var Bm=H({\u0275cmp:H}),Hm=H({\u0275dir:H}),zm=H({\u0275pipe:H}),Gm=H({\u0275mod:H}),Wo=H({\u0275fac:H}),vr=H({__NG_ELEMENT_ID__:H}),sd=H({__NG_ENV_ID__:H});function wi(t){return typeof t=="string"?t:t==null?"":String(t)}function qm(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():wi(t)}function Wm(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new y(-200,t)}function fc(t,e){throw new y(-201,!1)}var O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(O||{}),wa;function Kd(){return wa}function Ie(t){let e=wa;return wa=t,e}function Jd(t,e,r){let n=Di(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(e!==void 0)return e;fc(t,"Injector")}var Zm={},Dr=Zm,Ea="__NG_DI_FLAG__",Zo="ngTempTokenPath",Ym="ngTokenPath",Qm=/\n/gm,Km="\u0275",ad="__source",Pn;function Jm(){return Pn}function xt(t){let e=Pn;return Pn=t,e}function Xm(t,e=O.Default){if(Pn===void 0)throw new y(-203,!1);return Pn===null?Jd(t,void 0,e):Pn.get(t,e&O.Optional?null:void 0,e)}function D(t,e=O.Default){return(Kd()||Xm)(ye(t),e)}function p(t,e=O.Default){return D(t,Ei(e))}function Ei(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ia(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(Qm,` - `)}`}var Ii=Xd(zd("Optional"),8);var hc=Xd(zd("SkipSelf"),4);function en(t,e){let r=t.hasOwnProperty(Wo);return r?t[Wo]:null}function rv(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?pc(r,e):e(r))}function ef(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Yo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function iv(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function sv(t,e,r){let n=Tr(t,e);return n>=0?t[n|1]=r:(n=~n,iv(t,n,e,r)),n}function sa(t,e){let r=Tr(t,e);if(r>=0)return t[r|1]}function Tr(t,e){return av(t,e,1)}function av(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Ue(n))return!1;s=!0}}}}return Ue(n)||s}function Ue(t){return(t&1)===0}function hv(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Ue(s)&&(e+=ud(i,o),o=""),n=s,i=i||!Ue(n);r++}return o!==""&&(e+=ud(i,o)),e}function yv(t){return t.map(vv).join(",")}function Dv(t){let e=[],r=[],n=1,o=2;for(;n{let e=ff(t),r=K(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===rf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||et.Emulated,styles:t.styles||Oe,_:null,schemas:t.schemas||null,tView:null,id:""});hf(r);let n=t.dependencies;return r.directiveDefs=dd(n,!1),r.pipeDefs=dd(n,!0),r.id=Iv(r),r})}function wv(t){return Rt(t)||cf(t)}function Ev(t){return t!==null}function ft(t){return Sr(()=>({type:t.type,bootstrap:t.bootstrap||Oe,declarations:t.declarations||Oe,imports:t.imports||Oe,exports:t.exports||Oe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ld(t,e){if(t==null)return Fn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=jn.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==jn.None?[n,a]:n,e[i]=s):r[i]=n}return r}function fn(t){return Sr(()=>{let e=ff(t);return hf(e),e})}function mc(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Rt(t){return t[Bm]||null}function cf(t){return t[Hm]||null}function uf(t){return t[zm]||null}function lf(t){let e=Rt(t)||cf(t)||uf(t);return e!==null?e.standalone:!1}function df(t,e){let r=t[Gm]||null;if(!r&&e===!0)throw new Error(`Type ${De(t)} does not have '\u0275mod' property.`);return r}function ff(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Fn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Oe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ld(t.inputs,e),outputs:ld(t.outputs),debugInfo:null}}function hf(t){t.features?.forEach(e=>e(t))}function dd(t,e){if(!t)return null;let r=e?uf:wv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Ev)}function Iv(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Ci(t){return{\u0275providers:t}}function Cv(...t){return{\u0275providers:pf(!0,t),\u0275fromNgModule:!0}}function pf(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return pc(e,s=>{let a=s;ba(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&gf(o,i),r}function gf(t,e){for(let r=0;r{e(i,n)})}}function ba(t,e,r,n){if(t=ye(t),!t)return!1;let o=null,i=od(t),s=!i&&Rt(t);if(!i&&!s){let c=t.ngModule;if(i=od(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ba(u,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{pc(i.imports,l=>{ba(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&gf(u,e)}if(!a){let u=en(o)||(()=>new o);e({provide:o,useFactory:u,deps:Oe},o),e({provide:nf,useValue:o,multi:!0},o),e({provide:Ln,useValue:()=>D(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;vc(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function vc(t,e){for(let r of t)Qd(r)&&(r=r.\u0275providers),Array.isArray(r)?vc(r,e):e(r)}var bv=H({provide:String,useValue:H});function mf(t){return t!==null&&typeof t=="object"&&bv in t}function Mv(t){return!!(t&&t.useExisting)}function Sv(t){return!!(t&&t.useFactory)}function Vn(t){return typeof t=="function"}function Tv(t){return!!t.useClass}var bi=new E(""),Uo={},xv={},aa;function yc(){return aa===void 0&&(aa=new Qo),aa}var ue=class{},Er=class extends ue{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Sa(e,s=>this.processProvider(s)),this.records.set(tf,An(void 0,this)),o.has("environment")&&this.records.set(ue,An(void 0,this));let i=this.records.get(bi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nf,Oe,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=xt(this),n=Ie(void 0),o;try{return e()}finally{xt(r),Ie(n)}}get(e,r=Dr,n=O.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(sd))return e[sd](this);n=Ei(n);let o,i=xt(this),s=Ie(void 0);try{if(!(n&O.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Ov(e)&&Di(e);u&&this.injectableDefInScope(u)?c=An(Ma(e),Uo):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&O.Self?yc():this.parent;return r=n&O.Optional&&r===Dr?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Zo]=a[Zo]||[]).unshift(De(e)),i)throw a;return tv(a,e,"R3InjectorError",this.source)}else throw a}finally{Ie(s),xt(i)}}resolveInjectorInitializers(){let e=k(null),r=xt(this),n=Ie(void 0),o;try{let i=this.get(Ln,Oe,O.Self);for(let s of i)s()}finally{xt(r),Ie(n),k(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(De(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new y(205,!1)}processProvider(e){e=ye(e);let r=Vn(e)?e:ye(e&&e.provide),n=_v(e);if(!Vn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=An(void 0,Uo,!0),o.factory=()=>Ia(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=k(null);try{return r.value===Uo&&(r.value=xv,r.value=r.factory()),typeof r.value=="object"&&r.value&&Rv(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{k(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ye(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ma(t){let e=Di(t),r=e!==null?e.factory:en(t);if(r!==null)return r;if(t instanceof E)throw new y(204,!1);if(t instanceof Function)return Nv(t);throw new y(204,!1)}function Nv(t){if(t.length>0)throw new y(204,!1);let r=$m(t);return r!==null?()=>r.factory(t):()=>new t}function _v(t){if(mf(t))return An(void 0,t.useValue);{let e=vf(t);return An(e,Uo)}}function vf(t,e,r){let n;if(Vn(t)){let o=ye(t);return en(o)||Ma(o)}else if(mf(t))n=()=>ye(t.useValue);else if(Sv(t))n=()=>t.useFactory(...Ia(t.deps||[]));else if(Mv(t))n=()=>D(ye(t.useExisting));else{let o=ye(t&&(t.useClass||t.provide));if(Av(t))n=()=>new o(...Ia(t.deps));else return en(o)||Ma(o)}return n}function An(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Av(t){return!!t.deps}function Rv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Ov(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Sa(t,e){for(let r of t)Array.isArray(r)?Sa(r,e):r&&Qd(r)?Sa(r.\u0275providers,e):e(r)}function Me(t,e){t instanceof Er&&t.assertNotDestroyed();let r,n=xt(t),o=Ie(void 0);try{return e()}finally{xt(n),Ie(o)}}function yf(){return Kd()!==void 0||Jm()!=null}function Pv(t){if(!yf())throw new y(-203,!1)}function kv(t){let e=ae.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Fv(t){return typeof t=="function"}var ht=0,A=1,S=2,le=3,Be=4,ze=5,Ko=6,Jo=7,He=8,$n=9,tt=10,oe=11,Ir=12,fd=13,Zn=14,nt=15,tn=16,Rn=17,ut=18,Mi=19,Df=20,_t=21,ca=22,Pe=23,be=25,wf=1;var nn=7,Xo=8,Un=9,Ce=10,ei=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(ei||{});function At(t){return Array.isArray(t)&&typeof t[wf]=="object"}function pt(t){return Array.isArray(t)&&t[wf]===!0}function Dc(t){return(t.flags&4)!==0}function Si(t){return t.componentOffset>-1}function Ti(t){return(t.flags&1)===1}function Ot(t){return!!t.template}function Ta(t){return(t[S]&512)!==0}var xa=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ef(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Yn(){return If}function If(t){return t.type.prototype.ngOnChanges&&(t.setInput=jv),Lv}Yn.ngInherit=!0;function Lv(){let t=bf(this),e=t?.current;if(e){let r=t.previous;if(r===Fn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function jv(t,e,r,n,o){let i=this.declaredInputs[n],s=bf(t)||Vv(t,{previous:Fn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new xa(u&&u.currentValue,r,c===Fn),Ef(t,e,o,r)}var Cf="__ngSimpleChanges__";function bf(t){return t[Cf]||null}function Vv(t,e){return t[Cf]=e}var hd=null;var Je=function(t,e,r){hd?.(t,e,r)},$v="svg",Uv="math";function rt(t){for(;Array.isArray(t);)t=t[ht];return t}function Mf(t,e){return rt(e[t])}function Fe(t,e){return rt(e[t.index])}function Sf(t,e){return t.data[e]}function wc(t,e){return t[e]}function Ft(t,e){let r=e[t];return At(r)?r:r[ht]}function Bv(t){return(t[S]&4)===4}function Ec(t){return(t[S]&128)===128}function Hv(t){return pt(t[le])}function Bn(t,e){return e==null?null:t[e]}function Tf(t){t[Rn]=0}function xf(t){t[S]&1024||(t[S]|=1024,Ec(t)&&xi(t))}function zv(t,e){for(;t>0;)e=e[Zn],t--;return e}function Cr(t){return!!(t[S]&9216||t[Pe]?.dirty)}function Na(t){t[tt].changeDetectionScheduler?.notify(7),t[S]&64&&(t[S]|=1024),Cr(t)&&xi(t)}function xi(t){t[tt].changeDetectionScheduler?.notify(0);let e=rn(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Ec(e)));)e=rn(e)}function Nf(t,e){if((t[S]&256)===256)throw new y(911,!1);t[_t]===null&&(t[_t]=[]),t[_t].push(e)}function Gv(t,e){if(t[_t]===null)return;let r=t[_t].indexOf(e);r!==-1&&t[_t].splice(r,1)}function rn(t){let e=t[le];return pt(e)?e[le]:e}var P={lFrame:jf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var _f=!1;function qv(){return P.lFrame.elementDepthCount}function Wv(){P.lFrame.elementDepthCount++}function Zv(){P.lFrame.elementDepthCount--}function Af(){return P.bindingsEnabled}function Yv(){return P.skipHydrationRootTNode!==null}function Qv(t){return P.skipHydrationRootTNode===t}function Kv(){P.skipHydrationRootTNode=null}function F(){return P.lFrame.lView}function de(){return P.lFrame.tView}function OR(t){return P.lFrame.contextLView=t,t[He]}function PR(t){return P.lFrame.contextLView=null,t}function fe(){let t=Rf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Rf(){return P.lFrame.currentTNode}function Jv(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function hn(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function Ic(){return P.lFrame.isParent}function Of(){P.lFrame.isParent=!1}function Xv(){return P.lFrame.contextLView}function Pf(){return _f}function pd(t){_f=t}function Ni(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ey(t){return P.lFrame.bindingIndex=t}function Cc(){return P.lFrame.bindingIndex++}function ty(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function ny(){return P.lFrame.inI18n}function ry(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,_a(e)}function oy(){return P.lFrame.currentDirectiveIndex}function _a(t){P.lFrame.currentDirectiveIndex=t}function iy(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function kf(){return P.lFrame.currentQueryIndex}function bc(t){P.lFrame.currentQueryIndex=t}function sy(t){let e=t[A];return e.type===2?e.declTNode:e.type===1?t[ze]:null}function Ff(t,e,r){if(r&O.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&O.Host);)if(o=sy(i),o===null||(i=i[Zn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=P.lFrame=Lf();return n.currentTNode=e,n.lView=t,!0}function Mc(t){let e=Lf(),r=t[A];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Lf(){let t=P.lFrame,e=t===null?null:t.child;return e===null?jf(t):e}function jf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Vf(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var $f=Vf;function Sc(){let t=Vf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ay(t){return(P.lFrame.contextLView=zv(t,P.lFrame.contextLView))[He]}function Qn(){return P.lFrame.selectedIndex}function on(t){P.lFrame.selectedIndex=t}function Uf(){let t=P.lFrame;return Sf(t.tView,t.selectedIndex)}function cy(){return P.lFrame.currentNamespace}var Bf=!0;function _i(){return Bf}function Ai(t){Bf=t}function uy(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=If(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function Ri(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[Rn]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,gd(a,i)):gd(a,i)}var kn=-1,sn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function dy(t){return t instanceof sn}function fy(t){return(t.flags&8)!==0}function hy(t){return(t.flags&16)!==0}var la={},Aa=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Ei(n);let o=this.injector.get(e,la,n);return o!==la||r===la?o:this.parentInjector.get(e,r,n)}};function zf(t){return t!==kn}function ti(t){return t&32767}function py(t){return t>>16}function ni(t,e){let r=py(t),n=e;for(;r>0;)n=n[Zn],r--;return n}var Ra=!0;function ri(t){let e=Ra;return Ra=t,e}var gy=256,Gf=gy-1,qf=5,my=0,Xe={};function vy(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(vr)&&(n=r[vr]),n==null&&(n=r[vr]=my++);let o=n&Gf,i=1<>qf)]|=i}function oi(t,e){let r=Wf(t,e);if(r!==-1)return r;let n=e[A];n.firstCreatePass&&(t.injectorIndex=e.length,da(n.data,t),da(e,null),da(n.blueprint,null));let o=Tc(t,e),i=t.injectorIndex;if(zf(o)){let s=ti(o),a=ni(o,e),c=a[A].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function da(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Wf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Tc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=Jf(o),n===null)return kn;if(r++,o=o[Zn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return kn}function Oa(t,e,r){vy(t,e,r)}function yy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===r)return f}if(o){let f=s[c];if(f&&Ot(f)&&f.type===r)return c}return null}function an(t,e,r,n){let o=t[r],i=e.data;if(dy(o)){let s=o;s.resolving&&Wm(qm(i[r]));let a=ri(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ie(s.injectImpl):null,l=Ff(t,n,O.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&uy(r,i[r],e)}finally{u!==null&&Ie(u),ri(a),s.resolving=!1,$f()}}return o}function wy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(vr)?t[vr]:void 0;return typeof e=="number"?e>=0?e&Gf:Ey:e}function md(t,e,r){let n=1<>qf)]&n)}function vd(t,e){return!(t&O.Self)&&!(t&O.Host&&e)}var Xt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Qf(this._tNode,this._lView,e,Ei(n),r)}};function Ey(){return new Xt(fe(),F())}function xc(t){return Sr(()=>{let e=t.prototype.constructor,r=e[Wo]||Pa(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[Wo]||Pa(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Pa(t){return qd(t)?()=>{let e=Pa(ye(t));return e&&e()}:en(t)}function Iy(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=Kf(i,s,r,n|O.Self,Xe);if(a!==Xe)return a;let c=i.parent;if(!c){let u=s[Df];if(u){let l=u.get(r,Xe,n);if(l!==Xe)return l}c=Jf(s),s=s[Zn]}i=c}return o}function Jf(t){let e=t[A],r=e.type;return r===2?e.declTNode:r===1?t[ze]:null}function Nc(t){return yy(fe(),t)}function yd(t,e=null,r=null,n){let o=Xf(t,e,r,n);return o.resolveInjectorInitializers(),o}function Xf(t,e=null,r=null,n,o=new Set){let i=[r||Oe,Cv(t)];return n=n||(typeof t=="object"?void 0:De(t)),new Er(i,e||yc(),n||null,o)}var Jt=class Jt{static create(e,r){if(Array.isArray(e))return yd({name:""},r,e,"");{let n=e.name??"";return yd({name:n},e.parent,e.providers,n)}}};Jt.THROW_IF_NOT_FOUND=Dr,Jt.NULL=new Qo,Jt.\u0275prov=w({token:Jt,providedIn:"any",factory:()=>D(tf)}),Jt.__NG_ELEMENT_ID__=-1;var ke=Jt;var Cy=new E("");Cy.__NG_ELEMENT_ID__=t=>{let e=fe();if(e===null)throw new y(204,!1);if(e.type&2)return e.value;if(t&O.Optional)return null;throw new y(204,!1)};var by="ngOriginalError";function fa(t){return t[by]}var ot=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&fa(e);for(;r&&fa(r);)r=fa(r);return r||null}},eh=new E("",{providedIn:"root",factory:()=>p(ot).handleError.bind(void 0)}),_c=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=My,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),ka=class extends _c{constructor(e){super(),this._lView=e}onDestroy(e){return Nf(this._lView,e),()=>Gv(this._lView,e)}};function My(){return new ka(F())}function Sy(){return Kn(fe(),F())}function Kn(t,e){return new gt(Fe(t,e))}var gt=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Sy;let t=e;return t})();function Ty(t){return t instanceof gt?t.nativeElement:t}var mt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new se(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Fa=class extends ee{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,yf()&&(this.destroyRef=p(_c,{optional:!0})??void 0,this.pendingTasks=p(mt,{optional:!0})??void 0)}emit(e){let r=k(null);try{super.next(e)}finally{k(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof Q&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ce=Fa;function xy(){return this._results[Symbol.iterator]()}var La=class t{get changes(){return this._changes??=new ce}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=xy)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=ov(e);(this._changesDetected=!rv(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function th(t){return(t.flags&128)===128}var nh=new Map,Ny=0;function _y(){return Ny++}function Ay(t){nh.set(t[Mi],t)}function Ry(t){nh.delete(t[Mi])}var Dd="__ngContext__";function Pt(t,e){At(e)?(t[Dd]=e[Mi],Ay(e)):t[Dd]=e}function rh(t){return ih(t[Ir])}function oh(t){return ih(t[Be])}function ih(t){for(;t!==null&&!pt(t);)t=t[Be];return t}var ja;function sh(t){ja=t}function Oy(){if(ja!==void 0)return ja;if(typeof document<"u")return document;throw new y(210,!1)}var Oi=new E("",{providedIn:"root",factory:()=>Py}),Py="ng",Ac=new E(""),it=new E("",{providedIn:"platform",factory:()=>"unknown"});var Rc=new E("",{providedIn:"root",factory:()=>Oy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ky="h",Fy="b";var Ly=()=>null;function Oc(t,e,r=!1){return Ly(t,e,r)}var ah=!1,jy=new E("",{providedIn:"root",factory:()=>ah});var Lo;function Vy(){if(Lo===void 0&&(Lo=null,ae.trustedTypes))try{Lo=ae.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Lo}function wd(t){return Vy()?.createScriptURL(t)||t}var ii=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hd})`}};function xr(t){return t instanceof ii?t.changingThisBreaksApplicationSecurity:t}function Pc(t,e){let r=$y(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Hd})`)}return r===e}function $y(t){return t instanceof ii&&t.getTypeName()||null}var Uy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ch(t){return t=String(t),t.match(Uy)?t:"unsafe:"+t}var Pi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Pi||{});function By(t){let e=lh();return e?e.sanitize(Pi.URL,t)||"":Pc(t,"URL")?xr(t):ch(wi(t))}function Hy(t){let e=lh();if(e)return wd(e.sanitize(Pi.RESOURCE_URL,t)||"");if(Pc(t,"ResourceURL"))return wd(xr(t));throw new y(904,!1)}function zy(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Hy:By}function uh(t,e,r){return zy(e,r)(t)}function lh(){let t=F();return t&&t[tt].sanitizer}var Gy=/^>|^->||--!>|)/g,Wy="\u200B$1\u200B";function Zy(t){return t.replace(Gy,e=>e.replace(qy,Wy))}function dh(t){return t instanceof Function?t():t}function Yy(t){return(t??p(ke)).get(it)==="browser"}var lt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(lt||{}),Qy;function kc(t,e){return Qy(t,e)}function On(t,e,r,n,o){if(n!=null){let i,s=!1;pt(n)?i=n:At(n)&&(s=!0,n=n[ht]);let a=rt(n);t===0&&r!==null?o==null?mh(e,r,a):si(e,r,a,o||null,!0):t===1&&r!==null?si(e,r,a,o||null,!0):t===2?hD(e,a,s):t===3&&e.destroyNode(a),i!=null&&gD(e,t,i,r,o)}}function Ky(t,e){return t.createText(e)}function Jy(t,e,r){t.setValue(e,r)}function Xy(t,e){return t.createComment(Zy(e))}function fh(t,e,r){return t.createElement(e,r)}function eD(t,e){hh(t,e),e[ht]=null,e[ze]=null}function tD(t,e,r,n,o,i){n[ht]=o,n[ze]=e,Fi(t,n,r,1,o,i)}function hh(t,e){e[tt].changeDetectionScheduler?.notify(8),Fi(t,e,e[oe],2,null,null)}function nD(t){let e=t[Ir];if(!e)return ha(t[A],t);for(;e;){let r=null;if(At(e))r=e[Ir];else{let n=e[Ce];n&&(r=n)}if(!r){for(;e&&!e[Be]&&e!==t;)At(e)&&ha(e[A],e),e=e[le];e===null&&(e=t),At(e)&&ha(e[A],e),r=e&&e[Be]}e=r}}function rD(t,e,r,n){let o=Ce+n,i=r.length;n>0&&(r[o-1][Be]=e),n0&&(t[r-1][Be]=n[Be]);let i=Yo(t,Ce+e);eD(n[A],n);let s=i[ut];s!==null&&s.detachView(i[A]),n[le]=null,n[Be]=null,n[S]&=-129}return n}function gh(t,e){if(!(e[S]&256)){let r=e[oe];r.destroyNode&&Fi(t,e,r,3,null,null),nD(e)}}function ha(t,e){if(e[S]&256)return;let r=k(null);try{e[S]&=-129,e[S]|=256,e[Pe]&&Vs(e[Pe]),iD(t,e),oD(t,e),e[A].type===1&&e[oe].destroy();let n=e[tn];if(n!==null&&pt(e[le])){n!==e[le]&&Fc(n,e);let o=e[ut];o!==null&&o.detachView(t)}Ry(e)}finally{k(r)}}function oD(t,e){let r=t.cleanup,n=e[Jo];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[Jo]=null);let o=e[_t];if(o!==null){e[_t]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===et.None||i===et.Emulated)return null}return Fe(n,r)}}function si(t,e,r,n,o){t.insertBefore(e,r,n,o)}function mh(t,e,r){t.appendChild(e,r)}function Ed(t,e,r,n,o){n!==null?si(t,e,r,n,o):mh(t,e,r)}function cD(t,e,r,n){t.removeChild(e,r,n)}function Lc(t,e){return t.parentNode(e)}function uD(t,e){return t.nextSibling(e)}function lD(t,e,r){return fD(t,e,r)}function dD(t,e,r){return t.type&40?Fe(t,r):null}var fD=dD,Id;function ki(t,e,r,n){let o=sD(t,n,e),i=e[oe],s=n.parent||e[ze],a=lD(s,n,e);if(o!=null)if(Array.isArray(r))for(let c=0;cbe&&wh(t,e,be,!1),Je(s?2:0,o),r(n,o)}finally{on(i),Je(s?3:1,o)}}function Vc(t,e,r){if(Dc(e)){let n=k(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function bD(t,e,r,n){let o=_h(e);o.push(r),t.firstCreatePass&&Ah(t).push(n,o.length-1)}function MD(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return Yv()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Cd(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,c=jn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?bd(n,r,u,a,c):bd(n,r,u,a)}return n}function bd(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function SD(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function RD(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;Si(r)&&VD(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||oi(r,e),Pt(n,e);let s=r.initialInputs;for(let a=o;a{xi(t.lView)},consumerOnSignalRead(){this.lView[Pe]=this}});function tw(t){let e=t[Pe]??Object.create(nw);return e.lView=t,e}var nw=K(m({},Fs),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=rn(t.lView);for(;e&&!Ph(e[A]);)e=rn(e);e&&xf(e)},consumerOnSignalRead(){this.lView[Pe]=this}});function Ph(t){return t.type!==2}var rw=100;function kh(t,e=!0,r=0){let n=t[tt],o=n.rendererFactory,i=!1;i||o.begin?.();try{ow(t,r)}catch(s){throw e&&Rh(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function ow(t,e){let r=Pf();try{pd(!0),Ha(t,e);let n=0;for(;Cr(t);){if(n===rw)throw new y(103,!1);n++,Ha(t,1)}}finally{pd(r)}}function iw(t,e,r,n){let o=e[S];if((o&256)===256)return;let i=!1,s=!1;!i&&e[tt].inlineEffectRunner?.flush(),Mc(e);let a=!0,c=null,u=null;i||(Ph(t)?(u=KD(e),c=Ls(u)):Cl()===null?(a=!1,u=tw(e),c=Ls(u)):e[Pe]&&(Vs(e[Pe]),e[Pe]=null));try{Tf(e),ey(t.bindingStartIndex),r!==null&&bh(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&Bo(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Ho(e,f,0,null),ua(e,0)}if(s||sw(e),Fh(e,0),t.contentQueries!==null&&Nh(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&Bo(e,f)}else{let f=t.contentHooks;f!==null&&Ho(e,f,1),ua(e,1)}yD(t,e);let d=t.components;d!==null&&jh(e,d,0);let h=t.viewQuery;if(h!==null&&Ba(2,h,n),!i)if(l){let f=t.viewCheckHooks;f!==null&&Bo(e,f)}else{let f=t.viewHooks;f!==null&&Ho(e,f,2),ua(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ca]){for(let f of e[ca])f();e[ca]=null}i||(e[S]&=-73)}catch(l){throw i||xi(e),l}finally{u!==null&&(bl(u,c),a&&XD(u)),Sc()}}function Fh(t,e){for(let r=rh(t);r!==null;r=oh(r))for(let n=Ce;n-1&&(Va(e,n),Yo(r,n))}this._attachedToViewContainer=!1}gh(this._lView[A],this._lView)}onDestroy(e){Nf(this._lView,e)}markForCheck(){qc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){Na(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,kh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ta(this._lView),r=this._lView[tn];r!==null&&!e&&Fc(r,this._lView),hh(this._lView[A],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=e;let r=Ta(this._lView),n=this._lView[tn];n!==null&&!r&&ph(n,this._lView),Na(this._lView)}},un=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=lw;let t=e;return t})(),cw=un,uw=class extends cw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=ZD(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new cn(o)}};function lw(){return Wc(fe(),F())}function Wc(t,e){return t.type&4?new uw(e,t,Kn(t,e)):null}var LR=new RegExp(`^(\\d+)*(${Fy}|${ky})*(.*)`);var dw=()=>null;function Sd(t,e){return dw(t,e)}var Hn=class{},Vh=new E("",{providedIn:"root",factory:()=>!1});var $h=new E(""),za=class{},ci=class{};function fw(t){let e=Error(`No component factory found for ${De(t)}.`);return e[hw]=t,e}var hw="ngComponent";var Ga=class{resolveComponentFactory(e){throw fw(e)}},cu=class cu{};cu.NULL=new Ga;var zn=cu,Gn=class{},_r=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>pw();let t=e;return t})();function pw(){let t=F(),e=fe(),r=Ft(e.index,t);return(At(r)?r:t)[oe]}var gw=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var Td=new Set;function Vi(t){Td.has(t)||(Td.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Uh(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ae.requestAnimationFrame=="function"&&ae.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function xd(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Nd(...t){}var U=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ce(!1),this.onMicrotaskEmpty=new ce(!1),this.onStable=new ce(!1),this.onError=new ce(!1),typeof Zone>"u")throw new y(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,yw(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new y(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,mw,Nd,Nd);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},mw={};function Zc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vw(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Uh(()=>{t.callbackScheduled=!1,qa(t),t.isCheckStableRunning=!0,Zc(t),t.isCheckStableRunning=!1})}),qa(t))}function yw(t){let e=()=>{vw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(Dw(a))return r.invokeTask(o,i,s,a);try{return _d(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Ad(t)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return _d(t),r.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!ww(a)&&e(),Ad(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,qa(t),Zc(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function qa(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function _d(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ad(t){t._nesting--,Zc(t)}var ui=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ce,this.onMicrotaskEmpty=new ce,this.onStable=new ce,this.onError=new ce}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function Dw(t){return Bh(t,"__ignore_ng_zone__")}function ww(t){return Bh(t,"__scheduler_tick__")}function Bh(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function Ew(t="zone.js",e){return t==="noop"?new ui:t==="zone.js"?new U(e):t}var Nt=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Nt||{}),Iw={destroy(){}};function $i(t,e){!e&&Pv($i);let r=e?.injector??p(ke);if(!Yy(r))return Iw;Vi("NgAfterNextRender");let n=r.get(Yc),o=n.handler??=new Za,i=e?.phase??Nt.MixedReadWrite,s=()=>{o.unregister(c),a()},a=r.get(_c).onDestroy(s),c=Me(r,()=>new Wa(i,()=>{s(),t()}));return o.register(c),{destroy:s}}var Wa=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(U),this.errorHandler=p(ot,{optional:!0}),p(Hn,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Za=class{constructor(){this.executingCallbacks=!1,this.buckets={[Nt.EarlyRead]:new Set,[Nt.Write]:new Set,[Nt.MixedReadWrite]:new Set,[Nt.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Yc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function li(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&yh(t,r,i.join(" "))}}function Nw(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=Aw;let t=e;return t})();function Aw(){let t=fe();return zh(t,F())}var Rw=jt,Hh=class extends Rw{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Kn(this._hostTNode,this._hostLView)}get injector(){return new Xt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Tc(this._hostTNode,this._hostLView);if(zf(e)){let r=ni(e,this._hostLView),n=ti(e),o=r[A].data[n+8];return new Xt(o,r)}else return new Xt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Od(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Sd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,Md(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!Fv(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?e:new qn(Rt(e)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let M=(s?u:this.parentInjector).get(ue,null);M&&(i=M)}let l=Rt(c.componentType??{}),d=Sd(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Md(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(Hv(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[le],u=new Hh(c,c[ze],c[le]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return YD(s,o,i,n),e.attachToViewContainerRef(),ef(pa(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Od(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Va(this._lContainer,r);n&&(Yo(pa(this._lContainer),r),gh(n[A],n))}detach(e){let r=this._adjustIndex(e,-1),n=Va(this._lContainer,r);return n&&Yo(pa(this._lContainer),r)!=null?new cn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Od(t){return t[Xo]}function pa(t){return t[Xo]||(t[Xo]=[])}function zh(t,e){let r,n=e[t.index];return pt(n)?r=n:(r=xh(n,e,null,t),e[t.index]=r,ji(e,r)),Pw(r,e,t,n),new Hh(r,t,e)}function Ow(t,e){let r=t[oe],n=r.createComment(""),o=Fe(e,t),i=Lc(r,o);return si(r,i,n,uD(r,o),!1),n}var Pw=Lw,kw=()=>!1;function Fw(t,e,r){return kw(t,e,r)}function Lw(t,e,r,n){if(t[nn])return;let o;r.type&8?o=rt(n):o=Ow(e,r),t[nn]=o}var Qa=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Ka=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=e[-c];for(let d=Ce;de.trim())}function qw(t,e,r){t.queries===null&&(t.queries=new Xa),t.queries.track(new ec(e,r))}function Ww(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function Qc(t,e){return t.queries.getByIndex(e)}function Zw(t,e){let r=t[A],n=Qc(r,e);return n.crossesNgTemplate?tc(r,t,e,[]):Gh(r,t,n,e)}function Yw(t){let e=[],r=new Map;function n(o){let i=r.get(o);if(!i){let s=t(o);r.set(o,i=s.then(Xw))}return i}return fi.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(n(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(n(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(n(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>eE(i));e.push(c)}),Kw(),Promise.all(e).then(()=>{})}var fi=new Map,Qw=new Set;function Kw(){let t=fi;return fi=new Map,t}function Jw(){return fi.size===0}function Xw(t){return typeof t=="string"?t:t.text()}function eE(t){Qw.delete(t)}function tE(t){return Object.getPrototypeOf(t.prototype).constructor}function nE(t){let e=tE(t.type),r=!0,n=[t];for(;e;){let o;if(Ot(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new y(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let s=t;s.inputs=jo(t.inputs),s.inputTransforms=jo(t.inputTransforms),s.declaredInputs=jo(t.declaredInputs),s.outputs=jo(t.outputs);let a=o.hostBindings;a&&aE(t,a);let c=o.viewQuery,u=o.contentQueries;if(c&&iE(t,c),u&&sE(t,u),rE(t,o),jm(t.outputs,o.outputs),Ot(o)&&o.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=wr(o.hostAttrs,r=wr(r,o.hostAttrs))}}function jo(t){return t===Fn?{}:t===Oe?[]:t}function iE(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function sE(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function aE(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function Kc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var kt=class{},br=class{};var hi=class extends kt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new di(this);let o=df(e);this._bootstrapComponents=dh(o.bootstrap),this._r3Injector=Xf(e,r,[{provide:kt,useValue:this},{provide:zn,useValue:this.componentFactoryResolver},...n],De(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},pi=class extends br{constructor(e){super(),this.moduleType=e}create(e){return new hi(this.moduleType,e,[])}};function cE(t,e,r){return new hi(t,e,r)}var nc=class extends kt{constructor(e){super(),this.componentFactoryResolver=new di(this),this.instance=null;let r=new Er([...e.providers,{provide:kt,useValue:this},{provide:zn,useValue:this.componentFactoryResolver}],e.parent||yc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ui(t,e,r=null){return new nc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function qh(t){return lE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function uE(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function wE(t){return(t&2)==2}function EE(t,e){return t&131071|e<<17}function rc(t){return t|2}function Wn(t){return(t&131068)>>2}function ga(t,e){return t&-131069|e<<2}function IE(t){return(t&1)===1}function oc(t){return t|1}function CE(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=dn(s),c=Wn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Tr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let h=dn(t[a+1]);t[n+1]=Vo(h,a),h!==0&&(t[h+1]=ga(t[h+1],n)),t[a+1]=EE(t[a+1],n)}else t[n+1]=Vo(a,0),a!==0&&(t[a+1]=ga(t[a+1],n)),a=n;else t[n+1]=Vo(c,0),a===0?a=n:t[c+1]=ga(t[c+1],n),c=n;u&&(t[n+1]=rc(t[n+1])),Pd(t,l,n,!0),Pd(t,l,n,!1),bE(e,l,t,n,i),s=Vo(a,c),i?e.classBindings=s:e.styleBindings=s}function bE(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Tr(i,e)>=0&&(r[n+1]=oc(r[n+1]))}function Pd(t,e,r,n){let o=t[r+1],i=e===null,s=n?dn(o):Wn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];ME(c,e)&&(a=!0,t[s+1]=n?oc(u):rc(u)),s=n?dn(u):Wn(u)}a&&(t[r+1]=n?rc(o):oc(o))}function ME(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Tr(t,e)>=0:!1}function SE(t,e,r){let n=F(),o=Cc();if(ln(n,o,e)){let i=de(),s=Uf();xD(i,s,n,t,e,n[oe],r,!1)}return SE}function kd(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";zc(t,r,i[s],s,n)}function TE(t,e){return xE(t,e,null,!0),TE}function xE(t,e,r,n){let o=F(),i=de(),s=ty(2);if(i.firstUpdatePass&&_E(i,t,s,n),e!==Lt&&ln(o,s,e)){let a=i.data[Qn()];kE(i,a,o,o[oe],t,o[s+1]=FE(e,r),n,s)}}function NE(t,e){return e>=t.expandoStartIndex}function _E(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Qn()],s=NE(t,r);LE(i,n)&&e===null&&!s&&(e=!1),e=AE(o,i,e,n),CE(o,i,e,r,s,n)}}function AE(t,e,r,n){let o=iy(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=ma(null,t,e,r,n),r=Mr(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=ma(o,t,e,r,n),i===null){let c=RE(t,e,n);c!==void 0&&Array.isArray(c)&&(c=ma(null,t,e,c[1],n),c=Mr(c,e.attrs,n),OE(t,e,n,c))}else i=PE(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function RE(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Wn(n)!==0)return t[dn(n)]}function OE(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[dn(o)]=n}function PE(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=r[o+1];h===Lt&&(h=d?Oe:void 0);let f=d?sa(h,n):l===n?h:void 0;if(u&&!gi(f)&&(f=sa(c,n)),gi(f)&&(a=f,s))return a;let g=t[o+1];o=s?dn(g):Wn(g)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=sa(c,n))}return a}function gi(t){return t!==void 0}function FE(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=De(xr(t)))),t}function LE(t,e){return(t.flags&(e?8:16))!==0}function jE(t,e,r,n,o,i){let s=e.consts,a=Bn(s,o),c=Nr(e,t,2,n,a);return Hc(e,r,c,Bn(s,i)),c.attrs!==null&&li(c,c.attrs,!1),c.mergedAttrs!==null&&li(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function Wh(t,e,r,n){let o=F(),i=de(),s=be+t,a=o[oe],c=i.firstCreatePass?jE(s,i,o,e,r,n):i.data[s],u=VE(i,o,c,a,e,t);o[s]=u;let l=Ti(c);return hn(c,!0),Dh(a,u,c),!hE(c)&&_i()&&ki(i,o,u,c),qv()===0&&Pt(u,o),Wv(),l&&($c(i,o,c),Vc(i,c,o)),n!==null&&Uc(o,c),Wh}function Zh(){let t=fe();Ic()?Of():(t=t.parent,hn(t,!1));let e=t;Qv(e)&&Kv(),Zv();let r=de();return r.firstCreatePass&&(Ri(r,t),Dc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&fy(e)&&kd(r,e,F(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&hy(e)&&kd(r,e,F(),e.stylesWithoutHost,!1),Zh}function eu(t,e,r,n){return Wh(t,e,r,n),Zh(),eu}var VE=(t,e,r,n,o,i)=>(Ai(!0),fh(n,o,cy()));function $E(t,e,r,n,o){let i=e.consts,s=Bn(i,n),a=Nr(e,t,8,"ng-container",s);s!==null&&li(a,s,!0);let c=Bn(i,o);return Hc(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function UE(t,e,r){let n=F(),o=de(),i=t+be,s=o.firstCreatePass?$E(i,o,n,e,r):o.data[i];hn(s,!0);let a=HE(o,n,s,t);return n[i]=a,_i()&&ki(o,n,a,s),Pt(a,n),Ti(s)&&($c(o,n,s),Vc(o,s,n)),r!=null&&Uc(n,s),UE}function BE(){let t=fe(),e=de();return Ic()?Of():(t=t.parent,hn(t,!1)),e.firstCreatePass&&(Ri(e,t),Dc(t)&&e.queries.elementEnd(t)),BE}var HE=(t,e,r,n)=>(Ai(!0),Xy(e[oe],""));function VR(){return F()}var Kt=void 0;function zE(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var GE=["en",[["a","p"],["AM","PM"],Kt],[["AM","PM"],Kt,Kt],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Kt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Kt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Kt,"{1} 'at' {0}",Kt],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",zE],va={};function Le(t){let e=qE(t),r=Ld(e);if(r)return r;let n=e.split("-")[0];if(r=Ld(n),r)return r;if(n==="en")return GE;throw new y(701,!1)}function Ld(t){return t in va||(va[t]=ae.ng&&ae.ng.common&&ae.ng.common.locales&&ae.ng.common.locales[t]),va[t]}var J=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(J||{});function qE(t){return t.toLowerCase().replace(/_/g,"-")}var mi="en-US";var WE=mi;function ZE(t){typeof t=="string"&&(WE=t.toLowerCase().replace(/_/g,"-"))}var YE=(t,e,r)=>{};function tu(t,e,r,n){let o=F(),i=de(),s=fe();return KE(i,o,o[oe],s,t,e,n),tu}function QE(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function KE(t,e,r,n,o,i,s){let a=Ti(n),u=t.firstCreatePass&&Ah(t),l=e[He],d=_h(e),h=!0;if(n.type&3||s){let M=Fe(n,e),v=s?s(M):M,I=d.length,X=s?B=>s(rt(B[n.index])):n.index,G=null;if(!s&&a&&(G=QE(t,e,o,n.index)),G!==null){let B=G.__ngLastListenerFn__||G;B.__ngNextListenerFn__=i,G.__ngLastListenerFn__=i,h=!1}else{i=Vd(n,e,l,i),YE(M,o,i);let B=r.listen(v,o,i);d.push(i,B),u&&u.push(o,X,I,I+1)}}else i=Vd(n,e,l,i);let f=n.outputs,g;if(h&&f!==null&&(g=f[o])){let M=g.length;if(M)for(let v=0;v-1?Ft(t.index,e):e;qc(s,5);let a=jd(e,r,n,i),c=o.__ngNextListenerFn__;for(;c;)a=jd(e,r,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function $R(t=1){return ay(t)}function Yh(t,e,r,n){zw(t,e,r,n)}function Qh(t){let e=F(),r=de(),n=kf();bc(n+1);let o=Qc(r,n);if(t.dirty&&Bv(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=Zw(e,n);t.reset(i,Ty),t.notifyOnChanges()}return!0}return!1}function Kh(){return Bw(F(),kf())}function JE(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function UR(t){let e=Xv();return wc(e,be+t)}function BR(t,e=""){let r=F(),n=de(),o=t+be,i=n.firstCreatePass?Nr(n,o,1,e,null):n.data[o],s=XE(n,r,i,e,t);r[o]=s,_i()&&ki(n,r,s,i),hn(i,!1)}var XE=(t,e,r,n,o)=>(Ai(!0),Ky(e[oe],n));function eI(t){return Jh("",t,""),eI}function Jh(t,e,r){let n=F(),o=DE(n,t,e,r);return o!==Lt&&zD(n,Qn(),o),Jh}function tI(t,e,r){let n=de();if(n.firstCreatePass){let o=Ot(t);ic(r,n.data,n.blueprint,o,!0),ic(e,n.data,n.blueprint,o,!1)}}function ic(t,e,r,n,o){if(t=ye(t),Array.isArray(t))for(let i=0;i>20;if(Vn(t)||!t.multi){let f=new sn(u,o,Z),g=Da(c,e,o?l:l+h,d);g===-1?(Oa(oi(a,s),i,c),ya(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[g]=f,s[g]=f)}else{let f=Da(c,e,l+h,d),g=Da(c,e,l,l+h),M=f>=0&&r[f],v=g>=0&&r[g];if(o&&!v||!o&&!M){Oa(oi(a,s),i,c);let I=oI(o?rI:nI,r.length,o,n,u);!o&&v&&(r[g].providerFactory=I),ya(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(I),s.push(I)}else{let I=Xh(r[o?g:f],u,!o&&n);ya(i,t,f>-1?f:g,I)}!o&&n&&v&&r[g].componentProviders++}}}function ya(t,e,r,n){let o=Vn(e),i=Tv(e);if(o||i){let c=(i?ye(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function Xh(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Da(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>tI(n,o?o(t):t,e)}}var iI=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=pf(!1,n.type),i=o.length>0?Ui([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=w({token:e,providedIn:"environment",factory:()=>new e(D(ue))});let t=e;return t})();function ep(t){Vi("NgStandalone"),t.getStandaloneInjector=e=>e.get(iI).getOrCreateStandaloneInjector(t)}function zR(t,e,r){let n=Ni()+t,o=F();return o[n]===Lt?Jc(o,n,r?e.call(r):e()):dE(o,n)}function GR(t,e,r,n){return np(F(),Ni(),t,e,r,n)}function tp(t,e){let r=t[e];return r===Lt?void 0:r}function np(t,e,r,n,o,i){let s=e+r;return ln(t,s,o)?Jc(t,s+1,i?n.call(i,o):n(o)):tp(t,s+1)}function sI(t,e,r,n,o,i,s){let a=e+r;return fE(t,a,o,i)?Jc(t,a+2,s?n.call(s,o,i):n(o,i)):tp(t,a+2)}function qR(t,e){let r=de(),n,o=t+be;r.firstCreatePass?(n=aI(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=en(n.type,!0)),s,a=Ie(Z);try{let c=ri(!1),u=i();return ri(c),JE(r,F(),o,u),u}finally{Ie(a)}}function aI(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function WR(t,e,r){let n=t+be,o=F(),i=wc(o,n);return rp(o,n)?np(o,Ni(),e,i.transform,r,i):i.transform(r)}function ZR(t,e,r,n){let o=t+be,i=F(),s=wc(i,o);return rp(i,o)?sI(i,Ni(),e,s.transform,r,n,s):s.transform(r,n)}function rp(t,e){return t[A].data[e].pure}var $o=null;function cI(t){$o!==null&&(t.defaultEncapsulation!==$o.defaultEncapsulation||t.preserveWhitespaces!==$o.preserveWhitespaces)||($o=t)}var Bi=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var nu=new E(""),Ar=new E(""),Hi=(()=>{let e=class e{constructor(n,o,i){this._ngZone=n,this.registry=o,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,ru||(uI(i),i.addToWindow(o)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(n)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},o)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};e.\u0275fac=function(o){return new(o||e)(D(U),D(zi),D(Ar))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),zi=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return ru?.findTestabilityInTree(this,n,o)??null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function uI(t){ru=t}var ru;function Jn(t){return!!t&&typeof t.then=="function"}function ou(t){return!!t&&typeof t.subscribe=="function"}var Gi=new E(""),op=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(Gi,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(Jn(s))n.push(s);else if(ou(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qi=new E("");function lI(){Ml(()=>{throw new y(600,!1)})}function dI(t){return t.isBoundToModule}var fI=10;function hI(t,e,r){try{let n=r();return Jn(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function ip(t,e){return Array.isArray(e)?e.reduce(ip,t):m(m({},t),e)}var Vt=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(eh),this.afterRenderEffectManager=p(Yc),this.zonelessEnabled=p(Vh),this.externalTestViews=new Set,this.beforeRender=new ee,this.afterTick=new ee,this.componentTypes=[],this.components=[],this.isStable=p(mt).hasPendingTasks.pipe(_(n=>!n)),this._injector=p(ue)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof ci;if(!this._injector.get(op).done){let f=!i&&lf(n),g=!1;throw new y(405,g)}let a;i?a=n:a=this._injector.get(zn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=dI(a)?void 0:this._injector.get(kt),u=o||a.selector,l=a.create(ke.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(nu,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),qo(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new y(101,!1);let o=k(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,k(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(Gn,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iCr(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Cr(c))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;qo(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(qi,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>qo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function pI(t,e,r,n){if(!r&&!Cr(t))return;kh(t,e,r&&!n?0:1)}var ac=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Wi=(()=>{let e=class e{compileModuleSync(n){return new pi(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=df(n),s=dh(i.declarations).reduce((a,c)=>{let u=Rt(c);return u&&a.push(new qn(u)),a},[]);return new ac(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gI=new E("");function mI(t,e,r){let n=new pi(r);return Promise.resolve(n)}function $d(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var vI=(()=>{let e=class e{constructor(){this.zone=p(U),this.changeDetectionScheduler=p(Hn),this.applicationRef=p(Vt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yI({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new U(sp()),[{provide:U,useFactory:t},{provide:Ln,multi:!0,useFactory:()=>{let r=p(vI,{optional:!0});return()=>r.initialize()}},{provide:Ln,multi:!0,useFactory:()=>{let r=p(wI);return()=>{r.initialize()}}},{provide:eh,useFactory:DI},e===!0?{provide:$h,useValue:!0}:[]]}function DI(){let t=p(U),e=p(ot);return r=>t.runOutsideAngular(()=>e.handleError(r))}function sp(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var wI=(()=>{let e=class e{constructor(){this.subscription=new Q,this.initialized=!1,this.zone=p(U),this.pendingTasks=p(mt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var EI=(()=>{let e=class e{constructor(){this.appRef=p(Vt),this.taskService=p(mt),this.ngZone=p(U),this.zonelessEnabled=p(Vh),this.disableScheduling=p($h,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Q,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ui||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?xd:Uh;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&U.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,xd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function II(){return typeof $localize<"u"&&$localize.locale||mi}var Zi=new E("",{providedIn:"root",factory:()=>p(Zi,O.Optional|O.SkipSelf)||II()});var ap=new E(""),cp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=Ew(o?.ngZone,sp({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=o?.ignoreChangesOutsideZone,a=cE(n.moduleType,this.injector,[...yI({ngZoneFactory:()=>i,ignoreChangesOutsideZone:s}),{provide:Hn,useExisting:EI}]),c=a.injector.get(ot,null);return i.runOutsideAngular(()=>{let u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{qo(this._modules,a),u.unsubscribe()})}),hI(c,i,()=>{let u=a.injector.get(op);return u.runInitializers(),u.donePromise.then(()=>{let l=a.injector.get(Zi,mi);return ZE(l||mi),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,o=[]){let i=ip({},o);return mI(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){let o=n.injector.get(Vt);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(o);else throw new y(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new y(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(ap,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(o){return new(o||e)(D(ke))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),yr=null,up=new E("");function CI(t){if(yr&&!yr.get(up,!1))throw new y(400,!1);lI(),yr=t;let e=t.get(cp);return SI(t),e}function iu(t,e,r=[]){let n=`Platform: ${e}`,o=new E(n);return(i=[])=>{let s=lp();if(!s||s.injector.get(up,!1)){let a=[...r,...i,{provide:o,useValue:!0}];t?t(a):CI(bI(a,n))}return MI(o)}}function bI(t=[],e){return ke.create({name:e,providers:[{provide:bi,useValue:"platform"},{provide:ap,useValue:new Set([()=>yr=null])},...t]})}function MI(t){let e=lp();if(!e)throw new y(401,!1);return e}function lp(){return yr?.get(cp)??null}function SI(t){t.get(Ac,null)?.forEach(r=>r())}function YR(){return!1}var pn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=TI;let t=e;return t})();function TI(t){return xI(fe(),F(),(t&16)===16)}function xI(t,e,r){if(Si(t)&&!r){let n=Ft(t.index,e);return new cn(n,n)}else if(t.type&175){let n=e[nt];return new cn(n,e)}return null}var cc=class{constructor(){}supports(e){return qh(e)}create(e){return new uc(e)}},NI=(t,e)=>e,uc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||NI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new lc(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new vi),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new vi),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},lc=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},dc=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},vi=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new dc,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ud(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Bd()),deps:[[e,new hc,new Ii]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new y(901,!1)}};e.\u0275prov=w({token:e,providedIn:"root",factory:Bd});let t=e;return t})();var dp=iu(null,"core",[]),fp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(o){return new(o||e)(D(Vt))},e.\u0275mod=ft({type:e}),e.\u0275inj=dt({});let t=e;return t})();function Rr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function au(t){let e=k(null);try{return t()}finally{k(e)}}function hp(t){let e=Rt(t);if(!e)return null;let r=new qn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var wp=null;function gn(){return wp}function Ep(t){wp??=t}var rs=class{};var he=new E(""),yu=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(_I),providedIn:"platform"});let t=e;return t})(),Ip=new E(""),_I=(()=>{let e=class e extends yu{constructor(){super(),this._doc=p(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gn().getBaseHref(this._doc)}onPopState(n){let o=gn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=gn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Du(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function pp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function yt(t){return t&&t[0]!=="?"?"?"+t:t}var wt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(wu),providedIn:"root"});let t=e;return t})(),Cp=new E(""),wu=(()=>{let e=class e extends wt{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(he).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Du(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+yt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(D(yu),D(Cp,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bp=(()=>{let e=class e extends wt{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=Du(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+yt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(D(yu),D(Cp,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),er=(()=>{let e=class e{constructor(n){this._subject=new ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=OI(pp(gp(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+yt(o))}normalize(n){return e.stripTrailingSlash(RI(this._basePath,gp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+yt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=yt,e.joinWithSlash=Du,e.stripTrailingSlash=pp,e.\u0275fac=function(o){return new(o||e)(D(wt))},e.\u0275prov=w({token:e,factory:()=>AI(),providedIn:"root"});let t=e;return t})();function AI(){return new er(D(wt))}function RI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function gp(t){return t.replace(/\/index.html$/,"")}function OI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var we=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(we||{}),z=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(z||{}),Se=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Se||{}),$t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function PI(t){return Le(t)[J.LocaleId]}function kI(t,e,r){let n=Le(t),o=[n[J.DayPeriodsFormat],n[J.DayPeriodsStandalone]],i=je(o,e);return je(i,r)}function FI(t,e,r){let n=Le(t),o=[n[J.DaysFormat],n[J.DaysStandalone]],i=je(o,e);return je(i,r)}function LI(t,e,r){let n=Le(t),o=[n[J.MonthsFormat],n[J.MonthsStandalone]],i=je(o,e);return je(i,r)}function jI(t,e){let n=Le(t)[J.Eras];return je(n,e)}function Yi(t,e){let r=Le(t);return je(r[J.DateFormat],e)}function Qi(t,e){let r=Le(t);return je(r[J.TimeFormat],e)}function Ki(t,e){let n=Le(t)[J.DateTimeFormat];return je(n,e)}function is(t,e){let r=Le(t),n=r[J.NumberSymbols][e];if(typeof n>"u"){if(e===$t.CurrencyDecimal)return r[J.NumberSymbols][$t.Decimal];if(e===$t.CurrencyGroup)return r[J.NumberSymbols][$t.Group]}return n}function Mp(t){if(!t[J.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[J.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function VI(t){let e=Le(t);return Mp(e),(e[J.ExtraData][2]||[]).map(n=>typeof n=="string"?uu(n):[uu(n[0]),uu(n[1])])}function $I(t,e,r){let n=Le(t);Mp(n);let o=[n[J.ExtraData][0],n[J.ExtraData][1]],i=je(o,e)||[];return je(i,r)||[]}function je(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function uu(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var UI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ji={},BI=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Dt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Dt||{}),j=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(j||{}),L=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(L||{});function HI(t,e,r,n){let o=JI(t);e=vt(r,e)||e;let s=[],a;for(;e;)if(a=BI.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=o.getTimezoneOffset();n&&(c=Tp(n,c),o=KI(o,n,!0));let u="";return s.forEach(l=>{let d=YI(l);u+=d?d(o,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function os(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function vt(t,e){let r=PI(t);if(Ji[r]??={},Ji[r][e])return Ji[r][e];let n="";switch(e){case"shortDate":n=Yi(t,Se.Short);break;case"mediumDate":n=Yi(t,Se.Medium);break;case"longDate":n=Yi(t,Se.Long);break;case"fullDate":n=Yi(t,Se.Full);break;case"shortTime":n=Qi(t,Se.Short);break;case"mediumTime":n=Qi(t,Se.Medium);break;case"longTime":n=Qi(t,Se.Long);break;case"fullTime":n=Qi(t,Se.Full);break;case"short":let o=vt(t,"shortTime"),i=vt(t,"shortDate");n=Xi(Ki(t,Se.Short),[o,i]);break;case"medium":let s=vt(t,"mediumTime"),a=vt(t,"mediumDate");n=Xi(Ki(t,Se.Medium),[s,a]);break;case"long":let c=vt(t,"longTime"),u=vt(t,"longDate");n=Xi(Ki(t,Se.Long),[c,u]);break;case"full":let l=vt(t,"fullTime"),d=vt(t,"fullDate");n=Xi(Ki(t,Se.Full),[l,d]);break}return n&&(Ji[r][e]=n),n}function Xi(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Ge(t,e,r="-",n,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===j.Hours)a===0&&r===-12&&(a=12);else if(t===j.FractionalSeconds)return zI(a,e);let c=is(s,$t.MinusSign);return Ge(a,e,c,n,o)}}function GI(t,e){switch(t){case j.FullYear:return e.getFullYear();case j.Month:return e.getMonth();case j.Date:return e.getDate();case j.Hours:return e.getHours();case j.Minutes:return e.getMinutes();case j.Seconds:return e.getSeconds();case j.FractionalSeconds:return e.getMilliseconds();case j.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function W(t,e,r=we.Format,n=!1){return function(o,i){return qI(o,i,t,e,r,n)}}function qI(t,e,r,n,o,i){switch(r){case L.Months:return LI(e,o,n)[t.getMonth()];case L.Days:return FI(e,o,n)[t.getDay()];case L.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(i){let u=VI(e),l=$I(e,o,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,M=s>=f.hours&&a>=f.minutes,v=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Dt.Short:return(o>=0?"+":"")+Ge(s,2,i)+Ge(Math.abs(o%60),2,i);case Dt.ShortGMT:return"GMT"+(o>=0?"+":"")+Ge(s,1,i);case Dt.Long:return"GMT"+(o>=0?"+":"")+Ge(s,2,i)+":"+Ge(Math.abs(o%60),2,i);case Dt.Extended:return n===0?"Z":(o>=0?"+":"")+Ge(s,2,i)+":"+Ge(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}var WI=0,ns=4;function ZI(t){let e=os(t,WI,1).getDay();return os(t,0,1+(e<=ns?ns:ns+7)-e)}function Sp(t){let e=t.getDay(),r=e===0?-3:ns-e;return os(t.getFullYear(),t.getMonth(),t.getDate()+r)}function lu(t,e=!1){return function(r,n){let o;if(e){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=Sp(r),s=ZI(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ge(o,t,is(n,$t.MinusSign))}}function ts(t,e=!1){return function(r,n){let i=Sp(r).getFullYear();return Ge(i,t,is(n,$t.MinusSign),e)}}var du={};function YI(t){if(du[t])return du[t];let e;switch(t){case"G":case"GG":case"GGG":e=W(L.Eras,z.Abbreviated);break;case"GGGG":e=W(L.Eras,z.Wide);break;case"GGGGG":e=W(L.Eras,z.Narrow);break;case"y":e=te(j.FullYear,1,0,!1,!0);break;case"yy":e=te(j.FullYear,2,0,!0,!0);break;case"yyy":e=te(j.FullYear,3,0,!1,!0);break;case"yyyy":e=te(j.FullYear,4,0,!1,!0);break;case"Y":e=ts(1);break;case"YY":e=ts(2,!0);break;case"YYY":e=ts(3);break;case"YYYY":e=ts(4);break;case"M":case"L":e=te(j.Month,1,1);break;case"MM":case"LL":e=te(j.Month,2,1);break;case"MMM":e=W(L.Months,z.Abbreviated);break;case"MMMM":e=W(L.Months,z.Wide);break;case"MMMMM":e=W(L.Months,z.Narrow);break;case"LLL":e=W(L.Months,z.Abbreviated,we.Standalone);break;case"LLLL":e=W(L.Months,z.Wide,we.Standalone);break;case"LLLLL":e=W(L.Months,z.Narrow,we.Standalone);break;case"w":e=lu(1);break;case"ww":e=lu(2);break;case"W":e=lu(1,!0);break;case"d":e=te(j.Date,1);break;case"dd":e=te(j.Date,2);break;case"c":case"cc":e=te(j.Day,1);break;case"ccc":e=W(L.Days,z.Abbreviated,we.Standalone);break;case"cccc":e=W(L.Days,z.Wide,we.Standalone);break;case"ccccc":e=W(L.Days,z.Narrow,we.Standalone);break;case"cccccc":e=W(L.Days,z.Short,we.Standalone);break;case"E":case"EE":case"EEE":e=W(L.Days,z.Abbreviated);break;case"EEEE":e=W(L.Days,z.Wide);break;case"EEEEE":e=W(L.Days,z.Narrow);break;case"EEEEEE":e=W(L.Days,z.Short);break;case"a":case"aa":case"aaa":e=W(L.DayPeriods,z.Abbreviated);break;case"aaaa":e=W(L.DayPeriods,z.Wide);break;case"aaaaa":e=W(L.DayPeriods,z.Narrow);break;case"b":case"bb":case"bbb":e=W(L.DayPeriods,z.Abbreviated,we.Standalone,!0);break;case"bbbb":e=W(L.DayPeriods,z.Wide,we.Standalone,!0);break;case"bbbbb":e=W(L.DayPeriods,z.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":e=W(L.DayPeriods,z.Abbreviated,we.Format,!0);break;case"BBBB":e=W(L.DayPeriods,z.Wide,we.Format,!0);break;case"BBBBB":e=W(L.DayPeriods,z.Narrow,we.Format,!0);break;case"h":e=te(j.Hours,1,-12);break;case"hh":e=te(j.Hours,2,-12);break;case"H":e=te(j.Hours,1);break;case"HH":e=te(j.Hours,2);break;case"m":e=te(j.Minutes,1);break;case"mm":e=te(j.Minutes,2);break;case"s":e=te(j.Seconds,1);break;case"ss":e=te(j.Seconds,2);break;case"S":e=te(j.FractionalSeconds,1);break;case"SS":e=te(j.FractionalSeconds,2);break;case"SSS":e=te(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=es(Dt.Short);break;case"ZZZZZ":e=es(Dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=es(Dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=es(Dt.Long);break;default:return null}return du[t]=e,e}function Tp(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function QI(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function KI(t,e,r){let n=r?-1:1,o=t.getTimezoneOffset(),i=Tp(e,o);return QI(t,n*(i-o))}function JI(t){if(mp(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return os(o,i-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(UI))return XI(n)}let e=new Date(t);if(!mp(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function XI(t){let e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,u),e}function mp(t){return t instanceof Date&&!isNaN(t.valueOf())}function ss(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var fu=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},vO=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new fu(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),vp(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);vp(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Z(jt),Z(un),Z(su))},e.\u0275dir=fn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function vp(t,e){t.context.$implicit=e.item}var yO=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new hu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){yp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){yp("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Z(jt),Z(un))},e.\u0275dir=fn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),hu=class{constructor(){this.$implicit=null,this.ngIf=null}};function yp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${De(e)}'.`)}function xp(t,e){return new y(2100,!1)}var pu=class{createSubscription(e,r){return au(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){au(()=>e.unsubscribe())}},gu=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},eC=new gu,tC=new pu,DO=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(Jn(n))return eC;if(ou(n))return tC;throw xp(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(o){return new(o||e)(Z(pn,16))},e.\u0275pipe=mc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var nC="mediumDate",rC=new E(""),oC=new E(""),wO=(()=>{let e=class e{constructor(n,o,i){this.locale=n,this.defaultTimezone=o,this.defaultOptions=i}transform(n,o,i,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??nC,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return HI(n,a,s||this.locale,c)}catch(a){throw xp(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(Z(Zi,16),Z(rC,24),Z(oC,24))},e.\u0275pipe=mc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Np=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=dt({});let t=e;return t})(),Eu="browser",iC="server";function sC(t){return t===Eu}function as(t){return t===iC}var _p=(()=>{let e=class e{};e.\u0275prov=w({token:e,providedIn:"root",factory:()=>sC(p(it))?new mu(p(he),window):new vu});let t=e;return t})(),mu=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=aC(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function aC(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var vu=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Xn=class{};var kr=class{},us=class{},Et=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Cu=class{encodeKey(e){return Rp(e)}encodeValue(e){return Rp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function cC(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var uC=/%(\d[a-f0-9])/gi,lC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Rp(t){return encodeURIComponent(t).replace(uC,(e,r)=>lC[r]??e)}function cs(t){return`${t}`}var Bt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Cu,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=cC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map(cs):[cs(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(cs(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(cs(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var bu=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function dC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Op(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Pp(t){return typeof Blob<"u"&&t instanceof Blob}function kp(t){return typeof FormData<"u"&&t instanceof FormData}function fC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Pr=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(dC(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Et,this.context??=new bu,!this.params)this.params=new Bt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Ht=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Ht||{}),Fr=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Et,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ls=class t extends Fr{constructor(e={}){super(e),this.type=Ht.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Lr=class t extends Fr{constructor(e={}){super(e),this.type=Ht.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Ut=class extends Fr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},$p=200,hC=204;function Iu(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Tu=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Pr)s=n;else{let u;i.headers instanceof Et?u=i.headers:u=new Et(i.headers);let l;i.params&&(i.params instanceof Bt?l=i.params:l=new Bt({fromObject:i.params})),s=new Pr(n,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=b(s).pipe(Qe(u=>this.handler.handle(u)));if(n instanceof Pr||i.observe==="events")return a;let c=a.pipe(me(u=>u instanceof Lr));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(_(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(_(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(_(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(_(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Bt().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,Iu(i,o))}post(n,o,i={}){return this.request("POST",n,Iu(i,o))}put(n,o,i={}){return this.request("PUT",n,Iu(i,o))}};e.\u0275fac=function(o){return new(o||e)(D(kr))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),pC=/^\)\]\}',?\n/,gC="X-Request-URL";function Fp(t){if(t.url)return t.url;let e=gC.toLocaleLowerCase();return t.headers.get(e)}var mC=(()=>{let e=class e{constructor(){this.fetchImpl=p(Mu,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(U)}handle(n){return new T(o=>{let i=new AbortController;return this.doRequest(n,i.signal,o).then(Su,s=>o.error(new Ut({error:s}))),()=>i.abort()})}doRequest(n,o,i){return fr(this,null,function*(){let s=this.createRequestInit(n),a;try{let g=this.fetchImpl(n.urlWithParams,m({signal:o},s));vC(g),i.next({type:Ht.Sent}),a=yield g}catch(g){i.error(new Ut({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let c=new Et(a.headers),u=a.statusText,l=Fp(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&i.next(new ls({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),M=[],v=a.body.getReader(),I=0,X,G,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>fr(this,null,function*(){for(;;){let{done:ne,value:_e}=yield v.read();if(ne)break;if(M.push(_e),I+=_e.length,n.reportProgress){G=n.responseType==="text"?(G??"")+(X??=new TextDecoder).decode(_e,{stream:!0}):void 0;let Dn=()=>i.next({type:Ht.DownloadProgress,total:g?+g:void 0,loaded:I,partialText:G});B?B.run(Dn):Dn()}}}));let Ne=this.concatChunks(M,I);try{let ne=a.headers.get("Content-Type")??"";h=this.parseBody(n,Ne,ne)}catch(ne){i.error(new Ut({error:ne,headers:new Et(a.headers),status:a.status,statusText:a.statusText,url:Fp(a)??n.urlWithParams}));return}}d===0&&(d=h?$p:0),d>=200&&d<300?(i.next(new Lr({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new Ut({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(pC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),o.Accept??="application/json, text/plain, */*",!o["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:i}}concatChunks(n,o){let i=new Uint8Array(o),s=0;for(let a of n)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Mu=class{};function Su(){}function vC(t){t.then(Su,Su)}function Up(t,e){return e(t)}function yC(t,e){return(r,n)=>e.intercept(r,{handle:o=>t(o,n)})}function DC(t,e,r){return(n,o)=>Me(r,()=>e(n,i=>t(i,o)))}var wC=new E(""),xu=new E(""),EC=new E(""),Bp=new E("",{providedIn:"root",factory:()=>!0});function IC(){let t=null;return(e,r)=>{t===null&&(t=(p(wC,{optional:!0})??[]).reduceRight(yC,Up));let n=p(mt);if(p(Bp)){let i=n.add();return t(e,r).pipe(Tt(()=>n.remove(i)))}else return t(e,r)}}var Lp=(()=>{let e=class e extends kr{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(mt),this.contributeToStability=p(Bp)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(xu),...this.injector.get(EC,[])]));this.chain=o.reduceRight((i,s)=>DC(i,s,this.injector),Up)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Tt(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(D(us),D(ue))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var CC=/^\)\]\}',?\n/;function bC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var jp=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new y(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?q(o.\u0275loadImpl()):b(null)).pipe(ve(()=>new T(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((v,I)=>a.setRequestHeader(v,I.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",I=new Et(a.getAllResponseHeaders()),X=bC(a)||n.url;return u=new ls({headers:I,status:a.status,statusText:v,url:X}),u},d=()=>{let{headers:v,status:I,statusText:X,url:G}=l(),B=null;I!==hC&&(B=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=B?$p:0);let Ne=I>=200&&I<300;if(n.responseType==="json"&&typeof B=="string"){let ne=B;B=B.replace(CC,"");try{B=B!==""?JSON.parse(B):null}catch(_e){B=ne,Ne&&(Ne=!1,B={error:_e,text:B})}}Ne?(s.next(new Lr({body:B,headers:v,status:I,statusText:X,url:G||void 0})),s.complete()):s.error(new Ut({error:B,headers:v,status:I,statusText:X,url:G||void 0}))},h=v=>{let{url:I}=l(),X=new Ut({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});s.error(X)},f=!1,g=v=>{f||(s.next(l()),f=!0);let I={type:Ht.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),n.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),s.next(I)},M=v=>{let I={type:Ht.UploadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),s.next(I)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(c),s.next({type:Ht.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(D(Xn))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Hp=new E(""),MC="XSRF-TOKEN",SC=new E("",{providedIn:"root",factory:()=>MC}),TC="X-XSRF-TOKEN",xC=new E("",{providedIn:"root",factory:()=>TC}),ds=class{},NC=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ss(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(D(he),D(it),D(SC))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function _C(t,e){let r=t.url.toLowerCase();if(!p(Hp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(ds).getToken(),o=p(xC);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var zp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(zp||{});function AC(t,e){return{\u0275kind:t,\u0275providers:e}}function RC(...t){let e=[Tu,jp,Lp,{provide:kr,useExisting:Lp},{provide:us,useFactory:()=>p(mC,{optional:!0})??p(jp)},{provide:xu,useValue:_C,multi:!0},{provide:Hp,useValue:!0},{provide:ds,useClass:NC}];for(let r of t)e.push(...r.\u0275providers);return Ci(e)}var Vp=new E("");function OC(){return AC(zp.LegacyInterceptors,[{provide:Vp,useFactory:IC},{provide:xu,useExisting:Vp,multi:!0}])}var kO=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=ft({type:e}),e.\u0275inj=dt({providers:[RC(OC())]});let t=e;return t})();var Au=class extends rs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ru=class t extends Au{static makeCurrent(){Ep(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=kC();return r==null?null:FC(r)}resetBaseElement(){jr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ss(document.cookie,e)}},jr=null;function kC(){return jr=jr||document.querySelector("base"),jr?jr.getAttribute("href"):null}function FC(t){return new URL(t,document.baseURI).pathname}var Ou=class{addToWindow(e){ae.getAngularTestability=(n,o=!0)=>{let i=e.findTestabilityInTree(n,o);if(i==null)throw new y(5103,!1);return i},ae.getAllAngularTestabilities=()=>e.getAllTestabilities(),ae.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let o=ae.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&n()};o.forEach(a=>{a.whenStable(s)})};ae.frameworkStabilizers||(ae.frameworkStabilizers=[]),ae.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let o=e.getTestability(r);return o??(n?gn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},LC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Pu=new E(""),Zp=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new y(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(D(Pu),D(U))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),fs=class{constructor(e){this._doc=e}},Nu="ng-app-id",Yp=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=as(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Nu}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(Nu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Nu,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(D(he),D(Oi),D(Rc,8),D(it))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),_u={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Fu=/%COMP%/g,Qp="%COMP%",jC=`_nghost-${Qp}`,VC=`_ngcontent-${Qp}`,$C=!0,UC=new E("",{providedIn:"root",factory:()=>$C});function BC(t){return VC.replace(Fu,t)}function HC(t){return jC.replace(Fu,t)}function Kp(t,e){return e.map(r=>r.replace(Fu,t))}var Gp=(()=>{let e=class e{constructor(n,o,i,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=as(c),this.defaultRenderer=new Vr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===et.ShadowDom&&(o=K(m({},o),{encapsulation:et.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof hs?i.applyToHost(n):i instanceof $r&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case et.Emulated:s=new hs(u,l,o,this.appId,d,a,c,h);break;case et.ShadowDom:return new ku(u,l,n,o,a,c,this.nonce,h);default:s=new $r(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(D(Zp),D(Yp),D(Oi),D(UC),D(he),D(it),D(U),D(Rc))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Vr=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(_u[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(qp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(qp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new y(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=_u[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=_u[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(lt.DashCase|lt.Important)?e.style.setProperty(r,n,o<.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n<.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=gn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function qp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ku=class extends Vr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Kp(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},$r=class extends Vr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?Kp(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hs=class extends $r{constructor(e,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(e,r,n,i,s,a,c,u),this.contentAttr=BC(u),this.hostAttr=HC(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},zC=(()=>{let e=class e extends fs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(D(he))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Wp=["alt","control","meta","shift"],GC={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qC={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},WC=(()=>{let e=class e extends fs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),Wp.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(n,o){let i=GC[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Wp.forEach(a=>{if(a!==i){let c=qC[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(D(he))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function ZC(){Ru.makeCurrent()}function YC(){return new ot}function QC(){return sh(document),document}var KC=[{provide:it,useValue:Eu},{provide:Ac,useValue:ZC,multi:!0},{provide:he,useFactory:QC,deps:[]}],tP=iu(dp,"browser",KC),JC=new E(""),XC=[{provide:Ar,useClass:Ou,deps:[]},{provide:nu,useClass:Hi,deps:[U,zi,Ar]},{provide:Hi,useClass:Hi,deps:[U,zi,Ar]}],eb=[{provide:bi,useValue:"root"},{provide:ot,useFactory:YC,deps:[]},{provide:Pu,useClass:zC,multi:!0,deps:[he,U,it]},{provide:Pu,useClass:WC,multi:!0,deps:[he]},Gp,Yp,Zp,{provide:Gn,useExisting:Gp},{provide:Xn,useClass:LC,deps:[]},[]],nP=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Oi,useValue:n.appId}]}}};e.\u0275fac=function(o){return new(o||e)(D(JC,12))},e.\u0275mod=ft({type:e}),e.\u0275inj=dt({providers:[...eb,...XC],imports:[Np,fp]});let t=e;return t})();var Jp=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(D(he))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var R="primary",to=Symbol("RouteTitle"),Uu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function sr(t){return new Uu(t)}function nb(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function dg(t){return t.length>0?t[t.length-1]:null}function qt(t){return ea(t)?t:Jn(t)?q(Promise.resolve(t)):b(t)}var ob={exact:hg,subset:pg},fg={exact:ib,subset:sb,ignored:()=>!0};function Xp(t,e,r){return ob[r.paths](t.root,e.root,r.matrixParams)&&fg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function ib(t,e){return st(t,e)}function hg(t,e,r){if(!vn(t.segments,e.segments)||!ms(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!hg(t.children[n],e.children[n],r))return!1;return!0}function sb(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>lg(t[r],e[r]))}function pg(t,e,r){return gg(t,e,e.segments,r)}function gg(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!vn(o,r)||e.hasChildren()||!ms(o,r,n))}else if(t.segments.length===r.length){if(!vn(t.segments,r)||!ms(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!pg(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!vn(t.segments,o)||!ms(t.segments,o,n)||!t.children[R]?!1:gg(t.children[R],e,i,n)}}function ms(t,e,r){return e.every((n,o)=>fg[r](t[o].parameters,n.parameters))}var zt=class{constructor(e=new V([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=sr(this.queryParams),this._queryParamMap}toString(){return ub.serialize(this)}},V=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vs(this)}},mn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=sr(this.parameters),this._parameterMap}toString(){return vg(this)}};function ab(t,e){return vn(t,e)&&t.every((r,n)=>st(r.parameters,e[n].parameters))}function vn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function cb(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===R&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==R&&(r=r.concat(e(o,n)))}),r}var no=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>new ar,providedIn:"root"});let t=e;return t})(),ar=class{parse(e){let r=new zu(e);return new zt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Ur(e.root,!0)}`,n=fb(e.queryParams),o=typeof e.fragment=="string"?`#${lb(e.fragment)}`:"";return`${r}${n}${o}`}},ub=new ar;function vs(t){return t.segments.map(e=>vg(e)).join("/")}function Ur(t,e){if(!t.hasChildren())return vs(t);if(e){let r=t.children[R]?Ur(t.children[R],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==R&&n.push(`${o}:${Ur(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=cb(t,(n,o)=>o===R?[Ur(t.children[R],!1)]:[`${o}:${Ur(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[R]!=null?`${vs(t)}/${r[0]}`:`${vs(t)}/(${r.join("//")})`}}function mg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ps(t){return mg(t).replace(/%3B/gi,";")}function lb(t){return encodeURI(t)}function Hu(t){return mg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ys(t){return decodeURIComponent(t)}function eg(t){return ys(t.replace(/\+/g,"%20"))}function vg(t){return`${Hu(t.path)}${db(t.parameters)}`}function db(t){return Object.entries(t).map(([e,r])=>`;${Hu(e)}=${Hu(r)}`).join("")}function fb(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${ps(r)}=${ps(o)}`).join("&"):`${ps(r)}=${ps(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var hb=/^[^\/()?;#]+/;function Lu(t){let e=t.match(hb);return e?e[0]:""}var pb=/^[^\/()?;=#]+/;function gb(t){let e=t.match(pb);return e?e[0]:""}var mb=/^[^=?&#]+/;function vb(t){let e=t.match(mb);return e?e[0]:""}var yb=/^[^&#]+/;function Db(t){let e=t.match(yb);return e?e[0]:""}var zu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[R]=new V(e,r)),n}parseSegment(){let e=Lu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(e),new mn(ys(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=gb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Lu(this.remaining);o&&(n=o,this.capture(n))}e[ys(r)]=ys(n)}parseQueryParam(e){let r=vb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=Db(this.remaining);s&&(n=s,this.capture(n))}let o=eg(r),i=eg(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Lu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new y(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=R);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[R]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new y(4011,!1)}};function yg(t){return t.segments.length>0?new V([],{[R]:t}):t}function Dg(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Dg(o);if(n===R&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new V(t.segments,e);return wb(r)}function wb(t){if(t.numberOfChildren===1&&t.children[R]){let e=t.children[R];return new V(t.segments.concat(e.segments),e.children)}return t}function Wr(t){return t instanceof zt}function Eb(t,e,r=null,n=null){let o=wg(t);return Eg(o,e,r,n)}function wg(t){let e;function r(i){let s={};for(let c of i.children){let u=r(c);s[c.outlet]=u}let a=new V(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=yg(n);return e??o}function Eg(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return ju(o,o,o,r,n);let i=Ib(e);if(i.toRoot())return ju(o,o,new V([],{}),r,n);let s=Cb(i,o,t),a=s.processChildren?zr(s.segmentGroup,s.index,i.commands):Cg(s.segmentGroup,s.index,i.commands);return ju(o,s.segmentGroup,a,r,n)}function Ds(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Zr(t){return typeof t=="object"&&t!=null&&t.outlets}function ju(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Ig(t,e,r);let a=yg(Dg(s));return new zt(a,i,o)}function Ig(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Ig(i,e,r)}),new V(t.segments,n)}var ws=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ds(n[0]))throw new y(4003,!1);let o=n.find(Zr);if(o&&o!==dg(n))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ib(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ws(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ws(r,e,n)}var rr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function Cb(t,e,r){if(t.isAbsolute)return new rr(e,!0,0);if(!r)return new rr(e,!1,NaN);if(r.parent===null)return new rr(r,!0,0);let n=Ds(t.commands[0])?0:1,o=r.segments.length-1+n;return bb(r,o,t.numberOfDoubleDots)}function bb(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new y(4005,!1);o=n.segments.length}return new rr(n,!1,o-i)}function Mb(t){return Zr(t[0])?t[0].outlets:{[R]:t}}function Cg(t,e,r){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return zr(t,e,r);let n=Sb(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==R)&&t.children[R]&&t.numberOfChildren===1&&t.children[R].segments.length===0){let i=zr(t.children[R],e,r);return new V(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Cg(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new V(t.segments,o)}}function Sb(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(Zr(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ng(c,u,s))return i;n+=2}else{if(!ng(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Gu(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Gu(new V([],{}),0,n))}),e}function tg(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function ng(t,e,r){return t==r.path&&st(e,r.parameters)}var Gr="imperative",ie=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(ie||{}),Ve=class{constructor(e,r){this.id=e,this.url=r}},cr=class extends Ve{constructor(e,r,n="imperative",o=null){super(e,r),this.type=ie.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},We=class extends Ve{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},xe=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(xe||{}),Es=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Es||{}),It=class extends Ve{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Gt=class extends Ve{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=ie.NavigationSkipped}},Yr=class extends Ve{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Is=class extends Ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qu=class extends Ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wu=class extends Ve{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Zu=class extends Ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yu=class extends Ve{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qu=class{constructor(e){this.route=e,this.type=ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ku=class{constructor(e){this.route=e,this.type=ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ju=class{constructor(e){this.snapshot=e,this.type=ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xu=class{constructor(e){this.snapshot=e,this.type=ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},el=class{constructor(e){this.snapshot=e,this.type=ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tl=class{constructor(e){this.snapshot=e,this.type=ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cs=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Qr=class{},ur=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var nl=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ro(this.injector),this.attachRef=null}},ro=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new nl(this.parentInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(D(ue))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=rl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=rl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=ol(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return ol(e,this._root).map(r=>r.value)}};function rl(t,e){if(t===e.value)return e;for(let r of e.children){let n=rl(t,r);if(n)return n}return null}function ol(t,e){if(t===e.value)return[e];for(let r of e.children){let n=ol(t,r);if(n.length)return n.unshift(e),n}return[]}var Te=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function nr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ms=class extends bs{constructor(e,r){super(e),this.snapshot=r,hl(this,e)}toString(){return this.snapshot.toString()}};function bg(t){let e=xb(t),r=new se([new mn("",{})]),n=new se({}),o=new se({}),i=new se({}),s=new se(""),a=new yn(r,n,i,s,o,R,t,e.root);return a.snapshot=e.root,new Ms(new Te(a,[]),e)}function xb(t){let e={},r={},n={},o="",i=new or([],e,n,o,r,R,t,null,{});return new Ts("",new Te(i,[]))}var yn=class{constructor(e,r,n,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(_(u=>u[to]))??b(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(_(e=>sr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(_(e=>sr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ss(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&Sg(o)&&(n.resolve[to]=o.title),n}var or=class{get title(){return this.data?.[to]}constructor(e,r,n,o,i,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=sr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=sr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Ts=class extends bs{constructor(e,r){super(r),this.url=e,hl(this,r)}toString(){return Mg(this._root)}};function hl(t,e){e.value._routerState=t,e.children.forEach(r=>hl(t,r))}function Mg(t){let e=t.children.length>0?` { ${t.children.map(Mg).join(", ")} } `:"";return`${t.value}${e}`}function Vu(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,st(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),st(e.params,r.params)||t.paramsSubject.next(r.params),rb(e.url,r.url)||t.urlSubject.next(r.url),st(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function il(t,e){let r=st(t.params,e.params)&&ab(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||il(t.parent,e.parent))}function Sg(t){return typeof t.title=="string"||t.title===null}var Nb=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new ce,this.deactivateEvents=new ce,this.attachEvents=new ce,this.detachEvents=new ce,this.parentContexts=p(ro),this.location=p(jt),this.changeDetector=p(pn),this.inputBinder=p(Rs,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new sl(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=fn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Yn]});let t=e;return t})(),sl=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===yn?this.route:e===ro?this.childContexts:this.parent.get(e,r)}},Rs=new E(""),rg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=gr([o.queryParams,o.params,o.data]).pipe(ve(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?b(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=hp(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function _b(t,e,r){let n=Kr(t,e._root,r?r._root:void 0);return new Ms(n,e)}function Kr(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=Ab(t,e,r);return new Te(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Kr(t,a)),s}}let n=Rb(e.value),o=e.children.map(i=>Kr(t,i));return new Te(n,o)}}function Ab(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Kr(t,n,o);return Kr(t,n)})}function Rb(t){return new yn(new se(t.url),new se(t.params),new se(t.queryParams),new se(t.fragment),new se(t.data),t.outlet,t.component,t)}var Jr=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Tg="ngNavigationCancelingError";function xs(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Wr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=xg(!1,xe.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function xg(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Tg]=!0,r.cancellationCode=e,r}function Ob(t){return Ng(t)&&Wr(t.url)}function Ng(t){return!!t&&t[Tg]}var Pb=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=af({type:e,selectors:[["ng-component"]],standalone:!0,features:[ep],decls:1,vars:0,template:function(o,i){o&1&&eu(0,"router-outlet")},dependencies:[Nb],encapsulation:2});let t=e;return t})();function kb(t,e){return t.providers&&!t._injector&&(t._injector=Ui(t.providers,e,`Route: ${t.path}`)),t._injector??e}function pl(t){let e=t.children&&t.children.map(pl),r=e?K(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==R&&(r.component=Pb),r}function qe(t){return t.outlet||R}function Fb(t,e){let r=t.filter(n=>qe(n)===e);return r.push(...t.filter(n=>qe(n)!==e)),r}function oo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Lb=(t,e,r,n)=>_(o=>(new al(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),al=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Vu(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=nr(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=nr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=nr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=nr(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new tl(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Xu(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(Vu(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Vu(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=oo(o.snapshot);s.attachRef=null,s.route=o,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Ns=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ir=class{constructor(e,r){this.component=e,this.route=r}};function jb(t,e,r){let n=t._root,o=e?e._root:null;return Br(n,o,r,[n.value])}function Vb(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function dr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Wd(t)?t:e.get(t):n}function Br(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=nr(e);return t.children.forEach(s=>{$b(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>qr(a,r.getContext(s),o)),o}function $b(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=Ub(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Ns(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Br(t,e,a?a.children:null,n,o):Br(t,e,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ir(a.outlet.component,s))}else s&&qr(e,a,o),o.canActivateChecks.push(new Ns(n)),i.component?Br(t,null,a?a.children:null,n,o):Br(t,null,r,n,o);return o}function Ub(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!vn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!vn(t.url,e.url)||!st(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!il(t,e)||!st(t.queryParams,e.queryParams);case"paramsChange":default:return!il(t,e)}}function qr(t,e,r){let n=nr(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?qr(s,e.children.getContext(i),r):qr(s,null,r):qr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ir(e.outlet.component,o)):r.canDeactivateChecks.push(new ir(null,o)):r.canDeactivateChecks.push(new ir(null,o))}function io(t){return typeof t=="function"}function Bb(t){return typeof t=="boolean"}function Hb(t){return t&&io(t.canLoad)}function zb(t){return t&&io(t.canActivate)}function Gb(t){return t&&io(t.canActivateChild)}function qb(t){return t&&io(t.canDeactivate)}function Wb(t){return t&&io(t.canMatch)}function _g(t){return t instanceof ct||t?.name==="EmptyError"}var gs=Symbol("INITIAL_VALUE");function lr(){return ve(t=>gr(t.map(e=>e.pipe(Re(1),ia(gs)))).pipe(_(e=>{for(let r of e)if(r!==!0){if(r===gs)return gs;if(r===!1||Zb(r))return r}return!0}),me(e=>e!==gs),Re(1)))}function Zb(t){return Wr(t)||t instanceof Jr}function Yb(t,e){return Y(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?b(K(m({},r),{guardsResult:!0})):Qb(s,n,o,t).pipe(Y(a=>a&&Bb(a)?Kb(n,i,t,e):b(a)),_(a=>K(m({},r),{guardsResult:a})))})}function Qb(t,e,r,n){return q(t).pipe(Y(o=>nM(o.component,o.route,r,e,n)),Ke(o=>o!==!0,!0))}function Kb(t,e,r,n){return q(e).pipe(Qe(o=>Mt(Xb(o.route.parent,n),Jb(o.route,n),tM(t,o.path,r),eM(t,o.route,r))),Ke(o=>o!==!0,!0))}function Jb(t,e){return t!==null&&e&&e(new el(t)),b(!0)}function Xb(t,e){return t!==null&&e&&e(new Ju(t)),b(!0)}function eM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return b(!0);let o=n.map(i=>Ro(()=>{let s=oo(e)??r,a=dr(i,s),c=zb(a)?a.canActivate(e,t):Me(s,()=>a(e,t));return qt(c).pipe(Ke())}));return b(o).pipe(lr())}function tM(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>Vb(s)).filter(s=>s!==null).map(s=>Ro(()=>{let a=s.guards.map(c=>{let u=oo(s.node)??r,l=dr(c,u),d=Gb(l)?l.canActivateChild(n,t):Me(u,()=>l(n,t));return qt(d).pipe(Ke())});return b(a).pipe(lr())}));return b(i).pipe(lr())}function nM(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(a=>{let c=oo(e)??o,u=dr(a,c),l=qb(u)?u.canDeactivate(t,e,r,n):Me(c,()=>u(t,e,r,n));return qt(l).pipe(Ke())});return b(s).pipe(lr())}function rM(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let a=dr(s,t),c=Hb(a)?a.canLoad(e,r):Me(t,()=>a(e,r));return qt(c)});return b(i).pipe(lr(),Ag(n))}function Ag(t){return Zs(re(e=>{if(typeof e!="boolean")throw xs(t,e)}),_(e=>e===!0))}function oM(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let a=dr(s,t),c=Wb(a)?a.canMatch(e,r):Me(t,()=>a(e,r));return qt(c)});return b(i).pipe(lr(),Ag(n))}var Xr=class{constructor(e){this.segmentGroup=e||null}},eo=class extends Error{constructor(e){super(),this.urlTree=e}};function tr(t){return xn(new Xr(t))}function iM(t){return xn(new y(4e3,!1))}function sM(t){return xn(xg(!1,xe.GuardRejected))}var cl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return b(n);if(o.numberOfChildren>1||!o.children[R])return iM(`${e.redirectTo}`);o=o.children[R]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:M}=o,v=Me(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:M}));if(v instanceof zt)throw new eo(v);r=v}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new eo(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new zt(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,o)}),new V(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new y(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},ul={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aM(t,e,r,n,o){let i=gl(t,e,r);return i.matched?(n=kb(e,n),oM(n,e,r,o).pipe(_(s=>s===!0?i:m({},ul)))):b(i)}function gl(t,e,r){if(e.path==="**")return cM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},ul):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||nb)(r,t,e);if(!o)return m({},ul);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function cM(t){return{matched:!0,parameters:t.length>0?dg(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function og(t,e,r,n){return r.length>0&&dM(t,r,n)?{segmentGroup:new V(e,lM(n,new V(r,t.children))),slicedSegments:[]}:r.length===0&&fM(t,r,n)?{segmentGroup:new V(t.segments,uM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new V(t.segments,t.children),slicedSegments:r}}function uM(t,e,r,n){let o={};for(let i of r)if(Os(t,e,i)&&!n[qe(i)]){let s=new V([],{});o[qe(i)]=s}return m(m({},n),o)}function lM(t,e){let r={};r[R]=e;for(let n of t)if(n.path===""&&qe(n)!==R){let o=new V([],{});r[qe(n)]=o}return r}function dM(t,e,r){return r.some(n=>Os(t,e,n)&&qe(n)!==R)}function fM(t,e,r){return r.some(n=>Os(t,e,n))}function Os(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function hM(t,e,r,n){return qe(t)!==n&&(n===R||!Os(e,r,t))?!1:gl(e,t,r).matched}function pM(t,e,r){return e.length===0&&!t.children[r]}var ll=class{};function gM(t,e,r,n,o,i,s="emptyOnly"){return new dl(t,e,r,n,o,s,i).recognize()}var mM=31,dl=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new cl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new y(4002,`'${e.segmentGroup}'`)}recognize(){let e=og(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(_(({children:r,rootSnapshot:n})=>{let o=new Te(n,r),i=new Ts("",o),s=Eb(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new or([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),R,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,R,r).pipe(_(n=>({children:n,rootSnapshot:r})),Ae(n=>{if(n instanceof eo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Xr?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(_(s=>s instanceof Te?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return q(i).pipe(Qe(s=>{let a=n.children[s],c=Fb(r,s);return this.processSegmentGroup(e,c,a,s,o)}),oa((s,a)=>(s.push(...a),s)),St(null),ra(),Y(s=>{if(s===null)return tr(n);let a=Rg(s);return vM(a),b(a)}))}processSegment(e,r,n,o,i,s,a){return q(r).pipe(Qe(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,o,i,s,a).pipe(Ae(u=>{if(u instanceof Xr)return b(null);throw u}))),Ke(c=>!!c),Ae(c=>{if(_g(c))return pM(n,o,i)?b(new ll):tr(n);throw c}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,c){return hM(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,c):tr(o):tr(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=gl(r,o,i);if(!c)return tr(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>mM&&(this.allowRedirects=!1));let f=new or(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,ig(o),qe(o),o.component??o._loadedComponent??null,o,sg(o)),g=Ss(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let M=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(o,M).pipe(Y(v=>this.processSegment(e,n,r,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=aM(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new or(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,ig(n),qe(n),n.component??n._loadedComponent??null,n,sg(n)),M=Ss(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(M.params),g.data=Object.freeze(M.data);let{segmentGroup:v,slicedSegments:I}=og(r,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(_(G=>new Te(g,G)));if(u.length===0&&I.length===0)return b(new Te(g,[]));let X=qe(n)===i;return this.processSegment(l,u,v,I,X?R:i,!0,g).pipe(_(G=>new Te(g,G instanceof Te?[G]:[])))}))):tr(r)))}getChildConfig(e,r,n){return r.children?b({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?b({routes:r._loadedRoutes,injector:r._loadedInjector}):rM(e,r,n,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(e,r).pipe(re(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):sM(r))):b({routes:[],injector:e})}};function vM(t){t.sort((e,r)=>e.value.outlet===R?-1:r.value.outlet===R?1:e.value.outlet.localeCompare(r.value.outlet))}function yM(t){let e=t.value.routeConfig;return e&&e.path===""}function Rg(t){let e=[],r=new Set;for(let n of t){if(!yM(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Rg(n.children);e.push(new Te(n.value,o))}return e.filter(n=>!r.has(n))}function ig(t){return t.data||{}}function sg(t){return t.resolve||{}}function DM(t,e,r,n,o,i){return Y(s=>gM(t,e,r,n,s.extractedUrl,o,i).pipe(_(({state:a,tree:c})=>K(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function wM(t,e){return Y(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return b(r);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Og(c))s.add(u);let a=0;return q(s).pipe(Qe(c=>i.has(c)?EM(c,n,t,e):(c.data=Ss(c,c.parent,t).resolve,b(void 0))),re(()=>a++),_n(1),Y(c=>a===s.size?b(r):ge))})}function Og(t){let e=t.children.map(r=>Og(r)).flat();return[t,...e]}function EM(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Sg(o)&&(i[to]=o.title),IM(i,t,e,n).pipe(_(s=>(t._resolvedData=s,t.data=Ss(t,t.parent,r).resolve,null)))}function IM(t,e,r,n){let o=Bu(t);if(o.length===0)return b({});let i={};return q(o).pipe(Y(s=>CM(t[s],e,r,n).pipe(Ke(),re(a=>{if(a instanceof Jr)throw xs(new ar,a);i[s]=a}))),_n(1),mr(i),Ae(s=>_g(s)?ge:xn(s)))}function CM(t,e,r,n){let o=oo(e)??n,i=dr(t,o),s=i.resolve?i.resolve(e,r):Me(o,()=>i(e,r));return qt(s)}function $u(t){return ve(e=>{let r=t(e);return r?q(r).pipe(_(()=>e)):b(e)})}var Pg=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===R);return o}getResolvedTitleForRoute(n){return n.data[to]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(bM),providedIn:"root"});let t=e;return t})(),bM=(()=>{let e=class e extends Pg{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(D(Jp))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),so=new E("",{providedIn:"root",factory:()=>({})}),_s=new E(""),ml=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Wi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=qt(n.loadComponent()).pipe(_(kg),re(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Tt(()=>{this.componentLoaders.delete(n)})),i=new bt(o,()=>new ee).pipe(Mn());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return b({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=MM(o,this.compiler,n,this.onLoadEndListener).pipe(Tt(()=>{this.childrenLoaders.delete(o)})),a=new bt(s,()=>new ee).pipe(Mn());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function MM(t,e,r,n){return qt(t.loadChildren()).pipe(_(kg),Y(o=>o instanceof br||Array.isArray(o)?b(o):q(e.compileModuleAsync(o))),_(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(_s,[],{optional:!0,self:!0}).flat()),{routes:s.map(pl),injector:i}}))}function SM(t){return t&&typeof t=="object"&&"default"in t}function kg(t){return SM(t)?t.default:t}var vl=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(TM),providedIn:"root"});let t=e;return t})(),TM=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fg=new E(""),Lg=new E("");function xM(t,e,r){let n=t.get(Lg),o=t.get(he);return t.get(U).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),NM(t))),{onViewTransitionCreated:c}=n;return c&&Me(t,()=>c({transition:a,from:e,to:r})),s})}function NM(t){return new Promise(e=>{$i(()=>setTimeout(e),{injector:t,phase:Nt.Read})})}var _M=new E(""),yl=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ee,this.transitionAbortSubject=new ee,this.configLoader=p(ml),this.environmentInjector=p(ue),this.urlSerializer=p(no),this.rootContexts=p(ro),this.location=p(er),this.inputBindingEnabled=p(Rs,{optional:!0})!==null,this.titleStrategy=p(Pg),this.options=p(so,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(vl),this.createViewTransition=p(Fg,{optional:!0}),this.navigationErrorHandler=p(_M,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Qu(i)),o=i=>this.events.next(new Ku(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(K(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new se({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Gr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(s=>s.id!==0),_(s=>K(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ve(s=>{let a=!1,c=!1;return b(s).pipe(ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",xe.SupersededByNewNavigation),ge;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?K(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Gt(u.id,this.urlSerializer.serialize(u.rawUrl),h,Es.IgnoredSameUrlNavigation)),u.resolve(!1),ge}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return b(u).pipe(ve(h=>{let f=this.transitions?.getValue();return this.events.next(new cr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ge:Promise.resolve(h)}),DM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),re(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=K(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Is(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:M,extras:v}=u,I=new cr(h,this.urlSerializer.serialize(f),g,M);this.events.next(I);let X=bg(this.rootComponentType).snapshot;return this.currentTransition=s=K(m({},u),{targetSnapshot:X,urlAfterRedirects:f,extras:K(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,b(s)}else{let h="";return this.events.next(new Gt(u.id,this.urlSerializer.serialize(u.extractedUrl),h,Es.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ge}}),re(u=>{let l=new qu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),_(u=>(this.currentTransition=s=K(m({},u),{guards:jb(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),Yb(this.environmentInjector,u=>this.events.next(u)),re(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw xs(this.urlSerializer,u.guardsResult);let l=new Wu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),me(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",xe.GuardRejected),!1)),$u(u=>{if(u.guards.canActivateChecks.length)return b(u).pipe(re(l=>{let d=new Zu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ve(l=>{let d=!1;return b(l).pipe(wM(this.paramsInheritanceStrategy,this.environmentInjector),re({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",xe.NoDataFromResolver)}}))}),re(l=>{let d=new Yu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),$u(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(re(f=>{d.component=f}),_(()=>{})));for(let f of d.children)h.push(...l(f));return h};return gr(l(u.targetSnapshot.root)).pipe(St(null),Re(1))}),$u(()=>this.afterPreactivation()),ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?q(d).pipe(_(()=>s)):b(s)}),_(u=>{let l=_b(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=K(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),re(()=>{this.events.next(new Qr)}),Lb(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Re(1),re({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new We(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),ko(this.transitionAbortSubject.pipe(re(u=>{throw u}))),Tt(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",xe.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ae(u=>{if(c=!0,Ng(u))this.events.next(new It(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),Ob(u)?this.events.next(new ur(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Yr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Me(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Jr){let{message:h,cancellationCode:f}=xs(this.urlSerializer,d);this.events.next(new It(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new ur(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ge}))}))}cancelNavigationTransition(n,o,i){let s=new It(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function AM(t){return t!==Gr}var RM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(OM),providedIn:"root"});let t=e;return t})(),fl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},OM=(()=>{let e=class e extends fl{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=xc(e)))(i||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jg=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:()=>p(PM),providedIn:"root"});let t=e;return t})(),PM=(()=>{let e=class e extends jg{constructor(){super(...arguments),this.location=p(er),this.urlSerializer=p(no),this.options=p(so,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(vl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new zt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=bg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof cr)this.stateMemento=this.createStateMemento();else if(n instanceof Gt)this.rawUrlTree=o.initialUrl;else if(n instanceof Is){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof Qr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof It&&(n.code===xe.GuardRejected||n.code===xe.NoDataFromResolver)?this.restoreHistory(o):n instanceof Yr?this.restoreHistory(o,!0):n instanceof We&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=xc(e)))(i||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Hr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Hr||{});function Vg(t,e){t.events.pipe(me(r=>r instanceof We||r instanceof It||r instanceof Yr||r instanceof Gt),_(r=>r instanceof We||r instanceof Gt?Hr.COMPLETE:(r instanceof It?r.code===xe.Redirect||r.code===xe.SupersededByNewNavigation:!1)?Hr.REDIRECTING:Hr.FAILED),me(r=>r!==Hr.REDIRECTING),Re(1)).subscribe(()=>{e()})}function kM(t){throw t}var FM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ct=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Bi),this.stateManager=p(jg),this.options=p(so,{optional:!0})||{},this.pendingTasks=p(mt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(yl),this.urlSerializer=p(no),this.location=p(er),this.urlHandlingStrategy=p(vl),this._events=new ee,this.errorHandler=this.options.errorHandler||kM,this.navigated=!1,this.routeReuseStrategy=p(RM),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(_s,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Rs,{optional:!0}),this.eventsSubscription=new Q,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof It&&o.code!==xe.Redirect&&o.code!==xe.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof We)this.navigated=!0;else if(o instanceof ur){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||AM(i.source)},a);this.scheduleNavigation(c,Gr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}VM(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Gr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(pl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=i?i.snapshot:this.routerState.snapshot.root;h=wg(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return Eg(h,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Wr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Gr,null,o)}navigate(n,o={skipLocationChange:!1}){return jM(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=m({},FM):o===!1?i=m({},LM):i=o,Wr(n))return Xp(this.currentUrlTree,n,i);let s=this.parseUrl(n);return Xp(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Vg(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function jM(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,c){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new ee,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof We&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,o,i,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:uh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(Z(Ct),Z(yn),Nc("tabindex"),Z(_r),Z(gt),Z(wt))},e.\u0275dir=fn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&tu("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&Xc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Rr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Rr],replaceUrl:[2,"replaceUrl","replaceUrl",Rr],routerLink:"routerLink"},standalone:!0,features:[Kc,Yn]});let t=e;return t})(),wP=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,o,i,s,a){this.router=n,this.element=o,this.renderer=i,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ce,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof We&&this.update()})}ngAfterContentInit(){b(this.links.changes,b(null)).pipe(Ye()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=q(n).pipe(Ye()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){let o=Array.isArray(n)?n:n.split(" ");this.classes=o.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(o=>{n?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let o=$M(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?n.isActive(s,o):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(o){return new(o||e)(Z(Ct),Z(gt),Z(_r),Z(pn),Z(ag,8))},e.\u0275dir=fn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&Yh(s,ag,5),o&2){let a;Qh(a=Kh())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Yn]});let t=e;return t})();function $M(t){return!!t.paths}var As=class{};var UM=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(me(n=>n instanceof We),Qe(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Ui(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return q(i).pipe(Ye())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=b(null);let s=i.pipe(Y(a=>a===null?b(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return q([s,a]).pipe(Ye())}else return s})}};e.\u0275fac=function(o){return new(o||e)(D(Ct),D(Wi),D(ue),D(As),D(ml))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$g=new E(""),BM=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=p(ue),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof cr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof We?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Gt&&n.code===Es.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Cs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,o){this.zone.runOutsideAngular(()=>fr(this,null,function*(){yield new Promise(i=>{setTimeout(()=>{i()}),$i(()=>{i()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Cs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){Eh()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function HM(t){return t.routerState.root}function ao(t,e){return{\u0275kind:t,\u0275providers:e}}function zM(){let t=p(ke);return e=>{let r=t.get(Vt);if(e!==r.components[0])return;let n=t.get(Ct),o=t.get(Ug);t.get(Dl)===1&&n.initialNavigation(),t.get(Bg,null,O.Optional)?.setUpPreloading(),t.get($g,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Ug=new E("",{factory:()=>new ee}),Dl=new E("",{providedIn:"root",factory:()=>1});function GM(){return ao(2,[{provide:Dl,useValue:0},{provide:Gi,multi:!0,deps:[ke],useFactory:e=>{let r=e.get(Ip,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(Ct),i=e.get(Ug);Vg(o,()=>{n(!0)}),e.get(yl).afterPreactivation=()=>(n(!0),i.closed?b(void 0):i),o.initialNavigation()}))}}])}function qM(){return ao(3,[{provide:Gi,multi:!0,useFactory:()=>{let e=p(Ct);return()=>{e.setUpLocationChangeListener()}}},{provide:Dl,useValue:2}])}var Bg=new E("");function WM(t){return ao(0,[{provide:Bg,useExisting:UM},{provide:As,useExisting:t}])}function ZM(){return ao(8,[rg,{provide:Rs,useExisting:rg}])}function YM(t){let e=[{provide:Fg,useValue:xM},{provide:Lg,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return ao(9,e)}var cg=new E("ROUTER_FORROOT_GUARD"),QM=[er,{provide:no,useClass:ar},Ct,ro,{provide:yn,useFactory:HM,deps:[Ct]},ml,[]],EP=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[QM,[],{provide:_s,multi:!0,useValue:n},{provide:cg,useFactory:e0,deps:[[Ct,new Ii,new hc]]},{provide:so,useValue:o||{}},o?.useHash?JM():XM(),KM(),o?.preloadingStrategy?WM(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?t0(o):[],o?.bindToComponentInputs?ZM().\u0275providers:[],o?.enableViewTransitions?YM().\u0275providers:[],n0()]}}static forChild(n){return{ngModule:e,providers:[{provide:_s,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(D(cg,8))},e.\u0275mod=ft({type:e}),e.\u0275inj=dt({});let t=e;return t})();function KM(){return{provide:$g,useFactory:()=>{let t=p(_p),e=p(U),r=p(so),n=p(yl),o=p(no);return r.scrollOffset&&t.setOffset(r.scrollOffset),new BM(o,n,t,e,r)}}}function JM(){return{provide:wt,useClass:bp}}function XM(){return{provide:wt,useClass:wu}}function e0(t){return"guarded"}function t0(t){return[t.initialNavigation==="disabled"?qM().\u0275providers:[],t.initialNavigation==="enabledBlocking"?GM().\u0275providers:[]]}var ug=new E("");function n0(){return[{provide:ug,useFactory:zM},{provide:qi,multi:!0,useExisting:ug}]}var MP=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ae(n=>(console.error(n),b([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(Ae(o=>(console.error(o),b([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(o){return new(o||e)(D(Tu))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{m as a,K as b,ee as c,se as d,q as e,b as f,xn as g,_ as h,Mt as i,Ro as j,Em as k,ta as l,xm as m,Nm as n,me as o,Qe as p,Am as q,Re as r,Rm as s,Om as t,Fm as u,ve as v,ko as w,re as x,y,Gd as z,w as A,dt as B,E as C,D,p as E,af as F,ft as G,fn as H,mc as I,Ci as J,Yn as K,OR as L,PR as M,xc as N,ke as O,gt as P,ce as Q,it as R,By as S,kR as T,Z as U,un as V,_r as W,U as X,jt as Y,nE as Z,mE as _,Xc as $,SE as aa,TE as ba,Wh as ca,Zh as da,eu as ea,UE as fa,BE as ga,VR as ha,tu as ia,$R as ja,UR as ka,BR as la,eI as ma,Jh as na,HR as oa,zR as pa,GR as qa,qR as ra,WR as sa,ZR as ta,Jn as ua,Gi as va,Vt as wa,YR as xa,gn as ya,vO as za,yO as Aa,DO as Ba,wO as Ca,Np as Da,sC as Ea,Tu as Fa,wC as Ga,kO as Ha,tP as Ia,nP as Ja,yn as Ka,Nb as La,Ct as Ma,ag as Na,wP as Oa,EP as Pa,MP as Qa}; diff --git a/chunk-UYFSIOAA.js b/chunk-UYFSIOAA.js new file mode 100644 index 0000000..0e67ba5 --- /dev/null +++ b/chunk-UYFSIOAA.js @@ -0,0 +1 @@ +import{a as W}from"./chunk-OUM7I4SI.js";import{$ as p,B as h,Ca as C,Da as I,Ea as E,F as _,Fa as G,G as y,Ga as J,H as B,I as $,L as N,M as j,Na as K,Pa as Q,Q as R,Qa as L,S,Sa as F,T as n,Ta as w,U as f,V as P,Y as U,ba as s,c as M,da as r,ea as o,fa as x,ga as A,ha as V,ia as H,ja as D,ka as l,ma as m,na as u,oa as v,ra as z,sa as d,ta as b,ua as q,w as O}from"./chunk-UZOWJZPK.js";var X=(()=>{class t{confirmText;confirm=new R;onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=B({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(i,c){i&1&&D("click",function(){return c.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"}})}return t})();var Y=(()=>{class t{template;viewContainer;authService;destroy$=new M;constructor(e,i,c){this.template=e,this.viewContainer=i,this.authService=c,this.authService.isAuthenticated$.pipe(O(this.destroy$)).subscribe(g=>{g?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}static \u0275fac=function(i){return new(i||t)(f(P),f(U),f(W))};static \u0275dir=B({type:t,selectors:[["","bmLoggedinOnly",""]]})}return t})();var T=(()=>{class t{transform(e){return e?`${e.substring(0,3)}-${e.substring(3)}`:""}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=$({name:"isbn",type:t,pure:!0})}return t})();var pt=t=>["/admin/edit",t];function ct(t,a){if(t&1&&(r(0,"p",9),m(1),o()),t&2){let e=l().ngIf;n(),u(e.subtitle)}}function lt(t,a){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=a.$implicit;n(),u(e)}}function ft(t,a){if(t&1&&(r(0,"div")(1,"h2"),m(2,"Published"),o(),m(3),d(4,"date"),o()),t&2){let e=l().ngIf;n(3),v(" ",q(4,1,e.published,"longDate")," ")}}function dt(t,a){if(t&1&&x(0,"img",10),t&2){let e=l().ngIf;s("src",e.thumbnailUrl,S)}}function ut(t,a){if(t&1){let e=H();A(0),r(1,"button",11),D("confirm",function(){N(e);let c=l().ngIf,g=l();return j(g.removeBook(c.isbn))}),m(2," Remove book "),o(),r(3,"a",12),m(4," Edit book "),o(),V()}if(t&2){let e=l().ngIf;n(3),s("routerLink",z(1,pt,e.isbn))}}function vt(t,a){if(t&1&&(r(0,"div",1)(1,"h1"),m(2),o(),p(3,ct,2,1,"p",2),r(4,"div",3)(5,"div")(6,"h2"),m(7,"Authors"),o(),r(8,"ul"),p(9,lt,2,1,"li",4),o()(),r(10,"div")(11,"h2"),m(12,"ISBN"),o(),m(13),d(14,"isbn"),o(),p(15,ft,5,4,"div",5),o(),r(16,"h2"),m(17,"Description"),o(),r(18,"p"),m(19),o(),p(20,dt,1,1,"img",6),r(21,"a",7),m(22,"Back to list"),o(),p(23,ut,5,3,"ng-container",8),o()),t&2){let e=a.ngIf;n(2),u(e.title),n(),s("ngIf",e.subtitle),n(6),s("ngForOf",e.authors),n(4),v(" ",b(14,7,e.isbn)," "),n(2),s("ngIf",e.published),n(4),u(e.description),n(),s("ngIf",e.thumbnailUrl)}}var et=(()=>{class t{service;route;router;book$;constructor(e,i,c){this.service=e,this.route=i,this.router=c;let g=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(g)}removeBook(e){this.service.remove(e).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(i){return new(i||t)(f(w),f(K),f(Q))};static \u0275cmp=_({type:t,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(i,c){i&1&&(p(0,vt,24,9,"div",0),d(1,"async")),i&2&&s("ngIf",b(1,1,c.book$))},dependencies:[C,I,L,X,Y,E,G,T]})}return t})();function bt(t,a){if(t&1&&x(0,"img",6),t&2){let e=l(2);s("src",e.book.thumbnailUrl,S)}}function kt(t,a){if(t&1&&(r(0,"p",7),m(1),o()),t&2){let e=l(2);n(),v(" ",e.book.subtitle," ")}}function gt(t,a){if(t&1&&(r(0,"li"),m(1),o()),t&2){let e=a.$implicit;n(),v(" ",e," ")}}function _t(t,a){if(t&1&&(r(0,"a",1),p(1,bt,1,1,"img",2),r(2,"h2"),m(3),o(),p(4,kt,2,1,"p",3),r(5,"ul",4),p(6,gt,2,1,"li",5),o(),r(7,"div"),m(8),d(9,"isbn"),o()()),t&2){let e=l();s("routerLink",e.book.isbn),n(),s("ngIf",e.book.thumbnailUrl),n(2),u(e.book.title),n(),s("ngIf",e.book.subtitle),n(2),s("ngForOf",e.book.authors),n(2),v("ISBN ",b(9,6,e.book.isbn),"")}}var it=(()=>{class t{book;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=_({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,c){i&1&&p(0,_t,10,8,"a",0),i&2&&s("ngIf",c.book)},dependencies:[C,I,L,T]})}return t})();function Ct(t,a){if(t&1&&(r(0,"li"),x(1,"bm-book-list-item",4),o()),t&2){let e=a.$implicit;n(),s("book",e)}}function It(t,a){t&1&&(r(0,"li"),m(1," No books available. "),o())}function ht(t,a){if(t&1&&(r(0,"ul",1),p(1,Ct,2,1,"li",2)(2,It,2,0,"li",3),o()),t&2){let e=a.ngIf;n(),s("ngForOf",e),n(),s("ngIf",!e.length)}}var ot=(()=>{class t{service;books$;constructor(e){this.service=e,this.books$=this.service.getAll()}static \u0275fac=function(i){return new(i||t)(f(w))};static \u0275cmp=_({type:t,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,c){i&1&&(r(0,"h1"),m(1,"Books"),o(),p(2,ht,3,2,"ul",0),d(3,"async")),i&2&&(n(2),s("ngIf",b(3,1,c.books$)))},dependencies:[C,I,it,E]})}return t})();var yt=[{path:"",component:ot},{path:":isbn",component:et}],nt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=y({type:t});static \u0275inj=h({imports:[F.forChild(yt),F]})}return t})();var Yt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=y({type:t});static \u0275inj=h({imports:[J,nt]})}return t})();export{Yt as BooksModule}; diff --git a/chunk-UZOWJZPK.js b/chunk-UZOWJZPK.js new file mode 100644 index 0000000..f76eafe --- /dev/null +++ b/chunk-UZOWJZPK.js @@ -0,0 +1,8 @@ +var dm=Object.defineProperty,fm=Object.defineProperties;var hm=Object.getOwnPropertyDescriptors;var xl=Object.getOwnPropertySymbols;var pm=Object.prototype.hasOwnProperty,gm=Object.prototype.propertyIsEnumerable;var Nl=(t,e,r)=>e in t?dm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})pm.call(e,r)&&Nl(t,r,e[r]);if(xl)for(var r of xl(e))gm.call(e,r)&&Nl(t,r,e[r]);return t},Q=(t,e)=>fm(t,hm(e));var po=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},s=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(t,e)).next())});function Al(t,e){return Object.is(t,e)}var re=null,go=!1,mo=1,Tt=Symbol("SIGNAL");function k(t){let e=re;return re=t,e}function _l(){return re}var vr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function qs(t){if(go)throw new Error("");if(re===null)return;re.consumerOnSignalRead(t);let e=re.nextProducerIndex++;if(wo(re),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Zs(t){wo(t);for(let e=0;e0}function wo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Fl(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ll(t){return t.producerNode!==void 0}function jl(t){let e=Object.create(ym);e.computation=t;let r=()=>{if(Rl(e),qs(e),e.value===vo)throw e.error;return e.value};return r[Tt]=e,r}var zs=Symbol("UNSET"),Gs=Symbol("COMPUTING"),vo=Symbol("ERRORED"),ym=Q(m({},vr),{value:zs,dirty:!0,error:null,equal:Al,producerMustRecompute(t){return t.value===zs||t.value===Gs},producerRecomputeValue(t){if(t.value===Gs)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Gs;let r=yo(t),n;try{n=t.computation()}catch(o){n=vo,t.error=o}finally{Ws(t,r)}if(e!==zs&&e!==vo&&n!==vo&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function Dm(){throw new Error}var Vl=Dm;function $l(){Vl()}function Ul(t){Vl=t}var wm=null;function Bl(t){let e=Object.create(zl);e.value=t;let r=()=>(qs(e),e.value);return r[Tt]=e,r}function Qs(t,e){Pl()||$l(),t.equal(t.value,e)||(t.value=e,Em(t))}function Hl(t,e){Pl()||$l(),Qs(t,e(t.value))}var zl=Q(m({},vr),{equal:Al,value:void 0});function Em(t){t.version++,mm(),Ol(t),wm?.()}function C(t){return typeof t=="function"}function bn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Eo=bn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Qt(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var K=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(C(n))try{n()}catch(i){e=i instanceof Eo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Gl(i)}catch(s){e=e??[],s instanceof Eo?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Eo(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Gl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Qt(r,e)}remove(e){let{_finalizers:r}=this;r&&Qt(r,e),e instanceof t&&e._removeParent(this)}};K.EMPTY=(()=>{let t=new K;return t.closed=!0,t})();var Ks=K.EMPTY;function Io(t){return t instanceof K||t&&"closed"in t&&C(t.remove)&&C(t.add)&&C(t.unsubscribe)}function Gl(t){C(t)?t():t.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mn={setTimeout(t,e,...r){let{delegate:n}=Mn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Mn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Co(t){Mn.setTimeout(()=>{let{onUnhandledError:e}=Be;if(e)e(t);else throw t})}function ut(){}var ql=Js("C",void 0,void 0);function Wl(t){return Js("E",void 0,t)}function Zl(t){return Js("N",t,void 0)}function Js(t,e,r){return{kind:t,value:e,error:r}}var Kt=null;function Sn(t){if(Be.useDeprecatedSynchronousErrorHandling){let e=!Kt;if(e&&(Kt={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Kt;if(Kt=null,r)throw n}}else t()}function Yl(t){Be.useDeprecatedSynchronousErrorHandling&&Kt&&(Kt.errorThrown=!0,Kt.error=t)}var Jt=class extends K{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Io(e)&&e.add(this)):this.destination=bm}static create(e,r,n){return new Tn(e,r,n)}next(e){this.isStopped?ea(Zl(e),this):this._next(e)}error(e){this.isStopped?ea(Wl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ea(ql,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Im=Function.prototype.bind;function Xs(t,e){return Im.call(t,e)}var ta=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){bo(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){bo(n)}else bo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){bo(r)}}},Tn=class extends Jt{constructor(e,r,n){super();let o;if(C(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Be.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Xs(e.next,i),error:e.error&&Xs(e.error,i),complete:e.complete&&Xs(e.complete,i)}):o=e}this.destination=new ta(o)}};function bo(t){Be.useDeprecatedSynchronousErrorHandling?Yl(t):Co(t)}function Cm(t){throw t}function ea(t,e){let{onStoppedNotification:r}=Be;r&&Mn.setTimeout(()=>r(t,e))}var bm={closed:!0,next:ut,error:Cm,complete:ut};var xn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pe(t){return t}function na(...t){return ra(t)}function ra(t){return t.length===0?pe:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var T=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Sm(r)?r:new Tn(r,n,o);return Sn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Ql(n),new n((o,i)=>{let s=new Tn({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[xn](){return this}pipe(...r){return ra(r)(this)}toPromise(r){return r=Ql(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function Ql(t){var e;return(e=t??Be.Promise)!==null&&e!==void 0?e:Promise}function Mm(t){return t&&C(t.next)&&C(t.error)&&C(t.complete)}function Sm(t){return t&&t instanceof Jt||Mm(t)&&Io(t)}function oa(t){return C(t?.lift)}function x(t){return e=>{if(oa(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,e,r,n,o){return new ia(t,e,r,n,o)}var ia=class extends Jt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Nn(){return x((t,e)=>{let r=null;t._refCount++;let n=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var xt=class extends T{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,oa(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new K;let r=this.getSubject();e.add(this.source.subscribe(N(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=K.EMPTY)}return e}refCount(){return Nn()(this)}};var Kl=bn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class t extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Mo(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Kl}next(r){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Ks:(this.currentObservers=null,i.push(r),new K(()=>{this.currentObservers=null,Qt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new T;return r.source=this,r}}return t.create=(e,r)=>new Mo(e,r),t})(),Mo=class extends ee{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Ks}};var ae=class extends ee{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var sa={now(){return(sa.delegate||Date).now()},delegate:void 0};var So=class extends K{constructor(e,r){super()}schedule(e,r=0){return this}};var yr={setInterval(t,e,...r){let{delegate:n}=yr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=yr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var To=class extends So{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,r),this}requestAsyncId(e,r,n=0){return yr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&yr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,o;try{this.work(e)}catch(i){n=!0,o=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var An=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};An.now=sa.now;var xo=class extends An{constructor(e,r=An.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Dr=new xo(To),Jl=Dr;var ge=new T(t=>t.complete());function No(t){return t&&C(t.schedule)}function aa(t){return t[t.length-1]}function Ao(t){return C(aa(t))?t.pop():void 0}function Qe(t){return No(aa(t))?t.pop():void 0}function Xl(t,e){return typeof aa(t)=="number"?t.pop():e}function td(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function ed(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(t){return this instanceof Xt?(this.v=t,this):new Xt(t)}function nd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){n[f]&&(o[f]=function(M){return new Promise(function(v,I){i.push([f,M,v,I])>1||c(f,M)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(n[f](g))}catch(M){h(i[0][3],M)}}function u(f){f.value instanceof Xt?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function rd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ed=="function"?ed(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var _n=t=>t&&typeof t.length=="number"&&typeof t!="function";function _o(t){return C(t?.then)}function Ro(t){return C(t[xn])}function Oo(t){return Symbol.asyncIterator&&C(t?.[Symbol.asyncIterator])}function Po(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Tm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ko=Tm();function Fo(t){return C(t?.[ko])}function Lo(t){return nd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield Xt(r.read());if(o)return yield Xt(void 0);yield yield Xt(n)}}finally{r.releaseLock()}})}function jo(t){return C(t?.getReader)}function $(t){if(t instanceof T)return t;if(t!=null){if(Ro(t))return xm(t);if(_n(t))return Nm(t);if(_o(t))return Am(t);if(Oo(t))return od(t);if(Fo(t))return _m(t);if(jo(t))return Rm(t)}throw Po(t)}function xm(t){return new T(e=>{let r=t[xn]();if(C(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Nm(t){return new T(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Co)})}function _m(t){return new T(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function od(t){return new T(e=>{Om(t,e).catch(r=>e.error(r))})}function Rm(t){return od(Lo(t))}function Om(t,e){var r,n,o,i;return td(this,void 0,void 0,function*(){try{for(r=rd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function Ie(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Vo(t,e=0){return x((r,n)=>{r.subscribe(N(n,o=>Ie(n,t,()=>n.next(o),e),()=>Ie(n,t,()=>n.complete(),e),o=>Ie(n,t,()=>n.error(o),e)))})}function $o(t,e=0){return x((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function id(t,e){return $(t).pipe($o(e),Vo(e))}function sd(t,e){return $(t).pipe($o(e),Vo(e))}function ad(t,e){return new T(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function cd(t,e){return new T(r=>{let n;return Ie(r,e,()=>{n=t[ko](),Ie(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>C(n?.return)&&n.return()})}function Uo(t,e){if(!t)throw new Error("Iterable cannot be null");return new T(r=>{Ie(r,e,()=>{let n=t[Symbol.asyncIterator]();Ie(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function ud(t,e){return Uo(Lo(t),e)}function ld(t,e){if(t!=null){if(Ro(t))return id(t,e);if(_n(t))return ad(t,e);if(_o(t))return sd(t,e);if(Oo(t))return Uo(t,e);if(Fo(t))return cd(t,e);if(jo(t))return ud(t,e)}throw Po(t)}function q(t,e){return e?ld(t,e):$(t)}function b(...t){let e=Qe(t);return q(t,e)}function Rn(t,e){let r=C(t)?t:()=>t,n=o=>o.error(r());return new T(e?o=>e.schedule(n,0,o):n)}function ca(t){return!!t&&(t instanceof T||C(t.lift)&&C(t.subscribe))}var lt=bn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function dd(t){return t instanceof Date&&!isNaN(t)}function A(t,e){return x((r,n)=>{let o=0;r.subscribe(N(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:Pm}=Array;function km(t,e){return Pm(e)?t(...e):t(e)}function On(t){return A(e=>km(t,e))}var{isArray:Fm}=Array,{getPrototypeOf:Lm,prototype:jm,keys:Vm}=Object;function Bo(t){if(t.length===1){let e=t[0];if(Fm(e))return{args:e,keys:null};if($m(e)){let r=Vm(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function $m(t){return t&&typeof t=="object"&&Lm(t)===jm}function Ho(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function wr(...t){let e=Qe(t),r=Ao(t),{args:n,keys:o}=Bo(t);if(n.length===0)return q([],e);let i=new T(Um(n,e,o?s=>Ho(o,s):pe));return r?i.pipe(On(r)):i}function Um(t,e,r=pe){return n=>{fd(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let u=q(t[c],e),l=!1;u.subscribe(N(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function fd(t,e,r){t?Ie(r,t,e):e()}function hd(t,e,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=M=>u{i&&e.next(M),u++;let v=!1;$(r(M,l++)).subscribe(N(e,I=>{o?.(I),i?f(I):e.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&ug(I)):g(I)}h()}catch(I){e.error(I)}}))};return t.subscribe(N(e,f,()=>{d=!0,h()})),()=>{a?.()}}function Y(t,e,r=1/0){return C(e)?Y((n,o)=>A((i,s)=>e(n,i,o,s))($(t(n,o))),r):(typeof e=="number"&&(r=e),x((n,o)=>hd(n,o,t,r)))}function Ke(t=1/0){return Y(pe,t)}function pd(){return Ke(1)}function Nt(...t){return pd()(q(t,Qe(t)))}function zo(t){return new T(e=>{$(t()).subscribe(e)})}function Bm(...t){let e=Ao(t),{args:r,keys:n}=Bo(t),o=new T(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(n?Ho(n,a):a),i.complete())}))}});return e?o.pipe(On(e)):o}var Hm=["addListener","removeListener"],zm=["addEventListener","removeEventListener"],Gm=["on","off"];function ua(t,e,r,n){if(C(r)&&(n=r,r=void 0),n)return ua(t,e,r).pipe(On(n));let[o,i]=Zm(t)?zm.map(s=>a=>t[s](e,a,r)):qm(t)?Hm.map(gd(t,e)):Wm(t)?Gm.map(gd(t,e)):[];if(!o&&_n(t))return Y(s=>ua(s,e,r))($(t));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...c)=>s.next(1i(a)})}function gd(t,e){return r=>n=>t[r](e,n)}function qm(t){return C(t.addListener)&&C(t.removeListener)}function Wm(t){return C(t.on)&&C(t.off)}function Zm(t){return C(t.addEventListener)&&C(t.removeEventListener)}function md(t=0,e,r=Jl){let n=-1;return e!=null&&(No(e)?r=e:n=e),new T(o=>{let i=dd(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function Ym(...t){let e=Qe(t),r=Xl(t,1/0),n=t;return n.length?n.length===1?$(n[0]):Ke(r)(q(n,e)):ge}var Qm=new T(ut);function me(t,e){return x((r,n)=>{let o=0;r.subscribe(N(n,i=>t.call(e,i,o++)&&n.next(i)))})}function Oe(t){return x((e,r)=>{let n=null,o=!1,i;n=e.subscribe(N(r,void 0,void 0,s=>{i=$(t(s,Oe(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function vd(t,e,r,n,o){return(i,s)=>{let a=r,c=e,u=0;i.subscribe(N(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Je(t,e){return C(e)?Y(t,e,1):Y(t,1)}function yd(t){return new T(e=>t.subscribe(e))}var Km={connector:()=>new ee};function Go(t,e=Km){let{connector:r}=e;return x((n,o)=>{let i=r();$(t(yd(i))).subscribe(o),o.add(n.subscribe(i))})}function Jm(t,e=Dr){return x((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{i=u,s=e.now(),o||(o=e.schedule(c,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function At(t){return x((e,r)=>{let n=!1;e.subscribe(N(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function Pe(t){return t<=0?()=>ge:x((e,r)=>{let n=0;e.subscribe(N(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Dd(){return x((t,e)=>{t.subscribe(N(e,ut))})}function Er(t){return A(()=>t)}function la(t,e){return e?r=>Nt(e.pipe(Pe(1),Dd()),r.pipe(la(t))):Y((r,n)=>$(t(r,n)).pipe(Pe(1),Er(r)))}function Xm(t,e=Dr){let r=md(t,e);return la(()=>r)}function ev(t,e=pe){return t=t??tv,x((r,n)=>{let o,i=!0;r.subscribe(N(n,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,n.next(s))}))})}function tv(t,e){return t===e}function qo(t=nv){return x((e,r)=>{let n=!1;e.subscribe(N(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function nv(){return new lt}function _t(t){return x((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Xe(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((o,i)=>t(o,i,n)):pe,Pe(1),r?At(e):qo(()=>new lt))}function Pn(t){return t<=0?()=>ge:x((e,r)=>{let n=[];e.subscribe(N(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function da(t,e){let r=arguments.length>=2;return n=>n.pipe(t?me((o,i)=>t(o,i,n)):pe,Pn(1),r?At(e):qo(()=>new lt))}function wd(t,e){let r=C(t)?t:()=>t;return C(e)?Go(e,{connector:r}):n=>new xt(n,r)}function rv(t){return t?e=>Go(t)(e):e=>wd(new ee)(e)}function fa(t,e){return x(vd(t,e,arguments.length>=2,!0))}function ha(...t){let e=Qe(t);return x((r,n)=>{(e?Nt(t,r,e):Nt(t,r)).subscribe(n)})}function ve(t,e){return x((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(N(n,c=>{o?.unsubscribe();let u=0,l=i++;$(t(c,l)).subscribe(o=N(n,d=>n.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Wo(t){return x((e,r)=>{$(t).subscribe(N(r,()=>r.complete(),ut)),!r.closed&&e.subscribe(r)})}function oe(t,e,r){let n=C(t)||e||r?{next:t,error:e,complete:r}:t;return n?x((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(N(i,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):pe}var uf="https://g.co/ng/security#xss",w=class extends Error{constructor(e,r){super(Ai(e,r)),this.code=e}};function Ai(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function _r(t){return{toString:t}.toString()}var Zo="__parameters__";function ov(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function lf(t,e,r){return _r(()=>{let n=ov(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Zo)?c[Zo]:Object.defineProperty(c,Zo,{value:[]})[Zo];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var ce=globalThis;function H(t){for(let e in t)if(t[e]===H)return e;throw Error("Could not find renamed property on target object.")}function iv(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function De(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(De).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function Ed(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var sv=H({__forward_ref__:H});function df(t){return t.__forward_ref__=df,t.toString=function(){return De(this())},t}function ye(t){return ff(t)?t():t}function ff(t){return typeof t=="function"&&t.hasOwnProperty(sv)&&t.__forward_ref__===df}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ht(t){return{providers:t.providers||[],imports:t.imports||[]}}function _i(t){return Id(t,pf)||Id(t,gf)}function hf(t){return _i(t)!==null}function Id(t,e){return t.hasOwnProperty(e)?t[e]:null}function av(t){let e=t&&(t[pf]||t[gf]);return e||null}function Cd(t){return t&&(t.hasOwnProperty(bd)||t.hasOwnProperty(cv))?t[bd]:null}var pf=H({\u0275prov:H}),bd=H({\u0275inj:H}),gf=H({ngInjectableDef:H}),cv=H({ngInjectorDef:H}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function mf(t){return t&&!!t.\u0275providers}var uv=H({\u0275cmp:H}),lv=H({\u0275dir:H}),dv=H({\u0275pipe:H}),fv=H({\u0275mod:H}),ii=H({\u0275fac:H}),Ir=H({__NG_ELEMENT_ID__:H}),Md=H({__NG_ENV_ID__:H});function Ri(t){return typeof t=="string"?t:t==null?"":String(t)}function hv(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ri(t)}function pv(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new w(-200,t)}function wc(t,e){throw new w(-201,!1)}var O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(O||{}),xa;function vf(){return xa}function Ce(t){let e=xa;return xa=t,e}function yf(t,e,r){let n=_i(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(e!==void 0)return e;wc(t,"Injector")}var gv={},br=gv,Na="__NG_DI_FLAG__",si="ngTempTokenPath",mv="ngTokenPath",vv=/\n/gm,yv="\u0275",Sd="__source",jn;function Dv(){return jn}function Rt(t){let e=jn;return jn=t,e}function wv(t,e=O.Default){if(jn===void 0)throw new w(-203,!1);return jn===null?yf(t,void 0,e):jn.get(t,e&O.Optional?null:void 0,e)}function y(t,e=O.Default){return(vf()||wv)(ye(t),e)}function p(t,e=O.Default){return y(t,Oi(e))}function Oi(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Aa(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):De(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(vv,` + `)}`}var Pi=Df(lf("Optional"),8);var Ec=Df(lf("SkipSelf"),4);function rn(t,e){let r=t.hasOwnProperty(ii);return r?t[ii]:null}function bv(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Ic(r,e):e(r))}function wf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ai(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Sv(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function Tv(t,e,r){let n=Rr(t,e);return n>=0?t[n|1]=r:(n=~n,Sv(t,n,e,r)),n}function pa(t,e){let r=Rr(t,e);if(r>=0)return t[r|1]}function Rr(t,e){return xv(t,e,1)}function xv(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(He(n))return!1;s=!0}}}}return He(n)||s}function He(t){return(t&1)===0}function Pv(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!He(s)&&(e+=xd(i,o),o=""),n=s,i=i||!He(n);r++}return o!==""&&(e+=xd(i,o)),e}function Vv(t){return t.map(jv).join(",")}function $v(t){let e=[],r=[],n=1,o=2;for(;n{let e=_f(t),r=Q(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||nt.Emulated,styles:t.styles||ke,_:null,schemas:t.schemas||null,tView:null,id:""});Rf(r);let n=t.dependencies;return r.directiveDefs=Ad(n,!1),r.pipeDefs=Ad(n,!0),r.id=Hv(r),r})}function Uv(t){return Ft(t)||Tf(t)}function Bv(t){return t!==null}function pt(t){return _r(()=>({type:t.type,bootstrap:t.bootstrap||ke,declarations:t.declarations||ke,imports:t.imports||ke,exports:t.exports||ke,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Nd(t,e){if(t==null)return $n;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=kt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==kt.None?[n,a]:n,e[i]=s):r[i]=n}return r}function gn(t){return _r(()=>{let e=_f(t);return Rf(e),e})}function bc(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ft(t){return t[uv]||null}function Tf(t){return t[lv]||null}function xf(t){return t[dv]||null}function Nf(t){let e=Ft(t)||Tf(t)||xf(t);return e!==null?e.standalone:!1}function Af(t,e){let r=t[fv]||null;if(!r&&e===!0)throw new Error(`Type ${De(t)} does not have '\u0275mod' property.`);return r}function _f(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||$n,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ke,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Nd(t.inputs,e),outputs:Nd(t.outputs),debugInfo:null}}function Rf(t){t.features?.forEach(e=>e(t))}function Ad(t,e){if(!t)return null;let r=e?xf:Uv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Bv)}function Hv(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ki(t){return{\u0275providers:t}}function zv(...t){return{\u0275providers:Of(!0,t),\u0275fromNgModule:!0}}function Of(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return Ic(e,s=>{let a=s;Ra(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Pf(o,i),r}function Pf(t,e){for(let r=0;r{e(i,n)})}}function Ra(t,e,r,n){if(t=ye(t),!t)return!1;let o=null,i=Cd(t),s=!i&&Ft(t);if(!i&&!s){let c=t.ngModule;if(i=Cd(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ra(u,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{Ic(i.imports,l=>{Ra(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Pf(u,e)}if(!a){let u=rn(o)||(()=>new o);e({provide:o,useFactory:u,deps:ke},o),e({provide:If,useValue:o,multi:!0},o),e({provide:Un,useValue:()=>y(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;Mc(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function Mc(t,e){for(let r of t)mf(r)&&(r=r.\u0275providers),Array.isArray(r)?Mc(r,e):e(r)}var Gv=H({provide:String,useValue:H});function kf(t){return t!==null&&typeof t=="object"&&Gv in t}function qv(t){return!!(t&&t.useExisting)}function Wv(t){return!!(t&&t.useFactory)}function Bn(t){return typeof t=="function"}function Zv(t){return!!t.useClass}var Fi=new E(""),Xo={},Yv={},ga;function Sc(){return ga===void 0&&(ga=new ci),ga}var we=class{},Sr=class extends we{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Pa(e,s=>this.processProvider(s)),this.records.set(Ef,kn(void 0,this)),o.has("environment")&&this.records.set(we,kn(void 0,this));let i=this.records.get(Fi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(If,ke,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Rt(this),n=Ce(void 0),o;try{return e()}finally{Rt(r),Ce(n)}}get(e,r=br,n=O.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Md))return e[Md](this);n=Oi(n);let o,i=Rt(this),s=Ce(void 0);try{if(!(n&O.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=ey(e)&&_i(e);u&&this.injectableDefInScope(u)?c=kn(Oa(e),Xo):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&O.Self?Sc():this.parent;return r=n&O.Optional&&r===br?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[si]=a[si]||[]).unshift(De(e)),i)throw a;return Iv(a,e,"R3InjectorError",this.source)}else throw a}finally{Ce(s),Rt(i)}}resolveInjectorInitializers(){let e=k(null),r=Rt(this),n=Ce(void 0),o;try{let i=this.get(Un,ke,O.Self);for(let s of i)s()}finally{Rt(r),Ce(n),k(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(De(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(e){e=ye(e);let r=Bn(e)?e:ye(e&&e.provide),n=Kv(e);if(!Bn(e)&&e.multi===!0){let o=this.records.get(r);o||(o=kn(void 0,Xo,!0),o.factory=()=>Aa(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=k(null);try{return r.value===Xo&&(r.value=Yv,r.value=r.factory()),typeof r.value=="object"&&r.value&&Xv(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{k(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ye(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Oa(t){let e=_i(t),r=e!==null?e.factory:rn(t);if(r!==null)return r;if(t instanceof E)throw new w(204,!1);if(t instanceof Function)return Qv(t);throw new w(204,!1)}function Qv(t){if(t.length>0)throw new w(204,!1);let r=av(t);return r!==null?()=>r.factory(t):()=>new t}function Kv(t){if(kf(t))return kn(void 0,t.useValue);{let e=Ff(t);return kn(e,Xo)}}function Ff(t,e,r){let n;if(Bn(t)){let o=ye(t);return rn(o)||Oa(o)}else if(kf(t))n=()=>ye(t.useValue);else if(Wv(t))n=()=>t.useFactory(...Aa(t.deps||[]));else if(qv(t))n=()=>y(ye(t.useExisting));else{let o=ye(t&&(t.useClass||t.provide));if(Jv(t))n=()=>new o(...Aa(t.deps));else return rn(o)||Oa(o)}return n}function kn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Jv(t){return!!t.deps}function Xv(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function ey(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Pa(t,e){for(let r of t)Array.isArray(r)?Pa(r,e):r&&mf(r)?Pa(r.\u0275providers,e):e(r)}function Te(t,e){t instanceof Sr&&t.assertNotDestroyed();let r,n=Rt(t),o=Ce(void 0);try{return e()}finally{Rt(n),Ce(o)}}function Lf(){return vf()!==void 0||Dv()!=null}function ty(t){if(!Lf())throw new w(-203,!1)}function ny(t){let e=ce.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function ry(t){return typeof t=="function"}var gt=0,_=1,S=2,de=3,ze=4,qe=5,ui=6,li=7,Ge=8,Hn=9,rt=10,ie=11,Tr=12,_d=13,Kn=14,ot=15,on=16,Fn=17,dt=18,Li=19,jf=20,Ot=21,ma=22,Fe=23,Se=25,Vf=1;var sn=7,di=8,zn=9,Me=10,fi=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(fi||{});function Pt(t){return Array.isArray(t)&&typeof t[Vf]=="object"}function mt(t){return Array.isArray(t)&&t[Vf]===!0}function Tc(t){return(t.flags&4)!==0}function ji(t){return t.componentOffset>-1}function Vi(t){return(t.flags&1)===1}function Lt(t){return!!t.template}function ka(t){return(t[S]&512)!==0}var Fa=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function $f(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Jn(){return Uf}function Uf(t){return t.type.prototype.ngOnChanges&&(t.setInput=iy),oy}Jn.ngInherit=!0;function oy(){let t=Hf(this),e=t?.current;if(e){let r=t.previous;if(r===$n)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function iy(t,e,r,n,o){let i=this.declaredInputs[n],s=Hf(t)||sy(t,{previous:$n,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Fa(u&&u.currentValue,r,c===$n),$f(t,e,o,r)}var Bf="__ngSimpleChanges__";function Hf(t){return t[Bf]||null}function sy(t,e){return t[Bf]=e}var Rd=null;var et=function(t,e,r){Rd?.(t,e,r)},ay="svg",cy="math";function it(t){for(;Array.isArray(t);)t=t[gt];return t}function zf(t,e){return it(e[t])}function je(t,e){return it(e[t.index])}function Gf(t,e){return t.data[e]}function xc(t,e){return t[e]}function $t(t,e){let r=e[t];return Pt(r)?r:r[gt]}function uy(t){return(t[S]&4)===4}function Nc(t){return(t[S]&128)===128}function ly(t){return mt(t[de])}function Gn(t,e){return e==null?null:t[e]}function qf(t){t[Fn]=0}function Wf(t){t[S]&1024||(t[S]|=1024,Nc(t)&&$i(t))}function dy(t,e){for(;t>0;)e=e[Kn],t--;return e}function xr(t){return!!(t[S]&9216||t[Fe]?.dirty)}function La(t){t[rt].changeDetectionScheduler?.notify(7),t[S]&64&&(t[S]|=1024),xr(t)&&$i(t)}function $i(t){t[rt].changeDetectionScheduler?.notify(0);let e=an(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Nc(e)));)e=an(e)}function Zf(t,e){if((t[S]&256)===256)throw new w(911,!1);t[Ot]===null&&(t[Ot]=[]),t[Ot].push(e)}function fy(t,e){if(t[Ot]===null)return;let r=t[Ot].indexOf(e);r!==-1&&t[Ot].splice(r,1)}function an(t){let e=t[de];return mt(e)?e[de]:e}var P={lFrame:rh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Yf=!1;function hy(){return P.lFrame.elementDepthCount}function py(){P.lFrame.elementDepthCount++}function gy(){P.lFrame.elementDepthCount--}function Qf(){return P.bindingsEnabled}function my(){return P.skipHydrationRootTNode!==null}function vy(t){return P.skipHydrationRootTNode===t}function yy(){P.skipHydrationRootTNode=null}function F(){return P.lFrame.lView}function fe(){return P.lFrame.tView}function XR(t){return P.lFrame.contextLView=t,t[Ge]}function eO(t){return P.lFrame.contextLView=null,t}function he(){let t=Kf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Kf(){return P.lFrame.currentTNode}function Dy(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function mn(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function Ac(){return P.lFrame.isParent}function Jf(){P.lFrame.isParent=!1}function wy(){return P.lFrame.contextLView}function Xf(){return Yf}function Od(t){Yf=t}function Ui(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ey(t){return P.lFrame.bindingIndex=t}function _c(){return P.lFrame.bindingIndex++}function Iy(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Cy(){return P.lFrame.inI18n}function by(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,ja(e)}function My(){return P.lFrame.currentDirectiveIndex}function ja(t){P.lFrame.currentDirectiveIndex=t}function Sy(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function eh(){return P.lFrame.currentQueryIndex}function Rc(t){P.lFrame.currentQueryIndex=t}function Ty(t){let e=t[_];return e.type===2?e.declTNode:e.type===1?t[qe]:null}function th(t,e,r){if(r&O.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&O.Host);)if(o=Ty(i),o===null||(i=i[Kn],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=P.lFrame=nh();return n.currentTNode=e,n.lView=t,!0}function Oc(t){let e=nh(),r=t[_];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function nh(){let t=P.lFrame,e=t===null?null:t.child;return e===null?rh(t):e}function rh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function oh(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ih=oh;function Pc(){let t=oh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function xy(t){return(P.lFrame.contextLView=dy(t,P.lFrame.contextLView))[Ge]}function Xn(){return P.lFrame.selectedIndex}function cn(t){P.lFrame.selectedIndex=t}function sh(){let t=P.lFrame;return Gf(t.tView,t.selectedIndex)}function Ny(){return P.lFrame.currentNamespace}var ah=!0;function Bi(){return ah}function Hi(t){ah=t}function Ay(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=Uf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function zi(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[Fn]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,Pd(a,i)):Pd(a,i)}var Vn=-1,un=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Ry(t){return t instanceof un}function Oy(t){return(t.flags&8)!==0}function Py(t){return(t.flags&16)!==0}var ya={},Va=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Oi(n);let o=this.injector.get(e,ya,n);return o!==ya||r===ya?o:this.parentInjector.get(e,r,n)}};function uh(t){return t!==Vn}function hi(t){return t&32767}function ky(t){return t>>16}function pi(t,e){let r=ky(t),n=e;for(;r>0;)n=n[Kn],r--;return n}var $a=!0;function gi(t){let e=$a;return $a=t,e}var Fy=256,lh=Fy-1,dh=5,Ly=0,tt={};function jy(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Ir)&&(n=r[Ir]),n==null&&(n=r[Ir]=Ly++);let o=n&lh,i=1<>dh)]|=i}function mi(t,e){let r=fh(t,e);if(r!==-1)return r;let n=e[_];n.firstCreatePass&&(t.injectorIndex=e.length,Da(n.data,t),Da(e,null),Da(n.blueprint,null));let o=kc(t,e),i=t.injectorIndex;if(uh(o)){let s=hi(o),a=pi(o,e),c=a[_].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function Da(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function kc(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=vh(o),n===null)return Vn;if(r++,o=o[Kn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Vn}function Ua(t,e,r){jy(t,e,r)}function Vy(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===r)return f}if(o){let f=s[c];if(f&&Lt(f)&&f.type===r)return c}return null}function ln(t,e,r,n){let o=t[r],i=e.data;if(Ry(o)){let s=o;s.resolving&&pv(hv(i[r]));let a=gi(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ce(s.injectImpl):null,l=th(t,n,O.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&Ay(r,i[r],e)}finally{u!==null&&Ce(u),gi(a),s.resolving=!1,ih()}}return o}function Uy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Ir)?t[Ir]:void 0;return typeof e=="number"?e>=0?e&lh:By:e}function kd(t,e,r){let n=1<>dh)]&n)}function Fd(t,e){return!(t&O.Self)&&!(t&O.Host&&e)}var nn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return gh(this._tNode,this._lView,e,Oi(n),r)}};function By(){return new nn(he(),F())}function Fc(t){return _r(()=>{let e=t.prototype.constructor,r=e[ii]||Ba(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[ii]||Ba(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ba(t){return ff(t)?()=>{let e=Ba(ye(t));return e&&e()}:rn(t)}function Hy(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=mh(i,s,r,n|O.Self,tt);if(a!==tt)return a;let c=i.parent;if(!c){let u=s[jf];if(u){let l=u.get(r,tt,n);if(l!==tt)return l}c=vh(s),s=s[Kn]}i=c}return o}function vh(t){let e=t[_],r=e.type;return r===2?e.declTNode:r===1?t[qe]:null}function Lc(t){return Vy(he(),t)}function Ld(t,e=null,r=null,n){let o=yh(t,e,r,n);return o.resolveInjectorInitializers(),o}function yh(t,e=null,r=null,n,o=new Set){let i=[r||ke,zv(t)];return n=n||(typeof t=="object"?void 0:De(t)),new Sr(i,e||Sc(),n||null,o)}var tn=class tn{static create(e,r){if(Array.isArray(e))return Ld({name:""},r,e,"");{let n=e.name??"";return Ld({name:n},e.parent,e.providers,n)}}};tn.THROW_IF_NOT_FOUND=br,tn.NULL=new ci,tn.\u0275prov=D({token:tn,providedIn:"any",factory:()=>y(Ef)}),tn.__NG_ELEMENT_ID__=-1;var Le=tn;var zy=new E("");zy.__NG_ELEMENT_ID__=t=>{let e=he();if(e===null)throw new w(204,!1);if(e.type&2)return e.value;if(t&O.Optional)return null;throw new w(204,!1)};var Gy="ngOriginalError";function wa(t){return t[Gy]}var st=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&wa(e);for(;r&&wa(r);)r=wa(r);return r||null}},Dh=new E("",{providedIn:"root",factory:()=>p(st).handleError.bind(void 0)}),jc=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=qy,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Ha=class extends jc{constructor(e){super(),this._lView=e}onDestroy(e){return Zf(this._lView,e),()=>fy(this._lView,e)}};function qy(){return new Ha(F())}function Wy(){return er(he(),F())}function er(t,e){return new vt(je(t,e))}var vt=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Wy;let t=e;return t})();function Zy(t){return t instanceof vt?t.nativeElement:t}var yt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ae(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var za=class extends ee{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Lf()&&(this.destroyRef=p(jc,{optional:!0})??void 0,this.pendingTasks=p(yt,{optional:!0})??void 0)}emit(e){let r=k(null);try{super.next(e)}finally{k(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof K&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ue=za;function Yy(){return this._results[Symbol.iterator]()}var Ga=class t{get changes(){return this._changes??=new ue}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Yy)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=Mv(e);(this._changesDetected=!bv(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function wh(t){return(t.flags&128)===128}var Eh=new Map,Qy=0;function Ky(){return Qy++}function Jy(t){Eh.set(t[Li],t)}function Xy(t){Eh.delete(t[Li])}var jd="__ngContext__";function jt(t,e){Pt(e)?(t[jd]=e[Li],Jy(e)):t[jd]=e}function Ih(t){return bh(t[Tr])}function Ch(t){return bh(t[ze])}function bh(t){for(;t!==null&&!mt(t);)t=t[ze];return t}var qa;function Mh(t){qa=t}function eD(){if(qa!==void 0)return qa;if(typeof document<"u")return document;throw new w(210,!1)}var Gi=new E("",{providedIn:"root",factory:()=>tD}),tD="ng",Vc=new E(""),at=new E("",{providedIn:"platform",factory:()=>"unknown"});var $c=new E("",{providedIn:"root",factory:()=>eD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var nD="h",rD="b";var oD=()=>null;function Uc(t,e,r=!1){return oD(t,e,r)}var Sh=!1,iD=new E("",{providedIn:"root",factory:()=>Sh});var Yo;function sD(){if(Yo===void 0&&(Yo=null,ce.trustedTypes))try{Yo=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Yo}function Vd(t){return sD()?.createScriptURL(t)||t}var vi=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${uf})`}};function Or(t){return t instanceof vi?t.changingThisBreaksApplicationSecurity:t}function Bc(t,e){let r=aD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${uf})`)}return r===e}function aD(t){return t instanceof vi&&t.getTypeName()||null}var cD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Th(t){return t=String(t),t.match(cD)?t:"unsafe:"+t}var qi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(qi||{});function uD(t){let e=Nh();return e?e.sanitize(qi.URL,t)||"":Bc(t,"URL")?Or(t):Th(Ri(t))}function lD(t){let e=Nh();if(e)return Vd(e.sanitize(qi.RESOURCE_URL,t)||"");if(Bc(t,"ResourceURL"))return Vd(Or(t));throw new w(904,!1)}function dD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?lD:uD}function xh(t,e,r){return dD(e,r)(t)}function Nh(){let t=F();return t&&t[rt].sanitizer}var fD=/^>|^->||--!>|)/g,pD="\u200B$1\u200B";function gD(t){return t.replace(fD,e=>e.replace(hD,pD))}function Ah(t){return t instanceof Function?t():t}function mD(t){return(t??p(Le)).get(at)==="browser"}var ft=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(ft||{}),vD;function Hc(t,e){return vD(t,e)}function Ln(t,e,r,n,o){if(n!=null){let i,s=!1;mt(n)?i=n:Pt(n)&&(s=!0,n=n[gt]);let a=it(n);t===0&&r!==null?o==null?kh(e,r,a):yi(e,r,a,o||null,!0):t===1&&r!==null?yi(e,r,a,o||null,!0):t===2?PD(e,a,s):t===3&&e.destroyNode(a),i!=null&&FD(e,t,i,r,o)}}function yD(t,e){return t.createText(e)}function DD(t,e,r){t.setValue(e,r)}function wD(t,e){return t.createComment(gD(e))}function _h(t,e,r){return t.createElement(e,r)}function ED(t,e){Rh(t,e),e[gt]=null,e[qe]=null}function ID(t,e,r,n,o,i){n[gt]=o,n[qe]=e,Zi(t,n,r,1,o,i)}function Rh(t,e){e[rt].changeDetectionScheduler?.notify(8),Zi(t,e,e[ie],2,null,null)}function CD(t){let e=t[Tr];if(!e)return Ea(t[_],t);for(;e;){let r=null;if(Pt(e))r=e[Tr];else{let n=e[Me];n&&(r=n)}if(!r){for(;e&&!e[ze]&&e!==t;)Pt(e)&&Ea(e[_],e),e=e[de];e===null&&(e=t),Pt(e)&&Ea(e[_],e),r=e&&e[ze]}e=r}}function bD(t,e,r,n){let o=Me+n,i=r.length;n>0&&(r[o-1][ze]=e),n0&&(t[r-1][ze]=n[ze]);let i=ai(t,Me+e);ED(n[_],n);let s=i[dt];s!==null&&s.detachView(i[_]),n[de]=null,n[ze]=null,n[S]&=-129}return n}function Ph(t,e){if(!(e[S]&256)){let r=e[ie];r.destroyNode&&Zi(t,e,r,3,null,null),CD(e)}}function Ea(t,e){if(e[S]&256)return;let r=k(null);try{e[S]&=-129,e[S]|=256,e[Fe]&&Ys(e[Fe]),SD(t,e),MD(t,e),e[_].type===1&&e[ie].destroy();let n=e[on];if(n!==null&&mt(e[de])){n!==e[de]&&zc(n,e);let o=e[dt];o!==null&&o.detachView(t)}Xy(e)}finally{k(r)}}function MD(t,e){let r=t.cleanup,n=e[li];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[li]=null);let o=e[Ot];if(o!==null){e[Ot]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===nt.None||i===nt.Emulated)return null}return je(n,r)}}function yi(t,e,r,n,o){t.insertBefore(e,r,n,o)}function kh(t,e,r){t.appendChild(e,r)}function $d(t,e,r,n,o){n!==null?yi(t,e,r,n,o):kh(t,e,r)}function ND(t,e,r,n){t.removeChild(e,r,n)}function Gc(t,e){return t.parentNode(e)}function AD(t,e){return t.nextSibling(e)}function _D(t,e,r){return OD(t,e,r)}function RD(t,e,r){return t.type&40?je(t,r):null}var OD=RD,Ud;function Wi(t,e,r,n){let o=TD(t,n,e),i=e[ie],s=n.parent||e[qe],a=_D(s,n,e);if(o!=null)if(Array.isArray(r))for(let c=0;cSe&&Vh(t,e,Se,!1),et(s?2:0,o),r(n,o)}finally{cn(i),et(s?3:1,o)}}function Wc(t,e,r){if(Tc(e)){let n=k(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function GD(t,e,r,n){let o=Yh(e);o.push(r),t.firstCreatePass&&Qh(t).push(n,o.length-1)}function qD(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return my()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Bd(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,c=kt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?Hd(n,r,u,a,c):Hd(n,r,u,a)}return n}function Hd(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function WD(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function XD(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;ji(r)&&sw(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||mi(r,e),jt(n,e);let s=r.initialInputs;for(let a=o;a{$i(t.lView)},consumerOnSignalRead(){this.lView[Fe]=this}});function Iw(t){let e=t[Fe]??Object.create(Cw);return e.lView=t,e}var Cw=Q(m({},vr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=an(t.lView);for(;e&&!Xh(e[_]);)e=an(e);e&&Wf(e)},consumerOnSignalRead(){this.lView[Fe]=this}});function Xh(t){return t.type!==2}var bw=100;function ep(t,e=!0,r=0){let n=t[rt],o=n.rendererFactory,i=!1;i||o.begin?.();try{Mw(t,r)}catch(s){throw e&&Kh(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function Mw(t,e){let r=Xf();try{Od(!0),Ka(t,e);let n=0;for(;xr(t);){if(n===bw)throw new w(103,!1);n++,Ka(t,1)}}finally{Od(r)}}function Sw(t,e,r,n){let o=e[S];if((o&256)===256)return;let i=!1,s=!1;!i&&e[rt].inlineEffectRunner?.flush(),Oc(e);let a=!0,c=null,u=null;i||(Xh(t)?(u=yw(e),c=yo(u)):_l()===null?(a=!1,u=Iw(e),c=yo(u)):e[Fe]&&(Ys(e[Fe]),e[Fe]=null));try{qf(e),Ey(t.bindingStartIndex),r!==null&&Hh(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let f=t.preOrderCheckHooks;f!==null&&ei(e,f,null)}else{let f=t.preOrderHooks;f!==null&&ti(e,f,0,null),va(e,0)}if(s||Tw(e),tp(e,0),t.contentQueries!==null&&Zh(t,e),!i)if(l){let f=t.contentCheckHooks;f!==null&&ei(e,f)}else{let f=t.contentHooks;f!==null&&ti(e,f,1),va(e,1)}VD(t,e);let d=t.components;d!==null&&rp(e,d,0);let h=t.viewQuery;if(h!==null&&Qa(2,h,n),!i)if(l){let f=t.viewCheckHooks;f!==null&&ei(e,f)}else{let f=t.viewHooks;f!==null&&ti(e,f,2),va(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ma]){for(let f of e[ma])f();e[ma]=null}i||(e[S]&=-73)}catch(l){throw i||$i(e),l}finally{u!==null&&(Ws(u,c),a&&ww(u)),Pc()}}function tp(t,e){for(let r=Ih(t);r!==null;r=Ch(r))for(let n=Me;n-1&&(Wa(e,n),ai(r,n))}this._attachedToViewContainer=!1}Ph(this._lView[_],this._lView)}onDestroy(e){Zf(this._lView,e)}markForCheck(){eu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){La(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,ep(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=ka(this._lView),r=this._lView[on];r!==null&&!e&&zc(r,this._lView),Rh(this._lView[_],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e;let r=ka(this._lView),n=this._lView[on];n!==null&&!r&&Oh(n,this._lView),La(this._lView)}},fn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_w;let t=e;return t})(),Nw=fn,Aw=class extends Nw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=gw(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new dn(o)}};function _w(){return tu(he(),F())}function tu(t,e){return t.type&4?new Aw(e,t,er(t,e)):null}var rO=new RegExp(`^(\\d+)*(${rD}|${nD})*(.*)`);var Rw=()=>null;function Gd(t,e){return Rw(t,e)}var qn=class{},op=new E("",{providedIn:"root",factory:()=>!1});var ip=new E(""),Ja=class{},wi=class{};function Ow(t){let e=Error(`No component factory found for ${De(t)}.`);return e[Pw]=t,e}var Pw="ngComponent";var Xa=class{resolveComponentFactory(e){throw Ow(e)}},vu=class vu{};vu.NULL=new Xa;var Wn=vu,Zn=class{},kr=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>kw();let t=e;return t})();function kw(){let t=F(),e=he(),r=$t(e.index,t);return(Pt(r)?r:t)[ie]}var Fw=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var qd=new Set;function tr(t){qd.has(t)||(qd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function sp(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof ce.requestAnimationFrame=="function"&&ce.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Wd(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Zd(...t){}var U=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ue(!1),this.onMicrotaskEmpty=new ue(!1),this.onStable=new ue(!1),this.onError=new ue(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,Vw(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new w(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,Lw,Zd,Zd);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Lw={};function nu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function jw(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{sp(()=>{t.callbackScheduled=!1,ec(t),t.isCheckStableRunning=!0,nu(t),t.isCheckStableRunning=!1})}),ec(t))}function Vw(t){let e=()=>{jw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if($w(a))return r.invokeTask(o,i,s,a);try{return Yd(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Qd(t)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return Yd(t),r.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!Uw(a)&&e(),Qd(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,ec(t),nu(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function ec(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Yd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Qd(t){t._nesting--,nu(t)}var Ei=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ue,this.onMicrotaskEmpty=new ue,this.onStable=new ue,this.onError=new ue}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function $w(t){return ap(t,"__ignore_ng_zone__")}function Uw(t){return ap(t,"__scheduler_tick__")}function ap(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function Bw(t="zone.js",e){return t==="noop"?new Ei:t==="zone.js"?new U(e):t}var be=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(be||{}),Hw={destroy(){}};function ru(t,e){!e&&ty(ru);let r=e?.injector??p(Le);return mD(r)?(tr("NgAfterNextRender"),Gw(t,r,!0,e?.phase??be.MixedReadWrite)):Hw}function zw(t,e){if(t instanceof Function)switch(e){case be.EarlyRead:return{earlyRead:t};case be.Write:return{write:t};case be.MixedReadWrite:return{mixedReadWrite:t};case be.Read:return{read:t}}return t}function Gw(t,e,r,n){let o=zw(t,n),i=e.get(ou),s=i.handler??=new nc,a=[],c=[],u=()=>{for(let f of c)s.unregister(f);l()},l=e.get(jc).onDestroy(u),d=0,h=(f,g)=>{if(!g)return;let M=r?(...I)=>(d--,d<1&&u(),g(...I)):g,v=Te(e,()=>new tc(f,a,M));s.register(v),c.push(v),d++};return h(be.EarlyRead,o.earlyRead),h(be.Write,o.write),h(be.MixedReadWrite,o.mixedReadWrite),h(be.Read,o.read),{destroy:u}}var tc=class{constructor(e,r,n){this.phase=e,this.pipelinedArgs=r,this.callbackFn=n,this.zone=p(U),this.errorHandler=p(st,{optional:!0}),p(qn,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},nc=class{constructor(){this.executingCallbacks=!1,this.buckets={[be.EarlyRead]:new Set,[be.Write]:new Set,[be.MixedReadWrite]:new Set,[be.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},ou=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Ii(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&Lh(t,r,i.join(" "))}}function Jw(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=eE;let t=e;return t})();function eE(){let t=he();return up(t,F())}var tE=Bt,cp=class extends tE{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return er(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){let e=kc(this._hostTNode,this._hostLView);if(uh(e)){let r=pi(e,this._hostLView),n=hi(e),o=r[_].data[n+8];return new nn(o,r)}else return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=Jd(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Me}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Gd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,zd(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!ry(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?e:new Yn(Ft(e)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let M=(s?u:this.parentInjector).get(we,null);M&&(i=M)}let l=Ft(c.componentType??{}),d=Gd(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,zd(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(ly(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[de],u=new cp(c,c[qe],c[de]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return mw(s,o,i,n),e.attachToViewContainerRef(),wf(Ia(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=Jd(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Wa(this._lContainer,r);n&&(ai(Ia(this._lContainer),r),Ph(n[_],n))}detach(e){let r=this._adjustIndex(e,-1),n=Wa(this._lContainer,r);return n&&ai(Ia(this._lContainer),r)!=null?new dn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function Jd(t){return t[di]}function Ia(t){return t[di]||(t[di]=[])}function up(t,e){let r,n=e[t.index];return mt(n)?r=n:(r=Wh(n,e,null,t),e[t.index]=r,Qi(e,r)),rE(r,e,t,n),new cp(r,t,e)}function nE(t,e){let r=t[ie],n=r.createComment(""),o=je(e,t),i=Gc(r,o);return yi(r,i,n,AD(r,o),!1),n}var rE=sE,oE=()=>!1;function iE(t,e,r){return oE(t,e,r)}function sE(t,e,r,n){if(t[sn])return;let o;r.type&8?o=it(n):o=nE(e,r),t[sn]=o}var oc=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},ic=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=e[-c];for(let d=Me;de.trim())}function gE(t,e,r){t.queries===null&&(t.queries=new ac),t.queries.track(new cc(e,r))}function mE(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function iu(t,e){return t.queries.getByIndex(e)}function vE(t,e){let r=t[_],n=iu(r,e);return n.crossesNgTemplate?uc(r,t,e,[]):lp(r,t,n,e)}function iO(t,e){tr("NgSignals");let r=Bl(t),n=r[Tt];return e?.equal&&(n.equal=e.equal),r.set=o=>Qs(n,o),r.update=o=>Hl(n,o),r.asReadonly=yE.bind(r),r}function yE(){let t=this[Tt];if(t.readonlyFn===void 0){let e=()=>this();e[Tt]=t,t.readonlyFn=e}return t.readonlyFn}function DE(t){let e=[],r=new Map;function n(o){let i=r.get(o);if(!i){let s=t(o);r.set(o,i=s.then(CE))}return i}return bi.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(n(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(n(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(n(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>bE(i));e.push(c)}),EE(),Promise.all(e).then(()=>{})}var bi=new Map,wE=new Set;function EE(){let t=bi;return bi=new Map,t}function IE(){return bi.size===0}function CE(t){return typeof t=="string"?t:t.text()}function bE(t){wE.delete(t)}function ME(t){return Object.getPrototypeOf(t.prototype).constructor}function SE(t){let e=ME(t.type),r=!0,n=[t];for(;e;){let o;if(Lt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new w(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let s=t;s.inputs=Qo(t.inputs),s.inputTransforms=Qo(t.inputTransforms),s.declaredInputs=Qo(t.declaredInputs),s.outputs=Qo(t.outputs);let a=o.hostBindings;a&&_E(t,a);let c=o.viewQuery,u=o.contentQueries;if(c&&NE(t,c),u&&AE(t,u),TE(t,o),iv(t.outputs,o.outputs),Lt(o)&&o.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Mr(o.hostAttrs,r=Mr(r,o.hostAttrs))}}function Qo(t){return t===$n?{}:t===ke?[]:t}function NE(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function AE(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function _E(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function su(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}t.inputTransforms=r}var Vt=class{},Nr=class{};var Mi=class extends Vt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ci(this);let o=Af(e);this._bootstrapComponents=Ah(o.bootstrap),this._r3Injector=yh(e,r,[{provide:Vt,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver},...n],De(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Si=class extends Nr{constructor(e){super(),this.moduleType=e}create(e){return new Mi(this.moduleType,e,[])}};function RE(t,e,r){return new Mi(t,e,r)}var lc=class extends Vt{constructor(e){super(),this.componentFactoryResolver=new Ci(this),this.instance=null;let r=new Sr([...e.providers,{provide:Vt,useValue:this},{provide:Wn,useValue:this.componentFactoryResolver}],e.parent||Sc(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ki(t,e,r=null){return new lc({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function dp(t){return PE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function OE(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function zE(t){return(t&2)==2}function GE(t,e){return t&131071|e<<17}function dc(t){return t|2}function Qn(t){return(t&131068)>>2}function Ca(t,e){return t&-131069|e<<2}function qE(t){return(t&1)===1}function fc(t){return t|1}function WE(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=pn(s),c=Qn(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Rr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let h=pn(t[a+1]);t[n+1]=Ko(h,a),h!==0&&(t[h+1]=Ca(t[h+1],n)),t[a+1]=GE(t[a+1],n)}else t[n+1]=Ko(a,0),a!==0&&(t[a+1]=Ca(t[a+1],n)),a=n;else t[n+1]=Ko(c,0),a===0?a=n:t[c+1]=Ca(t[c+1],n),c=n;u&&(t[n+1]=dc(t[n+1])),Xd(t,l,n,!0),Xd(t,l,n,!1),ZE(e,l,t,n,i),s=Ko(a,c),i?e.classBindings=s:e.styleBindings=s}function ZE(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Rr(i,e)>=0&&(r[n+1]=fc(r[n+1]))}function Xd(t,e,r,n){let o=t[r+1],i=e===null,s=n?pn(o):Qn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];YE(c,e)&&(a=!0,t[s+1]=n?fc(u):dc(u)),s=n?pn(u):Qn(u)}a&&(t[r+1]=n?dc(o):fc(o))}function YE(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Rr(t,e)>=0:!1}function QE(t,e,r){let n=F(),o=_c();if(hn(n,o,e)){let i=fe(),s=sh();YD(i,s,n,t,e,n[ie],r,!1)}return QE}function ef(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Jc(t,r,i[s],s,n)}function KE(t,e){return JE(t,e,null,!0),KE}function JE(t,e,r,n){let o=F(),i=fe(),s=Iy(2);if(i.firstUpdatePass&&eI(i,t,s,n),e!==Ut&&hn(o,s,e)){let a=i.data[Xn()];iI(i,a,o,o[ie],t,o[s+1]=sI(e,r),n,s)}}function XE(t,e){return e>=t.expandoStartIndex}function eI(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Xn()],s=XE(t,r);aI(i,n)&&e===null&&!s&&(e=!1),e=tI(o,i,e,n),WE(o,i,e,r,s,n)}}function tI(t,e,r,n){let o=Sy(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=ba(null,t,e,r,n),r=Ar(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=ba(o,t,e,r,n),i===null){let c=nI(t,e,n);c!==void 0&&Array.isArray(c)&&(c=ba(null,t,e,c[1],n),c=Ar(c,e.attrs,n),rI(t,e,n,c))}else i=oI(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function nI(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Qn(n)!==0)return t[pn(n)]}function rI(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[pn(o)]=n}function oI(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=r[o+1];h===Ut&&(h=d?ke:void 0);let f=d?pa(h,n):l===n?h:void 0;if(u&&!Ti(f)&&(f=pa(c,n)),Ti(f)&&(a=f,s))return a;let g=t[o+1];o=s?pn(g):Qn(g)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=pa(c,n))}return a}function Ti(t){return t!==void 0}function sI(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=De(Or(t)))),t}function aI(t,e){return(t.flags&(e?8:16))!==0}function cI(t,e,r,n,o,i){let s=e.consts,a=Gn(s,o),c=Pr(e,t,2,n,a);return Kc(e,r,c,Gn(s,i)),c.attrs!==null&&Ii(c,c.attrs,!1),c.mergedAttrs!==null&&Ii(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function fp(t,e,r,n){let o=F(),i=fe(),s=Se+t,a=o[ie],c=i.firstCreatePass?cI(s,i,o,e,r,n):i.data[s],u=uI(i,o,c,a,e,t);o[s]=u;let l=Vi(c);return mn(c,!0),jh(a,u,c),!LE(c)&&Bi()&&Wi(i,o,u,c),hy()===0&&jt(u,o),py(),l&&(Zc(i,o,c),Wc(i,c,o)),n!==null&&Yc(o,c),fp}function hp(){let t=he();Ac()?Jf():(t=t.parent,mn(t,!1));let e=t;vy(e)&&yy(),gy();let r=fe();return r.firstCreatePass&&(zi(r,t),Tc(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Oy(e)&&ef(r,e,F(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Py(e)&&ef(r,e,F(),e.stylesWithoutHost,!1),hp}function uu(t,e,r,n){return fp(t,e,r,n),hp(),uu}var uI=(t,e,r,n,o,i)=>(Hi(!0),_h(n,o,Ny()));function lI(t,e,r,n,o){let i=e.consts,s=Gn(i,n),a=Pr(e,t,8,"ng-container",s);s!==null&&Ii(a,s,!0);let c=Gn(i,o);return Kc(e,r,a,c),e.queries!==null&&e.queries.elementStart(e,a),a}function dI(t,e,r){let n=F(),o=fe(),i=t+Se,s=o.firstCreatePass?lI(i,o,n,e,r):o.data[i];mn(s,!0);let a=hI(o,n,s,t);return n[i]=a,Bi()&&Wi(o,n,a,s),jt(a,n),Vi(s)&&(Zc(o,n,s),Wc(o,s,n)),r!=null&&Yc(n,s),dI}function fI(){let t=he(),e=fe();return Ac()?Jf():(t=t.parent,mn(t,!1)),e.firstCreatePass&&(zi(e,t),Tc(t)&&e.queries.elementEnd(t)),fI}var hI=(t,e,r,n)=>(Hi(!0),wD(e[ie],""));function sO(){return F()}var en=void 0;function pI(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var gI=["en",[["a","p"],["AM","PM"],en],[["AM","PM"],en,en],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],en,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],en,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",en,"{1} 'at' {0}",en],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",pI],Ma={};function Ve(t){let e=mI(t),r=nf(e);if(r)return r;let n=e.split("-")[0];if(r=nf(n),r)return r;if(n==="en")return gI;throw new w(701,!1)}function nf(t){return t in Ma||(Ma[t]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[t]),Ma[t]}var J=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(J||{});function mI(t){return t.toLowerCase().replace(/_/g,"-")}var xi="en-US";var vI=xi;function yI(t){typeof t=="string"&&(vI=t.toLowerCase().replace(/_/g,"-"))}var DI=(t,e,r)=>{};function lu(t,e,r,n){let o=F(),i=fe(),s=he();return EI(i,o,o[ie],s,t,e,n),lu}function wI(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function EI(t,e,r,n,o,i,s){let a=Vi(n),u=t.firstCreatePass&&Qh(t),l=e[Ge],d=Yh(e),h=!0;if(n.type&3||s){let M=je(n,e),v=s?s(M):M,I=d.length,X=s?B=>s(it(B[n.index])):n.index,G=null;if(!s&&a&&(G=wI(t,e,o,n.index)),G!==null){let B=G.__ngLastListenerFn__||G;B.__ngNextListenerFn__=i,G.__ngLastListenerFn__=i,h=!1}else{i=of(n,e,l,i),DI(M,o,i);let B=r.listen(v,o,i);d.push(i,B),u&&u.push(o,X,I,I+1)}}else i=of(n,e,l,i);let f=n.outputs,g;if(h&&f!==null&&(g=f[o])){let M=g.length;if(M)for(let v=0;v-1?$t(t.index,e):e;eu(s,5);let a=rf(e,r,n,i),c=o.__ngNextListenerFn__;for(;c;)a=rf(e,r,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function aO(t=1){return xy(t)}function pp(t,e,r,n){hE(t,e,r,n)}function gp(t){let e=F(),r=fe(),n=eh();Rc(n+1);let o=iu(r,n);if(t.dirty&&uy(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=vE(e,n);t.reset(i,Zy),t.notifyOnChanges()}return!0}return!1}function mp(){return dE(F(),eh())}function II(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function cO(t){let e=wy();return xc(e,Se+t)}function uO(t,e=""){let r=F(),n=fe(),o=t+Se,i=n.firstCreatePass?Pr(n,o,1,e,null):n.data[o],s=CI(n,r,i,e,t);r[o]=s,Bi()&&Wi(n,r,s,i),mn(i,!1)}var CI=(t,e,r,n,o)=>(Hi(!0),yD(e[ie],n));function bI(t){return vp("",t,""),bI}function vp(t,e,r){let n=F(),o=HE(n,t,e,r);return o!==Ut&&dw(n,Xn(),o),vp}function MI(t,e,r){let n=fe();if(n.firstCreatePass){let o=Lt(t);hc(r,n.data,n.blueprint,o,!0),hc(e,n.data,n.blueprint,o,!1)}}function hc(t,e,r,n,o){if(t=ye(t),Array.isArray(t))for(let i=0;i>20;if(Bn(t)||!t.multi){let f=new un(u,o,Z),g=Ta(c,e,o?l:l+h,d);g===-1?(Ua(mi(a,s),i,c),Sa(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[g]=f,s[g]=f)}else{let f=Ta(c,e,l+h,d),g=Ta(c,e,l,l+h),M=f>=0&&r[f],v=g>=0&&r[g];if(o&&!v||!o&&!M){Ua(mi(a,s),i,c);let I=xI(o?TI:SI,r.length,o,n,u);!o&&v&&(r[g].providerFactory=I),Sa(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(I),s.push(I)}else{let I=yp(r[o?g:f],u,!o&&n);Sa(i,t,f>-1?f:g,I)}!o&&n&&v&&r[g].componentProviders++}}}function Sa(t,e,r,n){let o=Bn(e),i=Zv(e);if(o||i){let c=(i?ye(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function yp(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Ta(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>MI(n,o?o(t):t,e)}}var NI=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Of(!1,n.type),i=o.length>0?Ki([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(y(we))});let t=e;return t})();function Dp(t){tr("NgStandalone"),t.getStandaloneInjector=e=>e.get(NI).getOrCreateStandaloneInjector(t)}function dO(t,e,r){let n=Ui()+t,o=F();return o[n]===Ut?au(o,n,r?e.call(r):e()):kE(o,n)}function fO(t,e,r,n){return Ep(F(),Ui(),t,e,r,n)}function wp(t,e){let r=t[e];return r===Ut?void 0:r}function Ep(t,e,r,n,o,i){let s=e+r;return hn(t,s,o)?au(t,s+1,i?n.call(i,o):n(o)):wp(t,s+1)}function AI(t,e,r,n,o,i,s){let a=e+r;return FE(t,a,o,i)?au(t,a+2,s?n.call(s,o,i):n(o,i)):wp(t,a+2)}function hO(t,e){let r=fe(),n,o=t+Se;r.firstCreatePass?(n=_I(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=rn(n.type,!0)),s,a=Ce(Z);try{let c=gi(!1),u=i();return gi(c),II(r,F(),o,u),u}finally{Ce(a)}}function _I(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function pO(t,e,r){let n=t+Se,o=F(),i=xc(o,n);return Ip(o,n)?Ep(o,Ui(),e,i.transform,r,i):i.transform(r)}function gO(t,e,r,n){let o=t+Se,i=F(),s=xc(i,o);return Ip(i,o)?AI(i,Ui(),e,s.transform,r,n,s):s.transform(r,n)}function Ip(t,e){return t[_].data[e].pure}var Jo=null;function RI(t){Jo!==null&&(t.defaultEncapsulation!==Jo.defaultEncapsulation||t.preserveWhitespaces!==Jo.preserveWhitespaces)||(Jo=t)}var Ji=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var du=new E(""),Fr=new E(""),Xi=(()=>{let e=class e{constructor(n,o,i){this._ngZone=n,this.registry=o,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,fu||(OI(i),i.addToWindow(o)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(n)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},o)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,o,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};e.\u0275fac=function(o){return new(o||e)(y(U),y(es),y(Fr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),es=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return fu?.findTestabilityInTree(this,n,o)??null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function OI(t){fu=t}var fu;function nr(t){return!!t&&typeof t.then=="function"}function hu(t){return!!t&&typeof t.subscribe=="function"}var ts=new E(""),Cp=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(ts,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(nr(s))n.push(s);else if(hu(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ns=new E("");function PI(){Ul(()=>{throw new w(600,!1)})}function kI(t){return t.isBoundToModule}var FI=10;function LI(t,e,r){try{let n=r();return nr(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function bp(t,e){return Array.isArray(e)?e.reduce(bp,t):m(m({},t),e)}var Ht=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Dh),this.afterRenderEffectManager=p(ou),this.zonelessEnabled=p(op),this.externalTestViews=new Set,this.beforeRender=new ee,this.afterTick=new ee,this.componentTypes=[],this.components=[],this.isStable=p(yt).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(we)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof wi;if(!this._injector.get(Cp).done){let f=!i&&Nf(n),g=!1;throw new w(405,g)}let a;i?a=n:a=this._injector.get(Wn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=kI(a)?void 0:this._injector.get(Vt),u=o||a.selector,l=a.create(Le.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(du,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),oi(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);let o=k(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,k(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(Zn,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;ixr(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>xr(c))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;oi(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(ns,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>oi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oi(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function jI(t,e,r,n){if(!r&&!xr(t))return;ep(t,e,r&&!n?0:1)}var gc=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},rs=(()=>{let e=class e{compileModuleSync(n){return new Si(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=Af(n),s=Ah(i.declarations).reduce((a,c)=>{let u=Ft(c);return u&&a.push(new Yn(u)),a},[]);return new gc(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),VI=new E("");function $I(t,e,r){let n=new Si(r);return Promise.resolve(n)}function sf(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var UI=(()=>{let e=class e{constructor(){this.zone=p(U),this.changeDetectionScheduler=p(qn),this.applicationRef=p(Ht)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function BI({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new U(Mp()),[{provide:U,useFactory:t},{provide:Un,multi:!0,useFactory:()=>{let r=p(UI,{optional:!0});return()=>r.initialize()}},{provide:Un,multi:!0,useFactory:()=>{let r=p(zI);return()=>{r.initialize()}}},{provide:Dh,useFactory:HI},e===!0?{provide:ip,useValue:!0}:[]]}function HI(){let t=p(U),e=p(st);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Mp(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var zI=(()=>{let e=class e{constructor(){this.subscription=new K,this.initialized=!1,this.zone=p(U),this.pendingTasks=p(yt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{U.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{U.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var GI=(()=>{let e=class e{constructor(){this.appRef=p(Ht),this.taskService=p(yt),this.ngZone=p(U),this.zonelessEnabled=p(op),this.disableScheduling=p(ip,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new K,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ei||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Wd:sp;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&U.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qI(){return typeof $localize<"u"&&$localize.locale||xi}var os=new E("",{providedIn:"root",factory:()=>p(os,O.Optional|O.SkipSelf)||qI()});var Sp=new E(""),Tp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=Bw(o?.ngZone,Mp({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=o?.ignoreChangesOutsideZone,a=RE(n.moduleType,this.injector,[...BI({ngZoneFactory:()=>i,ignoreChangesOutsideZone:s}),{provide:qn,useExisting:GI}]),c=a.injector.get(st,null);return i.runOutsideAngular(()=>{let u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{oi(this._modules,a),u.unsubscribe()})}),LI(c,i,()=>{let u=a.injector.get(Cp);return u.runInitializers(),u.donePromise.then(()=>{let l=a.injector.get(os,xi);return yI(l||xi),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,o=[]){let i=bp({},o);return $I(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){let o=n.injector.get(Ht);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(o);else throw new w(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(Sp,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(o){return new(o||e)(y(Le))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Cr=null,xp=new E("");function WI(t){if(Cr&&!Cr.get(xp,!1))throw new w(400,!1);PI(),Cr=t;let e=t.get(Tp);return QI(t),e}function pu(t,e,r=[]){let n=`Platform: ${e}`,o=new E(n);return(i=[])=>{let s=Np();if(!s||s.injector.get(xp,!1)){let a=[...r,...i,{provide:o,useValue:!0}];t?t(a):WI(ZI(a,n))}return YI(o)}}function ZI(t=[],e){return Le.create({name:e,providers:[{provide:Fi,useValue:"platform"},{provide:Sp,useValue:new Set([()=>Cr=null])},...t]})}function YI(t){let e=Np();if(!e)throw new w(401,!1);return e}function Np(){return Cr?.get(Tp)??null}function QI(t){t.get(Vc,null)?.forEach(r=>r())}function mO(){return!1}var vn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=KI;let t=e;return t})();function KI(t){return JI(he(),F(),(t&16)===16)}function JI(t,e,r){if(ji(t)&&!r){let n=$t(t.index,e);return new dn(n,n)}else if(t.type&175){let n=e[ot];return new dn(n,e)}return null}var mc=class{constructor(){}supports(e){return dp(e)}create(e){return new vc(e)}},XI=(t,e)=>e,vc=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||XI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new yc(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ni),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ni),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},yc=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Dc=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ni=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Dc,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function af(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||cf()),deps:[[e,new Ec,new Pi]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new w(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:cf});let t=e;return t})();var Ap=pu(null,"core",[]),_p=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(o){return new(o||e)(y(Ht))},e.\u0275mod=pt({type:e}),e.\u0275inj=ht({});let t=e;return t})();var Rp=new E("");function Lr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function vO(t,e){tr("NgSignals");let r=jl(t);return e?.equal&&(r[Tt].equal=e.equal),r}function mu(t){let e=k(null);try{return t()}finally{k(e)}}function Op(t){let e=Ft(t);if(!e)return null;let r=new Yn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var $p=null;function yn(){return $p}function Up(t){$p??=t}var hs=class{};var le=new E(""),Tu=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(tC),providedIn:"platform"});let t=e;return t})(),Bp=new E(""),tC=(()=>{let e=class e extends Tu{constructor(){super(),this._doc=p(le),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yn().getBaseHref(this._doc)}onPopState(n){let o=yn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=yn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function xu(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Pp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function wt(t){return t&&t[0]!=="?"?"?"+t:t}var It=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(Nu),providedIn:"root"});let t=e;return t})(),Hp=new E(""),Nu=(()=>{let e=class e extends It{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return xu(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+wt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(y(Tu),y(Hp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zp=(()=>{let e=class e extends It{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=xu(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+wt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(y(Tu),y(Hp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),or=(()=>{let e=class e{constructor(n){this._subject=new ue,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=oC(Pp(kp(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+wt(o))}normalize(n){return e.stripTrailingSlash(rC(this._basePath,kp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+wt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=wt,e.joinWithSlash=xu,e.stripTrailingSlash=Pp,e.\u0275fac=function(o){return new(o||e)(y(It))},e.\u0275prov=D({token:e,factory:()=>nC(),providedIn:"root"});let t=e;return t})();function nC(){return new or(y(It))}function rC(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function kp(t){return t.replace(/\/index.html$/,"")}function oC(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Ee=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ee||{}),z=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(z||{}),xe=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(xe||{}),zt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function iC(t){return Ve(t)[J.LocaleId]}function sC(t,e,r){let n=Ve(t),o=[n[J.DayPeriodsFormat],n[J.DayPeriodsStandalone]],i=$e(o,e);return $e(i,r)}function aC(t,e,r){let n=Ve(t),o=[n[J.DaysFormat],n[J.DaysStandalone]],i=$e(o,e);return $e(i,r)}function cC(t,e,r){let n=Ve(t),o=[n[J.MonthsFormat],n[J.MonthsStandalone]],i=$e(o,e);return $e(i,r)}function uC(t,e){let n=Ve(t)[J.Eras];return $e(n,e)}function is(t,e){let r=Ve(t);return $e(r[J.DateFormat],e)}function ss(t,e){let r=Ve(t);return $e(r[J.TimeFormat],e)}function as(t,e){let n=Ve(t)[J.DateTimeFormat];return $e(n,e)}function gs(t,e){let r=Ve(t),n=r[J.NumberSymbols][e];if(typeof n>"u"){if(e===zt.CurrencyDecimal)return r[J.NumberSymbols][zt.Decimal];if(e===zt.CurrencyGroup)return r[J.NumberSymbols][zt.Group]}return n}function Gp(t){if(!t[J.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[J.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function lC(t){let e=Ve(t);return Gp(e),(e[J.ExtraData][2]||[]).map(n=>typeof n=="string"?yu(n):[yu(n[0]),yu(n[1])])}function dC(t,e,r){let n=Ve(t);Gp(n);let o=[n[J.ExtraData][0],n[J.ExtraData][1]],i=$e(o,e)||[];return $e(i,r)||[]}function $e(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function yu(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var fC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,cs={},hC=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Et=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Et||{}),j=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(j||{}),L=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(L||{});function pC(t,e,r,n){let o=CC(t);e=Dt(r,e)||e;let s=[],a;for(;e;)if(a=hC.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=o.getTimezoneOffset();n&&(c=Wp(n,c),o=IC(o,n,!0));let u="";return s.forEach(l=>{let d=wC(l);u+=d?d(o,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ps(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Dt(t,e){let r=iC(t);if(cs[r]??={},cs[r][e])return cs[r][e];let n="";switch(e){case"shortDate":n=is(t,xe.Short);break;case"mediumDate":n=is(t,xe.Medium);break;case"longDate":n=is(t,xe.Long);break;case"fullDate":n=is(t,xe.Full);break;case"shortTime":n=ss(t,xe.Short);break;case"mediumTime":n=ss(t,xe.Medium);break;case"longTime":n=ss(t,xe.Long);break;case"fullTime":n=ss(t,xe.Full);break;case"short":let o=Dt(t,"shortTime"),i=Dt(t,"shortDate");n=us(as(t,xe.Short),[o,i]);break;case"medium":let s=Dt(t,"mediumTime"),a=Dt(t,"mediumDate");n=us(as(t,xe.Medium),[s,a]);break;case"long":let c=Dt(t,"longTime"),u=Dt(t,"longDate");n=us(as(t,xe.Long),[c,u]);break;case"full":let l=Dt(t,"fullTime"),d=Dt(t,"fullDate");n=us(as(t,xe.Full),[l,d]);break}return n&&(cs[r][e]=n),n}function us(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function We(t,e,r="-",n,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===j.Hours)a===0&&r===-12&&(a=12);else if(t===j.FractionalSeconds)return gC(a,e);let c=gs(s,zt.MinusSign);return We(a,e,c,n,o)}}function mC(t,e){switch(t){case j.FullYear:return e.getFullYear();case j.Month:return e.getMonth();case j.Date:return e.getDate();case j.Hours:return e.getHours();case j.Minutes:return e.getMinutes();case j.Seconds:return e.getSeconds();case j.FractionalSeconds:return e.getMilliseconds();case j.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function W(t,e,r=Ee.Format,n=!1){return function(o,i){return vC(o,i,t,e,r,n)}}function vC(t,e,r,n,o,i){switch(r){case L.Months:return cC(e,o,n)[t.getMonth()];case L.Days:return aC(e,o,n)[t.getDay()];case L.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(i){let u=lC(e),l=dC(e,o,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,M=s>=f.hours&&a>=f.minutes,v=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Et.Short:return(o>=0?"+":"")+We(s,2,i)+We(Math.abs(o%60),2,i);case Et.ShortGMT:return"GMT"+(o>=0?"+":"")+We(s,1,i);case Et.Long:return"GMT"+(o>=0?"+":"")+We(s,2,i)+":"+We(Math.abs(o%60),2,i);case Et.Extended:return n===0?"Z":(o>=0?"+":"")+We(s,2,i)+":"+We(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}var yC=0,fs=4;function DC(t){let e=ps(t,yC,1).getDay();return ps(t,0,1+(e<=fs?fs:fs+7)-e)}function qp(t){let e=t.getDay(),r=e===0?-3:fs-e;return ps(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Du(t,e=!1){return function(r,n){let o;if(e){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=qp(r),s=DC(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return We(o,t,gs(n,zt.MinusSign))}}function ds(t,e=!1){return function(r,n){let i=qp(r).getFullYear();return We(i,t,gs(n,zt.MinusSign),e)}}var wu={};function wC(t){if(wu[t])return wu[t];let e;switch(t){case"G":case"GG":case"GGG":e=W(L.Eras,z.Abbreviated);break;case"GGGG":e=W(L.Eras,z.Wide);break;case"GGGGG":e=W(L.Eras,z.Narrow);break;case"y":e=te(j.FullYear,1,0,!1,!0);break;case"yy":e=te(j.FullYear,2,0,!0,!0);break;case"yyy":e=te(j.FullYear,3,0,!1,!0);break;case"yyyy":e=te(j.FullYear,4,0,!1,!0);break;case"Y":e=ds(1);break;case"YY":e=ds(2,!0);break;case"YYY":e=ds(3);break;case"YYYY":e=ds(4);break;case"M":case"L":e=te(j.Month,1,1);break;case"MM":case"LL":e=te(j.Month,2,1);break;case"MMM":e=W(L.Months,z.Abbreviated);break;case"MMMM":e=W(L.Months,z.Wide);break;case"MMMMM":e=W(L.Months,z.Narrow);break;case"LLL":e=W(L.Months,z.Abbreviated,Ee.Standalone);break;case"LLLL":e=W(L.Months,z.Wide,Ee.Standalone);break;case"LLLLL":e=W(L.Months,z.Narrow,Ee.Standalone);break;case"w":e=Du(1);break;case"ww":e=Du(2);break;case"W":e=Du(1,!0);break;case"d":e=te(j.Date,1);break;case"dd":e=te(j.Date,2);break;case"c":case"cc":e=te(j.Day,1);break;case"ccc":e=W(L.Days,z.Abbreviated,Ee.Standalone);break;case"cccc":e=W(L.Days,z.Wide,Ee.Standalone);break;case"ccccc":e=W(L.Days,z.Narrow,Ee.Standalone);break;case"cccccc":e=W(L.Days,z.Short,Ee.Standalone);break;case"E":case"EE":case"EEE":e=W(L.Days,z.Abbreviated);break;case"EEEE":e=W(L.Days,z.Wide);break;case"EEEEE":e=W(L.Days,z.Narrow);break;case"EEEEEE":e=W(L.Days,z.Short);break;case"a":case"aa":case"aaa":e=W(L.DayPeriods,z.Abbreviated);break;case"aaaa":e=W(L.DayPeriods,z.Wide);break;case"aaaaa":e=W(L.DayPeriods,z.Narrow);break;case"b":case"bb":case"bbb":e=W(L.DayPeriods,z.Abbreviated,Ee.Standalone,!0);break;case"bbbb":e=W(L.DayPeriods,z.Wide,Ee.Standalone,!0);break;case"bbbbb":e=W(L.DayPeriods,z.Narrow,Ee.Standalone,!0);break;case"B":case"BB":case"BBB":e=W(L.DayPeriods,z.Abbreviated,Ee.Format,!0);break;case"BBBB":e=W(L.DayPeriods,z.Wide,Ee.Format,!0);break;case"BBBBB":e=W(L.DayPeriods,z.Narrow,Ee.Format,!0);break;case"h":e=te(j.Hours,1,-12);break;case"hh":e=te(j.Hours,2,-12);break;case"H":e=te(j.Hours,1);break;case"HH":e=te(j.Hours,2);break;case"m":e=te(j.Minutes,1);break;case"mm":e=te(j.Minutes,2);break;case"s":e=te(j.Seconds,1);break;case"ss":e=te(j.Seconds,2);break;case"S":e=te(j.FractionalSeconds,1);break;case"SS":e=te(j.FractionalSeconds,2);break;case"SSS":e=te(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ls(Et.Short);break;case"ZZZZZ":e=ls(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ls(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ls(Et.Long);break;default:return null}return wu[t]=e,e}function Wp(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function EC(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function IC(t,e,r){let n=r?-1:1,o=t.getTimezoneOffset(),i=Wp(e,o);return EC(t,n*(i-o))}function CC(t){if(Fp(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return ps(o,i-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(fC))return bC(n)}let e=new Date(t);if(!Fp(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function bC(t){let e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,u),e}function Fp(t){return t instanceof Date&&!isNaN(t.valueOf())}function ms(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var Eu=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$O=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Eu(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let c=o.get(s);o.move(c,a),Lp(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Lp(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Z(Bt),Z(fn),Z(gu))},e.\u0275dir=gn({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Lp(t,e){t.context.$implicit=e.item}var UO=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new Iu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){jp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){jp("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Z(Bt),Z(fn))},e.\u0275dir=gn({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Iu=class{constructor(){this.$implicit=null,this.ngIf=null}};function jp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${De(e)}'.`)}function Zp(t,e){return new w(2100,!1)}var Cu=class{createSubscription(e,r){return mu(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){mu(()=>e.unsubscribe())}},bu=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},MC=new bu,SC=new Cu,BO=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(nr(n))return MC;if(hu(n))return SC;throw Zp(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(o){return new(o||e)(Z(vn,16))},e.\u0275pipe=bc({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var TC="mediumDate",xC=new E(""),NC=new E(""),HO=(()=>{let e=class e{constructor(n,o,i){this.locale=n,this.defaultTimezone=o,this.defaultOptions=i}transform(n,o,i,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??TC,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return pC(n,a,s||this.locale,c)}catch(a){throw Zp(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(Z(os,16),Z(xC,24),Z(NC,24))},e.\u0275pipe=bc({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Yp=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=pt({type:e}),e.\u0275inj=ht({});let t=e;return t})(),Au="browser",AC="server";function _C(t){return t===Au}function vs(t){return t===AC}var Qp=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>_C(p(at))?new Mu(p(le),window):new Su});let t=e;return t})(),Mu=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=RC(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function RC(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var Su=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},rr=class{};var $r=class{},Ds=class{},Ct=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Ru=class{encodeKey(e){return Jp(e)}encodeValue(e){return Jp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function OC(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var PC=/%(\d[a-f0-9])/gi,kC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Jp(t){return encodeURIComponent(t).replace(PC,(e,r)=>kC[r]??e)}function ys(t){return`${t}`}var qt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ru,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=OC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map(ys):[ys(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(ys(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(ys(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Ou=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function FC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Xp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function eg(t){return typeof Blob<"u"&&t instanceof Blob}function tg(t){return typeof FormData<"u"&&t instanceof FormData}function LC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Vr=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(FC(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new Ct,this.context??=new Ou,!this.params)this.params=new qt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Wt=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Wt||{}),Ur=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Ct,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},ws=class t extends Ur{constructor(e={}){super(e),this.type=Wt.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Br=class t extends Ur{constructor(e={}){super(e),this.type=Wt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Gt=class extends Ur{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},sg=200,jC=204;function _u(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Fu=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Vr)s=n;else{let u;i.headers instanceof Ct?u=i.headers:u=new Ct(i.headers);let l;i.params&&(i.params instanceof qt?l=i.params:l=new qt({fromObject:i.params})),s=new Vr(n,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=b(s).pipe(Je(u=>this.handler.handle(u)));if(n instanceof Vr||i.observe==="events")return a;let c=a.pipe(me(u=>u instanceof Br));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(A(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(A(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new qt().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,_u(i,o))}post(n,o,i={}){return this.request("POST",n,_u(i,o))}put(n,o,i={}){return this.request("PUT",n,_u(i,o))}};e.\u0275fac=function(o){return new(o||e)(y($r))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),VC=/^\)\]\}',?\n/,$C="X-Request-URL";function ng(t){if(t.url)return t.url;let e=$C.toLocaleLowerCase();return t.headers.get(e)}var UC=(()=>{let e=class e{constructor(){this.fetchImpl=p(Pu,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(U)}handle(n){return new T(o=>{let i=new AbortController;return this.doRequest(n,i.signal,o).then(ku,s=>o.error(new Gt({error:s}))),()=>i.abort()})}doRequest(n,o,i){return po(this,null,function*(){let s=this.createRequestInit(n),a;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:o},s)));BC(g),i.next({type:Wt.Sent}),a=yield g}catch(g){i.error(new Gt({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let c=new Ct(a.headers),u=a.statusText,l=ng(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&i.next(new ws({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),M=[],v=a.body.getReader(),I=0,X,G,B=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>po(this,null,function*(){for(;;){let{done:ne,value:Re}=yield v.read();if(ne)break;if(M.push(Re),I+=Re.length,n.reportProgress){G=n.responseType==="text"?(G??"")+(X??=new TextDecoder).decode(Re,{stream:!0}):void 0;let Cn=()=>i.next({type:Wt.DownloadProgress,total:g?+g:void 0,loaded:I,partialText:G});B?B.run(Cn):Cn()}}}));let _e=this.concatChunks(M,I);try{let ne=a.headers.get("Content-Type")??"";h=this.parseBody(n,_e,ne)}catch(ne){i.error(new Gt({error:ne,headers:new Ct(a.headers),status:a.status,statusText:a.statusText,url:ng(a)??n.urlWithParams}));return}}d===0&&(d=h?sg:0),d>=200&&d<300?(i.next(new Br({body:h,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new Gt({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(VC,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:i}}concatChunks(n,o){let i=new Uint8Array(o),s=0;for(let a of n)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Pu=class{};function ku(){}function BC(t){t.then(ku,ku)}function ag(t,e){return e(t)}function HC(t,e){return(r,n)=>e.intercept(r,{handle:o=>t(o,n)})}function zC(t,e,r){return(n,o)=>Te(r,()=>e(n,i=>t(i,o)))}var GC=new E(""),Lu=new E(""),qC=new E(""),cg=new E("",{providedIn:"root",factory:()=>!0});function WC(){let t=null;return(e,r)=>{t===null&&(t=(p(GC,{optional:!0})??[]).reduceRight(HC,ag));let n=p(yt);if(p(cg)){let i=n.add();return t(e,r).pipe(_t(()=>n.remove(i)))}else return t(e,r)}}var rg=(()=>{let e=class e extends $r{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(yt),this.contributeToStability=p(cg)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Lu),...this.injector.get(qC,[])]));this.chain=o.reduceRight((i,s)=>zC(i,s,this.injector),ag)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(_t(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(y(Ds),y(we))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var ZC=/^\)\]\}',?\n/;function YC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var og=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?q(o.\u0275loadImpl()):b(null)).pipe(ve(()=>new T(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((v,I)=>a.setRequestHeader(v,I.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",I=new Ct(a.getAllResponseHeaders()),X=YC(a)||n.url;return u=new ws({headers:I,status:a.status,statusText:v,url:X}),u},d=()=>{let{headers:v,status:I,statusText:X,url:G}=l(),B=null;I!==jC&&(B=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=B?sg:0);let _e=I>=200&&I<300;if(n.responseType==="json"&&typeof B=="string"){let ne=B;B=B.replace(ZC,"");try{B=B!==""?JSON.parse(B):null}catch(Re){B=ne,_e&&(_e=!1,B={error:Re,text:B})}}_e?(s.next(new Br({body:B,headers:v,status:I,statusText:X,url:G||void 0})),s.complete()):s.error(new Gt({error:B,headers:v,status:I,statusText:X,url:G||void 0}))},h=v=>{let{url:I}=l(),X=new Gt({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});s.error(X)},f=!1,g=v=>{f||(s.next(l()),f=!0);let I={type:Wt.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),n.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),s.next(I)},M=v=>{let I={type:Wt.UploadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),s.next(I)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(c),s.next({type:Wt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(y(rr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ug=new E(""),QC="XSRF-TOKEN",KC=new E("",{providedIn:"root",factory:()=>QC}),JC="X-XSRF-TOKEN",XC=new E("",{providedIn:"root",factory:()=>JC}),Es=class{},eb=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ms(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(y(le),y(at),y(KC))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function tb(t,e){let r=t.url.toLowerCase();if(!p(ug)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(Es).getToken(),o=p(XC);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var lg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(lg||{});function nb(t,e){return{\u0275kind:t,\u0275providers:e}}function rb(...t){let e=[Fu,og,rg,{provide:$r,useExisting:rg},{provide:Ds,useFactory:()=>p(UC,{optional:!0})??p(og)},{provide:Lu,useValue:tb,multi:!0},{provide:ug,useValue:!0},{provide:Es,useClass:eb}];for(let r of t)e.push(...r.\u0275providers);return ki(e)}var ig=new E("");function ob(){return nb(lg.LegacyInterceptors,[{provide:ig,useFactory:WC},{provide:Lu,useExisting:ig,multi:!0}])}var rP=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=pt({type:e}),e.\u0275inj=ht({providers:[rb(ob())]});let t=e;return t})();var $u=class extends hs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Uu=class t extends $u{static makeCurrent(){Up(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=sb();return r==null?null:ab(r)}resetBaseElement(){Hr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ms(document.cookie,e)}},Hr=null;function sb(){return Hr=Hr||document.querySelector("base"),Hr?Hr.getAttribute("href"):null}function ab(t){return new URL(t,document.baseURI).pathname}var Bu=class{addToWindow(e){ce.getAngularTestability=(n,o=!0)=>{let i=e.findTestabilityInTree(n,o);if(i==null)throw new w(5103,!1);return i},ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),ce.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let o=ce.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&n()};o.forEach(a=>{a.whenStable(s)})};ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let o=e.getTestability(r);return o??(n?yn().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},cb=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Is=new E(""),pg=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new w(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(y(Is),y(U))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),zr=class{constructor(e){this._doc=e}},ju="ng-app-id",gg=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=vs(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ju}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(ju),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(ju,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(y(le),y(Gi),y($c,8),y(at))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Vu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},zu=/%COMP%/g,mg="%COMP%",ub=`_nghost-${mg}`,lb=`_ngcontent-${mg}`,db=!0,fb=new E("",{providedIn:"root",factory:()=>db});function hb(t){return lb.replace(zu,t)}function pb(t){return ub.replace(zu,t)}function vg(t,e){return e.map(r=>r.replace(zu,t))}var dg=(()=>{let e=class e{constructor(n,o,i,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=vs(c),this.defaultRenderer=new Gr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===nt.ShadowDom&&(o=Q(m({},o),{encapsulation:nt.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof Cs?i.applyToHost(n):i instanceof qr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case nt.Emulated:s=new Cs(u,l,o,this.appId,d,a,c,h);break;case nt.ShadowDom:return new Hu(u,l,n,o,a,c,this.nonce,h);default:s=new qr(u,l,o,d,a,c,h);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(y(pg),y(gg),y(Gi),y(fb),y(le),y(at),y(U),y($c))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Gr=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Vu[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(fg(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(fg(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=Vu[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=Vu[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(ft.DashCase|ft.Important)?e.style.setProperty(r,n,o&ft.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&ft.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=yn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function fg(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Hu=class extends Gr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=vg(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qr=class extends Gr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?vg(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Cs=class extends qr{constructor(e,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(e,r,n,i,s,a,c,u),this.contentAttr=hb(u),this.hostAttr=pb(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},gb=(()=>{let e=class e extends zr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(y(le))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),mb=(()=>{let e=class e extends zr{constructor(n){super(n),this.delegate=p(Rp,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,o,i){return this.delegate.addEventListener(n,o,i)}removeEventListener(n,o,i){return this.delegate.removeEventListener(n,o,i)}};e.\u0275fac=function(o){return new(o||e)(y(le))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),hg=["alt","control","meta","shift"],vb={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},yb={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Db=(()=>{let e=class e extends zr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),hg.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(n,o){let i=vb[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),hg.forEach(a=>{if(a!==i){let c=yb[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(y(le))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function wb(){Uu.makeCurrent()}function Eb(){return new st}function Ib(){return Mh(document),document}var Cb=[{provide:at,useValue:Au},{provide:Vc,useValue:wb,multi:!0},{provide:le,useFactory:Ib,deps:[]}],CP=pu(Ap,"browser",Cb),bb=new E(""),Mb=[{provide:Fr,useClass:Bu,deps:[]},{provide:du,useClass:Xi,deps:[U,es,Fr]},{provide:Xi,useClass:Xi,deps:[U,es,Fr]}],Sb=[{provide:Fi,useValue:"root"},{provide:st,useFactory:Eb,deps:[]},{provide:Is,useClass:gb,multi:!0,deps:[le,U,at]},{provide:Is,useClass:Db,multi:!0,deps:[le]},{provide:Is,useClass:mb,multi:!0},dg,gg,pg,{provide:Zn,useExisting:dg},{provide:rr,useClass:cb,deps:[]},[]],bP=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Gi,useValue:n.appId}]}}};e.\u0275fac=function(o){return new(o||e)(y(bb,12))},e.\u0275mod=pt({type:e}),e.\u0275inj=ht({providers:[...Sb,...Mb],imports:[Yp,_p]});let t=e;return t})();var yg=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(y(le))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var R="primary",so=Symbol("RouteTitle"),Yu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function lr(t){return new Yu(t)}function xb(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function _g(t){return t.length>0?t[t.length-1]:null}function Yt(t){return ca(t)?t:nr(t)?q(Promise.resolve(t)):b(t)}var Ab={exact:Og,subset:Pg},Rg={exact:_b,subset:Rb,ignored:()=>!0};function Dg(t,e,r){return Ab[r.paths](t.root,e.root,r.matrixParams)&&Rg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function _b(t,e){return ct(t,e)}function Og(t,e,r){if(!wn(t.segments,e.segments)||!Ss(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Og(t.children[n],e.children[n],r))return!1;return!0}function Rb(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Ag(t[r],e[r]))}function Pg(t,e,r){return kg(t,e,e.segments,r)}function kg(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!wn(o,r)||e.hasChildren()||!Ss(o,r,n))}else if(t.segments.length===r.length){if(!wn(t.segments,r)||!Ss(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Pg(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!wn(t.segments,o)||!Ss(t.segments,o,n)||!t.children[R]?!1:kg(t.children[R],e,i,n)}}function Ss(t,e,r){return e.every((n,o)=>Rg[r](t[o].parameters,n.parameters))}var Mt=class{constructor(e=new V([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){return kb.serialize(this)}},V=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ts(this)}},Dn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=lr(this.parameters),this._parameterMap}toString(){return Lg(this)}};function Ob(t,e){return wn(t,e)&&t.every((r,n)=>ct(r.parameters,e[n].parameters))}function wn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Pb(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===R&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==R&&(r=r.concat(e(o,n)))}),r}var ao=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>new dr,providedIn:"root"});let t=e;return t})(),dr=class{parse(e){let r=new Ju(e);return new Mt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Wr(e.root,!0)}`,n=jb(e.queryParams),o=typeof e.fragment=="string"?`#${Fb(e.fragment)}`:"";return`${r}${n}${o}`}},kb=new dr;function Ts(t){return t.segments.map(e=>Lg(e)).join("/")}function Wr(t,e){if(!t.hasChildren())return Ts(t);if(e){let r=t.children[R]?Wr(t.children[R],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==R&&n.push(`${o}:${Wr(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Pb(t,(n,o)=>o===R?[Wr(t.children[R],!1)]:[`${o}:${Wr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[R]!=null?`${Ts(t)}/${r[0]}`:`${Ts(t)}/(${r.join("//")})`}}function Fg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bs(t){return Fg(t).replace(/%3B/gi,";")}function Fb(t){return encodeURI(t)}function Ku(t){return Fg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xs(t){return decodeURIComponent(t)}function wg(t){return xs(t.replace(/\+/g,"%20"))}function Lg(t){return`${Ku(t.path)}${Lb(t.parameters)}`}function Lb(t){return Object.entries(t).map(([e,r])=>`;${Ku(e)}=${Ku(r)}`).join("")}function jb(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${bs(r)}=${bs(o)}`).join("&"):`${bs(r)}=${bs(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Vb=/^[^\/()?;#]+/;function Gu(t){let e=t.match(Vb);return e?e[0]:""}var $b=/^[^\/()?;=#]+/;function Ub(t){let e=t.match($b);return e?e[0]:""}var Bb=/^[^=?&#]+/;function Hb(t){let e=t.match(Bb);return e?e[0]:""}var zb=/^[^&#]+/;function Gb(t){let e=t.match(zb);return e?e[0]:""}var Ju=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[R]=new V(e,r)),n}parseSegment(){let e=Gu(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new Dn(xs(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Ub(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Gu(this.remaining);o&&(n=o,this.capture(n))}e[xs(r)]=xs(n)}parseQueryParam(e){let r=Hb(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=Gb(this.remaining);s&&(n=s,this.capture(n))}let o=wg(r),i=wg(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Gu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=R);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[R]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function jg(t){return t.segments.length>0?new V([],{[R]:t}):t}function Vg(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Vg(o);if(n===R&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new V(t.segments,e);return qb(r)}function qb(t){if(t.numberOfChildren===1&&t.children[R]){let e=t.children[R];return new V(t.segments.concat(e.segments),e.children)}return t}function En(t){return t instanceof Mt}function Wb(t,e,r=null,n=null){let o=$g(t);return Ug(o,e,r,n)}function $g(t){let e;function r(i){let s={};for(let c of i.children){let u=r(c);s[c.outlet]=u}let a=new V(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=jg(n);return e??o}function Ug(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return qu(o,o,o,r,n);let i=Zb(e);if(i.toRoot())return qu(o,o,new V([],{}),r,n);let s=Yb(i,o,t),a=s.processChildren?Qr(s.segmentGroup,s.index,i.commands):Hg(s.segmentGroup,s.index,i.commands);return qu(o,s.segmentGroup,a,r,n)}function Ns(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Xr(t){return typeof t=="object"&&t!=null&&t.outlets}function qu(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Bg(t,e,r);let a=jg(Vg(s));return new Mt(a,i,o)}function Bg(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Bg(i,e,r)}),new V(t.segments,n)}var As=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ns(n[0]))throw new w(4003,!1);let o=n.find(Xr);if(o&&o!==_g(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Zb(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new As(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new As(r,e,n)}var ar=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function Yb(t,e,r){if(t.isAbsolute)return new ar(e,!0,0);if(!r)return new ar(e,!1,NaN);if(r.parent===null)return new ar(r,!0,0);let n=Ns(t.commands[0])?0:1,o=r.segments.length-1+n;return Qb(r,o,t.numberOfDoubleDots)}function Qb(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new w(4005,!1);o=n.segments.length}return new ar(n,!1,o-i)}function Kb(t){return Xr(t[0])?t[0].outlets:{[R]:t}}function Hg(t,e,r){if(t??=new V([],{}),t.segments.length===0&&t.hasChildren())return Qr(t,e,r);let n=Jb(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==R)&&t.children[R]&&t.numberOfChildren===1&&t.children[R].segments.length===0){let i=Qr(t.children[R],e,r);return new V(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Hg(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new V(t.segments,o)}}function Jb(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(Xr(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Ig(c,u,s))return i;n+=2}else{if(!Ig(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Xu(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Xu(new V([],{}),0,n))}),e}function Eg(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Ig(t,e,r){return t==r.path&&ct(e,r.parameters)}var Kr="imperative",se=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(se||{}),Ue=class{constructor(e,r){this.id=e,this.url=r}},fr=class extends Ue{constructor(e,r,n="imperative",o=null){super(e,r),this.type=se.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ye=class extends Ue{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ae=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ae||{}),_s=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(_s||{}),bt=class extends Ue{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Zt=class extends Ue{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=se.NavigationSkipped}},eo=class extends Ue{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Rs=class extends Ue{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},el=class extends Ue{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class extends Ue{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},nl=class extends Ue{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rl=class extends Ue{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ol=class{constructor(e){this.route=e,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},il=class{constructor(e){this.route=e,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},sl=class{constructor(e){this.snapshot=e,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},al=class{constructor(e){this.snapshot=e,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cl=class{constructor(e){this.snapshot=e,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ul=class{constructor(e){this.snapshot=e,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Os=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=se.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},to=class{},hr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function eM(t,e){return t.providers&&!t._injector&&(t._injector=Ki(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ze(t){return t.outlet||R}function tM(t,e){let r=t.filter(n=>Ze(n)===e);return r.push(...t.filter(n=>Ze(n)!==e)),r}function co(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var ll=class{get injector(){return co(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new uo(this.rootInjector),this.attachRef=null}},uo=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new ll(this.rootInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(y(we))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ps=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=dl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=dl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=fl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return fl(e,this._root).map(r=>r.value)}};function dl(t,e){if(t===e.value)return e;for(let r of e.children){let n=dl(t,r);if(n)return n}return null}function fl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=fl(t,r);if(n.length)return n.unshift(e),n}return[]}var Ne=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function sr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var ks=class extends Ps{constructor(e,r){super(e),this.snapshot=r,El(this,e)}toString(){return this.snapshot.toString()}};function zg(t){let e=nM(t),r=new ae([new Dn("",{})]),n=new ae({}),o=new ae({}),i=new ae({}),s=new ae(""),a=new In(r,n,i,s,o,R,t,e.root);return a.snapshot=e.root,new ks(new Ne(a,[]),e)}function nM(t){let e={},r={},n={},o="",i=new cr([],e,n,o,r,R,t,null,{});return new Ls("",new Ne(i,[]))}var In=class{constructor(e,r,n,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[so]))??b(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(e=>lr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>lr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Fs(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),o?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},o&&qg(o)&&(n.resolve[so]=o.title),n}var cr=class{get title(){return this.data?.[so]}constructor(e,r,n,o,i,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=lr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Ls=class extends Ps{constructor(e,r){super(r),this.url=e,El(this,r)}toString(){return Gg(this._root)}};function El(t,e){e.value._routerState=t,e.children.forEach(r=>El(t,r))}function Gg(t){let e=t.children.length>0?` { ${t.children.map(Gg).join(", ")} } `:"";return`${t.value}${e}`}function Wu(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,ct(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),ct(e.params,r.params)||t.paramsSubject.next(r.params),Nb(e.url,r.url)||t.urlSubject.next(r.url),ct(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function hl(t,e){let r=ct(t.params,e.params)&&Ob(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||hl(t.parent,e.parent))}function qg(t){return typeof t.title=="string"||t.title===null}var rM=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new ue,this.deactivateEvents=new ue,this.attachEvents=new ue,this.detachEvents=new ue,this.parentContexts=p(uo),this.location=p(Bt),this.changeDetector=p(vn),this.inputBinder=p(Bs,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new pl(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=gn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Jn]});let t=e;return t})(),pl=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===In?this.route:e===uo?this.childContexts:this.parent.get(e,r)}},Bs=new E(""),Cg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:o}=n,i=wr([o.queryParams,o.params,o.data]).pipe(ve(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?b(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=Op(o.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,i)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function oM(t,e,r){let n=no(t,e._root,r?r._root:void 0);return new ks(n,e)}function no(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=iM(t,e,r);return new Ne(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>no(t,a)),s}}let n=sM(e.value),o=e.children.map(i=>no(t,i));return new Ne(n,o)}}function iM(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return no(t,n,o);return no(t,n)})}function sM(t){return new In(new ae(t.url),new ae(t.params),new ae(t.queryParams),new ae(t.fragment),new ae(t.data),t.outlet,t.component,t)}var ro=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Wg="ngNavigationCancelingError";function js(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=En(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Zg(!1,Ae.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Zg(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Wg]=!0,r.cancellationCode=e,r}function aM(t){return Yg(t)&&En(t.url)}function Yg(t){return!!t&&t[Wg]}var cM=(t,e,r,n)=>A(o=>(new gl(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),gl=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Wu(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=sr(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=sr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=sr(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=sr(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new ul(i.value.snapshot))}),e.children.length&&this.forwardEvent(new al(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(Wu(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wu(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Vs=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ur=class{constructor(e,r){this.component=e,this.route=r}};function uM(t,e,r){let n=t._root,o=e?e._root:null;return Zr(n,o,r,[n.value])}function lM(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function gr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!hf(t)?t:e.get(t):n}function Zr(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=sr(e);return t.children.forEach(s=>{dM(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Jr(a,r.getContext(s),o)),o}function dM(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=fM(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Vs(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Zr(t,e,a?a.children:null,n,o):Zr(t,e,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ur(a.outlet.component,s))}else s&&Jr(e,a,o),o.canActivateChecks.push(new Vs(n)),i.component?Zr(t,null,a?a.children:null,n,o):Zr(t,null,r,n,o);return o}function fM(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!wn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wn(t.url,e.url)||!ct(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hl(t,e)||!ct(t.queryParams,e.queryParams);case"paramsChange":default:return!hl(t,e)}}function Jr(t,e,r){let n=sr(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?Jr(s,e.children.getContext(i),r):Jr(s,null,r):Jr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new ur(e.outlet.component,o)):r.canDeactivateChecks.push(new ur(null,o)):r.canDeactivateChecks.push(new ur(null,o))}function lo(t){return typeof t=="function"}function hM(t){return typeof t=="boolean"}function pM(t){return t&&lo(t.canLoad)}function gM(t){return t&&lo(t.canActivate)}function mM(t){return t&&lo(t.canActivateChild)}function vM(t){return t&&lo(t.canDeactivate)}function yM(t){return t&&lo(t.canMatch)}function Qg(t){return t instanceof lt||t?.name==="EmptyError"}var Ms=Symbol("INITIAL_VALUE");function pr(){return ve(t=>wr(t.map(e=>e.pipe(Pe(1),ha(Ms)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===Ms)return Ms;if(r===!1||DM(r))return r}return!0}),me(e=>e!==Ms),Pe(1)))}function DM(t){return En(t)||t instanceof ro}function wM(t,e){return Y(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?b(Q(m({},r),{guardsResult:!0})):EM(s,n,o,t).pipe(Y(a=>a&&hM(a)?IM(n,i,t,e):b(a)),A(a=>Q(m({},r),{guardsResult:a})))})}function EM(t,e,r,n){return q(t).pipe(Y(o=>TM(o.component,o.route,r,e,n)),Xe(o=>o!==!0,!0))}function IM(t,e,r,n){return q(e).pipe(Je(o=>Nt(bM(o.route.parent,n),CM(o.route,n),SM(t,o.path,r),MM(t,o.route,r))),Xe(o=>o!==!0,!0))}function CM(t,e){return t!==null&&e&&e(new cl(t)),b(!0)}function bM(t,e){return t!==null&&e&&e(new sl(t)),b(!0)}function MM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return b(!0);let o=n.map(i=>zo(()=>{let s=co(e)??r,a=gr(i,s),c=gM(a)?a.canActivate(e,t):Te(s,()=>a(e,t));return Yt(c).pipe(Xe())}));return b(o).pipe(pr())}function SM(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>lM(s)).filter(s=>s!==null).map(s=>zo(()=>{let a=s.guards.map(c=>{let u=co(s.node)??r,l=gr(c,u),d=mM(l)?l.canActivateChild(n,t):Te(u,()=>l(n,t));return Yt(d).pipe(Xe())});return b(a).pipe(pr())}));return b(i).pipe(pr())}function TM(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(a=>{let c=co(e)??o,u=gr(a,c),l=vM(u)?u.canDeactivate(t,e,r,n):Te(c,()=>u(t,e,r,n));return Yt(l).pipe(Xe())});return b(s).pipe(pr())}function xM(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let a=gr(s,t),c=pM(a)?a.canLoad(e,r):Te(t,()=>a(e,r));return Yt(c)});return b(i).pipe(pr(),Kg(n))}function Kg(t){return na(oe(e=>{if(typeof e!="boolean")throw js(t,e)}),A(e=>e===!0))}function NM(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let a=gr(s,t),c=yM(a)?a.canMatch(e,r):Te(t,()=>a(e,r));return Yt(c)});return b(i).pipe(pr(),Kg(n))}var oo=class{constructor(e){this.segmentGroup=e||null}},io=class extends Error{constructor(e){super(),this.urlTree=e}};function ir(t){return Rn(new oo(t))}function AM(t){return Rn(new w(4e3,!1))}function _M(t){return Rn(Zg(!1,Ae.GuardRejected))}var ml=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return b(n);if(o.numberOfChildren>1||!o.children[R])return AM(`${e.redirectTo}`);o=o.children[R]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:M}=o,v=Te(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:M}));if(v instanceof Mt)throw new io(v);r=v}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new io(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new Mt(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,o)}),new V(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},vl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function RM(t,e,r,n,o){let i=Il(t,e,r);return i.matched?(n=eM(e,n),NM(n,e,r,o).pipe(A(s=>s===!0?i:m({},vl)))):b(i)}function Il(t,e,r){if(e.path==="**")return OM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},vl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||xb)(r,t,e);if(!o)return m({},vl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function OM(t){return{matched:!0,parameters:t.length>0?_g(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function bg(t,e,r,n){return r.length>0&&FM(t,r,n)?{segmentGroup:new V(e,kM(n,new V(r,t.children))),slicedSegments:[]}:r.length===0&&LM(t,r,n)?{segmentGroup:new V(t.segments,PM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new V(t.segments,t.children),slicedSegments:r}}function PM(t,e,r,n){let o={};for(let i of r)if(Hs(t,e,i)&&!n[Ze(i)]){let s=new V([],{});o[Ze(i)]=s}return m(m({},n),o)}function kM(t,e){let r={};r[R]=e;for(let n of t)if(n.path===""&&Ze(n)!==R){let o=new V([],{});r[Ze(n)]=o}return r}function FM(t,e,r){return r.some(n=>Hs(t,e,n)&&Ze(n)!==R)}function LM(t,e,r){return r.some(n=>Hs(t,e,n))}function Hs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function jM(t,e,r,n){return Ze(t)!==n&&(n===R||!Hs(e,r,t))?!1:Il(e,t,r).matched}function VM(t,e,r){return e.length===0&&!t.children[r]}var yl=class{};function $M(t,e,r,n,o,i,s="emptyOnly"){return new Dl(t,e,r,n,o,s,i).recognize()}var UM=31,Dl=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ml(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=bg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(({children:r,rootSnapshot:n})=>{let o=new Ne(n,r),i=new Ls("",o),s=Wb(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new cr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),R,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,R,r).pipe(A(n=>({children:n,rootSnapshot:r})),Oe(n=>{if(n instanceof io)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof oo?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(A(s=>s instanceof Ne?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return q(i).pipe(Je(s=>{let a=n.children[s],c=tM(r,s);return this.processSegmentGroup(e,c,a,s,o)}),fa((s,a)=>(s.push(...a),s)),At(null),da(),Y(s=>{if(s===null)return ir(n);let a=Jg(s);return BM(a),b(a)}))}processSegment(e,r,n,o,i,s,a){return q(r).pipe(Je(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,o,i,s,a).pipe(Oe(u=>{if(u instanceof oo)return b(null);throw u}))),Xe(c=>!!c),Oe(c=>{if(Qg(c))return VM(n,o,i)?b(new yl):ir(n);throw c}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,c){return jM(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,c):ir(o):ir(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Il(r,o,i);if(!c)return ir(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>UM&&(this.allowRedirects=!1));let f=new cr(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Mg(o),Ze(o),o.component??o._loadedComponent??null,o,Sg(o)),g=Fs(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let M=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(o,M).pipe(Y(v=>this.processSegment(e,n,r,v.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=RM(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(ve(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(ve(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new cr(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Mg(n),Ze(n),n.component??n._loadedComponent??null,n,Sg(n)),M=Fs(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(M.params),g.data=Object.freeze(M.data);let{segmentGroup:v,slicedSegments:I}=bg(r,h,f,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,g).pipe(A(G=>new Ne(g,G)));if(u.length===0&&I.length===0)return b(new Ne(g,[]));let X=Ze(n)===i;return this.processSegment(l,u,v,I,X?R:i,!0,g).pipe(A(G=>new Ne(g,G instanceof Ne?[G]:[])))}))):ir(r)))}getChildConfig(e,r,n){return r.children?b({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?b({routes:r._loadedRoutes,injector:r._loadedInjector}):xM(e,r,n,this.urlSerializer).pipe(Y(o=>o?this.configLoader.loadChildren(e,r).pipe(oe(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):_M(r))):b({routes:[],injector:e})}};function BM(t){t.sort((e,r)=>e.value.outlet===R?-1:r.value.outlet===R?1:e.value.outlet.localeCompare(r.value.outlet))}function HM(t){let e=t.value.routeConfig;return e&&e.path===""}function Jg(t){let e=[],r=new Set;for(let n of t){if(!HM(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Jg(n.children);e.push(new Ne(n.value,o))}return e.filter(n=>!r.has(n))}function Mg(t){return t.data||{}}function Sg(t){return t.resolve||{}}function zM(t,e,r,n,o,i){return Y(s=>$M(t,e,r,n,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>Q(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function GM(t,e){return Y(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return b(r);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Xg(c))s.add(u);let a=0;return q(s).pipe(Je(c=>i.has(c)?qM(c,n,t,e):(c.data=Fs(c,c.parent,t).resolve,b(void 0))),oe(()=>a++),Pn(1),Y(c=>a===s.size?b(r):ge))})}function Xg(t){let e=t.children.map(r=>Xg(r)).flat();return[t,...e]}function qM(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!qg(o)&&(i[so]=o.title),WM(i,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=Fs(t,t.parent,r).resolve,null)))}function WM(t,e,r,n){let o=Qu(t);if(o.length===0)return b({});let i={};return q(o).pipe(Y(s=>ZM(t[s],e,r,n).pipe(Xe(),oe(a=>{if(a instanceof ro)throw js(new dr,a);i[s]=a}))),Pn(1),Er(i),Oe(s=>Qg(s)?ge:Rn(s)))}function ZM(t,e,r,n){let o=co(e)??n,i=gr(t,o),s=i.resolve?i.resolve(e,r):Te(o,()=>i(e,r));return Yt(s)}function Zu(t){return ve(e=>{let r=t(e);return r?q(r).pipe(A(()=>e)):b(e)})}var em=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===R);return o}getResolvedTitleForRoute(n){return n.data[so]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(YM),providedIn:"root"});let t=e;return t})(),YM=(()=>{let e=class e extends em{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(y(yg))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fo=new E("",{providedIn:"root",factory:()=>({})}),QM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Sf({type:e,selectors:[["ng-component"]],standalone:!0,features:[Dp],decls:1,vars:0,template:function(o,i){o&1&&uu(0,"router-outlet")},dependencies:[rM],encapsulation:2});let t=e;return t})();function Cl(t){let e=t.children&&t.children.map(Cl),r=e?Q(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==R&&(r.component=QM),r}var $s=new E(""),bl=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(rs)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Yt(n.loadComponent()).pipe(A(tm),oe(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),_t(()=>{this.componentLoaders.delete(n)})),i=new xt(o,()=>new ee).pipe(Nn());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return b({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=KM(o,this.compiler,n,this.onLoadEndListener).pipe(_t(()=>{this.childrenLoaders.delete(o)})),a=new xt(s,()=>new ee).pipe(Nn());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KM(t,e,r,n){return Yt(t.loadChildren()).pipe(A(tm),Y(o=>o instanceof Nr||Array.isArray(o)?b(o):q(e.compileModuleAsync(o))),A(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get($s,[],{optional:!0,self:!0}).flat()),{routes:s.map(Cl),injector:i}}))}function JM(t){return t&&typeof t=="object"&&"default"in t}function tm(t){return JM(t)?t.default:t}var Ml=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(XM),providedIn:"root"});let t=e;return t})(),XM=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nm=new E(""),rm=new E("");function e0(t,e,r){let n=t.get(rm),o=t.get(le);return t.get(U).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),t0(t))),{onViewTransitionCreated:c}=n;return c&&Te(t,()=>c({transition:a,from:e,to:r})),s})}function t0(t){return new Promise(e=>{ru({read:()=>setTimeout(e)},{injector:t})})}var n0=new E(""),Sl=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ee,this.transitionAbortSubject=new ee,this.configLoader=p(bl),this.environmentInjector=p(we),this.urlSerializer=p(ao),this.rootContexts=p(uo),this.location=p(or),this.inputBindingEnabled=p(Bs,{optional:!0})!==null,this.titleStrategy=p(em),this.options=p(fo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Ml),this.createViewTransition=p(nm,{optional:!0}),this.navigationErrorHandler=p(n0,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=i=>this.events.next(new ol(i)),o=i=>this.events.next(new il(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(Q(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new ae({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Kr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(me(s=>s.id!==0),A(s=>Q(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ve(s=>{let a=!1,c=!1;return b(s).pipe(ve(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ae.SupersededByNewNavigation),ge;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Q(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new Zt(u.id,this.urlSerializer.serialize(u.rawUrl),h,_s.IgnoredSameUrlNavigation)),u.resolve(!1),ge}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return b(u).pipe(ve(h=>{let f=this.transitions?.getValue();return this.events.next(new fr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ge:Promise.resolve(h)}),zM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),oe(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=Q(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Rs(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:M,extras:v}=u,I=new fr(h,this.urlSerializer.serialize(f),g,M);this.events.next(I);let X=zg(this.rootComponentType).snapshot;return this.currentTransition=s=Q(m({},u),{targetSnapshot:X,urlAfterRedirects:f,extras:Q(m({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,b(s)}else{let h="";return this.events.next(new Zt(u.id,this.urlSerializer.serialize(u.extractedUrl),h,_s.IgnoredByUrlHandlingStrategy)),u.resolve(!1),ge}}),oe(u=>{let l=new el(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=s=Q(m({},u),{guards:uM(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),wM(this.environmentInjector,u=>this.events.next(u)),oe(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw js(this.urlSerializer,u.guardsResult);let l=new tl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),me(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Ae.GuardRejected),!1)),Zu(u=>{if(u.guards.canActivateChecks.length)return b(u).pipe(oe(l=>{let d=new nl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ve(l=>{let d=!1;return b(l).pipe(GM(this.paramsInheritanceStrategy,this.environmentInjector),oe({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ae.NoDataFromResolver)}}))}),oe(l=>{let d=new rl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Zu(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(oe(f=>{d.component=f}),A(()=>{})));for(let f of d.children)h.push(...l(f));return h};return wr(l(u.targetSnapshot.root)).pipe(At(null),Pe(1))}),Zu(()=>this.afterPreactivation()),ve(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?q(d).pipe(A(()=>s)):b(s)}),A(u=>{let l=oM(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Q(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),oe(()=>{this.events.next(new to)}),cM(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Pe(1),oe({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ye(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Wo(this.transitionAbortSubject.pipe(oe(u=>{throw u}))),_t(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ae.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Oe(u=>{if(c=!0,Yg(u))this.events.next(new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),aM(u)?this.events.next(new hr(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new eo(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Te(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ro){let{message:h,cancellationCode:f}=js(this.urlSerializer,d);this.events.next(new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new hr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return ge}))}))}cancelNavigationTransition(n,o,i){let s=new bt(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),o=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==o?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function r0(t){return t!==Kr}var o0=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(i0),providedIn:"root"});let t=e;return t})(),wl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},i0=(()=>{let e=class e extends wl{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fc(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),om=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:()=>p(s0),providedIn:"root"});let t=e;return t})(),s0=(()=>{let e=class e extends om{constructor(){super(...arguments),this.location=p(or),this.urlSerializer=p(ao),this.options=p(fo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Ml),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Mt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=zg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof fr)this.stateMemento=this.createStateMemento();else if(n instanceof Zt)this.rawUrlTree=o.initialUrl;else if(n instanceof Rs){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(o.targetBrowserUrl??i,o)}}else n instanceof to?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(o.targetBrowserUrl??this.rawUrlTree,o)):n instanceof bt&&(n.code===Ae.GuardRejected||n.code===Ae.NoDataFromResolver)?this.restoreHistory(o):n instanceof eo?this.restoreHistory(o,!0):n instanceof Ye&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=n instanceof Mt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=m(m({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=m(m({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fc(e)))(i||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Yr||{});function im(t,e){t.events.pipe(me(r=>r instanceof Ye||r instanceof bt||r instanceof eo||r instanceof Zt),A(r=>r instanceof Ye||r instanceof Zt?Yr.COMPLETE:(r instanceof bt?r.code===Ae.Redirect||r.code===Ae.SupersededByNewNavigation:!1)?Yr.REDIRECTING:Yr.FAILED),me(r=>r!==Yr.REDIRECTING),Pe(1)).subscribe(()=>{e()})}function a0(t){throw t}var c0={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},u0={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},St=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(Ji),this.stateManager=p(om),this.options=p(fo,{optional:!0})||{},this.pendingTasks=p(yt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Sl),this.urlSerializer=p(ao),this.location=p(or),this.urlHandlingStrategy=p(Ml),this._events=new ee,this.errorHandler=this.options.errorHandler||a0,this.navigated=!1,this.routeReuseStrategy=p(o0),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p($s,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Bs,{optional:!0}),this.eventsSubscription=new K,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof bt&&o.code!==Ae.Redirect&&o.code!==Ae.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Ye)this.navigated=!0;else if(o instanceof hr){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=m({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||r0(i.source)},a);this.scheduleNavigation(c,Kr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}d0(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Kr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=m({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Cl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=i?i.snapshot:this.routerState.snapshot.root;h=$g(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return Ug(h,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=En(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Kr,null,o)}navigate(n,o={skipLocationChange:!1}){return l0(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=m({},c0):o===!1?i=m({},u0):i=o,En(n))return Dg(this.currentUrlTree,n,i);let s=this.parseUrl(n);return Dg(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return im(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function l0(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,c){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new ee,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Ye&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(En(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,o,i,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:xh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:En(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(Z(St),Z(In),Lc("tabindex"),Z(kr),Z(vt),Z(It))},e.\u0275dir=gn({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&lu("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&cu("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Lr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Lr],replaceUrl:[2,"replaceUrl","replaceUrl",Lr],routerLink:"routerLink"},standalone:!0,features:[su,Jn]});let t=e;return t})(),BP=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,o,i,s,a){this.router=n,this.element=o,this.renderer=i,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ue,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof Ye&&this.update()})}ngAfterContentInit(){b(this.links.changes,b(null)).pipe(Ke()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=q(n).pipe(Ke()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){let o=Array.isArray(n)?n:n.split(" ");this.classes=o.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(o=>{n?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let o=f0(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?n.isActive(s,o):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(o){return new(o||e)(Z(St),Z(vt),Z(kr),Z(vn),Z(Tg,8))},e.\u0275dir=gn({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&pp(s,Tg,5),o&2){let a;gp(a=mp())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Jn]});let t=e;return t})();function f0(t){return!!t.paths}var Us=class{};var h0=(()=>{let e=class e{constructor(n,o,i,s,a){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(me(n=>n instanceof Ye),Je(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,o){let i=[];for(let s of o){s.providers&&!s._injector&&(s._injector=Ki(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return q(i).pipe(Ke())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=b(null);let s=i.pipe(Y(a=>a===null?b(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return q([s,a]).pipe(Ke())}else return s})}};e.\u0275fac=function(o){return new(o||e)(y(St),y(rs),y(we),y(Us),y(bl))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),sm=new E(""),p0=(()=>{let e=class e{constructor(n,o,i,s,a={}){this.urlSerializer=n,this.transitions=o,this.viewportScroller=i,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof fr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ye?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Zt&&n.code===_s.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Os&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Os(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(o){$h()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function g0(t){return t.routerState.root}function ho(t,e){return{\u0275kind:t,\u0275providers:e}}function m0(){let t=p(Le);return e=>{let r=t.get(Ht);if(e!==r.components[0])return;let n=t.get(St),o=t.get(am);t.get(Tl)===1&&n.initialNavigation(),t.get(cm,null,O.Optional)?.setUpPreloading(),t.get(sm,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var am=new E("",{factory:()=>new ee}),Tl=new E("",{providedIn:"root",factory:()=>1});function v0(){return ho(2,[{provide:Tl,useValue:0},{provide:ts,multi:!0,deps:[Le],useFactory:e=>{let r=e.get(Bp,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=e.get(St),i=e.get(am);im(o,()=>{n(!0)}),e.get(Sl).afterPreactivation=()=>(n(!0),i.closed?b(void 0):i),o.initialNavigation()}))}}])}function y0(){return ho(3,[{provide:ts,multi:!0,useFactory:()=>{let e=p(St);return()=>{e.setUpLocationChangeListener()}}},{provide:Tl,useValue:2}])}var cm=new E("");function D0(t){return ho(0,[{provide:cm,useExisting:h0},{provide:Us,useExisting:t}])}function w0(){return ho(8,[Cg,{provide:Bs,useExisting:Cg}])}function E0(t){let e=[{provide:nm,useValue:e0},{provide:rm,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return ho(9,e)}var xg=new E("ROUTER_FORROOT_GUARD"),I0=[or,{provide:ao,useClass:dr},St,uo,{provide:In,useFactory:g0,deps:[St]},bl,[]],HP=(()=>{let e=class e{constructor(n){}static forRoot(n,o){return{ngModule:e,providers:[I0,[],{provide:$s,multi:!0,useValue:n},{provide:xg,useFactory:S0,deps:[[St,new Pi,new Ec]]},{provide:fo,useValue:o||{}},o?.useHash?b0():M0(),C0(),o?.preloadingStrategy?D0(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?T0(o):[],o?.bindToComponentInputs?w0().\u0275providers:[],o?.enableViewTransitions?E0().\u0275providers:[],x0()]}}static forChild(n){return{ngModule:e,providers:[{provide:$s,multi:!0,useValue:n}]}}};e.\u0275fac=function(o){return new(o||e)(y(xg,8))},e.\u0275mod=pt({type:e}),e.\u0275inj=ht({});let t=e;return t})();function C0(){return{provide:sm,useFactory:()=>{let t=p(Qp),e=p(U),r=p(fo),n=p(Sl),o=p(ao);return r.scrollOffset&&t.setOffset(r.scrollOffset),new p0(o,n,t,e,r)}}}function b0(){return{provide:It,useClass:zp}}function M0(){return{provide:It,useClass:Nu}}function S0(t){return"guarded"}function T0(t){return[t.initialNavigation==="disabled"?y0().\u0275providers:[],t.initialNavigation==="enabledBlocking"?v0().\u0275providers:[]]}var Ng=new E("");function x0(){return[{provide:Ng,useFactory:m0},{provide:ns,multi:!0,useExisting:Ng}]}var WP=(()=>{class t{http;apiUrl="https://api5.angular-buch.com";constructor(r){this.http=r}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Oe(r=>(console.error(r),b([]))))}getSingle(r){return this.http.get(`${this.apiUrl}/books/${r}`)}remove(r){return this.http.delete(`${this.apiUrl}/books/${r}`)}getAllSearch(r){return this.http.get(`${this.apiUrl}/books/search/${r}`).pipe(Oe(n=>(console.error(n),b([]))))}create(r){return this.http.post(`${this.apiUrl}/books`,r)}update(r){return this.http.put(`${this.apiUrl}/books/${r.isbn}`,r)}check(r){return this.http.get(`${this.apiUrl}/books/${r}/check`)}static \u0275fac=function(n){return new(n||t)(y(Fu))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{m as a,Q as b,ee as c,ae as d,q as e,b as f,Rn as g,A as h,Nt as i,zo as j,Bm as k,ua as l,Ym as m,Qm as n,me as o,Je as p,Jm as q,Pe as r,Xm as s,ev as t,rv as u,ve as v,Wo as w,oe as x,w as y,df as z,D as A,ht as B,E as C,y as D,p as E,Sf as F,pt as G,gn as H,bc as I,ki as J,Jn as K,XR as L,eO as M,Fc as N,Le as O,vt as P,ue as Q,at as R,uD as S,tO as T,Z as U,fn as V,kr as W,U as X,Bt as Y,iO as Z,SE as _,$E as $,cu as aa,QE as ba,KE as ca,fp as da,hp as ea,uu as fa,dI as ga,fI as ha,sO as ia,lu as ja,aO as ka,cO as la,uO as ma,bI as na,vp as oa,lO as pa,dO as qa,fO as ra,hO as sa,pO as ta,gO as ua,nr as va,ts as wa,Ht as xa,mO as ya,vO as za,mu as Aa,yn as Ba,$O as Ca,UO as Da,BO as Ea,HO as Fa,Yp as Ga,_C as Ha,Fu as Ia,GC as Ja,rP as Ka,CP as La,bP as Ma,In as Na,rM as Oa,St as Pa,Tg as Qa,BP as Ra,HP as Sa,WP as Ta}; diff --git a/chunk-VHYXJGGB.js b/chunk-VHYXJGGB.js deleted file mode 100644 index b563f6b..0000000 --- a/chunk-VHYXJGGB.js +++ /dev/null @@ -1 +0,0 @@ -import{a as X}from"./chunk-6WBBFKKJ.js";import{Aa as I,B as y,Ba as L,Ca as J,Da as K,F as k,G as B,H as S,I as j,Ka as Q,L as M,M as P,Ma as W,Na as w,Pa as O,Q as R,Qa as F,S as E,T as r,U as d,V as U,Y as A,_ as p,aa as c,c as N,ca as m,da as n,ea as x,fa as V,ga as H,ha as z,ia as D,ja as f,la as a,ma as v,na as b,qa as q,ra as u,sa as g,ta as G,w as $,za as _}from"./chunk-TH4YVO56.js";var Y=(()=>{let t=class t{constructor(){this.confirm=new R}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=S({type:t,selectors:[["","bmConfirm",""]],hostBindings:function(o,l){o&1&&D("click",function(){return l.onClick()})},inputs:{confirmText:[0,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"}});let e=t;return e})();var Z=(()=>{let t=class t{constructor(s,o,l){this.template=s,this.viewContainer=o,this.authService=l,this.destroy$=new N,this.authService.isAuthenticated$.pipe($(this.destroy$)).subscribe(C=>{C?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};t.\u0275fac=function(o){return new(o||t)(d(U),d(A),d(X))},t.\u0275dir=S({type:t,selectors:[["","bmLoggedinOnly",""]]});let e=t;return e})();var T=(()=>{let t=class t{transform(s){return s?`${s.substring(0,3)}-${s.substring(3)}`:""}};t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=j({name:"isbn",type:t,pure:!0});let e=t;return e})();var pt=e=>["/admin/edit",e];function lt(e,t){if(e&1&&(m(0,"p",9),a(1),n()),e&2){let i=f().ngIf;r(),v(i.subtitle)}}function ft(e,t){if(e&1&&(m(0,"li"),a(1),n()),e&2){let i=t.$implicit;r(),v(i)}}function dt(e,t){if(e&1&&(m(0,"div")(1,"h2"),a(2,"Published"),n(),a(3),u(4,"date"),n()),e&2){let i=f().ngIf;r(3),b(" ",G(4,1,i.published,"longDate")," ")}}function ut(e,t){if(e&1&&x(0,"img",10),e&2){let i=f().ngIf;c("src",i.thumbnailUrl,E)}}function vt(e,t){if(e&1){let i=z();V(0),m(1,"button",11),D("confirm",function(){M(i);let o=f().ngIf,l=f();return P(l.removeBook(o.isbn))}),a(2," Remove book "),n(),m(3,"a",12),a(4," Edit book "),n(),H()}if(e&2){let i=f().ngIf;r(3),c("routerLink",q(1,pt,i.isbn))}}function bt(e,t){if(e&1&&(m(0,"div",1)(1,"h1"),a(2),n(),p(3,lt,2,1,"p",2),m(4,"div",3)(5,"div")(6,"h2"),a(7,"Authors"),n(),m(8,"ul"),p(9,ft,2,1,"li",4),n()(),m(10,"div")(11,"h2"),a(12,"ISBN"),n(),a(13),u(14,"isbn"),n(),p(15,dt,5,4,"div",5),n(),m(16,"h2"),a(17,"Description"),n(),m(18,"p"),a(19),n(),p(20,ut,1,1,"img",6),m(21,"a",7),a(22,"Back to list"),n(),p(23,vt,5,3,"ng-container",8),n()),e&2){let i=t.ngIf;r(2),v(i.title),r(),c("ngIf",i.subtitle),r(6),c("ngForOf",i.authors),r(4),b(" ",g(14,7,i.isbn)," "),r(2),c("ngIf",i.published),r(4),v(i.description),r(),c("ngIf",i.thumbnailUrl)}}var it=(()=>{let t=class t{constructor(s,o,l){this.service=s,this.route=o,this.router=l;let C=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(C)}removeBook(s){this.service.remove(s).subscribe(()=>{this.router.navigateByUrl("/books")})}};t.\u0275fac=function(o){return new(o||t)(d(F),d(Q),d(W))},t.\u0275cmp=k({type:t,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[4,"bmLoggedinOnly"],["role","doc-subtitle"],["alt","Cover",3,"src"],["bmConfirm","Remove book?",1,"red",3,"confirm"],[1,"button",3,"routerLink"]],template:function(o,l){o&1&&(p(0,bt,24,9,"div",0),u(1,"async")),o&2&&c("ngIf",g(1,1,l.book$))},dependencies:[_,I,w,Y,Z,L,J,T]});let e=t;return e})();function gt(e,t){if(e&1&&x(0,"img",6),e&2){let i=f(2);c("src",i.book.thumbnailUrl,E)}}function ht(e,t){if(e&1&&(m(0,"p",7),a(1),n()),e&2){let i=f(2);r(),b(" ",i.book.subtitle," ")}}function kt(e,t){if(e&1&&(m(0,"li"),a(1),n()),e&2){let i=t.$implicit;r(),b(" ",i," ")}}function xt(e,t){if(e&1&&(m(0,"a",1),p(1,gt,1,1,"img",2),m(2,"h2"),a(3),n(),p(4,ht,2,1,"p",3),m(5,"ul",4),p(6,kt,2,1,"li",5),n(),m(7,"div"),a(8),u(9,"isbn"),n()()),e&2){let i=f();c("routerLink",i.book.isbn),r(),c("ngIf",i.book.thumbnailUrl),r(2),v(i.book.title),r(),c("ngIf",i.book.subtitle),r(2),c("ngForOf",i.book.authors),r(2),b("ISBN ",g(9,6,i.book.isbn),"")}}var ot=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=k({type:t,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(o,l){o&1&&p(0,xt,10,8,"a",0),o&2&&c("ngIf",l.book)},dependencies:[_,I,w,T]});let e=t;return e})();function It(e,t){if(e&1&&(m(0,"li"),x(1,"bm-book-list-item",4),n()),e&2){let i=t.$implicit;r(),c("book",i)}}function Ct(e,t){e&1&&(m(0,"li"),a(1," No books available. "),n())}function yt(e,t){if(e&1&&(m(0,"ul",1),p(1,It,2,1,"li",2)(2,Ct,2,0,"li",3),n()),e&2){let i=t.ngIf;r(),c("ngForOf",i),r(),c("ngIf",!i.length)}}var nt=(()=>{let t=class t{constructor(s){this.service=s,this.books$=this.service.getAll()}};t.\u0275fac=function(o){return new(o||t)(d(F))},t.\u0275cmp=k({type:t,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(o,l){o&1&&(m(0,"h1"),a(1,"Books"),n(),p(2,yt,3,2,"ul",0),u(3,"async")),o&2&&(r(2),c("ngIf",g(3,1,l.books$)))},dependencies:[_,I,ot,L]});let e=t;return e})();var Bt=[{path:"",component:nt},{path:":isbn",component:it}],rt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=B({type:t}),t.\u0275inj=y({imports:[O.forChild(Bt),O]});let e=t;return e})();var Zt=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=B({type:t}),t.\u0275inj=y({imports:[K,rt]});let e=t;return e})();export{Zt as BooksModule}; diff --git a/index.html b/index.html index a9bb70a..e5c026c 100644 --- a/index.html +++ b/index.html @@ -19,5 +19,5 @@
Loading ...
- + diff --git a/main-6W7WALDM.js b/main-6W7WALDM.js deleted file mode 100644 index f83cc0b..0000000 --- a/main-6W7WALDM.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as O}from"./chunk-6WBBFKKJ.js";import{A as E,Aa as $,B as C,Ba as ke,C as me,D as h,E as z,Ea as ee,F as I,Fa as Te,G as k,Ga as Ae,Ha as _e,Ia as Oe,J as he,Ja as Me,L as N,La as Pe,M as D,Ma as H,Na as _,O as de,Oa as Ne,Pa as te,Qa as De,R as J,T as m,U as T,X as fe,_ as R,a as re,aa as d,ba as W,c as V,ca as c,da as p,e as ne,ea as B,f as U,g as oe,h as v,ha as L,i as se,ia as A,j as Z,ja as Q,ka as ge,l as G,la as l,m as Y,ma as ve,n as y,na as be,o as g,p as ae,q as ce,qa as we,r as b,ra as Ee,s as pe,sa as Se,t as le,u as ue,v as w,va as ye,wa as X,x as P,xa as Ce,za as Ie}from"./chunk-TH4YVO56.js";var x="Service workers are disabled or not supported by this browser";function Ye(t){return Z(()=>oe(new Error(t)))}var M=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=Ye(x);else{let i=G(e,"controllerchange").pipe(v(()=>e.controller)),r=Z(()=>U(e.controller)),n=se(r,i);this.worker=n.pipe(g(f=>!!f)),this.registration=this.worker.pipe(w(()=>e.getRegistration()));let F=G(e,"message").pipe(v(f=>f.data)).pipe(g(f=>f&&f.type)).pipe(ue());F.connect(),this.events=F}}postMessage(e,o){return this.worker.pipe(b(1),P(i=>{i.postMessage(re({action:e},o))})).toPromise().then(()=>{})}postMessageWithOperation(e,o,i){let r=this.waitForOperationCompleted(i),n=this.postMessage(e,o);return Promise.all([n,r]).then(([,s])=>s)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let o;return typeof e=="string"?o=i=>i.type===e:o=i=>e.includes(i.type),this.events.pipe(g(o))}nextEventOfType(e){return this.eventsOfType(e).pipe(b(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(g(o=>o.nonce===e),b(1),v(o=>{if(o.result!==void 0)return o.result;throw new Error(o.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},q=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new V,!i.isEnabled){this.messages=y,this.notificationClicks=y,this.subscription=y;return}this.messages=this.sw.eventsOfType("PUSH").pipe(v(n=>n.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(v(n=>n.data)),this.pushManager=this.sw.registration.pipe(v(n=>n.pushManager));let r=this.pushManager.pipe(w(n=>n.getSubscription()));this.subscription=Y(r,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(x));let r={userVisibleOnly:!0},n=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(n.length));for(let a=0;aa.subscribe(r)),b(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let i=r=>{if(r===null)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(n=>{if(!n)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(b(1),w(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(r){return new(r||e)(h(M))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),K=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=y,this.unrecoverable=y;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(r){return new(r||e)(h(M))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var Re=new me("");function ze(t,e,o,i){return()=>{if(!(ee(i)&&"serviceWorker"in navigator&&o.enabled!==!1))return;let r=t.get(fe),n=t.get(X);r.runOutsideAngular(()=>{let a=navigator.serviceWorker,u=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",u),n.onDestroy(()=>{a.removeEventListener("controllerchange",u)})});let s;if(typeof o.registrationStrategy=="function")s=o.registrationStrategy();else{let[a,...u]=(o.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":s=U(null);break;case"registerWithDelay":s=Le(+u[0]||0);break;case"registerWhenStable":s=u[0]?Y(je(t),Le(+u[0])):je(t);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${o.registrationStrategy}`)}}r.runOutsideAngular(()=>s.pipe(b(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:o.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function Le(t){return U(null).pipe(pe(t))}function je(t){return t.get(X).isStable.pipe(g(o=>o))}function Je(t,e){return new M(ee(e)&&t.enabled!==!1?navigator.serviceWorker:void 0)}var j=class{};function Qe(t,e={}){return he([q,K,{provide:Re,useValue:t},{provide:j,useValue:e},{provide:M,useFactory:Je,deps:[j,J]},{provide:ye,useFactory:ze,deps:[de,Re,j,J],multi:!0}])}var xe=(()=>{let e=class e{static register(i,r={}){return{ngModule:e,providers:[Qe(i,r)]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=k({type:e}),e.\u0275inj=C({providers:[q,K]});let t=e;return t})();var et=t=>["/books",t];function tt(t,e){if(t&1&&(c(0,"li")(1,"a",6),l(2),c(3,"p",7),l(4),p()()()),t&2){let o=e.$implicit;m(),d("routerLink",we(3,et,o.isbn)),m(),be(" ",o.title," "),m(2),ve(o.subtitle)}}function it(t,e){t&1&&(c(0,"li"),l(1,"No results"),p())}function rt(t,e){if(t&1&&(c(0,"ul",3),R(1,tt,5,5,"li",4)(2,it,2,0,"li",5),p()),t&2){let o=e.ngIf;m(),d("ngForOf",o),m(),d("ngIf",!o.length)}}var Ve=(()=>{let e=class e{constructor(i){this.service=i,this.input$=new V,this.isLoading=!1,this.results$=this.input$.pipe(g(r=>r.length>=3),ce(500),le(),P(()=>this.isLoading=!0),w(r=>this.service.getAllSearch(r)),P(()=>this.isLoading=!1))}};e.\u0275fac=function(r){return new(r||e)(T(De))},e.\u0275cmp=I({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(r,n){if(r&1){let s=L();c(0,"input",1,0),A("input",function(){N(s);let u=ge(1);return D(n.input$.next(u.value))}),p(),R(2,rt,3,2,"ul",2),Ee(3,"async")}r&2&&(W("loading",n.isLoading),m(2),d("ngIf",Se(3,3,n.results$)))},dependencies:[Ie,$,_,ke]});let t=e;return t})();var Ue=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=I({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(r,n){r&1&&(c(0,"h1"),l(1,"Home"),p(),c(2,"a",0),l(3,` Show book list -`),p(),c(4,"h2"),l(5,"Search"),p(),B(6,"bm-search"))},dependencies:[_,Ve]});let t=e;return t})();var We=()=>{let t=z(O),e=z(H);return t.isAuthenticated?!0:(window.alert("Not logged in!"),e.parseUrl("/home"))};var ot=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Ue},{path:"books",loadChildren:()=>import("./chunk-VHYXJGGB.js").then(t=>t.BooksModule)},{path:"admin",loadChildren:()=>import("./chunk-5LUD6JC3.js").then(t=>t.AdminModule),canActivate:[We]}],Be=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=k({type:e}),e.\u0275inj=C({imports:[te.forRoot(ot),te]});let t=e;return t})();var $e=(()=>{let e=class e{constructor(i,r,n){this.http=i,this.swPush=r,this.router=n,this.VAPID_PUBLIC_KEY="BGk2Rx3DEjXdRv9qP8aKrypFoNjISAZ54l-3V05xpPOV-5ZQJvVH9OB9Rz5Ug7H_qH6CEr40f4Pi3DpjzYLbfCA",this.baseUrl="https://api5.angular-buch.com/notifications",this.swPush.notificationClicks.subscribe(s=>{let a=s.notification.data;a?.book?.isbn&&this.router.navigate(["/books",a.book.isbn])})}get isEnabled(){return this.swPush.isEnabled}requestSubscription(){let i=this.swPush.requestSubscription({serverPublicKey:this.VAPID_PUBLIC_KEY});return ne(i).pipe(ae(r=>this.registerOnServer(r)))}registerOnServer(i){return this.http.post(this.baseUrl,i)}};e.\u0275fac=function(r){return new(r||e)(h(Te),h(q),h(H))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ct(t,e){if(t&1){let o=L();c(0,"button",7),A("click",function(){N(o);let r=Q();return D(r.auth.login())}),l(1,"Login"),p()}}function pt(t,e){if(t&1){let o=L();c(0,"button",8),A("click",function(){N(o);let r=Q();return D(r.auth.logout())}),l(1,"Logout"),p()}}var He=(()=>{let e=class e{constructor(i,r,n){this.auth=i,this.swUpdate=r,this.notificationService=n,this.swUpdate.versionUpdates.subscribe(s=>{switch(s.type){case"VERSION_DETECTED":{console.log("Downloading new app version:",s.version.appData);break}case"VERSION_READY":{let a=s.currentVersion.appData,u=s.latestVersion.appData,F=a.version,f=u.version,Ze=u.changelog,Ge=`Update from ${F} to ${f}. Changes: ${Ze}. Install?`;window.confirm(Ge)&&window.location.reload();break}case"VERSION_INSTALLATION_FAILED":{console.log(`Failed to install ${s.version.appData}:`,s.error);break}}}),this.notificationService.isEnabled&&this.setPermission()}setPermission(){"Notification"in window&&(this.permission=Notification.permission)}requestSubscription(){this.notificationService.requestSubscription().subscribe(()=>this.setPermission())}};e.\u0275fac=function(r){return new(r||e)(T(O),T(K),T($e))},e.\u0275cmp=I({type:e,selectors:[["bm-root"]],decls:14,vars:7,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],["aria-label","Notifications",3,"click","disabled"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(r,n){r&1&&(c(0,"nav")(1,"a",0),l(2,"Home"),p(),c(3,"a",1),l(4,"Books"),p(),c(5,"a",2),l(6,"Administration"),p(),c(7,"div",3),R(8,ct,2,0,"button",4)(9,pt,2,0,"button",5),c(10,"button",6),A("click",function(){return n.requestSubscription()}),l(11,"!"),p()()(),c(12,"main"),B(13,"router-outlet"),p()),r&2&&(m(8),d("ngIf",!n.auth.isAuthenticated),m(),d("ngIf",n.auth.isAuthenticated),m(),W("green",n.permission==="granted")("red",n.permission==="denied"),d("disabled",!n.permission))},dependencies:[$,Pe,_,Ne]});let t=e;return t})();var qe=(()=>{let e=class e{constructor(i){this.authService=i}intercept(i,r){let n="1234567890";if(this.authService.isAuthenticated){let s=i.clone({setHeaders:{Authorization:`Bearer ${n}`}});return r.handle(s)}else return r.handle(i)}};e.\u0275fac=function(r){return new(r||e)(h(O))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var Ke=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=k({type:e,bootstrap:[He]}),e.\u0275inj=C({providers:[{provide:Ae,useClass:qe,multi:!0}],imports:[Me,Be,_e,xe.register("ngsw-worker.js",{enabled:!Ce(),registrationStrategy:"registerWhenStable:30000"})]});let t=e;return t})();Oe().bootstrapModule(Ke,{ngZoneEventCoalescing:!0}).catch(t=>console.error(t)); diff --git a/main-FMIN5GQI.js b/main-FMIN5GQI.js new file mode 100644 index 0000000..6fea886 --- /dev/null +++ b/main-FMIN5GQI.js @@ -0,0 +1,2 @@ +import{a as M}from"./chunk-OUM7I4SI.js";import{$ as D,A as E,B as y,C as me,Ca as Ie,D as d,Da as H,E as z,Ea as _e,F as I,G as _,Ha as ee,Ia as ke,J as de,Ja as Ae,Ka as Te,L as N,La as Me,M as R,Ma as Oe,O as fe,Oa as Pe,Pa as $,Qa as T,R as J,Ra as Ne,Sa as te,T as u,Ta as Re,U as k,X as he,a as re,ba as f,c as V,ca as W,da as a,e as ne,ea as p,f as U,fa as B,g as oe,h as v,i as se,ia as L,j as Z,ja as A,ka as Q,l as G,la as ge,m as Y,ma as l,n as C,na as ve,o as g,oa as be,p as ae,q as ce,r as b,ra as we,s as pe,sa as Ee,t as le,ta as Se,u as ue,v as w,wa as Ce,x as P,xa as X,ya as ye}from"./chunk-UZOWJZPK.js";var x="Service workers are disabled or not supported by this browser";function Ge(e){return Z(()=>oe(new Error(e)))}var O=class{constructor(i){if(this.serviceWorker=i,!i)this.worker=this.events=this.registration=Ge(x);else{let t=G(i,"controllerchange").pipe(v(()=>i.controller)),n=Z(()=>U(i.controller)),o=se(n,t);this.worker=o.pipe(g(h=>!!h)),this.registration=this.worker.pipe(w(()=>i.getRegistration()));let F=G(i,"message").pipe(v(h=>h.data)).pipe(g(h=>h&&h.type)).pipe(ue());F.connect(),this.events=F}}postMessage(i,r){return this.worker.pipe(b(1),P(t=>{t.postMessage(re({action:i},r))})).toPromise().then(()=>{})}postMessageWithOperation(i,r,t){let n=this.waitForOperationCompleted(t),o=this.postMessage(i,r);return Promise.all([o,n]).then(([,c])=>c)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(i){let r;return typeof i=="string"?r=t=>t.type===i:r=t=>i.includes(t.type),this.events.pipe(g(r))}nextEventOfType(i){return this.eventsOfType(i).pipe(b(1))}waitForOperationCompleted(i){return this.eventsOfType("OPERATION_COMPLETED").pipe(g(r=>r.nonce===i),b(1),v(r=>{if(r.result!==void 0)return r.result;throw new Error(r.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},q=(()=>{let i=class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new V,!t.isEnabled){this.messages=C,this.notificationClicks=C,this.subscription=C;return}this.messages=this.sw.eventsOfType("PUSH").pipe(v(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(v(o=>o.data)),this.pushManager=this.sw.registration.pipe(v(o=>o.pushManager));let n=this.pushManager.pipe(w(o=>o.getSubscription()));this.subscription=Y(n,this.subscriptionChanges)}requestSubscription(t){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(x));let n={userVisibleOnly:!0},o=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),c=new Uint8Array(new ArrayBuffer(o.length));for(let s=0;ss.subscribe(n)),b(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let t=n=>{if(n===null)throw new Error("Not subscribed to push notifications.");return n.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(b(1),w(t)).toPromise()}decodeBase64(t){return atob(t)}};i.\u0275fac=function(n){return new(n||i)(d(O))},i.\u0275prov=E({token:i,factory:i.\u0275fac});let e=i;return e})(),K=(()=>{let i=class i{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,!t.isEnabled){this.versionUpdates=C,this.unrecoverable=C;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(x));let t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}};i.\u0275fac=function(n){return new(n||i)(d(O))},i.\u0275prov=E({token:i,factory:i.\u0275fac});let e=i;return e})();var De=new me("");function Ye(e,i,r,t){return()=>{if(!(ee(t)&&"serviceWorker"in navigator&&r.enabled!==!1))return;let n=e.get(he),o=e.get(X);n.runOutsideAngular(()=>{let s=navigator.serviceWorker,m=()=>s.controller?.postMessage({action:"INITIALIZE"});s.addEventListener("controllerchange",m),o.onDestroy(()=>{s.removeEventListener("controllerchange",m)})});let c;if(typeof r.registrationStrategy=="function")c=r.registrationStrategy();else{let[s,...m]=(r.registrationStrategy||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":c=U(null);break;case"registerWithDelay":c=Le(+m[0]||0);break;case"registerWhenStable":c=m[0]?Y(je(e),Le(+m[0])):je(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${r.registrationStrategy}`)}}n.runOutsideAngular(()=>c.pipe(b(1)).subscribe(()=>navigator.serviceWorker.register(i,{scope:r.scope}).catch(s=>console.error("Service worker registration failed with:",s))))}}function Le(e){return U(null).pipe(pe(e))}function je(e){return e.get(X).isStable.pipe(g(r=>r))}function ze(e,i){return new O(ee(i)&&e.enabled!==!1?navigator.serviceWorker:void 0)}var j=class{};function Je(e,i={}){return de([q,K,{provide:De,useValue:e},{provide:j,useValue:i},{provide:O,useFactory:ze,deps:[j,J]},{provide:Ce,useFactory:Ye,deps:[fe,De,j,J],multi:!0}])}var xe=(()=>{let i=class i{static register(t,n={}){return{ngModule:i,providers:[Je(t,n)]}}};i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=_({type:i}),i.\u0275inj=y({providers:[q,K]});let e=i;return e})();var Xe=e=>["/books",e];function et(e,i){if(e&1&&(a(0,"li")(1,"a",6),l(2),a(3,"p",7),l(4),p()()()),e&2){let r=i.$implicit;u(),f("routerLink",we(3,Xe,r.isbn)),u(),be(" ",r.title," "),u(2),ve(r.subtitle)}}function tt(e,i){e&1&&(a(0,"li"),l(1,"No results"),p())}function it(e,i){if(e&1&&(a(0,"ul",3),D(1,et,5,5,"li",4)(2,tt,2,0,"li",5),p()),e&2){let r=i.ngIf;u(),f("ngForOf",r),u(),f("ngIf",!r.length)}}var Ve=(()=>{class e{service;input$=new V;isLoading=!1;results$;constructor(r){this.service=r,this.results$=this.input$.pipe(g(t=>t.length>=3),ce(500),le(),P(()=>this.isLoading=!0),w(t=>this.service.getAllSearch(t)),P(()=>this.isLoading=!1))}static \u0275fac=function(t){return new(t||e)(k(Re))};static \u0275cmp=I({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(t,n){if(t&1){let o=L();a(0,"input",1,0),A("input",function(){N(o);let s=ge(1);return R(n.input$.next(s.value))}),p(),D(2,it,3,2,"ul",2),Ee(3,"async")}t&2&&(W("loading",n.isLoading),u(2),f("ngIf",Se(3,3,n.results$)))},dependencies:[Ie,H,T,_e]})}return e})();var Ue=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=I({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(t,n){t&1&&(a(0,"h1"),l(1,"Home"),p(),a(2,"a",0),l(3,` Show book list +`),p(),a(4,"h2"),l(5,"Search"),p(),B(6,"bm-search"))},dependencies:[T,Ve]})}return e})();var We=()=>{let e=z(M),i=z($);return e.isAuthenticated?!0:(window.alert("Not logged in!"),i.parseUrl("/home"))};var nt=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Ue},{path:"books",loadChildren:()=>import("./chunk-UYFSIOAA.js").then(e=>e.BooksModule)},{path:"admin",loadChildren:()=>import("./chunk-7XFUBETA.js").then(e=>e.AdminModule),canActivate:[We]}],Be=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=_({type:e});static \u0275inj=y({imports:[te.forRoot(nt),te]})}return e})();var He=(()=>{class e{http;swPush;router;VAPID_PUBLIC_KEY="BGk2Rx3DEjXdRv9qP8aKrypFoNjISAZ54l-3V05xpPOV-5ZQJvVH9OB9Rz5Ug7H_qH6CEr40f4Pi3DpjzYLbfCA";baseUrl="https://api5.angular-buch.com/notifications";constructor(r,t,n){this.http=r,this.swPush=t,this.router=n,this.swPush.notificationClicks.subscribe(o=>{let c=o.notification.data;c?.book?.isbn&&this.router.navigate(["/books",c.book.isbn])})}get isEnabled(){return this.swPush.isEnabled}requestSubscription(){let r=this.swPush.requestSubscription({serverPublicKey:this.VAPID_PUBLIC_KEY});return ne(r).pipe(ae(t=>this.registerOnServer(t)))}registerOnServer(r){return this.http.post(this.baseUrl,r)}static \u0275fac=function(t){return new(t||e)(d(ke),d(q),d($))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function at(e,i){if(e&1){let r=L();a(0,"button",7),A("click",function(){N(r);let n=Q();return R(n.auth.login())}),l(1,"Login"),p()}}function ct(e,i){if(e&1){let r=L();a(0,"button",8),A("click",function(){N(r);let n=Q();return R(n.auth.logout())}),l(1,"Logout"),p()}}var $e=(()=>{class e{auth;swUpdate;notificationService;permission;constructor(r,t,n){this.auth=r,this.swUpdate=t,this.notificationService=n,this.swUpdate.versionUpdates.subscribe(o=>{switch(o.type){case"VERSION_DETECTED":{console.log("Downloading new app version:",o.version.appData);break}case"VERSION_READY":{let c=o.currentVersion.appData,s=o.latestVersion.appData,m=c.version,F=s.version,h=s.changelog,Ze=`Update from ${m} to ${F}. Changes: ${h}. Install?`;window.confirm(Ze)&&window.location.reload();break}case"VERSION_INSTALLATION_FAILED":{console.log(`Failed to install ${o.version.appData}:`,o.error);break}}}),this.notificationService.isEnabled&&this.setPermission()}setPermission(){"Notification"in window&&(this.permission=Notification.permission)}requestSubscription(){this.notificationService.requestSubscription().subscribe(()=>this.setPermission())}static \u0275fac=function(t){return new(t||e)(k(M),k(K),k(He))};static \u0275cmp=I({type:e,selectors:[["bm-root"]],decls:14,vars:7,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],["aria-label","Notifications",3,"click","disabled"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(t,n){t&1&&(a(0,"nav")(1,"a",0),l(2,"Home"),p(),a(3,"a",1),l(4,"Books"),p(),a(5,"a",2),l(6,"Administration"),p(),a(7,"div",3),D(8,at,2,0,"button",4)(9,ct,2,0,"button",5),a(10,"button",6),A("click",function(){return n.requestSubscription()}),l(11,"!"),p()()(),a(12,"main"),B(13,"router-outlet"),p()),t&2&&(u(8),f("ngIf",!n.auth.isAuthenticated),u(),f("ngIf",n.auth.isAuthenticated),u(),W("green",n.permission==="granted")("red",n.permission==="denied"),f("disabled",!n.permission))},dependencies:[H,Pe,T,Ne]})}return e})();var qe=(()=>{class e{authService;constructor(r){this.authService=r}intercept(r,t){let n="1234567890";if(this.authService.isAuthenticated){let o=r.clone({setHeaders:{Authorization:`Bearer ${n}`}});return t.handle(o)}else return t.handle(r)}static \u0275fac=function(t){return new(t||e)(d(M))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var Ke=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=_({type:e,bootstrap:[$e]});static \u0275inj=y({providers:[{provide:Ae,useClass:qe,multi:!0}],imports:[Oe,Be,Te,xe.register("ngsw-worker.js",{enabled:!ye(),registrationStrategy:"registerWhenStable:30000"})]})}return e})();Me().bootstrapModule(Ke,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e)); diff --git a/ngsw-worker.js b/ngsw-worker.js index 5693a1c..5b7f04c 100644 --- a/ngsw-worker.js +++ b/ngsw-worker.js @@ -1029,7 +1029,7 @@ ${error.stack}`; }; // bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs - var SW_VERSION = "18.0.5"; + var SW_VERSION = "18.1.2"; var DEBUG_LOG_BUFFER_SIZE = 100; var DebugHandler = class { constructor(driver, adapter2) { diff --git a/ngsw.json b/ngsw.json index fc13903..73184a5 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1719994065630, + "timestamp": 1722428193925, "appData": { "version": "1.1.0", "changelog": "Updated Version" @@ -15,15 +15,15 @@ "ignoreVary": true }, "urls": [ - "/chunk-5LUD6JC3.js", - "/chunk-6WBBFKKJ.js", - "/chunk-TH4YVO56.js", - "/chunk-VHYXJGGB.js", + "/chunk-7XFUBETA.js", + "/chunk-OUM7I4SI.js", + "/chunk-UYFSIOAA.js", + "/chunk-UZOWJZPK.js", "/favicon.ico", "/index.html", - "/main-6W7WALDM.js", + "/main-FMIN5GQI.js", "/manifest.webmanifest", - "/polyfills-6EAL64PA.js", + "/polyfills-SCHOHYNV.js", "/styles-NJBHQUZR.css" ], "patterns": [] @@ -58,15 +58,15 @@ } ], "hashTable": { - "/chunk-5LUD6JC3.js": "6a43462c9c4023bbd33a17bb7f6789837f2c4148", - "/chunk-6WBBFKKJ.js": "2af37f2b123b2d3027f6b3f2cc12b20e96f84a48", - "/chunk-TH4YVO56.js": "4a7372b6d86ceb0241240d77731cfeb530d53fed", - "/chunk-VHYXJGGB.js": "a9f30960a437787249474cca156e8f5a917defcf", + "/chunk-7XFUBETA.js": "19bd984c41b2092407c242d83c9b8d0d45f117e5", + "/chunk-OUM7I4SI.js": "2d0f66002deaa8149b92ce5214a9b8b062efe90c", + "/chunk-UYFSIOAA.js": "0b3f2c3ae9d65f0a43d246e47f0873ed97bd66a7", + "/chunk-UZOWJZPK.js": "e50b8d2d1701eb5b29c1ac45b0bfbbf744999104", "/favicon.ico": "9c39f434fe1261f68c5e3eefdf734630d99c5670", - "/index.html": "5127430fc5a8bf68ff4d67ec14fa3cc3af015502", - "/main-6W7WALDM.js": "e8328ddd538629bec67dc447af27f0fe82fe6a41", + "/index.html": "bd82636e7dc0a1450b644e613b3626f32473d44a", + "/main-FMIN5GQI.js": "22edc597513221c27b2ae6e306f32700deb0436b", "/manifest.webmanifest": "9048499ea3aecef4c194bfb5f11d3fcf44b272ab", - "/polyfills-6EAL64PA.js": "d874147a12a6570d9b44e99935e9de8b7f3cabbc", + "/polyfills-SCHOHYNV.js": "d45c76c5960bab3ace7fd6d211b9579456241f8a", "/styles-NJBHQUZR.css": "1965cb9c6760d087d3723890d266699868b7b478" }, "navigationUrls": [ diff --git a/polyfills-6EAL64PA.js b/polyfills-6EAL64PA.js deleted file mode 100644 index f67a2da..0000000 --- a/polyfills-6EAL64PA.js +++ /dev/null @@ -1,2 +0,0 @@ -var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/polyfills-SCHOHYNV.js b/polyfills-SCHOHYNV.js new file mode 100644 index 0000000..de84613 --- /dev/null +++ b/polyfills-SCHOHYNV.js @@ -0,0 +1,2 @@ +var ae=globalThis;function ee(e){return(ae.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ae.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,i){e&&e.measure&&e.measure(j,i)}n("Zone");let Y=class Y{static assertZonePatched(){if(ae.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=Y.current;for(;i.parent;)i=i.parent;return i}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(i,s,o=!1){if(S.hasOwnProperty(i)){let p=ae[ee("forceDuplicateZoneCheck")]===!0;if(!o&&p)throw Error("Already loaded patch: "+i)}else if(!ae["__Zone_disable_"+i]){let p="Zone:"+i;n(p),S[i]=s(ae,Y,w),a(p,p)}}get parent(){return this._parent}get name(){return this._name}constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let o=this._zoneDelegate.intercept(this,i,s),p=this;return function(){return p.runGuarded(o,this,arguments,s)}}run(i,s,o,p){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,i,s,o,p)}finally{b=b.parent}}runGuarded(i,s=null,o,p){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,o,p)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{b=b.parent}}runTask(i,s,o){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");let p=i,{type:H,data:{isPeriodic:M=!1,isRefreshable:se=!1}={}}=i;if(i.state===q&&(H===z||H===g))return;let le=i.state!=Z;le&&p._transitionTo(Z,d);let ue=D;D=p,b={parent:b,zone:this};try{H==g&&i.data&&!M&&!se&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,p,s,o)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=i.state;if(ne!==q&&ne!==X)if(H==z||M||se&&ne===k)le&&p._transitionTo(d,Z,k);else{let h=p._zoneDelegates;this._updateTaskCount(p,-1),le&&p._transitionTo(q,Z,q),se&&(p._zoneDelegates=h)}b=b.parent,D=ue}}scheduleTask(i){if(i.zone&&i.zone!==this){let o=this;for(;o;){if(o===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);o=o.parent}}i._transitionTo(k,q);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(o){throw i._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==k&&i._transitionTo(d,k),i}scheduleMicroTask(i,s,o,p){return this.scheduleTask(new E(G,i,s,o,p,void 0))}scheduleMacroTask(i,s,o,p,H){return this.scheduleTask(new E(g,i,s,o,p,H))}scheduleEventTask(i,s,o,p,H){return this.scheduleTask(new E(z,i,s,o,p,H))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");if(!(i.state!==d&&i.state!==Z)){i._transitionTo(V,d,Z);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(X,V),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(q,V),i.runCount=-1,i}}_updateTaskCount(i,s){let o=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let p=0;pj.hasTask(s,o),onScheduleTask:(j,i,s,o)=>j.scheduleTask(s,o),onInvokeTask:(j,i,s,o,p,H)=>j.invokeTask(s,o,p,H),onCancelTask:(j,i,s,o)=>j.cancelTask(s,o)};class f{get zone(){return this._zone}constructor(i,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,H=s&&s._hasTaskZS;(p||H)&&(this._hasTaskZS=p?o:c,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this._zone))}fork(i,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,s):new t(i,s)}intercept(i,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,s,o):s}invoke(i,s,o,p,H){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,s,o,p,H):s.apply(o,p)}handleError(i,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,s):!0}scheduleTask(i,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==G)U(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(i,s,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,s,o,p):s.callback.apply(o,p)}cancelTask(i,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(i,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,s)}catch(o){this.handleError(i,o)}}_updateTaskCount(i,s){let o=this._taskCounts,p=o[i],H=o[i]=p+s;if(H<0)throw new Error("More tasks executed then were scheduled.");if(p==0||H==0){let M={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:i};this.hasTask(this._zone,M)}}}class E{constructor(i,s,o,p,H,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=s,this.data=p,this.scheduleFn=H,this.cancelFn=M,!o)throw new Error("callback is not defined");this.callback=o;let se=this;i===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ae,se,this,arguments)}}static invokeTask(i,s,o){i||(i=this),Q++;try{return i.runCount++,i.zone.runTask(i,s,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(i,s,o){if(this._state===s||this._state===o)this._state=i,i==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=ee("setTimeout"),m=ee("Promise"),C=ee("then"),_=[],P=!1,I;function x(j){if(I||ae[m]&&(I=ae[m].resolve(0)),I){let i=I[C];i||(i=I.then),i.call(I,j)}else ae[T](j,0)}function U(j){Q===0&&_.length===0&&x(J),j&&_.push(j)}function J(){if(!P){for(P=!0;_.length;){let j=_;_=[];for(let i=0;ib,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},D=null,Q=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),fe="true",he="false",Pe=ee("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var A=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return T.apply(this,Fe(arguments,a+"."+c))};return _e(m,T),m})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=A("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=A("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),m=Ce[T];m||(m=Ce[T]=A("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===$&&(_=$),!_)return;typeof _[m]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[m]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===$&&(C=$),!C)return null;let _=C[m];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let m=a(E,T);return m.cbIdx>=0&&typeof T[m.cbIdx]=="function"?Ge(m.name,T[m.cbIdx],m,c):f.apply(E,T)})}function _e(e,n){e[A("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=A("propagationStopped");function at(e,n){let a=(n?n(e):e)+he,t=(n?n(e):e)+fe,c=Pe+a,f=Pe+t;te[e]={},te[e][he]=c,te[e][fe]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=A(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,Z){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let X;try{k.invoke(k,d,[Z])}catch(g){X=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,Z.type,g,G)}return X};function x(k,d,Z){if(d=d||e.event,!d)return;let V=k||d.target||e,X=V[te[d.type][Z?fe:he]];if(X){let G=[];if(X.length===1){let g=I(X[0],V,d);g&&G.push(g)}else{let g=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,d){if(!k)return!1;let Z=!0;d&&d.useG!==void 0&&(Z=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&k[c]&&(g=k),!g||g[m])return!1;let z=d&&d.eventNameToString,S={},w=g[m]=g[c],b=g[A(f)]=g[f],D=g[A(E)]=g[E],Q=g[A(T)]=g[T],W;d&&d.prepend&&(W=g[A(d.prepend)]=g[d.prepend]);function Y(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let j=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?J:U,S.options)},i=function(r){if(!r.isRemoved){let u=te[r.eventName],v;u&&(v=u[r.capture?fe:he]);let R=v&&r.target[v];if(R){for(let y=0;yre.zone.cancelTask(re);r.call(Te,"abort",ce,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ce)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=ie),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),y)return N}};return g[c]=l(w,C,H,M,G),W&&(g[_]=l(W,P,o,M,G,!0)),g[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,r,arguments))return;let O=te[u],N;O&&(N=O[R?fe:he]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=A("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function m(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=de(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},x=P[0];P[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:Z,handleId:V,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(V?delete E[V]:Z&&(Z[Re]=null))}};let U=Ge(n,P[0],I,T,m);if(!U)return U;let{handleId:J,handle:K,isRefreshable:q,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,q&&!k)){let d=K.refresh;K.refresh=function(){let{zone:Z,state:V}=U;return V==="notScheduled"?(U._state="scheduled",Z._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),d.call(this)}}return K??J??U}else return C.apply(e,P)}),f=de(e,a,C=>function(_,P){let I=P[0],x;Qe(I)?(x=E[I],delete E[I]):(x=I?.[Re],x?I[Re]=null:x=I),x?.type?x.cancelFn&&x.zone.cancelTask(x):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=A("xhrTask"),c=A("xhrSync"),f=A("xhrListener"),E=A("xhrScheduled"),T=A("xhrURL"),m=A("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function x(w){return w[t]}let U=I[Le],J=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[m]=!1;let Q=D[f];U||(U=D[Le],J=D[Ie]),Q&&J.call(D,K,Q);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let j=D[a.__symbol__("loadfalse")];if(D.status!==0&&j&&j.length>0){let i=w.invoke;w.invoke=function(){let s=D[a.__symbol__("loadfalse")];for(let o=0;ofunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],V.apply(w,b)}),X="XMLHttpRequest.send",G=A("fetchTaskAborting"),g=A("fetchTaskScheduling"),z=de(I,"send",()=>function(w,b){if(a.current[g]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(X,d,D,k,Z);w&&w[m]===!0&&!D.aborted&&Q.state===q&&Q.invoke()}}),S=de(I,"abort",()=>function(w,b){let D=x(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[A("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[A("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,m=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let x=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[x];typeof l=="function"&&l.call(this,h)}catch{}}function J(h){return h&&h.then}function K(h){return h}function q(h){return M.reject(h)}let k=T("state"),d=T("value"),Z=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",g=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{Y(h,l,r)}catch(u){Y(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function Y(h,l,r){let u=D();if(h===r)throw new TypeError(Q);if(h[k]===g){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{Y(h,!1,R)})(),h}if(l!==S&&r instanceof M&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==g)i(r),Y(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{Y(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[Z]===Z&&l===z&&(h[k]=h[X],h[d]=h[V]),l===S&&r instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];y&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!r&&Z===r[Z];N&&(r[V]=O,r[X]=R);let L=l.run(y,void 0,N&&y!==q&&y!==K?[]:[O]);Y(r,!0,L)}catch(O){Y(r,!1,O)}},r)}let o="function ZoneAwarePromise() { [native code] }",p=function(){},H=n.AggregateError;class M{static toString(){return o}static resolve(l){return l instanceof M?l:Y(new this(null),z,l)}static reject(l){return Y(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new H([],"All promises were rejected"));let r=[],u=0;try{for(let y of l)u++,r.push(M.resolve(y))}catch{return Promise.reject(new H([],"All promises were rejected"))}if(u===0)return Promise.reject(new H([],"All promises were rejected"));let v=!1,R=[];return new M((y,O)=>{for(let N=0;N{v||(v=!0,y(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new H(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function y(O){u(O)}for(let O of l)J(O)||(O=this.resolve(O)),O.then(R,y);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),y=2,O=0,N=[];for(let L of l){J(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,y--,y===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),y--,y===0&&u(N)):v(B)})}catch(B){v(B)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof M))throw new Error("Must be an instanceof Promise.");r[k]=g,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){Y(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(p),R=a.current;return this[k]==g?this[d].push(R,v,l,r):s(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=M);let u=new r(p);u[Z]=Z;let v=a.current;return this[k]==g?this[d].push(v,u,l,l):s(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let se=n[_]=n.Promise;n.Promise=M;let le=T("thenPatched");function ue(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new M((O,N)=>{u.call(this,O,N)}).then(v,R)},h[le]=!0}t.patchThen=ue;function ne(h){return function(l,r){let u=h.apply(l,r);if(u instanceof M)return u;let v=u.constructor;return v[le]||ue(v),u}}return se&&(ue(se),de(n,"fetch",h=>ne(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=A("OriginalDelegate"),c=A("Promise"),f=A("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,m,C){return m&&m.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=m.prototype;try{if(I.hasOwnProperty(_)){let x=e.ObjectGetOwnPropertyDescriptor(I,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,P),e._redefineProperty(m.prototype,_,x)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,m,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=de,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=_e,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:fe,FALSE_STR:he,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);