diff --git a/404.html b/404.html index 02a6cb5..9403d97 100644 --- a/404.html +++ b/404.html @@ -7,10 +7,10 @@ +
Loading ...
- + diff --git a/chunk-7ZMZLOL6.js b/chunk-3YSZIGIY.js similarity index 99% rename from chunk-7ZMZLOL6.js rename to chunk-3YSZIGIY.js index f77a3bf..12c5d18 100644 --- a/chunk-7ZMZLOL6.js +++ b/chunk-3YSZIGIY.js @@ -1,2 +1,2 @@ -import{$ as Oe,A as Ie,B as we,C as he,D as j,E as N,G as g,H as s,J as G,L as v,M as k,N as fe,O as h,P as pe,Q as l,R as u,S as C,V as Se,W as f,X as Ne,Z as c,a as m,aa as E,b as D,ca as z,e as Ae,ea as ke,f as O,fa as xe,g as Me,ha as Pe,ia as me,ja as Y,k as Ee,ka as Te,la as Be,n as q,na as je,o as V,p as ce,q as b,r as w,s as Fe,sa as Ge,t as de,u as S,ua as Z,v as A,w as M,x as d,xa as ge,ya as x,z as B}from"./chunk-7LGQRHWX.js";var ze=(()=>{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(G),s(j))},e.\u0275dir=d({type:e});let t=e;return t})(),Nt=(()=>{let e=class e extends ze{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=he(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})(),ne=new w("");var Ot={provide:ne,useExisting:V(()=>re),multi:!0};function kt(){let t=me()?me().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var xt=new w(""),re=(()=>{let e=class e extends ze{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!kt())}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(G),s(j),s(xt,8))},e.\u0275dir=d({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&&f("input",function(_){return o._handleInput(_.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(_){return o._compositionEnd(_.target.value)})},features:[E([Ot]),v]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Ye(t){return t!=null&&typeof t.length=="number"}var oe=new w(""),se=new w(""),Pt=/^(?=.{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])?)*$/,H=class{static min(e){return Tt(e)}static max(e){return Bt(e)}static required(e){return jt(e)}static requiredTrue(e){return Gt(e)}static email(e){return Rt(e)}static minLength(e){return Ut(e)}static maxLength(e){return Ht(e)}static pattern(e){return Lt(e)}static nullValidator(e){return Ze(e)}static compose(e){return tt(e)}static composeAsync(e){return nt(e)}};function Tt(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 jt(t){return F(t.value)?{required:!0}:null}function Gt(t){return t.value===!0?null:{required:!0}}function Rt(t){return F(t.value)||Pt.test(t.value)?null:{email:!0}}function Ut(t){return e=>F(e.value)||!Ye(e.value)?null:e.value.lengthYe(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Lt(t){if(!t)return Ze;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 Ze(t){return null}function Xe(t){return t!=null}function Ke(t){return Pe(t)?Ae(t):t}function Je(t){let e={};return t.forEach(n=>{e=n!=null?m(m({},e),n):e}),Object.keys(e).length===0?null:e}function Qe(t,e){return e.map(n=>n(t))}function $t(t){return!t.validate}function et(t){return t.map(e=>$t(e)?e:n=>e.validate(n))}function tt(t){if(!t)return null;let e=t.filter(Xe);return e.length==0?null:function(n){return Je(Qe(n,e))}}function it(t){return t!=null?tt(et(t)):null}function nt(t){if(!t)return null;let e=t.filter(Xe);return e.length==0?null:function(n){let i=Qe(n,e).map(Ke);return Me(i).pipe(O(Je))}}function rt(t){return t!=null?nt(et(t)):null}function Re(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ot(t){return t._rawValidators}function st(t){return t._rawAsyncValidators}function ve(t){return t?Array.isArray(t)?t:[t]:[]}function K(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ue(t,e){let n=ve(e);return ve(t).forEach(r=>{K(n,r)||n.push(r)}),n}function He(t,e){return ve(e).filter(n=>!K(t,n))}var J=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=it(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=rt(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}},p=class extends J{get formDirective(){return null}get path(){return null}},L=class extends J{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Q=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}},Wt={"[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"},Ui=D(m({},Wt),{"[class.ng-submitted]":"isSubmitted"}),at=(()=>{let e=class e extends Q{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(L,2))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&pe("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:[v]});let t=e;return t})(),lt=(()=>{let e=class e extends Q{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(p,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&pe("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:[v]});let t=e;return t})();var R="VALID",X="INVALID",P="PENDING",U="DISABLED";function ye(t){return(ae(t)?t.validators:t)||null}function qt(t){return Array.isArray(t)?it(t):t||null}function _e(t,e){return(ae(e)?e.asyncValidators:t)||null}function zt(t){return Array.isArray(t)?rt(t):t||null}function ae(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function ut(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new q(1e3,"");if(!i[n])throw new q(1001,"")}function ct(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new q(1002,"")})}var $=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,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===R}get invalid(){return this.status===X}get pending(){return this.status==P}get disabled(){return this.status===U}get enabled(){return this.status!==U}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(Ue(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ue(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(He(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(He(e,this._rawAsyncValidators))}hasValidator(e){return K(this._rawValidators,e)}hasAsyncValidator(e){return K(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=P,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=U,this.errors=null,this._forEachChild(i=>{i.disable(D(m({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(D(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=R,this._forEachChild(i=>{i.enable(D(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(D(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===R||this.status===P)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?U:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=P,this._hasOwnPendingAsyncValidator=!0;let n=Ke(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1)}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){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?U:this.errors?X:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(P)?P:this._anyControlsHaveStatus(X)?X:R}_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={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ae(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=zt(this._rawAsyncValidators)}},ee=class extends ${constructor(e,n,i){super(ye(n),_e(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={}){ct(this,!0,e),Object.keys(e).forEach(i=>{ut(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._updateTouched(n),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 dt=new w("CallSetDisabledState",{providedIn:"root",factory:()=>Ce}),Ce="always";function De(t,e){return[...e.path,t]}function Le(t,e,n=Ce){Ve(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Zt(t,e),Kt(t,e),Xt(t,e),Yt(t,e)}function $e(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),ie(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function te(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Yt(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Ve(t,e){let n=ot(t);e.validator!==null?t.setValidators(Re(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=st(t);e.asyncValidator!==null?t.setAsyncValidators(Re(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();te(e._rawValidators,r),te(e._rawAsyncValidators,r)}function ie(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=ot(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=st(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 te(e._rawValidators,i),te(e._rawAsyncValidators,i),n}function Zt(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&ht(t,e)})}function Xt(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&ht(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function ht(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kt(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Jt(t,e){t==null,Ve(t,e)}function Qt(t,e){return ie(t,e)}function ei(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function ti(t){return Object.getPrototypeOf(t.constructor)===Nt}function ii(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ni(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===re?n=o:ti(o)?i=o:r=o}),r||i||n||null}function ri(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function We(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 y=class extends ${constructor(e=null,n,i){super(ye(n),_e(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}),ae(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){We(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){We(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 oi=t=>t instanceof y,si=(()=>{let e=class e extends p{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return De(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=he(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})();var ft=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=d({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var pt=new w("");var ai={provide:p,useExisting:V(()=>T)},T=(()=>{let e=class e extends p{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&&(ie(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 Le(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){$e(i.control||null,i,!1),ri(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,ii(this.form,this.directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&($e(r||null,i),oi(o)&&(Le(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);Jt(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&Qt(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&ie(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(oe,10),s(se,10),s(dt,8))},e.\u0275dir=d({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&f("submit",function(_){return o.onSubmit(_)})("reset",function(){return o.onReset()})},inputs:{form:[S.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[E([ai]),v,B]});let t=e;return t})(),li={provide:p,useExisting:V(()=>mt)},mt=(()=>{let e=class e extends si{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){gt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(oe,10),s(se,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""]],inputs:{name:[S.None,"formGroupName","name"]},features:[E([li]),v]});let t=e;return t})(),ui={provide:p,useExisting:V(()=>le)},le=(()=>{let e=class e extends p{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 De(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){gt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(oe,10),s(se,10))},e.\u0275dir=d({type:e,selectors:[["","formArrayName",""]],inputs:{name:[S.None,"formArrayName","name"]},features:[E([ui]),v]});let t=e;return t})();function gt(t){return!(t instanceof mt)&&!(t instanceof T)&&!(t instanceof le)}var ci={provide:L,useExisting:V(()=>be)},be=(()=>{let e=class e extends L{set isDisabled(i){}constructor(i,r,o,a,_){super(),this._ngModelWarningConfig=_,this._added=!1,this.name=null,this.update=new N,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ni(this,a)}ngOnChanges(i){this._added||this._setUpControl(),ei(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 De(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(p,13),s(oe,10),s(se,10),s(ne,10),s(pt,8))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""]],inputs:{name:[S.None,"formControlName","name"],isDisabled:[S.None,"disabled","isDisabled"],model:[S.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[E([ci]),v,B]});let t=e;return t})();var di=(()=>{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})(),W=class extends ${constructor(e,n,i){super(ye(n),_e(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={}){ct(this,!1,e),e.forEach((i,r)=>{ut(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._updateTouched(n),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 vt=t=>t instanceof W;var yt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:pt,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:dt,useValue:i.callSetDisabledState??Ce}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[di]});let t=e;return t})();var Ct=(()=>{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(G),s(j))},t.\u0275dir=d({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,i){n&1&&f("input",function(o){return i.onInput(o.target.valueAsDate)})("blur",function(){return i.onTouched()})},standalone:!0,features:[E([{provide:ne,useExisting:V(()=>t),multi:!0}])]}),t})();var Vt=(()=>{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)(Fe(x))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bt=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}},At=function(t){return!vt(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function fi(t,e){if(t&1&&(l(0,"p",1),c(1),u()),t&2){let n=e.$implicit;g(),Oe(" ",n,` +import{$ as Oe,A as Ie,B as we,C as he,D as j,E as N,G as g,H as s,J as G,L as v,M as k,N as fe,O as h,P as pe,Q as l,R as u,S as C,V as Se,W as f,X as Ne,Z as c,a as m,aa as E,b as D,ca as z,e as Ae,ea as ke,f as O,fa as xe,g as Me,ha as Pe,ia as me,ja as Y,k as Ee,ka as Te,la as Be,n as q,na as je,o as V,p as ce,q as b,r as w,s as Fe,sa as Ge,t as de,u as S,ua as Z,v as A,w as M,x as d,xa as ge,ya as x,z as B}from"./chunk-FJC2XKMJ.js";var ze=(()=>{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(G),s(j))},e.\u0275dir=d({type:e});let t=e;return t})(),Nt=(()=>{let e=class e extends ze{};e.\u0275fac=(()=>{let i;return function(o){return(i||(i=he(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})(),ne=new w("");var Ot={provide:ne,useExisting:V(()=>re),multi:!0};function kt(){let t=me()?me().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var xt=new w(""),re=(()=>{let e=class e extends ze{constructor(i,r,o){super(i,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!kt())}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(G),s(j),s(xt,8))},e.\u0275dir=d({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&&f("input",function(_){return o._handleInput(_.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(_){return o._compositionEnd(_.target.value)})},features:[E([Ot]),v]});let t=e;return t})();function F(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Ye(t){return t!=null&&typeof t.length=="number"}var oe=new w(""),se=new w(""),Pt=/^(?=.{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])?)*$/,H=class{static min(e){return Tt(e)}static max(e){return Bt(e)}static required(e){return jt(e)}static requiredTrue(e){return Gt(e)}static email(e){return Rt(e)}static minLength(e){return Ut(e)}static maxLength(e){return Ht(e)}static pattern(e){return Lt(e)}static nullValidator(e){return Ze(e)}static compose(e){return tt(e)}static composeAsync(e){return nt(e)}};function Tt(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 jt(t){return F(t.value)?{required:!0}:null}function Gt(t){return t.value===!0?null:{required:!0}}function Rt(t){return F(t.value)||Pt.test(t.value)?null:{email:!0}}function Ut(t){return e=>F(e.value)||!Ye(e.value)?null:e.value.lengthYe(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Lt(t){if(!t)return Ze;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 Ze(t){return null}function Xe(t){return t!=null}function Ke(t){return Pe(t)?Ae(t):t}function Je(t){let e={};return t.forEach(n=>{e=n!=null?m(m({},e),n):e}),Object.keys(e).length===0?null:e}function Qe(t,e){return e.map(n=>n(t))}function $t(t){return!t.validate}function et(t){return t.map(e=>$t(e)?e:n=>e.validate(n))}function tt(t){if(!t)return null;let e=t.filter(Xe);return e.length==0?null:function(n){return Je(Qe(n,e))}}function it(t){return t!=null?tt(et(t)):null}function nt(t){if(!t)return null;let e=t.filter(Xe);return e.length==0?null:function(n){let i=Qe(n,e).map(Ke);return Me(i).pipe(O(Je))}}function rt(t){return t!=null?nt(et(t)):null}function Re(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function ot(t){return t._rawValidators}function st(t){return t._rawAsyncValidators}function ve(t){return t?Array.isArray(t)?t:[t]:[]}function K(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ue(t,e){let n=ve(e);return ve(t).forEach(r=>{K(n,r)||n.push(r)}),n}function He(t,e){return ve(e).filter(n=>!K(t,n))}var J=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=it(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=rt(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}},p=class extends J{get formDirective(){return null}get path(){return null}},L=class extends J{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Q=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}},Wt={"[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"},Ui=D(m({},Wt),{"[class.ng-submitted]":"isSubmitted"}),at=(()=>{let e=class e extends Q{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(L,2))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&pe("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:[v]});let t=e;return t})(),lt=(()=>{let e=class e extends Q{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(s(p,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&pe("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:[v]});let t=e;return t})();var R="VALID",X="INVALID",P="PENDING",U="DISABLED";function ye(t){return(ae(t)?t.validators:t)||null}function qt(t){return Array.isArray(t)?it(t):t||null}function _e(t,e){return(ae(e)?e.asyncValidators:t)||null}function zt(t){return Array.isArray(t)?rt(t):t||null}function ae(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function ut(t,e,n){let i=t.controls;if(!(e?Object.keys(i):i).length)throw new q(1e3,"");if(!i[n])throw new q(1001,"")}function ct(t,e,n){t._forEachChild((i,r)=>{if(n[r]===void 0)throw new q(1002,"")})}var $=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,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===R}get invalid(){return this.status===X}get pending(){return this.status==P}get disabled(){return this.status===U}get enabled(){return this.status!==U}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(Ue(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ue(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(He(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(He(e,this._rawAsyncValidators))}hasValidator(e){return K(this._rawValidators,e)}hasAsyncValidator(e){return K(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=P,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=U,this.errors=null,this._forEachChild(i=>{i.disable(D(m({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(D(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=R,this._forEachChild(i=>{i.enable(D(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(D(m({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===R||this.status===P)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?U:R}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=P,this._hasOwnPendingAsyncValidator=!0;let n=Ke(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1)}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){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?U:this.errors?X:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(P)?P:this._anyControlsHaveStatus(X)?X:R}_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={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ae(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=zt(this._rawAsyncValidators)}},ee=class extends ${constructor(e,n,i){super(ye(n),_e(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={}){ct(this,!0,e),Object.keys(e).forEach(i=>{ut(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._updateTouched(n),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 dt=new w("CallSetDisabledState",{providedIn:"root",factory:()=>Ce}),Ce="always";function De(t,e){return[...e.path,t]}function Le(t,e,n=Ce){Ve(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Zt(t,e),Kt(t,e),Xt(t,e),Yt(t,e)}function $e(t,e,n=!0){let i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),ie(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function te(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Yt(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Ve(t,e){let n=ot(t);e.validator!==null?t.setValidators(Re(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=st(t);e.asyncValidator!==null?t.setAsyncValidators(Re(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();te(e._rawValidators,r),te(e._rawAsyncValidators,r)}function ie(t,e){let n=!1;if(t!==null){if(e.validator!==null){let r=ot(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=st(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 te(e._rawValidators,i),te(e._rawAsyncValidators,i),n}function Zt(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&ht(t,e)})}function Xt(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&ht(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function ht(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Kt(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Jt(t,e){t==null,Ve(t,e)}function Qt(t,e){return ie(t,e)}function ei(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function ti(t){return Object.getPrototypeOf(t.constructor)===Nt}function ii(t,e){t._syncPendingControls(),e.forEach(n=>{let i=n.control;i.updateOn==="submit"&&i._pendingChange&&(n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ni(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(o=>{o.constructor===re?n=o:ti(o)?i=o:r=o}),r||i||n||null}function ri(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function We(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 y=class extends ${constructor(e=null,n,i){super(ye(n),_e(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}),ae(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){We(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){We(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 oi=t=>t instanceof y,si=(()=>{let e=class e extends p{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return De(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=he(e)))(o||e)}})(),e.\u0275dir=d({type:e,features:[v]});let t=e;return t})();var ft=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=d({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var pt=new w("");var ai={provide:p,useExisting:V(()=>T)},T=(()=>{let e=class e extends p{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&&(ie(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 Le(r,i,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),r}getControl(i){return this.form.get(i.path)}removeControl(i){$e(i.control||null,i,!1),ri(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,ii(this.form,this.directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_updateDomValue(){this.directives.forEach(i=>{let r=i.control,o=this.form.get(i.path);r!==o&&($e(r||null,i),oi(o)&&(Le(o,i,this.callSetDisabledState),i.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let r=this.form.get(i.path);Jt(r,i),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let r=this.form.get(i.path);r&&Qt(r,i)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&ie(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(s(oe,10),s(se,10),s(dt,8))},e.\u0275dir=d({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&f("submit",function(_){return o.onSubmit(_)})("reset",function(){return o.onReset()})},inputs:{form:[S.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[E([ai]),v,B]});let t=e;return t})(),li={provide:p,useExisting:V(()=>mt)},mt=(()=>{let e=class e extends si{constructor(i,r,o){super(),this.name=null,this._parent=i,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){gt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(oe,10),s(se,10))},e.\u0275dir=d({type:e,selectors:[["","formGroupName",""]],inputs:{name:[S.None,"formGroupName","name"]},features:[E([li]),v]});let t=e;return t})(),ui={provide:p,useExisting:V(()=>le)},le=(()=>{let e=class e extends p{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 De(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){gt(this._parent)}};e.\u0275fac=function(r){return new(r||e)(s(p,13),s(oe,10),s(se,10))},e.\u0275dir=d({type:e,selectors:[["","formArrayName",""]],inputs:{name:[S.None,"formArrayName","name"]},features:[E([ui]),v]});let t=e;return t})();function gt(t){return!(t instanceof mt)&&!(t instanceof T)&&!(t instanceof le)}var ci={provide:L,useExisting:V(()=>be)},be=(()=>{let e=class e extends L{set isDisabled(i){}constructor(i,r,o,a,_){super(),this._ngModelWarningConfig=_,this._added=!1,this.name=null,this.update=new N,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ni(this,a)}ngOnChanges(i){this._added||this._setUpControl(),ei(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 De(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(p,13),s(oe,10),s(se,10),s(ne,10),s(pt,8))},e.\u0275dir=d({type:e,selectors:[["","formControlName",""]],inputs:{name:[S.None,"formControlName","name"],isDisabled:[S.None,"disabled","isDisabled"],model:[S.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[E([ci]),v,B]});let t=e;return t})();var di=(()=>{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})(),W=class extends ${constructor(e,n,i){super(ye(n),_e(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={}){ct(this,!1,e),e.forEach((i,r)=>{ut(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._updateTouched(n),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 vt=t=>t instanceof W;var yt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:pt,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:dt,useValue:i.callSetDisabledState??Ce}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[di]});let t=e;return t})();var Ct=(()=>{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(G),s(j))},t.\u0275dir=d({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,i){n&1&&f("input",function(o){return i.onInput(o.target.valueAsDate)})("blur",function(){return i.onTouched()})},standalone:!0,features:[E([{provide:ne,useExisting:V(()=>t),multi:!0}])]}),t})();var Vt=(()=>{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)(Fe(x))},e.\u0275prov=ce({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bt=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}},At=function(t){return!vt(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function fi(t,e){if(t&1&&(l(0,"p",1),c(1),u()),t&2){let n=e.$implicit;g(),Oe(" ",n,` `)}}var Et=(()=>{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(T))},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&&k(0,fi,2,1,"p",0),r&2&&h("ngForOf",o.errors)},dependencies:[Y]});let t=e;return t})();var mi=()=>({required:"Title is required"}),gi=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),vi=()=>({atleastonevalue:"At least one author required"});function yi(t,e){if(t&1&&C(0,"input",20),t&2){let n=e.index;h("formControlName",n),fe("aria-label","Author "+n)}}var ue=(()=>{let e=class e{constructor(){this.submitBook=new N,this.form=new ee({title:new y("",{nonNullable:!0,validators:H.required}),subtitle:new y("",{nonNullable:!0}),isbn:new y("",{nonNullable:!0,validators:[H.required,bt],asyncValidators:de(Vt).isbnExists()}),description:new y("",{nonNullable:!0}),published:new y("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new y("",{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 W(i.map(r=>new y(r,{nonNullable:!0})),At)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new y("",{nonNullable:!0}))}submitForm(){let i=this.form.getRawValue(),r=i.authors.filter(a=>!!a),o=D(m({},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:[B],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),f("ngSubmit",function(){return o.submitForm()}),l(1,"label",1),c(2,"Title"),u(),C(3,"input",2)(4,"bm-form-errors",3),l(5,"label",4),c(6,"Subtitle"),u(),C(7,"input",5),l(8,"label",6),c(9,"ISBN"),u(),C(10,"input",7)(11,"bm-form-errors",8),l(12,"label"),c(13,"Authors"),u(),l(14,"button",9),f("click",function(){return o.addAuthorControl()}),c(15," + Author "),u(),l(16,"fieldset",10),k(17,yi,1,2,"input",11),u(),C(18,"bm-form-errors",12),l(19,"label",13),c(20,"Description"),u(),C(21,"textarea",14),l(22,"label",15),c(23,"Published"),u(),C(24,"input",16),l(25,"label",17),c(26,"Thumbnail URL"),u(),C(27,"input",18),l(28,"button",19),c(29," Save "),u()()),r&2&&(h("formGroup",o.form),g(4),h("messages",z(6,mi)),g(7),h("messages",z(7,gi)),g(6),h("ngForOf",o.authors.controls),g(),h("messages",z(8,vi)),g(10),h("disabled",o.form.invalid))},dependencies:[Y,ft,re,at,lt,T,be,le,Ct,Et]});let t=e;return t})();var It=(()=>{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(x),s(Z))},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),f("submitBook",function(_){return o.create(_)}),u())},dependencies:[ue]});let t=e;return t})();function Ci(t,e){if(t&1){let n=Se();l(0,"bm-book-form",1),f("submitBook",function(r){Ie(n);let o=Ne();return we(o.update(r))}),u()}if(t&2){let n=e.ngIf;h("book",n)}}var wt=(()=>{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")),Ee(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(x),s(Ge),s(Z))},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(),k(2,Ci,1,1,"bm-book-form",0),ke(3,"async")),r&2&&(g(2),h("ngIf",xe(3,1,o.book$)))},dependencies:[Te,ue,Be]});let t=e;return t})();var Di=[{path:"",redirectTo:"create",pathMatch:"full"},{path:"create",component:It},{path:"edit/:isbn",component:wt}],St=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[ge.forChild(Di),ge]});let t=e;return t})();var En=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=M({type:e}),e.\u0275inj=b({imports:[je,St,yt]});let t=e;return t})();export{En as AdminModule}; diff --git a/chunk-CACVM5RP.js b/chunk-46PAZQKT.js similarity index 97% rename from chunk-CACVM5RP.js rename to chunk-46PAZQKT.js index e8256a8..f71f771 100644 --- a/chunk-CACVM5RP.js +++ b/chunk-46PAZQKT.js @@ -1 +1 @@ -import{a as Q}from"./chunk-4LHOUONI.js";import{$ as b,A as R,B as U,E as j,F as B,G as r,H as f,I as A,K as M,M as c,O as l,Q as a,R as o,S as k,T as P,U as V,V as H,W as E,X as d,Z as m,_ as v,ba as x,c as w,da as z,ea as u,fa as _,ga as K,ja as h,ka as I,l as O,la as D,ma as q,sa as G,u as $,ua as J,v as g,va as F,x as S,y as N,ya as T}from"./chunk-7LGQRHWX.js";var L=(()=>{let e=class e{transform(s){return s?`${s.substring(0,3)}-${s.substring(3)}`:""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=N({name:"isbn",type:e,pure:!0,standalone:!0});let t=e;return t})();var W=(()=>{let e=class e{constructor(s,n,p){this.template=s,this.viewContainer=n,this.authService=p,this.destroy$=new w,this.authService.isAuthenticated$.pipe(O(this.destroy$)).subscribe(y=>{y?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};e.\u0275fac=function(n){return new(n||e)(f(A),f(M),f(Q))},e.\u0275dir=S({type:e,selectors:[["","bmLoggedinOnly",""]],standalone:!0});let t=e;return t})();var X=(()=>{let e=class e{constructor(){this.confirm=new j}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=S({type:e,selectors:[["","bmConfirm",""]],hostBindings:function(n,p){n&1&&E("click",function(){return p.onClick()})},inputs:{confirmText:[$.None,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"},standalone:!0});let t=e;return t})();var it=t=>["/admin/edit",t];function nt(t,e){if(t&1&&(a(0,"p",9),m(1),o()),t&2){let i=d().ngIf;r(),v(i.subtitle)}}function ot(t,e){if(t&1&&(a(0,"li"),m(1),o()),t&2){let i=e.$implicit;r(),v(i)}}function rt(t,e){if(t&1&&(a(0,"div")(1,"h2"),m(2,"Published"),o(),m(3),u(4,"date"),o()),t&2){let i=d().ngIf;r(3),b(" ",K(4,1,i.published,"longDate")," ")}}function at(t,e){if(t&1&&k(0,"img",10),t&2){let i=d().ngIf;l("src",i.thumbnailUrl,B)}}function st(t,e){if(t&1){let i=H();P(0),a(1,"button",11),E("confirm",function(){R(i);let n=d().ngIf,p=d();return U(p.removeBook(n.isbn))}),m(2," Remove book "),o(),a(3,"a",12),m(4," Edit book "),o(),V()}if(t&2){let i=d().ngIf;r(3),l("routerLink",z(1,it,i.isbn))}}function mt(t,e){if(t&1&&(a(0,"div",1)(1,"h1"),m(2),o(),c(3,nt,2,1,"p",2),a(4,"div",3)(5,"div")(6,"h2"),m(7,"Authors"),o(),a(8,"ul"),c(9,ot,2,1,"li",4),o()(),a(10,"div")(11,"h2"),m(12,"ISBN"),o(),m(13),u(14,"isbn"),o(),c(15,rt,5,4,"div",5),o(),a(16,"h2"),m(17,"Description"),o(),a(18,"p"),m(19),o(),c(20,at,1,1,"img",6),a(21,"a",7),m(22,"Back to list"),o(),c(23,st,5,3,"ng-container",8),o()),t&2){let i=e.ngIf;r(2),v(i.title),r(),l("ngIf",i.subtitle),r(6),l("ngForOf",i.authors),r(4),b(" ",_(14,7,i.isbn)," "),r(2),l("ngIf",i.published),r(4),v(i.description),r(),l("ngIf",i.thumbnailUrl)}}var Y=(()=>{let e=class e{constructor(s,n,p){this.service=s,this.route=n,this.router=p;let y=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(y)}removeBook(s){this.service.remove(s).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(n){return new(n||e)(f(T),f(G),f(J))},e.\u0275cmp=g({type:e,selectors:[["bm-book-details"]],standalone:!0,features:[x],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(n,p){n&1&&(c(0,mt,24,9,"div",0),u(1,"async")),n&2&&l("ngIf",_(1,1,p.book$))},dependencies:[I,h,q,D,F,L,W,X]});let t=e;return t})();function lt(t,e){if(t&1&&k(0,"img",6),t&2){let i=d(2);l("src",i.book.thumbnailUrl,B)}}function ct(t,e){if(t&1&&(a(0,"p",7),m(1),o()),t&2){let i=d(2);r(),b(" ",i.book.subtitle," ")}}function pt(t,e){if(t&1&&(a(0,"li"),m(1),o()),t&2){let i=e.$implicit;r(),b(" ",i," ")}}function dt(t,e){if(t&1&&(a(0,"a",1),c(1,lt,1,1,"img",2),a(2,"h2"),m(3),o(),c(4,ct,2,1,"p",3),a(5,"ul",4),c(6,pt,2,1,"li",5),o(),a(7,"div"),m(8),u(9,"isbn"),o()()),t&2){let i=d();l("routerLink",i.book.isbn),r(),l("ngIf",i.book.thumbnailUrl),r(2),v(i.book.title),r(),l("ngIf",i.book.subtitle),r(2),l("ngForOf",i.book.authors),r(2),b("ISBN ",_(9,6,i.book.isbn),"")}}var Z=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=g({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!0,features:[x],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(n,p){n&1&&c(0,dt,10,8,"a",0),n&2&&l("ngIf",p.book)},dependencies:[I,h,F,L]});let t=e;return t})();function ft(t,e){if(t&1&&(a(0,"li"),k(1,"bm-book-list-item",4),o()),t&2){let i=e.$implicit;r(),l("book",i)}}function ut(t,e){t&1&&(a(0,"li"),m(1," No books available. "),o())}function vt(t,e){if(t&1&&(a(0,"ul",1),c(1,ft,2,1,"li",2)(2,ut,2,0,"li",3),o()),t&2){let i=e.ngIf;r(),l("ngForOf",i),r(),l("ngIf",!i.length)}}var tt=(()=>{let e=class e{constructor(s){this.service=s,this.books$=this.service.getAll()}};e.\u0275fac=function(n){return new(n||e)(f(T))},e.\u0275cmp=g({type:e,selectors:[["bm-book-list"]],standalone:!0,features:[x],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(n,p){n&1&&(a(0,"h1"),m(1,"Books"),o(),c(2,vt,3,2,"ul",0),u(3,"async")),n&2&&(r(2),l("ngIf",_(3,1,p.books$)))},dependencies:[I,h,D,Z]});let t=e;return t})();var Vt=[{path:"",component:tt},{path:":isbn",component:Y}];export{Vt as BOOKS_ROUTES}; +import{a as Q}from"./chunk-NQN62V4F.js";import{$ as b,A as R,B as U,E as j,F as B,G as r,H as f,I as A,K as M,M as c,O as l,Q as a,R as o,S as k,T as P,U as V,V as H,W as E,X as d,Z as m,_ as v,ba as x,c as w,da as z,ea as u,fa as _,ga as K,ja as h,ka as I,l as O,la as D,ma as q,sa as G,u as $,ua as J,v as g,va as F,x as S,y as N,ya as T}from"./chunk-FJC2XKMJ.js";var L=(()=>{let e=class e{transform(s){return s?`${s.substring(0,3)}-${s.substring(3)}`:""}};e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=N({name:"isbn",type:e,pure:!0,standalone:!0});let t=e;return t})();var W=(()=>{let e=class e{constructor(s,n,p){this.template=s,this.viewContainer=n,this.authService=p,this.destroy$=new w,this.authService.isAuthenticated$.pipe(O(this.destroy$)).subscribe(y=>{y?this.viewContainer.createEmbeddedView(this.template):this.viewContainer.clear()})}ngOnDestroy(){this.destroy$.next()}};e.\u0275fac=function(n){return new(n||e)(f(A),f(M),f(Q))},e.\u0275dir=S({type:e,selectors:[["","bmLoggedinOnly",""]],standalone:!0});let t=e;return t})();var X=(()=>{let e=class e{constructor(){this.confirm=new j}onClick(){window.confirm(this.confirmText)&&this.confirm.emit()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=S({type:e,selectors:[["","bmConfirm",""]],hostBindings:function(n,p){n&1&&E("click",function(){return p.onClick()})},inputs:{confirmText:[$.None,"bmConfirm","confirmText"]},outputs:{confirm:"confirm"},standalone:!0});let t=e;return t})();var it=t=>["/admin/edit",t];function nt(t,e){if(t&1&&(a(0,"p",9),m(1),o()),t&2){let i=d().ngIf;r(),v(i.subtitle)}}function ot(t,e){if(t&1&&(a(0,"li"),m(1),o()),t&2){let i=e.$implicit;r(),v(i)}}function rt(t,e){if(t&1&&(a(0,"div")(1,"h2"),m(2,"Published"),o(),m(3),u(4,"date"),o()),t&2){let i=d().ngIf;r(3),b(" ",K(4,1,i.published,"longDate")," ")}}function at(t,e){if(t&1&&k(0,"img",10),t&2){let i=d().ngIf;l("src",i.thumbnailUrl,B)}}function st(t,e){if(t&1){let i=H();P(0),a(1,"button",11),E("confirm",function(){R(i);let n=d().ngIf,p=d();return U(p.removeBook(n.isbn))}),m(2," Remove book "),o(),a(3,"a",12),m(4," Edit book "),o(),V()}if(t&2){let i=d().ngIf;r(3),l("routerLink",z(1,it,i.isbn))}}function mt(t,e){if(t&1&&(a(0,"div",1)(1,"h1"),m(2),o(),c(3,nt,2,1,"p",2),a(4,"div",3)(5,"div")(6,"h2"),m(7,"Authors"),o(),a(8,"ul"),c(9,ot,2,1,"li",4),o()(),a(10,"div")(11,"h2"),m(12,"ISBN"),o(),m(13),u(14,"isbn"),o(),c(15,rt,5,4,"div",5),o(),a(16,"h2"),m(17,"Description"),o(),a(18,"p"),m(19),o(),c(20,at,1,1,"img",6),a(21,"a",7),m(22,"Back to list"),o(),c(23,st,5,3,"ng-container",8),o()),t&2){let i=e.ngIf;r(2),v(i.title),r(),l("ngIf",i.subtitle),r(6),l("ngForOf",i.authors),r(4),b(" ",_(14,7,i.isbn)," "),r(2),l("ngIf",i.published),r(4),v(i.description),r(),l("ngIf",i.thumbnailUrl)}}var Y=(()=>{let e=class e{constructor(s,n,p){this.service=s,this.route=n,this.router=p;let y=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(y)}removeBook(s){this.service.remove(s).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(n){return new(n||e)(f(T),f(G),f(J))},e.\u0275cmp=g({type:e,selectors:[["bm-book-details"]],standalone:!0,features:[x],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(n,p){n&1&&(c(0,mt,24,9,"div",0),u(1,"async")),n&2&&l("ngIf",_(1,1,p.book$))},dependencies:[I,h,q,D,F,L,W,X]});let t=e;return t})();function lt(t,e){if(t&1&&k(0,"img",6),t&2){let i=d(2);l("src",i.book.thumbnailUrl,B)}}function ct(t,e){if(t&1&&(a(0,"p",7),m(1),o()),t&2){let i=d(2);r(),b(" ",i.book.subtitle," ")}}function pt(t,e){if(t&1&&(a(0,"li"),m(1),o()),t&2){let i=e.$implicit;r(),b(" ",i," ")}}function dt(t,e){if(t&1&&(a(0,"a",1),c(1,lt,1,1,"img",2),a(2,"h2"),m(3),o(),c(4,ct,2,1,"p",3),a(5,"ul",4),c(6,pt,2,1,"li",5),o(),a(7,"div"),m(8),u(9,"isbn"),o()()),t&2){let i=d();l("routerLink",i.book.isbn),r(),l("ngIf",i.book.thumbnailUrl),r(2),v(i.book.title),r(),l("ngIf",i.book.subtitle),r(2),l("ngForOf",i.book.authors),r(2),b("ISBN ",_(9,6,i.book.isbn),"")}}var Z=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=g({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!0,features:[x],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(n,p){n&1&&c(0,dt,10,8,"a",0),n&2&&l("ngIf",p.book)},dependencies:[I,h,F,L]});let t=e;return t})();function ft(t,e){if(t&1&&(a(0,"li"),k(1,"bm-book-list-item",4),o()),t&2){let i=e.$implicit;r(),l("book",i)}}function ut(t,e){t&1&&(a(0,"li"),m(1," No books available. "),o())}function vt(t,e){if(t&1&&(a(0,"ul",1),c(1,ft,2,1,"li",2)(2,ut,2,0,"li",3),o()),t&2){let i=e.ngIf;r(),l("ngForOf",i),r(),l("ngIf",!i.length)}}var tt=(()=>{let e=class e{constructor(s){this.service=s,this.books$=this.service.getAll()}};e.\u0275fac=function(n){return new(n||e)(f(T))},e.\u0275cmp=g({type:e,selectors:[["bm-book-list"]],standalone:!0,features:[x],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(n,p){n&1&&(a(0,"h1"),m(1,"Books"),o(),c(2,vt,3,2,"ul",0),u(3,"async")),n&2&&(r(2),l("ngIf",_(3,1,p.books$)))},dependencies:[I,h,D,Z]});let t=e;return t})();var Vt=[{path:"",component:tt},{path:":isbn",component:Y}];export{Vt as BOOKS_ROUTES}; diff --git a/chunk-7LGQRHWX.js b/chunk-7LGQRHWX.js deleted file mode 100644 index 6ccb9f2..0000000 --- a/chunk-7LGQRHWX.js +++ /dev/null @@ -1,8 +0,0 @@ -var hg=Object.defineProperty,pg=Object.defineProperties;var gg=Object.getOwnPropertyDescriptors;var ol=Object.getOwnPropertySymbols;var mg=Object.prototype.hasOwnProperty,vg=Object.prototype.propertyIsEnumerable;var il=(e,t,r)=>t in e?hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||={})mg.call(t,r)&&il(e,r,t[r]);if(ol)for(var r of ol(t))vg.call(t,r)&&il(e,r,t[r]);return e},Y=(e,t)=>pg(e,gg(t));var sl=null;var Es=1,al=Symbol("SIGNAL");function P(e){let t=sl;return sl=e,t}var cl={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 yg(e){if(!(Ms(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Es)){if(!e.producerMustRecompute(e)&&!Cs(e)){e.dirty=!1,e.lastCleanEpoch=Es;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Es}}function ul(e){return e&&(e.nextProducerIndex=0),P(e)}function ll(e,t){if(P(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ms(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Cs(e){Qr(e);for(let t=0;t0}function Qr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Dg(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function wg(){throw new Error}var Ig=wg;function fl(e){Ig=e}function M(e){return typeof e=="function"}function dn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Kr=dn(e=>function(r){e(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 Lt(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var W=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;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(M(n))try{n()}catch(i){t=i instanceof Kr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{hl(i)}catch(s){t=t??[],s instanceof Kr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Kr(t)}}add(t){var r;if(t&&t!==this)if(this.closed)hl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Lt(r,t)}remove(t){let{_finalizers:r}=this;r&&Lt(r,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var Ts=W.EMPTY;function Jr(e){return e instanceof W||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function hl(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var fn={setTimeout(e,t,...r){let{delegate:n}=fn;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=fn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xr(e){fn.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function Xn(){}var pl=Ss("C",void 0,void 0);function gl(e){return Ss("E",void 0,e)}function ml(e){return Ss("N",e,void 0)}function Ss(e,t,r){return{kind:e,value:t,error:r}}var jt=null;function hn(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!jt;if(t&&(jt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=jt;if(jt=null,r)throw n}}else e()}function vl(e){Pe.useDeprecatedSynchronousErrorHandling&&jt&&(jt.errorThrown=!0,jt.error=e)}var Vt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Jr(t)&&t.add(this)):this.destination=bg}static create(t,r,n){return new pn(t,r,n)}next(t){this.isStopped?As(ml(t),this):this._next(t)}error(t){this.isStopped?As(gl(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?As(pl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Eg=Function.prototype.bind;function xs(e,t){return Eg.call(e,t)}var _s=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){eo(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){eo(n)}else eo(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){eo(r)}}},pn=class extends Vt{constructor(t,r,n){super();let o;if(M(t)||!t)o={next:t??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&xs(t.next,i),error:t.error&&xs(t.error,i),complete:t.complete&&xs(t.complete,i)}):o=t}this.destination=new _s(o)}};function eo(e){Pe.useDeprecatedSynchronousErrorHandling?vl(e):Xr(e)}function Cg(e){throw e}function As(e,t){let{onStoppedNotification:r}=Pe;r&&fn.setTimeout(()=>r(e,t))}var bg={closed:!0,next:Xn,error:Cg,complete:Xn};var gn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function de(e){return e}function Ns(...e){return Rs(e)}function Rs(e){return e.length===0?de:e.length===1?e[0]:function(r){return e.reduce((n,o)=>o(n),r)}}var F=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Tg(r)?r:new pn(r,n,o);return hn(()=>{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=yl(n),new n((o,i)=>{let s=new pn({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)}[gn](){return this}pipe(...r){return Rs(r)(this)}toPromise(r){return r=yl(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return e.create=t=>new e(t),e})();function yl(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function Mg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Tg(e){return e&&e instanceof Vt||Mg(e)&&Jr(e)}function Os(e){return M(e?.lift)}function R(e){return t=>{if(Os(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function x(e,t,r,n,o){return new Ps(e,t,r,n,o)}var Ps=class extends Vt{constructor(t,r,n,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function mn(){return R((e,t)=>{let r=null;e._refCount++;let n=x(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){r=null;return}let o=e._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}var vn=class extends F{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Os(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new W;let r=this.getSubject();t.add(this.source.subscribe(x(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return mn()(this)}};var Dl=dn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new to(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Dl}next(r){hn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){hn(()=>{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(){hn(()=>{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?Ts:(this.currentObservers=null,i.push(r),new W(()=>{this.currentObservers=null,Lt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new F;return r.source=this,r}}return e.create=(t,r)=>new to(t,r),e})(),to=class extends ce{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:Ts}};var oe=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var Fs={now(){return(Fs.delegate||Date).now()},delegate:void 0};var no=class extends W{constructor(t,r){super()}schedule(t,r=0){return this}};var er={setInterval(e,t,...r){let{delegate:n}=er;return n?.setInterval?n.setInterval(e,t,...r):setInterval(e,t,...r)},clearInterval(e){let{delegate:t}=er;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ro=class extends no{constructor(t,r){super(t,r),this.scheduler=t,this.work=r,this.pending=!1}schedule(t,r=0){var n;if(this.closed)return this;this.state=t;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(t,r,n=0){return er.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&er.clearInterval(r)}execute(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,r){let n=!1,o;try{this.work(t)}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:t,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Lt(n,this),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,super.unsubscribe()}}};var yn=class e{constructor(t,r=e.now){this.schedulerActionCtor=t,this.now=r}schedule(t,r=0,n){return new this.schedulerActionCtor(this,t).schedule(n,r)}};yn.now=Fs.now;var oo=class extends yn{constructor(t,r=yn.now){super(t,r),this.actions=[],this._active=!1}flush(t){let{actions:r}=this;if(this._active){r.push(t);return}let n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}}};var wl=new oo(ro);var Ee=new F(e=>e.complete());function Il(e){return e&&M(e.schedule)}function El(e){return e[e.length-1]}function io(e){return M(El(e))?e.pop():void 0}function yt(e){return Il(El(e))?e.pop():void 0}function bl(e,t,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(e,t||[])).next())})}function Cl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e){return this instanceof $t?(this.v=e,this):new $t(e)}function Ml(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,S){i.push([f,h,g,S])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(g){d(i[0][3],g)}}function c(f){f.value instanceof $t?Promise.resolve(f.value.v).then(u,l):d(i[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Tl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Cl=="function"?Cl(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[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 so=e=>e&&typeof e.length=="number"&&typeof e!="function";function ao(e){return M(e?.then)}function co(e){return M(e[gn])}function uo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function lo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Sg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fo=Sg();function ho(e){return M(e?.[fo])}function po(e){return Ml(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:o}=yield $t(r.read());if(o)return yield $t(void 0);yield yield $t(n)}}finally{r.releaseLock()}})}function go(e){return M(e?.getReader)}function Q(e){if(e instanceof F)return e;if(e!=null){if(co(e))return xg(e);if(so(e))return Ag(e);if(ao(e))return _g(e);if(uo(e))return Sl(e);if(ho(e))return Ng(e);if(go(e))return Rg(e)}throw lo(e)}function xg(e){return new F(t=>{let r=e[gn]();if(M(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ag(e){return new F(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,Xr)})}function Ng(e){return new F(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function Sl(e){return new F(t=>{Og(e,t).catch(r=>t.error(r))})}function Rg(e){return Sl(po(e))}function Og(e,t){var r,n,o,i;return bl(this,void 0,void 0,function*(){try{for(r=Tl(e);n=yield r.next(),!n.done;){let s=n.value;if(t.next(s),t.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}}t.complete()})}function De(e,t,r,n=0,o=!1){let i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function mo(e,t=0){return R((r,n)=>{r.subscribe(x(n,o=>De(n,e,()=>n.next(o),t),()=>De(n,e,()=>n.complete(),t),o=>De(n,e,()=>n.error(o),t)))})}function vo(e,t=0){return R((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function xl(e,t){return Q(e).pipe(vo(t),mo(t))}function Al(e,t){return Q(e).pipe(vo(t),mo(t))}function _l(e,t){return new F(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Nl(e,t){return new F(r=>{let n;return De(r,t,()=>{n=e[fo](),De(r,t,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>M(n?.return)&&n.return()})}function yo(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(r=>{De(r,t,()=>{let n=e[Symbol.asyncIterator]();De(r,t,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function Rl(e,t){return yo(po(e),t)}function Ol(e,t){if(e!=null){if(co(e))return xl(e,t);if(so(e))return _l(e,t);if(ao(e))return Al(e,t);if(uo(e))return yo(e,t);if(ho(e))return Nl(e,t);if(go(e))return Rl(e,t)}throw lo(e)}function G(e,t){return t?Ol(e,t):Q(e)}function w(...e){let t=yt(e);return G(e,t)}function Dn(e,t){let r=M(e)?e:()=>e,n=o=>o.error(r());return new F(t?o=>t.schedule(n,0,o):n)}function ks(e){return!!e&&(e instanceof F||M(e.lift)&&M(e.subscribe))}var nt=dn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function A(e,t){return R((r,n)=>{let o=0;r.subscribe(x(n,i=>{n.next(e.call(t,i,o++))}))})}var{isArray:Pg}=Array;function Fg(e,t){return Pg(t)?e(...t):e(t)}function Do(e){return A(t=>Fg(e,t))}var{isArray:kg}=Array,{getPrototypeOf:Lg,prototype:jg,keys:Vg}=Object;function wo(e){if(e.length===1){let t=e[0];if(kg(t))return{args:t,keys:null};if($g(t)){let r=Vg(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}function $g(e){return e&&typeof e=="object"&&Lg(e)===jg}function Io(e,t){return e.reduce((r,n,o)=>(r[n]=t[o],r),{})}function tr(...e){let t=yt(e),r=io(e),{args:n,keys:o}=wo(e);if(n.length===0)return G([],t);let i=new F(Ug(n,t,o?s=>Io(o,s):de));return r?i.pipe(Do(r)):i}function Ug(e,t,r=de){return n=>{Pl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=G(e[c],t),l=!1;u.subscribe(x(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Pl(e,t,r){e?De(r,e,t):t()}function Fl(e,t,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},h=S=>u{i&&t.next(S),u++;let C=!1;Q(r(S,l++)).subscribe(x(t,E=>{o?.(E),i?h(E):t.next(E)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;c.length&&ug(E)):g(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(x(t,h,()=>{d=!0,f()})),()=>{a?.()}}function K(e,t,r=1/0){return M(t)?K((n,o)=>A((i,s)=>t(n,i,o,s))(Q(e(n,o))),r):(typeof t=="number"&&(r=t),R((n,o)=>Fl(n,o,e,r)))}function Dt(e=1/0){return K(de,e)}function kl(){return Dt(1)}function wn(...e){return kl()(G(e,yt(e)))}function Eo(e){return new F(t=>{Q(e()).subscribe(t)})}function Bg(...e){let t=io(e),{args:r,keys:n}=wo(e),o=new F(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]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(n?Io(n,a):a),i.complete())}))}});return t?o.pipe(Do(t)):o}function fe(e,t){return R((r,n)=>{let o=0;r.subscribe(x(n,i=>e.call(t,i,o++)&&n.next(i)))})}function xe(e){return R((t,r)=>{let n=null,o=!1,i;n=t.subscribe(x(r,void 0,void 0,s=>{i=Q(e(s,xe(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Ll(e,t,r,n,o){return(i,s)=>{let a=r,c=t,u=0;i.subscribe(x(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function rt(e,t){return M(t)?K(e,t,1):K(e,1)}function Hg(e,t=wl){return R((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+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function wt(e){return R((t,r)=>{let n=!1;t.subscribe(x(r,o=>{n=!0,r.next(o)},()=>{n||r.next(e),r.complete()}))})}function ot(e){return e<=0?()=>Ee:R((t,r)=>{let n=0;t.subscribe(x(r,o=>{++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function Ls(e){return A(()=>e)}function zg(e,t=de){return e=e??qg,R((r,n)=>{let o,i=!0;r.subscribe(x(n,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,n.next(s))}))})}function qg(e,t){return e===t}function Co(e=Gg){return R((t,r)=>{let n=!1;t.subscribe(x(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(e())))})}function Gg(){return new nt}function It(e){return R((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}function qe(e,t){let r=arguments.length>=2;return n=>n.pipe(e?fe((o,i)=>e(o,i,n)):de,ot(1),r?wt(t):Co(()=>new nt))}function In(e){return e<=0?()=>Ee:R((t,r)=>{let n=[];t.subscribe(x(r,o=>{n.push(o),e{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function js(e,t){let r=arguments.length>=2;return n=>n.pipe(e?fe((o,i)=>e(o,i,n)):de,In(1),r?wt(t):Co(()=>new nt))}function Vs(e,t){return R(Ll(e,t,arguments.length>=2,!0))}function $s(...e){let t=yt(e);return R((r,n)=>{(t?wn(e,r,t):wn(e,r)).subscribe(n)})}function he(e,t){return R((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(x(n,c=>{o?.unsubscribe();let u=0,l=i++;Q(e(c,l)).subscribe(o=x(n,d=>n.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function bo(e){return R((t,r)=>{Q(e).subscribe(x(r,()=>r.complete(),Xn)),!r.closed&&t.subscribe(r)})}function X(e,t,r){let n=M(e)||t||r?{next:e,error:t,complete:r}:e;return n?R((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(x(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)}))}):de}var Cd="https://g.co/ng/security#xss",v=class extends Error{constructor(t,r){super(ii(t,r)),this.code=t}};function ii(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function pr(e){return{toString:e}.toString()}var Mo="__parameters__";function Zg(e){return function(...r){if(e){let n=e(...r);for(let o in n)this[o]=n[o]}}}function bd(e,t,r){return pr(()=>{let n=Zg(t);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(Mo)?c[Mo]:Object.defineProperty(c,Mo,{value:[]})[Mo];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=e,o.annotationCls=o,o})}var ee=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("Could not find renamed property on target object.")}function Yg(e,t){for(let r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function ge(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ge).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` -`);return r===-1?t:t.substring(0,r)}function jl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Qg=U({__forward_ref__:U});function Md(e){return e.__forward_ref__=Md,e.toString=function(){return ge(this())},e}function pe(e){return Td(e)?e():e}function Td(e){return typeof e=="function"&&e.hasOwnProperty(Qg)&&e.__forward_ref__===Md}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function si(e){return Vl(e,xd)||Vl(e,Ad)}function Sd(e){return si(e)!==null}function Vl(e,t){return e.hasOwnProperty(t)?e[t]:null}function Kg(e){let t=e&&(e[xd]||e[Ad]);return t||null}function $l(e){return e&&(e.hasOwnProperty(Ul)||e.hasOwnProperty(Jg))?e[Ul]:null}var xd=U({\u0275prov:U}),Ul=U({\u0275inj:U}),Ad=U({ngInjectableDef:U}),Jg=U({ngInjectorDef:U}),I=class{constructor(t,r){this._desc=t,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 _d(e){return e&&!!e.\u0275providers}var Xg=U({\u0275cmp:U}),em=U({\u0275dir:U}),tm=U({\u0275pipe:U}),nm=U({\u0275mod:U}),ko=U({\u0275fac:U}),nr=U({__NG_ELEMENT_ID__:U}),Bl=U({__NG_ENV_ID__:U});function ai(e){return typeof e=="string"?e:e==null?"":String(e)}function rm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ai(e)}function om(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function Ya(e,t){throw new v(-201,!1)}var O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(O||{}),na;function Nd(){return na}function we(e){let t=na;return na=e,t}function Rd(e,t,r){let n=si(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(t!==void 0)return t;Ya(e,"Injector")}var im={},or=im,ra="__NG_DI_FLAG__",Lo="ngTempTokenPath",sm="ngTokenPath",am=/\n/gm,cm="\u0275",Hl="__source",Tn;function um(){return Tn}function Et(e){let t=Tn;return Tn=e,t}function lm(e,t=O.Default){if(Tn===void 0)throw new v(-203,!1);return Tn===null?Rd(e,void 0,t):Tn.get(e,t&O.Optional?null:void 0,t)}function y(e,t=O.Default){return(Nd()||lm)(pe(e),t)}function p(e,t=O.Default){return y(e,ci(t))}function ci(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function oa(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ge(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${e.replace(am,` - `)}`}var ui=Od(bd("Optional"),8);var Qa=Od(bd("SkipSelf"),4);function zt(e,t){let r=e.hasOwnProperty(ko);return r?e[ko]:null}function pm(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?Ka(r,t):t(r))}function Pd(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function jo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function mm(e,t,r,n){let o=e.length;if(o==t)e.push(r,n);else if(o===1)e.push(n,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=r,e[t+1]=n}}function vm(e,t,r){let n=gr(e,t);return n>=0?e[n|1]=r:(n=~n,mm(e,n,t,r)),n}function Us(e,t){let r=gr(e,t);if(r>=0)return e[r|1]}function gr(e,t){return ym(e,t,1)}function ym(e,t,r){let n=0,o=e.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=e[i<t?o=i:n=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Fe(n))return!1;s=!0}}}}return Fe(n)||s}function Fe(e){return(e&1)===0}function bm(e,t,r,n){if(t===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!==""&&!Fe(s)&&(t+=ql(i,o),o=""),n=s,i=i||!Fe(n);r++}return o!==""&&(t+=ql(i,o)),t}function Am(e){return e.map(xm).join(",")}function _m(e){let t=[],r=[],n=1,o=2;for(;n{let t=qd(e),r=Y(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ld.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ze.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});Gd(r);let n=e.dependencies;return r.directiveDefs=Wl(n,!1),r.pipeDefs=Wl(n,!0),r.id=Om(r),r})}function Nm(e){return bt(e)||Ud(e)}function Rm(e){return e!==null}function ct(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gl(e,t){if(e==null)return xn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n],i,s,a=Le.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(r[i]=a!==Le.None?[n,a]:n,t[i]=s):r[i]=n}return r}function en(e){return pr(()=>{let t=qd(e);return Gd(t),t})}function Xa(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function bt(e){return e[Xg]||null}function Ud(e){return e[em]||null}function Bd(e){return e[tm]||null}function Hd(e){let t=bt(e)||Ud(e)||Bd(e);return t!==null?t.standalone:!1}function zd(e,t){let r=e[nm]||null;if(!r&&t===!0)throw new Error(`Type ${ge(e)} does not have '\u0275mod' property.`);return r}function qd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||xn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gl(e.inputs,t),outputs:Gl(e.outputs),debugInfo:null}}function Gd(e){e.features?.forEach(t=>t(e))}function Wl(e,t){if(!e)return null;let r=t?Bd:Nm;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(Rm)}function Om(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of r)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function li(e){return{\u0275providers:e}}function Pm(...e){return{\u0275providers:Wd(!0,e),\u0275fromNgModule:!0}}function Wd(e,...t){let r=[],n=new Set,o,i=s=>{r.push(s)};return Ka(t,s=>{let a=s;sa(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Zd(o,i),r}function Zd(e,t){for(let r=0;r{t(i,n)})}}function sa(e,t,r,n){if(e=pe(e),!e)return!1;let o=null,i=$l(e),s=!i&&bt(e);if(!i&&!s){let c=e.ngModule;if(i=$l(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}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)sa(u,t,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{Ka(i.imports,l=>{sa(l,t,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Zd(u,t)}if(!a){let u=zt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:kd,useValue:o,multi:!0},o),t({provide:An,useValue:()=>y(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ec(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ec(e,t){for(let r of e)_d(r)&&(r=r.\u0275providers),Array.isArray(r)?ec(r,t):t(r)}var Fm=U({provide:String,useValue:U});function Yd(e){return e!==null&&typeof e=="object"&&Fm in e}function km(e){return!!(e&&e.useExisting)}function Lm(e){return!!(e&&e.useFactory)}function _n(e){return typeof e=="function"}function jm(e){return!!e.useClass}var di=new I(""),_o={},Vm={},Bs;function tc(){return Bs===void 0&&(Bs=new Vo),Bs}var me=class{},sr=class extends me{get destroyed(){return this._destroyed}constructor(t,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,ca(t,s=>this.processProvider(s)),this.records.set(Fd,En(void 0,this)),o.has("environment")&&this.records.set(me,En(void 0,this));let i=this.records.get(di);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kd,Ae,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=Et(this),n=we(void 0),o;try{return t()}finally{Et(r),we(n)}}get(t,r=or,n=O.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Bl))return t[Bl](this);n=ci(n);let o,i=Et(this),s=we(void 0);try{if(!(n&O.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=zm(t)&&si(t);u&&this.injectableDefInScope(u)?c=En(aa(t),_o):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=n&O.Self?tc():this.parent;return r=n&O.Optional&&r===or?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Lo]=a[Lo]||[]).unshift(ge(t)),i)throw a;return fm(a,t,"R3InjectorError",this.source)}else throw a}finally{we(s),Et(i)}}resolveInjectorInitializers(){let t=P(null),r=Et(this),n=we(void 0),o;try{let i=this.get(An,Ae,O.Self);for(let s of i)s()}finally{Et(r),we(n),P(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(ge(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(t){t=pe(t);let r=_n(t)?t:pe(t&&t.provide),n=Um(t);if(!_n(t)&&t.multi===!0){let o=this.records.get(r);o||(o=En(void 0,_o,!0),o.factory=()=>oa(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=P(null);try{return r.value===_o&&(r.value=Vm,r.value=r.factory()),typeof r.value=="object"&&r.value&&Hm(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{P(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=pe(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function aa(e){let t=si(e),r=t!==null?t.factory:zt(e);if(r!==null)return r;if(e instanceof I)throw new v(204,!1);if(e instanceof Function)return $m(e);throw new v(204,!1)}function $m(e){if(e.length>0)throw new v(204,!1);let r=Kg(e);return r!==null?()=>r.factory(e):()=>new e}function Um(e){if(Yd(e))return En(void 0,e.useValue);{let t=Qd(e);return En(t,_o)}}function Qd(e,t,r){let n;if(_n(e)){let o=pe(e);return zt(o)||aa(o)}else if(Yd(e))n=()=>pe(e.useValue);else if(Lm(e))n=()=>e.useFactory(...oa(e.deps||[]));else if(km(e))n=()=>y(pe(e.useExisting));else{let o=pe(e&&(e.useClass||e.provide));if(Bm(e))n=()=>new o(...oa(e.deps));else return zt(o)||aa(o)}return n}function En(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Bm(e){return!!e.deps}function Hm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zm(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function ca(e,t){for(let r of e)Array.isArray(r)?ca(r,t):r&&_d(r)?ca(r.\u0275providers,t):t(r)}function $e(e,t){e instanceof sr&&e.assertNotDestroyed();let r,n=Et(e),o=we(void 0);try{return t()}finally{Et(n),we(o)}}function Kd(){return Nd()!==void 0||um()!=null}function qm(e){if(!Kd())throw new v(-203,!1)}function Gm(e){let t=ee.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Wm(e){return typeof e=="function"}var ut=0,_=1,b=2,se=3,ke=4,Ue=5,$o=6,ar=7,je=8,Nn=9,Ve=10,te=11,cr=12,Zl=13,kn=14,Ye=15,mr=16,Cn=17,it=18,fi=19,Jd=20,Ct=21,Hs=22,qt=23,be=25,Xd=1;var Gt=7,Uo=8,Rn=9,Ce=10,nc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(nc||{});function Bt(e){return Array.isArray(e)&&typeof e[Xd]=="object"}function lt(e){return Array.isArray(e)&&e[Xd]===!0}function rc(e){return(e.flags&4)!==0}function hi(e){return e.componentOffset>-1}function pi(e){return(e.flags&1)===1}function Mt(e){return!!e.template}function Zm(e){return(e[b]&512)!==0}var ua=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function ef(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function Ln(){return tf}function tf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qm),Ym}Ln.ngInherit=!0;function Ym(){let e=rf(this),t=e?.current;if(t){let r=e.previous;if(r===xn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Qm(e,t,r,n,o){let i=this.declaredInputs[n],s=rf(e)||Km(e,{previous:xn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ua(u&&u.currentValue,r,c===xn),ef(e,t,o,r)}var nf="__ngSimpleChanges__";function rf(e){return e[nf]||null}function Km(e,t){return e[nf]=t}var Yl=null;var Ge=function(e,t,r){Yl?.(e,t,r)},Jm="svg",Xm="math",ev=!1;function tv(){return ev}function Qe(e){for(;Array.isArray(e);)e=e[ut];return e}function of(e,t){return Qe(t[e])}function _e(e,t){return Qe(t[e.index])}function sf(e,t){return e.data[t]}function oc(e,t){return e[t]}function xt(e,t){let r=t[e];return Bt(r)?r:r[ut]}function nv(e){return(e[b]&4)===4}function ic(e){return(e[b]&128)===128}function rv(e){return lt(e[se])}function On(e,t){return t==null?null:e[t]}function af(e){e[Cn]=0}function ov(e){e[b]&1024||(e[b]|=1024,ic(e)&&ur(e))}function iv(e,t){for(;e>0;)t=t[kn],e--;return t}function sc(e){return!!(e[b]&9216||e[qt]?.dirty)}function la(e){e[Ve].changeDetectionScheduler?.notify(1),sc(e)?ur(e):e[b]&64&&(tv()?(e[b]|=1024,ur(e)):e[Ve].changeDetectionScheduler?.notify())}function ur(e){e[Ve].changeDetectionScheduler?.notify();let t=lr(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!ic(t)));)t=lr(t)}function cf(e,t){if((e[b]&256)===256)throw new v(911,!1);e[Ct]===null&&(e[Ct]=[]),e[Ct].push(t)}function sv(e,t){if(e[Ct]===null)return;let r=e[Ct].indexOf(t);r!==-1&&e[Ct].splice(r,1)}function lr(e){let t=e[se];return lt(t)?t[se]:t}var N={lFrame:gf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function av(){return N.lFrame.elementDepthCount}function cv(){N.lFrame.elementDepthCount++}function uv(){N.lFrame.elementDepthCount--}function uf(){return N.bindingsEnabled}function lv(){return N.skipHydrationRootTNode!==null}function dv(e){return N.skipHydrationRootTNode===e}function fv(){N.skipHydrationRootTNode=null}function k(){return N.lFrame.lView}function ue(){return N.lFrame.tView}function V_(e){return N.lFrame.contextLView=e,e[je]}function $_(e){return N.lFrame.contextLView=null,e}function ve(){let e=lf();for(;e!==null&&e.type===64;)e=e.parent;return e}function lf(){return N.lFrame.currentTNode}function hv(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tn(e,t){let r=N.lFrame;r.currentTNode=e,r.isParent=t}function ac(){return N.lFrame.isParent}function df(){N.lFrame.isParent=!1}function pv(){return N.lFrame.contextLView}function gi(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gv(e){return N.lFrame.bindingIndex=e}function cc(){return N.lFrame.bindingIndex++}function mv(e){let t=N.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function vv(){return N.lFrame.inI18n}function yv(e,t){let r=N.lFrame;r.bindingIndex=r.bindingRootIndex=e,da(t)}function Dv(){return N.lFrame.currentDirectiveIndex}function da(e){N.lFrame.currentDirectiveIndex=e}function wv(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ff(){return N.lFrame.currentQueryIndex}function uc(e){N.lFrame.currentQueryIndex=e}function Iv(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Ue]:null}function hf(e,t,r){if(r&O.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(r&O.Host);)if(o=Iv(i),o===null||(i=i[kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let n=N.lFrame=pf();return n.currentTNode=t,n.lView=e,!0}function lc(e){let t=pf(),r=e[_];N.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function pf(){let e=N.lFrame,t=e===null?null:e.child;return t===null?gf(e):t}function gf(e){let t={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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mf(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vf=mf;function dc(){let e=mf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ev(e){return(N.lFrame.contextLView=iv(e,N.lFrame.contextLView))[je]}function jn(){return N.lFrame.selectedIndex}function Wt(e){N.lFrame.selectedIndex=e}function yf(){let e=N.lFrame;return sf(e.tView,e.selectedIndex)}function Cv(){return N.lFrame.currentNamespace}var Df=!0;function mi(){return Df}function vi(e){Df=e}function bv(e,t,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(n){let s=tf(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}o&&(r.preOrderHooks??=[]).push(0-e,o),i&&((r.preOrderHooks??=[]).push(e,i),(r.preOrderCheckHooks??=[]).push(e,i))}function yi(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[c]<0&&(e[Cn]+=65536),(a>14>16&&(e[b]&3)===t&&(e[b]+=16384,Ql(a,i)):Ql(a,i)}var Sn=-1,Zt=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Tv(e){return e instanceof Zt}function Sv(e){return(e.flags&8)!==0}function xv(e){return(e.flags&16)!==0}function If(e){return e!==Sn}function Bo(e){return e&32767}function Av(e){return e>>16}function Ho(e,t){let r=Av(e),n=t;for(;r>0;)n=n[kn],r--;return n}var fa=!0;function zo(e){let t=fa;return fa=e,t}var _v=256,Ef=_v-1,Cf=5,Nv=0,We={};function Rv(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(nr)&&(n=r[nr]),n==null&&(n=r[nr]=Nv++);let o=n&Ef,i=1<>Cf)]|=i}function qo(e,t){let r=bf(e,t);if(r!==-1)return r;let n=t[_];n.firstCreatePass&&(e.injectorIndex=t.length,qs(n.data,e),qs(t,null),qs(n.blueprint,null));let o=fc(e,t),i=e.injectorIndex;if(If(o)){let s=Bo(o),a=Ho(o,t),c=a[_].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function qs(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function fc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,o=t;for(;o!==null;){if(n=Af(o),n===null)return Sn;if(r++,o=o[kn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Sn}function ha(e,t,r){Rv(e,t,r)}function Ov(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let r=e.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:u;for(let h=d;h=c&&g.type===r)return h}if(o){let h=s[c];if(h&&Mt(h)&&h.type===r)return c}return null}function Yt(e,t,r,n){let o=e[r],i=t.data;if(Tv(o)){let s=o;s.resolving&&om(rm(i[r]));let a=zo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?we(s.injectImpl):null,l=hf(e,n,O.Default);try{o=e[r]=s.factory(void 0,i,e,n),t.firstCreatePass&&r>=n.directiveStart&&bv(r,i[r],t)}finally{u!==null&&we(u),zo(a),s.resolving=!1,vf()}}return o}function Fv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&Ef:kv:t}function Kl(e,t,r){let n=1<>Cf)]&n)}function Jl(e,t){return!(e&O.Self)&&!(e&O.Host&&t)}var Ht=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Sf(this._tNode,this._lView,t,ci(n),r)}};function kv(){return new Ht(ve(),k())}function hc(e){return pr(()=>{let t=e.prototype.constructor,r=t[ko]||pa(t),n=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==n;){let i=o[ko]||pa(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function pa(e){return Td(e)?()=>{let t=pa(pe(e));return t&&t()}:zt(e)}function Lv(e,t,r,n,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=xf(i,s,r,n|O.Self,We);if(a!==We)return a;let c=i.parent;if(!c){let u=s[Jd];if(u){let l=u.get(r,We,n);if(l!==We)return l}c=Af(s),s=s[kn]}i=c}return o}function Af(e){let t=e[_],r=t.type;return r===2?t.declTNode:r===1?e[Ue]:null}function pc(e){return Ov(ve(),e)}function Xl(e,t=null,r=null,n){let o=_f(e,t,r,n);return o.resolveInjectorInitializers(),o}function _f(e,t=null,r=null,n,o=new Set){let i=[r||Ae,Pm(e)];return n=n||(typeof e=="object"?void 0:ge(e)),new sr(i,t||tc(),n||null,o)}var Je=(()=>{let t=class t{static create(n,o){if(Array.isArray(n))return Xl({name:""},o,n,"");{let i=n.name??"";return Xl({name:i},n.parent,n.providers,i)}}};t.THROW_IF_NOT_FOUND=or,t.NULL=new Vo,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>y(Fd)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var jv="ngOriginalError";function Gs(e){return e[jv]}var Ke=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Gs(t);for(;r&&Gs(r);)r=Gs(r);return r||null}},Nf=new I("",{providedIn:"root",factory:()=>p(Ke).handleError.bind(void 0)}),gc=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Vv,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),ga=class extends gc{constructor(t){super(),this._lView=t}onDestroy(t){return cf(this._lView,t),()=>sv(this._lView,t)}};function Vv(){return new ga(k())}function $v(){return Vn(ve(),k())}function Vn(e,t){return new dt(_e(e,t))}var dt=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=$v;let e=t;return e})();function Uv(e){return e instanceof dt?e.nativeElement:e}var ma=class extends ce{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Kd()&&(this.destroyRef=p(gc,{optional:!0})??void 0)}emit(t){let r=P(null);try{super.next(t)}finally{P(r)}}subscribe(t,r,n){let o=t,i=r||(()=>null),s=n;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=Ws(i),o&&(o=Ws(o)),s&&(s=Ws(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof W&&t.add(a),a}};function Ws(e){return t=>{setTimeout(e,void 0,t)}}var ie=ma;function Bv(){return this._results[Symbol.iterator]()}var va=class e{get changes(){return this._changes??=new ie}constructor(t=!1){this._emitDistinctChangesOnly=t,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=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Bv)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=gm(t);(this._changesDetected=!pm(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Rf(e){return(e.flags&128)===128}var Of=new Map,Hv=0;function zv(){return Hv++}function qv(e){Of.set(e[fi],e)}function Gv(e){Of.delete(e[fi])}var ed="__ngContext__";function Tt(e,t){Bt(t)?(e[ed]=t[fi],qv(t)):e[ed]=t}function Pf(e){return kf(e[cr])}function Ff(e){return kf(e[ke])}function kf(e){for(;e!==null&&!lt(e);)e=e[ke];return e}var ya;function Lf(e){ya=e}function Wv(){if(ya!==void 0)return ya;if(typeof document<"u")return document;throw new v(210,!1)}var Di=new I("",{providedIn:"root",factory:()=>Zv}),Zv="ng",mc=new I(""),Xe=new I("",{providedIn:"platform",factory:()=>"unknown"});var vc=new I("",{providedIn:"root",factory:()=>Wv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Yv="h",Qv="b";var Kv=()=>null;function yc(e,t,r=!1){return Kv(e,t,r)}var jf=!1,Jv=new I("",{providedIn:"root",factory:()=>jf});var To;function Xv(){if(To===void 0&&(To=null,ee.trustedTypes))try{To=ee.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return To}function td(e){return Xv()?.createScriptURL(e)||e}var Go=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Cd})`}};function vr(e){return e instanceof Go?e.changingThisBreaksApplicationSecurity:e}function Dc(e,t){let r=ey(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Cd})`)}return r===t}function ey(e){return e instanceof Go&&e.getTypeName()||null}var ty=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Vf(e){return e=String(e),e.match(ty)?e:"unsafe:"+e}var wi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(wi||{});function ny(e){let t=Uf();return t?t.sanitize(wi.URL,e)||"":Dc(e,"URL")?vr(e):Vf(ai(e))}function ry(e){let t=Uf();if(t)return td(t.sanitize(wi.RESOURCE_URL,e)||"");if(Dc(e,"ResourceURL"))return td(vr(e));throw new v(904,!1)}function oy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?ry:ny}function $f(e,t,r){return oy(t,r)(e)}function Uf(){let e=k();return e&&e[Ve].sanitizer}var iy=/^>|^->||--!>|)/g,ay="\u200B$1\u200B";function cy(e){return e.replace(iy,t=>t.replace(sy,ay))}function Bf(e){return e instanceof Function?e():e}function uy(e){return(e??p(Je)).get(Xe)==="browser"}var st=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(st||{}),ly;function wc(e,t){return ly(e,t)}function bn(e,t,r,n,o){if(n!=null){let i,s=!1;lt(n)?i=n:Bt(n)&&(s=!0,n=n[ut]);let a=Qe(n);e===0&&r!==null?o==null?Wf(t,r,a):Wo(t,r,a,o||null,!0):e===1&&r!==null?Wo(t,r,a,o||null,!0):e===2?xy(t,a,s):e===3&&t.destroyNode(a),i!=null&&_y(t,e,i,r,o)}}function dy(e,t){return e.createText(t)}function fy(e,t,r){e.setValue(t,r)}function hy(e,t){return e.createComment(cy(t))}function Hf(e,t,r){return e.createElement(t,r)}function py(e,t){zf(e,t),t[ut]=null,t[Ue]=null}function gy(e,t,r,n,o,i){n[ut]=o,n[Ue]=t,Ei(e,n,r,1,o,i)}function zf(e,t){t[Ve].changeDetectionScheduler?.notify(1),Ei(e,t,t[te],2,null,null)}function my(e){let t=e[cr];if(!t)return Zs(e[_],e);for(;t;){let r=null;if(Bt(t))r=t[cr];else{let n=t[Ce];n&&(r=n)}if(!r){for(;t&&!t[ke]&&t!==e;)Bt(t)&&Zs(t[_],t),t=t[se];t===null&&(t=e),Bt(t)&&Zs(t[_],t),r=t&&t[ke]}t=r}}function vy(e,t,r,n){let o=Ce+n,i=r.length;n>0&&(r[o-1][ke]=t),n0&&(e[r-1][ke]=n[ke]);let i=jo(e,Ce+t);py(n[_],n);let s=i[it];s!==null&&s.detachView(i[_]),n[se]=null,n[ke]=null,n[b]&=-129}return n}function Gf(e,t){if(!(t[b]&256)){let r=t[te];r.destroyNode&&Ei(e,t,r,3,null,null),my(t)}}function Zs(e,t){if(t[b]&256)return;let r=P(null);try{t[b]&=-129,t[b]|=256,t[qt]&&dl(t[qt]),wy(e,t),Dy(e,t),t[_].type===1&&t[te].destroy();let n=t[mr];if(n!==null&<(t[se])){n!==t[se]&&qf(n,t);let o=t[it];o!==null&&o.detachView(e)}Gv(t)}finally{P(r)}}function Dy(e,t){let r=e.cleanup,n=t[ar];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&&(t[ar]=null);let o=t[Ct];if(o!==null){t[Ct]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[n.directiveStart+o];if(i===Ze.None||i===Ze.Emulated)return null}return _e(n,r)}}function Wo(e,t,r,n,o){e.insertBefore(t,r,n,o)}function Wf(e,t,r){e.appendChild(t,r)}function nd(e,t,r,n,o){n!==null?Wo(e,t,r,n,o):Wf(e,t,r)}function Cy(e,t,r,n){e.removeChild(t,r,n)}function Ic(e,t){return e.parentNode(t)}function by(e,t){return e.nextSibling(t)}function My(e,t,r){return Sy(e,t,r)}function Ty(e,t,r){return e.type&40?_e(e,r):null}var Sy=Ty,rd;function Ii(e,t,r,n){let o=Iy(e,n,t),i=t[te],s=n.parent||t[Ue],a=My(s,n,t);if(o!=null)if(Array.isArray(r))for(let c=0;cbe&&Kf(e,t,be,!1),Ge(s?2:0,o),r(n,o)}finally{Wt(i),Ge(s?3:1,o)}}function Cc(e,t,r){if(rc(t)){let n=P(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Vy(e,t,r,n){let o=ah(t);o.push(r),e.firstCreatePass&&ch(e).push(n,o.length-1)}function $y(e,t,r,n,o,i){let s=t?t.injectorIndex:-1,a=0;return lv()&&(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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function od(e,t,r,n,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;n??={};let a,c=Le.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]}e===0?id(n,r,u,a,c):id(n,r,u,a)}return n}function id(e,t,r,n,o){let i;e.hasOwnProperty(r)?(i=e[r]).push(t,n):i=e[r]=[t,n],o!==void 0&&i.push(o)}function Uy(e,t,r){let n=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function Wy(e,t,r,n){let o=r.directiveStart,i=r.directiveEnd;hi(r)&&eD(t,r,e.data[o+r.componentOffset]),e.firstCreatePass||qo(r,t),Tt(n,t);let s=r.initialInputs;for(let a=o;a{ur(e.lView)},consumerOnSignalRead(){this.lView[qt]=this}}),dh=100;function fh(e,t=!0,r=0){let n=e[Ve],o=n.rendererFactory,i=!1;i||o.begin?.();try{mD(e,r)}catch(s){throw t&&uh(e,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function mD(e,t){Ca(e,t);let r=0;for(;sc(e);){if(r===dh)throw new v(103,!1);r++,Ca(e,1)}}function vD(e,t,r,n){let o=t[b];if((o&256)===256)return;let i=!1;!i&&t[Ve].inlineEffectRunner?.flush(),lc(t);let s=null,a=null;!i&&yD(e)&&(a=fD(t),s=ul(a));try{af(t),gv(e.bindingStartIndex),r!==null&&th(e,t,r,2,n);let c=(o&3)===3;if(!i)if(c){let d=e.preOrderCheckHooks;d!==null&&No(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Ro(t,d,0,null),zs(t,0)}if(DD(t),hh(t,0),e.contentQueries!==null&&sh(e,t),!i)if(c){let d=e.contentCheckHooks;d!==null&&No(t,d)}else{let d=e.contentHooks;d!==null&&Ro(t,d,1),zs(t,1)}Oy(e,t);let u=e.components;u!==null&&gh(t,u,0);let l=e.viewQuery;if(l!==null&&Ea(2,l,n),!i)if(c){let d=e.viewCheckHooks;d!==null&&No(t,d)}else{let d=e.viewHooks;d!==null&&Ro(t,d,2),zs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Hs]){for(let d of t[Hs])d();t[Hs]=null}i||(t[b]&=-73)}catch(c){throw ur(t),c}finally{a!==null&&(ll(a,s),pD(a)),dc()}}function yD(e){return e.type!==2}function hh(e,t){for(let r=Pf(e);r!==null;r=Ff(r))for(let n=Ce;n-1&&(Da(t,n),jo(r,n))}this._attachedToViewContainer=!1}Gf(this._lView[_],this._lView)}onDestroy(t){cf(this._lView,t)}markForCheck(){_c(this._cdRefInjectingView||this._lView)}detach(){this._lView[b]&=-129}reattach(){la(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,fh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,zf(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t,la(this._lView)}},Kt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=CD;let e=t;return e})(),ID=Kt,ED=class extends ID{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let o=uD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new Qt(o)}};function CD(){return Nc(ve(),k())}function Nc(e,t){return e.type&4?new ED(t,e,Vn(e,t)):null}var H_=new RegExp(`^(\\d+)*(${Qv}|${Yv})*(.*)`);var bD=()=>null;function ad(e,t){return bD(e,t)}var Yo=class{},ba=class{},Qo=class{};function MD(e){let t=Error(`No component factory found for ${ge(e)}.`);return t[TD]=e,t}var TD="ngComponent";var Ma=class{resolveComponentFactory(t){throw MD(t)}},Mi=(()=>{let t=class t{};t.NULL=new Ma;let e=t;return e})(),dr=class{},Dr=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>SD();let e=t;return e})();function SD(){let e=k(),t=ve(),r=xt(t.index,e);return(Bt(r)?r:e)[te]}var xD=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Ys={};var cd=new Set;function Ti(e){cd.has(e)||(cd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ud(...e){}function AD(){let e=typeof ee.requestAnimationFrame=="function",t=ee[e?"requestAnimationFrame":"setTimeout"],r=ee[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var $=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new v(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=AD().nativeRequestAnimationFrame,RD(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,_D,ud,ud);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},_D={};function Rc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function ND(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ee,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ta(e),e.isCheckStableRunning=!0,Rc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ta(e))}function RD(e){let t=()=>{ND(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(OD(a))return r.invokeTask(o,i,s,a);try{return ld(e),r.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),dd(e)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return ld(e),r.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),dd(e)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Ta(e),Rc(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Ta(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ld(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dd(e){e._nesting--,Rc(e)}var Sa=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,o){return t.apply(r,n)}};function OD(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}function PD(e="zone.js",t){return e==="noop"?new Sa:e==="zone.js"?new $(t):e}var Mn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Mn||{}),FD={destroy(){}};function Oc(e,t){!t&&qm(Oc);let r=t?.injector??p(Je);if(!uy(r))return FD;Ti("NgAfterNextRender");let n=r.get(Pc),o=n.handler??=new Aa,i=t?.phase??Mn.MixedReadWrite,s=()=>{o.unregister(c),a()},a=r.get(gc).onDestroy(s),c=$e(r,()=>new xa(i,()=>{s(),e()}));return o.register(c),{destroy:s}}var xa=class{constructor(t,r){this.phase=t,this.callbackFn=r,this.zone=p($),this.errorHandler=p(Ke,{optional:!0}),p(Yo,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}},Aa=class{constructor(){this.executingCallbacks=!1,this.buckets={[Mn.EarlyRead]:new Set,[Mn.Write]:new Set,[Mn.MixedReadWrite]:new Set,[Mn.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let r of t)r.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},Pc=(()=>{let t=class t{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}};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ko(e,t,r){let n=r?e.styles:null,o=r?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Yf(e,r,i.join(" "))}}function BD(e,t,r){let n=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=zD;let e=t;return e})();function zD(){let e=ve();return vh(e,k())}var qD=_t,mh=class extends qD{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Vn(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=fc(this._hostTNode,this._hostLView);if(If(t)){let r=Ho(t,this._hostLView),n=Bo(t),o=r[_].data[n+8];return new Ht(o,r)}else return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=hd(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(t,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=ad(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,sd(this._hostTNode,s)),a}createComponent(t,r,n,o,i){let s=t&&!Wm(t),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?t:new Pn(bt(t)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let S=(s?u:this.parentInjector).get(me,null);S&&(i=S)}let l=bt(c.componentType??{}),d=ad(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,o,f,i);return this.insertImpl(h.hostView,a,sd(this._hostTNode,d)),h}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let o=t._lView;if(rv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[se],u=new mh(c,c[Ue],c[se]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(r),s=this._lContainer;return lD(s,o,i,n),t.attachToViewContainerRef(),Pd(Qs(s),i,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=hd(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=Da(this._lContainer,r);n&&(jo(Qs(this._lContainer),r),Gf(n[_],n))}detach(t){let r=this._adjustIndex(t,-1),n=Da(this._lContainer,r);return n&&jo(Qs(this._lContainer),r)!=null?new Qt(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function hd(e){return e[Uo]}function Qs(e){return e[Uo]||(e[Uo]=[])}function vh(e,t){let r,n=t[e.index];return lt(n)?r=n:(r=ih(n,t,null,e),t[e.index]=r,bi(t,r)),WD(r,t,e,n),new mh(r,e,t)}function GD(e,t){let r=e[te],n=r.createComment(""),o=_e(t,e),i=Ic(r,o);return Wo(r,i,n,by(r,o),!1),n}var WD=QD,ZD=()=>!1;function YD(e,t,r){return ZD(e,t,r)}function QD(e,t,r,n){if(e[Gt])return;let o;r.type&8?o=Qe(n):o=GD(t,r),e[Gt]=o}var Ra=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Oa=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Ce;dt.trim())}function iw(e,t,r){e.queries===null&&(e.queries=new Fa),e.queries.track(new ka(t,r))}function sw(e,t){let r=e.contentQueries||(e.contentQueries=[]),n=r.length?r[r.length-1]:-1;t!==n&&r.push(e.queries.length-1,t)}function Fc(e,t){return e.queries.getByIndex(t)}function aw(e,t){let r=e[_],n=Fc(r,t);return n.crossesNgTemplate?La(r,e,t,[]):yh(r,e,n,t)}function cw(e){let t=[],r=new Map;function n(o){let i=r.get(o);if(!i){let s=e(o);r.set(o,i=s.then(fw))}return i}return Xo.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,f)=>{a.push(""),s.push(n(d).then(h=>{a[u+f]=h,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(()=>hw(i));t.push(c)}),lw(),Promise.all(t).then(()=>{})}var Xo=new Map,uw=new Set;function lw(){let e=Xo;return Xo=new Map,e}function dw(){return Xo.size===0}function fw(e){return typeof e=="string"?e:e.text()}function hw(e){uw.delete(e)}function pw(e){return Object.getPrototypeOf(e.prototype).constructor}function gw(e){let t=pw(e.type),r=!0,n=[e];for(;t;){let o;if(Mt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(r){n.push(o);let s=e;s.inputs=So(e.inputs),s.inputTransforms=So(e.inputTransforms),s.declaredInputs=So(e.declaredInputs),s.outputs=So(e.outputs);let a=o.hostBindings;a&&ww(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&yw(e,c),u&&Dw(e,u),mw(e,o),Yg(e.outputs,o.outputs),Mt(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=e[n];o.hostVars=t+=o.hostVars,o.hostAttrs=ir(o.hostAttrs,r=ir(r,o.hostAttrs))}}function So(e){return e===xn?{}:e===Ae?[]:e}function yw(e,t){let r=e.viewQuery;r?e.viewQuery=(n,o)=>{t(n,o),r(n,o)}:e.viewQuery=t}function Dw(e,t){let r=e.contentQueries;r?e.contentQueries=(n,o,i)=>{t(n,o,i),r(n,o,i)}:e.contentQueries=t}function ww(e,t){let r=e.hostBindings;r?e.hostBindings=(n,o)=>{t(n,o),r(n,o)}:e.hostBindings=t}function kc(e){let t=e.inputConfig,r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}e.inputTransforms=r}var St=class{},fr=class{};var ei=class extends St{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Jo(this);let o=zd(t);this._bootstrapComponents=Bf(o.bootstrap),this._r3Injector=_f(t,r,[{provide:St,useValue:this},{provide:Mi,useValue:this.componentFactoryResolver},...n],ge(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ti=class extends fr{constructor(t){super(),this.moduleType=t}create(t){return new ei(this.moduleType,t,[])}};function Iw(e,t,r){return new ei(e,t,r)}var ja=class extends St{constructor(t){super(),this.componentFactoryResolver=new Jo(this),this.instance=null;let r=new sr([...t.providers,{provide:St,useValue:this},{provide:Mi,useValue:this.componentFactoryResolver}],t.parent||tc(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Si(e,t,r=null){return new ja({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var nn=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Dh(e){return Cw(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Ew(e,t){if(Array.isArray(e))for(let r=0;r>17&32767}function Rw(e){return(e&2)==2}function Ow(e,t){return e&131071|t<<17}function Va(e){return e|2}function Fn(e){return(e&131068)>>2}function Ks(e,t){return e&-131069|t<<2}function Pw(e){return(e&1)===1}function $a(e){return e|1}function Fw(e,t,r,n,o,i){let s=i?t.classBindings:t.styleBindings,a=Xt(s),c=Fn(s);e[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||gr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let f=Xt(e[a+1]);e[n+1]=xo(f,a),f!==0&&(e[f+1]=Ks(e[f+1],n)),e[a+1]=Ow(e[a+1],n)}else e[n+1]=xo(a,0),a!==0&&(e[a+1]=Ks(e[a+1],n)),a=n;else e[n+1]=xo(c,0),a===0?a=n:e[c+1]=Ks(e[c+1],n),c=n;u&&(e[n+1]=Va(e[n+1])),pd(e,l,n,!0),pd(e,l,n,!1),kw(t,l,e,n,i),s=xo(a,c),i?t.classBindings=s:t.styleBindings=s}function kw(e,t,r,n,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(r[n+1]=$a(r[n+1]))}function pd(e,t,r,n){let o=e[r+1],i=t===null,s=n?Xt(o):Fn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Lw(c,t)&&(a=!0,e[s+1]=n?$a(u):Va(u)),s=n?Xt(u):Fn(u)}a&&(e[r+1]=n?Va(o):$a(o))}function Lw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}function jw(e,t,r){let n=k(),o=cc();if(Jt(n,o,t)){let i=ue(),s=yf();Hy(i,s,n,e,t,n[te],r,!1)}return jw}function gd(e,t,r,n,o){let i=t.inputs,s=o?"class":"style";xc(e,r,i[s],s,n)}function Vw(e,t){return $w(e,t,null,!0),Vw}function $w(e,t,r,n){let o=k(),i=ue(),s=mv(2);if(i.firstUpdatePass&&Bw(i,e,s,n),t!==At&&Jt(o,s,t)){let a=i.data[jn()];Ww(i,a,o,o[te],e,o[s+1]=Zw(t,r),n,s)}}function Uw(e,t){return t>=e.expandoStartIndex}function Bw(e,t,r,n){let o=e.data;if(o[r+1]===null){let i=o[jn()],s=Uw(e,r);Yw(i,n)&&t===null&&!s&&(t=!1),t=Hw(o,i,t,n),Fw(o,i,t,r,s,n)}}function Hw(e,t,r,n){let o=wv(e),i=n?t.residualClasses:t.residualStyles;if(o===null)(n?t.classBindings:t.styleBindings)===0&&(r=Js(null,e,t,r,n),r=hr(r,t.attrs,n),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(r=Js(o,e,t,r,n),i===null){let c=zw(e,t,n);c!==void 0&&Array.isArray(c)&&(c=Js(null,e,t,c[1],n),c=hr(c,t.attrs,n),qw(e,t,n,c))}else i=Gw(e,t,n)}return i!==void 0&&(n?t.residualClasses=i:t.residualStyles=i),r}function zw(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Fn(n)!==0)return e[Xt(n)]}function qw(e,t,r,n){let o=r?t.classBindings:t.styleBindings;e[Xt(o)]=n}function Gw(e,t,r){let n,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[o+1];f===At&&(f=d?Ae:void 0);let h=d?Us(f,n):l===n?f:void 0;if(u&&!ni(h)&&(h=Us(c,n)),ni(h)&&(a=h,s))return a;let g=e[o+1];o=s?Xt(g):Fn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Us(c,n))}return a}function ni(e){return e!==void 0}function Zw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ge(vr(e)))),e}function Yw(e,t){return(e.flags&(t?8:16))!==0}function Qw(e,t,r,n,o,i){let s=t.consts,a=On(s,o),c=yr(t,e,2,n,a);return Sc(t,r,c,On(s,i)),c.attrs!==null&&Ko(c,c.attrs,!1),c.mergedAttrs!==null&&Ko(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function wh(e,t,r,n){let o=k(),i=ue(),s=be+e,a=o[te],c=i.firstCreatePass?Qw(s,i,o,t,r,n):i.data[s],u=Kw(i,o,c,a,t,e);o[s]=u;let l=pi(c);return tn(c,!0),Qf(a,u,c),!Tw(c)&&mi()&&Ii(i,o,u,c),av()===0&&Tt(u,o),cv(),l&&(bc(i,o,c),Cc(i,c,o)),n!==null&&Mc(o,c),wh}function Ih(){let e=ve();ac()?df():(e=e.parent,tn(e,!1));let t=e;dv(t)&&fv(),uv();let r=ue();return r.firstCreatePass&&(yi(r,e),rc(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&Sv(t)&&gd(r,t,k(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&xv(t)&&gd(r,t,k(),t.stylesWithoutHost,!1),Ih}function Vc(e,t,r,n){return wh(e,t,r,n),Ih(),Vc}var Kw=(e,t,r,n,o,i)=>(vi(!0),Hf(n,o,Cv()));function Jw(e,t,r,n,o){let i=t.consts,s=On(i,n),a=yr(t,e,8,"ng-container",s);s!==null&&Ko(a,s,!0);let c=On(i,o);return Sc(t,r,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function Xw(e,t,r){let n=k(),o=ue(),i=e+be,s=o.firstCreatePass?Jw(i,o,n,t,r):o.data[i];tn(s,!0);let a=tI(o,n,s,e);return n[i]=a,mi()&&Ii(o,n,a,s),Tt(a,n),pi(s)&&(bc(o,n,s),Cc(o,s,n)),r!=null&&Mc(n,s),Xw}function eI(){let e=ve(),t=ue();return ac()?df():(e=e.parent,tn(e,!1)),t.firstCreatePass&&(yi(t,e),rc(e)&&t.queries.elementEnd(e)),eI}var tI=(e,t,r,n)=>(vi(!0),hy(t[te],""));function q_(){return k()}var Ut=void 0;function nI(e){let t=e,r=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var rI=["en",[["a","p"],["AM","PM"],Ut],[["AM","PM"],Ut,Ut],[["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"]],Ut,[["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"]],Ut,[["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}",Ut,"{1} 'at' {0}",Ut],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",nI],Xs={};function Ne(e){let t=oI(e),r=vd(t);if(r)return r;let n=t.split("-")[0];if(r=vd(n),r)return r;if(n==="en")return rI;throw new v(701,!1)}function vd(e){return e in Xs||(Xs[e]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[e]),Xs[e]}var Z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Z||{});function oI(e){return e.toLowerCase().replace(/_/g,"-")}var ri="en-US";var iI=ri;function sI(e){typeof e=="string"&&(iI=e.toLowerCase().replace(/_/g,"-"))}function $c(e,t,r,n){let o=k(),i=ue(),s=ve();return cI(i,o,o[te],s,e,t,n),$c}function aI(e,t,r,n){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function cI(e,t,r,n,o,i,s){let a=pi(n),u=e.firstCreatePass&&ch(e),l=t[je],d=ah(t),f=!0;if(n.type&3||s){let S=_e(n,t),C=s?s(S):S,E=d.length,ae=s?q=>s(Qe(q[n.index])):n.index,re=null;if(!s&&a&&(re=aI(e,t,o,n.index)),re!==null){let q=re.__ngLastListenerFn__||re;q.__ngNextListenerFn__=i,re.__ngLastListenerFn__=i,f=!1}else{i=Dd(n,t,l,i,!1);let q=r.listen(C,o,i);d.push(i,q),u&&u.push(o,ae,E,E+1)}}else i=Dd(n,t,l,i,!1);let h=n.outputs,g;if(f&&h!==null&&(g=h[o])){let S=g.length;if(S)for(let C=0;C-1?xt(e.index,t):t;_c(a);let c=yd(t,r,n,s),u=i.__ngNextListenerFn__;for(;u;)c=yd(t,r,u,s)&&c,u=u.__ngNextListenerFn__;return o&&c===!1&&s.preventDefault(),c}}function G_(e=1){return Ev(e)}function Eh(e,t,r,n){rw(e,t,r,n)}function Ch(e){let t=k(),r=ue(),n=ff();uc(n+1);let o=Fc(r,n);if(e.dirty&&nv(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=aw(t,n);e.reset(i,Uv),e.notifyOnChanges()}return!0}return!1}function bh(){return tw(k(),ff())}function uI(e,t,r,n){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}function W_(e){let t=pv();return oc(t,be+e)}function Z_(e,t=""){let r=k(),n=ue(),o=e+be,i=n.firstCreatePass?yr(n,o,1,t,null):n.data[o],s=lI(n,r,i,t,e);r[o]=s,mi()&&Ii(n,r,s,i),tn(i,!1)}var lI=(e,t,r,n,o)=>(vi(!0),dy(t[te],n));function dI(e){return Mh("",e,""),dI}function Mh(e,t,r){let n=k(),o=Nw(n,e,t,r);return o!==At&&iD(n,jn(),o),Mh}function fI(e,t,r){let n=ue();if(n.firstCreatePass){let o=Mt(e);Ua(r,n.data,n.blueprint,o,!0),Ua(t,n.data,n.blueprint,o,!1)}}function Ua(e,t,r,n,o){if(e=pe(e),Array.isArray(e))for(let i=0;i>20;if(_n(e)||!e.multi){let h=new Zt(u,o,z),g=ta(c,t,o?l:l+f,d);g===-1?(ha(qo(a,s),i,c),ea(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[g]=h,s[g]=h)}else{let h=ta(c,t,l+f,d),g=ta(c,t,l,l+f),S=h>=0&&r[h],C=g>=0&&r[g];if(o&&!C||!o&&!S){ha(qo(a,s),i,c);let E=gI(o?pI:hI,r.length,o,n,u);!o&&C&&(r[g].providerFactory=E),ea(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=Th(r[o?g:h],u,!o&&n);ea(i,e,h>-1?h:g,E)}!o&&n&&C&&r[g].componentProviders++}}}function ea(e,t,r,n){let o=_n(t),i=jm(t);if(o||i){let c=(i?pe(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.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 Th(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function ta(e,t,r,n){for(let o=r;o{r.providersResolver=(n,o)=>fI(n,o?o(e):e,t)}}var mI=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Wd(!1,n.type),i=o.length>0?Si([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()}}};t.\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(y(me))});let e=t;return e})();function Sh(e){Ti("NgStandalone"),e.getStandaloneInjector=t=>t.get(mI).getOrCreateStandaloneInjector(e)}function Q_(e,t,r){let n=gi()+e,o=k();return o[n]===At?Lc(o,n,r?t.call(r):t()):bw(o,n)}function K_(e,t,r,n){return Ah(k(),gi(),e,t,r,n)}function xh(e,t){let r=e[t];return r===At?void 0:r}function Ah(e,t,r,n,o,i){let s=t+r;return Jt(e,s,o)?Lc(e,s+1,i?n.call(i,o):n(o)):xh(e,s+1)}function vI(e,t,r,n,o,i,s){let a=t+r;return Mw(e,a,o,i)?Lc(e,a+2,s?n.call(s,o,i):n(o,i)):xh(e,a+2)}function J_(e,t){let r=ue(),n,o=e+be;r.firstCreatePass?(n=yI(t,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=zt(n.type,!0)),s,a=we(z);try{let c=zo(!1),u=i();return zo(c),uI(r,k(),o,u),u}finally{we(a)}}function yI(e,t){if(t)for(let r=t.length-1;r>=0;r--){let n=t[r];if(e===n.name)return n}}function X_(e,t,r){let n=e+be,o=k(),i=oc(o,n);return _h(o,n)?Ah(o,gi(),t,i.transform,r,i):i.transform(r)}function eN(e,t,r,n){let o=e+be,i=k(),s=oc(i,o);return _h(i,o)?vI(i,gi(),t,s.transform,r,n,s):s.transform(r,n)}function _h(e,t){return e[_].data[t].pure}var Ao=null;function DI(e){Ao!==null&&(e.defaultEncapsulation!==Ao.defaultEncapsulation||e.preserveWhitespaces!==Ao.preserveWhitespaces)||(Ao=e)}var xi=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Uc=new I(""),wr=new I(""),Ai=(()=>{let t=class t{constructor(n,o,i){this._ngZone=n,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Bc||(wI(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:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!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()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(y($),y(_i),y(wr))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),_i=(()=>{let t=class t{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 Bc?.findTestabilityInTree(this,n,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function wI(e){Bc=e}var Bc;function $n(e){return!!e&&typeof e.then=="function"}function Hc(e){return!!e&&typeof e.subscribe=="function"}var Ni=new I(""),Nh=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(Ni,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if($n(s))n.push(s);else if(Hc(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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ri=new I("");function II(){fl(()=>{throw new v(600,!1)})}function EI(e){return e.isBoundToModule}function CI(e,t,r){try{let n=r();return $n(n)?n.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}function Rh(e,t){return Array.isArray(t)?t.reduce(Rh,e):m(m({},e),t)}var rn=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Nf),this.afterRenderEffectManager=p(Pc),this.externalTestViews=new Set,this.beforeRender=new ce,this.afterTick=new ce,this.componentTypes=[],this.components=[],this.isStable=p(nn).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(me)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof Qo;if(!this._injector.get(Nh).done){let h=!i&&Hd(n),g=!1;throw new v(405,g)}let a;i?a=n:a=this._injector.get(Mi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=EI(a)?void 0:this._injector.get(St),u=o||a.selector,l=a.create(Je.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(Uc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Fo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let o=P(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,P(o)}}detectChangesInAttachedViews(n){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===dh)throw new v(103,!1);if(n){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)bI(a,s,c)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ha(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ha(s))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Fo(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Ri,[]);[...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),()=>Fo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fo(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function bI(e,t,r){!t&&!Ha(e)||MI(e,r,t)}function Ha(e){return sc(e)}function MI(e,t,r){let n;r?(n=0,e[b]|=1024):e[b]&64?n=0:n=1,fh(e,t,n)}var za=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},Oi=(()=>{let t=class t{compileModuleSync(n){return new ti(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=zd(n),s=Bf(i.declarations).reduce((a,c)=>{let u=bt(c);return u&&a.push(new Pn(u)),a},[]);return new za(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),TI=new I("");function SI(e,t,r){let n=new ti(r);return Promise.resolve(n)}function wd(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var xI=(()=>{let t=class t{constructor(){this.zone=p($),this.applicationRef=p(rn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function AI(e){return[{provide:$,useFactory:e},{provide:An,multi:!0,useFactory:()=>{let t=p(xI,{optional:!0});return()=>t.initialize()}},{provide:An,multi:!0,useFactory:()=>{let t=p(RI);return()=>{t.initialize()}}},{provide:Nf,useFactory:_I}]}function _I(){let e=p($),t=p(Ke);return r=>e.runOutsideAngular(()=>t.handleError(r))}function NI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var RI=(()=>{let t=class t{constructor(){this.subscription=new W,this.initialized=!1,this.zone=p($),this.pendingTasks=p(nn)}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(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function OI(){return typeof $localize<"u"&&$localize.locale||ri}var Pi=new I("",{providedIn:"root",factory:()=>p(Pi,O.Optional|O.SkipSelf)||OI()});var Oh=new I(""),Ph=(()=>{let t=class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=PD(o?.ngZone,NI({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=Iw(n.moduleType,this.injector,AI(()=>i)),a=s.injector.get(Ke,null);return i.runOutsideAngular(()=>{let c=i.onError.subscribe({next:u=>{a.handleError(u)}});s.onDestroy(()=>{Fo(this._modules,s),c.unsubscribe()})}),CI(a,i,()=>{let c=s.injector.get(Nh);return c.runInitializers(),c.donePromise.then(()=>{let u=s.injector.get(Pi,ri);return sI(u||ri),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,o=[]){let i=Rh({},o);return SI(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){let o=n.injector.get(rn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(o);else throw new v(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new v(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(Oh,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(o){return new(o||t)(y(Je))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),rr=null,Fh=new I("");function PI(e){if(rr&&!rr.get(Fh,!1))throw new v(400,!1);II(),rr=e;let t=e.get(Ph);return LI(e),t}function zc(e,t,r=[]){let n=`Platform: ${t}`,o=new I(n);return(i=[])=>{let s=kh();if(!s||s.injector.get(Fh,!1)){let a=[...r,...i,{provide:o,useValue:!0}];e?e(a):PI(FI(a,n))}return kI(o)}}function FI(e=[],t){return Je.create({name:t,providers:[{provide:di,useValue:"platform"},{provide:Oh,useValue:new Set([()=>rr=null])},...e]})}function kI(e){let t=kh();if(!t)throw new v(401,!1);return t}function kh(){return rr?.get(Ph)??null}function LI(e){e.get(mc,null)?.forEach(r=>r())}var on=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jI;let e=t;return e})();function jI(e){return VI(ve(),k(),(e&16)===16)}function VI(e,t,r){if(hi(e)&&!r){let n=xt(e.index,t);return new Qt(n,n)}else if(e.type&47){let n=t[Ye];return new Qt(n,t)}return null}var qa=class{constructor(){}supports(t){return Dh(t)}create(t){return new Ga(t)}},$I=(e,t)=>t,Ga=class{constructor(t){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=t||$I}forEachItem(t){let r;for(r=this._itHead;r!==null;r=r._next)t(r)}forEachOperation(t){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=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,n,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,o),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,i,o)):t=this._addAfter(new Wa(r,n),i,o)),t}_verifyReinsertion(t,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let r=t._next;this._addToRemovals(this._unlink(t)),t=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(t,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){let o=r===null?this._itHead:r._next;return t._next=o,t._prev=r,o===null?this._itTail=t:o._prev=t,r===null?this._itHead=t:r._next=t,this._linkedRecords===null&&(this._linkedRecords=new oi),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let r=t._prev,n=t._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new oi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Wa=class{constructor(t,r){this.item=t,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}},Za=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let r=t._prevDup,n=t._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},oi=class{constructor(){this.map=new Map}put(t){let r=t.trackById,n=this.map.get(r);n||(n=new Za,this.map.set(r,n)),n.add(t)}get(t,r){let n=t,o=this.map.get(n);return o?o.get(t,r):null}remove(t){let r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Id(e,t,r){let n=e.previousIndex;if(n===null)return n;let o=0;return r&&n{let t=class t{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:o=>t.create(n,o||Ed()),deps:[[t,new Qa,new ui]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new v(901,!1)}};t.\u0275prov=D({token:t,providedIn:"root",factory:Ed});let e=t;return e})();var Lh=zc(null,"core",[]),jh=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(o){return new(o||t)(y(rn))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})();function Ir(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Gc(e){let t=P(null);try{return e()}finally{P(t)}}function Vh(e){let t=bt(e);if(!t)return null;let r=new Pn(t);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 t.standalone},get isSignal(){return t.signals}}}var Gh=null;function sn(){return Gh}function Wh(e){Gh??=e}var Hi=class{};var le=new I(""),nu=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(UI),providedIn:"platform"});let e=t;return e})(),Zh=new I(""),UI=(()=>{let t=class t extends nu{constructor(){super(),this._doc=p(le),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sn().getBaseHref(this._doc)}onPopState(n){let o=sn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=sn().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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function ru(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function $h(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function ht(e){return e&&e[0]!=="?"?"?"+e:e}var gt=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(ou),providedIn:"root"});let e=t;return e})(),Yh=new I(""),ou=(()=>{let t=class t extends gt{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 ru(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+ht(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(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)}};t.\u0275fac=function(o){return new(o||t)(y(nu),y(Yh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Qh=(()=>{let t=class t extends gt{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=ru(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(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)}};t.\u0275fac=function(o){return new(o||t)(y(nu),y(Yh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Bn=(()=>{let t=class t{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=zI($h(Uh(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+ht(o))}normalize(n){return t.stripTrailingSlash(HI(this._basePath,Uh(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+ht(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ht(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})}};t.normalizeQueryParams=ht,t.joinWithSlash=ru,t.stripTrailingSlash=$h,t.\u0275fac=function(o){return new(o||t)(y(gt))},t.\u0275prov=D({token:t,factory:()=>BI(),providedIn:"root"});let e=t;return e})();function BI(){return new Bn(y(gt))}function HI(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function Uh(e){return e.replace(/\/index.html$/,"")}function zI(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}var ye=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(ye||{}),B=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(B||{}),Me=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Me||{}),Nt={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 qI(e){return Ne(e)[Z.LocaleId]}function GI(e,t,r){let n=Ne(e),o=[n[Z.DayPeriodsFormat],n[Z.DayPeriodsStandalone]],i=Re(o,t);return Re(i,r)}function WI(e,t,r){let n=Ne(e),o=[n[Z.DaysFormat],n[Z.DaysStandalone]],i=Re(o,t);return Re(i,r)}function ZI(e,t,r){let n=Ne(e),o=[n[Z.MonthsFormat],n[Z.MonthsStandalone]],i=Re(o,t);return Re(i,r)}function YI(e,t){let n=Ne(e)[Z.Eras];return Re(n,t)}function Fi(e,t){let r=Ne(e);return Re(r[Z.DateFormat],t)}function ki(e,t){let r=Ne(e);return Re(r[Z.TimeFormat],t)}function Li(e,t){let n=Ne(e)[Z.DateTimeFormat];return Re(n,t)}function qi(e,t){let r=Ne(e),n=r[Z.NumberSymbols][t];if(typeof n>"u"){if(t===Nt.CurrencyDecimal)return r[Z.NumberSymbols][Nt.Decimal];if(t===Nt.CurrencyGroup)return r[Z.NumberSymbols][Nt.Group]}return n}function Kh(e){if(!e[Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function QI(e){let t=Ne(e);return Kh(t),(t[Z.ExtraData][2]||[]).map(n=>typeof n=="string"?Wc(n):[Wc(n[0]),Wc(n[1])])}function KI(e,t,r){let n=Ne(e);Kh(n);let o=[n[Z.ExtraData][0],n[Z.ExtraData][1]],i=Re(o,t)||[];return Re(i,r)||[]}function Re(e,t){for(let r=t;r>-1;r--)if(typeof e[r]<"u")return e[r];throw new Error("Locale data API: locale data undefined")}function Wc(e){let[t,r]=e.split(":");return{hours:+t,minutes:+r}}var JI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ji={},XI=/((?:[^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]*)/,pt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(pt||{}),j=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(j||{}),L=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(L||{});function eE(e,t,r,n){let o=uE(e);t=ft(r,t)||t;let s=[],a;for(;t;)if(a=XI.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();n&&(c=Xh(n,c),o=cE(o,n,!0));let u="";return s.forEach(l=>{let d=sE(l);u+=d?d(o,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function zi(e,t,r){let n=new Date(0);return n.setFullYear(e,t,r),n.setHours(0,0,0),n}function ft(e,t){let r=qI(e);if(ji[r]??={},ji[r][t])return ji[r][t];let n="";switch(t){case"shortDate":n=Fi(e,Me.Short);break;case"mediumDate":n=Fi(e,Me.Medium);break;case"longDate":n=Fi(e,Me.Long);break;case"fullDate":n=Fi(e,Me.Full);break;case"shortTime":n=ki(e,Me.Short);break;case"mediumTime":n=ki(e,Me.Medium);break;case"longTime":n=ki(e,Me.Long);break;case"fullTime":n=ki(e,Me.Full);break;case"short":let o=ft(e,"shortTime"),i=ft(e,"shortDate");n=Vi(Li(e,Me.Short),[o,i]);break;case"medium":let s=ft(e,"mediumTime"),a=ft(e,"mediumDate");n=Vi(Li(e,Me.Medium),[s,a]);break;case"long":let c=ft(e,"longTime"),u=ft(e,"longDate");n=Vi(Li(e,Me.Long),[c,u]);break;case"full":let l=ft(e,"fullTime"),d=ft(e,"fullDate");n=Vi(Li(e,Me.Full),[l,d]);break}return n&&(ji[r][t]=n),n}function Vi(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(r,n){return t!=null&&n in t?t[n]:r})),e}function Be(e,t,r="-",n,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=r));let s=String(e);for(;s.length0||a>-r)&&(a+=r),e===j.Hours)a===0&&r===-12&&(a=12);else if(e===j.FractionalSeconds)return tE(a,t);let c=qi(s,Nt.MinusSign);return Be(a,t,c,n,o)}}function nE(e,t){switch(e){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function H(e,t,r=ye.Format,n=!1){return function(o,i){return rE(o,i,e,t,r,n)}}function rE(e,t,r,n,o,i){switch(r){case L.Months:return ZI(t,o,n)[e.getMonth()];case L.Days:return WI(t,o,n)[e.getDay()];case L.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=QI(t),l=KI(t,o,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,S=s>=h.hours&&a>=h.minutes,C=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case pt.Short:return(o>=0?"+":"")+Be(s,2,i)+Be(Math.abs(o%60),2,i);case pt.ShortGMT:return"GMT"+(o>=0?"+":"")+Be(s,1,i);case pt.Long:return"GMT"+(o>=0?"+":"")+Be(s,2,i)+":"+Be(Math.abs(o%60),2,i);case pt.Extended:return n===0?"Z":(o>=0?"+":"")+Be(s,2,i)+":"+Be(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var oE=0,Bi=4;function iE(e){let t=zi(e,oE,1).getDay();return zi(e,0,1+(t<=Bi?Bi:Bi+7)-t)}function Jh(e){let t=e.getDay(),r=t===0?-3:Bi-t;return zi(e.getFullYear(),e.getMonth(),e.getDate()+r)}function Zc(e,t=!1){return function(r,n){let o;if(t){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=Jh(r),s=iE(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Be(o,e,qi(n,Nt.MinusSign))}}function Ui(e,t=!1){return function(r,n){let i=Jh(r).getFullYear();return Be(i,e,qi(n,Nt.MinusSign),t)}}var Yc={};function sE(e){if(Yc[e])return Yc[e];let t;switch(e){case"G":case"GG":case"GGG":t=H(L.Eras,B.Abbreviated);break;case"GGGG":t=H(L.Eras,B.Wide);break;case"GGGGG":t=H(L.Eras,B.Narrow);break;case"y":t=J(j.FullYear,1,0,!1,!0);break;case"yy":t=J(j.FullYear,2,0,!0,!0);break;case"yyy":t=J(j.FullYear,3,0,!1,!0);break;case"yyyy":t=J(j.FullYear,4,0,!1,!0);break;case"Y":t=Ui(1);break;case"YY":t=Ui(2,!0);break;case"YYY":t=Ui(3);break;case"YYYY":t=Ui(4);break;case"M":case"L":t=J(j.Month,1,1);break;case"MM":case"LL":t=J(j.Month,2,1);break;case"MMM":t=H(L.Months,B.Abbreviated);break;case"MMMM":t=H(L.Months,B.Wide);break;case"MMMMM":t=H(L.Months,B.Narrow);break;case"LLL":t=H(L.Months,B.Abbreviated,ye.Standalone);break;case"LLLL":t=H(L.Months,B.Wide,ye.Standalone);break;case"LLLLL":t=H(L.Months,B.Narrow,ye.Standalone);break;case"w":t=Zc(1);break;case"ww":t=Zc(2);break;case"W":t=Zc(1,!0);break;case"d":t=J(j.Date,1);break;case"dd":t=J(j.Date,2);break;case"c":case"cc":t=J(j.Day,1);break;case"ccc":t=H(L.Days,B.Abbreviated,ye.Standalone);break;case"cccc":t=H(L.Days,B.Wide,ye.Standalone);break;case"ccccc":t=H(L.Days,B.Narrow,ye.Standalone);break;case"cccccc":t=H(L.Days,B.Short,ye.Standalone);break;case"E":case"EE":case"EEE":t=H(L.Days,B.Abbreviated);break;case"EEEE":t=H(L.Days,B.Wide);break;case"EEEEE":t=H(L.Days,B.Narrow);break;case"EEEEEE":t=H(L.Days,B.Short);break;case"a":case"aa":case"aaa":t=H(L.DayPeriods,B.Abbreviated);break;case"aaaa":t=H(L.DayPeriods,B.Wide);break;case"aaaaa":t=H(L.DayPeriods,B.Narrow);break;case"b":case"bb":case"bbb":t=H(L.DayPeriods,B.Abbreviated,ye.Standalone,!0);break;case"bbbb":t=H(L.DayPeriods,B.Wide,ye.Standalone,!0);break;case"bbbbb":t=H(L.DayPeriods,B.Narrow,ye.Standalone,!0);break;case"B":case"BB":case"BBB":t=H(L.DayPeriods,B.Abbreviated,ye.Format,!0);break;case"BBBB":t=H(L.DayPeriods,B.Wide,ye.Format,!0);break;case"BBBBB":t=H(L.DayPeriods,B.Narrow,ye.Format,!0);break;case"h":t=J(j.Hours,1,-12);break;case"hh":t=J(j.Hours,2,-12);break;case"H":t=J(j.Hours,1);break;case"HH":t=J(j.Hours,2);break;case"m":t=J(j.Minutes,1);break;case"mm":t=J(j.Minutes,2);break;case"s":t=J(j.Seconds,1);break;case"ss":t=J(j.Seconds,2);break;case"S":t=J(j.FractionalSeconds,1);break;case"SS":t=J(j.FractionalSeconds,2);break;case"SSS":t=J(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=$i(pt.Short);break;case"ZZZZZ":t=$i(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=$i(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=$i(pt.Long);break;default:return null}return Yc[e]=t,t}function Xh(e,t){e=e.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(r)?t:r}function aE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function cE(e,t,r){let n=r?-1:1,o=e.getTimezoneOffset(),i=Xh(t,o);return aE(e,n*(i-o))}function uE(e){if(Bh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return zi(o,i-1,s)}let r=parseFloat(e);if(!isNaN(e-r))return new Date(r);let n;if(n=e.match(JI))return lE(n)}let t=new Date(e);if(!Bh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function lE(e){let t=new Date(0),r=0,n=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(r=Number(e[9]+e[10]),n=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-r,a=Number(e[5]||0)-n,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Bh(e){return e instanceof Date&&!isNaN(e.valueOf())}function Gi(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Qc=class{constructor(t,r,n,o){this.$implicit=t,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}},EN=(()=>{let t=class t{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 Qc(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),Hh(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Hh(s,i)})}static ngTemplateContextGuard(n,o){return!0}};t.\u0275fac=function(o){return new(o||t)(z(_t),z(Kt),z(qc))},t.\u0275dir=en({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Hh(e,t){e.context.$implicit=t.item}var CN=(()=>{let t=class t{constructor(n,o){this._viewContainer=n,this._context=new Kc,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){zh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){zh("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}};t.\u0275fac=function(o){return new(o||t)(z(_t),z(Kt))},t.\u0275dir=en({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Kc=class{constructor(){this.$implicit=null,this.ngIf=null}};function zh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ge(t)}'.`)}function ep(e,t){return new v(2100,!1)}var Jc=class{createSubscription(t,r){return Gc(()=>t.subscribe({next:r,error:n=>{throw n}}))}dispose(t){Gc(()=>t.unsubscribe())}},Xc=class{createSubscription(t,r){return t.then(r,n=>{throw n})}dispose(t){}},dE=new Xc,fE=new Jc,bN=(()=>{let t=class t{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($n(n))return dE;if(Hc(n))return fE;throw ep(t,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())}};t.\u0275fac=function(o){return new(o||t)(z(on,16))},t.\u0275pipe=Xa({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var hE="mediumDate",pE=new I(""),gE=new I(""),MN=(()=>{let t=class t{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??hE,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return eE(n,a,s||this.locale,c)}catch(a){throw ep(t,a.message)}}};t.\u0275fac=function(o){return new(o||t)(z(Pi,16),z(pE,24),z(gE,24))},t.\u0275pipe=Xa({name:"date",type:t,pure:!0,standalone:!0});let e=t;return e})();var tp=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})(),iu="browser",mE="server";function vE(e){return e===iu}function Wi(e){return e===mE}var np=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>vE(p(Xe))?new eu(p(le),window):new tu});let e=t;return e})(),eu=class{constructor(t,r){this.document=t,this.window=r,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let r=yE(this.document,t);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let r=t.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 yE(e,t){let r=e.getElementById(t)||e.getElementsByName(t)[0];if(r)return r;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=n.nextNode()}}return null}var tu=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Un=class{};var br=class{},Yi=class{},an=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.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"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,r);let o=(t.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=t.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(t,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var au=class{encodeKey(t){return op(t)}encodeValue(t){return op(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function IE(e,t){let r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var EE=/%(\d[a-f0-9])/gi,CE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function op(e){return encodeURIComponent(e).replace(EE,(t,r)=>CE[r]??t)}function Zi(e){return`${e}`}var Rt=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new au,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=IE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let n=t.fromObject[r],o=Array.isArray(n)?n.map(Zi):[Zi(n)];this.map.set(r,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(n=>{let o=t[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(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(Zi(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],o=n.indexOf(Zi(t.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var cu=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function bE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ip(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function sp(e){return typeof Blob<"u"&&e instanceof Blob}function ap(e){return typeof FormData<"u"&&e instanceof FormData}function ME(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Cr=class e{constructor(t,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(bE(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 an,this.context??=new cu,!this.params)this.params=new Rt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(h,t.setHeaders[h]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),l)),new e(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Hn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Hn||{}),Mr=class{constructor(t,r=Ji.Ok,n="OK"){this.headers=t.headers||new an,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},uu=class e extends Mr{constructor(t={}){super(t),this.type=Hn.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Qi=class e extends Mr{constructor(t={}){super(t),this.type=Hn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ki=class extends Mr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Ji=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(Ji||{});function su(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var lu=(()=>{let t=class t{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Cr)s=n;else{let u;i.headers instanceof an?u=i.headers:u=new an(i.headers);let l;i.params&&(i.params instanceof Rt?l=i.params:l=new Rt({fromObject:i.params})),s=new Cr(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=w(s).pipe(rt(u=>this.handler.handle(u)));if(n instanceof Cr||i.observe==="events")return a;let c=a.pipe(fe(u=>u instanceof Qi));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 Rt().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,su(i,o))}post(n,o,i={}){return this.request("POST",n,su(i,o))}put(n,o,i={}){return this.request("PUT",n,su(i,o))}};t.\u0275fac=function(o){return new(o||t)(y(br))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function dp(e,t){return t(e)}function TE(e,t){return(r,n)=>t.intercept(r,{handle:o=>e(o,n)})}function SE(e,t,r){return(n,o)=>$e(r,()=>t(n,i=>e(i,o)))}var xE=new I(""),du=new I(""),AE=new I(""),_E=new I("");function NE(){let e=null;return(t,r)=>{e===null&&(e=(p(xE,{optional:!0})??[]).reduceRight(TE,dp));let n=p(nn),o=n.add();return e(t,r).pipe(It(()=>n.remove(o)))}}var cp=(()=>{let t=class t extends br{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(nn);let i=p(_E,{optional:!0});this.backend=i??n}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(du),...this.injector.get(AE,[])]));this.chain=i.reduceRight((s,a)=>SE(s,a,this.injector),dp)}let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(It(()=>this.pendingTasks.remove(o)))}};t.\u0275fac=function(o){return new(o||t)(y(Yi),y(me))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();var RE=/^\)\]\}',?\n/;function OE(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var up=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?G(o.\u0275loadImpl()):w(null)).pipe(he(()=>new F(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((C,E)=>a.setRequestHeader(C,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let C=n.detectContentTypeHeader();C!==null&&a.setRequestHeader("Content-Type",C)}if(n.responseType){let C=n.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let C=a.statusText||"OK",E=new an(a.getAllResponseHeaders()),ae=OE(a)||n.url;return u=new uu({headers:E,status:a.status,statusText:C,url:ae}),u},d=()=>{let{headers:C,status:E,statusText:ae,url:re}=l(),q=null;E!==Ji.NoContent&&(q=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=q?Ji.Ok:0);let ze=E>=200&&E<300;if(n.responseType==="json"&&typeof q=="string"){let Ie=q;q=q.replace(RE,"");try{q=q!==""?JSON.parse(q):null}catch(vt){q=Ie,ze&&(ze=!1,q={error:vt,text:q})}}ze?(s.next(new Qi({body:q,headers:C,status:E,statusText:ae,url:re||void 0})),s.complete()):s.error(new Ki({error:q,headers:C,status:E,statusText:ae,url:re||void 0}))},f=C=>{let{url:E}=l(),ae=new Ki({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(ae)},h=!1,g=C=>{h||(s.next(l()),h=!0);let E={type:Hn.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(E.total=C.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},S=C=>{let E={type:Hn.UploadProgress,loaded:C.loaded};C.lengthComputable&&(E.total=C.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(c),s.next({type:Hn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(o){return new(o||t)(y(Un))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),fp=new I(""),PE="XSRF-TOKEN",FE=new I("",{providedIn:"root",factory:()=>PE}),kE="X-XSRF-TOKEN",LE=new I("",{providedIn:"root",factory:()=>kE}),Xi=class{},jE=(()=>{let t=class t{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=Gi(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(o){return new(o||t)(y(le),y(Xe),y(FE))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function VE(e,t){let r=e.url.toLowerCase();if(!p(fp)||e.method==="GET"||e.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return t(e);let n=p(Xi).getToken(),o=p(LE);return n!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,n)})),t(e)}var hp=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(hp||{});function $E(e,t){return{\u0275kind:e,\u0275providers:t}}function UE(...e){let t=[lu,up,cp,{provide:br,useExisting:cp},{provide:Yi,useExisting:up},{provide:du,useValue:VE,multi:!0},{provide:fp,useValue:!0},{provide:Xi,useClass:jE}];for(let r of e)t.push(...r.\u0275providers);return li(t)}var lp=new I("");function BE(){return $E(hp.LegacyInterceptors,[{provide:lp,useFactory:NE},{provide:du,useExisting:lp,multi:!0}])}var jN=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[UE(BE())]});let e=t;return e})();var pu=class extends Hi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},gu=class e extends pu{static makeCurrent(){Wh(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=zE();return r==null?null:qE(r)}resetBaseElement(){Tr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Gi(document.cookie,t)}},Tr=null;function zE(){return Tr=Tr||document.querySelector("base"),Tr?Tr.getAttribute("href"):null}function qE(e){return new URL(e,document.baseURI).pathname}var mu=class{addToWindow(t){ee.getAngularTestability=(n,o=!0)=>{let i=t.findTestabilityInTree(n,o);if(i==null)throw new v(5103,!1);return i},ee.getAllAngularTestabilities=()=>t.getAllTestabilities(),ee.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let o=ee.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&n()};o.forEach(a=>{a.whenStable(s)})};ee.frameworkStabilizers||(ee.frameworkStabilizers=[]),ee.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let o=t.getTestability(r);return o??(n?sn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},GE=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),vu=new I(""),vp=(()=>{let t=class t{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 v(5101,!1);return this._eventNameToPlugin.set(n,o),o}};t.\u0275fac=function(o){return new(o||t)(y(vu),y($))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),es=class{constructor(t){this._doc=t}},fu="ng-app-id",yp=(()=>{let t=class t{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=Wi(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[${fu}="${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(fu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(fu,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)}};t.\u0275fac=function(o){return new(o||t)(y(le),y(Di),y(vc,8),y(Xe))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),hu={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/MathML/"},Du=/%COMP%/g,Dp="%COMP%",WE=`_nghost-${Dp}`,ZE=`_ngcontent-${Dp}`,YE=!0,QE=new I("",{providedIn:"root",factory:()=>YE});function KE(e){return ZE.replace(Du,e)}function JE(e){return WE.replace(Du,e)}function wp(e,t){return t.map(r=>r.replace(Du,e))}var pp=(()=>{let t=class t{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=Wi(c),this.defaultRenderer=new Sr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ze.ShadowDom&&(o=Y(m({},o),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof ts?i.applyToHost(n):i instanceof xr&&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,f=this.platformIsServer;switch(o.encapsulation){case Ze.Emulated:s=new ts(u,l,o,this.appId,d,a,c,f);break;case Ze.ShadowDom:return new yu(u,l,n,o,a,c,this.nonce,f);default:s=new xr(u,l,o,d,a,c,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(y(vp),y(yp),y(Di),y(QE),y(le),y(Xe),y($),y(vc))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Sr=class{constructor(t,r,n,o){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(hu[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(gp(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(gp(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,o){if(o){r=o+":"+r;let i=hu[o];i?t.setAttributeNS(i,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let o=hu[n];o?t.removeAttributeNS(o,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,o){o&(st.DashCase|st.Important)?t.style.setProperty(r,n,o&st.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&st.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=sn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function gp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var yu=class extends Sr{constructor(t,r,n,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=wp(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},xr=class extends Sr{constructor(t,r,n,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?wp(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ts=class extends xr{constructor(t,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(t,r,n,i,s,a,c,u),this.contentAttr=KE(u),this.hostAttr=JE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},XE=(()=>{let t=class t extends es{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)}};t.\u0275fac=function(o){return new(o||t)(y(le))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),mp=["alt","control","meta","shift"],eC={"\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"},tC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},nC=(()=>{let t=class t extends es{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sn().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=t._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),mp.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=eC[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"),mp.forEach(a=>{if(a!==i){let c=tC[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{t.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(o){return new(o||t)(y(le))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function rC(){gu.makeCurrent()}function oC(){return new Ke}function iC(){return Lf(document),document}var sC=[{provide:Xe,useValue:iu},{provide:mc,useValue:rC,multi:!0},{provide:le,useFactory:iC,deps:[]}],nR=zc(Lh,"browser",sC),aC=new I(""),cC=[{provide:wr,useClass:mu,deps:[]},{provide:Uc,useClass:Ai,deps:[$,_i,wr]},{provide:Ai,useClass:Ai,deps:[$,_i,wr]}],uC=[{provide:di,useValue:"root"},{provide:Ke,useFactory:oC,deps:[]},{provide:vu,useClass:XE,multi:!0,deps:[le,$,Xe]},{provide:vu,useClass:nC,multi:!0,deps:[le]},pp,yp,vp,{provide:dr,useExisting:pp},{provide:Un,useClass:GE,deps:[]},[]],rR=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Di,useValue:n.appId}]}}};t.\u0275fac=function(o){return new(o||t)(y(aC,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[...uC,...cC],imports:[tp,jh]});let e=t;return e})();var Ip=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(o){return new(o||t)(y(le))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var T="primary",Hr=Symbol("RouteTitle"),bu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Zn(e){return new bu(e)}function dC(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[i]===o)}else return e===t}function Rp(e){return e.length>0?e[e.length-1]:null}function kt(e){return ks(e)?e:$n(e)?G(Promise.resolve(e)):w(e)}var hC={exact:Pp,subset:Fp},Op={exact:pC,subset:gC,ignored:()=>!0};function Ep(e,t,r){return hC[r.paths](e.root,t.root,r.matrixParams)&&Op[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function pC(e,t){return et(e,t)}function Pp(e,t,r){if(!un(e.segments,t.segments)||!os(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!Pp(e.children[n],t.children[n],r))return!1;return!0}function gC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>Np(e[r],t[r]))}function Fp(e,t,r){return kp(e,t,t.segments,r)}function kp(e,t,r,n){if(e.segments.length>r.length){let o=e.segments.slice(0,r.length);return!(!un(o,r)||t.hasChildren()||!os(o,r,n))}else if(e.segments.length===r.length){if(!un(e.segments,r)||!os(e.segments,r,n))return!1;for(let o in t.children)if(!e.children[o]||!Fp(e.children[o],t.children[o],n))return!1;return!0}else{let o=r.slice(0,e.segments.length),i=r.slice(e.segments.length);return!un(e.segments,o)||!os(e.segments,o,n)||!e.children[T]?!1:kp(e.children[T],t,i,n)}}function os(e,t,r){return t.every((n,o)=>Op[r](e[o].parameters,n.parameters))}var Ot=class{constructor(t=new V([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zn(this.queryParams),this._queryParamMap}toString(){return yC.serialize(this)}},V=class{constructor(t,r){this.segments=t,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 is(this)}},cn=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Zn(this.parameters),this._parameterMap}toString(){return jp(this)}};function mC(e,t){return un(e,t)&&e.every((r,n)=>et(r.parameters,t[n].parameters))}function un(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function vC(e,t){let r=[];return Object.entries(e.children).forEach(([n,o])=>{n===T&&(r=r.concat(t(o,n)))}),Object.entries(e.children).forEach(([n,o])=>{n!==T&&(r=r.concat(t(o,n)))}),r}var zr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>new Fr,providedIn:"root"});let e=t;return e})(),Fr=class{parse(t){let r=new Su(t);return new Ot(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${Ar(t.root,!0)}`,n=IC(t.queryParams),o=typeof t.fragment=="string"?`#${DC(t.fragment)}`:"";return`${r}${n}${o}`}},yC=new Fr;function is(e){return e.segments.map(t=>jp(t)).join("/")}function Ar(e,t){if(!e.hasChildren())return is(e);if(t){let r=e.children[T]?Ar(e.children[T],!1):"",n=[];return Object.entries(e.children).forEach(([o,i])=>{o!==T&&n.push(`${o}:${Ar(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=vC(e,(n,o)=>o===T?[Ar(e.children[T],!1)]:[`${o}:${Ar(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[T]!=null?`${is(e)}/${r[0]}`:`${is(e)}/(${r.join("//")})`}}function Lp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ns(e){return Lp(e).replace(/%3B/gi,";")}function DC(e){return encodeURI(e)}function Tu(e){return Lp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ss(e){return decodeURIComponent(e)}function Cp(e){return ss(e.replace(/\+/g,"%20"))}function jp(e){return`${Tu(e.path)}${wC(e.parameters)}`}function wC(e){return Object.entries(e).map(([t,r])=>`;${Tu(t)}=${Tu(r)}`).join("")}function IC(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(o=>`${ns(r)}=${ns(o)}`).join("&"):`${ns(r)}=${ns(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var EC=/^[^\/()?;#]+/;function wu(e){let t=e.match(EC);return t?t[0]:""}var CC=/^[^\/()?;=#]+/;function bC(e){let t=e.match(CC);return t?t[0]:""}var MC=/^[^=?&#]+/;function TC(e){let t=e.match(MC);return t?t[0]:""}var SC=/^[^&#]+/;function xC(e){let t=e.match(SC);return t?t[0]:""}var Su=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[T]=new V(t,r)),n}parseSegment(){let t=wu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new cn(ss(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=bC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=wu(this.remaining);o&&(n=o,this.capture(n))}t[ss(r)]=ss(n)}parseQueryParam(t){let r=TC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=xC(this.remaining);s&&(n=s,this.capture(n))}let o=Cp(r),i=Cp(n);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=wu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=T);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function Vp(e){return e.segments.length>0?new V([],{[T]:e}):e}function $p(e){let t={};for(let[n,o]of Object.entries(e.children)){let i=$p(o);if(n===T&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[n]=i)}let r=new V(e.segments,t);return AC(r)}function AC(e){if(e.numberOfChildren===1&&e.children[T]){let t=e.children[T];return new V(e.segments.concat(t.segments),t.children)}return e}function Yn(e){return e instanceof Ot}function _C(e,t,r=null,n=null){let o=Up(e);return Bp(o,t,r,n)}function Up(e){let t;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===e&&(t=a),a}let n=r(e.root),o=Vp(n);return t??o}function Bp(e,t,r,n){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Iu(o,o,o,r,n);let i=NC(t);if(i.toRoot())return Iu(o,o,new V([],{}),r,n);let s=RC(i,o,e),a=s.processChildren?Rr(s.segmentGroup,s.index,i.commands):zp(s.segmentGroup,s.index,i.commands);return Iu(o,s.segmentGroup,a,r,n)}function as(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function kr(e){return typeof e=="object"&&e!=null&&e.outlets}function Iu(e,t,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=r:s=Hp(e,t,r);let a=Vp($p(s));return new Ot(a,i,o)}function Hp(e,t,r){let n={};return Object.entries(e.children).forEach(([o,i])=>{i===t?n[o]=r:n[o]=Hp(i,t,r)}),new V(e.segments,n)}var cs=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&as(n[0]))throw new v(4003,!1);let o=n.find(kr);if(o&&o!==Rp(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function NC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new cs(!0,0,e);let t=0,r=!1,n=e.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===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new cs(r,t,n)}var Gn=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function RC(e,t,r){if(e.isAbsolute)return new Gn(t,!0,0);if(!r)return new Gn(t,!1,NaN);if(r.parent===null)return new Gn(r,!0,0);let n=as(e.commands[0])?0:1,o=r.segments.length-1+n;return OC(r,o,e.numberOfDoubleDots)}function OC(e,t,r){let n=e,o=t,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new v(4005,!1);o=n.segments.length}return new Gn(n,!1,o-i)}function PC(e){return kr(e[0])?e[0].outlets:{[T]:e}}function zp(e,t,r){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Rr(e,t,r);let n=FC(e,t,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==T)&&e.children[T]&&e.numberOfChildren===1&&e.children[T].segments.length===0){let i=Rr(e.children[T],t,r);return new V(e.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=zp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function FC(e,t,r){let n=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=e.segments[o],a=r[n];if(kr(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Mp(c,u,s))return i;n+=2}else{if(!Mp(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function xu(e,t,r){let n=e.segments.slice(0,t),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=xu(new V([],{}),0,n))}),t}function bp(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function Mp(e,t,r){return e==r.path&&et(t,r.parameters)}var Or="imperative",ne=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ne||{}),Oe=class{constructor(t,r){this.id=t,this.url=r}},Qn=class extends Oe{constructor(t,r,n="imperative",o=null){super(t,r),this.type=ne.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},He=class extends Oe{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=ne.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Se=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Se||{}),us=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(us||{}),Pt=class extends Oe{constructor(t,r,n,o){super(t,r),this.reason=n,this.code=o,this.type=ne.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ft=class extends Oe{constructor(t,r,n,o){super(t,r),this.reason=n,this.code=o,this.type=ne.NavigationSkipped}},Lr=class extends Oe{constructor(t,r,n,o){super(t,r),this.error=n,this.target=o,this.type=ne.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ls=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Au=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_u=class extends Oe{constructor(t,r,n,o,i){super(t,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=ne.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Nu=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ru=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ou=class{constructor(t){this.route=t,this.type=ne.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Pu=class{constructor(t){this.route=t,this.type=ne.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fu=class{constructor(t){this.snapshot=t,this.type=ne.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ku=class{constructor(t){this.snapshot=t,this.type=ne.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lu=class{constructor(t){this.snapshot=t,this.type=ne.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ju=class{constructor(t){this.snapshot=t,this.type=ne.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ds=class{constructor(t,r,n){this.routerEvent=t,this.position=r,this.anchor=n,this.type=ne.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},jr=class{},Vr=class{constructor(t){this.url=t}};var Vu=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new qr,this.attachRef=null}},qr=(()=>{let t=class t{constructor(){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 Vu,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),fs=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=$u(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=$u(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=Uu(t,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Uu(t,this._root).map(r=>r.value)}};function $u(e,t){if(e===t.value)return t;for(let r of t.children){let n=$u(e,r);if(n)return n}return null}function Uu(e,t){if(e===t.value)return[t];for(let r of t.children){let n=Uu(e,r);if(n.length)return n.unshift(t),n}return[]}var Te=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function qn(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var hs=class extends fs{constructor(t,r){super(t),this.snapshot=r,Ku(this,t)}toString(){return this.snapshot.toString()}};function qp(e){let t=LC(e),r=new oe([new cn("",{})]),n=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),a=new ln(r,n,i,s,o,T,e,t.root);return a.snapshot=t.root,new hs(new Te(a,[]),t)}function LC(e){let t={},r={},n={},o="",i=new $r([],t,n,o,r,T,e,null,{});return new ps("",new Te(i,[]))}var ln=class{constructor(t,r,n,o,i,s,a,c){this.urlSubject=t,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[Hr]))??w(void 0),this.url=t,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(t=>Zn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(t=>Zn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Qu(e,t,r="emptyOnly"){let n,{routeConfig:o}=e;return t!==null&&(r==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:n={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&Wp(o)&&(n.resolve[Hr]=o.title),n}var $r=class{get title(){return this.data?.[Hr]}constructor(t,r,n,o,i,s,a,c,u){this.url=t,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??=Zn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},ps=class extends fs{constructor(t,r){super(r),this.url=t,Ku(this,r)}toString(){return Gp(this._root)}};function Ku(e,t){t.value._routerState=e,t.children.forEach(r=>Ku(e,r))}function Gp(e){let t=e.children.length>0?` { ${e.children.map(Gp).join(", ")} } `:"";return`${e.value}${t}`}function Eu(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,et(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),et(t.params,r.params)||e.paramsSubject.next(r.params),fC(t.url,r.url)||e.urlSubject.next(r.url),et(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Bu(e,t){let r=et(e.params,t.params)&&mC(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||Bu(e.parent,t.parent))}function Wp(e){return typeof e.title=="string"||e.title===null}var jC=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=T,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(qr),this.location=p(_t),this.changeDetector=p(on),this.environmentInjector=p(me),this.inputBinder=p(Ds,{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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(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 v(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Hu(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=en({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ln]});let e=t;return e})(),Hu=class{constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(t,r){return t===ln?this.route:t===qr?this.childContexts:this.parent.get(t,r)}},Ds=new I(""),Tp=(()=>{let t=class t{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=tr([o.queryParams,o.params,o.data]).pipe(he(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?w(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=Vh(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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function VC(e,t,r){let n=Ur(e,t._root,r?r._root:void 0);return new hs(n,t)}function Ur(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let o=$C(e,t,r);return new Te(n,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ur(e,a)),s}}let n=UC(t.value),o=t.children.map(i=>Ur(e,i));return new Te(n,o)}}function $C(e,t,r){return t.children.map(n=>{for(let o of r.children)if(e.shouldReuseRoute(n.value,o.value.snapshot))return Ur(e,n,o);return Ur(e,n)})}function UC(e){return new ln(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Zp="ngNavigationCancelingError";function Yp(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Yn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qp(!1,Se.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Qp(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[Zp]=!0,r.cancellationCode=t,r}function BC(e){return Kp(e)&&Yn(e.url)}function Kp(e){return!!e&&e[Zp]}var HC=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=$d({type:t,selectors:[["ng-component"]],standalone:!0,features:[Sh],decls:1,vars:0,template:function(o,i){o&1&&Vc(0,"router-outlet")},dependencies:[jC],encapsulation:2});let e=t;return e})();function zC(e,t){return e.providers&&!e._injector&&(e._injector=Si(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ju(e){let t=e.children&&e.children.map(Ju),r=t?Y(m({},e),{children:t}):m({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==T&&(r.component=HC),r}function tt(e){return e.outlet||T}function qC(e,t){let r=e.filter(n=>tt(n)===t);return r.push(...e.filter(n=>tt(n)!==t)),r}function Gr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var GC=(e,t,r,n)=>A(o=>(new zu(t,o.targetRouterState,o.currentRouterState,r,n).activate(e),o)),zu=class{constructor(t,r,n,o,i){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),Eu(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let o=qn(r);t.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(t,r,n){let o=t.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),o=n&&t.value.component?n.children:r,i=qn(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),o=n&&t.value.component?n.children:r,i=qn(t);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(t,r,n){let o=qn(r);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new ju(i.value.snapshot))}),t.children.length&&this.forwardEvent(new ku(t.value.snapshot))}activateRoutes(t,r,n){let o=t.value,i=r?r.value:null;if(Eu(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,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),Eu(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Gr(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},gs=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Wn=class{constructor(t,r){this.component=t,this.route=r}};function WC(e,t,r){let n=e._root,o=t?t._root:null;return _r(n,o,r,[n.value])}function ZC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Jn(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!Sd(e)?e:t.get(e):n}function _r(e,t,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=qn(t);return e.children.forEach(s=>{YC(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Pr(a,r.getContext(s),o)),o}function YC(e,t,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=QC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new gs(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?_r(e,t,a?a.children:null,n,o):_r(e,t,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Pr(t,a,o),o.canActivateChecks.push(new gs(n)),i.component?_r(e,null,a?a.children:null,n,o):_r(e,null,r,n,o);return o}function QC(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!un(e.url,t.url);case"pathParamsOrQueryParamsChange":return!un(e.url,t.url)||!et(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bu(e,t)||!et(e.queryParams,t.queryParams);case"paramsChange":default:return!Bu(e,t)}}function Pr(e,t,r){let n=qn(e),o=e.value;Object.entries(n).forEach(([i,s])=>{o.component?t?Pr(s,t.children.getContext(i),r):Pr(s,null,r):Pr(s,t,r)}),o.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Wn(t.outlet.component,o)):r.canDeactivateChecks.push(new Wn(null,o)):r.canDeactivateChecks.push(new Wn(null,o))}function Wr(e){return typeof e=="function"}function KC(e){return typeof e=="boolean"}function JC(e){return e&&Wr(e.canLoad)}function XC(e){return e&&Wr(e.canActivate)}function eb(e){return e&&Wr(e.canActivateChild)}function tb(e){return e&&Wr(e.canDeactivate)}function nb(e){return e&&Wr(e.canMatch)}function Jp(e){return e instanceof nt||e?.name==="EmptyError"}var rs=Symbol("INITIAL_VALUE");function Kn(){return he(e=>tr(e.map(t=>t.pipe(ot(1),$s(rs)))).pipe(A(t=>{for(let r of t)if(r!==!0){if(r===rs)return rs;if(r===!1||r instanceof Ot)return r}return!0}),fe(t=>t!==rs),ot(1)))}function rb(e,t){return K(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?w(Y(m({},r),{guardsResult:!0})):ob(s,n,o,e).pipe(K(a=>a&&KC(a)?ib(n,i,e,t):w(a)),A(a=>Y(m({},r),{guardsResult:a})))})}function ob(e,t,r,n){return G(e).pipe(K(o=>lb(o.component,o.route,r,t,n)),qe(o=>o!==!0,!0))}function ib(e,t,r,n){return G(t).pipe(rt(o=>wn(ab(o.route.parent,n),sb(o.route,n),ub(e,o.path,r),cb(e,o.route,r))),qe(o=>o!==!0,!0))}function sb(e,t){return e!==null&&t&&t(new Lu(e)),w(!0)}function ab(e,t){return e!==null&&t&&t(new Fu(e)),w(!0)}function cb(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return w(!0);let o=n.map(i=>Eo(()=>{let s=Gr(t)??r,a=Jn(i,s),c=XC(a)?a.canActivate(t,e):$e(s,()=>a(t,e));return kt(c).pipe(qe())}));return w(o).pipe(Kn())}function ub(e,t,r){let n=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>ZC(s)).filter(s=>s!==null).map(s=>Eo(()=>{let a=s.guards.map(c=>{let u=Gr(s.node)??r,l=Jn(c,u),d=eb(l)?l.canActivateChild(n,e):$e(u,()=>l(n,e));return kt(d).pipe(qe())});return w(a).pipe(Kn())}));return w(i).pipe(Kn())}function lb(e,t,r,n,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return w(!0);let s=i.map(a=>{let c=Gr(t)??o,u=Jn(a,c),l=tb(u)?u.canDeactivate(e,t,r,n):$e(c,()=>u(e,t,r,n));return kt(l).pipe(qe())});return w(s).pipe(Kn())}function db(e,t,r,n){let o=t.canLoad;if(o===void 0||o.length===0)return w(!0);let i=o.map(s=>{let a=Jn(s,e),c=JC(a)?a.canLoad(t,r):$e(e,()=>a(t,r));return kt(c)});return w(i).pipe(Kn(),Xp(n))}function Xp(e){return Ns(X(t=>{if(Yn(t))throw Yp(e,t)}),A(t=>t===!0))}function fb(e,t,r,n){let o=t.canMatch;if(!o||o.length===0)return w(!0);let i=o.map(s=>{let a=Jn(s,e),c=nb(a)?a.canMatch(t,r):$e(e,()=>a(t,r));return kt(c)});return w(i).pipe(Kn(),Xp(n))}var Br=class{constructor(t){this.segmentGroup=t||null}},ms=class extends Error{constructor(t){super(),this.urlTree=t}};function zn(e){return Dn(new Br(e))}function hb(e){return Dn(new v(4e3,!1))}function pb(e){return Dn(Qp(!1,Se.GuardRejected))}var qu=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return w(n);if(o.numberOfChildren>1||!o.children[T])return hb(t.redirectTo);o=o.children[T]}}applyRedirectCommands(t,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new ms(o);return o}applyRedirectCreateUrlTree(t,r,n,o){let i=this.createSegmentGroup(t,r.root,n,o);return new Ot(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(t,r,n,o){let i=this.createSegments(t,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,n,o)}),new V(i,s)}createSegments(t,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,n))}findPosParam(t,r,n){let o=n[r.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(t,r){let n=0;for(let o of r){if(o.path===t.path)return r.splice(n),o;n++}return t}},Gu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gb(e,t,r,n,o){let i=Xu(e,t,r);return i.matched?(n=zC(t,n),fb(n,t,r,o).pipe(A(s=>s===!0?i:m({},Gu)))):w(i)}function Xu(e,t,r){if(t.path==="**")return mb(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?m({},Gu):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(t.matcher||dC)(r,e,t);if(!o)return m({},Gu);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 mb(e){return{matched:!0,parameters:e.length>0?Rp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Sp(e,t,r,n){return r.length>0&&Db(e,r,n)?{segmentGroup:new V(t,yb(n,new V(r,e.children))),slicedSegments:[]}:r.length===0&&wb(e,r,n)?{segmentGroup:new V(e.segments,vb(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new V(e.segments,e.children),slicedSegments:r}}function vb(e,t,r,n){let o={};for(let i of r)if(ws(e,t,i)&&!n[tt(i)]){let s=new V([],{});o[tt(i)]=s}return m(m({},n),o)}function yb(e,t){let r={};r[T]=t;for(let n of e)if(n.path===""&&tt(n)!==T){let o=new V([],{});r[tt(n)]=o}return r}function Db(e,t,r){return r.some(n=>ws(e,t,n)&&tt(n)!==T)}function wb(e,t,r){return r.some(n=>ws(e,t,n))}function ws(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function Ib(e,t,r,n){return tt(e)!==n&&(n===T||!ws(t,r,e))?!1:Xu(t,e,r).matched}function Eb(e,t,r){return t.length===0&&!e.children[r]}var Wu=class{};function Cb(e,t,r,n,o,i,s="emptyOnly"){return new Zu(e,t,r,n,o,s,i).recognize()}var bb=31,Zu=class{constructor(t,r,n,o,i,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new qu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=Sp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(A(r=>{let n=new $r([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,{},T,this.rootComponentType,null,{}),o=new Te(n,r),i=new ps("",o),s=_C(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,T).pipe(xe(n=>{if(n instanceof ms)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Br?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,o=Qu(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),t.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(t,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,o,!0).pipe(A(i=>i instanceof Te?[i]:[]))}processChildren(t,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return G(o).pipe(rt(i=>{let s=n.children[i],a=qC(r,i);return this.processSegmentGroup(t,a,s,i)}),Vs((i,s)=>(i.push(...s),i)),wt(null),js(),K(i=>{if(i===null)return zn(n);let s=eg(i);return Mb(s),w(s)}))}processSegment(t,r,n,o,i,s){return G(r).pipe(rt(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,o,i,s).pipe(xe(c=>{if(c instanceof Br)return w(null);throw c}))),qe(a=>!!a),xe(a=>{if(Jp(a))return Eb(n,o,i)?w(new Wu):zn(n);throw a}))}processSegmentAgainstRoute(t,r,n,o,i,s,a){return Ib(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,n,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,r,n,i,s):zn(o):zn(o)}expandSegmentAgainstRouteUsingRedirect(t,r,n,o,i,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=Xu(r,o,i);if(!a)return zn(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bb&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,d).pipe(K(f=>this.processSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,o,i){let s=gb(r,n,o,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(he(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,o).pipe(he(({routes:c})=>{let u=n._loadedInjector??t,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new $r(l,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Sb(n),tt(n),n.component??n._loadedComponent??null,n,xb(n)),{segmentGroup:g,slicedSegments:S}=Sp(r,l,d,c);if(S.length===0&&g.hasChildren())return this.processChildren(u,c,g).pipe(A(E=>E===null?null:new Te(h,E)));if(c.length===0&&S.length===0)return w(new Te(h,[]));let C=tt(n)===i;return this.processSegment(u,c,g,S,C?T:i,!0).pipe(A(E=>new Te(h,E instanceof Te?[E]:[])))}))):zn(r)))}getChildConfig(t,r,n){return r.children?w({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?w({routes:r._loadedRoutes,injector:r._loadedInjector}):db(t,r,n,this.urlSerializer).pipe(K(o=>o?this.configLoader.loadChildren(t,r).pipe(X(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):pb(r))):w({routes:[],injector:t})}};function Mb(e){e.sort((t,r)=>t.value.outlet===T?-1:r.value.outlet===T?1:t.value.outlet.localeCompare(r.value.outlet))}function Tb(e){let t=e.value.routeConfig;return t&&t.path===""}function eg(e){let t=[],r=new Set;for(let n of e){if(!Tb(n)){t.push(n);continue}let o=t.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):t.push(n)}for(let n of r){let o=eg(n.children);t.push(new Te(n.value,o))}return t.filter(n=>!r.has(n))}function Sb(e){return e.data||{}}function xb(e){return e.resolve||{}}function Ab(e,t,r,n,o,i){return K(s=>Cb(e,t,r,n,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>Y(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function _b(e,t){return K(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return w(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 tg(c))s.add(u);let a=0;return G(s).pipe(rt(c=>i.has(c)?Nb(c,n,e,t):(c.data=Qu(c,c.parent,e).resolve,w(void 0))),X(()=>a++),In(1),K(c=>a===s.size?w(r):Ee))})}function tg(e){let t=e.children.map(r=>tg(r)).flat();return[e,...t]}function Nb(e,t,r,n){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Wp(o)&&(i[Hr]=o.title),Rb(i,e,t,n).pipe(A(s=>(e._resolvedData=s,e.data=Qu(e,e.parent,r).resolve,null)))}function Rb(e,t,r,n){let o=Mu(e);if(o.length===0)return w({});let i={};return G(o).pipe(K(s=>Ob(e[s],t,r,n).pipe(qe(),X(a=>{i[s]=a}))),In(1),Ls(i),xe(s=>Jp(s)?Ee:Dn(s)))}function Ob(e,t,r,n){let o=Gr(t)??n,i=Jn(e,o),s=i.resolve?i.resolve(t,r):$e(o,()=>i(t,r));return kt(s)}function Cu(e){return he(t=>{let r=e(t);return r?G(r).pipe(A(()=>t)):w(t)})}var ng=(()=>{let t=class t{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===T);return o}getResolvedTitleForRoute(n){return n.data[Hr]}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Pb),providedIn:"root"});let e=t;return e})(),Pb=(()=>{let t=class t extends ng{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};t.\u0275fac=function(o){return new(o||t)(y(Ip))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Zr=new I("",{providedIn:"root",factory:()=>({})}),vs=new I(""),el=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Oi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=kt(n.loadComponent()).pipe(A(rg),X(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),It(()=>{this.componentLoaders.delete(n)})),i=new vn(o,()=>new ce).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 w({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=Fb(o,this.compiler,n,this.onLoadEndListener).pipe(It(()=>{this.childrenLoaders.delete(o)})),a=new vn(s,()=>new ce).pipe(mn());return this.childrenLoaders.set(o,a),a}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fb(e,t,r,n){return kt(e.loadChildren()).pipe(A(rg),K(o=>o instanceof fr||Array.isArray(o)?w(o):G(t.compileModuleAsync(o))),A(o=>{n&&n(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(vs,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ju),injector:i}}))}function kb(e){return e&&typeof e=="object"&&"default"in e}function rg(e){return kb(e)?e.default:e}var tl=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Lb),providedIn:"root"});let e=t;return e})(),Lb=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),og=new I(""),ig=new I("");function jb(e,t,r){let n=e.get(ig),o=e.get(le);return e.get($).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),Vb(e))),{onViewTransitionCreated:c}=n;return c&&$e(e,()=>c({transition:a,from:t,to:r})),s})}function Vb(e){return new Promise(t=>{Oc(t,{injector:e})})}var nl=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ce,this.transitionAbortSubject=new ce,this.configLoader=p(el),this.environmentInjector=p(me),this.urlSerializer=p(zr),this.rootContexts=p(qr),this.location=p(Bn),this.inputBindingEnabled=p(Ds,{optional:!0})!==null,this.titleStrategy=p(ng),this.options=p(Zr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(tl),this.createViewTransition=p(og,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Ou(i)),o=i=>this.events.next(new Pu(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(Y(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new oe({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Or,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),A(s=>Y(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),he(s=>{let a=!1,c=!1;return w(s).pipe(he(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Se.SupersededByNewNavigation),Ee;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Y(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 f="";return this.events.next(new Ft(u.id,this.urlSerializer.serialize(u.rawUrl),f,us.IgnoredSameUrlNavigation)),u.resolve(null),Ee}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(he(f=>{let h=this.transitions?.getValue();return this.events.next(new Qn(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ee:Promise.resolve(f)}),Ab(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),X(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Y(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ls(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:S,extras:C}=u,E=new Qn(f,this.urlSerializer.serialize(h),g,S);this.events.next(E);let ae=qp(this.rootComponentType).snapshot;return this.currentTransition=s=Y(m({},u),{targetSnapshot:ae,urlAfterRedirects:h,extras:Y(m({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(s)}else{let f="";return this.events.next(new Ft(u.id,this.urlSerializer.serialize(u.extractedUrl),f,us.IgnoredByUrlHandlingStrategy)),u.resolve(null),Ee}}),X(u=>{let l=new Au(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=s=Y(m({},u),{guards:WC(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),rb(this.environmentInjector,u=>this.events.next(u)),X(u=>{if(s.guardsResult=u.guardsResult,Yn(u.guardsResult))throw Yp(this.urlSerializer,u.guardsResult);let l=new _u(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),fe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Se.GuardRejected),!1)),Cu(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(X(l=>{let d=new Nu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),he(l=>{let d=!1;return w(l).pipe(_b(this.paramsInheritanceStrategy,this.environmentInjector),X({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Se.NoDataFromResolver)}}))}),X(l=>{let d=new Ru(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Cu(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(X(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return tr(l(u.targetSnapshot.root)).pipe(wt(null),ot(1))}),Cu(()=>this.afterPreactivation()),he(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?G(d).pipe(A(()=>s)):w(s)}),A(u=>{let l=VC(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Y(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),X(()=>{this.events.next(new jr)}),GC(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ot(1),X({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new He(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),bo(this.transitionAbortSubject.pipe(X(u=>{throw u}))),It(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Se.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),xe(u=>{if(c=!0,Kp(u))this.events.next(new Pt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),BC(u)?this.events.next(new Vr(u.url)):s.resolve(!1);else{this.events.next(new Lr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Ee}))}))}cancelNavigationTransition(n,o,i){let s=new Pt(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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function $b(e){return e!==Or}var Ub=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Bb),providedIn:"root"});let e=t;return e})(),Yu=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},Bb=(()=>{let t=class t extends Yu{};t.\u0275fac=(()=>{let n;return function(i){return(n||(n=hc(t)))(i||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sg=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Hb),providedIn:"root"});let e=t;return e})(),Hb=(()=>{let t=class t extends sg{constructor(){super(...arguments),this.location=p(Bn),this.urlSerializer=p(zr),this.options=p(Zr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(tl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ot,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=qp(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 Qn)this.stateMemento=this.createStateMemento();else if(n instanceof Ft)this.rawUrlTree=o.initialUrl;else if(n instanceof ls){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof jr?(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 Pt&&(n.code===Se.GuardRejected||n.code===Se.NoDataFromResolver)?this.restoreHistory(o):n instanceof Lr?this.restoreHistory(o,!0):n instanceof He&&(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}}};t.\u0275fac=(()=>{let n;return function(i){return(n||(n=hc(t)))(i||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Nr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Nr||{});function ag(e,t){e.events.pipe(fe(r=>r instanceof He||r instanceof Pt||r instanceof Lr||r instanceof Ft),A(r=>r instanceof He||r instanceof Ft?Nr.COMPLETE:(r instanceof Pt?r.code===Se.Redirect||r.code===Se.SupersededByNewNavigation:!1)?Nr.REDIRECTING:Nr.FAILED),fe(r=>r!==Nr.REDIRECTING),ot(1)).subscribe(()=>{t()})}function zb(e){throw e}var qb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},mt=(()=>{let t=class t{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.isNgZoneEnabled=!1,this.console=p(xi),this.stateManager=p(sg),this.options=p(Zr,{optional:!0})||{},this.pendingTasks=p(nn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(nl),this.urlSerializer=p(zr),this.location=p(Bn),this.urlHandlingStrategy=p(tl),this._events=new ce,this.errorHandler=this.options.errorHandler||zb,this.navigated=!1,this.routeReuseStrategy=p(Ub),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(vs,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ds,{optional:!0}),this.eventsSubscription=new W,this.isNgZoneEnabled=p($)instanceof $&&$.isInAngularZone(),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 Pt&&o.code!==Se.Redirect&&o.code!==Se.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof He)this.navigated=!0;else if(o instanceof Vr){let a=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),c={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||$b(i.source)};this.scheduleNavigation(a,Or,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Zb(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),Or,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(Ju),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 f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=Up(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Bp(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Yn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Or,null,o)}navigate(n,o={skipLocationChange:!1}){return Wb(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({},qb):o===!1?i=m({},Gb):i=o,Yn(n))return Ep(this.currentUrlTree,n,i);let s=this.parseUrl(n);return Ep(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((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return ag(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(f=>Promise.reject(f))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Wb(e){for(let t=0;t{let t=class t{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 ce,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 He&&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:$f(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})}};t.\u0275fac=function(o){return new(o||t)(z(mt),z(ln),pc("tabindex"),z(Dr),z(dt),z(gt))},t.\u0275dir=en({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&$c("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&jc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ir],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ir],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ir],routerLink:"routerLink"},standalone:!0,features:[kc,Ln]});let e=t;return e})(),IR=(()=>{let t=class t{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 ie,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof He&&this.update()})}ngAfterContentInit(){w(this.links.changes,w(null)).pipe(Dt()).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=G(n).pipe(Dt()).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=Yb(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)}};t.\u0275fac=function(o){return new(o||t)(z(mt),z(dt),z(Dr),z(on),z(xp,8))},t.\u0275dir=en({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&Eh(s,xp,5),o&2){let a;Ch(a=bh())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ln]});let e=t;return e})();function Yb(e){return!!e.paths}var ys=class{};var Qb=(()=>{let t=class t{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(fe(n=>n instanceof He),rt(()=>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=Si(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 G(i).pipe(Dt())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=w(null);let s=i.pipe(K(a=>a===null?w(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 G([s,a]).pipe(Dt())}else return s})}};t.\u0275fac=function(o){return new(o||t)(y(mt),y(Oi),y(me),y(ys),y(el))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),cg=new I(""),Kb=(()=>{let t=class t{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 Qn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof He?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Ft&&n.code===us.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 ds&&(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 ds(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(o){Jf()},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function Jb(e){return e.routerState.root}function Yr(e,t){return{\u0275kind:e,\u0275providers:t}}function Xb(){let e=p(Je);return t=>{let r=e.get(rn);if(t!==r.components[0])return;let n=e.get(mt),o=e.get(ug);e.get(rl)===1&&n.initialNavigation(),e.get(lg,null,O.Optional)?.setUpPreloading(),e.get(cg,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var ug=new I("",{factory:()=>new ce}),rl=new I("",{providedIn:"root",factory:()=>1});function e0(){return Yr(2,[{provide:rl,useValue:0},{provide:Ni,multi:!0,deps:[Je],useFactory:t=>{let r=t.get(Zh,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=t.get(mt),i=t.get(ug);ag(o,()=>{n(!0)}),t.get(nl).afterPreactivation=()=>(n(!0),i.closed?w(void 0):i),o.initialNavigation()}))}}])}function t0(){return Yr(3,[{provide:Ni,multi:!0,useFactory:()=>{let t=p(mt);return()=>{t.setUpLocationChangeListener()}}},{provide:rl,useValue:2}])}var lg=new I("");function n0(e){return Yr(0,[{provide:lg,useExisting:Qb},{provide:ys,useExisting:e}])}function r0(){return Yr(8,[Tp,{provide:Ds,useExisting:Tp}])}function o0(e){let t=[{provide:og,useValue:jb},{provide:ig,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return Yr(9,t)}var Ap=new I("ROUTER_FORROOT_GUARD"),i0=[Bn,{provide:zr,useClass:Fr},mt,qr,{provide:ln,useFactory:Jb,deps:[mt]},el,[]],ER=(()=>{let t=class t{constructor(n){}static forRoot(n,o){return{ngModule:t,providers:[i0,[],{provide:vs,multi:!0,useValue:n},{provide:Ap,useFactory:u0,deps:[[mt,new ui,new Qa]]},{provide:Zr,useValue:o||{}},o?.useHash?a0():c0(),s0(),o?.preloadingStrategy?n0(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?l0(o):[],o?.bindToComponentInputs?r0().\u0275providers:[],o?.enableViewTransitions?o0().\u0275providers:[],d0()]}}static forChild(n){return{ngModule:t,providers:[{provide:vs,multi:!0,useValue:n}]}}};t.\u0275fac=function(o){return new(o||t)(y(Ap,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})();function s0(){return{provide:cg,useFactory:()=>{let e=p(np),t=p($),r=p(Zr),n=p(nl),o=p(zr);return r.scrollOffset&&e.setOffset(r.scrollOffset),new Kb(o,n,e,t,r)}}}function a0(){return{provide:gt,useClass:Qh}}function c0(){return{provide:gt,useClass:ou}}function u0(e){return"guarded"}function l0(e){return[e.initialNavigation==="disabled"?t0().\u0275providers:[],e.initialNavigation==="enabledBlocking"?e0().\u0275providers:[]]}var _p=new I("");function d0(){return[{provide:_p,useFactory:Xb},{provide:Ri,multi:!0,useExisting:_p}]}var TR=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(xe(n=>(console.error(n),w([]))))}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(xe(o=>(console.error(o),w([]))))}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`)}};t.\u0275fac=function(o){return new(o||t)(y(lu))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{m as a,Y as b,ce as c,oe as d,G as e,A as f,Bg as g,fe as h,Hg as i,zg as j,he as k,bo as l,X as m,v as n,Md as o,D as p,at as q,I as r,y as s,p as t,Le as u,$d as v,ct as w,en as x,Xa as y,Ln as z,V_ as A,$_ as B,hc as C,dt as D,ie as E,ny as F,U_ as G,z as H,Kt as I,Dr as J,_t as K,gw as L,xw as M,jc as N,jw as O,Vw as P,wh as Q,Ih as R,Vc as S,Xw as T,eI as U,q_ as V,$c as W,G_ as X,W_ as Y,Z_ as Z,dI as _,Mh as $,Y_ as aa,Sh as ba,Q_ as ca,K_ as da,J_ as ea,X_ as fa,eN as ga,$n as ha,sn as ia,EN as ja,CN as ka,bN as la,MN as ma,tp as na,xE as oa,jN as pa,nR as qa,rR as ra,ln as sa,jC as ta,mt as ua,xp as va,IR as wa,ER as xa,TR as ya}; diff --git a/chunk-FJC2XKMJ.js b/chunk-FJC2XKMJ.js new file mode 100644 index 0000000..67a38fc --- /dev/null +++ b/chunk-FJC2XKMJ.js @@ -0,0 +1,8 @@ +var pg=Object.defineProperty,gg=Object.defineProperties;var mg=Object.getOwnPropertyDescriptors;var il=Object.getOwnPropertySymbols;var vg=Object.prototype.hasOwnProperty,yg=Object.prototype.propertyIsEnumerable;var sl=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||={})vg.call(t,r)&&sl(e,r,t[r]);if(il)for(var r of il(t))yg.call(t,r)&&sl(e,r,t[r]);return e},Y=(e,t)=>gg(e,mg(t));var Qr=(e,t,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(e,t)).next())});var al=null;var bs=1,cl=Symbol("SIGNAL");function P(e){let t=al;return al=e,t}var ul={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 Dg(e){if(!(Ss(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===bs)){if(!e.producerMustRecompute(e)&&!Ms(e)){e.dirty=!1,e.lastCleanEpoch=bs;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=bs}}function ll(e){return e&&(e.nextProducerIndex=0),P(e)}function dl(e,t){if(P(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ss(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ms(e){Kr(e);for(let t=0;t0}function Kr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function wg(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ig(){throw new Error}var Eg=Ig;function hl(e){Eg=e}function M(e){return typeof e=="function"}function dn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Jr=dn(e=>function(r){e(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 Lt(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var W=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;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(M(n))try{n()}catch(i){t=i instanceof Jr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{pl(i)}catch(s){t=t??[],s instanceof Jr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Jr(t)}}add(t){var r;if(t&&t!==this)if(this.closed)pl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&Lt(r,t)}remove(t){let{_finalizers:r}=this;r&&Lt(r,t),t instanceof e&&t._removeParent(this)}};W.EMPTY=(()=>{let e=new W;return e.closed=!0,e})();var xs=W.EMPTY;function Xr(e){return e instanceof W||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function pl(e){M(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var fn={setTimeout(e,t,...r){let{delegate:n}=fn;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=fn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function eo(e){fn.setTimeout(()=>{let{onUnhandledError:t}=Pe;if(t)t(e);else throw e})}function Xn(){}var gl=As("C",void 0,void 0);function ml(e){return As("E",void 0,e)}function vl(e){return As("N",e,void 0)}function As(e,t,r){return{kind:e,value:t,error:r}}var jt=null;function hn(e){if(Pe.useDeprecatedSynchronousErrorHandling){let t=!jt;if(t&&(jt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=jt;if(jt=null,r)throw n}}else e()}function yl(e){Pe.useDeprecatedSynchronousErrorHandling&&jt&&(jt.errorThrown=!0,jt.error=e)}var Vt=class extends W{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Xr(t)&&t.add(this)):this.destination=Mg}static create(t,r,n){return new pn(t,r,n)}next(t){this.isStopped?Ns(vl(t),this):this._next(t)}error(t){this.isStopped?Ns(ml(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ns(gl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Cg=Function.prototype.bind;function _s(e,t){return Cg.call(e,t)}var Rs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){to(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){to(n)}else to(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){to(r)}}},pn=class extends Vt{constructor(t,r,n){super();let o;if(M(t)||!t)o={next:t??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&_s(t.next,i),error:t.error&&_s(t.error,i),complete:t.complete&&_s(t.complete,i)}):o=t}this.destination=new Rs(o)}};function to(e){Pe.useDeprecatedSynchronousErrorHandling?yl(e):eo(e)}function bg(e){throw e}function Ns(e,t){let{onStoppedNotification:r}=Pe;r&&fn.setTimeout(()=>r(e,t))}var Mg={closed:!0,next:Xn,error:bg,complete:Xn};var gn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function fe(e){return e}function Os(...e){return Ps(e)}function Ps(e){return e.length===0?fe:e.length===1?e[0]:function(r){return e.reduce((n,o)=>o(n),r)}}var F=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Sg(r)?r:new pn(r,n,o);return hn(()=>{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=Dl(n),new n((o,i)=>{let s=new pn({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)}[gn](){return this}pipe(...r){return Ps(r)(this)}toPromise(r){return r=Dl(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return e.create=t=>new e(t),e})();function Dl(e){var t;return(t=e??Pe.Promise)!==null&&t!==void 0?t:Promise}function Tg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Sg(e){return e&&e instanceof Vt||Tg(e)&&Xr(e)}function Fs(e){return M(e?.lift)}function R(e){return t=>{if(Fs(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function x(e,t,r,n,o){return new ks(e,t,r,n,o)}var ks=class extends Vt{constructor(t,r,n,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function mn(){return R((e,t)=>{let r=null;e._refCount++;let n=x(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){r=null;return}let o=e._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}var vn=class extends F{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Fs(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new W;let r=this.getSubject();t.add(this.source.subscribe(x(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=W.EMPTY)}return t}refCount(){return mn()(this)}};var wl=dn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new no(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new wl}next(r){hn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){hn(()=>{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(){hn(()=>{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?xs:(this.currentObservers=null,i.push(r),new W(()=>{this.currentObservers=null,Lt(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new F;return r.source=this,r}}return e.create=(t,r)=>new no(t,r),e})(),no=class extends ce{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:xs}};var oe=class extends ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var Ls={now(){return(Ls.delegate||Date).now()},delegate:void 0};var ro=class extends W{constructor(t,r){super()}schedule(t,r=0){return this}};var er={setInterval(e,t,...r){let{delegate:n}=er;return n?.setInterval?n.setInterval(e,t,...r):setInterval(e,t,...r)},clearInterval(e){let{delegate:t}=er;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var oo=class extends ro{constructor(t,r){super(t,r),this.scheduler=t,this.work=r,this.pending=!1}schedule(t,r=0){var n;if(this.closed)return this;this.state=t;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(t,r,n=0){return er.setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&er.clearInterval(r)}execute(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,r){let n=!1,o;try{this.work(t)}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:t,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Lt(n,this),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,super.unsubscribe()}}};var yn=class e{constructor(t,r=e.now){this.schedulerActionCtor=t,this.now=r}schedule(t,r=0,n){return new this.schedulerActionCtor(this,t).schedule(n,r)}};yn.now=Ls.now;var io=class extends yn{constructor(t,r=yn.now){super(t,r),this.actions=[],this._active=!1}flush(t){let{actions:r}=this;if(this._active){r.push(t);return}let n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}}};var Il=new io(oo);var Ee=new F(e=>e.complete());function El(e){return e&&M(e.schedule)}function Cl(e){return e[e.length-1]}function so(e){return M(Cl(e))?e.pop():void 0}function yt(e){return El(Cl(e))?e.pop():void 0}function Ml(e,t,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(e,t||[])).next())})}function bl(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $t(e){return this instanceof $t?(this.v=e,this):new $t(e)}function Tl(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,S){i.push([f,h,g,S])>1||a(f,h)})})}function a(f,h){try{c(n[f](h))}catch(g){d(i[0][3],g)}}function c(f){f.value instanceof $t?Promise.resolve(f.value.v).then(u,l):d(i[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Sl(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof bl=="function"?bl(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[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 ao=e=>e&&typeof e.length=="number"&&typeof e!="function";function co(e){return M(e?.then)}function uo(e){return M(e[gn])}function lo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function fo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function xg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ho=xg();function po(e){return M(e?.[ho])}function go(e){return Tl(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:o}=yield $t(r.read());if(o)return yield $t(void 0);yield yield $t(n)}}finally{r.releaseLock()}})}function mo(e){return M(e?.getReader)}function Q(e){if(e instanceof F)return e;if(e!=null){if(uo(e))return Ag(e);if(ao(e))return _g(e);if(co(e))return Ng(e);if(lo(e))return xl(e);if(po(e))return Rg(e);if(mo(e))return Og(e)}throw fo(e)}function Ag(e){return new F(t=>{let r=e[gn]();if(M(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _g(e){return new F(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,eo)})}function Rg(e){return new F(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function xl(e){return new F(t=>{Pg(e,t).catch(r=>t.error(r))})}function Og(e){return xl(go(e))}function Pg(e,t){var r,n,o,i;return Ml(this,void 0,void 0,function*(){try{for(r=Sl(e);n=yield r.next(),!n.done;){let s=n.value;if(t.next(s),t.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}}t.complete()})}function De(e,t,r,n=0,o=!1){let i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function vo(e,t=0){return R((r,n)=>{r.subscribe(x(n,o=>De(n,e,()=>n.next(o),t),()=>De(n,e,()=>n.complete(),t),o=>De(n,e,()=>n.error(o),t)))})}function yo(e,t=0){return R((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function Al(e,t){return Q(e).pipe(yo(t),vo(t))}function _l(e,t){return Q(e).pipe(yo(t),vo(t))}function Nl(e,t){return new F(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Rl(e,t){return new F(r=>{let n;return De(r,t,()=>{n=e[ho](),De(r,t,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>M(n?.return)&&n.return()})}function Do(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(r=>{De(r,t,()=>{let n=e[Symbol.asyncIterator]();De(r,t,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function Ol(e,t){return Do(go(e),t)}function Pl(e,t){if(e!=null){if(uo(e))return Al(e,t);if(ao(e))return Nl(e,t);if(co(e))return _l(e,t);if(lo(e))return Do(e,t);if(po(e))return Rl(e,t);if(mo(e))return Ol(e,t)}throw fo(e)}function G(e,t){return t?Pl(e,t):Q(e)}function w(...e){let t=yt(e);return G(e,t)}function Dn(e,t){let r=M(e)?e:()=>e,n=o=>o.error(r());return new F(t?o=>t.schedule(n,0,o):n)}function js(e){return!!e&&(e instanceof F||M(e.lift)&&M(e.subscribe))}var nt=dn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function A(e,t){return R((r,n)=>{let o=0;r.subscribe(x(n,i=>{n.next(e.call(t,i,o++))}))})}var{isArray:Fg}=Array;function kg(e,t){return Fg(t)?e(...t):e(t)}function wo(e){return A(t=>kg(e,t))}var{isArray:Lg}=Array,{getPrototypeOf:jg,prototype:Vg,keys:$g}=Object;function Io(e){if(e.length===1){let t=e[0];if(Lg(t))return{args:t,keys:null};if(Ug(t)){let r=$g(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}function Ug(e){return e&&typeof e=="object"&&jg(e)===Vg}function Eo(e,t){return e.reduce((r,n,o)=>(r[n]=t[o],r),{})}function tr(...e){let t=yt(e),r=so(e),{args:n,keys:o}=Io(e);if(n.length===0)return G([],t);let i=new F(Bg(n,t,o?s=>Eo(o,s):fe));return r?i.pipe(wo(r)):i}function Bg(e,t,r=fe){return n=>{Fl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=G(e[c],t),l=!1;u.subscribe(x(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Fl(e,t,r){e?De(r,e,t):t()}function kl(e,t,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},h=S=>u{i&&t.next(S),u++;let C=!1;Q(r(S,l++)).subscribe(x(t,E=>{o?.(E),i?h(E):t.next(E)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;c.length&&ug(E)):g(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(x(t,h,()=>{d=!0,f()})),()=>{a?.()}}function K(e,t,r=1/0){return M(t)?K((n,o)=>A((i,s)=>t(n,i,o,s))(Q(e(n,o))),r):(typeof t=="number"&&(r=t),R((n,o)=>kl(n,o,e,r)))}function Dt(e=1/0){return K(fe,e)}function Ll(){return Dt(1)}function wn(...e){return Ll()(G(e,yt(e)))}function Co(e){return new F(t=>{Q(e()).subscribe(t)})}function Hg(...e){let t=so(e),{args:r,keys:n}=Io(e),o=new F(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]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(n?Eo(n,a):a),i.complete())}))}});return t?o.pipe(wo(t)):o}function he(e,t){return R((r,n)=>{let o=0;r.subscribe(x(n,i=>e.call(t,i,o++)&&n.next(i)))})}function xe(e){return R((t,r)=>{let n=null,o=!1,i;n=t.subscribe(x(r,void 0,void 0,s=>{i=Q(e(s,xe(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function jl(e,t,r,n,o){return(i,s)=>{let a=r,c=t,u=0;i.subscribe(x(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function rt(e,t){return M(t)?K(e,t,1):K(e,1)}function zg(e,t=Il){return R((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+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function wt(e){return R((t,r)=>{let n=!1;t.subscribe(x(r,o=>{n=!0,r.next(o)},()=>{n||r.next(e),r.complete()}))})}function ot(e){return e<=0?()=>Ee:R((t,r)=>{let n=0;t.subscribe(x(r,o=>{++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function Vs(e){return A(()=>e)}function qg(e,t=fe){return e=e??Gg,R((r,n)=>{let o,i=!0;r.subscribe(x(n,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,n.next(s))}))})}function Gg(e,t){return e===t}function bo(e=Wg){return R((t,r)=>{let n=!1;t.subscribe(x(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(e())))})}function Wg(){return new nt}function It(e){return R((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}function qe(e,t){let r=arguments.length>=2;return n=>n.pipe(e?he((o,i)=>e(o,i,n)):fe,ot(1),r?wt(t):bo(()=>new nt))}function In(e){return e<=0?()=>Ee:R((t,r)=>{let n=[];t.subscribe(x(r,o=>{n.push(o),e{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function $s(e,t){let r=arguments.length>=2;return n=>n.pipe(e?he((o,i)=>e(o,i,n)):fe,In(1),r?wt(t):bo(()=>new nt))}function Us(e,t){return R(jl(e,t,arguments.length>=2,!0))}function Bs(...e){let t=yt(e);return R((r,n)=>{(t?wn(e,r,t):wn(e,r)).subscribe(n)})}function pe(e,t){return R((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(x(n,c=>{o?.unsubscribe();let u=0,l=i++;Q(e(c,l)).subscribe(o=x(n,d=>n.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mo(e){return R((t,r)=>{Q(e).subscribe(x(r,()=>r.complete(),Xn)),!r.closed&&t.subscribe(r)})}function X(e,t,r){let n=M(e)||t||r?{next:e,error:t,complete:r}:e;return n?R((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(x(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)}))}):fe}var bd="https://g.co/ng/security#xss",v=class extends Error{constructor(t,r){super(si(t,r)),this.code=t}};function si(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function pr(e){return{toString:e}.toString()}var To="__parameters__";function Zg(e){return function(...r){if(e){let n=e(...r);for(let o in n)this[o]=n[o]}}}function Md(e,t,r){return pr(()=>{let n=Zg(t);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(To)?c[To]:Object.defineProperty(c,To,{value:[]})[To];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=e,o.annotationCls=o,o})}var ee=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function Yg(e,t){for(let r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function me(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(me).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` +`);return r===-1?t:t.substring(0,r)}function Vl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Qg=$({__forward_ref__:$});function Td(e){return e.__forward_ref__=Td,e.toString=function(){return me(this())},e}function ge(e){return Sd(e)?e():e}function Sd(e){return typeof e=="function"&&e.hasOwnProperty(Qg)&&e.__forward_ref__===Td}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function ai(e){return $l(e,Ad)||$l(e,_d)}function xd(e){return ai(e)!==null}function $l(e,t){return e.hasOwnProperty(t)?e[t]:null}function Kg(e){let t=e&&(e[Ad]||e[_d]);return t||null}function Ul(e){return e&&(e.hasOwnProperty(Bl)||e.hasOwnProperty(Jg))?e[Bl]:null}var Ad=$({\u0275prov:$}),Bl=$({\u0275inj:$}),_d=$({ngInjectableDef:$}),Jg=$({ngInjectorDef:$}),I=class{constructor(t,r){this._desc=t,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 Nd(e){return e&&!!e.\u0275providers}var Xg=$({\u0275cmp:$}),em=$({\u0275dir:$}),tm=$({\u0275pipe:$}),nm=$({\u0275mod:$}),Lo=$({\u0275fac:$}),nr=$({__NG_ELEMENT_ID__:$}),Hl=$({__NG_ENV_ID__:$});function ci(e){return typeof e=="string"?e:e==null?"":String(e)}function rm(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ci(e)}function om(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function Ka(e,t){throw new v(-201,!1)}var O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(O||{}),oa;function Rd(){return oa}function we(e){let t=oa;return oa=e,t}function Od(e,t,r){let n=ai(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(t!==void 0)return t;Ka(e,"Injector")}var im={},or=im,ia="__NG_DI_FLAG__",jo="ngTempTokenPath",sm="ngTokenPath",am=/\n/gm,cm="\u0275",zl="__source",Tn;function um(){return Tn}function Et(e){let t=Tn;return Tn=e,t}function lm(e,t=O.Default){if(Tn===void 0)throw new v(-203,!1);return Tn===null?Od(e,void 0,t):Tn.get(e,t&O.Optional?null:void 0,t)}function y(e,t=O.Default){return(Rd()||lm)(ge(e),t)}function p(e,t=O.Default){return y(e,ui(t))}function ui(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function sa(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):me(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${e.replace(am,` + `)}`}var li=Pd(Md("Optional"),8);var Ja=Pd(Md("SkipSelf"),4);function zt(e,t){let r=e.hasOwnProperty(Lo);return r?e[Lo]:null}function pm(e,t,r){if(e.length!==t.length)return!1;for(let n=0;nArray.isArray(r)?Xa(r,t):t(r))}function Fd(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Vo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function mm(e,t,r,n){let o=e.length;if(o==t)e.push(r,n);else if(o===1)e.push(n,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=r,e[t+1]=n}}function vm(e,t,r){let n=gr(e,t);return n>=0?e[n|1]=r:(n=~n,mm(e,n,t,r)),n}function Hs(e,t){let r=gr(e,t);if(r>=0)return e[r|1]}function gr(e,t){return ym(e,t,1)}function ym(e,t,r){let n=0,o=e.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=e[i<t?o=i:n=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Fe(n))return!1;s=!0}}}}return Fe(n)||s}function Fe(e){return(e&1)===0}function bm(e,t,r,n){if(t===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!==""&&!Fe(s)&&(t+=Gl(i,o),o=""),n=s,i=i||!Fe(n);r++}return o!==""&&(t+=Gl(i,o)),t}function Am(e){return e.map(xm).join(",")}function _m(e){let t=[],r=[],n=1,o=2;for(;n{let t=Gd(e),r=Y(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===jd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ze.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""});Wd(r);let n=e.dependencies;return r.directiveDefs=Zl(n,!1),r.pipeDefs=Zl(n,!0),r.id=Om(r),r})}function Nm(e){return bt(e)||Bd(e)}function Rm(e){return e!==null}function ct(e){return pr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Wl(e,t){if(e==null)return xn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let o=e[n],i,s,a=Le.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(r[i]=a!==Le.None?[n,a]:n,t[i]=s):r[i]=n}return r}function en(e){return pr(()=>{let t=Gd(e);return Wd(t),t})}function tc(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function bt(e){return e[Xg]||null}function Bd(e){return e[em]||null}function Hd(e){return e[tm]||null}function zd(e){let t=bt(e)||Bd(e)||Hd(e);return t!==null?t.standalone:!1}function qd(e,t){let r=e[nm]||null;if(!r&&t===!0)throw new Error(`Type ${me(e)} does not have '\u0275mod' property.`);return r}function Gd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||xn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wl(e.inputs,t),outputs:Wl(e.outputs),debugInfo:null}}function Wd(e){e.features?.forEach(t=>t(e))}function Zl(e,t){if(!e)return null;let r=t?Hd:Nm;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(Rm)}function Om(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of r)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function di(e){return{\u0275providers:e}}function Pm(...e){return{\u0275providers:Zd(!0,e),\u0275fromNgModule:!0}}function Zd(e,...t){let r=[],n=new Set,o,i=s=>{r.push(s)};return Xa(t,s=>{let a=s;ca(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Yd(o,i),r}function Yd(e,t){for(let r=0;r{t(i,n)})}}function ca(e,t,r,n){if(e=ge(e),!e)return!1;let o=null,i=Ul(e),s=!i&&bt(e);if(!i&&!s){let c=e.ngModule;if(i=Ul(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}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)ca(u,t,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{Xa(i.imports,l=>{ca(l,t,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Yd(u,t)}if(!a){let u=zt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:Ld,useValue:o,multi:!0},o),t({provide:An,useValue:()=>y(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;nc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function nc(e,t){for(let r of e)Nd(r)&&(r=r.\u0275providers),Array.isArray(r)?nc(r,t):t(r)}var Fm=$({provide:String,useValue:$});function Qd(e){return e!==null&&typeof e=="object"&&Fm in e}function km(e){return!!(e&&e.useExisting)}function Lm(e){return!!(e&&e.useFactory)}function _n(e){return typeof e=="function"}function jm(e){return!!e.useClass}var fi=new I(""),No={},Vm={},zs;function rc(){return zs===void 0&&(zs=new $o),zs}var ue=class{},sr=class extends ue{get destroyed(){return this._destroyed}constructor(t,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,la(t,s=>this.processProvider(s)),this.records.set(kd,En(void 0,this)),o.has("environment")&&this.records.set(ue,En(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(Ld,Ae,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=P(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(),P(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=Et(this),n=we(void 0),o;try{return t()}finally{Et(r),we(n)}}get(t,r=or,n=O.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Hl))return t[Hl](this);n=ui(n);let o,i=Et(this),s=we(void 0);try{if(!(n&O.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=zm(t)&&ai(t);u&&this.injectableDefInScope(u)?c=En(ua(t),No):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=n&O.Self?rc():this.parent;return r=n&O.Optional&&r===or?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[jo]=a[jo]||[]).unshift(me(t)),i)throw a;return fm(a,t,"R3InjectorError",this.source)}else throw a}finally{we(s),Et(i)}}resolveInjectorInitializers(){let t=P(null),r=Et(this),n=we(void 0),o;try{let i=this.get(An,Ae,O.Self);for(let s of i)s()}finally{Et(r),we(n),P(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(me(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(t){t=ge(t);let r=_n(t)?t:ge(t&&t.provide),n=Um(t);if(!_n(t)&&t.multi===!0){let o=this.records.get(r);o||(o=En(void 0,No,!0),o.factory=()=>sa(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=P(null);try{return r.value===No&&(r.value=Vm,r.value=r.factory()),typeof r.value=="object"&&r.value&&Hm(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{P(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=ge(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ua(e){let t=ai(e),r=t!==null?t.factory:zt(e);if(r!==null)return r;if(e instanceof I)throw new v(204,!1);if(e instanceof Function)return $m(e);throw new v(204,!1)}function $m(e){if(e.length>0)throw new v(204,!1);let r=Kg(e);return r!==null?()=>r.factory(e):()=>new e}function Um(e){if(Qd(e))return En(void 0,e.useValue);{let t=Kd(e);return En(t,No)}}function Kd(e,t,r){let n;if(_n(e)){let o=ge(e);return zt(o)||ua(o)}else if(Qd(e))n=()=>ge(e.useValue);else if(Lm(e))n=()=>e.useFactory(...sa(e.deps||[]));else if(km(e))n=()=>y(ge(e.useExisting));else{let o=ge(e&&(e.useClass||e.provide));if(Bm(e))n=()=>new o(...sa(e.deps));else return zt(o)||ua(o)}return n}function En(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Bm(e){return!!e.deps}function Hm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function zm(e){return typeof e=="function"||typeof e=="object"&&e instanceof I}function la(e,t){for(let r of e)Array.isArray(r)?la(r,t):r&&Nd(r)?la(r.\u0275providers,t):t(r)}function $e(e,t){e instanceof sr&&e.assertNotDestroyed();let r,n=Et(e),o=we(void 0);try{return t()}finally{Et(n),we(o)}}function Jd(){return Rd()!==void 0||um()!=null}function qm(e){if(!Jd())throw new v(-203,!1)}function Gm(e){let t=ee.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Wm(e){return typeof e=="function"}var ut=0,_=1,b=2,se=3,ke=4,Ue=5,Uo=6,ar=7,je=8,Nn=9,Ve=10,te=11,cr=12,Yl=13,kn=14,Ye=15,mr=16,Cn=17,it=18,hi=19,Xd=20,Ct=21,qs=22,qt=23,be=25,ef=1;var Gt=7,Bo=8,Rn=9,Ce=10,oc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(oc||{});function Bt(e){return Array.isArray(e)&&typeof e[ef]=="object"}function lt(e){return Array.isArray(e)&&e[ef]===!0}function ic(e){return(e.flags&4)!==0}function pi(e){return e.componentOffset>-1}function gi(e){return(e.flags&1)===1}function Mt(e){return!!e.template}function Zm(e){return(e[b]&512)!==0}var da=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function tf(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function Ln(){return nf}function nf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qm),Ym}Ln.ngInherit=!0;function Ym(){let e=of(this),t=e?.current;if(t){let r=e.previous;if(r===xn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Qm(e,t,r,n,o){let i=this.declaredInputs[n],s=of(e)||Km(e,{previous:xn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new da(u&&u.currentValue,r,c===xn),tf(e,t,o,r)}var rf="__ngSimpleChanges__";function of(e){return e[rf]||null}function Km(e,t){return e[rf]=t}var Ql=null;var Ge=function(e,t,r){Ql?.(e,t,r)},Jm="svg",Xm="math",ev=!1;function tv(){return ev}function Qe(e){for(;Array.isArray(e);)e=e[ut];return e}function sf(e,t){return Qe(t[e])}function _e(e,t){return Qe(t[e.index])}function af(e,t){return e.data[t]}function sc(e,t){return e[t]}function xt(e,t){let r=t[e];return Bt(r)?r:r[ut]}function nv(e){return(e[b]&4)===4}function ac(e){return(e[b]&128)===128}function rv(e){return lt(e[se])}function On(e,t){return t==null?null:e[t]}function cf(e){e[Cn]=0}function ov(e){e[b]&1024||(e[b]|=1024,ac(e)&&ur(e))}function iv(e,t){for(;e>0;)t=t[kn],e--;return t}function cc(e){return!!(e[b]&9216||e[qt]?.dirty)}function fa(e){e[Ve].changeDetectionScheduler?.notify(1),cc(e)?ur(e):e[b]&64&&(tv()?(e[b]|=1024,ur(e)):e[Ve].changeDetectionScheduler?.notify())}function ur(e){e[Ve].changeDetectionScheduler?.notify();let t=lr(e);for(;t!==null&&!(t[b]&8192||(t[b]|=8192,!ac(t)));)t=lr(t)}function uf(e,t){if((e[b]&256)===256)throw new v(911,!1);e[Ct]===null&&(e[Ct]=[]),e[Ct].push(t)}function sv(e,t){if(e[Ct]===null)return;let r=e[Ct].indexOf(t);r!==-1&&e[Ct].splice(r,1)}function lr(e){let t=e[se];return lt(t)?t[se]:t}var N={lFrame:mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function av(){return N.lFrame.elementDepthCount}function cv(){N.lFrame.elementDepthCount++}function uv(){N.lFrame.elementDepthCount--}function lf(){return N.bindingsEnabled}function lv(){return N.skipHydrationRootTNode!==null}function dv(e){return N.skipHydrationRootTNode===e}function fv(){N.skipHydrationRootTNode=null}function k(){return N.lFrame.lView}function le(){return N.lFrame.tView}function V_(e){return N.lFrame.contextLView=e,e[je]}function $_(e){return N.lFrame.contextLView=null,e}function ve(){let e=df();for(;e!==null&&e.type===64;)e=e.parent;return e}function df(){return N.lFrame.currentTNode}function hv(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tn(e,t){let r=N.lFrame;r.currentTNode=e,r.isParent=t}function uc(){return N.lFrame.isParent}function ff(){N.lFrame.isParent=!1}function pv(){return N.lFrame.contextLView}function mi(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gv(e){return N.lFrame.bindingIndex=e}function lc(){return N.lFrame.bindingIndex++}function mv(e){let t=N.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function vv(){return N.lFrame.inI18n}function yv(e,t){let r=N.lFrame;r.bindingIndex=r.bindingRootIndex=e,ha(t)}function Dv(){return N.lFrame.currentDirectiveIndex}function ha(e){N.lFrame.currentDirectiveIndex=e}function wv(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function hf(){return N.lFrame.currentQueryIndex}function dc(e){N.lFrame.currentQueryIndex=e}function Iv(e){let t=e[_];return t.type===2?t.declTNode:t.type===1?e[Ue]:null}function pf(e,t,r){if(r&O.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(r&O.Host);)if(o=Iv(i),o===null||(i=i[kn],o.type&10))break;if(o===null)return!1;t=o,e=i}let n=N.lFrame=gf();return n.currentTNode=t,n.lView=e,!0}function fc(e){let t=gf(),r=e[_];N.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function gf(){let e=N.lFrame,t=e===null?null:e.child;return t===null?mf(e):t}function mf(e){let t={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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function vf(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var yf=vf;function hc(){let e=vf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ev(e){return(N.lFrame.contextLView=iv(e,N.lFrame.contextLView))[je]}function jn(){return N.lFrame.selectedIndex}function Wt(e){N.lFrame.selectedIndex=e}function Df(){let e=N.lFrame;return af(e.tView,e.selectedIndex)}function Cv(){return N.lFrame.currentNamespace}var wf=!0;function vi(){return wf}function yi(e){wf=e}function bv(e,t,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(n){let s=nf(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}o&&(r.preOrderHooks??=[]).push(0-e,o),i&&((r.preOrderHooks??=[]).push(e,i),(r.preOrderCheckHooks??=[]).push(e,i))}function Di(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[c]<0&&(e[Cn]+=65536),(a>14>16&&(e[b]&3)===t&&(e[b]+=16384,Kl(a,i)):Kl(a,i)}var Sn=-1,Zt=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Tv(e){return e instanceof Zt}function Sv(e){return(e.flags&8)!==0}function xv(e){return(e.flags&16)!==0}function Ef(e){return e!==Sn}function Ho(e){return e&32767}function Av(e){return e>>16}function zo(e,t){let r=Av(e),n=t;for(;r>0;)n=n[kn],r--;return n}var pa=!0;function qo(e){let t=pa;return pa=e,t}var _v=256,Cf=_v-1,bf=5,Nv=0,We={};function Rv(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(nr)&&(n=r[nr]),n==null&&(n=r[nr]=Nv++);let o=n&Cf,i=1<>bf)]|=i}function Go(e,t){let r=Mf(e,t);if(r!==-1)return r;let n=t[_];n.firstCreatePass&&(e.injectorIndex=t.length,Ws(n.data,e),Ws(t,null),Ws(n.blueprint,null));let o=pc(e,t),i=e.injectorIndex;if(Ef(o)){let s=Ho(o),a=zo(o,t),c=a[_].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Ws(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function pc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,o=t;for(;o!==null;){if(n=_f(o),n===null)return Sn;if(r++,o=o[kn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Sn}function ga(e,t,r){Rv(e,t,r)}function Ov(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let r=e.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:u;for(let h=d;h=c&&g.type===r)return h}if(o){let h=s[c];if(h&&Mt(h)&&h.type===r)return c}return null}function Yt(e,t,r,n){let o=e[r],i=t.data;if(Tv(o)){let s=o;s.resolving&&om(rm(i[r]));let a=qo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?we(s.injectImpl):null,l=pf(e,n,O.Default);try{o=e[r]=s.factory(void 0,i,e,n),t.firstCreatePass&&r>=n.directiveStart&&bv(r,i[r],t)}finally{u!==null&&we(u),qo(a),s.resolving=!1,yf()}}return o}function Fv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&Cf:kv:t}function Jl(e,t,r){let n=1<>bf)]&n)}function Xl(e,t){return!(e&O.Self)&&!(e&O.Host&&t)}var Ht=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return xf(this._tNode,this._lView,t,ui(n),r)}};function kv(){return new Ht(ve(),k())}function gc(e){return pr(()=>{let t=e.prototype.constructor,r=t[Lo]||ma(t),n=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==n;){let i=o[Lo]||ma(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ma(e){return Sd(e)?()=>{let t=ma(ge(e));return t&&t()}:zt(e)}function Lv(e,t,r,n,o){let i=e,s=t;for(;i!==null&&s!==null&&s[b]&2048&&!(s[b]&512);){let a=Af(i,s,r,n|O.Self,We);if(a!==We)return a;let c=i.parent;if(!c){let u=s[Xd];if(u){let l=u.get(r,We,n);if(l!==We)return l}c=_f(s),s=s[kn]}i=c}return o}function _f(e){let t=e[_],r=t.type;return r===2?t.declTNode:r===1?e[Ue]:null}function mc(e){return Ov(ve(),e)}function ed(e,t=null,r=null,n){let o=Nf(e,t,r,n);return o.resolveInjectorInitializers(),o}function Nf(e,t=null,r=null,n,o=new Set){let i=[r||Ae,Pm(e)];return n=n||(typeof e=="object"?void 0:me(e)),new sr(i,t||rc(),n||null,o)}var Je=(()=>{let t=class t{static create(n,o){if(Array.isArray(n))return ed({name:""},o,n,"");{let i=n.name??"";return ed({name:i},n.parent,n.providers,i)}}};t.THROW_IF_NOT_FOUND=or,t.NULL=new $o,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>y(kd)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var jv="ngOriginalError";function Zs(e){return e[jv]}var Ke=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Zs(t);for(;r&&Zs(r);)r=Zs(r);return r||null}},Rf=new I("",{providedIn:"root",factory:()=>p(Ke).handleError.bind(void 0)}),vc=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Vv,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),va=class extends vc{constructor(t){super(),this._lView=t}onDestroy(t){return uf(this._lView,t),()=>sv(this._lView,t)}};function Vv(){return new va(k())}function $v(){return Vn(ve(),k())}function Vn(e,t){return new dt(_e(e,t))}var dt=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=$v;let e=t;return e})();function Uv(e){return e instanceof dt?e.nativeElement:e}var ya=class extends ce{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Jd()&&(this.destroyRef=p(vc,{optional:!0})??void 0)}emit(t){let r=P(null);try{super.next(t)}finally{P(r)}}subscribe(t,r,n){let o=t,i=r||(()=>null),s=n;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=Ys(i),o&&(o=Ys(o)),s&&(s=Ys(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof W&&t.add(a),a}};function Ys(e){return t=>{setTimeout(e,void 0,t)}}var ie=ya;function Bv(){return this._results[Symbol.iterator]()}var Da=class e{get changes(){return this._changes??=new ie}constructor(t=!1){this._emitDistinctChangesOnly=t,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=e.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Bv)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;let n=gm(t);(this._changesDetected=!pm(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Of(e){return(e.flags&128)===128}var Pf=new Map,Hv=0;function zv(){return Hv++}function qv(e){Pf.set(e[hi],e)}function Gv(e){Pf.delete(e[hi])}var td="__ngContext__";function Tt(e,t){Bt(t)?(e[td]=t[hi],qv(t)):e[td]=t}function Ff(e){return Lf(e[cr])}function kf(e){return Lf(e[ke])}function Lf(e){for(;e!==null&&!lt(e);)e=e[ke];return e}var wa;function jf(e){wa=e}function Wv(){if(wa!==void 0)return wa;if(typeof document<"u")return document;throw new v(210,!1)}var wi=new I("",{providedIn:"root",factory:()=>Zv}),Zv="ng",yc=new I(""),Xe=new I("",{providedIn:"platform",factory:()=>"unknown"});var Dc=new I("",{providedIn:"root",factory:()=>Wv().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Yv="h",Qv="b";var Kv=()=>null;function wc(e,t,r=!1){return Kv(e,t,r)}var Vf=!1,Jv=new I("",{providedIn:"root",factory:()=>Vf});var So;function Xv(){if(So===void 0&&(So=null,ee.trustedTypes))try{So=ee.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return So}function nd(e){return Xv()?.createScriptURL(e)||e}var Wo=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${bd})`}};function vr(e){return e instanceof Wo?e.changingThisBreaksApplicationSecurity:e}function Ic(e,t){let r=ey(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${bd})`)}return r===t}function ey(e){return e instanceof Wo&&e.getTypeName()||null}var ty=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $f(e){return e=String(e),e.match(ty)?e:"unsafe:"+e}var Ii=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ii||{});function ny(e){let t=Bf();return t?t.sanitize(Ii.URL,e)||"":Ic(e,"URL")?vr(e):$f(ci(e))}function ry(e){let t=Bf();if(t)return nd(t.sanitize(Ii.RESOURCE_URL,e)||"");if(Ic(e,"ResourceURL"))return nd(vr(e));throw new v(904,!1)}function oy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?ry:ny}function Uf(e,t,r){return oy(t,r)(e)}function Bf(){let e=k();return e&&e[Ve].sanitizer}var iy=/^>|^->||--!>|)/g,ay="\u200B$1\u200B";function cy(e){return e.replace(iy,t=>t.replace(sy,ay))}function Hf(e){return e instanceof Function?e():e}function uy(e){return(e??p(Je)).get(Xe)==="browser"}var st=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(st||{}),ly;function Ec(e,t){return ly(e,t)}function bn(e,t,r,n,o){if(n!=null){let i,s=!1;lt(n)?i=n:Bt(n)&&(s=!0,n=n[ut]);let a=Qe(n);e===0&&r!==null?o==null?Zf(t,r,a):Zo(t,r,a,o||null,!0):e===1&&r!==null?Zo(t,r,a,o||null,!0):e===2?xy(t,a,s):e===3&&t.destroyNode(a),i!=null&&_y(t,e,i,r,o)}}function dy(e,t){return e.createText(t)}function fy(e,t,r){e.setValue(t,r)}function hy(e,t){return e.createComment(cy(t))}function zf(e,t,r){return e.createElement(t,r)}function py(e,t){qf(e,t),t[ut]=null,t[Ue]=null}function gy(e,t,r,n,o,i){n[ut]=o,n[Ue]=t,Ci(e,n,r,1,o,i)}function qf(e,t){t[Ve].changeDetectionScheduler?.notify(1),Ci(e,t,t[te],2,null,null)}function my(e){let t=e[cr];if(!t)return Qs(e[_],e);for(;t;){let r=null;if(Bt(t))r=t[cr];else{let n=t[Ce];n&&(r=n)}if(!r){for(;t&&!t[ke]&&t!==e;)Bt(t)&&Qs(t[_],t),t=t[se];t===null&&(t=e),Bt(t)&&Qs(t[_],t),r=t&&t[ke]}t=r}}function vy(e,t,r,n){let o=Ce+n,i=r.length;n>0&&(r[o-1][ke]=t),n0&&(e[r-1][ke]=n[ke]);let i=Vo(e,Ce+t);py(n[_],n);let s=i[it];s!==null&&s.detachView(i[_]),n[se]=null,n[ke]=null,n[b]&=-129}return n}function Wf(e,t){if(!(t[b]&256)){let r=t[te];r.destroyNode&&Ci(e,t,r,3,null,null),my(t)}}function Qs(e,t){if(t[b]&256)return;let r=P(null);try{t[b]&=-129,t[b]|=256,t[qt]&&fl(t[qt]),wy(e,t),Dy(e,t),t[_].type===1&&t[te].destroy();let n=t[mr];if(n!==null&<(t[se])){n!==t[se]&&Gf(n,t);let o=t[it];o!==null&&o.detachView(e)}Gv(t)}finally{P(r)}}function Dy(e,t){let r=e.cleanup,n=t[ar];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&&(t[ar]=null);let o=t[Ct];if(o!==null){t[Ct]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[n.directiveStart+o];if(i===Ze.None||i===Ze.Emulated)return null}return _e(n,r)}}function Zo(e,t,r,n,o){e.insertBefore(t,r,n,o)}function Zf(e,t,r){e.appendChild(t,r)}function rd(e,t,r,n,o){n!==null?Zo(e,t,r,n,o):Zf(e,t,r)}function Cy(e,t,r,n){e.removeChild(t,r,n)}function Cc(e,t){return e.parentNode(t)}function by(e,t){return e.nextSibling(t)}function My(e,t,r){return Sy(e,t,r)}function Ty(e,t,r){return e.type&40?_e(e,r):null}var Sy=Ty,od;function Ei(e,t,r,n){let o=Iy(e,n,t),i=t[te],s=n.parent||t[Ue],a=My(s,n,t);if(o!=null)if(Array.isArray(r))for(let c=0;cbe&&Jf(e,t,be,!1),Ge(s?2:0,o),r(n,o)}finally{Wt(i),Ge(s?3:1,o)}}function Mc(e,t,r){if(ic(t)){let n=P(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Vy(e,t,r,n){let o=ch(t);o.push(r),e.firstCreatePass&&uh(e).push(n,o.length-1)}function $y(e,t,r,n,o,i){let s=t?t.injectorIndex:-1,a=0;return lv()&&(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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function id(e,t,r,n,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;n??={};let a,c=Le.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]}e===0?sd(n,r,u,a,c):sd(n,r,u,a)}return n}function sd(e,t,r,n,o){let i;e.hasOwnProperty(r)?(i=e[r]).push(t,n):i=e[r]=[t,n],o!==void 0&&i.push(o)}function Uy(e,t,r){let n=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function Wy(e,t,r,n){let o=r.directiveStart,i=r.directiveEnd;pi(r)&&eD(t,r,e.data[o+r.componentOffset]),e.firstCreatePass||Go(r,t),Tt(n,t);let s=r.initialInputs;for(let a=o;a{ur(e.lView)},consumerOnSignalRead(){this.lView[qt]=this}}),fh=100;function hh(e,t=!0,r=0){let n=e[Ve],o=n.rendererFactory,i=!1;i||o.begin?.();try{mD(e,r)}catch(s){throw t&&lh(e,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function mD(e,t){Ma(e,t);let r=0;for(;cc(e);){if(r===fh)throw new v(103,!1);r++,Ma(e,1)}}function vD(e,t,r,n){let o=t[b];if((o&256)===256)return;let i=!1;!i&&t[Ve].inlineEffectRunner?.flush(),fc(t);let s=null,a=null;!i&&yD(e)&&(a=fD(t),s=ll(a));try{cf(t),gv(e.bindingStartIndex),r!==null&&nh(e,t,r,2,n);let c=(o&3)===3;if(!i)if(c){let d=e.preOrderCheckHooks;d!==null&&Ro(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Oo(t,d,0,null),Gs(t,0)}if(DD(t),ph(t,0),e.contentQueries!==null&&ah(e,t),!i)if(c){let d=e.contentCheckHooks;d!==null&&Ro(t,d)}else{let d=e.contentHooks;d!==null&&Oo(t,d,1),Gs(t,1)}Oy(e,t);let u=e.components;u!==null&&mh(t,u,0);let l=e.viewQuery;if(l!==null&&ba(2,l,n),!i)if(c){let d=e.viewCheckHooks;d!==null&&Ro(t,d)}else{let d=e.viewHooks;d!==null&&Oo(t,d,2),Gs(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[qs]){for(let d of t[qs])d();t[qs]=null}i||(t[b]&=-73)}catch(c){throw ur(t),c}finally{a!==null&&(dl(a,s),pD(a)),hc()}}function yD(e){return e.type!==2}function ph(e,t){for(let r=Ff(e);r!==null;r=kf(r))for(let n=Ce;n-1&&(Ia(t,n),Vo(r,n))}this._attachedToViewContainer=!1}Wf(this._lView[_],this._lView)}onDestroy(t){uf(this._lView,t)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[b]&=-129}reattach(){fa(this._lView),this._lView[b]|=128}detectChanges(){this._lView[b]|=1024,hh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,qf(this._lView[_],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t,fa(this._lView)}},Kt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=CD;let e=t;return e})(),ID=Kt,ED=class extends ID{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let o=uD(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new Qt(o)}};function CD(){return Oc(ve(),k())}function Oc(e,t){return e.type&4?new ED(t,e,Vn(e,t)):null}var H_=new RegExp(`^(\\d+)*(${Qv}|${Yv})*(.*)`);var bD=()=>null;function cd(e,t){return bD(e,t)}var Qo=class{},Ta=class{},Ko=class{};function MD(e){let t=Error(`No component factory found for ${me(e)}.`);return t[TD]=e,t}var TD="ngComponent";var Sa=class{resolveComponentFactory(t){throw MD(t)}},Ti=(()=>{let t=class t{};t.NULL=new Sa;let e=t;return e})(),dr=class{},Dr=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>SD();let e=t;return e})();function SD(){let e=k(),t=ve(),r=xt(t.index,e);return(Bt(r)?r:e)[te]}var xD=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Ks={};var ud=new Set;function Si(e){ud.has(e)||(ud.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Mn=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Mn||{}),AD={destroy(){}};function xi(e,t){!t&&qm(xi);let r=t?.injector??p(Je);if(!uy(r))return AD;Si("NgAfterNextRender");let n=r.get(Pc),o=n.handler??=new Aa,i=t?.phase??Mn.MixedReadWrite,s=()=>{o.unregister(c),a()},a=r.get(vc).onDestroy(s),c=$e(r,()=>new xa(i,()=>{s(),e()}));return o.register(c),{destroy:s}}var xa=class{constructor(t,r){this.phase=t,this.callbackFn=r,this.errorHandler=p(Ke,{optional:!0}),p(Qo,{optional:!0})?.notify(1)}invoke(){try{this.callbackFn()}catch(t){this.errorHandler?.handleError(t)}}},Aa=class{constructor(){this.executingCallbacks=!1,this.buckets={[Mn.EarlyRead]:new Set,[Mn.Write]:new Set,[Mn.MixedReadWrite]:new Set,[Mn.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let r of t)r.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},Pc=(()=>{let t=class t{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}};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Jo(e,t,r){let n=r?e.styles:null,o=r?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Qf(e,r,i.join(" "))}}function kD(e,t,r){let n=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=jD;let e=t;return e})();function jD(){let e=ve();return yh(e,k())}var VD=_t,vh=class extends VD{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return Vn(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=pc(this._hostTNode,this._hostLView);if(Ef(t)){let r=zo(t,this._hostLView),n=Ho(t),o=r[_].data[n+8];return new Ht(o,r)}else return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=dd(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(t,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=cd(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,ad(this._hostTNode,s)),a}createComponent(t,r,n,o,i){let s=t&&!Wm(t),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?t:new Pn(bt(t)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let S=(s?u:this.parentInjector).get(ue,null);S&&(i=S)}let l=bt(c.componentType??{}),d=cd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,o,f,i);return this.insertImpl(h.hostView,a,ad(this._hostTNode,d)),h}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let o=t._lView;if(rv(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[se],u=new vh(c,c[Ue],c[se]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(r),s=this._lContainer;return lD(s,o,i,n),t.attachToViewContainerRef(),Fd(Js(s),i,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=dd(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=Ia(this._lContainer,r);n&&(Vo(Js(this._lContainer),r),Wf(n[_],n))}detach(t){let r=this._adjustIndex(t,-1),n=Ia(this._lContainer,r);return n&&Vo(Js(this._lContainer),r)!=null?new Qt(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function dd(e){return e[Bo]}function Js(e){return e[Bo]||(e[Bo]=[])}function yh(e,t){let r,n=t[e.index];return lt(n)?r=n:(r=sh(n,t,null,e),t[e.index]=r,Mi(t,r)),UD(r,t,e,n),new vh(r,e,t)}function $D(e,t){let r=e[te],n=r.createComment(""),o=_e(t,e),i=Cc(r,o);return Zo(r,i,n,by(r,o),!1),n}var UD=zD,BD=()=>!1;function HD(e,t,r){return BD(e,t,r)}function zD(e,t,r,n){if(e[Gt])return;let o;r.type&8?o=Qe(n):o=$D(t,r),e[Gt]=o}var Ra=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Oa=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let r=t.queries;if(r!==null){let n=t.contentQueries!==null?t.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=Ce;dt.trim())}function XD(e,t,r){e.queries===null&&(e.queries=new Fa),e.queries.track(new ka(t,r))}function ew(e,t){let r=e.contentQueries||(e.contentQueries=[]),n=r.length?r[r.length-1]:-1;t!==n&&r.push(e.queries.length-1,t)}function Fc(e,t){return e.queries.getByIndex(t)}function tw(e,t){let r=e[_],n=Fc(r,t);return n.crossesNgTemplate?La(r,e,t,[]):Dh(r,e,n,t)}function nw(e){let t=[],r=new Map;function n(o){let i=r.get(o);if(!i){let s=e(o);r.set(o,i=s.then(sw))}return i}return ei.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,f)=>{a.push(""),s.push(n(d).then(h=>{a[u+f]=h,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(()=>aw(i));t.push(c)}),ow(),Promise.all(t).then(()=>{})}var ei=new Map,rw=new Set;function ow(){let e=ei;return ei=new Map,e}function iw(){return ei.size===0}function sw(e){return typeof e=="string"?e:e.text()}function aw(e){rw.delete(e)}function cw(e){return Object.getPrototypeOf(e.prototype).constructor}function uw(e){let t=cw(e.type),r=!0,n=[e];for(;t;){let o;if(Mt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(r){n.push(o);let s=e;s.inputs=xo(e.inputs),s.inputTransforms=xo(e.inputTransforms),s.declaredInputs=xo(e.declaredInputs),s.outputs=xo(e.outputs);let a=o.hostBindings;a&&pw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&fw(e,c),u&&hw(e,u),lw(e,o),Yg(e.outputs,o.outputs),Mt(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=e[n];o.hostVars=t+=o.hostVars,o.hostAttrs=ir(o.hostAttrs,r=ir(r,o.hostAttrs))}}function xo(e){return e===xn?{}:e===Ae?[]:e}function fw(e,t){let r=e.viewQuery;r?e.viewQuery=(n,o)=>{t(n,o),r(n,o)}:e.viewQuery=t}function hw(e,t){let r=e.contentQueries;r?e.contentQueries=(n,o,i)=>{t(n,o,i),r(n,o,i)}:e.contentQueries=t}function pw(e,t){let r=e.hostBindings;r?e.hostBindings=(n,o)=>{t(n,o),r(n,o)}:e.hostBindings=t}function kc(e){let t=e.inputConfig,r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)&&o[3]&&(r[n]=o[3])}e.inputTransforms=r}var St=class{},fr=class{};var ti=class extends St{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xo(this);let o=qd(t);this._bootstrapComponents=Hf(o.bootstrap),this._r3Injector=Nf(t,r,[{provide:St,useValue:this},{provide:Ti,useValue:this.componentFactoryResolver},...n],me(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ni=class extends fr{constructor(t){super(),this.moduleType=t}create(t){return new ti(this.moduleType,t,[])}};function gw(e,t,r){return new ti(e,t,r)}var ja=class extends St{constructor(t){super(),this.componentFactoryResolver=new Xo(this),this.instance=null;let r=new sr([...t.providers,{provide:St,useValue:this},{provide:Ti,useValue:this.componentFactoryResolver}],t.parent||rc(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ai(e,t,r=null){return new ja({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var nn=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new oe(!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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function wh(e){return vw(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function mw(e,t){if(Array.isArray(e))for(let r=0;r"u")throw new v(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Mw().nativeRequestAnimationFrame,xw(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Tw,fd,fd);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},Tw={};function jc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Sw(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ee,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Va(e),e.isCheckStableRunning=!0,jc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Va(e))}function xw(e){let t=()=>{Sw(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(Aw(a))return r.invokeTask(o,i,s,a);try{return hd(e),r.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),pd(e)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return hd(e),r.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),pd(e)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Va(e),jc(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Va(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function hd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pd(e){e._nesting--,jc(e)}var $a=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ie,this.onMicrotaskEmpty=new ie,this.onStable=new ie,this.onError=new ie}run(t,r,n){return t.apply(r,n)}runGuarded(t,r,n){return t.apply(r,n)}runOutsideAngular(t){return t()}runTask(t,r,n,o){return t.apply(r,n)}};function Aw(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}function _w(e="zone.js",t){return e==="noop"?new $a:e==="zone.js"?new B(t):e}function Vc(e,t,r,n){let o=k(),i=lc();if(Jt(o,i,t)){let s=le(),a=Df();tD(a,o,e,t,r,n)}return Vc}function Nw(e,t,r,n){return Jt(e,lc(),r)?t+ci(r)+n:At}function Ao(e,t){return e<<17|t<<2}function Xt(e){return e>>17&32767}function Rw(e){return(e&2)==2}function Ow(e,t){return e&131071|t<<17}function Ua(e){return e|2}function Fn(e){return(e&131068)>>2}function Xs(e,t){return e&-131069|t<<2}function Pw(e){return(e&1)===1}function Ba(e){return e|1}function Fw(e,t,r,n,o,i){let s=i?t.classBindings:t.styleBindings,a=Xt(s),c=Fn(s);e[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||gr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let f=Xt(e[a+1]);e[n+1]=Ao(f,a),f!==0&&(e[f+1]=Xs(e[f+1],n)),e[a+1]=Ow(e[a+1],n)}else e[n+1]=Ao(a,0),a!==0&&(e[a+1]=Xs(e[a+1],n)),a=n;else e[n+1]=Ao(c,0),a===0?a=n:e[c+1]=Xs(e[c+1],n),c=n;u&&(e[n+1]=Ua(e[n+1])),gd(e,l,n,!0),gd(e,l,n,!1),kw(t,l,e,n,i),s=Ao(a,c),i?t.classBindings=s:t.styleBindings=s}function kw(e,t,r,n,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(r[n+1]=Ba(r[n+1]))}function gd(e,t,r,n){let o=e[r+1],i=t===null,s=n?Xt(o):Fn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Lw(c,t)&&(a=!0,e[s+1]=n?Ba(u):Ua(u)),s=n?Xt(u):Fn(u)}a&&(e[r+1]=n?Ua(o):Ba(o))}function Lw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}function jw(e,t,r){let n=k(),o=lc();if(Jt(n,o,t)){let i=le(),s=Df();Hy(i,s,n,e,t,n[te],r,!1)}return jw}function md(e,t,r,n,o){let i=t.inputs,s=o?"class":"style";_c(e,r,i[s],s,n)}function Vw(e,t){return $w(e,t,null,!0),Vw}function $w(e,t,r,n){let o=k(),i=le(),s=mv(2);if(i.firstUpdatePass&&Bw(i,e,s,n),t!==At&&Jt(o,s,t)){let a=i.data[jn()];Ww(i,a,o,o[te],e,o[s+1]=Zw(t,r),n,s)}}function Uw(e,t){return t>=e.expandoStartIndex}function Bw(e,t,r,n){let o=e.data;if(o[r+1]===null){let i=o[jn()],s=Uw(e,r);Yw(i,n)&&t===null&&!s&&(t=!1),t=Hw(o,i,t,n),Fw(o,i,t,r,s,n)}}function Hw(e,t,r,n){let o=wv(e),i=n?t.residualClasses:t.residualStyles;if(o===null)(n?t.classBindings:t.styleBindings)===0&&(r=ea(null,e,t,r,n),r=hr(r,t.attrs,n),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(r=ea(o,e,t,r,n),i===null){let c=zw(e,t,n);c!==void 0&&Array.isArray(c)&&(c=ea(null,e,t,c[1],n),c=hr(c,t.attrs,n),qw(e,t,n,c))}else i=Gw(e,t,n)}return i!==void 0&&(n?t.residualClasses=i:t.residualStyles=i),r}function zw(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Fn(n)!==0)return e[Xt(n)]}function qw(e,t,r,n){let o=r?t.classBindings:t.styleBindings;e[Xt(o)]=n}function Gw(e,t,r){let n,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[o+1];f===At&&(f=d?Ae:void 0);let h=d?Hs(f,n):l===n?f:void 0;if(u&&!ri(h)&&(h=Hs(c,n)),ri(h)&&(a=h,s))return a;let g=e[o+1];o=s?Xt(g):Fn(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Hs(c,n))}return a}function ri(e){return e!==void 0}function Zw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=me(vr(e)))),e}function Yw(e,t){return(e.flags&(t?8:16))!==0}function Qw(e,t,r,n,o,i){let s=t.consts,a=On(s,o),c=yr(t,e,2,n,a);return Ac(t,r,c,On(s,i)),c.attrs!==null&&Jo(c,c.attrs,!1),c.mergedAttrs!==null&&Jo(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Ih(e,t,r,n){let o=k(),i=le(),s=be+e,a=o[te],c=i.firstCreatePass?Qw(s,i,o,t,r,n):i.data[s],u=Kw(i,o,c,a,t,e);o[s]=u;let l=gi(c);return tn(c,!0),Kf(a,u,c),!ww(c)&&vi()&&Ei(i,o,u,c),av()===0&&Tt(u,o),cv(),l&&(Tc(i,o,c),Mc(i,c,o)),n!==null&&Sc(o,c),Ih}function Eh(){let e=ve();uc()?ff():(e=e.parent,tn(e,!1));let t=e;dv(t)&&fv(),uv();let r=le();return r.firstCreatePass&&(Di(r,e),ic(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&Sv(t)&&md(r,t,k(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&xv(t)&&md(r,t,k(),t.stylesWithoutHost,!1),Eh}function $c(e,t,r,n){return Ih(e,t,r,n),Eh(),$c}var Kw=(e,t,r,n,o,i)=>(yi(!0),zf(n,o,Cv()));function Jw(e,t,r,n,o){let i=t.consts,s=On(i,n),a=yr(t,e,8,"ng-container",s);s!==null&&Jo(a,s,!0);let c=On(i,o);return Ac(t,r,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function Xw(e,t,r){let n=k(),o=le(),i=e+be,s=o.firstCreatePass?Jw(i,o,n,t,r):o.data[i];tn(s,!0);let a=tI(o,n,s,e);return n[i]=a,vi()&&Ei(o,n,a,s),Tt(a,n),gi(s)&&(Tc(o,n,s),Mc(o,s,n)),r!=null&&Sc(n,s),Xw}function eI(){let e=ve(),t=le();return uc()?ff():(e=e.parent,tn(e,!1)),t.firstCreatePass&&(Di(t,e),ic(e)&&t.queries.elementEnd(e)),eI}var tI=(e,t,r,n)=>(yi(!0),hy(t[te],""));function q_(){return k()}var Ut=void 0;function nI(e){let t=e,r=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var rI=["en",[["a","p"],["AM","PM"],Ut],[["AM","PM"],Ut,Ut],[["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"]],Ut,[["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"]],Ut,[["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}",Ut,"{1} 'at' {0}",Ut],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",nI],ta={};function Ne(e){let t=oI(e),r=yd(t);if(r)return r;let n=t.split("-")[0];if(r=yd(n),r)return r;if(n==="en")return rI;throw new v(701,!1)}function yd(e){return e in ta||(ta[e]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[e]),ta[e]}var Z=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Z||{});function oI(e){return e.toLowerCase().replace(/_/g,"-")}var oi="en-US";var iI=oi;function sI(e){typeof e=="string"&&(iI=e.toLowerCase().replace(/_/g,"-"))}function Uc(e,t,r,n){let o=k(),i=le(),s=ve();return cI(i,o,o[te],s,e,t,n),Uc}function aI(e,t,r,n){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function cI(e,t,r,n,o,i,s){let a=gi(n),u=e.firstCreatePass&&uh(e),l=t[je],d=ch(t),f=!0;if(n.type&3||s){let S=_e(n,t),C=s?s(S):S,E=d.length,ae=s?q=>s(Qe(q[n.index])):n.index,re=null;if(!s&&a&&(re=aI(e,t,o,n.index)),re!==null){let q=re.__ngLastListenerFn__||re;q.__ngNextListenerFn__=i,re.__ngLastListenerFn__=i,f=!1}else{i=wd(n,t,l,i,!1);let q=r.listen(C,o,i);d.push(i,q),u&&u.push(o,ae,E,E+1)}}else i=wd(n,t,l,i,!1);let h=n.outputs,g;if(f&&h!==null&&(g=h[o])){let S=g.length;if(S)for(let C=0;C-1?xt(e.index,t):t;Rc(a);let c=Dd(t,r,n,s),u=i.__ngNextListenerFn__;for(;u;)c=Dd(t,r,u,s)&&c,u=u.__ngNextListenerFn__;return o&&c===!1&&s.preventDefault(),c}}function G_(e=1){return Ev(e)}function Ch(e,t,r,n){KD(e,t,r,n)}function bh(e){let t=k(),r=le(),n=hf();dc(n+1);let o=Fc(r,n);if(e.dirty&&nv(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=tw(t,n);e.reset(i,Uv),e.notifyOnChanges()}return!0}return!1}function Mh(){return YD(k(),hf())}function uI(e,t,r,n){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=n}function W_(e){let t=pv();return sc(t,be+e)}function Z_(e,t=""){let r=k(),n=le(),o=e+be,i=n.firstCreatePass?yr(n,o,1,t,null):n.data[o],s=lI(n,r,i,t,e);r[o]=s,vi()&&Ei(n,r,s,i),tn(i,!1)}var lI=(e,t,r,n,o)=>(yi(!0),dy(t[te],n));function dI(e){return Th("",e,""),dI}function Th(e,t,r){let n=k(),o=Nw(n,e,t,r);return o!==At&&iD(n,jn(),o),Th}function fI(e,t,r){let n=le();if(n.firstCreatePass){let o=Mt(e);Ha(r,n.data,n.blueprint,o,!0),Ha(t,n.data,n.blueprint,o,!1)}}function Ha(e,t,r,n,o){if(e=ge(e),Array.isArray(e))for(let i=0;i>20;if(_n(e)||!e.multi){let h=new Zt(u,o,z),g=ra(c,t,o?l:l+f,d);g===-1?(ga(Go(a,s),i,c),na(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[g]=h,s[g]=h)}else{let h=ra(c,t,l+f,d),g=ra(c,t,l,l+f),S=h>=0&&r[h],C=g>=0&&r[g];if(o&&!C||!o&&!S){ga(Go(a,s),i,c);let E=gI(o?pI:hI,r.length,o,n,u);!o&&C&&(r[g].providerFactory=E),na(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(E),s.push(E)}else{let E=Sh(r[o?g:h],u,!o&&n);na(i,e,h>-1?h:g,E)}!o&&n&&C&&r[g].componentProviders++}}}function na(e,t,r,n){let o=_n(t),i=jm(t);if(o||i){let c=(i?ge(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.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 Sh(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function ra(e,t,r,n){for(let o=r;o{r.providersResolver=(n,o)=>fI(n,o?o(e):e,t)}}var mI=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Zd(!1,n.type),i=o.length>0?Ai([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()}}};t.\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(y(ue))});let e=t;return e})();function xh(e){Si("NgStandalone"),e.getStandaloneInjector=t=>t.get(mI).getOrCreateStandaloneInjector(e)}function Q_(e,t,r){let n=mi()+e,o=k();return o[n]===At?Lc(o,n,r?t.call(r):t()):yw(o,n)}function K_(e,t,r,n){return _h(k(),mi(),e,t,r,n)}function Ah(e,t){let r=e[t];return r===At?void 0:r}function _h(e,t,r,n,o,i){let s=t+r;return Jt(e,s,o)?Lc(e,s+1,i?n.call(i,o):n(o)):Ah(e,s+1)}function vI(e,t,r,n,o,i,s){let a=t+r;return Dw(e,a,o,i)?Lc(e,a+2,s?n.call(s,o,i):n(o,i)):Ah(e,a+2)}function J_(e,t){let r=le(),n,o=e+be;r.firstCreatePass?(n=yI(t,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=zt(n.type,!0)),s,a=we(z);try{let c=qo(!1),u=i();return qo(c),uI(r,k(),o,u),u}finally{we(a)}}function yI(e,t){if(t)for(let r=t.length-1;r>=0;r--){let n=t[r];if(e===n.name)return n}}function X_(e,t,r){let n=e+be,o=k(),i=sc(o,n);return Nh(o,n)?_h(o,mi(),t,i.transform,r,i):i.transform(r)}function eN(e,t,r,n){let o=e+be,i=k(),s=sc(i,o);return Nh(i,o)?vI(i,mi(),t,s.transform,r,n,s):s.transform(r,n)}function Nh(e,t){return e[_].data[t].pure}var _o=null;function DI(e){_o!==null&&(e.defaultEncapsulation!==_o.defaultEncapsulation||e.preserveWhitespaces!==_o.preserveWhitespaces)||(_o=e)}var _i=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Bc=new I(""),wr=new I(""),Ni=(()=>{let t=class t{constructor(n,o,i){this._ngZone=n,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Hc||(wI(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:()=>{B.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!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()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(y(B),y(Ri),y(wr))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Ri=(()=>{let t=class t{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 Hc?.findTestabilityInTree(this,n,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function wI(e){Hc=e}var Hc;function $n(e){return!!e&&typeof e.then=="function"}function zc(e){return!!e&&typeof e.subscribe=="function"}var Oi=new I(""),Rh=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=p(Oi,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if($n(s))n.push(s);else if(zc(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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Pi=new I("");function II(){hl(()=>{throw new v(600,!1)})}function EI(e){return e.isBoundToModule}function CI(e,t,r){try{let n=r();return $n(n)?n.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}function Oh(e,t){return Array.isArray(t)?t.reduce(Oh,e):m(m({},e),t)}var rn=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(Rf),this.afterRenderEffectManager=p(Pc),this.externalTestViews=new Set,this.beforeRender=new ce,this.afterTick=new ce,this.componentTypes=[],this.components=[],this.isStable=p(nn).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(ue)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof Ko;if(!this._injector.get(Rh).done){let h=!i&&zd(n),g=!1;throw new v(405,g)}let a;i?a=n:a=this._injector.get(Ti).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=EI(a)?void 0:this._injector.get(St),u=o||a.selector,l=a.create(Je.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(Bc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ko(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let o=P(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,P(o)}}detectChangesInAttachedViews(n){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===fh)throw new v(103,!1);if(n){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)bI(a,s,c)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>qa(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>qa(s))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;ko(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Pi,[]);[...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),()=>ko(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ko(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function bI(e,t,r){!t&&!qa(e)||MI(e,r,t)}function qa(e){return cc(e)}function MI(e,t,r){let n;r?(n=0,e[b]|=1024):e[b]&64?n=0:n=1,hh(e,t,n)}var Ga=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},Fi=(()=>{let t=class t{compileModuleSync(n){return new ni(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=qd(n),s=Hf(i.declarations).reduce((a,c)=>{let u=bt(c);return u&&a.push(new Pn(u)),a},[]);return new Ga(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),TI=new I("");function SI(e,t,r){let n=new ni(r);return Promise.resolve(n)}function Id(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var xI=(()=>{let t=class t{constructor(){this.zone=p(B),this.applicationRef=p(rn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function AI(e){return[{provide:B,useFactory:e},{provide:An,multi:!0,useFactory:()=>{let t=p(xI,{optional:!0});return()=>t.initialize()}},{provide:An,multi:!0,useFactory:()=>{let t=p(RI);return()=>{t.initialize()}}},{provide:Rf,useFactory:_I}]}function _I(){let e=p(B),t=p(Ke);return r=>e.runOutsideAngular(()=>t.handleError(r))}function NI(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var RI=(()=>{let t=class t{constructor(){this.subscription=new W,this.initialized=!1,this.zone=p(B),this.pendingTasks=p(nn)}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(()=>{B.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{B.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function OI(){return typeof $localize<"u"&&$localize.locale||oi}var ki=new I("",{providedIn:"root",factory:()=>p(ki,O.Optional|O.SkipSelf)||OI()});var Ph=new I(""),Fh=(()=>{let t=class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){let i=_w(o?.ngZone,NI({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=gw(n.moduleType,this.injector,AI(()=>i)),a=s.injector.get(Ke,null);return i.runOutsideAngular(()=>{let c=i.onError.subscribe({next:u=>{a.handleError(u)}});s.onDestroy(()=>{ko(this._modules,s),c.unsubscribe()})}),CI(a,i,()=>{let c=s.injector.get(Rh);return c.runInitializers(),c.donePromise.then(()=>{let u=s.injector.get(ki,oi);return sI(u||oi),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,o=[]){let i=Oh({},o);return SI(this.injector,i,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){let o=n.injector.get(rn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(o);else throw new v(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new v(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let n=this._injector.get(Ph,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(o){return new(o||t)(y(Je))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),rr=null,kh=new I("");function PI(e){if(rr&&!rr.get(kh,!1))throw new v(400,!1);II(),rr=e;let t=e.get(Fh);return LI(e),t}function qc(e,t,r=[]){let n=`Platform: ${t}`,o=new I(n);return(i=[])=>{let s=Lh();if(!s||s.injector.get(kh,!1)){let a=[...r,...i,{provide:o,useValue:!0}];e?e(a):PI(FI(a,n))}return kI(o)}}function FI(e=[],t){return Je.create({name:t,providers:[{provide:fi,useValue:"platform"},{provide:Ph,useValue:new Set([()=>rr=null])},...e]})}function kI(e){let t=Lh();if(!t)throw new v(401,!1);return t}function Lh(){return rr?.get(Fh)??null}function LI(e){e.get(yc,null)?.forEach(r=>r())}var on=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jI;let e=t;return e})();function jI(e){return VI(ve(),k(),(e&16)===16)}function VI(e,t,r){if(pi(e)&&!r){let n=xt(e.index,t);return new Qt(n,n)}else if(e.type&47){let n=t[Ye];return new Qt(n,t)}return null}var Wa=class{constructor(){}supports(t){return wh(t)}create(t){return new Za(t)}},$I=(e,t)=>t,Za=class{constructor(t){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=t||$I}forEachItem(t){let r;for(r=this._itHead;r!==null;r=r._next)t(r)}forEachOperation(t){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=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,n,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(n,o),t!==null?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,i,o)):t=this._addAfter(new Ya(r,n),i,o)),t}_verifyReinsertion(t,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let r=t._next;this._addToRemovals(this._unlink(t)),t=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(t,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,r,n),this._addToMoves(t,n),t}_moveAfter(t,r,n){return this._unlink(t),this._insertAfter(t,r,n),this._addToMoves(t,n),t}_addAfter(t,r,n){return this._insertAfter(t,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,r,n){let o=r===null?this._itHead:r._next;return t._next=o,t._prev=r,o===null?this._itTail=t:o._prev=t,r===null?this._itHead=t:r._next=t,this._linkedRecords===null&&(this._linkedRecords=new ii),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let r=t._prev,n=t._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ii),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Ya=class{constructor(t,r){this.item=t,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}},Qa=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){let r=t._prevDup,n=t._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},ii=class{constructor(){this.map=new Map}put(t){let r=t.trackById,n=this.map.get(r);n||(n=new Qa,this.map.set(r,n)),n.add(t)}get(t,r){let n=t,o=this.map.get(n);return o?o.get(t,r):null}remove(t){let r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Ed(e,t,r){let n=e.previousIndex;if(n===null)return n;let o=0;return r&&n{let t=class t{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:o=>t.create(n,o||Cd()),deps:[[t,new Ja,new li]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new v(901,!1)}};t.\u0275prov=D({token:t,providedIn:"root",factory:Cd});let e=t;return e})();var jh=qc(null,"core",[]),Vh=(()=>{let t=class t{constructor(n){}};t.\u0275fac=function(o){return new(o||t)(y(rn))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})();function Ir(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Wc(e){let t=P(null);try{return e()}finally{P(t)}}function $h(e){let t=bt(e);if(!t)return null;let r=new Pn(t);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 t.standalone},get isSignal(){return t.signals}}}var Wh=null;function sn(){return Wh}function Zh(e){Wh??=e}var qi=class{};var de=new I(""),ru=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(UI),providedIn:"platform"});let e=t;return e})(),Yh=new I(""),UI=(()=>{let t=class t extends ru{constructor(){super(),this._doc=p(de),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sn().getBaseHref(this._doc)}onPopState(n){let o=sn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=sn().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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function ou(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function Uh(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function ht(e){return e&&e[0]!=="?"?"?"+e:e}var gt=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(iu),providedIn:"root"});let e=t;return e})(),Qh=new I(""),iu=(()=>{let t=class t extends gt{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??p(de).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 ou(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+ht(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(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)}};t.\u0275fac=function(o){return new(o||t)(y(ru),y(Qh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Kh=(()=>{let t=class t extends gt{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=ou(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+ht(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)}};t.\u0275fac=function(o){return new(o||t)(y(ru),y(Qh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Bn=(()=>{let t=class t{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=zI(Uh(Bh(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+ht(o))}normalize(n){return t.stripTrailingSlash(HI(this._basePath,Bh(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+ht(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ht(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})}};t.normalizeQueryParams=ht,t.joinWithSlash=ou,t.stripTrailingSlash=Uh,t.\u0275fac=function(o){return new(o||t)(y(gt))},t.\u0275prov=D({token:t,factory:()=>BI(),providedIn:"root"});let e=t;return e})();function BI(){return new Bn(y(gt))}function HI(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function Bh(e){return e.replace(/\/index.html$/,"")}function zI(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}var ye=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(ye||{}),U=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(U||{}),Me=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Me||{}),Nt={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 qI(e){return Ne(e)[Z.LocaleId]}function GI(e,t,r){let n=Ne(e),o=[n[Z.DayPeriodsFormat],n[Z.DayPeriodsStandalone]],i=Re(o,t);return Re(i,r)}function WI(e,t,r){let n=Ne(e),o=[n[Z.DaysFormat],n[Z.DaysStandalone]],i=Re(o,t);return Re(i,r)}function ZI(e,t,r){let n=Ne(e),o=[n[Z.MonthsFormat],n[Z.MonthsStandalone]],i=Re(o,t);return Re(i,r)}function YI(e,t){let n=Ne(e)[Z.Eras];return Re(n,t)}function Li(e,t){let r=Ne(e);return Re(r[Z.DateFormat],t)}function ji(e,t){let r=Ne(e);return Re(r[Z.TimeFormat],t)}function Vi(e,t){let n=Ne(e)[Z.DateTimeFormat];return Re(n,t)}function Wi(e,t){let r=Ne(e),n=r[Z.NumberSymbols][t];if(typeof n>"u"){if(t===Nt.CurrencyDecimal)return r[Z.NumberSymbols][Nt.Decimal];if(t===Nt.CurrencyGroup)return r[Z.NumberSymbols][Nt.Group]}return n}function Jh(e){if(!e[Z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function QI(e){let t=Ne(e);return Jh(t),(t[Z.ExtraData][2]||[]).map(n=>typeof n=="string"?Zc(n):[Zc(n[0]),Zc(n[1])])}function KI(e,t,r){let n=Ne(e);Jh(n);let o=[n[Z.ExtraData][0],n[Z.ExtraData][1]],i=Re(o,t)||[];return Re(i,r)||[]}function Re(e,t){for(let r=t;r>-1;r--)if(typeof e[r]<"u")return e[r];throw new Error("Locale data API: locale data undefined")}function Zc(e){let[t,r]=e.split(":");return{hours:+t,minutes:+r}}var JI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$i={},XI=/((?:[^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]*)/,pt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(pt||{}),j=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(j||{}),L=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(L||{});function eE(e,t,r,n){let o=uE(e);t=ft(r,t)||t;let s=[],a;for(;t;)if(a=XI.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();n&&(c=ep(n,c),o=cE(o,n,!0));let u="";return s.forEach(l=>{let d=sE(l);u+=d?d(o,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Gi(e,t,r){let n=new Date(0);return n.setFullYear(e,t,r),n.setHours(0,0,0),n}function ft(e,t){let r=qI(e);if($i[r]??={},$i[r][t])return $i[r][t];let n="";switch(t){case"shortDate":n=Li(e,Me.Short);break;case"mediumDate":n=Li(e,Me.Medium);break;case"longDate":n=Li(e,Me.Long);break;case"fullDate":n=Li(e,Me.Full);break;case"shortTime":n=ji(e,Me.Short);break;case"mediumTime":n=ji(e,Me.Medium);break;case"longTime":n=ji(e,Me.Long);break;case"fullTime":n=ji(e,Me.Full);break;case"short":let o=ft(e,"shortTime"),i=ft(e,"shortDate");n=Ui(Vi(e,Me.Short),[o,i]);break;case"medium":let s=ft(e,"mediumTime"),a=ft(e,"mediumDate");n=Ui(Vi(e,Me.Medium),[s,a]);break;case"long":let c=ft(e,"longTime"),u=ft(e,"longDate");n=Ui(Vi(e,Me.Long),[c,u]);break;case"full":let l=ft(e,"fullTime"),d=ft(e,"fullDate");n=Ui(Vi(e,Me.Full),[l,d]);break}return n&&($i[r][t]=n),n}function Ui(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(r,n){return t!=null&&n in t?t[n]:r})),e}function Be(e,t,r="-",n,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=r));let s=String(e);for(;s.length0||a>-r)&&(a+=r),e===j.Hours)a===0&&r===-12&&(a=12);else if(e===j.FractionalSeconds)return tE(a,t);let c=Wi(s,Nt.MinusSign);return Be(a,t,c,n,o)}}function nE(e,t){switch(e){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function H(e,t,r=ye.Format,n=!1){return function(o,i){return rE(o,i,e,t,r,n)}}function rE(e,t,r,n,o,i){switch(r){case L.Months:return ZI(t,o,n)[e.getMonth()];case L.Days:return WI(t,o,n)[e.getDay()];case L.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=QI(t),l=KI(t,o,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,S=s>=h.hours&&a>=h.minutes,C=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case pt.Short:return(o>=0?"+":"")+Be(s,2,i)+Be(Math.abs(o%60),2,i);case pt.ShortGMT:return"GMT"+(o>=0?"+":"")+Be(s,1,i);case pt.Long:return"GMT"+(o>=0?"+":"")+Be(s,2,i)+":"+Be(Math.abs(o%60),2,i);case pt.Extended:return n===0?"Z":(o>=0?"+":"")+Be(s,2,i)+":"+Be(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var oE=0,zi=4;function iE(e){let t=Gi(e,oE,1).getDay();return Gi(e,0,1+(t<=zi?zi:zi+7)-t)}function Xh(e){let t=e.getDay(),r=t===0?-3:zi-t;return Gi(e.getFullYear(),e.getMonth(),e.getDate()+r)}function Yc(e,t=!1){return function(r,n){let o;if(t){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=Xh(r),s=iE(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Be(o,e,Wi(n,Nt.MinusSign))}}function Hi(e,t=!1){return function(r,n){let i=Xh(r).getFullYear();return Be(i,e,Wi(n,Nt.MinusSign),t)}}var Qc={};function sE(e){if(Qc[e])return Qc[e];let t;switch(e){case"G":case"GG":case"GGG":t=H(L.Eras,U.Abbreviated);break;case"GGGG":t=H(L.Eras,U.Wide);break;case"GGGGG":t=H(L.Eras,U.Narrow);break;case"y":t=J(j.FullYear,1,0,!1,!0);break;case"yy":t=J(j.FullYear,2,0,!0,!0);break;case"yyy":t=J(j.FullYear,3,0,!1,!0);break;case"yyyy":t=J(j.FullYear,4,0,!1,!0);break;case"Y":t=Hi(1);break;case"YY":t=Hi(2,!0);break;case"YYY":t=Hi(3);break;case"YYYY":t=Hi(4);break;case"M":case"L":t=J(j.Month,1,1);break;case"MM":case"LL":t=J(j.Month,2,1);break;case"MMM":t=H(L.Months,U.Abbreviated);break;case"MMMM":t=H(L.Months,U.Wide);break;case"MMMMM":t=H(L.Months,U.Narrow);break;case"LLL":t=H(L.Months,U.Abbreviated,ye.Standalone);break;case"LLLL":t=H(L.Months,U.Wide,ye.Standalone);break;case"LLLLL":t=H(L.Months,U.Narrow,ye.Standalone);break;case"w":t=Yc(1);break;case"ww":t=Yc(2);break;case"W":t=Yc(1,!0);break;case"d":t=J(j.Date,1);break;case"dd":t=J(j.Date,2);break;case"c":case"cc":t=J(j.Day,1);break;case"ccc":t=H(L.Days,U.Abbreviated,ye.Standalone);break;case"cccc":t=H(L.Days,U.Wide,ye.Standalone);break;case"ccccc":t=H(L.Days,U.Narrow,ye.Standalone);break;case"cccccc":t=H(L.Days,U.Short,ye.Standalone);break;case"E":case"EE":case"EEE":t=H(L.Days,U.Abbreviated);break;case"EEEE":t=H(L.Days,U.Wide);break;case"EEEEE":t=H(L.Days,U.Narrow);break;case"EEEEEE":t=H(L.Days,U.Short);break;case"a":case"aa":case"aaa":t=H(L.DayPeriods,U.Abbreviated);break;case"aaaa":t=H(L.DayPeriods,U.Wide);break;case"aaaaa":t=H(L.DayPeriods,U.Narrow);break;case"b":case"bb":case"bbb":t=H(L.DayPeriods,U.Abbreviated,ye.Standalone,!0);break;case"bbbb":t=H(L.DayPeriods,U.Wide,ye.Standalone,!0);break;case"bbbbb":t=H(L.DayPeriods,U.Narrow,ye.Standalone,!0);break;case"B":case"BB":case"BBB":t=H(L.DayPeriods,U.Abbreviated,ye.Format,!0);break;case"BBBB":t=H(L.DayPeriods,U.Wide,ye.Format,!0);break;case"BBBBB":t=H(L.DayPeriods,U.Narrow,ye.Format,!0);break;case"h":t=J(j.Hours,1,-12);break;case"hh":t=J(j.Hours,2,-12);break;case"H":t=J(j.Hours,1);break;case"HH":t=J(j.Hours,2);break;case"m":t=J(j.Minutes,1);break;case"mm":t=J(j.Minutes,2);break;case"s":t=J(j.Seconds,1);break;case"ss":t=J(j.Seconds,2);break;case"S":t=J(j.FractionalSeconds,1);break;case"SS":t=J(j.FractionalSeconds,2);break;case"SSS":t=J(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Bi(pt.Short);break;case"ZZZZZ":t=Bi(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Bi(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Bi(pt.Long);break;default:return null}return Qc[e]=t,t}function ep(e,t){e=e.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(r)?t:r}function aE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function cE(e,t,r){let n=r?-1:1,o=e.getTimezoneOffset(),i=ep(t,o);return aE(e,n*(i-o))}function uE(e){if(Hh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Gi(o,i-1,s)}let r=parseFloat(e);if(!isNaN(e-r))return new Date(r);let n;if(n=e.match(JI))return lE(n)}let t=new Date(e);if(!Hh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function lE(e){let t=new Date(0),r=0,n=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(r=Number(e[9]+e[10]),n=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-r,a=Number(e[5]||0)-n,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Hh(e){return e instanceof Date&&!isNaN(e.valueOf())}function Zi(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Kc=class{constructor(t,r,n,o){this.$implicit=t,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}},EN=(()=>{let t=class t{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 Kc(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),zh(c,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);zh(s,i)})}static ngTemplateContextGuard(n,o){return!0}};t.\u0275fac=function(o){return new(o||t)(z(_t),z(Kt),z(Gc))},t.\u0275dir=en({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function zh(e,t){e.context.$implicit=t.item}var CN=(()=>{let t=class t{constructor(n,o){this._viewContainer=n,this._context=new Jc,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){qh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){qh("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}};t.\u0275fac=function(o){return new(o||t)(z(_t),z(Kt))},t.\u0275dir=en({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Jc=class{constructor(){this.$implicit=null,this.ngIf=null}};function qh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${me(t)}'.`)}function tp(e,t){return new v(2100,!1)}var Xc=class{createSubscription(t,r){return Wc(()=>t.subscribe({next:r,error:n=>{throw n}}))}dispose(t){Wc(()=>t.unsubscribe())}},eu=class{createSubscription(t,r){return t.then(r,n=>{throw n})}dispose(t){}},dE=new eu,fE=new Xc,bN=(()=>{let t=class t{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($n(n))return dE;if(zc(n))return fE;throw tp(t,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())}};t.\u0275fac=function(o){return new(o||t)(z(on,16))},t.\u0275pipe=tc({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var hE="mediumDate",pE=new I(""),gE=new I(""),MN=(()=>{let t=class t{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??hE,c=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return eE(n,a,s||this.locale,c)}catch(a){throw tp(t,a.message)}}};t.\u0275fac=function(o){return new(o||t)(z(ki,16),z(pE,24),z(gE,24))},t.\u0275pipe=tc({name:"date",type:t,pure:!0,standalone:!0});let e=t;return e})();var np=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})(),su="browser",mE="server";function vE(e){return e===su}function Yi(e){return e===mE}var rp=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>vE(p(Xe))?new tu(p(de),window):new nu});let e=t;return e})(),tu=class{constructor(t,r){this.document=t,this.window=r,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let r=yE(this.document,t);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let r=t.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 yE(e,t){let r=e.getElementById(t)||e.getElementsByName(t)[0];if(r)return r;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=n.nextNode()}}return null}var nu=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Un=class{};var br=class{},Ki=class{},an=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.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"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,r);let o=(t.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=t.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(t,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var cu=class{encodeKey(t){return ip(t)}encodeValue(t){return ip(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function IE(e,t){let r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var EE=/%(\d[a-f0-9])/gi,CE={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ip(e){return encodeURIComponent(e).replace(EE,(t,r)=>CE[r]??t)}function Qi(e){return`${e}`}var Rt=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new cu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=IE(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let n=t.fromObject[r],o=Array.isArray(n)?n.map(Qi):[Qi(n)];this.map.set(r,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(n=>{let o=t[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(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(Qi(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],o=n.indexOf(Qi(t.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var uu=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function bE(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function sp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ap(e){return typeof Blob<"u"&&e instanceof Blob}function cp(e){return typeof FormData<"u"&&e instanceof FormData}function ME(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Cr=class e{constructor(t,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(bE(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 an,this.context??=new uu,!this.params)this.params=new Rt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":af.set(h,t.setHeaders[h]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((f,h)=>f.set(h,t.setParams[h]),l)),new e(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Hn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Hn||{}),Mr=class{constructor(t,r=es.Ok,n="OK"){this.headers=t.headers||new an,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},lu=class e extends Mr{constructor(t={}){super(t),this.type=Hn.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ji=class e extends Mr{constructor(t={}){super(t),this.type=Hn.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Xi=class extends Mr{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},es=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(es||{});function au(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var du=(()=>{let t=class t{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Cr)s=n;else{let u;i.headers instanceof an?u=i.headers:u=new an(i.headers);let l;i.params&&(i.params instanceof Rt?l=i.params:l=new Rt({fromObject:i.params})),s=new Cr(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=w(s).pipe(rt(u=>this.handler.handle(u)));if(n instanceof Cr||i.observe==="events")return a;let c=a.pipe(he(u=>u instanceof Ji));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 Rt().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,au(i,o))}post(n,o,i={}){return this.request("POST",n,au(i,o))}put(n,o,i={}){return this.request("PUT",n,au(i,o))}};t.\u0275fac=function(o){return new(o||t)(y(br))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function fp(e,t){return t(e)}function TE(e,t){return(r,n)=>t.intercept(r,{handle:o=>e(o,n)})}function SE(e,t,r){return(n,o)=>$e(r,()=>t(n,i=>e(i,o)))}var xE=new I(""),fu=new I(""),AE=new I(""),_E=new I("");function NE(){let e=null;return(t,r)=>{e===null&&(e=(p(xE,{optional:!0})??[]).reduceRight(TE,fp));let n=p(nn),o=n.add();return e(t,r).pipe(It(()=>n.remove(o)))}}var up=(()=>{let t=class t extends br{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=p(nn);let i=p(_E,{optional:!0});this.backend=i??n}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(fu),...this.injector.get(AE,[])]));this.chain=i.reduceRight((s,a)=>SE(s,a,this.injector),fp)}let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(It(()=>this.pendingTasks.remove(o)))}};t.\u0275fac=function(o){return new(o||t)(y(Ki),y(ue))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();var RE=/^\)\]\}',?\n/;function OE(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var lp=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?G(o.\u0275loadImpl()):w(null)).pipe(pe(()=>new F(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((C,E)=>a.setRequestHeader(C,E.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let C=n.detectContentTypeHeader();C!==null&&a.setRequestHeader("Content-Type",C)}if(n.responseType){let C=n.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let C=a.statusText||"OK",E=new an(a.getAllResponseHeaders()),ae=OE(a)||n.url;return u=new lu({headers:E,status:a.status,statusText:C,url:ae}),u},d=()=>{let{headers:C,status:E,statusText:ae,url:re}=l(),q=null;E!==es.NoContent&&(q=typeof a.response>"u"?a.responseText:a.response),E===0&&(E=q?es.Ok:0);let ze=E>=200&&E<300;if(n.responseType==="json"&&typeof q=="string"){let Ie=q;q=q.replace(RE,"");try{q=q!==""?JSON.parse(q):null}catch(vt){q=Ie,ze&&(ze=!1,q={error:vt,text:q})}}ze?(s.next(new Ji({body:q,headers:C,status:E,statusText:ae,url:re||void 0})),s.complete()):s.error(new Xi({error:q,headers:C,status:E,statusText:ae,url:re||void 0}))},f=C=>{let{url:E}=l(),ae=new Xi({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:E||void 0});s.error(ae)},h=!1,g=C=>{h||(s.next(l()),h=!0);let E={type:Hn.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(E.total=C.total),n.responseType==="text"&&a.responseText&&(E.partialText=a.responseText),s.next(E)},S=C=>{let E={type:Hn.UploadProgress,loaded:C.loaded};C.lengthComputable&&(E.total=C.total),s.next(E)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",S)),a.send(c),s.next({type:Hn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",S)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(o){return new(o||t)(y(Un))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),hp=new I(""),PE="XSRF-TOKEN",FE=new I("",{providedIn:"root",factory:()=>PE}),kE="X-XSRF-TOKEN",LE=new I("",{providedIn:"root",factory:()=>kE}),ts=class{},jE=(()=>{let t=class t{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=Zi(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(o){return new(o||t)(y(de),y(Xe),y(FE))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function VE(e,t){let r=e.url.toLowerCase();if(!p(hp)||e.method==="GET"||e.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return t(e);let n=p(ts).getToken(),o=p(LE);return n!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,n)})),t(e)}var pp=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(pp||{});function $E(e,t){return{\u0275kind:e,\u0275providers:t}}function UE(...e){let t=[du,lp,up,{provide:br,useExisting:up},{provide:Ki,useExisting:lp},{provide:fu,useValue:VE,multi:!0},{provide:hp,useValue:!0},{provide:ts,useClass:jE}];for(let r of e)t.push(...r.\u0275providers);return di(t)}var dp=new I("");function BE(){return $E(pp.LegacyInterceptors,[{provide:dp,useFactory:NE},{provide:fu,useExisting:dp,multi:!0}])}var jN=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[UE(BE())]});let e=t;return e})();var gu=class extends qi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},mu=class e extends gu{static makeCurrent(){Zh(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=zE();return r==null?null:qE(r)}resetBaseElement(){Tr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Zi(document.cookie,t)}},Tr=null;function zE(){return Tr=Tr||document.querySelector("base"),Tr?Tr.getAttribute("href"):null}function qE(e){return new URL(e,document.baseURI).pathname}var vu=class{addToWindow(t){ee.getAngularTestability=(n,o=!0)=>{let i=t.findTestabilityInTree(n,o);if(i==null)throw new v(5103,!1);return i},ee.getAllAngularTestabilities=()=>t.getAllTestabilities(),ee.getAllAngularRootElements=()=>t.getAllRootElements();let r=n=>{let o=ee.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&n()};o.forEach(a=>{a.whenStable(s)})};ee.frameworkStabilizers||(ee.frameworkStabilizers=[]),ee.frameworkStabilizers.push(r)}findTestabilityInTree(t,r,n){if(r==null)return null;let o=t.getTestability(r);return o??(n?sn().isShadowRoot(r)?this.findTestabilityInTree(t,r.host,!0):this.findTestabilityInTree(t,r.parentElement,!0):null)}},GE=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),yu=new I(""),yp=(()=>{let t=class t{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 v(5101,!1);return this._eventNameToPlugin.set(n,o),o}};t.\u0275fac=function(o){return new(o||t)(y(yu),y(B))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),ns=class{constructor(t){this._doc=t}},hu="ng-app-id",Dp=(()=>{let t=class t{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=Yi(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[${hu}="${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(hu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(hu,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)}};t.\u0275fac=function(o){return new(o||t)(y(de),y(wi),y(Dc,8),y(Xe))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),pu={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/MathML/"},wu=/%COMP%/g,wp="%COMP%",WE=`_nghost-${wp}`,ZE=`_ngcontent-${wp}`,YE=!0,QE=new I("",{providedIn:"root",factory:()=>YE});function KE(e){return ZE.replace(wu,e)}function JE(e){return WE.replace(wu,e)}function Ip(e,t){return t.map(r=>r.replace(wu,e))}var gp=(()=>{let t=class t{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=Yi(c),this.defaultRenderer=new Sr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ze.ShadowDom&&(o=Y(m({},o),{encapsulation:Ze.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof rs?i.applyToHost(n):i instanceof xr&&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,f=this.platformIsServer;switch(o.encapsulation){case Ze.Emulated:s=new rs(u,l,o,this.appId,d,a,c,f);break;case Ze.ShadowDom:return new Du(u,l,n,o,a,c,this.nonce,f);default:s=new xr(u,l,o,d,a,c,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(y(yp),y(Dp),y(wi),y(QE),y(de),y(Xe),y(B),y(Dc))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Sr=class{constructor(t,r,n,o){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(pu[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(mp(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(mp(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,o){if(o){r=o+":"+r;let i=pu[o];i?t.setAttributeNS(i,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let o=pu[n];o?t.removeAttributeNS(o,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,o){o&(st.DashCase|st.Important)?t.style.setProperty(r,n,o&st.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&st.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=sn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function mp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Du=class extends Sr{constructor(t,r,n,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Ip(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},xr=class extends Sr{constructor(t,r,n,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?Ip(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},rs=class extends xr{constructor(t,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(t,r,n,i,s,a,c,u),this.contentAttr=KE(u),this.hostAttr=JE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},XE=(()=>{let t=class t extends ns{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)}};t.\u0275fac=function(o){return new(o||t)(y(de))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),vp=["alt","control","meta","shift"],eC={"\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"},tC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},nC=(()=>{let t=class t extends ns{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sn().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=t._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),a="code."),vp.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=eC[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"),vp.forEach(a=>{if(a!==i){let c=tC[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{t.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(o){return new(o||t)(y(de))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function rC(){mu.makeCurrent()}function oC(){return new Ke}function iC(){return jf(document),document}var sC=[{provide:Xe,useValue:su},{provide:yc,useValue:rC,multi:!0},{provide:de,useFactory:iC,deps:[]}],nR=qc(jh,"browser",sC),aC=new I(""),cC=[{provide:wr,useClass:vu,deps:[]},{provide:Bc,useClass:Ni,deps:[B,Ri,wr]},{provide:Ni,useClass:Ni,deps:[B,Ri,wr]}],uC=[{provide:fi,useValue:"root"},{provide:Ke,useFactory:oC,deps:[]},{provide:yu,useClass:XE,multi:!0,deps:[de,B,Xe]},{provide:yu,useClass:nC,multi:!0,deps:[de]},gp,Dp,yp,{provide:dr,useExisting:gp},{provide:Un,useClass:GE,deps:[]},[]],rR=(()=>{let t=class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:wi,useValue:n.appId}]}}};t.\u0275fac=function(o){return new(o||t)(y(aC,12))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({providers:[...uC,...cC],imports:[np,Vh]});let e=t;return e})();var Ep=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(o){return new(o||t)(y(de))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var T="primary",Hr=Symbol("RouteTitle"),Mu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Zn(e){return new Mu(e)}function dC(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[i]===o)}else return e===t}function Op(e){return e.length>0?e[e.length-1]:null}function kt(e){return js(e)?e:$n(e)?G(Promise.resolve(e)):w(e)}var hC={exact:Fp,subset:kp},Pp={exact:pC,subset:gC,ignored:()=>!0};function Cp(e,t,r){return hC[r.paths](e.root,t.root,r.matrixParams)&&Pp[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function pC(e,t){return et(e,t)}function Fp(e,t,r){if(!un(e.segments,t.segments)||!ss(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!Fp(e.children[n],t.children[n],r))return!1;return!0}function gC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>Rp(e[r],t[r]))}function kp(e,t,r){return Lp(e,t,t.segments,r)}function Lp(e,t,r,n){if(e.segments.length>r.length){let o=e.segments.slice(0,r.length);return!(!un(o,r)||t.hasChildren()||!ss(o,r,n))}else if(e.segments.length===r.length){if(!un(e.segments,r)||!ss(e.segments,r,n))return!1;for(let o in t.children)if(!e.children[o]||!kp(e.children[o],t.children[o],n))return!1;return!0}else{let o=r.slice(0,e.segments.length),i=r.slice(e.segments.length);return!un(e.segments,o)||!ss(e.segments,o,n)||!e.children[T]?!1:Lp(e.children[T],t,i,n)}}function ss(e,t,r){return t.every((n,o)=>Pp[r](e[o].parameters,n.parameters))}var Ot=class{constructor(t=new V([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Zn(this.queryParams),this._queryParamMap}toString(){return yC.serialize(this)}},V=class{constructor(t,r){this.segments=t,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 as(this)}},cn=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Zn(this.parameters),this._parameterMap}toString(){return Vp(this)}};function mC(e,t){return un(e,t)&&e.every((r,n)=>et(r.parameters,t[n].parameters))}function un(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function vC(e,t){let r=[];return Object.entries(e.children).forEach(([n,o])=>{n===T&&(r=r.concat(t(o,n)))}),Object.entries(e.children).forEach(([n,o])=>{n!==T&&(r=r.concat(t(o,n)))}),r}var zr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>new Fr,providedIn:"root"});let e=t;return e})(),Fr=class{parse(t){let r=new xu(t);return new Ot(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${Ar(t.root,!0)}`,n=IC(t.queryParams),o=typeof t.fragment=="string"?`#${DC(t.fragment)}`:"";return`${r}${n}${o}`}},yC=new Fr;function as(e){return e.segments.map(t=>Vp(t)).join("/")}function Ar(e,t){if(!e.hasChildren())return as(e);if(t){let r=e.children[T]?Ar(e.children[T],!1):"",n=[];return Object.entries(e.children).forEach(([o,i])=>{o!==T&&n.push(`${o}:${Ar(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=vC(e,(n,o)=>o===T?[Ar(e.children[T],!1)]:[`${o}:${Ar(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[T]!=null?`${as(e)}/${r[0]}`:`${as(e)}/(${r.join("//")})`}}function jp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function os(e){return jp(e).replace(/%3B/gi,";")}function DC(e){return encodeURI(e)}function Su(e){return jp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cs(e){return decodeURIComponent(e)}function bp(e){return cs(e.replace(/\+/g,"%20"))}function Vp(e){return`${Su(e.path)}${wC(e.parameters)}`}function wC(e){return Object.entries(e).map(([t,r])=>`;${Su(t)}=${Su(r)}`).join("")}function IC(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(o=>`${os(r)}=${os(o)}`).join("&"):`${os(r)}=${os(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var EC=/^[^\/()?;#]+/;function Iu(e){let t=e.match(EC);return t?t[0]:""}var CC=/^[^\/()?;=#]+/;function bC(e){let t=e.match(CC);return t?t[0]:""}var MC=/^[^=?&#]+/;function TC(e){let t=e.match(MC);return t?t[0]:""}var SC=/^[^&#]+/;function xC(e){let t=e.match(SC);return t?t[0]:""}var xu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[T]=new V(t,r)),n}parseSegment(){let t=Iu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new cn(cs(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=bC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Iu(this.remaining);o&&(n=o,this.capture(n))}t[cs(r)]=cs(n)}parseQueryParam(t){let r=TC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=xC(this.remaining);s&&(n=s,this.capture(n))}let o=bp(r),i=bp(n);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Iu(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=T);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[T]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function $p(e){return e.segments.length>0?new V([],{[T]:e}):e}function Up(e){let t={};for(let[n,o]of Object.entries(e.children)){let i=Up(o);if(n===T&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[n]=i)}let r=new V(e.segments,t);return AC(r)}function AC(e){if(e.numberOfChildren===1&&e.children[T]){let t=e.children[T];return new V(e.segments.concat(t.segments),t.children)}return e}function Yn(e){return e instanceof Ot}function _C(e,t,r=null,n=null){let o=Bp(e);return Hp(o,t,r,n)}function Bp(e){let t;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===e&&(t=a),a}let n=r(e.root),o=$p(n);return t??o}function Hp(e,t,r,n){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Eu(o,o,o,r,n);let i=NC(t);if(i.toRoot())return Eu(o,o,new V([],{}),r,n);let s=RC(i,o,e),a=s.processChildren?Rr(s.segmentGroup,s.index,i.commands):qp(s.segmentGroup,s.index,i.commands);return Eu(o,s.segmentGroup,a,r,n)}function us(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function kr(e){return typeof e=="object"&&e!=null&&e.outlets}function Eu(e,t,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=r:s=zp(e,t,r);let a=$p(Up(s));return new Ot(a,i,o)}function zp(e,t,r){let n={};return Object.entries(e.children).forEach(([o,i])=>{i===t?n[o]=r:n[o]=zp(i,t,r)}),new V(e.segments,n)}var ls=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&us(n[0]))throw new v(4003,!1);let o=n.find(kr);if(o&&o!==Op(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function NC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ls(!0,0,e);let t=0,r=!1,n=e.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===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ls(r,t,n)}var Gn=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function RC(e,t,r){if(e.isAbsolute)return new Gn(t,!0,0);if(!r)return new Gn(t,!1,NaN);if(r.parent===null)return new Gn(r,!0,0);let n=us(e.commands[0])?0:1,o=r.segments.length-1+n;return OC(r,o,e.numberOfDoubleDots)}function OC(e,t,r){let n=e,o=t,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new v(4005,!1);o=n.segments.length}return new Gn(n,!1,o-i)}function PC(e){return kr(e[0])?e[0].outlets:{[T]:e}}function qp(e,t,r){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Rr(e,t,r);let n=FC(e,t,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==T)&&e.children[T]&&e.numberOfChildren===1&&e.children[T].segments.length===0){let i=Rr(e.children[T],t,r);return new V(e.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=qp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new V(e.segments,o)}}function FC(e,t,r){let n=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=e.segments[o],a=r[n];if(kr(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Tp(c,u,s))return i;n+=2}else{if(!Tp(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Au(e,t,r){let n=e.segments.slice(0,t),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=Au(new V([],{}),0,n))}),t}function Mp(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function Tp(e,t,r){return e==r.path&&et(t,r.parameters)}var Or="imperative",ne=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ne||{}),Oe=class{constructor(t,r){this.id=t,this.url=r}},Qn=class extends Oe{constructor(t,r,n="imperative",o=null){super(t,r),this.type=ne.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},He=class extends Oe{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=ne.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Se=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Se||{}),ds=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ds||{}),Pt=class extends Oe{constructor(t,r,n,o){super(t,r),this.reason=n,this.code=o,this.type=ne.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ft=class extends Oe{constructor(t,r,n,o){super(t,r),this.reason=n,this.code=o,this.type=ne.NavigationSkipped}},Lr=class extends Oe{constructor(t,r,n,o){super(t,r),this.error=n,this.target=o,this.type=ne.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fs=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_u=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nu=class extends Oe{constructor(t,r,n,o,i){super(t,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=ne.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ru=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ou=class extends Oe{constructor(t,r,n,o){super(t,r),this.urlAfterRedirects=n,this.state=o,this.type=ne.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pu=class{constructor(t){this.route=t,this.type=ne.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fu=class{constructor(t){this.route=t,this.type=ne.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ku=class{constructor(t){this.snapshot=t,this.type=ne.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lu=class{constructor(t){this.snapshot=t,this.type=ne.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ju=class{constructor(t){this.snapshot=t,this.type=ne.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vu=class{constructor(t){this.snapshot=t,this.type=ne.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hs=class{constructor(t,r,n){this.routerEvent=t,this.position=r,this.anchor=n,this.type=ne.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},jr=class{},Vr=class{constructor(t){this.url=t}};var $u=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new qr,this.attachRef=null}},qr=(()=>{let t=class t{constructor(){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 $u,this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ps=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=Uu(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=Uu(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=Bu(t,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Bu(t,this._root).map(r=>r.value)}};function Uu(e,t){if(e===t.value)return t;for(let r of t.children){let n=Uu(e,r);if(n)return n}return null}function Bu(e,t){if(e===t.value)return[t];for(let r of t.children){let n=Bu(e,r);if(n.length)return n.unshift(t),n}return[]}var Te=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function qn(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var gs=class extends ps{constructor(t,r){super(t),this.snapshot=r,Ju(this,t)}toString(){return this.snapshot.toString()}};function Gp(e){let t=LC(e),r=new oe([new cn("",{})]),n=new oe({}),o=new oe({}),i=new oe({}),s=new oe(""),a=new ln(r,n,i,s,o,T,e,t.root);return a.snapshot=t.root,new gs(new Te(a,[]),t)}function LC(e){let t={},r={},n={},o="",i=new $r([],t,n,o,r,T,e,null,{});return new ms("",new Te(i,[]))}var ln=class{constructor(t,r,n,o,i,s,a,c){this.urlSubject=t,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[Hr]))??w(void 0),this.url=t,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(t=>Zn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(t=>Zn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ku(e,t,r="emptyOnly"){let n,{routeConfig:o}=e;return t!==null&&(r==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:n={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&Zp(o)&&(n.resolve[Hr]=o.title),n}var $r=class{get title(){return this.data?.[Hr]}constructor(t,r,n,o,i,s,a,c,u){this.url=t,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??=Zn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Zn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},ms=class extends ps{constructor(t,r){super(r),this.url=t,Ju(this,r)}toString(){return Wp(this._root)}};function Ju(e,t){t.value._routerState=e,t.children.forEach(r=>Ju(e,r))}function Wp(e){let t=e.children.length>0?` { ${e.children.map(Wp).join(", ")} } `:"";return`${e.value}${t}`}function Cu(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,et(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),et(t.params,r.params)||e.paramsSubject.next(r.params),fC(t.url,r.url)||e.urlSubject.next(r.url),et(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Hu(e,t){let r=et(e.params,t.params)&&mC(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||Hu(e.parent,t.parent))}function Zp(e){return typeof e.title=="string"||e.title===null}var jC=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=T,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(qr),this.location=p(_t),this.changeDetector=p(on),this.environmentInjector=p(ue),this.inputBinder=p(Is,{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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(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 v(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new zu(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=en({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ln]});let e=t;return e})(),zu=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===ln?this.route:t===qr?this.childContexts:this.parent.get(t,r)}},Is=new I(""),Sp=(()=>{let t=class t{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=tr([o.queryParams,o.params,o.data]).pipe(pe(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?w(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(n);return}let a=$h(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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function VC(e,t,r){let n=Ur(e,t._root,r?r._root:void 0);return new gs(n,t)}function Ur(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let o=$C(e,t,r);return new Te(n,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Ur(e,a)),s}}let n=UC(t.value),o=t.children.map(i=>Ur(e,i));return new Te(n,o)}}function $C(e,t,r){return t.children.map(n=>{for(let o of r.children)if(e.shouldReuseRoute(n.value,o.value.snapshot))return Ur(e,n,o);return Ur(e,n)})}function UC(e){return new ln(new oe(e.url),new oe(e.params),new oe(e.queryParams),new oe(e.fragment),new oe(e.data),e.outlet,e.component,e)}var Yp="ngNavigationCancelingError";function Qp(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Yn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Kp(!1,Se.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Kp(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[Yp]=!0,r.cancellationCode=t,r}function BC(e){return Jp(e)&&Yn(e.url)}function Jp(e){return!!e&&e[Yp]}var HC=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=Ud({type:t,selectors:[["ng-component"]],standalone:!0,features:[xh],decls:1,vars:0,template:function(o,i){o&1&&$c(0,"router-outlet")},dependencies:[jC],encapsulation:2});let e=t;return e})();function zC(e,t){return e.providers&&!e._injector&&(e._injector=Ai(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Xu(e){let t=e.children&&e.children.map(Xu),r=t?Y(m({},e),{children:t}):m({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==T&&(r.component=HC),r}function tt(e){return e.outlet||T}function qC(e,t){let r=e.filter(n=>tt(n)===t);return r.push(...e.filter(n=>tt(n)!==t)),r}function Gr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var GC=(e,t,r,n)=>A(o=>(new qu(t,o.targetRouterState,o.currentRouterState,r,n).activate(e),o)),qu=class{constructor(t,r,n,o,i){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),Cu(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let o=qn(r);t.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(t,r,n){let o=t.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),o=n&&t.value.component?n.children:r,i=qn(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),o=n&&t.value.component?n.children:r,i=qn(t);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(t,r,n){let o=qn(r);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new Vu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Lu(t.value.snapshot))}activateRoutes(t,r,n){let o=t.value,i=r?r.value:null;if(Cu(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,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),Cu(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Gr(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},vs=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Wn=class{constructor(t,r){this.component=t,this.route=r}};function WC(e,t,r){let n=e._root,o=t?t._root:null;return _r(n,o,r,[n.value])}function ZC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Jn(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!xd(e)?e:t.get(e):n}function _r(e,t,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=qn(t);return e.children.forEach(s=>{YC(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Pr(a,r.getContext(s),o)),o}function YC(e,t,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=QC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new vs(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?_r(e,t,a?a.children:null,n,o):_r(e,t,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Pr(t,a,o),o.canActivateChecks.push(new vs(n)),i.component?_r(e,null,a?a.children:null,n,o):_r(e,null,r,n,o);return o}function QC(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!un(e.url,t.url);case"pathParamsOrQueryParamsChange":return!un(e.url,t.url)||!et(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hu(e,t)||!et(e.queryParams,t.queryParams);case"paramsChange":default:return!Hu(e,t)}}function Pr(e,t,r){let n=qn(e),o=e.value;Object.entries(n).forEach(([i,s])=>{o.component?t?Pr(s,t.children.getContext(i),r):Pr(s,null,r):Pr(s,t,r)}),o.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Wn(t.outlet.component,o)):r.canDeactivateChecks.push(new Wn(null,o)):r.canDeactivateChecks.push(new Wn(null,o))}function Wr(e){return typeof e=="function"}function KC(e){return typeof e=="boolean"}function JC(e){return e&&Wr(e.canLoad)}function XC(e){return e&&Wr(e.canActivate)}function eb(e){return e&&Wr(e.canActivateChild)}function tb(e){return e&&Wr(e.canDeactivate)}function nb(e){return e&&Wr(e.canMatch)}function Xp(e){return e instanceof nt||e?.name==="EmptyError"}var is=Symbol("INITIAL_VALUE");function Kn(){return pe(e=>tr(e.map(t=>t.pipe(ot(1),Bs(is)))).pipe(A(t=>{for(let r of t)if(r!==!0){if(r===is)return is;if(r===!1||r instanceof Ot)return r}return!0}),he(t=>t!==is),ot(1)))}function rb(e,t){return K(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?w(Y(m({},r),{guardsResult:!0})):ob(s,n,o,e).pipe(K(a=>a&&KC(a)?ib(n,i,e,t):w(a)),A(a=>Y(m({},r),{guardsResult:a})))})}function ob(e,t,r,n){return G(e).pipe(K(o=>lb(o.component,o.route,r,t,n)),qe(o=>o!==!0,!0))}function ib(e,t,r,n){return G(t).pipe(rt(o=>wn(ab(o.route.parent,n),sb(o.route,n),ub(e,o.path,r),cb(e,o.route,r))),qe(o=>o!==!0,!0))}function sb(e,t){return e!==null&&t&&t(new ju(e)),w(!0)}function ab(e,t){return e!==null&&t&&t(new ku(e)),w(!0)}function cb(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return w(!0);let o=n.map(i=>Co(()=>{let s=Gr(t)??r,a=Jn(i,s),c=XC(a)?a.canActivate(t,e):$e(s,()=>a(t,e));return kt(c).pipe(qe())}));return w(o).pipe(Kn())}function ub(e,t,r){let n=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>ZC(s)).filter(s=>s!==null).map(s=>Co(()=>{let a=s.guards.map(c=>{let u=Gr(s.node)??r,l=Jn(c,u),d=eb(l)?l.canActivateChild(n,e):$e(u,()=>l(n,e));return kt(d).pipe(qe())});return w(a).pipe(Kn())}));return w(i).pipe(Kn())}function lb(e,t,r,n,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return w(!0);let s=i.map(a=>{let c=Gr(t)??o,u=Jn(a,c),l=tb(u)?u.canDeactivate(e,t,r,n):$e(c,()=>u(e,t,r,n));return kt(l).pipe(qe())});return w(s).pipe(Kn())}function db(e,t,r,n){let o=t.canLoad;if(o===void 0||o.length===0)return w(!0);let i=o.map(s=>{let a=Jn(s,e),c=JC(a)?a.canLoad(t,r):$e(e,()=>a(t,r));return kt(c)});return w(i).pipe(Kn(),eg(n))}function eg(e){return Os(X(t=>{if(Yn(t))throw Qp(e,t)}),A(t=>t===!0))}function fb(e,t,r,n){let o=t.canMatch;if(!o||o.length===0)return w(!0);let i=o.map(s=>{let a=Jn(s,e),c=nb(a)?a.canMatch(t,r):$e(e,()=>a(t,r));return kt(c)});return w(i).pipe(Kn(),eg(n))}var Br=class{constructor(t){this.segmentGroup=t||null}},ys=class extends Error{constructor(t){super(),this.urlTree=t}};function zn(e){return Dn(new Br(e))}function hb(e){return Dn(new v(4e3,!1))}function pb(e){return Dn(Kp(!1,Se.GuardRejected))}var Gu=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return w(n);if(o.numberOfChildren>1||!o.children[T])return hb(t.redirectTo);o=o.children[T]}}applyRedirectCommands(t,r,n){let o=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new ys(o);return o}applyRedirectCreateUrlTree(t,r,n,o){let i=this.createSegmentGroup(t,r.root,n,o);return new Ot(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i.startsWith(":")){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(t,r,n,o){let i=this.createSegments(t,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,n,o)}),new V(i,s)}createSegments(t,r,n,o){return r.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,n))}findPosParam(t,r,n){let o=n[r.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(t,r){let n=0;for(let o of r){if(o.path===t.path)return r.splice(n),o;n++}return t}},Wu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gb(e,t,r,n,o){let i=el(e,t,r);return i.matched?(n=zC(t,n),fb(n,t,r,o).pipe(A(s=>s===!0?i:m({},Wu)))):w(i)}function el(e,t,r){if(t.path==="**")return mb(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?m({},Wu):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(t.matcher||dC)(r,e,t);if(!o)return m({},Wu);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 mb(e){return{matched:!0,parameters:e.length>0?Op(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function xp(e,t,r,n){return r.length>0&&Db(e,r,n)?{segmentGroup:new V(t,yb(n,new V(r,e.children))),slicedSegments:[]}:r.length===0&&wb(e,r,n)?{segmentGroup:new V(e.segments,vb(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new V(e.segments,e.children),slicedSegments:r}}function vb(e,t,r,n){let o={};for(let i of r)if(Es(e,t,i)&&!n[tt(i)]){let s=new V([],{});o[tt(i)]=s}return m(m({},n),o)}function yb(e,t){let r={};r[T]=t;for(let n of e)if(n.path===""&&tt(n)!==T){let o=new V([],{});r[tt(n)]=o}return r}function Db(e,t,r){return r.some(n=>Es(e,t,n)&&tt(n)!==T)}function wb(e,t,r){return r.some(n=>Es(e,t,n))}function Es(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function Ib(e,t,r,n){return tt(e)!==n&&(n===T||!Es(t,r,e))?!1:el(t,e,r).matched}function Eb(e,t,r){return t.length===0&&!e.children[r]}var Zu=class{};function Cb(e,t,r,n,o,i,s="emptyOnly"){return new Yu(e,t,r,n,o,s,i).recognize()}var bb=31,Yu=class{constructor(t,r,n,o,i,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Gu(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=xp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(A(r=>{let n=new $r([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,{},T,this.rootComponentType,null,{}),o=new Te(n,r),i=new ms("",o),s=_C(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,T).pipe(xe(n=>{if(n instanceof ys)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Br?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,o=Ku(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),t.children.forEach(i=>this.inheritParamsAndData(i,n))}processSegmentGroup(t,r,n,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,o,!0).pipe(A(i=>i instanceof Te?[i]:[]))}processChildren(t,r,n){let o=[];for(let i of Object.keys(n.children))i==="primary"?o.unshift(i):o.push(i);return G(o).pipe(rt(i=>{let s=n.children[i],a=qC(r,i);return this.processSegmentGroup(t,a,s,i)}),Us((i,s)=>(i.push(...s),i)),wt(null),$s(),K(i=>{if(i===null)return zn(n);let s=tg(i);return Mb(s),w(s)}))}processSegment(t,r,n,o,i,s){return G(r).pipe(rt(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,o,i,s).pipe(xe(c=>{if(c instanceof Br)return w(null);throw c}))),qe(a=>!!a),xe(a=>{if(Xp(a))return Eb(n,o,i)?w(new Zu):zn(n);throw a}))}processSegmentAgainstRoute(t,r,n,o,i,s,a){return Ib(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,n,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,r,n,i,s):zn(o):zn(o)}expandSegmentAgainstRouteUsingRedirect(t,r,n,o,i,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=el(r,o,i);if(!a)return zn(r);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>bb&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,u);return this.applyRedirects.lineralizeSegments(o,d).pipe(K(f=>this.processSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,o,i){let s=gb(r,n,o,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(pe(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,o).pipe(pe(({routes:c})=>{let u=n._loadedInjector??t,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new $r(l,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Sb(n),tt(n),n.component??n._loadedComponent??null,n,xb(n)),{segmentGroup:g,slicedSegments:S}=xp(r,l,d,c);if(S.length===0&&g.hasChildren())return this.processChildren(u,c,g).pipe(A(E=>E===null?null:new Te(h,E)));if(c.length===0&&S.length===0)return w(new Te(h,[]));let C=tt(n)===i;return this.processSegment(u,c,g,S,C?T:i,!0).pipe(A(E=>new Te(h,E instanceof Te?[E]:[])))}))):zn(r)))}getChildConfig(t,r,n){return r.children?w({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?w({routes:r._loadedRoutes,injector:r._loadedInjector}):db(t,r,n,this.urlSerializer).pipe(K(o=>o?this.configLoader.loadChildren(t,r).pipe(X(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):pb(r))):w({routes:[],injector:t})}};function Mb(e){e.sort((t,r)=>t.value.outlet===T?-1:r.value.outlet===T?1:t.value.outlet.localeCompare(r.value.outlet))}function Tb(e){let t=e.value.routeConfig;return t&&t.path===""}function tg(e){let t=[],r=new Set;for(let n of e){if(!Tb(n)){t.push(n);continue}let o=t.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):t.push(n)}for(let n of r){let o=tg(n.children);t.push(new Te(n.value,o))}return t.filter(n=>!r.has(n))}function Sb(e){return e.data||{}}function xb(e){return e.resolve||{}}function Ab(e,t,r,n,o,i){return K(s=>Cb(e,t,r,n,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>Y(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function _b(e,t){return K(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return w(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 ng(c))s.add(u);let a=0;return G(s).pipe(rt(c=>i.has(c)?Nb(c,n,e,t):(c.data=Ku(c,c.parent,e).resolve,w(void 0))),X(()=>a++),In(1),K(c=>a===s.size?w(r):Ee))})}function ng(e){let t=e.children.map(r=>ng(r)).flat();return[e,...t]}function Nb(e,t,r,n){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Zp(o)&&(i[Hr]=o.title),Rb(i,e,t,n).pipe(A(s=>(e._resolvedData=s,e.data=Ku(e,e.parent,r).resolve,null)))}function Rb(e,t,r,n){let o=Tu(e);if(o.length===0)return w({});let i={};return G(o).pipe(K(s=>Ob(e[s],t,r,n).pipe(qe(),X(a=>{i[s]=a}))),In(1),Vs(i),xe(s=>Xp(s)?Ee:Dn(s)))}function Ob(e,t,r,n){let o=Gr(t)??n,i=Jn(e,o),s=i.resolve?i.resolve(t,r):$e(o,()=>i(t,r));return kt(s)}function bu(e){return pe(t=>{let r=e(t);return r?G(r).pipe(A(()=>t)):w(t)})}var rg=(()=>{let t=class t{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===T);return o}getResolvedTitleForRoute(n){return n.data[Hr]}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Pb),providedIn:"root"});let e=t;return e})(),Pb=(()=>{let t=class t extends rg{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};t.\u0275fac=function(o){return new(o||t)(y(Ep))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Zr=new I("",{providedIn:"root",factory:()=>({})}),Ds=new I(""),tl=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Fi)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return w(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=kt(n.loadComponent()).pipe(A(og),X(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),It(()=>{this.componentLoaders.delete(n)})),i=new vn(o,()=>new ce).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 w({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=Fb(o,this.compiler,n,this.onLoadEndListener).pipe(It(()=>{this.childrenLoaders.delete(o)})),a=new vn(s,()=>new ce).pipe(mn());return this.childrenLoaders.set(o,a),a}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fb(e,t,r,n){return kt(e.loadChildren()).pipe(A(og),K(o=>o instanceof fr||Array.isArray(o)?w(o):G(t.compileModuleAsync(o))),A(o=>{n&&n(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(Ds,[],{optional:!0,self:!0}).flat()),{routes:s.map(Xu),injector:i}}))}function kb(e){return e&&typeof e=="object"&&"default"in e}function og(e){return kb(e)?e.default:e}var nl=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Lb),providedIn:"root"});let e=t;return e})(),Lb=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ig=new I(""),sg=new I("");function jb(e,t,r){let n=e.get(sg),o=e.get(de);return e.get(B).runOutsideAngular(()=>{if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),Vb(e))),{onViewTransitionCreated:c}=n;return c&&$e(e,()=>c({transition:a,from:t,to:r})),s})}function Vb(e){return new Promise(t=>{xi(t,{injector:e})})}var rl=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ce,this.transitionAbortSubject=new ce,this.configLoader=p(tl),this.environmentInjector=p(ue),this.urlSerializer=p(zr),this.rootContexts=p(qr),this.location=p(Bn),this.inputBindingEnabled=p(Is,{optional:!0})!==null,this.titleStrategy=p(rg),this.options=p(Zr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(nl),this.createViewTransition=p(ig,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>w(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Pu(i)),o=i=>this.events.next(new Fu(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(Y(m(m({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new oe({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Or,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(he(s=>s.id!==0),A(s=>Y(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),pe(s=>{let a=!1,c=!1;return w(s).pipe(pe(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Se.SupersededByNewNavigation),Ee;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Y(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 f="";return this.events.next(new Ft(u.id,this.urlSerializer.serialize(u.rawUrl),f,ds.IgnoredSameUrlNavigation)),u.resolve(null),Ee}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return w(u).pipe(pe(f=>{let h=this.transitions?.getValue();return this.events.next(new Qn(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ee:Promise.resolve(f)}),Ab(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),X(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Y(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new fs(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:S,extras:C}=u,E=new Qn(f,this.urlSerializer.serialize(h),g,S);this.events.next(E);let ae=Gp(this.rootComponentType).snapshot;return this.currentTransition=s=Y(m({},u),{targetSnapshot:ae,urlAfterRedirects:h,extras:Y(m({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,w(s)}else{let f="";return this.events.next(new Ft(u.id,this.urlSerializer.serialize(u.extractedUrl),f,ds.IgnoredByUrlHandlingStrategy)),u.resolve(null),Ee}}),X(u=>{let l=new _u(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=s=Y(m({},u),{guards:WC(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),rb(this.environmentInjector,u=>this.events.next(u)),X(u=>{if(s.guardsResult=u.guardsResult,Yn(u.guardsResult))throw Qp(this.urlSerializer,u.guardsResult);let l=new Nu(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),he(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Se.GuardRejected),!1)),bu(u=>{if(u.guards.canActivateChecks.length)return w(u).pipe(X(l=>{let d=new Ru(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),pe(l=>{let d=!1;return w(l).pipe(_b(this.paramsInheritanceStrategy,this.environmentInjector),X({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Se.NoDataFromResolver)}}))}),X(l=>{let d=new Ou(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),bu(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(X(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return tr(l(u.targetSnapshot.root)).pipe(wt(null),ot(1))}),bu(()=>this.afterPreactivation()),pe(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?G(d).pipe(A(()=>s)):w(s)}),A(u=>{let l=VC(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Y(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),X(()=>{this.events.next(new jr)}),GC(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ot(1),X({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new He(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Mo(this.transitionAbortSubject.pipe(X(u=>{throw u}))),It(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Se.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),xe(u=>{if(c=!0,Jp(u))this.events.next(new Pt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),BC(u)?this.events.next(new Vr(u.url)):s.resolve(!1);else{this.events.next(new Lr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Ee}))}))}cancelNavigationTransition(n,o,i){let s=new Pt(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}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function $b(e){return e!==Or}var Ub=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Bb),providedIn:"root"});let e=t;return e})(),Qu=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},Bb=(()=>{let t=class t extends Qu{};t.\u0275fac=(()=>{let n;return function(i){return(n||(n=gc(t)))(i||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ag=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:()=>p(Hb),providedIn:"root"});let e=t;return e})(),Hb=(()=>{let t=class t extends ag{constructor(){super(...arguments),this.location=p(Bn),this.urlSerializer=p(zr),this.options=p(Zr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(nl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ot,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Gp(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 Qn)this.stateMemento=this.createStateMemento();else if(n instanceof Ft)this.rawUrlTree=o.initialUrl;else if(n instanceof fs){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof jr?(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 Pt&&(n.code===Se.GuardRejected||n.code===Se.NoDataFromResolver)?this.restoreHistory(o):n instanceof Lr?this.restoreHistory(o,!0):n instanceof He&&(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}}};t.\u0275fac=(()=>{let n;return function(i){return(n||(n=gc(t)))(i||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Nr=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Nr||{});function cg(e,t){e.events.pipe(he(r=>r instanceof He||r instanceof Pt||r instanceof Lr||r instanceof Ft),A(r=>r instanceof He||r instanceof Ft?Nr.COMPLETE:(r instanceof Pt?r.code===Se.Redirect||r.code===Se.SupersededByNewNavigation:!1)?Nr.REDIRECTING:Nr.FAILED),he(r=>r!==Nr.REDIRECTING),ot(1)).subscribe(()=>{t()})}function zb(e){throw e}var qb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},mt=(()=>{let t=class t{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.isNgZoneEnabled=!1,this.console=p(_i),this.stateManager=p(ag),this.options=p(Zr,{optional:!0})||{},this.pendingTasks=p(nn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(rl),this.urlSerializer=p(zr),this.location=p(Bn),this.urlHandlingStrategy=p(nl),this._events=new ce,this.errorHandler=this.options.errorHandler||zb,this.navigated=!1,this.routeReuseStrategy=p(Ub),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Ds,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Is,{optional:!0}),this.eventsSubscription=new W,this.isNgZoneEnabled=p(B)instanceof B&&B.isInAngularZone(),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 Pt&&o.code!==Se.Redirect&&o.code!==Se.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof He)this.navigated=!0;else if(o instanceof Vr){let a=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),c={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||$b(i.source)};this.scheduleNavigation(a,Or,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Zb(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),Or,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(Xu),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 f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=Bp(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Hp(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=Yn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Or,null,o)}navigate(n,o={skipLocationChange:!1}){return Wb(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({},qb):o===!1?i=m({},Gb):i=o,Yn(n))return Cp(this.currentUrlTree,n,i);let s=this.parseUrl(n);return Cp(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((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return cg(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(f=>Promise.reject(f))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Wb(e){for(let t=0;t{let t=class t{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 ce,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 He&&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:Uf(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})}};t.\u0275fac=function(o){return new(o||t)(z(mt),z(ln),mc("tabindex"),z(Dr),z(dt),z(gt))},t.\u0275dir=en({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&Uc("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&Vc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Le.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ir],skipLocationChange:[Le.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ir],replaceUrl:[Le.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ir],routerLink:"routerLink"},standalone:!0,features:[kc,Ln]});let e=t;return e})(),IR=(()=>{let t=class t{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 ie,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof He&&this.update()})}ngAfterContentInit(){w(this.links.changes,w(null)).pipe(Dt()).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=G(n).pipe(Dt()).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=Yb(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)}};t.\u0275fac=function(o){return new(o||t)(z(mt),z(dt),z(Dr),z(on),z(Ap,8))},t.\u0275dir=en({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&Ch(s,Ap,5),o&2){let a;bh(a=Mh())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ln]});let e=t;return e})();function Yb(e){return!!e.paths}var ws=class{};var Qb=(()=>{let t=class t{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(he(n=>n instanceof He),rt(()=>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=Ai(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 G(i).pipe(Dt())}preloadConfig(n,o){return this.preloadingStrategy.preload(o,()=>{let i;o.loadChildren&&o.canLoad===void 0?i=this.loader.loadChildren(n,o):i=w(null);let s=i.pipe(K(a=>a===null?w(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 G([s,a]).pipe(Dt())}else return s})}};t.\u0275fac=function(o){return new(o||t)(y(mt),y(Fi),y(ue),y(ws),y(tl))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ug=new I(""),Kb=(()=>{let t=class t{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 Qn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof He?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Ft&&n.code===ds.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 hs&&(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(()=>Qr(this,null,function*(){yield new Promise(i=>{setTimeout(()=>{i()}),xi(()=>{i()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new hs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(o){Xf()},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function Jb(e){return e.routerState.root}function Yr(e,t){return{\u0275kind:e,\u0275providers:t}}function Xb(){let e=p(Je);return t=>{let r=e.get(rn);if(t!==r.components[0])return;let n=e.get(mt),o=e.get(lg);e.get(ol)===1&&n.initialNavigation(),e.get(dg,null,O.Optional)?.setUpPreloading(),e.get(ug,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var lg=new I("",{factory:()=>new ce}),ol=new I("",{providedIn:"root",factory:()=>1});function e0(){return Yr(2,[{provide:ol,useValue:0},{provide:Oi,multi:!0,deps:[Je],useFactory:t=>{let r=t.get(Yh,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let o=t.get(mt),i=t.get(lg);cg(o,()=>{n(!0)}),t.get(rl).afterPreactivation=()=>(n(!0),i.closed?w(void 0):i),o.initialNavigation()}))}}])}function t0(){return Yr(3,[{provide:Oi,multi:!0,useFactory:()=>{let t=p(mt);return()=>{t.setUpLocationChangeListener()}}},{provide:ol,useValue:2}])}var dg=new I("");function n0(e){return Yr(0,[{provide:dg,useExisting:Qb},{provide:ws,useExisting:e}])}function r0(){return Yr(8,[Sp,{provide:Is,useExisting:Sp}])}function o0(e){let t=[{provide:ig,useValue:jb},{provide:sg,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return Yr(9,t)}var _p=new I("ROUTER_FORROOT_GUARD"),i0=[Bn,{provide:zr,useClass:Fr},mt,qr,{provide:ln,useFactory:Jb,deps:[mt]},tl,[]],ER=(()=>{let t=class t{constructor(n){}static forRoot(n,o){return{ngModule:t,providers:[i0,[],{provide:Ds,multi:!0,useValue:n},{provide:_p,useFactory:u0,deps:[[mt,new li,new Ja]]},{provide:Zr,useValue:o||{}},o?.useHash?a0():c0(),s0(),o?.preloadingStrategy?n0(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?l0(o):[],o?.bindToComponentInputs?r0().\u0275providers:[],o?.enableViewTransitions?o0().\u0275providers:[],d0()]}}static forChild(n){return{ngModule:t,providers:[{provide:Ds,multi:!0,useValue:n}]}}};t.\u0275fac=function(o){return new(o||t)(y(_p,8))},t.\u0275mod=ct({type:t}),t.\u0275inj=at({});let e=t;return e})();function s0(){return{provide:ug,useFactory:()=>{let e=p(rp),t=p(B),r=p(Zr),n=p(rl),o=p(zr);return r.scrollOffset&&e.setOffset(r.scrollOffset),new Kb(o,n,e,t,r)}}}function a0(){return{provide:gt,useClass:Kh}}function c0(){return{provide:gt,useClass:iu}}function u0(e){return"guarded"}function l0(e){return[e.initialNavigation==="disabled"?t0().\u0275providers:[],e.initialNavigation==="enabledBlocking"?e0().\u0275providers:[]]}var Np=new I("");function d0(){return[{provide:Np,useFactory:Xb},{provide:Pi,multi:!0,useExisting:Np}]}var TR=(()=>{let t=class t{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(xe(n=>(console.error(n),w([]))))}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(xe(o=>(console.error(o),w([]))))}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`)}};t.\u0275fac=function(o){return new(o||t)(y(du))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{m as a,Y as b,ce as c,oe as d,G as e,A as f,Hg as g,he as h,zg as i,qg as j,pe as k,Mo as l,X as m,v as n,Td as o,D as p,at as q,I as r,y as s,p as t,Le as u,Ud as v,ct as w,en as x,tc as y,Ln as z,V_ as A,$_ as B,gc as C,dt as D,ie as E,ny as F,U_ as G,z as H,Kt as I,Dr as J,_t as K,uw as L,Ew as M,Vc as N,jw as O,Vw as P,Ih as Q,Eh as R,$c as S,Xw as T,eI as U,q_ as V,Uc as W,G_ as X,W_ as Y,Z_ as Z,dI as _,Th as $,Y_ as aa,xh as ba,Q_ as ca,K_ as da,J_ as ea,X_ as fa,eN as ga,$n as ha,sn as ia,EN as ja,CN as ka,bN as la,MN as ma,np as na,xE as oa,jN as pa,nR as qa,rR as ra,ln as sa,jC as ta,mt as ua,Ap as va,IR as wa,ER as xa,TR as ya}; diff --git a/chunk-4LHOUONI.js b/chunk-NQN62V4F.js similarity index 86% rename from chunk-4LHOUONI.js rename to chunk-NQN62V4F.js index e41828a..96c54aa 100644 --- a/chunk-4LHOUONI.js +++ b/chunk-NQN62V4F.js @@ -1 +1 @@ -import{d as i,p as s}from"./chunk-7LGQRHWX.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}; +import{d as i,p as s}from"./chunk-FJC2XKMJ.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/index.html b/index.html index 02a6cb5..9403d97 100644 --- a/index.html +++ b/index.html @@ -7,10 +7,10 @@ +
Loading ...
- + diff --git a/main-4ICZ7H3Y.js b/main-QM3WFTXM.js similarity index 94% rename from main-4ICZ7H3Y.js rename to main-QM3WFTXM.js index 8c69d3e..cf127b9 100644 --- a/main-4ICZ7H3Y.js +++ b/main-QM3WFTXM.js @@ -1,2 +1,2 @@ -import{a as f}from"./chunk-4LHOUONI.js";import{$ as H,A as d,B as h,G as c,H as k,M as g,O as p,P as O,Q as o,R as n,S as x,V as v,W as _,X as L,Y as $,Z as a,_ as B,c as E,da as D,ea as P,fa as U,h as M,i as N,j,ja as W,k as F,ka as A,la as G,m as y,oa as z,p as R,pa as K,q as C,qa as q,ra as J,s as V,t as I,ta as Q,ua as X,v as l,va as u,w as b,wa as Y,xa as T,ya as Z}from"./chunk-7LGQRHWX.js";var pt=e=>["/books",e];function lt(e,t){if(e&1&&(o(0,"li")(1,"a",6),a(2),o(3,"p",7),a(4),n()()()),e&2){let s=t.$implicit;c(),p("routerLink",D(3,pt,s.isbn)),c(),H(" ",s.title," "),c(2),B(s.subtitle)}}function ut(e,t){e&1&&(o(0,"li"),a(1,"No results"),n())}function ft(e,t){if(e&1&&(o(0,"ul",3),g(1,lt,5,5,"li",4)(2,ut,2,0,"li",5),n()),e&2){let s=t.ngIf;c(),p("ngForOf",s),c(),p("ngIf",!s.length)}}var et=(()=>{let t=class t{constructor(r){this.service=r,this.input$=new E,this.isLoading=!1,this.results$=this.input$.pipe(M(i=>i.length>=3),N(500),j(),y(()=>this.isLoading=!0),F(i=>this.service.getAllSearch(i)),y(()=>this.isLoading=!1))}};t.\u0275fac=function(i){return new(i||t)(k(Z))},t.\u0275cmp=l({type:t,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(i,m){if(i&1){let w=v();o(0,"input",1,0),_("input",function(){d(w);let ct=$(1);return h(m.input$.next(ct.value))}),n(),g(2,ft,3,2,"ul",2),P(3,"async")}i&2&&(O("loading",m.isLoading),c(2),p("ngIf",U(3,3,m.results$)))},dependencies:[W,A,u,G]});let e=t;return e})();var it=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=l({type:t,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,m){i&1&&(o(0,"h1"),a(1,"Home"),n(),o(2,"a",0),a(3,` Show book list -`),n(),o(4,"h2"),a(5,"Search"),n(),x(6,"bm-search"))},dependencies:[u,et]});let e=t;return e})();var rt=()=>{let e=I(f),t=I(X);return e.isAuthenticated?!0:(window.alert("Not logged in!"),t.parseUrl("/home"))};var ht=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:it},{path:"books",loadChildren:()=>import("./chunk-CACVM5RP.js").then(e=>e.BOOKS_ROUTES)},{path:"admin",loadChildren:()=>import("./chunk-7ZMZLOL6.js").then(e=>e.AdminModule),canActivate:[rt]}],ot=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=b({type:t}),t.\u0275inj=C({imports:[T.forRoot(ht),T]});let e=t;return e})();function vt(e,t){if(e&1){let s=v();o(0,"button",6),_("click",function(){d(s);let i=L();return h(i.auth.login())}),a(1,"Login"),n()}}function _t(e,t){if(e&1){let s=v();o(0,"button",7),_("click",function(){d(s);let i=L();return h(i.auth.logout())}),a(1,"Logout"),n()}}var nt=(()=>{let t=class t{constructor(r){this.auth=r}};t.\u0275fac=function(i){return new(i||t)(k(f))},t.\u0275cmp=l({type:t,selectors:[["bm-root"]],decls:12,vars:2,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"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,m){i&1&&(o(0,"nav")(1,"a",0),a(2,"Home"),n(),o(3,"a",1),a(4,"Books"),n(),o(5,"a",2),a(6,"Administration"),n(),o(7,"div",3),g(8,vt,2,0,"button",4)(9,_t,2,0,"button",5),n()(),o(10,"main"),x(11,"router-outlet"),n()),i&2&&(c(8),p("ngIf",!m.auth.isAuthenticated),c(),p("ngIf",m.auth.isAuthenticated))},dependencies:[A,Q,u,Y]});let e=t;return e})();var at=(()=>{let t=class t{constructor(r){this.authService=r}intercept(r,i){let m="1234567890";if(this.authService.isAuthenticated){let w=r.clone({setHeaders:{Authorization:`Bearer ${m}`}});return i.handle(w)}else return i.handle(r)}};t.\u0275fac=function(i){return new(i||t)(V(f))},t.\u0275prov=R({token:t,factory:t.\u0275fac});let e=t;return e})();var st=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=b({type:t,bootstrap:[nt]}),t.\u0275inj=C({providers:[{provide:z,useClass:at,multi:!0}],imports:[J,ot,K]});let e=t;return e})();q().bootstrapModule(st).catch(e=>console.error(e)); +import{a as f}from"./chunk-NQN62V4F.js";import{$ as H,A as d,B as h,G as c,H as k,M as g,O as p,P as O,Q as o,R as n,S as x,V as v,W as _,X as L,Y as $,Z as a,_ as B,c as E,da as D,ea as P,fa as U,h as M,i as N,j,ja as W,k as F,ka as A,la as G,m as y,oa as z,p as R,pa as K,q as C,qa as q,ra as J,s as V,t as I,ta as Q,ua as X,v as l,va as u,w as b,wa as Y,xa as T,ya as Z}from"./chunk-FJC2XKMJ.js";var pt=e=>["/books",e];function lt(e,t){if(e&1&&(o(0,"li")(1,"a",6),a(2),o(3,"p",7),a(4),n()()()),e&2){let s=t.$implicit;c(),p("routerLink",D(3,pt,s.isbn)),c(),H(" ",s.title," "),c(2),B(s.subtitle)}}function ut(e,t){e&1&&(o(0,"li"),a(1,"No results"),n())}function ft(e,t){if(e&1&&(o(0,"ul",3),g(1,lt,5,5,"li",4)(2,ut,2,0,"li",5),n()),e&2){let s=t.ngIf;c(),p("ngForOf",s),c(),p("ngIf",!s.length)}}var et=(()=>{let t=class t{constructor(r){this.service=r,this.input$=new E,this.isLoading=!1,this.results$=this.input$.pipe(M(i=>i.length>=3),N(500),j(),y(()=>this.isLoading=!0),F(i=>this.service.getAllSearch(i)),y(()=>this.isLoading=!1))}};t.\u0275fac=function(i){return new(i||t)(k(Z))},t.\u0275cmp=l({type:t,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(i,m){if(i&1){let w=v();o(0,"input",1,0),_("input",function(){d(w);let ct=$(1);return h(m.input$.next(ct.value))}),n(),g(2,ft,3,2,"ul",2),P(3,"async")}i&2&&(O("loading",m.isLoading),c(2),p("ngIf",U(3,3,m.results$)))},dependencies:[W,A,u,G]});let e=t;return e})();var it=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=l({type:t,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,m){i&1&&(o(0,"h1"),a(1,"Home"),n(),o(2,"a",0),a(3,` Show book list +`),n(),o(4,"h2"),a(5,"Search"),n(),x(6,"bm-search"))},dependencies:[u,et]});let e=t;return e})();var rt=()=>{let e=I(f),t=I(X);return e.isAuthenticated?!0:(window.alert("Not logged in!"),t.parseUrl("/home"))};var ht=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:it},{path:"books",loadChildren:()=>import("./chunk-46PAZQKT.js").then(e=>e.BOOKS_ROUTES)},{path:"admin",loadChildren:()=>import("./chunk-3YSZIGIY.js").then(e=>e.AdminModule),canActivate:[rt]}],ot=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=b({type:t}),t.\u0275inj=C({imports:[T.forRoot(ht),T]});let e=t;return e})();function vt(e,t){if(e&1){let s=v();o(0,"button",6),_("click",function(){d(s);let i=L();return h(i.auth.login())}),a(1,"Login"),n()}}function _t(e,t){if(e&1){let s=v();o(0,"button",7),_("click",function(){d(s);let i=L();return h(i.auth.logout())}),a(1,"Logout"),n()}}var nt=(()=>{let t=class t{constructor(r){this.auth=r}};t.\u0275fac=function(i){return new(i||t)(k(f))},t.\u0275cmp=l({type:t,selectors:[["bm-root"]],decls:12,vars:2,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"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,m){i&1&&(o(0,"nav")(1,"a",0),a(2,"Home"),n(),o(3,"a",1),a(4,"Books"),n(),o(5,"a",2),a(6,"Administration"),n(),o(7,"div",3),g(8,vt,2,0,"button",4)(9,_t,2,0,"button",5),n()(),o(10,"main"),x(11,"router-outlet"),n()),i&2&&(c(8),p("ngIf",!m.auth.isAuthenticated),c(),p("ngIf",m.auth.isAuthenticated))},dependencies:[A,Q,u,Y]});let e=t;return e})();var at=(()=>{let t=class t{constructor(r){this.authService=r}intercept(r,i){let m="1234567890";if(this.authService.isAuthenticated){let w=r.clone({setHeaders:{Authorization:`Bearer ${m}`}});return i.handle(w)}else return i.handle(r)}};t.\u0275fac=function(i){return new(i||t)(V(f))},t.\u0275prov=R({token:t,factory:t.\u0275fac});let e=t;return e})();var st=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=b({type:t,bootstrap:[nt]}),t.\u0275inj=C({providers:[{provide:z,useClass:at,multi:!0}],imports:[J,ot,K]});let e=t;return e})();q().bootstrapModule(st).catch(e=>console.error(e)); diff --git a/polyfills-RT5I6R6G.js b/polyfills-RT5I6R6G.js deleted file mode 100644 index 96a6393..0000000 --- a/polyfills-RT5I6R6G.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.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 t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,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 v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class m{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', 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 I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("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:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",ge=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",Te=we?window:void 0,Y=we&&Te||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(b,_),b})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&Te.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&Te.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=pe(e,n);if(!r&&c&&pe(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=Pe[_];b||(b=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,qe),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?He(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=y("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let P=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=y("currentTaskTrace");function z(f,u,i){let h=P();if(f===i)throw new TypeError(K);if(f[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(f,!1,w)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof g=="function")try{g.call(i,h(N(f,u)),h(N(f,!1)))}catch(w){h(()=>{z(f,!1,w)})()}else{f[q]=u;let w=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=u.run(p,void 0,S&&p!==J&&p!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of u)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(u){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(se),w=n.current;return this[q]==M?this[R].push(w,g,u,i):ee(this,w,g,u,i),g}catch(u){return this.then(null,u)}finally(u){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,u,u):ee(this,g,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[m]=h,f.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+ge+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=ge+c,l=ge+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=A(a),k="."+a+":",m="prependListener",I="."+m+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[A(l)]=T[l],K=T[A(y)]=T[y],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],g;h&&(g=h[i.capture?ce:ae]);let w=g&&i.target[g];if(w){for(let p=0;p{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,me&&(me.taskData=null),Ve&&(Q.once=!0),!_e&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?de.unshift(ie):de.push(ie),p)return S}};return T[a]=u(N,k,t,s,M),z&&(T[m]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let g=arguments[2],w=g?typeof g=="boolean"?!0:g.capture:!1,p=arguments[1];if(!p)return P.apply(this,arguments);if(H&&!H(P,p,i,arguments))return;let C=te[h],S;C&&(S=C[w?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){let Z=e.ObjectGetOwnPropertyDescriptor(O,m);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(b.prototype,m,Z)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function mt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=pe,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function pt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(m,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete y[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,b);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?y[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(m,I){let O=I[0],Z;typeof O=="number"?Z=y[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete y[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function gt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{mt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{gt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),y=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];Z||(Z=P[De],B=P[Oe]),K&&B.call(P,j,K);let oe=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{pt(e,c)}); diff --git a/polyfills-S3BTP7ME.js b/polyfills-S3BTP7ME.js new file mode 100644 index 0000000..fe34b9e --- /dev/null +++ b/polyfills-S3BTP7ME.js @@ -0,0 +1,2 @@ +var se=globalThis;function ee(e){return(se.__Zone_symbol_prefix||"__zone_symbol__")+e}function ut(){let e=se.performance;function n(A){e&&e.mark&&e.mark(A)}function a(A,r){e&&e.measure&&e.measure(A,r)}n("Zone");let Y=class Y{static assertZonePatched(){if(se.Promise!==N.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=Y.current;for(;r.parent;)r=r.parent;return r}static get current(){return m.zone}static get currentTask(){return O}static __load_patch(r,i,s=!1){if(N.hasOwnProperty(r)){let v=se[ee("forceDuplicateZoneCheck")]===!0;if(!s&&v)throw Error("Already loaded patch: "+r)}else if(!se["__Zone_disable_"+r]){let v="Zone:"+r;n(v),N[r]=i(se,Y,R),a(v,v)}}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 u(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),v=this;return function(){return v.runGuarded(s,this,arguments,i)}}run(r,i,s,v){m={parent:m,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,v)}finally{m=m.parent}}runGuarded(r,i=null,s,v){m={parent:m,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,v)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{m=m.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||ne).name+"; Execution: "+this.name+")");if(r.state===z&&(r.type===F||r.type===g))return;let v=r.state!=G;v&&r._transitionTo(G,d),r.runCount++;let x=O;O=r,m={parent:m,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!==z&&r.state!==X&&(r.type==F||r.data&&r.data.isPeriodic?v&&r._transitionTo(d,G):(r.runCount=0,this._updateTaskCount(r,-1),v&&r._transitionTo(z,G,z))),m=m.parent,O=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(k,z);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(X,k,z),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==k&&r._transitionTo(d,k),r}scheduleMicroTask(r,i,s,v){return this.scheduleTask(new _(V,r,i,s,v,void 0))}scheduleMacroTask(r,i,s,v,x){return this.scheduleTask(new _(g,r,i,s,v,x))}scheduleEventTask(r,i,s,v,x){return this.scheduleTask(new _(F,r,i,s,v,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||ne).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==G)){r._transitionTo(W,d,G);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(X,W),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(z,W),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let v=0;vA.hasTask(i,s),onScheduleTask:(A,r,i,s)=>A.scheduleTask(i,s),onInvokeTask:(A,r,i,s,v,x)=>A.invokeTask(i,s,v,x),onCancelTask:(A,r,i,s)=>A.cancelTask(i,s)};class u{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 v=s&&s.onHasTask,x=i&&i._hasTaskZS;(v||x)&&(this._hasTaskZS=v?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,v,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,v,x):i.apply(s,v)}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==V)U(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,v):i.callback.apply(s,v)}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,v=s[r],x=s[r]=v+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(v==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,v,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=v,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let he=this;r===F&&v&&v.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(se,he,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&j(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(z,k)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==z&&(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=ee("setTimeout"),y=ee("Promise"),C=ee("then"),T=[],I=!1,w;function Z(A){if(w||se[y]&&(w=se[y].resolve(0)),w){let r=w[C];r||(r=w.then),r.call(w,A)}else se[E](A,0)}function U(A){K===0&&T.length===0&&Z(j),A&&T.push(A)}function j(){if(!I){for(I=!0;T.length;){let A=T;T=[];for(let r=0;rm,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:Z},m={parent:null,zone:new t(null,null)},O=null,K=0;function q(){}return a("Zone","Zone"),t}function ft(){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??=ut(),e.Zone}var ke=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,je=Object.getPrototypeOf,ht=Object.create,dt=Array.prototype.slice,Ae="addEventListener",He="removeEventListener",Ne=ee(Ae),Ie=ee(He),ie="true",ce="false",ve=ee("");function xe(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 H=ee,Ce=typeof window<"u",Te=Ce?window:void 0,$=Ce&&Te||globalThis,_t="removeAttribute";function Ve(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=xe(e[a],n+"_"+a));return e}function Et(e,n){let a=e.constructor.name;for(let t=0;t{let y=function(){return E.apply(this,Ve(arguments,a+"."+c))};return le(y,E),y})(u)}}}function Ke(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&{}.toString.call($.process)==="[object process]",Fe=!Se&&!Qe&&!!(Ce&&Te.HTMLElement),et=typeof $.process<"u"&&{}.toString.call($.process)==="[object process]"&&!Qe&&!!(Ce&&Te.HTMLElement),Re={},Xe=function(e){if(e=e||$.event,!e)return;let n=Re[e.type];n||(n=Re[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Fe&&a===Te&&e.type==="error"){let u=e;c=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function Ye(e,n,a){let t=ke(e,n);if(!t&&a&&ke(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 u=t.get,_=t.set,E=n.slice(2),y=Re[E];y||(y=Re[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===$&&(T=$),!T)return;typeof T[y]=="function"&&T.removeEventListener(E,Xe),_&&_.call(T,null),T[y]=C,typeof C=="function"&&T.addEventListener(E,Xe,!1)},t.get=function(){let C=this;if(!C&&e===$&&(C=$),!C)return null;let T=C[y];if(T)return T;if(u){let I=u.call(this);if(I)return t.set.call(this,I),typeof C[_t]=="function"&&C.removeAttribute(n),I}return null},Ze(e,n,t),e[c]=!0}function tt(e,n,a){if(n)for(let t=0;tfunction(_,E){let y=a(_,E);return y.cbIdx>=0&&typeof E[y.cbIdx]=="function"?Ge(y.name,E[y.cbIdx],y,c):u.apply(_,E)})}function le(e,n){e[H("OriginalDelegate")]=n}var $e=!1,Me=!1;function gt(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function yt(){if($e)return Me;$e=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var Ee=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}var pt={useG:!0},te={},nt={},rt=new RegExp("^"+ve+"(\\w+)(true|false)$"),ot=H("propagationStopped");function st(e,n){let a=(n?n(e):e)+ce,t=(n?n(e):e)+ie,c=ve+a,u=ve+t;te[e]={},te[e][ce]=c,te[e][ie]=u}function mt(e,n,a,t){let c=t&&t.add||Ae,u=t&&t.rm||He,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",y=H(c),C="."+c+":",T="prependListener",I="."+T+":",w=function(k,d,G){if(k.isRemoved)return;let W=k.callback;typeof W=="object"&&W.handleEvent&&(k.callback=g=>W.handleEvent(g),k.originalDelegate=W);let X;try{k.invoke(k,d,[G])}catch(g){X=g}let V=k.options;if(V&&typeof V=="object"&&V.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[u].call(d,G.type,g,V)}return X};function Z(k,d,G){if(d=d||e.event,!d)return;let W=k||d.target||e,X=W[te[d.type][G?ie:ce]];if(X){let V=[];if(X.length===1){let g=w(X[0],W,d);g&&V.push(g)}else{let g=X.slice();for(let F=0;F{throw F})}}}let U=function(k){return Z(this,k,!1)},j=function(k){return Z(this,k,!0)};function ne(k,d){if(!k)return!1;let G=!0;d&&d.useG!==void 0&&(G=d.useG);let W=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let V=!1;d&&d.rt!==void 0&&(V=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&k[c]&&(g=k),!g||g[y])return!1;let F=d&&d.eventNameToString,N={},R=g[y]=g[c],m=g[H(u)]=g[u],O=g[H(_)]=g[_],K=g[H(E)]=g[E],q;d&&d.prepend&&(q=g[H(d.prepend)]=g[d.prepend]);function Y(o,l){return!Ee&&typeof o=="object"&&o?!!o.capture:!Ee||!l?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let A=function(o){if(!N.isExisting)return R.call(N.target,N.eventName,N.capture?j:U,N.options)},r=function(o){if(!o.isRemoved){let l=te[o.eventName],h;l&&(h=l[o.capture?ie:ce]);let b=h&&o.target[h];if(b){for(let S=0;S{oe.zone.cancelTask(oe)},{once:!0})),N.target=null,pe&&(pe.taskData=null),Be&&(Q.once=!0),!Ee&&typeof oe.options=="boolean"||(oe.options=Q),oe.target=P,oe.capture=De,oe.eventName=D,B&&(oe.originalDelegate=L),p?de.unshift(oe):de.push(oe),S)return P}};return g[c]=f(R,C,x,M,V),q&&(g[T]=f(q,I,s,M,V,!0)),g[u]=function(){let o=this||e,l=arguments[0];d&&d.transferEventName&&(l=d.transferEventName(l));let h=arguments[2],b=h?typeof h=="boolean"?!0:h.capture:!1,S=arguments[1];if(!S)return m.apply(this,arguments);if(W&&!W(m,S,o,arguments))return;let p=te[l],P;p&&(P=p[b?ie:ce]);let D=P&&o[P];if(D)for(let L=0;Lfunction(c,u){c[ot]=!0,t&&t.apply(c,u)})}function vt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var we=H("zoneTask");function _e(e,n,a,t){let c=null,u=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 y(C){return u.call(e,C.data.handleId)}c=ae(e,n,C=>function(T,I){if(typeof I[0]=="function"){let w={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{w.isPeriodic||(typeof w.handleId=="number"?delete _[w.handleId]:w.handleId&&(w.handleId[we]=null))}};let U=Ge(n,I[0],w,E,y);if(!U)return U;let j=U.data.handleId;return typeof j=="number"?_[j]=U:j&&(j[we]=U),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(U.ref=j.ref.bind(j),U.unref=j.unref.bind(j)),typeof j=="number"||j?j:U}else return C.apply(e,I)}),u=ae(e,a,C=>function(T,I){let w=I[0],Z;typeof w=="number"?Z=_[w]:(Z=w&&w[we],Z||(Z=w)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof w=="number"?delete _[w]:w&&(w[we]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function bt(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 Pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let y=0;yu.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(u=>c.indexOf(u)===-1)}function Je(e,n,a,t){if(!e)return;let c=ct(e,n,a);tt(e,c,t)}function Le(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Rt(e,n){if(Se&&!et||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Fe){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=gt()?[{target:c,ignoreProperties:["error"]}]:[];Je(c,Le(c),a&&a.concat(u),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";_e(n,a,t,"Timeout"),_e(n,a,t,"Interval"),_e(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{_e(n,"request","cancel","AnimationFrame"),_e(n,"mozRequest","mozCancel","AnimationFrame"),_e(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,y)})}}),e.__load_patch("EventTarget",(n,a,t)=>{wt(n,t),Pt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{me("MutationObserver"),me("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{me("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{me("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Rt(t,n)}),e.__load_patch("customElements",(n,a,t)=>{bt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),u=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let w=I.prototype;function Z(R){return R[t]}let U=w[Ne],j=w[Ie];if(!U){let R=T.XMLHttpRequestEventTarget;if(R){let m=R.prototype;U=m[Ne],j=m[Ie]}}let ne="readystatechange",z="scheduled";function k(R){let m=R.data,O=m.target;O[_]=!1,O[y]=!1;let K=O[u];U||(U=O[Ne],j=O[Ie]),K&&j.call(O,ne,K);let q=O[u]=()=>{if(O.readyState===O.DONE)if(!m.aborted&&O[_]&&R.state===z){let A=O[a.__symbol__("loadfalse")];if(O.status!==0&&A&&A.length>0){let r=R.invoke;R.invoke=function(){let i=O[a.__symbol__("loadfalse")];for(let s=0;sfunction(R,m){return R[c]=m[2]==!1,R[E]=m[1],W.apply(R,m)}),X="XMLHttpRequest.send",V=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),F=ae(w,"send",()=>function(R,m){if(a.current[g]===!0||R[c])return F.apply(R,m);{let O={target:R,url:R[E],isPeriodic:!1,args:m,aborted:!1},K=Ge(X,d,O,k,G);R&&R[y]===!0&&!O.aborted&&K.state===z&&K.invoke()}}),N=ae(w,"abort",()=>function(R,m){let O=Z(R);if(O&&typeof O.type=="string"){if(O.cancelFn==null||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(a.current[V]===!0)return N.apply(R,m)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Et(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(u){it(n,c).forEach(E=>{let y=n.PromiseRejectionEvent;if(y){let C=new y(c,{promise:u.promise,reason:u.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{vt(n,t)})}function St(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function _(f){if(f&&f.toString===Object.prototype.toString){let o=f.constructor&&f.constructor.name;return(o||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let E=t.symbol,y=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),w="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let o=f&&f.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(o){U(o)}}};let Z=E("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let o=a[Z];typeof o=="function"&&o.call(this,f)}catch{}}function j(f){return f&&f.then}function ne(f){return f}function z(f){return M.reject(f)}let k=E("state"),d=E("value"),G=E("finally"),W=E("parentPromiseValue"),X=E("parentPromiseState"),V="Promise.then",g=null,F=!0,N=!1,R=0;function m(f,o){return l=>{try{Y(f,o,l)}catch(h){Y(f,!1,h)}}}let O=function(){let f=!1;return function(l){return function(){f||(f=!0,l.apply(null,arguments))}}},K="Promise resolved with itself",q=E("currentTaskTrace");function Y(f,o,l){let h=O();if(f===l)throw new TypeError(K);if(f[k]===g){let b=null;try{(typeof l=="object"||typeof l=="function")&&(b=l&&l.then)}catch(S){return h(()=>{Y(f,!1,S)})(),f}if(o!==N&&l instanceof M&&l.hasOwnProperty(k)&&l.hasOwnProperty(d)&&l[k]!==g)r(l),Y(f,l[k],l[d]);else if(o!==N&&typeof b=="function")try{b.call(l,h(m(f,o)),h(m(f,!1)))}catch(S){h(()=>{Y(f,!1,S)})()}else{f[k]=o;let S=f[d];if(f[d]=l,f[G]===G&&o===F&&(f[k]=f[X],f[d]=f[W]),o===N&&l instanceof Error){let p=a.currentTask&&a.currentTask.data&&a.currentTask.data[w];p&&u(l,q,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let P=f[d],D=!!l&&G===l[G];D&&(l[W]=P,l[X]=S);let L=o.run(p,void 0,D&&p!==z&&p!==ne?[]:[P]);Y(l,!0,L)}catch(P){Y(l,!1,P)}},l)}let s="function ZoneAwarePromise() { [native code] }",v=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(o){return o instanceof M?o:Y(new this(null),F,o)}static reject(o){return Y(new this(null),N,o)}static withResolvers(){let o={};return o.promise=new M((l,h)=>{o.resolve=l,o.reject=h}),o}static any(o){if(!o||typeof o[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let l=[],h=0;try{for(let p of o)h++,l.push(M.resolve(p))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(h===0)return Promise.reject(new x([],"All promises were rejected"));let b=!1,S=[];return new M((p,P)=>{for(let D=0;D{b||(b=!0,p(L))},L=>{S.push(L),h--,h===0&&(b=!0,P(new x(S,"All promises were rejected")))})})}static race(o){let l,h,b=new this((P,D)=>{l=P,h=D});function S(P){l(P)}function p(P){h(P)}for(let P of o)j(P)||(P=this.resolve(P)),P.then(S,p);return b}static all(o){return M.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof M?this:M).allWithCallback(o,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(o,l){let h,b,S=new this((L,B)=>{h=L,b=B}),p=2,P=0,D=[];for(let L of o){j(L)||(L=this.resolve(L));let B=P;try{L.then(J=>{D[B]=l?l.thenCallback(J):J,p--,p===0&&h(D)},J=>{l?(D[B]=l.errorCallback(J),p--,p===0&&h(D)):b(J)})}catch(J){b(J)}p++,P++}return p-=2,p===0&&h(D),S}constructor(o){let l=this;if(!(l instanceof M))throw new Error("Must be an instanceof Promise.");l[k]=g,l[d]=[];try{let h=O();o&&o(h(m(l,F)),h(m(l,N)))}catch(h){Y(l,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(o,l){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||M);let b=new h(v),S=a.current;return this[k]==g?this[d].push(S,b,o,l):i(this,S,b,o,l),b}catch(o){return this.then(null,o)}finally(o){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=M);let h=new l(v);h[G]=G;let b=a.current;return this[k]==g?this[d].push(b,h,o,o):i(this,b,h,o,o),h}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let he=n[T]=n.Promise;n.Promise=M;let ge=E("thenPatched");function ue(f){let o=f.prototype,l=c(o,"then");if(l&&(l.writable===!1||!l.configurable))return;let h=o.then;o[I]=h,f.prototype.then=function(b,S){return new M((P,D)=>{h.call(this,P,D)}).then(b,S)},f[ge]=!0}t.patchThen=ue;function be(f){return function(o,l){let h=f.apply(o,l);if(h instanceof M)return h;let b=h.constructor;return b[ge]||ue(b),h}}return he&&(ue(he),ae(n,"fetch",f=>be(f))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,M})}function Dt(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),u=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[u];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:E.call(this)}})}function Ot(e,n,a,t,c){let u=Zone.__symbol__(t);if(n[u])return;let _=n[u]=n[t];n[t]=function(E,y,C){return y&&y.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,w=y.prototype;try{if(w.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(w,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(y.prototype,T,Z)):w[T]&&(w[T]=e.wrapWithCurrentZone(w[T],I))}else w[T]&&(w[T]=e.wrapWithCurrentZone(w[T],I))}catch{}}),_.call(n,E,y,C)},e.attachOriginToPatched(n[t],_)}function Nt(e){e.__load_patch("util",(n,a,t)=>{let c=Le(n);t.patchOnProperties=tt,t.patchMethod=ae,t.bindArguments=Ve,t.patchMacroTask=Tt;let u=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[u]=n[_]),n[u]&&(a[u]=a[_]=n[u]),t.patchEventPrototype=kt,t.patchEventTarget=mt,t.isIEOrEdge=yt,t.ObjectDefineProperty=Ze,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=ht,t.ArraySlice=dt,t.patchClass=me,t.wrapWithCurrentZone=xe,t.filterProperties=ct,t.attachOriginToPatched=le,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ot,t.getGlobalObjects=()=>({globalSources:nt,zoneSymbolEventNames:te,eventNames:c,isBrowser:Fe,isMix:et,isNode:Se,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Ae,REMOVE_EVENT_LISTENER_STR:He})})}function It(e){St(e),Dt(e),Nt(e)}var at=ft();It(at);Ct(at);