From 0588afda11b8c5bd13eac3981cedea0430eb6519 Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Wed, 19 Jun 2024 09:50:10 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/buch/commit/fbcbe344e38bbb4796233cff150d2c86ea2d3289 --- 404.html | 2 +- index.html | 2 +- main-FVHL2NDG.js | 10 ---------- main-PJJCRWUW.js | 10 ++++++++++ 4 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 main-FVHL2NDG.js create mode 100644 main-PJJCRWUW.js diff --git a/404.html b/404.html index 3f34579..f391a79 100644 --- a/404.html +++ b/404.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/index.html b/index.html index 3f34579..f391a79 100644 --- a/index.html +++ b/index.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/main-FVHL2NDG.js b/main-FVHL2NDG.js deleted file mode 100644 index 926253c..0000000 --- a/main-FVHL2NDG.js +++ /dev/null @@ -1,10 +0,0 @@ -var iy=Object.defineProperty,oy=Object.defineProperties;var sy=Object.getOwnPropertyDescriptors;var Ad=Object.getOwnPropertySymbols;var ay=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable;var Nd=(t,e,r)=>e in t?iy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})ay.call(e,r)&&Nd(t,r,e[r]);if(Ad)for(var r of Ad(e))cy.call(e,r)&&Nd(t,r,e[r]);return t},$=(t,e)=>oy(t,sy(e));var Yr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});var Rd=null;var Va=1,Od=Symbol("SIGNAL");function U(t){let e=Rd;return Rd=t,e}var Fd={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 uy(t){if(!(Ua(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Va)){if(!t.producerMustRecompute(t)&&!ja(t)){t.dirty=!1,t.lastCleanEpoch=Va;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Va}}function kd(t){return t&&(t.nextProducerIndex=0),U(t)}function Pd(t,e){if(U(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ua(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function ja(t){$a(t);for(let e=0;e0}function $a(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function ly(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function dy(t){return t.producerNode!==void 0}function fy(){throw new Error}var hy=fy;function Vd(t){hy=t}function R(t){return typeof t=="function"}function Qn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ji=Qn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Sn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var oe=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(R(n))try{n()}catch(o){e=o instanceof Ji?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{jd(o)}catch(s){e=e??[],s instanceof Ji?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ji(e)}}add(e){var r;if(e&&e!==this)if(this.closed)jd(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Sn(r,e)}remove(e){let{_finalizers:r}=this;r&&Sn(r,e),e instanceof t&&e._removeParent(this)}};oe.EMPTY=(()=>{let t=new oe;return t.closed=!0,t})();var Ha=oe.EMPTY;function Xi(t){return t instanceof oe||t&&"closed"in t&&R(t.remove)&&R(t.add)&&R(t.unsubscribe)}function jd(t){R(t)?t():t.unsubscribe()}var at={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kn={setTimeout(t,e,...r){let{delegate:n}=Kn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Kn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function eo(t){Kn.setTimeout(()=>{let{onUnhandledError:e}=at;if(e)e(t);else throw t})}function Qr(){}var Bd=za("C",void 0,void 0);function Ud(t){return za("E",void 0,t)}function $d(t){return za("N",t,void 0)}function za(t,e,r){return{kind:t,value:e,error:r}}var Tn=null;function Jn(t){if(at.useDeprecatedSynchronousErrorHandling){let e=!Tn;if(e&&(Tn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Tn;if(Tn=null,r)throw n}}else t()}function Hd(t){at.useDeprecatedSynchronousErrorHandling&&Tn&&(Tn.errorThrown=!0,Tn.error=t)}var xn=class extends oe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xi(e)&&e.add(this)):this.destination=my}static create(e,r,n){return new Xn(e,r,n)}next(e){this.isStopped?qa($d(e),this):this._next(e)}error(e){this.isStopped?qa(Ud(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?qa(Bd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},py=Function.prototype.bind;function Ga(t,e){return py.call(t,e)}var Wa=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){to(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){to(n)}else to(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){to(r)}}},Xn=class extends xn{constructor(e,r,n){super();let i;if(R(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&at.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Ga(e.next,o),error:e.error&&Ga(e.error,o),complete:e.complete&&Ga(e.complete,o)}):i=e}this.destination=new Wa(i)}};function to(t){at.useDeprecatedSynchronousErrorHandling?Hd(t):eo(t)}function gy(t){throw t}function qa(t,e){let{onStoppedNotification:r}=at;r&&Kn.setTimeout(()=>r(t,e))}var my={closed:!0,next:Qr,error:gy,complete:Qr};var er=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Se(t){return t}function Za(...t){return Ya(t)}function Ya(t){return t.length===0?Se:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=yy(r)?r:new Xn(r,n,i);return Jn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=zd(n),new n((i,o)=>{let s=new Xn({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[er](){return this}pipe(...r){return Ya(r)(this)}toPromise(r){return r=zd(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function zd(t){var e;return(e=t??at.Promise)!==null&&e!==void 0?e:Promise}function vy(t){return t&&R(t.next)&&R(t.error)&&R(t.complete)}function yy(t){return t&&t instanceof xn||vy(t)&&Xi(t)}function Qa(t){return R(t?.lift)}function j(t){return e=>{if(Qa(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function k(t,e,r,n,i){return new Ka(t,e,r,n,i)}var Ka=class extends xn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function tr(){return j((t,e)=>{let r=null;t._refCount++;let n=k(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var nr=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,Qa(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new oe;let r=this.getSubject();e.add(this.source.subscribe(k(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=oe.EMPTY)}return e}refCount(){return tr()(this)}};var Gd=Qn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends B{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 Gd}next(r){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Jn(()=>{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(){Jn(()=>{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:i,observers:o}=this;return n||i?Ha:(this.currentObservers=null,o.push(r),new oe(()=>{this.currentObservers=null,Sn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new no(e,r),t})(),no=class extends he{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Ha}};var ye=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var Ja={now(){return(Ja.delegate||Date).now()},delegate:void 0};var ro=class extends oe{constructor(e,r){super()}schedule(e,r=0){return this}};var Kr={setInterval(t,e,...r){let{delegate:n}=Kr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Kr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var io=class extends ro{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return Kr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Kr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Sn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var rr=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};rr.now=Ja.now;var oo=class extends rr{constructor(e,r=rr.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var qd=new oo(io);var Ve=new B(t=>t.complete());function Wd(t){return t&&R(t.schedule)}function Zd(t){return t[t.length-1]}function so(t){return R(Zd(t))?t.pop():void 0}function Jt(t){return Wd(Zd(t))?t.pop():void 0}function Qd(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function Yd(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function An(t){return this instanceof An?(this.v=t,this):new An(t)}function Kd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){n[h]&&(i[h]=function(T){return new Promise(function(I,M){o.push([h,T,I,M])>1||c(h,T)})},g&&(i[h]=g(i[h])))}function c(h,g){try{u(n[h](g))}catch(T){f(o[0][3],T)}}function u(h){h.value instanceof An?Promise.resolve(h.value.v).then(l,d):f(o[0][2],h)}function l(h){c("next",h)}function d(h){c("throw",h)}function f(h,g){h(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Jd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Yd=="function"?Yd(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var ao=t=>t&&typeof t.length=="number"&&typeof t!="function";function co(t){return R(t?.then)}function uo(t){return R(t[er])}function lo(t){return Symbol.asyncIterator&&R(t?.[Symbol.asyncIterator])}function fo(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Dy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ho=Dy();function po(t){return R(t?.[ho])}function go(t){return Kd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield An(r.read());if(i)return yield An(void 0);yield yield An(n)}}finally{r.releaseLock()}})}function mo(t){return R(t?.getReader)}function pe(t){if(t instanceof B)return t;if(t!=null){if(uo(t))return wy(t);if(ao(t))return Cy(t);if(co(t))return by(t);if(lo(t))return Xd(t);if(po(t))return Ey(t);if(mo(t))return Iy(t)}throw fo(t)}function wy(t){return new B(e=>{let r=t[er]();if(R(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Cy(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,eo)})}function Ey(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Xd(t){return new B(e=>{My(t,e).catch(r=>e.error(r))})}function Iy(t){return Xd(go(t))}function My(t,e){var r,n,i,o;return Qd(this,void 0,void 0,function*(){try{for(r=Jd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Oe(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function vo(t,e=0){return j((r,n)=>{r.subscribe(k(n,i=>Oe(n,t,()=>n.next(i),e),()=>Oe(n,t,()=>n.complete(),e),i=>Oe(n,t,()=>n.error(i),e)))})}function yo(t,e=0){return j((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function ef(t,e){return pe(t).pipe(yo(e),vo(e))}function tf(t,e){return pe(t).pipe(yo(e),vo(e))}function nf(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function rf(t,e){return new B(r=>{let n;return Oe(r,e,()=>{n=t[ho](),Oe(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>R(n?.return)&&n.return()})}function Do(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Oe(r,e,()=>{let n=t[Symbol.asyncIterator]();Oe(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function of(t,e){return Do(go(t),e)}function sf(t,e){if(t!=null){if(uo(t))return ef(t,e);if(ao(t))return nf(t,e);if(co(t))return tf(t,e);if(lo(t))return Do(t,e);if(po(t))return rf(t,e);if(mo(t))return of(t,e)}throw fo(t)}function X(t,e){return e?sf(t,e):pe(t)}function _(...t){let e=Jt(t);return X(t,e)}function ir(t,e){let r=R(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function Xa(t){return!!t&&(t instanceof B||R(t.lift)&&R(t.subscribe))}var kt=Qn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function x(t,e){return j((r,n)=>{let i=0;r.subscribe(k(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:_y}=Array;function Sy(t,e){return _y(e)?t(...e):t(e)}function wo(t){return x(e=>Sy(t,e))}var{isArray:Ty}=Array,{getPrototypeOf:xy,prototype:Ay,keys:Ny}=Object;function Co(t){if(t.length===1){let e=t[0];if(Ty(e))return{args:e,keys:null};if(Ry(e)){let r=Ny(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Ry(t){return t&&typeof t=="object"&&xy(t)===Ay}function bo(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Jr(...t){let e=Jt(t),r=so(t),{args:n,keys:i}=Co(t);if(n.length===0)return X([],e);let o=new B(Oy(n,e,i?s=>bo(i,s):Se));return r?o.pipe(wo(r)):o}function Oy(t,e,r=Se){return n=>{af(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=X(t[c],e),l=!1;u.subscribe(k(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function af(t,e,r){t?Oe(r,t,e):e()}function cf(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=T=>u{o&&e.next(T),u++;let I=!1;pe(r(T,l++)).subscribe(k(e,M=>{i?.(M),o?h(M):e.next(M)},()=>{I=!0},void 0,()=>{if(I)try{for(u--;c.length&&ug(M)):g(M)}f()}catch(M){e.error(M)}}))};return t.subscribe(k(e,h,()=>{d=!0,f()})),()=>{a?.()}}function ge(t,e,r=1/0){return R(e)?ge((n,i)=>x((o,s)=>e(n,o,i,s))(pe(t(n,i))),r):(typeof e=="number"&&(r=e),j((n,i)=>cf(n,i,t,r)))}function Xt(t=1/0){return ge(Se,t)}function uf(){return Xt(1)}function or(...t){return uf()(X(t,Jt(t)))}function Eo(t){return new B(e=>{pe(t()).subscribe(e)})}function ec(...t){let e=so(t),{args:r,keys:n}=Co(t),i=new B(o=>{let{length:s}=r;if(!s){o.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||o.next(n?bo(n,a):a),o.complete())}))}});return e?i.pipe(wo(e)):i}function Ce(t,e){return j((r,n)=>{let i=0;r.subscribe(k(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Ze(t){return j((e,r)=>{let n=null,i=!1,o;n=e.subscribe(k(r,void 0,void 0,s=>{o=pe(t(s,Ze(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function lf(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(k(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Pt(t,e){return R(e)?ge(t,e,1):ge(t,1)}function tc(t,e=qd){return j((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function en(t){return j((e,r)=>{let n=!1;e.subscribe(k(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Lt(t){return t<=0?()=>Ve:j((e,r)=>{let n=0;e.subscribe(k(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function nc(t){return x(()=>t)}function rc(t,e=Se){return t=t??Fy,j((r,n)=>{let i,o=!0;r.subscribe(k(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function Fy(t,e){return t===e}function Io(t=ky){return j((e,r)=>{let n=!1;e.subscribe(k(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function ky(){return new kt}function tn(t){return j((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function Dt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?Ce((i,o)=>t(i,o,n)):Se,Lt(1),r?en(e):Io(()=>new kt))}function sr(t){return t<=0?()=>Ve:j((e,r)=>{let n=[];e.subscribe(k(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function ic(t,e){let r=arguments.length>=2;return n=>n.pipe(t?Ce((i,o)=>t(i,o,n)):Se,sr(1),r?en(e):Io(()=>new kt))}function oc(t,e){return j(lf(t,e,arguments.length>=2,!0))}function sc(...t){let e=Jt(t);return j((r,n)=>{(e?or(t,r,e):or(t,r)).subscribe(n)})}function De(t,e){return j((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(k(n,c=>{i?.unsubscribe();let u=0,l=o++;pe(t(c,l)).subscribe(i=k(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ac(t){return j((e,r)=>{pe(t).subscribe(k(r,()=>r.complete(),Qr)),!r.closed&&e.subscribe(r)})}function se(t,e,r){let n=R(t)||e||r?{next:t,error:e,complete:r}:t;return n?j((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(k(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.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)}))}):Se}var Jf="https://g.co/ng/security#xss",b=class extends Error{constructor(e,r){super(as(e,r)),this.code=e}};function as(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ui(t){return{toString:t}.toString()}var Mo="__parameters__";function Py(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Xf(t,e,r){return ui(()=>{let n=Py(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);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&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var be=globalThis;function Y(t){for(let e in t)if(t[e]===Y)return e;throw Error("Could not find renamed property on target object.")}function Ly(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function xe(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(xe).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function df(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var Vy=Y({__forward_ref__:Y});function St(t){return t.__forward_ref__=St,t.toString=function(){return xe(this())},t}function Te(t){return eh(t)?t():t}function eh(t){return typeof t=="function"&&t.hasOwnProperty(Vy)&&t.__forward_ref__===St}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ne(t){return{providers:t.providers||[],imports:t.imports||[]}}function cs(t){return ff(t,nh)||ff(t,rh)}function th(t){return cs(t)!==null}function ff(t,e){return t.hasOwnProperty(e)?t[e]:null}function jy(t){let e=t&&(t[nh]||t[rh]);return e||null}function hf(t){return t&&(t.hasOwnProperty(pf)||t.hasOwnProperty(By))?t[pf]:null}var nh=Y({\u0275prov:Y}),pf=Y({\u0275inj:Y}),rh=Y({ngInjectableDef:Y}),By=Y({ngInjectorDef:Y}),D=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ih(t){return t&&!!t.\u0275providers}var Uy=Y({\u0275cmp:Y}),$y=Y({\u0275dir:Y}),Hy=Y({\u0275pipe:Y}),zy=Y({\u0275mod:Y}),Po=Y({\u0275fac:Y}),Xr=Y({__NG_ELEMENT_ID__:Y}),gf=Y({__NG_ENV_ID__:Y});function us(t){return typeof t=="string"?t:t==null?"":String(t)}function Gy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():us(t)}function qy(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,t)}function mu(t,e){throw new b(-201,!1)}var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{}),Ec;function oh(){return Ec}function Fe(t){let e=Ec;return Ec=t,e}function sh(t,e,r){let n=cs(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;mu(t,"Injector")}var Wy={},ti=Wy,Ic="__NG_DI_FLAG__",Lo="ngTempTokenPath",Zy="ngTokenPath",Yy=/\n/gm,Qy="\u0275",mf="__source",dr;function Ky(){return dr}function nn(t){let e=dr;return dr=t,e}function Jy(t,e=L.Default){if(dr===void 0)throw new b(-203,!1);return dr===null?sh(t,void 0,e):dr.get(t,e&L.Optional?null:void 0,e)}function E(t,e=L.Default){return(oh()||Jy)(Te(t),e)}function p(t,e=L.Default){return E(t,ls(e))}function ls(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Mc(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):xe(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Yy,` - `)}`}var ds=ah(Xf("Optional"),8);var vu=ah(Xf("SkipSelf"),4);function Fn(t,e){let r=t.hasOwnProperty(Po);return r?t[Po]:null}function nD(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?yu(r,e):e(r))}function ch(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Vo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function iD(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function oD(t,e,r){let n=li(t,e);return n>=0?t[n|1]=r:(n=~n,iD(t,n,e,r)),n}function cc(t,e){let r=li(t,e);if(r>=0)return t[r|1]}function li(t,e){return sD(t,e,1)}function sD(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(ct(n))return!1;s=!0}}}}return ct(n)||s}function ct(t){return(t&1)===0}function fD(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!ct(s)&&(e+=yf(o,i),i=""),n=s,o=o||!ct(n);r++}return i!==""&&(e+=yf(o,i)),e}function vD(t){return t.map(mD).join(",")}function yD(t){let e=[],r=[],n=1,i=2;for(;n{let e=yh(t),r=$(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===dh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||bt.Emulated,styles:t.styles||Ye,_:null,schemas:t.schemas||null,tView:null,id:""});Dh(r);let n=t.dependencies;return r.directiveDefs=wf(n,!1),r.pipeDefs=wf(n,!0),r.id=CD(r),r})}function DD(t){return sn(t)||ph(t)}function wD(t){return t!==null}function re(t){return ui(()=>({type:t.type,bootstrap:t.bootstrap||Ye,declarations:t.declarations||Ye,imports:t.imports||Ye,exports:t.exports||Ye,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Df(t,e){if(t==null)return hr;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=gr.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==gr.None?[n,a]:n,e[o]=s):r[o]=n}return r}function le(t){return ui(()=>{let e=yh(t);return Dh(e),e})}function di(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function sn(t){return t[Uy]||null}function ph(t){return t[$y]||null}function gh(t){return t[Hy]||null}function mh(t){let e=sn(t)||ph(t)||gh(t);return e!==null?e.standalone:!1}function vh(t,e){let r=t[zy]||null;if(!r&&e===!0)throw new Error(`Type ${xe(t)} does not have '\u0275mod' property.`);return r}function yh(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||hr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ye,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Df(t.inputs,e),outputs:Df(t.outputs),debugInfo:null}}function Dh(t){t.features?.forEach(e=>e(t))}function wf(t,e){if(!t)return null;let r=e?gh:DD;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(wD)}function CD(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function fs(t){return{\u0275providers:t}}function bD(...t){return{\u0275providers:wh(!0,t),\u0275fromNgModule:!0}}function wh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return yu(e,s=>{let a=s;Sc(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Ch(i,o),r}function Ch(t,e){for(let r=0;r{e(o,n)})}}function Sc(t,e,r,n){if(t=Te(t),!t)return!1;let i=null,o=hf(t),s=!o&&sn(t);if(!o&&!s){let c=t.ngModule;if(o=hf(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Sc(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{yu(o.imports,l=>{Sc(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ch(u,e)}if(!a){let u=Fn(i)||(()=>new i);e({provide:i,useFactory:u,deps:Ye},i),e({provide:lh,useValue:i,multi:!0},i),e({provide:pr,useValue:()=>E(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;wu(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function wu(t,e){for(let r of t)ih(r)&&(r=r.\u0275providers),Array.isArray(r)?wu(r,e):e(r)}var ED=Y({provide:String,useValue:Y});function bh(t){return t!==null&&typeof t=="object"&&ED in t}function ID(t){return!!(t&&t.useExisting)}function MD(t){return!!(t&&t.useFactory)}function mr(t){return typeof t=="function"}function _D(t){return!!t.useClass}var hs=new D(""),Ao={},SD={},uc;function Cu(){return uc===void 0&&(uc=new jo),uc}var Ie=class{},ri=class extends Ie{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,xc(e,s=>this.processProvider(s)),this.records.set(uh,ar(void 0,this)),i.has("environment")&&this.records.set(Ie,ar(void 0,this));let o=this.records.get(hs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(lh,Ye,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=U(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(),U(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=nn(this),n=Fe(void 0),i;try{return e()}finally{nn(r),Fe(n)}}get(e,r=ti,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(gf))return e[gf](this);n=ls(n);let i,o=nn(this),s=Fe(void 0);try{if(!(n&L.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=RD(e)&&cs(e);u&&this.injectableDefInScope(u)?c=ar(Tc(e),Ao):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&L.Self?Cu():this.parent;return r=n&L.Optional&&r===ti?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Lo]=a[Lo]||[]).unshift(xe(e)),o)throw a;return eD(a,e,"R3InjectorError",this.source)}else throw a}finally{Fe(s),nn(o)}}resolveInjectorInitializers(){let e=U(null),r=nn(this),n=Fe(void 0),i;try{let o=this.get(pr,Ye,L.Self);for(let s of o)s()}finally{nn(r),Fe(n),U(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(xe(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){e=Te(e);let r=mr(e)?e:Te(e&&e.provide),n=xD(e);if(!mr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=ar(void 0,Ao,!0),i.factory=()=>Mc(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=U(null);try{return r.value===Ao&&(r.value=SD,r.value=r.factory()),typeof r.value=="object"&&r.value&&ND(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{U(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Te(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Tc(t){let e=cs(t),r=e!==null?e.factory:Fn(t);if(r!==null)return r;if(t instanceof D)throw new b(204,!1);if(t instanceof Function)return TD(t);throw new b(204,!1)}function TD(t){if(t.length>0)throw new b(204,!1);let r=jy(t);return r!==null?()=>r.factory(t):()=>new t}function xD(t){if(bh(t))return ar(void 0,t.useValue);{let e=Eh(t);return ar(e,Ao)}}function Eh(t,e,r){let n;if(mr(t)){let i=Te(t);return Fn(i)||Tc(i)}else if(bh(t))n=()=>Te(t.useValue);else if(MD(t))n=()=>t.useFactory(...Mc(t.deps||[]));else if(ID(t))n=()=>E(Te(t.useExisting));else{let i=Te(t&&(t.useClass||t.provide));if(AD(t))n=()=>new i(...Mc(t.deps));else return Fn(i)||Tc(i)}return n}function ar(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function AD(t){return!!t.deps}function ND(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function RD(t){return typeof t=="function"||typeof t=="object"&&t instanceof D}function xc(t,e){for(let r of t)Array.isArray(r)?xc(r,e):r&&ih(r)?xc(r.\u0275providers,e):e(r)}function Ue(t,e){t instanceof ri&&t.assertNotDestroyed();let r,n=nn(t),i=Fe(void 0);try{return e()}finally{nn(n),Fe(i)}}function Ih(){return oh()!==void 0||Ky()!=null}function OD(t){if(!Ih())throw new b(-203,!1)}function FD(t){let e=be.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function kD(t){return typeof t=="function"}var Bt=0,P=1,A=2,Me=3,ut=4,dt=5,Bo=6,Uo=7,lt=8,vr=9,Et=10,Ee=11,ii=12,Cf=13,Ir=14,It=15,kn=16,cr=17,Vt=18,ps=19,Mh=20,rn=21,lc=22,Pn=23,Qe=25,_h=1;var Ln=7,$o=8,yr=9,je=10,Ho=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ho||{});function on(t){return Array.isArray(t)&&typeof t[_h]=="object"}function Ut(t){return Array.isArray(t)&&t[_h]===!0}function Sh(t){return(t.flags&4)!==0}function gs(t){return t.componentOffset>-1}function bu(t){return(t.flags&1)===1}function an(t){return!!t.template}function Ac(t){return(t[A]&512)!==0}var Nc=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Th(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function ft(){return xh}function xh(t){return t.type.prototype.ngOnChanges&&(t.setInput=LD),PD}ft.ngInherit=!0;function PD(){let t=Nh(this),e=t?.current;if(e){let r=t.previous;if(r===hr)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function LD(t,e,r,n,i){let o=this.declaredInputs[n],s=Nh(t)||VD(t,{previous:hr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new Nc(u&&u.currentValue,r,c===hr),Th(t,e,i,r)}var Ah="__ngSimpleChanges__";function Nh(t){return t[Ah]||null}function VD(t,e){return t[Ah]=e}var bf=null;var wt=function(t,e,r){bf?.(t,e,r)},jD="svg",BD="math";function Mt(t){for(;Array.isArray(t);)t=t[Bt];return t}function Rh(t,e){return Mt(e[t])}function Ke(t,e){return Mt(e[t.index])}function Oh(t,e){return t.data[e]}function Eu(t,e){return t[e]}function un(t,e){let r=e[t];return on(r)?r:r[Bt]}function UD(t){return(t[A]&4)===4}function Iu(t){return(t[A]&128)===128}function $D(t){return Ut(t[Me])}function zo(t,e){return e==null?null:t[e]}function Fh(t){t[cr]=0}function HD(t){t[A]&1024||(t[A]|=1024,Iu(t)&&ms(t))}function zD(t,e){for(;t>0;)e=e[Ir],t--;return e}function oi(t){return!!(t[A]&9216||t[Pn]?.dirty)}function Rc(t){t[Et].changeDetectionScheduler?.notify(7),t[A]&64&&(t[A]|=1024),oi(t)&&ms(t)}function ms(t){t[Et].changeDetectionScheduler?.notify(0);let e=si(t);for(;e!==null&&!(e[A]&8192||(e[A]|=8192,!Iu(e)));)e=si(e)}function kh(t,e){if((t[A]&256)===256)throw new b(911,!1);t[rn]===null&&(t[rn]=[]),t[rn].push(e)}function GD(t,e){if(t[rn]===null)return;let r=t[rn].indexOf(e);r!==-1&&t[rn].splice(r,1)}function si(t){let e=t[Me];return Ut(e)?e[Me]:e}var V={lFrame:zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ph=!1;function qD(){return V.lFrame.elementDepthCount}function WD(){V.lFrame.elementDepthCount++}function ZD(){V.lFrame.elementDepthCount--}function Lh(){return V.bindingsEnabled}function YD(){return V.skipHydrationRootTNode!==null}function QD(t){return V.skipHydrationRootTNode===t}function KD(){V.skipHydrationRootTNode=null}function H(){return V.lFrame.lView}function ke(){return V.lFrame.tView}function $t(t){return V.lFrame.contextLView=t,t[lt]}function Ht(t){return V.lFrame.contextLView=null,t}function Ae(){let t=Vh();for(;t!==null&&t.type===64;)t=t.parent;return t}function Vh(){return V.lFrame.currentTNode}function JD(){let t=V.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function fi(t,e){let r=V.lFrame;r.currentTNode=t,r.isParent=e}function jh(){return V.lFrame.isParent}function XD(){V.lFrame.isParent=!1}function ew(){return V.lFrame.contextLView}function Bh(){return Ph}function Ef(t){Ph=t}function vs(){let t=V.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function tw(t){return V.lFrame.bindingIndex=t}function Mu(){return V.lFrame.bindingIndex++}function nw(t){let e=V.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function rw(){return V.lFrame.inI18n}function iw(t,e){let r=V.lFrame;r.bindingIndex=r.bindingRootIndex=t,Oc(e)}function ow(){return V.lFrame.currentDirectiveIndex}function Oc(t){V.lFrame.currentDirectiveIndex=t}function sw(t){let e=V.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Uh(){return V.lFrame.currentQueryIndex}function _u(t){V.lFrame.currentQueryIndex=t}function aw(t){let e=t[P];return e.type===2?e.declTNode:e.type===1?t[dt]:null}function $h(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=aw(o),i===null||(o=o[Ir],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=V.lFrame=Hh();return n.currentTNode=e,n.lView=t,!0}function Su(t){let e=Hh(),r=t[P];V.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Hh(){let t=V.lFrame,e=t===null?null:t.child;return e===null?zh(t):e}function zh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Gh(){let t=V.lFrame;return V.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var qh=Gh;function Tu(){let t=Gh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function cw(t){return(V.lFrame.contextLView=zD(t,V.lFrame.contextLView))[lt]}function Mr(){return V.lFrame.selectedIndex}function Vn(t){V.lFrame.selectedIndex=t}function Wh(){let t=V.lFrame;return Oh(t.tView,t.selectedIndex)}function uw(){return V.lFrame.currentNamespace}var Zh=!0;function xu(){return Zh}function Au(t){Zh=t}function lw(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=xh(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Nu(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[cr]+=65536),(a>14>16&&(t[A]&3)===e&&(t[A]+=16384,If(a,o)):If(a,o)}var fr=-1,jn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function fw(t){return t instanceof jn}function hw(t){return(t.flags&8)!==0}function pw(t){return(t.flags&16)!==0}function Qh(t){return t!==fr}function Go(t){return t&32767}function gw(t){return t>>16}function qo(t,e){let r=gw(t),n=e;for(;r>0;)n=n[Ir],r--;return n}var Fc=!0;function Wo(t){let e=Fc;return Fc=t,e}var mw=256,Kh=mw-1,Jh=5,vw=0,Ct={};function yw(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Xr)&&(n=r[Xr]),n==null&&(n=r[Xr]=vw++);let i=n&Kh,o=1<>Jh)]|=o}function Zo(t,e){let r=Xh(t,e);if(r!==-1)return r;let n=e[P];n.firstCreatePass&&(t.injectorIndex=e.length,fc(n.data,t),fc(e,null),fc(n.blueprint,null));let i=Ru(t,e),o=t.injectorIndex;if(Qh(i)){let s=Go(i),a=qo(i,e),c=a[P].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function fc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Xh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ru(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=ip(i),n===null)return fr;if(r++,i=i[Ir],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return fr}function kc(t,e,r){yw(t,e,r)}function Dw(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:u;for(let h=d;h=c&&g.type===r)return h}if(i){let h=s[c];if(h&&an(h)&&h.type===r)return c}return null}function Bn(t,e,r,n){let i=t[r],o=e.data;if(fw(i)){let s=i;s.resolving&&qy(Gy(o[r]));let a=Wo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Fe(s.injectImpl):null,l=$h(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&lw(r,o[r],e)}finally{u!==null&&Fe(u),Wo(a),s.resolving=!1,qh()}}return i}function Cw(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Xr)?t[Xr]:void 0;return typeof e=="number"?e>=0?e&Kh:bw:e}function Mf(t,e,r){let n=1<>Jh)]&n)}function _f(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var On=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return np(this._tNode,this._lView,e,ls(n),r)}};function bw(){return new On(Ae(),H())}function _r(t){return ui(()=>{let e=t.prototype.constructor,r=e[Po]||Pc(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Po]||Pc(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Pc(t){return eh(t)?()=>{let e=Pc(Te(t));return e&&e()}:Fn(t)}function Ew(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[A]&2048&&!(s[A]&512);){let a=rp(o,s,r,n|L.Self,Ct);if(a!==Ct)return a;let c=o.parent;if(!c){let u=s[Mh];if(u){let l=u.get(r,Ct,n);if(l!==Ct)return l}c=ip(s),s=s[Ir]}o=c}return i}function ip(t){let e=t[P],r=e.type;return r===2?e.declTNode:r===1?t[dt]:null}function Ou(t){return Dw(Ae(),t)}function Sf(t,e=null,r=null,n){let i=op(t,e,r,n);return i.resolveInjectorInitializers(),i}function op(t,e=null,r=null,n,i=new Set){let o=[r||Ye,bD(t)];return n=n||(typeof t=="object"?void 0:xe(t)),new ri(o,e||Cu(),n||null,i)}var Rn=class Rn{static create(e,r){if(Array.isArray(e))return Sf({name:""},r,e,"");{let n=e.name??"";return Sf({name:n},e.parent,e.providers,n)}}};Rn.THROW_IF_NOT_FOUND=ti,Rn.NULL=new jo,Rn.\u0275prov=y({token:Rn,providedIn:"any",factory:()=>E(uh)}),Rn.__NG_ELEMENT_ID__=-1;var Be=Rn;var Iw=new D("");Iw.__NG_ELEMENT_ID__=t=>{let e=Ae();if(e===null)throw new b(204,!1);if(e.type&2)return e.value;if(t&L.Optional)return null;throw new b(204,!1)};var Mw="ngOriginalError";function hc(t){return t[Mw]}var _t=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&hc(e);for(;r&&hc(r);)r=hc(r);return r||null}},sp=new D("",{providedIn:"root",factory:()=>p(_t).handleError.bind(void 0)}),Fu=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=_w,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Lc=class extends Fu{constructor(e){super(),this._lView=e}onDestroy(e){return kh(this._lView,e),()=>GD(this._lView,e)}};function _w(){return new Lc(H())}function Sw(){return Sr(Ae(),H())}function Sr(t,e){return new Pe(Ke(t,e))}var Pe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Sw;let t=e;return t})();function Tw(t){return t instanceof Pe?t.nativeElement:t}var Vc=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Ih()&&(this.destroyRef=p(Fu,{optional:!0})??void 0)}emit(e){let r=U(null);try{super.next(e)}finally{U(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=pc(o),i&&(i=pc(i)),s&&(s=pc(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof oe&&e.add(a),a}};function pc(t){return e=>{setTimeout(t,void 0,e)}}var ie=Vc;function xw(){return this._results[Symbol.iterator]()}var jc=class t{get changes(){return this._changes??=new ie}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=xw)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=rD(e);(this._changesDetected=!nD(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function ap(t){return(t.flags&128)===128}var cp=new Map,Aw=0;function Nw(){return Aw++}function Rw(t){cp.set(t[ps],t)}function Ow(t){cp.delete(t[ps])}var Tf="__ngContext__";function Un(t,e){on(e)?(t[Tf]=e[ps],Rw(e)):t[Tf]=e}function up(t){return dp(t[ii])}function lp(t){return dp(t[ut])}function dp(t){for(;t!==null&&!Ut(t);)t=t[ut];return t}var Bc;function fp(t){Bc=t}function Fw(){if(Bc!==void 0)return Bc;if(typeof document<"u")return document;throw new b(210,!1)}var ys=new D("",{providedIn:"root",factory:()=>kw}),kw="ng",ku=new D(""),Tt=new D("",{providedIn:"platform",factory:()=>"unknown"});var Pu=new D("",{providedIn:"root",factory:()=>Fw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Pw="h",Lw="b";var Vw=()=>null;function Lu(t,e,r=!1){return Vw(t,e,r)}var hp=!1,jw=new D("",{providedIn:"root",factory:()=>hp});var _o;function Bw(){if(_o===void 0&&(_o=null,be.trustedTypes))try{_o=be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _o}function xf(t){return Bw()?.createScriptURL(t)||t}var Yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jf})`}};function hi(t){return t instanceof Yo?t.changingThisBreaksApplicationSecurity:t}function Vu(t,e){let r=Uw(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Jf})`)}return r===e}function Uw(t){return t instanceof Yo&&t.getTypeName()||null}var $w=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function pp(t){return t=String(t),t.match($w)?t:"unsafe:"+t}var Ds=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ds||{});function pi(t){let e=mp();return e?e.sanitize(Ds.URL,t)||"":Vu(t,"URL")?hi(t):pp(us(t))}function Hw(t){let e=mp();if(e)return xf(e.sanitize(Ds.RESOURCE_URL,t)||"");if(Vu(t,"ResourceURL"))return xf(hi(t));throw new b(904,!1)}function zw(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?Hw:pi}function gp(t,e,r){return zw(e,r)(t)}function mp(){let t=H();return t&&t[Et].sanitizer}function vp(t){return t instanceof Function?t():t}function Gw(t){return(t??p(Be)).get(Tt)==="browser"}var jt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(jt||{}),qw;function ju(t,e){return qw(t,e)}function ur(t,e,r,n,i){if(n!=null){let o,s=!1;Ut(n)?o=n:on(n)&&(s=!0,n=n[Bt]);let a=Mt(n);t===0&&r!==null?i==null?bp(e,r,a):Qo(e,r,a,i||null,!0):t===1&&r!==null?Qo(e,r,a,i||null,!0):t===2?cC(e,a,s):t===3&&e.destroyNode(a),o!=null&&lC(e,t,o,r,i)}}function Ww(t,e){return t.createText(e)}function Zw(t,e,r){t.setValue(e,r)}function yp(t,e,r){return t.createElement(e,r)}function Yw(t,e){Dp(t,e),e[Bt]=null,e[dt]=null}function Qw(t,e,r,n,i,o){n[Bt]=i,n[dt]=e,ws(t,n,r,1,i,o)}function Dp(t,e){e[Et].changeDetectionScheduler?.notify(8),ws(t,e,e[Ee],2,null,null)}function Kw(t){let e=t[ii];if(!e)return gc(t[P],t);for(;e;){let r=null;if(on(e))r=e[ii];else{let n=e[je];n&&(r=n)}if(!r){for(;e&&!e[ut]&&e!==t;)on(e)&&gc(e[P],e),e=e[Me];e===null&&(e=t),on(e)&&gc(e[P],e),r=e&&e[ut]}e=r}}function Jw(t,e,r,n){let i=je+n,o=r.length;n>0&&(r[i-1][ut]=e),n0&&(t[r-1][ut]=n[ut]);let o=Vo(t,je+e);Yw(n[P],n);let s=o[Vt];s!==null&&s.detachView(o[P]),n[Me]=null,n[ut]=null,n[A]&=-129}return n}function Cp(t,e){if(!(e[A]&256)){let r=e[Ee];r.destroyNode&&ws(t,e,r,3,null,null),Kw(e)}}function gc(t,e){if(e[A]&256)return;let r=U(null);try{e[A]&=-129,e[A]|=256,e[Pn]&&Ld(e[Pn]),eC(t,e),Xw(t,e),e[P].type===1&&e[Ee].destroy();let n=e[kn];if(n!==null&&Ut(e[Me])){n!==e[Me]&&Bu(n,e);let i=e[Vt];i!==null&&i.detachView(t)}Ow(e)}finally{U(r)}}function Xw(t,e){let r=t.cleanup,n=e[Uo];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Uo]=null);let i=e[rn];if(i!==null){e[rn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===bt.None||o===bt.Emulated)return null}return Ke(n,r)}}function Qo(t,e,r,n,i){t.insertBefore(e,r,n,i)}function bp(t,e,r){t.appendChild(e,r)}function Af(t,e,r,n,i){n!==null?Qo(t,e,r,n,i):bp(t,e,r)}function rC(t,e,r,n){t.removeChild(e,r,n)}function Uu(t,e){return t.parentNode(e)}function iC(t,e){return t.nextSibling(e)}function oC(t,e,r){return aC(t,e,r)}function sC(t,e,r){return t.type&40?Ke(t,r):null}var aC=sC,Nf;function $u(t,e,r,n){let i=tC(t,n,e),o=e[Ee],s=n.parent||e[dt],a=oC(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;cQe&&_p(t,e,Qe,!1),wt(s?2:0,i),r(n,i)}finally{Vn(o),wt(s?3:1,i)}}function Np(t,e,r){if(Sh(e)){let n=U(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function DC(t,e,r,n){let i=Bp(e);i.push(r),t.firstCreatePass&&Up(t).push(n,i.length-1)}function wC(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return YD()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Rf(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=gr.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?Of(n,r,u,a,c):Of(n,r,u,a)}return n}function Of(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function CC(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function SC(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;gs(r)&&FC(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Zo(r,e),Un(n,e);let s=r.initialInputs;for(let a=i;a{ms(t.lView)},consumerOnSignalRead(){this.lView[Pn]=this}}),QC=100;function zp(t,e=!0,r=0){let n=t[Et],i=n.rendererFactory,o=!1;o||i.begin?.();try{KC(t,r)}catch(s){throw e&&$p(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function KC(t,e){let r=Bh();try{Ef(!0),Gc(t,e);let n=0;for(;oi(t);){if(n===QC)throw new b(103,!1);n++,Gc(t,1)}}finally{Ef(r)}}function JC(t,e,r,n){let i=e[A];if((i&256)===256)return;let o=!1,s=!1;!o&&e[Et].inlineEffectRunner?.flush(),Su(e);let a=null,c=null;!o&&XC(t)&&(c=qC(e),a=kd(c));try{Fh(e),tw(t.bindingStartIndex),r!==null&&Ap(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&No(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Ro(e,f,0,null),dc(e,0)}if(s||eb(e),Gp(e,0),t.contentQueries!==null&&jp(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&No(e,f)}else{let f=t.contentHooks;f!==null&&Ro(e,f,1),dc(e,1)}hC(t,e);let l=t.components;l!==null&&Wp(e,l,0);let d=t.viewQuery;if(d!==null&&zc(2,d,n),!o)if(u){let f=t.viewCheckHooks;f!==null&&No(e,f)}else{let f=t.viewHooks;f!==null&&Ro(e,f,2),dc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[lc]){for(let f of e[lc])f();e[lc]=null}o||(e[A]&=-73)}catch(u){throw o||ms(e),u}finally{c!==null&&(Pd(c,a),ZC(c)),Tu()}}function XC(t){return t.type!==2}function Gp(t,e){for(let r=up(t);r!==null;r=lp(r))for(let n=je;n-1&&(Uc(e,n),Vo(r,n))}this._attachedToViewContainer=!1}Cp(this._lView[P],this._lView)}onDestroy(e){kh(this._lView,e)}markForCheck(){Wu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[A]&=-129}reattach(){Rc(this._lView),this._lView[A]|=128}detectChanges(){this._lView[A]|=1024,zp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ac(this._lView),r=this._lView[kn];r!==null&&!e&&Bu(r,this._lView),Dp(this._lView[P],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e;let r=Ac(this._lView),n=this._lView[kn];n!==null&&!r&&wp(n,this._lView),Rc(this._lView)}},Hn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ib;let t=e;return t})(),nb=Hn,rb=class extends nb{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=HC(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new $n(i)}};function ib(){return Zu(Ae(),H())}function Zu(t,e){return t.type&4?new rb(e,t,Sr(t,e)):null}var MF=new RegExp(`^(\\d+)*(${Lw}|${Pw})*(.*)`);var ob=()=>null;function kf(t,e){return ob(t,e)}var Dr=class{},Zp=new D("",{providedIn:"root",factory:()=>!1});var Yp=new D(""),qc=class{},Jo=class{};function sb(t){let e=Error(`No component factory found for ${xe(t)}.`);return e[ab]=t,e}var ab="ngComponent";var Wc=class{resolveComponentFactory(e){throw sb(e)}},sl=class sl{};sl.NULL=new Wc;var wr=sl,Cr=class{},xt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>cb();let t=e;return t})();function cb(){let t=H(),e=Ae(),r=un(e.index,t);return(on(r)?r:t)[Ee]}var ub=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),mc={};var Pf=new Set;function Is(t){Pf.has(t)||(Pf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Qp(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof be.requestAnimationFrame=="function"&&be.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Lf(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Vf(...t){}var W=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,fb(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,lb,Vf,Vf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},lb={};function Yu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function db(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Qp(()=>{t.callbackScheduled=!1,Zc(t),t.isCheckStableRunning=!0,Yu(t),t.isCheckStableRunning=!1})}),Zc(t))}function fb(t){let e=()=>{db(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(hb(a))return r.invokeTask(i,o,s,a);try{return jf(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Bf(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return jf(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!pb(a)&&e(),Bf(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Zc(t),Yu(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Zc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bf(t){t._nesting--,Yu(t)}var Xo=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(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function hb(t){return Kp(t,"__ignore_ng_zone__")}function pb(t){return Kp(t,"__scheduler_tick__")}function Kp(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function gb(t="zone.js",e){return t==="noop"?new Xo:t==="zone.js"?new W(e):t}var lr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(lr||{}),mb={destroy(){}};function Ms(t,e){!e&&OD(Ms);let r=e?.injector??p(Be);if(!Gw(r))return mb;Is("NgAfterNextRender");let n=r.get(Qu),i=n.handler??=new Qc,o=e?.phase??lr.MixedReadWrite,s=()=>{i.unregister(c),a()},a=r.get(Fu).onDestroy(s),c=Ue(r,()=>new Yc(o,()=>{s(),t()}));return i.register(c),{destroy:s}}var Yc=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(W),this.errorHandler=p(_t,{optional:!0}),p(Dr,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Qc=class{constructor(){this.executingCallbacks=!1,this.buckets={[lr.EarlyRead]:new Set,[lr.Write]:new Set,[lr.MixedReadWrite]:new Set,[lr.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Qu=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Kc(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Ip(t,r,o.join(" "))}}function Eb(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=Mb;let t=e;return t})();function Mb(){let t=Ae();return Xp(t,H())}var _b=dn,Jp=class extends _b{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Sr(this._hostTNode,this._hostLView)}get injector(){return new On(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ru(this._hostTNode,this._hostLView);if(Qh(e)){let r=qo(e,this._hostLView),n=Go(e),i=r[P].data[n+8];return new On(i,r)}else return new On(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=$f(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-je}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=kf(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Ff(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!kD(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}let c=s?e:new br(sn(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let T=(s?u:this.parentInjector).get(Ie,null);T&&(o=T)}let l=sn(c.componentType??{}),d=kf(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,i,f,o);return this.insertImpl(h.hostView,a,Ff(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if($D(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Me],u=new Jp(c,c[dt],c[Me]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return zC(s,i,o,n),e.attachToViewContainerRef(),ch(vc(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=$f(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Uc(this._lContainer,r);n&&(Vo(vc(this._lContainer),r),Cp(n[P],n))}detach(e){let r=this._adjustIndex(e,-1),n=Uc(this._lContainer,r);return n&&Vo(vc(this._lContainer),r)!=null?new $n(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function $f(t){return t[$o]}function vc(t){return t[$o]||(t[$o]=[])}function Xp(t,e){let r,n=e[t.index];return Ut(n)?r=n:(r=Vp(n,e,null,t),e[t.index]=r,Es(e,r)),Tb(r,e,t,n),new Jp(r,t,e)}function Sb(t,e){let r=t[Ee],n=r.createComment(""),i=Ke(e,t),o=Uu(r,i);return Qo(r,o,n,iC(r,i),!1),n}var Tb=Nb,xb=()=>!1;function Ab(t,e,r){return xb(t,e,r)}function Nb(t,e,r,n){if(t[Ln])return;let i;r.type&8?i=Mt(n):i=Sb(e,r),t[Ln]=i}var eu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},tu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=je;de.trim())}function Bb(t,e,r){t.queries===null&&(t.queries=new ru),t.queries.track(new iu(e,r))}function Ub(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function Ku(t,e){return t.queries.getByIndex(e)}function $b(t,e){let r=t[P],n=Ku(r,e);return n.crossesNgTemplate?ou(r,t,e,[]):eg(r,t,n,e)}function Hb(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(Wb))}return o}return ts.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(u=>{i.template=u}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.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(i.styleUrls?.length){let u=i.styles.length,l=i.styleUrls;i.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&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(u=>{a.push(u),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>Zb(o));e.push(c)}),Gb(),Promise.all(e).then(()=>{})}var ts=new Map,zb=new Set;function Gb(){let t=ts;return ts=new Map,t}function qb(){return ts.size===0}function Wb(t){return typeof t=="string"?t:t.text()}function Zb(t){zb.delete(t)}function Yb(t){return Object.getPrototypeOf(t.prototype).constructor}function ht(t){let e=Yb(t.type),r=!0,n=[t];for(;e;){let i;if(an(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new b(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=So(t.inputs),s.inputTransforms=So(t.inputTransforms),s.declaredInputs=So(t.declaredInputs),s.outputs=So(t.outputs);let a=i.hostBindings;a&&eE(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&Jb(t,c),u&&Xb(t,u),Qb(t,i),Ly(t.outputs,i.outputs),an(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=ni(i.hostAttrs,r=ni(r,i.hostAttrs))}}function So(t){return t===hr?{}:t===Ye?[]:t}function Jb(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function Xb(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function eE(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function Ju(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var cn=class{},ai=class{};var ns=class extends cn{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new es(this);let i=vh(e);this._bootstrapComponents=vp(i.bootstrap),this._r3Injector=op(e,r,[{provide:cn,useValue:this},{provide:wr,useValue:this.componentFactoryResolver},...n],xe(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},rs=class extends ai{constructor(e){super(),this.moduleType=e}create(e){return new ns(this.moduleType,e,[])}};function tE(t,e,r){return new ns(t,e,r)}var su=class extends cn{constructor(e){super(),this.componentFactoryResolver=new es(this),this.instance=null;let r=new ri([...e.providers,{provide:cn,useValue:this},{provide:wr,useValue:this.componentFactoryResolver}],e.parent||Cu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function _s(t,e,r=null){return new su({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var fn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ye(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tg(t){return rE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function nE(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function fE(t){return(t&2)==2}function hE(t,e){return t&131071|e<<17}function au(t){return t|2}function Er(t){return(t&131068)>>2}function yc(t,e){return t&-131069|e<<2}function pE(t){return(t&1)===1}function cu(t){return t|1}function gE(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Gn(s),c=Er(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||li(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let f=Gn(t[a+1]);t[n+1]=To(f,a),f!==0&&(t[f+1]=yc(t[f+1],n)),t[a+1]=hE(t[a+1],n)}else t[n+1]=To(a,0),a!==0&&(t[a+1]=yc(t[a+1],n)),a=n;else t[n+1]=To(c,0),a===0?a=n:t[c+1]=yc(t[c+1],n),c=n;u&&(t[n+1]=au(t[n+1])),Hf(t,l,n,!0),Hf(t,l,n,!1),mE(e,l,t,n,o),s=To(a,c),o?e.classBindings=s:e.styleBindings=s}function mE(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&li(o,e)>=0&&(r[n+1]=cu(r[n+1]))}function Hf(t,e,r,n){let i=t[r+1],o=e===null,s=n?Gn(i):Er(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];vE(c,e)&&(a=!0,t[s+1]=n?cu(u):au(u)),s=n?Gn(u):Er(u)}a&&(t[r+1]=n?au(i):cu(i))}function vE(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?li(t,e)>=0:!1}function O(t,e,r){let n=H(),i=Mu();if(zn(n,i,e)){let o=ke(),s=Wh();EC(o,s,n,t,e,n[Ee],r,!1)}return O}function zf(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Gu(t,r,o[s],s,n)}function xr(t,e){return yE(t,e,null,!0),xr}function yE(t,e,r,n){let i=H(),o=ke(),s=nw(2);if(o.firstUpdatePass&&wE(o,t,s,n),e!==ln&&zn(i,s,e)){let a=o.data[Mr()];ME(o,a,i,i[Ee],t,i[s+1]=_E(e,r),n,s)}}function DE(t,e){return e>=t.expandoStartIndex}function wE(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Mr()],s=DE(t,r);SE(o,n)&&e===null&&!s&&(e=!1),e=CE(i,o,e,n),gE(i,o,e,r,s,n)}}function CE(t,e,r,n){let i=sw(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Dc(null,t,e,r,n),r=ci(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Dc(i,t,e,r,n),o===null){let c=bE(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Dc(null,t,e,c[1],n),c=ci(c,e.attrs,n),EE(t,e,n,c))}else o=IE(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function bE(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Er(n)!==0)return t[Gn(n)]}function EE(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Gn(i)]=n}function IE(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[i+1];f===ln&&(f=d?Ye:void 0);let h=d?cc(f,n):l===n?f:void 0;if(u&&!is(h)&&(h=cc(c,n)),is(h)&&(a=h,s))return a;let g=t[i+1];i=s?Gn(g):Er(g)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=cc(c,n))}return a}function is(t){return t!==void 0}function _E(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=xe(hi(t)))),t}function SE(t,e){return(t.flags&(e?8:16))!==0}function TE(t,e,r,n,i,o){let s=e.consts,a=zo(s,i),c=bs(e,t,2,n,a);return kp(e,r,c,zo(s,o)),c.attrs!==null&&Kc(c,c.attrs,!1),c.mergedAttrs!==null&&Kc(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function w(t,e,r,n){let i=H(),o=ke(),s=Qe+t,a=i[Ee],c=o.firstCreatePass?TE(s,o,i,e,r,n):o.data[s],u=xE(o,i,c,a,e,t);i[s]=u;let l=bu(c);return fi(c,!0),Mp(a,u,c),!sE(c)&&xu()&&$u(o,i,u,c),qD()===0&&Un(u,i),WD(),l&&(Rp(o,i,c),Np(o,c,i)),n!==null&&Op(i,c),w}function C(){let t=Ae();jh()?XD():(t=t.parent,fi(t,!1));let e=t;QD(e)&&KD(),ZD();let r=ke();return r.firstCreatePass&&(Nu(r,t),Sh(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&hw(e)&&zf(r,e,H(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&pw(e)&&zf(r,e,H(),e.stylesWithoutHost,!1),C}function ce(t,e,r,n){return w(t,e,r,n),C(),ce}var xE=(t,e,r,n,i,o)=>(Au(!0),yp(n,i,uw()));function zt(){return H()}var Nn=void 0;function AE(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var NE=["en",[["a","p"],["AM","PM"],Nn],[["AM","PM"],Nn,Nn],[["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"]],Nn,[["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"]],Nn,[["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}",Nn,"{1} 'at' {0}",Nn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",AE],wc={};function Je(t){let e=RE(t),r=qf(e);if(r)return r;let n=e.split("-")[0];if(r=qf(n),r)return r;if(n==="en")return NE;throw new b(701,!1)}function qf(t){return t in wc||(wc[t]=be.ng&&be.ng.common&&be.ng.common.locales&&be.ng.common.locales[t]),wc[t]}var de=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(de||{});function RE(t){return t.toLowerCase().replace(/_/g,"-")}var os="en-US";var OE=os;function FE(t){typeof t=="string"&&(OE=t.toLowerCase().replace(/_/g,"-"))}var kE=(t,e,r)=>{};function ue(t,e,r,n){let i=H(),o=ke(),s=Ae();return LE(o,i,i[Ee],s,t,e,n),ue}function PE(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function LE(t,e,r,n,i,o,s){let a=bu(n),u=t.firstCreatePass&&Up(t),l=e[lt],d=Bp(e),f=!0;if(n.type&3||s){let T=Ke(n,e),I=s?s(T):T,M=d.length,fe=s?Z=>s(Mt(Z[n.index])):n.index,J=null;if(!s&&a&&(J=PE(t,e,i,n.index)),J!==null){let Z=J.__ngLastListenerFn__||J;Z.__ngNextListenerFn__=o,J.__ngLastListenerFn__=o,f=!1}else{o=Zf(n,e,l,o),kE(T,i,o);let Z=r.listen(I,i,o);d.push(o,Z),u&&u.push(i,fe,M,M+1)}}else o=Zf(n,e,l,o);let h=n.outputs,g;if(f&&h!==null&&(g=h[i])){let T=g.length;if(T)for(let I=0;I-1?un(t.index,e):e;Wu(s,5);let a=Wf(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=Wf(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Le(t=1){return cw(t)}function ng(t,e,r,n){Vb(t,e,r,n)}function rg(t){let e=H(),r=ke(),n=Uh();_u(n+1);let i=Ku(r,n);if(t.dirty&&UD(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=$b(e,n);t.reset(o,Tw),t.notifyOnChanges()}return!0}return!1}function ig(){return Pb(H(),Uh())}function VE(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function og(t){let e=ew();return Eu(e,Qe+t)}function S(t,e=""){let r=H(),n=ke(),i=t+Qe,o=n.firstCreatePass?bs(n,i,1,e,null):n.data[i],s=jE(n,r,o,e,t);r[i]=s,xu()&&$u(n,r,s,o),fi(o,!1)}var jE=(t,e,r,n,i)=>(Au(!0),Ww(e[Ee],n));function At(t){return $e("",t,""),At}function $e(t,e,r){let n=H(),i=dE(n,t,e,r);return i!==ln&&jC(n,Mr(),i),$e}function BE(t,e,r){let n=ke();if(n.firstCreatePass){let i=an(t);uu(r,n.data,n.blueprint,i,!0),uu(e,n.data,n.blueprint,i,!1)}}function uu(t,e,r,n,i){if(t=Te(t),Array.isArray(t))for(let o=0;o>20;if(mr(t)||!t.multi){let h=new jn(u,i,v),g=bc(c,e,i?l:l+f,d);g===-1?(kc(Zo(a,s),o,c),Cc(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[g]=h,s[g]=h)}else{let h=bc(c,e,l+f,d),g=bc(c,e,l,l+f),T=h>=0&&r[h],I=g>=0&&r[g];if(i&&!I||!i&&!T){kc(Zo(a,s),o,c);let M=HE(i?$E:UE,r.length,i,n,u);!i&&I&&(r[g].providerFactory=M),Cc(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(M),s.push(M)}else{let M=sg(r[i?g:h],u,!i&&n);Cc(o,t,h>-1?h:g,M)}!i&&n&&I&&r[g].componentProviders++}}}function Cc(t,e,r,n){let i=mr(e),o=_D(e);if(i||o){let c=(o?Te(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function sg(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function bc(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>BE(n,i?i(t):t,e)}}var zE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=wh(!1,n.type),o=i.length>0?_s([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(E(Ie))});let t=e;return t})();function ag(t){Is("NgStandalone"),t.getStandaloneInjector=e=>e.get(zE).getOrCreateStandaloneInjector(t)}function Ss(t,e,r){let n=vs()+t,i=H();return i[n]===ln?Xu(i,n,r?e.call(r):e()):iE(i,n)}function Ts(t,e,r,n){return ug(H(),vs(),t,e,r,n)}function cg(t,e){let r=t[e];return r===ln?void 0:r}function ug(t,e,r,n,i,o){let s=e+r;return zn(t,s,i)?Xu(t,s+1,o?n.call(o,i):n(i)):cg(t,s+1)}function GE(t,e,r,n,i,o,s){let a=e+r;return oE(t,a,i,o)?Xu(t,a+2,s?n.call(s,i,o):n(i,o)):cg(t,a+2)}function Xe(t,e){let r=ke(),n,i=t+Qe;r.firstCreatePass?(n=qE(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=Fn(n.type,!0)),s,a=Fe(v);try{let c=Wo(!1),u=o();return Wo(c),VE(r,H(),i,u),u}finally{Fe(a)}}function qE(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function pt(t,e,r){let n=t+Qe,i=H(),o=Eu(i,n);return dg(i,n)?ug(i,vs(),e,o.transform,r,o):o.transform(r)}function lg(t,e,r,n){let i=t+Qe,o=H(),s=Eu(o,i);return dg(o,i)?GE(o,vs(),e,s.transform,r,n,s):s.transform(r,n)}function dg(t,e){return t[P].data[e].pure}var xo=null;function WE(t){xo!==null&&(t.defaultEncapsulation!==xo.defaultEncapsulation||t.preserveWhitespaces!==xo.preserveWhitespaces)||(xo=t)}var xs=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var el=new D(""),gi=new D(""),As=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,tl||(ZE(o),o.addToWindow(i)),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:()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!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,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(E(W),E(Ns),E(gi))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ns=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return tl?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function ZE(t){tl=t}var tl;function pn(t){return!!t&&typeof t.then=="function"}function nl(t){return!!t&&typeof t.subscribe=="function"}var Rs=new D(""),fg=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Rs,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(pn(s))n.push(s);else if(nl(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Os=new D("");function YE(){Vd(()=>{throw new b(600,!1)})}function QE(t){return t.isBoundToModule}var KE=10;function JE(t,e,r){try{let n=r();return pn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function hg(t,e){return Array.isArray(e)?e.reduce(hg,t):m(m({},t),e)}var gn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(sp),this.afterRenderEffectManager=p(Qu),this.zonelessEnabled=p(Zp),this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=p(fn).hasPendingTasks.pipe(x(n=>!n)),this._injector=p(Ie)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Jo;if(!this._injector.get(fg).done){let h=!o&&mh(n),g=!1;throw new b(405,g)}let a;o?a=n:a=this._injector.get(wr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=QE(a)?void 0:this._injector.get(cn),u=i||a.selector,l=a.create(Be.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(el,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 b(101,!1);let i=U(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,U(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(Cr,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;ooi(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>oi(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ko(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Os,[]);[...this._bootstrapListeners,...i].forEach(o=>o(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 b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ko(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function XE(t,e,r,n){if(!r&&!oi(t))return;zp(t,e,r&&!n?0:1)}var du=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Fs=(()=>{let e=class e{compileModuleSync(n){return new rs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=vh(n),s=vp(o.declarations).reduce((a,c)=>{let u=sn(c);return u&&a.push(new br(u)),a},[]);return new du(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),eI=new D("");function tI(t,e,r){let n=new rs(r);return Promise.resolve(n)}function Yf(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var nI=(()=>{let e=class e{constructor(){this.zone=p(W),this.changeDetectionScheduler=p(Dr),this.applicationRef=p(gn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function rI({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new W(pg()),[{provide:W,useFactory:t},{provide:pr,multi:!0,useFactory:()=>{let r=p(nI,{optional:!0});return()=>r.initialize()}},{provide:pr,multi:!0,useFactory:()=>{let r=p(oI);return()=>{r.initialize()}}},{provide:sp,useFactory:iI},e===!0?{provide:Yp,useValue:!0}:[]]}function iI(){let t=p(W),e=p(_t);return r=>t.runOutsideAngular(()=>e.handleError(r))}function pg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var oI=(()=>{let e=class e{constructor(){this.subscription=new oe,this.initialized=!1,this.zone=p(W),this.pendingTasks=p(fn)}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(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sI=(()=>{let e=class e{constructor(){this.appRef=p(gn),this.taskService=p(fn),this.ngZone=p(W),this.zonelessEnabled=p(Zp),this.disableScheduling=p(Yp,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new oe,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Lf:Qp;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&W.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Lf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aI(){return typeof $localize<"u"&&$localize.locale||os}var ks=new D("",{providedIn:"root",factory:()=>p(ks,L.Optional|L.SkipSelf)||aI()});var gg=new D(""),mg=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=gb(i?.ngZone,pg({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=i?.ignoreChangesOutsideZone,a=tE(n.moduleType,this.injector,[...rI({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:Dr,useExisting:sI}]),c=a.injector.get(_t,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{ko(this._modules,a),u.unsubscribe()})}),JE(c,o,()=>{let u=a.injector.get(fg);return u.runInitializers(),u.donePromise.then(()=>{let l=a.injector.get(ks,os);return FE(l||os),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,i=[]){let o=hg({},i);return tI(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(gn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new b(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(gg,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(E(Be))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),ei=null,vg=new D("");function cI(t){if(ei&&!ei.get(vg,!1))throw new b(400,!1);YE(),ei=t;let e=t.get(mg);return dI(t),e}function rl(t,e,r=[]){let n=`Platform: ${e}`,i=new D(n);return(o=[])=>{let s=yg();if(!s||s.injector.get(vg,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):cI(uI(a,n))}return lI(i)}}function uI(t=[],e){return Be.create({name:e,providers:[{provide:hs,useValue:"platform"},{provide:gg,useValue:new Set([()=>ei=null])},...t]})}function lI(t){let e=yg();if(!e)throw new b(401,!1);return e}function yg(){return ei?.get(mg)??null}function dI(t){t.get(ku,null)?.forEach(r=>r())}var mn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=fI;let t=e;return t})();function fI(t){return hI(Ae(),H(),(t&16)===16)}function hI(t,e,r){if(gs(t)&&!r){let n=un(t.index,e);return new $n(n,n)}else if(t.type&47){let n=e[It];return new $n(n,e)}return null}var fu=class{constructor(){}supports(e){return tg(e)}create(e){return new hu(e)}},pI=(t,e)=>e,hu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||pI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new pu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new ss),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ss),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},pu=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},gu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},ss=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new gu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Qf(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Kf()),deps:[[e,new vu,new ds]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new b(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Kf});let t=e;return t})();var Dg=rl(null,"core",[]),wg=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(E(gn))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})();function Ar(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ol(t){let e=U(null);try{return t()}finally{U(e)}}function Cg(t){let e=sn(t);if(!e)return null;let r=new br(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Sg=null;function Nt(){return Sg}function Tg(t){Sg??=t}var zs=class{};var _e=new D(""),vl=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(gI),providedIn:"platform"});let t=e;return t})(),xg=new D(""),gI=(()=>{let e=class e extends vl{constructor(){super(),this._doc=p(_e),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Nt().getBaseHref(this._doc)}onPopState(n){let i=Nt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=Nt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function yl(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function bg(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function qt(t){return t&&t[0]!=="?"?"?"+t:t}var Zt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(Dl),providedIn:"root"});let t=e;return t})(),Ag=new D(""),Dl=(()=>{let e=class e extends Zt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(_e).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 yl(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+qt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+qt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+qt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(E(vl),E(Ag,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ng=(()=>{let e=class e extends Zt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=yl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+qt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+qt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(E(vl),E(Ag,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Rr=(()=>{let e=class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=yI(bg(Eg(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+qt(i))}normalize(n){return e.stripTrailingSlash(vI(this._basePath,Eg(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qt(i)),o)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=qt,e.joinWithSlash=yl,e.stripTrailingSlash=bg,e.\u0275fac=function(i){return new(i||e)(E(Zt))},e.\u0275prov=y({token:e,factory:()=>mI(),providedIn:"root"});let t=e;return t})();function mI(){return new Rr(E(Zt))}function vI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Eg(t){return t.replace(/\/index.html$/,"")}function yI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Ne=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ne||{}),K=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(K||{}),He=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(He||{}),vn={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 DI(t){return Je(t)[de.LocaleId]}function wI(t,e,r){let n=Je(t),i=[n[de.DayPeriodsFormat],n[de.DayPeriodsStandalone]],o=et(i,e);return et(o,r)}function CI(t,e,r){let n=Je(t),i=[n[de.DaysFormat],n[de.DaysStandalone]],o=et(i,e);return et(o,r)}function bI(t,e,r){let n=Je(t),i=[n[de.MonthsFormat],n[de.MonthsStandalone]],o=et(i,e);return et(o,r)}function EI(t,e){let n=Je(t)[de.Eras];return et(n,e)}function Ps(t,e){let r=Je(t);return et(r[de.DateFormat],e)}function Ls(t,e){let r=Je(t);return et(r[de.TimeFormat],e)}function Vs(t,e){let n=Je(t)[de.DateTimeFormat];return et(n,e)}function qs(t,e){let r=Je(t),n=r[de.NumberSymbols][e];if(typeof n>"u"){if(e===vn.CurrencyDecimal)return r[de.NumberSymbols][vn.Decimal];if(e===vn.CurrencyGroup)return r[de.NumberSymbols][vn.Group]}return n}function Rg(t){if(!t[de.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[de.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function II(t){let e=Je(t);return Rg(e),(e[de.ExtraData][2]||[]).map(n=>typeof n=="string"?al(n):[al(n[0]),al(n[1])])}function MI(t,e,r){let n=Je(t);Rg(n);let i=[n[de.ExtraData][0],n[de.ExtraData][1]],o=et(i,e)||[];return et(o,r)||[]}function et(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function al(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var _I=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js={},SI=/((?:[^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]*)/,Wt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Wt||{}),G=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(G||{}),z=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(z||{});function TI(t,e,r,n){let i=LI(t);e=Gt(r,e)||e;let s=[],a;for(;e;)if(a=SI.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=Fg(n,c),i=PI(i,n,!0));let u="";return s.forEach(l=>{let d=FI(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Gs(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Gt(t,e){let r=DI(t);if(js[r]??={},js[r][e])return js[r][e];let n="";switch(e){case"shortDate":n=Ps(t,He.Short);break;case"mediumDate":n=Ps(t,He.Medium);break;case"longDate":n=Ps(t,He.Long);break;case"fullDate":n=Ps(t,He.Full);break;case"shortTime":n=Ls(t,He.Short);break;case"mediumTime":n=Ls(t,He.Medium);break;case"longTime":n=Ls(t,He.Long);break;case"fullTime":n=Ls(t,He.Full);break;case"short":let i=Gt(t,"shortTime"),o=Gt(t,"shortDate");n=Bs(Vs(t,He.Short),[i,o]);break;case"medium":let s=Gt(t,"mediumTime"),a=Gt(t,"mediumDate");n=Bs(Vs(t,He.Medium),[s,a]);break;case"long":let c=Gt(t,"longTime"),u=Gt(t,"longDate");n=Bs(Vs(t,He.Long),[c,u]);break;case"full":let l=Gt(t,"fullTime"),d=Gt(t,"fullDate");n=Bs(Vs(t,He.Full),[l,d]);break}return n&&(js[r][e]=n),n}function Bs(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function gt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===G.Hours)a===0&&r===-12&&(a=12);else if(t===G.FractionalSeconds)return xI(a,e);let c=qs(s,vn.MinusSign);return gt(a,e,c,n,i)}}function AI(t,e){switch(t){case G.FullYear:return e.getFullYear();case G.Month:return e.getMonth();case G.Date:return e.getDate();case G.Hours:return e.getHours();case G.Minutes:return e.getMinutes();case G.Seconds:return e.getSeconds();case G.FractionalSeconds:return e.getMilliseconds();case G.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function te(t,e,r=Ne.Format,n=!1){return function(i,o){return NI(i,o,t,e,r,n)}}function NI(t,e,r,n,i,o){switch(r){case z.Months:return bI(e,i,n)[t.getMonth()];case z.Days:return CI(e,i,n)[t.getDay()];case z.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=II(e),l=MI(e,i,n),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,T=s>=h.hours&&a>=h.minutes,I=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Wt.Short:return(i>=0?"+":"")+gt(s,2,o)+gt(Math.abs(i%60),2,o);case Wt.ShortGMT:return"GMT"+(i>=0?"+":"")+gt(s,1,o);case Wt.Long:return"GMT"+(i>=0?"+":"")+gt(s,2,o)+":"+gt(Math.abs(i%60),2,o);case Wt.Extended:return n===0?"Z":(i>=0?"+":"")+gt(s,2,o)+":"+gt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var RI=0,Hs=4;function OI(t){let e=Gs(t,RI,1).getDay();return Gs(t,0,1+(e<=Hs?Hs:Hs+7)-e)}function Og(t){let e=t.getDay(),r=e===0?-3:Hs-e;return Gs(t.getFullYear(),t.getMonth(),t.getDate()+r)}function cl(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=Og(r),s=OI(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return gt(i,t,qs(n,vn.MinusSign))}}function $s(t,e=!1){return function(r,n){let o=Og(r).getFullYear();return gt(o,t,qs(n,vn.MinusSign),e)}}var ul={};function FI(t){if(ul[t])return ul[t];let e;switch(t){case"G":case"GG":case"GGG":e=te(z.Eras,K.Abbreviated);break;case"GGGG":e=te(z.Eras,K.Wide);break;case"GGGGG":e=te(z.Eras,K.Narrow);break;case"y":e=me(G.FullYear,1,0,!1,!0);break;case"yy":e=me(G.FullYear,2,0,!0,!0);break;case"yyy":e=me(G.FullYear,3,0,!1,!0);break;case"yyyy":e=me(G.FullYear,4,0,!1,!0);break;case"Y":e=$s(1);break;case"YY":e=$s(2,!0);break;case"YYY":e=$s(3);break;case"YYYY":e=$s(4);break;case"M":case"L":e=me(G.Month,1,1);break;case"MM":case"LL":e=me(G.Month,2,1);break;case"MMM":e=te(z.Months,K.Abbreviated);break;case"MMMM":e=te(z.Months,K.Wide);break;case"MMMMM":e=te(z.Months,K.Narrow);break;case"LLL":e=te(z.Months,K.Abbreviated,Ne.Standalone);break;case"LLLL":e=te(z.Months,K.Wide,Ne.Standalone);break;case"LLLLL":e=te(z.Months,K.Narrow,Ne.Standalone);break;case"w":e=cl(1);break;case"ww":e=cl(2);break;case"W":e=cl(1,!0);break;case"d":e=me(G.Date,1);break;case"dd":e=me(G.Date,2);break;case"c":case"cc":e=me(G.Day,1);break;case"ccc":e=te(z.Days,K.Abbreviated,Ne.Standalone);break;case"cccc":e=te(z.Days,K.Wide,Ne.Standalone);break;case"ccccc":e=te(z.Days,K.Narrow,Ne.Standalone);break;case"cccccc":e=te(z.Days,K.Short,Ne.Standalone);break;case"E":case"EE":case"EEE":e=te(z.Days,K.Abbreviated);break;case"EEEE":e=te(z.Days,K.Wide);break;case"EEEEE":e=te(z.Days,K.Narrow);break;case"EEEEEE":e=te(z.Days,K.Short);break;case"a":case"aa":case"aaa":e=te(z.DayPeriods,K.Abbreviated);break;case"aaaa":e=te(z.DayPeriods,K.Wide);break;case"aaaaa":e=te(z.DayPeriods,K.Narrow);break;case"b":case"bb":case"bbb":e=te(z.DayPeriods,K.Abbreviated,Ne.Standalone,!0);break;case"bbbb":e=te(z.DayPeriods,K.Wide,Ne.Standalone,!0);break;case"bbbbb":e=te(z.DayPeriods,K.Narrow,Ne.Standalone,!0);break;case"B":case"BB":case"BBB":e=te(z.DayPeriods,K.Abbreviated,Ne.Format,!0);break;case"BBBB":e=te(z.DayPeriods,K.Wide,Ne.Format,!0);break;case"BBBBB":e=te(z.DayPeriods,K.Narrow,Ne.Format,!0);break;case"h":e=me(G.Hours,1,-12);break;case"hh":e=me(G.Hours,2,-12);break;case"H":e=me(G.Hours,1);break;case"HH":e=me(G.Hours,2);break;case"m":e=me(G.Minutes,1);break;case"mm":e=me(G.Minutes,2);break;case"s":e=me(G.Seconds,1);break;case"ss":e=me(G.Seconds,2);break;case"S":e=me(G.FractionalSeconds,1);break;case"SS":e=me(G.FractionalSeconds,2);break;case"SSS":e=me(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Us(Wt.Short);break;case"ZZZZZ":e=Us(Wt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Us(Wt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Us(Wt.Long);break;default:return null}return ul[t]=e,e}function Fg(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function kI(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function PI(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=Fg(e,i);return kI(t,n*(o-i))}function LI(t){if(Ig(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return Gs(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(_I))return VI(n)}let e=new Date(t);if(!Ig(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function VI(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function Ig(t){return t instanceof Date&&!isNaN(t.valueOf())}function Ws(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var ll=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},tt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new ll(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Mg(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Mg(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(v(dn),v(Hn),v(il))},e.\u0275dir=le({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Mg(t,e){t.context.$implicit=e.item}var nt=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new dl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){_g("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){_g("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(v(dn),v(Hn))},e.\u0275dir=le({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),dl=class{constructor(){this.$implicit=null,this.ngIf=null}};function _g(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${xe(e)}'.`)}function kg(t,e){return new b(2100,!1)}var fl=class{createSubscription(e,r){return ol(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){ol(()=>e.unsubscribe())}},hl=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},jI=new hl,BI=new fl,yn=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(pn(n))return jI;if(nl(n))return BI;throw kg(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(v(mn,16))},e.\u0275pipe=di({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var UI="mediumDate",$I=new D(""),HI=new D(""),Pg=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??UI,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return TI(n,a,s||this.locale,c)}catch(a){throw kg(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(v(ks,16),v($I,24),v(HI,24))},e.\u0275pipe=di({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Or=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})(),wl="browser",zI="server";function GI(t){return t===wl}function Zs(t){return t===zI}var Lg=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>GI(p(Tt))?new pl(p(_e),window):new gl});let t=e;return t})(),pl=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=qI(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function qI(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var gl=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Nr=class{};var vi=class{},Qs=class{},Yt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var bl=class{encodeKey(e){return Vg(e)}encodeValue(e){return Vg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function WI(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var ZI=/%(\d[a-f0-9])/gi,YI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vg(t){return encodeURIComponent(t).replace(ZI,(e,r)=>YI[r]??e)}function Ys(t){return`${t}`}var wn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new bl,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=WI(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(Ys):[Ys(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Ys(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Ys(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var El=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function QI(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function jg(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Bg(t){return typeof Blob<"u"&&t instanceof Blob}function Ug(t){return typeof FormData<"u"&&t instanceof FormData}function KI(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var mi=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(QI(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Yt,this.context??=new El,!this.params)this.params=new wn,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,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Cn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Cn||{}),yi=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Yt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ks=class t extends yi{constructor(e={}){super(e),this.type=Cn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Di=class t extends yi{constructor(e={}){super(e),this.type=Cn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Dn=class extends yi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},qg=200,JI=204;function Cl(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var _l=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof mi)s=n;else{let u;o.headers instanceof Yt?u=o.headers:u=new Yt(o.headers);let l;o.params&&(o.params instanceof wn?l=o.params:l=new wn({fromObject:o.params})),s=new mi(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=_(s).pipe(Pt(u=>this.handler.handle(u)));if(n instanceof mi||o.observe==="events")return a;let c=a.pipe(Ce(u=>u instanceof Di));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(x(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(x(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(x(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(x(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new wn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Cl(o,i))}post(n,i,o={}){return this.request("POST",n,Cl(o,i))}put(n,i,o={}){return this.request("PUT",n,Cl(o,i))}};e.\u0275fac=function(i){return new(i||e)(E(vi))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),XI=/^\)\]\}',?\n/,e0="X-Request-URL";function $g(t){if(t.url)return t.url;let e=e0.toLocaleLowerCase();return t.headers.get(e)}var t0=(()=>{let e=class e{constructor(){this.fetchImpl=p(Il,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(W)}handle(n){return new B(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(Ml,s=>i.error(new Dn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Yr(this,null,function*(){let s=this.createRequestInit(n),a;try{let g=this.fetchImpl(n.urlWithParams,m({signal:i},s));n0(g),o.next({type:Cn.Sent}),a=yield g}catch(g){o.error(new Dn({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let c=new Yt(a.headers),u=a.statusText,l=$g(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&o.next(new Ks({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),T=[],I=a.body.getReader(),M=0,fe,J,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Yr(this,null,function*(){for(;;){let{done:ve,value:We}=yield I.read();if(ve)break;if(T.push(We),M+=We.length,n.reportProgress){J=n.responseType==="text"?(J??"")+(fe??=new TextDecoder).decode(We,{stream:!0}):void 0;let Yn=()=>o.next({type:Cn.DownloadProgress,total:g?+g:void 0,loaded:M,partialText:J});Z?Z.run(Yn):Yn()}}}));let qe=this.concatChunks(T,M);try{let ve=a.headers.get("Content-Type")??"";f=this.parseBody(n,qe,ve)}catch(ve){o.error(new Dn({error:ve,headers:new Yt(a.headers),status:a.status,statusText:a.statusText,url:$g(a)??n.urlWithParams}));return}}d===0&&(d=f?qg:0),d>=200&&d<300?(o.next(new Di({body:f,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new Dn({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(XI,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Il=class{};function Ml(){}function n0(t){t.then(Ml,Ml)}function Wg(t,e){return e(t)}function r0(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function i0(t,e,r){return(n,i)=>Ue(r,()=>e(n,o=>t(o,i)))}var Sl=new D(""),Tl=new D(""),o0=new D(""),Zg=new D("",{providedIn:"root",factory:()=>!0});function s0(){let t=null;return(e,r)=>{t===null&&(t=(p(Sl,{optional:!0})??[]).reduceRight(r0,Wg));let n=p(fn);if(p(Zg)){let o=n.add();return t(e,r).pipe(tn(()=>n.remove(o)))}else return t(e,r)}}var Hg=(()=>{let e=class e extends vi{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(fn),this.contributeToStability=p(Zg)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Tl),...this.injector.get(o0,[])]));this.chain=i.reduceRight((o,s)=>i0(o,s,this.injector),Wg)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(tn(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(E(Qs),E(Ie))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var a0=/^\)\]\}',?\n/;function c0(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var zg=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?X(i.\u0275loadImpl()):_(null)).pipe(De(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((I,M)=>a.setRequestHeader(I,M.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let I=n.detectContentTypeHeader();I!==null&&a.setRequestHeader("Content-Type",I)}if(n.responseType){let I=n.responseType.toLowerCase();a.responseType=I!=="json"?I:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let I=a.statusText||"OK",M=new Yt(a.getAllResponseHeaders()),fe=c0(a)||n.url;return u=new Ks({headers:M,status:a.status,statusText:I,url:fe}),u},d=()=>{let{headers:I,status:M,statusText:fe,url:J}=l(),Z=null;M!==JI&&(Z=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=Z?qg:0);let qe=M>=200&&M<300;if(n.responseType==="json"&&typeof Z=="string"){let ve=Z;Z=Z.replace(a0,"");try{Z=Z!==""?JSON.parse(Z):null}catch(We){Z=ve,qe&&(qe=!1,Z={error:We,text:Z})}}qe?(s.next(new Di({body:Z,headers:I,status:M,statusText:fe,url:J||void 0})),s.complete()):s.error(new Dn({error:Z,headers:I,status:M,statusText:fe,url:J||void 0}))},f=I=>{let{url:M}=l(),fe=new Dn({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(fe)},h=!1,g=I=>{h||(s.next(l()),h=!0);let M={type:Cn.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(M.total=I.total),n.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},T=I=>{let M={type:Cn.UploadProgress,loaded:I.loaded};I.lengthComputable&&(M.total=I.total),s.next(M)};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",T)),a.send(c),s.next({type:Cn.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",T)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(E(Nr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Yg=new D(""),u0="XSRF-TOKEN",l0=new D("",{providedIn:"root",factory:()=>u0}),d0="X-XSRF-TOKEN",f0=new D("",{providedIn:"root",factory:()=>d0}),Js=class{},h0=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,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=Ws(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(E(_e),E(Tt),E(l0))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function p0(t,e){let r=t.url.toLowerCase();if(!p(Yg)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(Js).getToken(),i=p(f0);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Qg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Qg||{});function g0(t,e){return{\u0275kind:t,\u0275providers:e}}function m0(...t){let e=[_l,zg,Hg,{provide:vi,useExisting:Hg},{provide:Qs,useFactory:()=>p(t0,{optional:!0})??p(zg)},{provide:Tl,useValue:p0,multi:!0},{provide:Yg,useValue:!0},{provide:Js,useClass:h0}];for(let r of t)e.push(...r.\u0275providers);return fs(e)}var Gg=new D("");function v0(){return g0(Qg.LegacyInterceptors,[{provide:Gg,useFactory:s0},{provide:Tl,useExisting:Gg,multi:!0}])}var Kg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({providers:[m0(v0())]});let t=e;return t})();var Nl=class extends zs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Rl=class t extends Nl{static makeCurrent(){Tg(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=D0();return r==null?null:w0(r)}resetBaseElement(){wi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ws(document.cookie,e)}},wi=null;function D0(){return wi=wi||document.querySelector("base"),wi?wi.getAttribute("href"):null}function w0(t){return new URL(t,document.baseURI).pathname}var Ol=class{addToWindow(e){be.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new b(5103,!1);return o},be.getAllAngularTestabilities=()=>e.getAllTestabilities(),be.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=be.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};be.frameworkStabilizers||(be.frameworkStabilizers=[]),be.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?Nt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},C0=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Fl=new D(""),tm=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(E(Fl),E(W))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Xs=class{constructor(e){this._doc=e}},xl="ng-app-id",nm=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Zs(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${xl}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(xl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(xl,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(E(_e),E(ys),E(Pu,8),E(Tt))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Al={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Pl=/%COMP%/g,rm="%COMP%",b0=`_nghost-${rm}`,E0=`_ngcontent-${rm}`,I0=!0,M0=new D("",{providedIn:"root",factory:()=>I0});function _0(t){return E0.replace(Pl,t)}function S0(t){return b0.replace(Pl,t)}function im(t,e){return e.map(r=>r.replace(Pl,t))}var Jg=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Zs(c),this.defaultRenderer=new Ci(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===bt.ShadowDom&&(i=$(m({},i),{encapsulation:bt.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ea?o.applyToHost(n):o instanceof bi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case bt.Emulated:s=new ea(u,l,i,this.appId,d,a,c,f);break;case bt.ShadowDom:return new kl(u,l,n,i,a,c,this.nonce,f);default:s=new bi(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(E(tm),E(nm),E(ys),E(M0),E(_e),E(Tt),E(W),E(Pu))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ci=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Al[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Xg(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Xg(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new b(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Al[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Al[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(jt.DashCase|jt.Important)?e.style.setProperty(r,n,i&jt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&jt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Nt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Xg(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var kl=class extends Ci{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=im(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bi=class extends Ci{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?im(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ea=class extends bi{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=_0(u),this.hostAttr=S0(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},T0=(()=>{let e=class e extends Xs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),em=["alt","control","meta","shift"],x0={"\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"},A0={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},N0=(()=>{let e=class e extends Xs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),em.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=x0[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),em.forEach(a=>{if(a!==o){let c=A0[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function R0(){Rl.makeCurrent()}function O0(){return new _t}function F0(){return fp(document),document}var k0=[{provide:Tt,useValue:wl},{provide:ku,useValue:R0,multi:!0},{provide:_e,useFactory:F0,deps:[]}],om=rl(Dg,"browser",k0),P0=new D(""),L0=[{provide:gi,useClass:Ol,deps:[]},{provide:el,useClass:As,deps:[W,Ns,gi]},{provide:As,useClass:As,deps:[W,Ns,gi]}],V0=[{provide:hs,useValue:"root"},{provide:_t,useFactory:O0,deps:[]},{provide:Fl,useClass:T0,multi:!0,deps:[_e,W,Tt]},{provide:Fl,useClass:N0,multi:!0,deps:[_e]},Jg,nm,tm,{provide:Cr,useExisting:Jg},{provide:Nr,useClass:C0,deps:[]},[]],sm=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ys,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(E(P0,12))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({providers:[...V0,...L0],imports:[Or,wg]});let t=e;return t})();var am=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var F="primary",Li=Symbol("RouteTitle"),Ul=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function jr(t){return new Ul(t)}function j0(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function wm(t){return t.length>0?t[t.length-1]:null}function In(t){return Xa(t)?t:pn(t)?X(Promise.resolve(t)):_(t)}var U0={exact:bm,subset:Em},Cm={exact:$0,subset:H0,ignored:()=>!0};function um(t,e,r){return U0[r.paths](t.root,e.root,r.matrixParams)&&Cm[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function $0(t,e){return Ot(t,e)}function bm(t,e,r){if(!Wn(t.segments,e.segments)||!ra(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!bm(t.children[n],e.children[n],r))return!1;return!0}function H0(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Dm(t[r],e[r]))}function Em(t,e,r){return Im(t,e,e.segments,r)}function Im(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Wn(i,r)||e.hasChildren()||!ra(i,r,n))}else if(t.segments.length===r.length){if(!Wn(t.segments,r)||!ra(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Em(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Wn(t.segments,i)||!ra(t.segments,i,n)||!t.children[F]?!1:Im(t.children[F],e,o,n)}}function ra(t,e,r){return e.every((n,i)=>Cm[r](t[i].parameters,n.parameters))}var bn=class{constructor(e=new q([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=jr(this.queryParams),this._queryParamMap}toString(){return q0.serialize(this)}},q=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ia(this)}},qn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=jr(this.parameters),this._parameterMap}toString(){return _m(this)}};function z0(t,e){return Wn(t,e)&&t.every((r,n)=>Ot(r.parameters,e[n].parameters))}function Wn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function G0(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===F&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==F&&(r=r.concat(e(i,n)))}),r}var Vi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new Br,providedIn:"root"});let t=e;return t})(),Br=class{parse(e){let r=new zl(e);return new bn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Ei(e.root,!0)}`,n=Y0(e.queryParams),i=typeof e.fragment=="string"?`#${W0(e.fragment)}`:"";return`${r}${n}${i}`}},q0=new Br;function ia(t){return t.segments.map(e=>_m(e)).join("/")}function Ei(t,e){if(!t.hasChildren())return ia(t);if(e){let r=t.children[F]?Ei(t.children[F],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==F&&n.push(`${i}:${Ei(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=G0(t,(n,i)=>i===F?[Ei(t.children[F],!1)]:[`${i}:${Ei(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[F]!=null?`${ia(t)}/${r[0]}`:`${ia(t)}/(${r.join("//")})`}}function Mm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ta(t){return Mm(t).replace(/%3B/gi,";")}function W0(t){return encodeURI(t)}function Hl(t){return Mm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oa(t){return decodeURIComponent(t)}function lm(t){return oa(t.replace(/\+/g,"%20"))}function _m(t){return`${Hl(t.path)}${Z0(t.parameters)}`}function Z0(t){return Object.entries(t).map(([e,r])=>`;${Hl(e)}=${Hl(r)}`).join("")}function Y0(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ta(r)}=${ta(i)}`).join("&"):`${ta(r)}=${ta(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Q0=/^[^\/()?;#]+/;function Ll(t){let e=t.match(Q0);return e?e[0]:""}var K0=/^[^\/()?;=#]+/;function J0(t){let e=t.match(K0);return e?e[0]:""}var X0=/^[^=?&#]+/;function eM(t){let e=t.match(X0);return e?e[0]:""}var tM=/^[^&#]+/;function nM(t){let e=t.match(tM);return e?e[0]:""}var zl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[F]=new q(e,r)),n}parseSegment(){let e=Ll(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new qn(oa(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=J0(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Ll(this.remaining);i&&(n=i,this.capture(n))}e[oa(r)]=oa(n)}parseQueryParam(e){let r=eM(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=nM(this.remaining);s&&(n=s,this.capture(n))}let i=lm(r),o=lm(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Ll(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=F);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[F]:new q([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function Sm(t){return t.segments.length>0?new q([],{[F]:t}):t}function Tm(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=Tm(i);if(n===F&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new q(t.segments,e);return rM(r)}function rM(t){if(t.numberOfChildren===1&&t.children[F]){let e=t.children[F];return new q(t.segments.concat(e.segments),e.children)}return t}function xi(t){return t instanceof bn}function iM(t,e,r=null,n=null){let i=xm(t);return Am(i,e,r,n)}function xm(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new q(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=Sm(n);return e??i}function Am(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Vl(i,i,i,r,n);let o=oM(e);if(o.toRoot())return Vl(i,i,new q([],{}),r,n);let s=sM(o,i,t),a=s.processChildren?_i(s.segmentGroup,s.index,o.commands):Rm(s.segmentGroup,s.index,o.commands);return Vl(i,s.segmentGroup,a,r,n)}function sa(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ai(t){return typeof t=="object"&&t!=null&&t.outlets}function Vl(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Nm(t,e,r);let a=Sm(Tm(s));return new bn(a,o,i)}function Nm(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=Nm(o,e,r)}),new q(t.segments,n)}var aa=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&sa(n[0]))throw new b(4003,!1);let i=n.find(Ai);if(i&&i!==wm(n))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oM(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new aa(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new aa(r,e,n)}var Pr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function sM(t,e,r){if(t.isAbsolute)return new Pr(e,!0,0);if(!r)return new Pr(e,!1,NaN);if(r.parent===null)return new Pr(r,!0,0);let n=sa(t.commands[0])?0:1,i=r.segments.length-1+n;return aM(r,i,t.numberOfDoubleDots)}function aM(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new b(4005,!1);i=n.segments.length}return new Pr(n,!1,i-o)}function cM(t){return Ai(t[0])?t[0].outlets:{[F]:t}}function Rm(t,e,r){if(t??=new q([],{}),t.segments.length===0&&t.hasChildren())return _i(t,e,r);let n=uM(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==F)&&t.children[F]&&t.numberOfChildren===1&&t.children[F].segments.length===0){let o=_i(t.children[F],e,r);return new q(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Rm(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new q(t.segments,i)}}function uM(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(Ai(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!fm(c,u,s))return o;n+=2}else{if(!fm(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Gl(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Gl(new q([],{}),0,n))}),e}function dm(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function fm(t,e,r){return t==r.path&&Ot(e,r.parameters)}var Si="imperative",we=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(we||{}),rt=class{constructor(e,r){this.id=e,this.url=r}},Ur=class extends rt{constructor(e,r,n="imperative",i=null){super(e,r),this.type=we.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vt=class extends rt{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=we.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ge||{}),ca=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ca||{}),Qt=class extends rt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=we.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},En=class extends rt{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=we.NavigationSkipped}},Ni=class extends rt{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=we.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ua=class extends rt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ql=class extends rt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wl=class extends rt{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=we.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Zl=class extends rt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yl=class extends rt{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ql=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Kl=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Jl=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xl=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ed=class{constructor(e){this.snapshot=e,this.type=we.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},td=class{constructor(e){this.snapshot=e,this.type=we.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},la=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=we.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ri=class{},$r=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var nd=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ji(this.injector),this.attachRef=null}},ji=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new nd(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(E(Ie))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),da=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=rd(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=rd(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=id(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return id(e,this._root).map(r=>r.value)}};function rd(t,e){if(t===e.value)return e;for(let r of e.children){let n=rd(t,r);if(n)return n}return null}function id(t,e){if(t===e.value)return[e];for(let r of e.children){let n=id(t,r);if(n.length)return n.unshift(e),n}return[]}var ze=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function kr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var fa=class extends da{constructor(e,r){super(e),this.snapshot=r,hd(this,e)}toString(){return this.snapshot.toString()}};function Om(t){let e=dM(t),r=new ye([new qn("",{})]),n=new ye({}),i=new ye({}),o=new ye({}),s=new ye(""),a=new yt(r,n,o,s,i,F,t,e.root);return a.snapshot=e.root,new fa(new ze(a,[]),e)}function dM(t){let e={},r={},n={},i="",o=new Lr([],e,n,i,r,F,t,null,{});return new pa("",new ze(o,[]))}var yt=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(x(u=>u[Li]))??_(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}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(x(e=>jr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(x(e=>jr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ha(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),i?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},i&&km(i)&&(n.resolve[Li]=i.title),n}var Lr=class{get title(){return this.data?.[Li]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,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??=jr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=jr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},pa=class extends da{constructor(e,r){super(r),this.url=e,hd(this,r)}toString(){return Fm(this._root)}};function hd(t,e){e.value._routerState=t,e.children.forEach(r=>hd(t,r))}function Fm(t){let e=t.children.length>0?` { ${t.children.map(Fm).join(", ")} } `:"";return`${t.value}${e}`}function jl(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Ot(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Ot(e.params,r.params)||t.paramsSubject.next(r.params),B0(e.url,r.url)||t.urlSubject.next(r.url),Ot(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function od(t,e){let r=Ot(t.params,e.params)&&z0(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||od(t.parent,e.parent))}function km(t){return typeof t.title=="string"||t.title===null}var pd=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=F,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(ji),this.location=p(dn),this.changeDetector=p(mn),this.inputBinder=p(Da,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new sd(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=le({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ft]});let t=e;return t})(),sd=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===yt?this.route:e===ji?this.childContexts:this.parent.get(e,r)}},Da=new D(""),hm=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Jr([i.queryParams,i.params,i.data]).pipe(De(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?_(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Cg(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function fM(t,e,r){let n=Oi(t,e._root,r?r._root:void 0);return new fa(n,e)}function Oi(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=hM(t,e,r);return new ze(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Oi(t,a)),s}}let n=pM(e.value),i=e.children.map(o=>Oi(t,o));return new ze(n,i)}}function hM(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Oi(t,n,i);return Oi(t,n)})}function pM(t){return new yt(new ye(t.url),new ye(t.params),new ye(t.queryParams),new ye(t.fragment),new ye(t.data),t.outlet,t.component,t)}var Fi=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Pm="ngNavigationCancelingError";function ga(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=xi(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Lm(!1,Ge.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function Lm(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Pm]=!0,r.cancellationCode=e,r}function gM(t){return Vm(t)&&xi(t.url)}function Vm(t){return!!t&&t[Pm]}var mM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[ag],decls:1,vars:0,template:function(i,o){i&1&&ce(0,"router-outlet")},dependencies:[pd],encapsulation:2});let t=e;return t})();function vM(t,e){return t.providers&&!t._injector&&(t._injector=_s(t.providers,e,`Route: ${t.path}`)),t._injector??e}function gd(t){let e=t.children&&t.children.map(gd),r=e?$(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==F&&(r.component=mM),r}function mt(t){return t.outlet||F}function yM(t,e){let r=t.filter(n=>mt(n)===e);return r.push(...t.filter(n=>mt(n)!==e)),r}function Bi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var DM=(t,e,r,n)=>x(i=>(new ad(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),ad=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),jl(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=kr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=kr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=kr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=kr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new td(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Xl(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(jl(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),jl(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Bi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},ma=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Vr=class{constructor(e,r){this.component=e,this.route=r}};function wM(t,e,r){let n=t._root,i=e?e._root:null;return Ii(n,i,r,[n.value])}function CM(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function zr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!th(t)?t:e.get(t):n}function Ii(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=kr(e);return t.children.forEach(s=>{bM(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ti(a,r.getContext(s),i)),i}function bM(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=EM(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new ma(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ii(t,e,a?a.children:null,n,i):Ii(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Vr(a.outlet.component,s))}else s&&Ti(e,a,i),i.canActivateChecks.push(new ma(n)),o.component?Ii(t,null,a?a.children:null,n,i):Ii(t,null,r,n,i);return i}function EM(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Wn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Wn(t.url,e.url)||!Ot(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!od(t,e)||!Ot(t.queryParams,e.queryParams);case"paramsChange":default:return!od(t,e)}}function Ti(t,e,r){let n=kr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Ti(s,e.children.getContext(o),r):Ti(s,null,r):Ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Vr(e.outlet.component,i)):r.canDeactivateChecks.push(new Vr(null,i)):r.canDeactivateChecks.push(new Vr(null,i))}function Ui(t){return typeof t=="function"}function IM(t){return typeof t=="boolean"}function MM(t){return t&&Ui(t.canLoad)}function _M(t){return t&&Ui(t.canActivate)}function SM(t){return t&&Ui(t.canActivateChild)}function TM(t){return t&&Ui(t.canDeactivate)}function xM(t){return t&&Ui(t.canMatch)}function jm(t){return t instanceof kt||t?.name==="EmptyError"}var na=Symbol("INITIAL_VALUE");function Hr(){return De(t=>Jr(t.map(e=>e.pipe(Lt(1),sc(na)))).pipe(x(e=>{for(let r of e)if(r!==!0){if(r===na)return na;if(r===!1||AM(r))return r}return!0}),Ce(e=>e!==na),Lt(1)))}function AM(t){return xi(t)||t instanceof Fi}function NM(t,e){return ge(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?_($(m({},r),{guardsResult:!0})):RM(s,n,i,t).pipe(ge(a=>a&&IM(a)?OM(n,o,t,e):_(a)),x(a=>$(m({},r),{guardsResult:a})))})}function RM(t,e,r,n){return X(t).pipe(ge(i=>VM(i.component,i.route,r,e,n)),Dt(i=>i!==!0,!0))}function OM(t,e,r,n){return X(e).pipe(Pt(i=>or(kM(i.route.parent,n),FM(i.route,n),LM(t,i.path,r),PM(t,i.route,r))),Dt(i=>i!==!0,!0))}function FM(t,e){return t!==null&&e&&e(new ed(t)),_(!0)}function kM(t,e){return t!==null&&e&&e(new Jl(t)),_(!0)}function PM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return _(!0);let i=n.map(o=>Eo(()=>{let s=Bi(e)??r,a=zr(o,s),c=_M(a)?a.canActivate(e,t):Ue(s,()=>a(e,t));return In(c).pipe(Dt())}));return _(i).pipe(Hr())}function LM(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>CM(s)).filter(s=>s!==null).map(s=>Eo(()=>{let a=s.guards.map(c=>{let u=Bi(s.node)??r,l=zr(c,u),d=SM(l)?l.canActivateChild(n,t):Ue(u,()=>l(n,t));return In(d).pipe(Dt())});return _(a).pipe(Hr())}));return _(o).pipe(Hr())}function VM(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return _(!0);let s=o.map(a=>{let c=Bi(e)??i,u=zr(a,c),l=TM(u)?u.canDeactivate(t,e,r,n):Ue(c,()=>u(t,e,r,n));return In(l).pipe(Dt())});return _(s).pipe(Hr())}function jM(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return _(!0);let o=i.map(s=>{let a=zr(s,t),c=MM(a)?a.canLoad(e,r):Ue(t,()=>a(e,r));return In(c)});return _(o).pipe(Hr(),Bm(n))}function Bm(t){return Za(se(e=>{if(typeof e!="boolean")throw ga(t,e)}),x(e=>e===!0))}function BM(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return _(!0);let o=i.map(s=>{let a=zr(s,t),c=xM(a)?a.canMatch(e,r):Ue(t,()=>a(e,r));return In(c)});return _(o).pipe(Hr(),Bm(n))}var ki=class{constructor(e){this.segmentGroup=e||null}},Pi=class extends Error{constructor(e){super(),this.urlTree=e}};function Fr(t){return ir(new ki(t))}function UM(t){return ir(new b(4e3,!1))}function $M(t){return ir(Lm(!1,Ge.GuardRejected))}var cd=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return _(n);if(i.numberOfChildren>1||!i.children[F])return UM(`${e.redirectTo}`);i=i.children[F]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:g,title:T}=i,I=Ue(o,()=>a({params:h,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:T}));if(I instanceof bn)throw new Pi(I);r=I}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Pi(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new bn(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new q(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},ud={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function HM(t,e,r,n,i){let o=md(t,e,r);return o.matched?(n=vM(e,n),BM(n,e,r,i).pipe(x(s=>s===!0?o:m({},ud)))):_(o)}function md(t,e,r){if(e.path==="**")return zM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},ud):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||j0)(r,t,e);if(!i)return m({},ud);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?m(m({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function zM(t){return{matched:!0,parameters:t.length>0?wm(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function pm(t,e,r,n){return r.length>0&&WM(t,r,n)?{segmentGroup:new q(e,qM(n,new q(r,t.children))),slicedSegments:[]}:r.length===0&&ZM(t,r,n)?{segmentGroup:new q(t.segments,GM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new q(t.segments,t.children),slicedSegments:r}}function GM(t,e,r,n){let i={};for(let o of r)if(wa(t,e,o)&&!n[mt(o)]){let s=new q([],{});i[mt(o)]=s}return m(m({},n),i)}function qM(t,e){let r={};r[F]=e;for(let n of t)if(n.path===""&&mt(n)!==F){let i=new q([],{});r[mt(n)]=i}return r}function WM(t,e,r){return r.some(n=>wa(t,e,n)&&mt(n)!==F)}function ZM(t,e,r){return r.some(n=>wa(t,e,n))}function wa(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function YM(t,e,r,n){return mt(t)!==n&&(n===F||!wa(e,r,t))?!1:md(e,t,r).matched}function QM(t,e,r){return e.length===0&&!t.children[r]}var ld=class{};function KM(t,e,r,n,i,o,s="emptyOnly"){return new dd(t,e,r,n,i,s,o).recognize()}var JM=31,dd=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new cd(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=pm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(x(({children:r,rootSnapshot:n})=>{let i=new ze(n,r),o=new pa("",i),s=iM(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Lr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),F,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,F,r).pipe(x(n=>({children:n,rootSnapshot:r})),Ze(n=>{if(n instanceof Pi)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ki?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(x(s=>s instanceof ze?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return X(o).pipe(Pt(s=>{let a=n.children[s],c=yM(r,s);return this.processSegmentGroup(e,c,a,s,i)}),oc((s,a)=>(s.push(...a),s)),en(null),ic(),ge(s=>{if(s===null)return Fr(n);let a=Um(s);return XM(a),_(a)}))}processSegment(e,r,n,i,o,s,a){return X(r).pipe(Pt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Ze(u=>{if(u instanceof ki)return _(null);throw u}))),Dt(c=>!!c),Ze(c=>{if(jm(c))return QM(n,i,o)?_(new ld):Fr(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return YM(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):Fr(i):Fr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=md(r,i,o);if(!c)return Fr(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JM&&(this.allowRedirects=!1));let h=new Lr(o,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,gm(i),mt(i),i.component??i._loadedComponent??null,i,mm(i)),g=ha(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(g.params),h.data=Object.freeze(g.data);let T=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(i,T).pipe(ge(I=>this.processSegment(e,n,r,I.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=HM(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(De(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(De(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=new Lr(f,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,gm(n),mt(n),n.component??n._loadedComponent??null,n,mm(n)),T=ha(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(T.params),g.data=Object.freeze(T.data);let{segmentGroup:I,slicedSegments:M}=pm(r,f,h,u);if(M.length===0&&I.hasChildren())return this.processChildren(l,u,I,g).pipe(x(J=>new ze(g,J)));if(u.length===0&&M.length===0)return _(new ze(g,[]));let fe=mt(n)===o;return this.processSegment(l,u,I,M,fe?F:o,!0,g).pipe(x(J=>new ze(g,J instanceof ze?[J]:[])))}))):Fr(r)))}getChildConfig(e,r,n){return r.children?_({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?_({routes:r._loadedRoutes,injector:r._loadedInjector}):jM(e,r,n,this.urlSerializer).pipe(ge(i=>i?this.configLoader.loadChildren(e,r).pipe(se(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):$M(r))):_({routes:[],injector:e})}};function XM(t){t.sort((e,r)=>e.value.outlet===F?-1:r.value.outlet===F?1:e.value.outlet.localeCompare(r.value.outlet))}function e_(t){let e=t.value.routeConfig;return e&&e.path===""}function Um(t){let e=[],r=new Set;for(let n of t){if(!e_(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Um(n.children);e.push(new ze(n.value,i))}return e.filter(n=>!r.has(n))}function gm(t){return t.data||{}}function mm(t){return t.resolve||{}}function t_(t,e,r,n,i,o){return ge(s=>KM(t,e,r,n,s.extractedUrl,i,o).pipe(x(({state:a,tree:c})=>$(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function n_(t,e){return ge(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return _(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of $m(c))s.add(u);let a=0;return X(s).pipe(Pt(c=>o.has(c)?r_(c,n,t,e):(c.data=ha(c,c.parent,t).resolve,_(void 0))),se(()=>a++),sr(1),ge(c=>a===s.size?_(r):Ve))})}function $m(t){let e=t.children.map(r=>$m(r)).flat();return[t,...e]}function r_(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!km(i)&&(o[Li]=i.title),i_(o,t,e,n).pipe(x(s=>(t._resolvedData=s,t.data=ha(t,t.parent,r).resolve,null)))}function i_(t,e,r,n){let i=$l(t);if(i.length===0)return _({});let o={};return X(i).pipe(ge(s=>o_(t[s],e,r,n).pipe(Dt(),se(a=>{if(a instanceof Fi)throw ga(new Br,a);o[s]=a}))),sr(1),nc(o),Ze(s=>jm(s)?Ve:ir(s)))}function o_(t,e,r,n){let i=Bi(e)??n,o=zr(t,i),s=o.resolve?o.resolve(e,r):Ue(i,()=>o(e,r));return In(s)}function Bl(t){return De(e=>{let r=t(e);return r?X(r).pipe(x(()=>e)):_(e)})}var Hm=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===F);return i}getResolvedTitleForRoute(n){return n.data[Li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(s_),providedIn:"root"});let t=e;return t})(),s_=(()=>{let e=class e extends Hm{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(E(am))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$i=new D("",{providedIn:"root",factory:()=>({})}),va=new D(""),vd=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Fs)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return _(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=In(n.loadComponent()).pipe(x(zm),se(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),tn(()=>{this.componentLoaders.delete(n)})),o=new nr(i,()=>new he).pipe(tr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return _({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=a_(i,this.compiler,n,this.onLoadEndListener).pipe(tn(()=>{this.childrenLoaders.delete(i)})),a=new nr(s,()=>new he).pipe(tr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function a_(t,e,r,n){return In(t.loadChildren()).pipe(x(zm),ge(i=>i instanceof ai||Array.isArray(i)?_(i):X(e.compileModuleAsync(i))),x(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(va,[],{optional:!0,self:!0}).flat()),{routes:s.map(gd),injector:o}}))}function c_(t){return t&&typeof t=="object"&&"default"in t}function zm(t){return c_(t)?t.default:t}var yd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(u_),providedIn:"root"});let t=e;return t})(),u_=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Gm=new D(""),qm=new D("");function l_(t,e,r){let n=t.get(qm),i=t.get(_e);return t.get(W).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),d_(t))),{onViewTransitionCreated:c}=n;return c&&Ue(t,()=>c({transition:a,from:e,to:r})),s})}function d_(t){return new Promise(e=>{Ms(e,{injector:t})})}var f_=new D(""),Dd=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=p(vd),this.environmentInjector=p(Ie),this.urlSerializer=p(Vi),this.rootContexts=p(ji),this.location=p(Rr),this.inputBindingEnabled=p(Da,{optional:!0})!==null,this.titleStrategy=p(Hm),this.options=p($i,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(yd),this.createViewTransition=p(Gm,{optional:!0}),this.navigationErrorHandler=p(f_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>_(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Ql(o)),i=o=>this.events.next(new Kl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next($(m(m({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ye({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Si,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ce(s=>s.id!==0),x(s=>$(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),De(s=>{let a=!1,c=!1;return _(s).pipe(De(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),Ve;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?$(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 En(u.id,this.urlSerializer.serialize(u.rawUrl),f,ca.IgnoredSameUrlNavigation)),u.resolve(!1),Ve}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return _(u).pipe(De(f=>{let h=this.transitions?.getValue();return this.events.next(new Ur(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ve:Promise.resolve(f)}),t_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),se(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=$(m({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ua(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:T,extras:I}=u,M=new Ur(f,this.urlSerializer.serialize(h),g,T);this.events.next(M);let fe=Om(this.rootComponentType).snapshot;return this.currentTransition=s=$(m({},u),{targetSnapshot:fe,urlAfterRedirects:h,extras:$(m({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,_(s)}else{let f="";return this.events.next(new En(u.id,this.urlSerializer.serialize(u.extractedUrl),f,ca.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ve}}),se(u=>{let l=new ql(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),x(u=>(this.currentTransition=s=$(m({},u),{guards:wM(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),NM(this.environmentInjector,u=>this.events.next(u)),se(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw ga(this.urlSerializer,u.guardsResult);let l=new Wl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Ce(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Ge.GuardRejected),!1)),Bl(u=>{if(u.guards.canActivateChecks.length)return _(u).pipe(se(l=>{let d=new Zl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),De(l=>{let d=!1;return _(l).pipe(n_(this.paramsInheritanceStrategy,this.environmentInjector),se({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ge.NoDataFromResolver)}}))}),se(l=>{let d=new Yl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Bl(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(se(h=>{d.component=h}),x(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Jr(l(u.targetSnapshot.root)).pipe(en(null),Lt(1))}),Bl(()=>this.afterPreactivation()),De(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?X(d).pipe(x(()=>s)):_(s)}),x(u=>{let l=fM(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=$(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),se(()=>{this.events.next(new Ri)}),DM(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Lt(1),se({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),ac(this.transitionAbortSubject.pipe(se(u=>{throw u}))),tn(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ze(u=>{if(c=!0,Vm(u))this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),gM(u)?this.events.next(new $r(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Ni(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Ue(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Fi){let{message:f,cancellationCode:h}=ga(this.urlSerializer,d);this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new $r(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ve}))}))}cancelNavigationTransition(n,i,o){let s=new Qt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function h_(t){return t!==Si}var p_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(g_),providedIn:"root"});let t=e;return t})(),fd=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},g_=(()=>{let e=class e extends fd{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(m_),providedIn:"root"});let t=e;return t})(),m_=(()=>{let e=class e extends Wm{constructor(){super(...arguments),this.location=p(Rr),this.urlSerializer=p(Vi),this.options=p($i,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(yd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new bn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Om(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Ur)this.stateMemento=this.createStateMemento();else if(n instanceof En)this.rawUrlTree=i.initialUrl;else if(n instanceof ua){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Ri?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Qt&&(n.code===Ge.GuardRejected||n.code===Ge.NoDataFromResolver)?this.restoreHistory(i):n instanceof Ni?this.restoreHistory(i,!0):n instanceof vt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=m(m({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=m(m({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Mi||{});function Zm(t,e){t.events.pipe(Ce(r=>r instanceof vt||r instanceof Qt||r instanceof Ni||r instanceof En),x(r=>r instanceof vt||r instanceof En?Mi.COMPLETE:(r instanceof Qt?r.code===Ge.Redirect||r.code===Ge.SupersededByNewNavigation:!1)?Mi.REDIRECTING:Mi.FAILED),Ce(r=>r!==Mi.REDIRECTING),Lt(1)).subscribe(()=>{e()})}function v_(t){throw t}var y_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},D_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(xs),this.stateManager=p(Wm),this.options=p($i,{optional:!0})||{},this.pendingTasks=p(fn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Dd),this.urlSerializer=p(Vi),this.location=p(Rr),this.urlHandlingStrategy=p(yd),this._events=new he,this.errorHandler=this.options.errorHandler||v_,this.navigated=!1,this.routeReuseStrategy=p(p_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(va,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Da,{optional:!0}),this.eventsSubscription=new oe,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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Qt&&i.code!==Ge.Redirect&&i.code!==Ge.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof vt)this.navigated=!0;else if(i instanceof $r){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=m({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||h_(o.source)},a);this.scheduleNavigation(c,Si,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}C_(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});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),Si,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=m({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,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(gd),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,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=o?o.snapshot:this.routerState.snapshot.root;f=xm(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return Am(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=xi(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Si,null,i)}navigate(n,i={skipLocationChange:!1}){return w_(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=m({},y_):i===!1?o=m({},D_):o=i,xi(n))return um(this.currentUrlTree,n,o);let s=this.parseUrl(n);return um(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,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 Zm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,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))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function w_(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new he,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 vt&&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,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||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 i=this.href===null?null:gp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(v(Re),v(yt),Ou("tabindex"),v(xt),v(Pe),v(Zt))},e.\u0275dir=le({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ue("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Tr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ar],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ar],replaceUrl:[2,"replaceUrl","replaceUrl",Ar],routerLink:"routerLink"},standalone:!0,features:[Ju,ft]});let t=e;return t})(),Ym=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,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 vt&&this.update()})}ngAfterContentInit(){_(this.links.changes,_(null)).pipe(Xt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=X(n).pipe(Xt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}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(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=b_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(v(Re),v(Pe),v(xt),v(mn),v(it,8))},e.\u0275dir=le({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&ng(s,it,5),i&2){let a;rg(a=ig())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ft]});let t=e;return t})();function b_(t){return!!t.paths}var ya=class{};var E_=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ce(n=>n instanceof vt),Pt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=_s(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)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return X(o).pipe(Xt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=_(null);let s=o.pipe(ge(a=>a===null?_(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return X([s,a]).pipe(Xt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(E(Re),E(Fs),E(Ie),E(ya),E(vd))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Qm=new D(""),I_=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=p(Ie),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 Ur?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof vt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof En&&n.code===ca.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 la&&(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,i){this.zone.runOutsideAngular(()=>Yr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Ms(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new la(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Sp()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function M_(t){return t.routerState.root}function Hi(t,e){return{\u0275kind:t,\u0275providers:e}}function __(){let t=p(Be);return e=>{let r=t.get(gn);if(e!==r.components[0])return;let n=t.get(Re),i=t.get(Km);t.get(wd)===1&&n.initialNavigation(),t.get(Jm,null,L.Optional)?.setUpPreloading(),t.get(Qm,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Km=new D("",{factory:()=>new he}),wd=new D("",{providedIn:"root",factory:()=>1});function S_(){return Hi(2,[{provide:wd,useValue:0},{provide:Rs,multi:!0,deps:[Be],useFactory:e=>{let r=e.get(xg,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Re),o=e.get(Km);Zm(i,()=>{n(!0)}),e.get(Dd).afterPreactivation=()=>(n(!0),o.closed?_(void 0):o),i.initialNavigation()}))}}])}function T_(){return Hi(3,[{provide:Rs,multi:!0,useFactory:()=>{let e=p(Re);return()=>{e.setUpLocationChangeListener()}}},{provide:wd,useValue:2}])}var Jm=new D("");function x_(t){return Hi(0,[{provide:Jm,useExisting:E_},{provide:ya,useExisting:t}])}function A_(){return Hi(8,[hm,{provide:Da,useExisting:hm}])}function N_(t){let e=[{provide:Gm,useValue:l_},{provide:qm,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return Hi(9,e)}var vm=new D("ROUTER_FORROOT_GUARD"),R_=[Rr,{provide:Vi,useClass:Br},Re,ji,{provide:yt,useFactory:M_,deps:[Re]},vd,[]],Kt=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[R_,[],{provide:va,multi:!0,useValue:n},{provide:vm,useFactory:P_,deps:[[Re,new ds,new vu]]},{provide:$i,useValue:i||{}},i?.useHash?F_():k_(),O_(),i?.preloadingStrategy?x_(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?L_(i):[],i?.bindToComponentInputs?A_().\u0275providers:[],i?.enableViewTransitions?N_().\u0275providers:[],V_()]}}static forChild(n){return{ngModule:e,providers:[{provide:va,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(E(vm,8))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})();function O_(){return{provide:Qm,useFactory:()=>{let t=p(Lg),e=p(W),r=p($i),n=p(Dd),i=p(Vi);return r.scrollOffset&&t.setOffset(r.scrollOffset),new I_(i,n,t,e,r)}}}function F_(){return{provide:Zt,useClass:Ng}}function k_(){return{provide:Zt,useClass:Dl}}function P_(t){return"guarded"}function L_(t){return[t.initialNavigation==="disabled"?T_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?S_().\u0275providers:[]]}var ym=new D("");function V_(){return[{provide:ym,useFactory:__},{provide:Os,multi:!0,useExisting:ym}]}var ot=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ze(n=>(console.error(n),_([]))))}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(Ze(i=>(console.error(i),_([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(i){return new(i||e)(E(_l))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var j_=t=>["/books",t];function B_(t,e){if(t&1&&(w(0,"li")(1,"a",6),S(2),w(3,"p",7),S(4),C()()()),t&2){let r=e.$implicit;N(),O("routerLink",Ts(3,j_,r.isbn)),N(),$e(" ",r.title," "),N(2),At(r.subtitle)}}function U_(t,e){t&1&&(w(0,"li"),S(1,"No results"),C())}function $_(t,e){if(t&1&&(w(0,"ul",3),ee(1,B_,5,5,"li",4)(2,U_,2,0,"li",5),C()),t&2){let r=e.ngIf;N(),O("ngForOf",r),N(),O("ngIf",!r.length)}}var Xm=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new he,this.isLoading=!1,this.results$=this.input$.pipe(Ce(i=>i.length>=3),tc(500),rc(),se(()=>this.isLoading=!0),De(i=>this.service.getAllSearch(i)),se(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(v(ot))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=zt();w(0,"input",1,0),ue("input",function(){$t(s);let c=og(1);return Ht(o.input$.next(c.value))}),C(),ee(2,$_,3,2,"ul",2),Xe(3,"async")}i&2&&(xr("loading",o.isLoading),N(2),O("ngIf",pt(3,3,o.results$)))},dependencies:[tt,nt,it,yn]});let t=e;return t})();var ev=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Home"),C(),w(2,"a",0),S(3,` Show book list -`),C(),w(4,"h2"),S(5,"Search"),C(),ce(6,"bm-search"))},dependencies:[it,Xm]});let t=e;return t})();var z_=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:ev}],tv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Kt.forRoot(z_),Kt]});let t=e;return t})();var Ca=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ye(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function G_(t,e){if(t&1){let r=zt();w(0,"button",6),ue("click",function(){$t(r);let i=Le();return Ht(i.auth.login())}),S(1,"Login"),C()}}function q_(t,e){if(t&1){let r=zt();w(0,"button",7),ue("click",function(){$t(r);let i=Le();return Ht(i.auth.logout())}),S(1,"Logout"),C()}}var rv=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(v(Ca))},e.\u0275cmp=ae({type:e,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,o){i&1&&(w(0,"nav")(1,"a",0),S(2,"Home"),C(),w(3,"a",1),S(4,"Books"),C(),w(5,"a",2),S(6,"Administration"),C(),w(7,"div",3),ee(8,G_,2,0,"button",4)(9,q_,2,0,"button",5),C()(),w(10,"main"),ce(11,"router-outlet"),C()),i&2&&(N(8),O("ngIf",!o.auth.isAuthenticated),N(),O("ngIf",o.auth.isAuthenticated))},dependencies:[nt,pd,it,Ym]});let t=e;return t})();var ba=(()=>{let e=class e{transform(n){return n?`${n.substring(0,3)}-${n.substring(3)}`:""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=di({name:"isbn",type:e,pure:!0});let t=e;return t})();var W_=t=>["/admin/edit",t];function Z_(t,e){if(t&1&&(w(0,"p",10),S(1),C()),t&2){let r=Le().ngIf;N(),At(r.subtitle)}}function Y_(t,e){if(t&1&&(w(0,"li"),S(1),C()),t&2){let r=e.$implicit;N(),At(r)}}function Q_(t,e){if(t&1&&(w(0,"div")(1,"h2"),S(2,"Published"),C(),S(3),Xe(4,"date"),C()),t&2){let r=Le().ngIf;N(3),$e(" ",lg(4,1,r.published,"longDate")," ")}}function K_(t,e){if(t&1&&ce(0,"img",11),t&2){let r=Le().ngIf;O("src",r.thumbnailUrl,pi)}}function J_(t,e){if(t&1){let r=zt();w(0,"div",1)(1,"h1"),S(2),C(),ee(3,Z_,2,1,"p",2),w(4,"div",3)(5,"div")(6,"h2"),S(7,"Authors"),C(),w(8,"ul"),ee(9,Y_,2,1,"li",4),C()(),w(10,"div")(11,"h2"),S(12,"ISBN"),C(),S(13),Xe(14,"isbn"),C(),ee(15,Q_,5,4,"div",5),C(),w(16,"h2"),S(17,"Description"),C(),w(18,"p"),S(19),C(),ee(20,K_,1,1,"img",6),w(21,"a",7),S(22,"Back to list"),C(),w(23,"button",8),ue("click",function(){let i=$t(r).ngIf,o=Le();return Ht(o.removeBook(i.isbn))}),S(24," Remove book "),C(),w(25,"a",9),S(26," Edit book "),C()()}if(t&2){let r=e.ngIf;N(2),At(r.title),N(),O("ngIf",r.subtitle),N(6),O("ngForOf",r.authors),N(4),$e(" ",pt(14,8,r.isbn)," "),N(2),O("ngIf",r.published),N(4),At(r.description),N(),O("ngIf",r.thumbnailUrl),N(5),O("routerLink",Ts(10,W_,r.isbn))}}var ov=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(v(ot),v(yt),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(ee(0,J_,27,12,"div",0),Xe(1,"async")),i&2&&O("ngIf",pt(1,1,o.book$))},dependencies:[tt,nt,it,yn,Pg,ba]});let t=e;return t})();function X_(t,e){if(t&1&&ce(0,"img",6),t&2){let r=Le(2);O("src",r.book.thumbnailUrl,pi)}}function eS(t,e){if(t&1&&(w(0,"p",7),S(1),C()),t&2){let r=Le(2);N(),$e(" ",r.book.subtitle," ")}}function tS(t,e){if(t&1&&(w(0,"li"),S(1),C()),t&2){let r=e.$implicit;N(),$e(" ",r," ")}}function nS(t,e){if(t&1&&(w(0,"a",1),ee(1,X_,1,1,"img",2),w(2,"h2"),S(3),C(),ee(4,eS,2,1,"p",3),w(5,"ul",4),ee(6,tS,2,1,"li",5),C(),w(7,"div"),S(8),Xe(9,"isbn"),C()()),t&2){let r=Le();O("routerLink",r.book.isbn),N(),O("ngIf",r.book.thumbnailUrl),N(2),At(r.book.title),N(),O("ngIf",r.book.subtitle),N(2),O("ngForOf",r.book.authors),N(2),$e("ISBN ",pt(9,6,r.book.isbn),"")}}var sv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&ee(0,nS,10,8,"a",0),i&2&&O("ngIf",o.book)},dependencies:[tt,nt,it,ba]});let t=e;return t})();function iS(t,e){if(t&1&&(w(0,"li"),ce(1,"bm-book-list-item",4),C()),t&2){let r=e.$implicit;N(),O("book",r)}}function oS(t,e){t&1&&(w(0,"li"),S(1," No books available. "),C())}function sS(t,e){if(t&1&&(w(0,"ul",1),ee(1,iS,2,1,"li",2)(2,oS,2,0,"li",3),C()),t&2){let r=e.ngIf;N(),O("ngForOf",r),N(),O("ngIf",!r.length)}}var av=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(v(ot))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Books"),C(),ee(2,sS,3,2,"ul",0),Xe(3,"async")),i&2&&(N(2),O("ngIf",pt(3,1,o.books$)))},dependencies:[tt,nt,sv,yn]});let t=e;return t})();var aS=[{path:"books",component:av},{path:"books/:isbn",component:ov}],cv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Kt.forChild(aS),Kt]});let t=e;return t})();var uv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Or,cv]});let t=e;return t})();var lv=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(E(Ca))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var yv=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(v(xt),v(Pe))},e.\u0275dir=le({type:e});let t=e;return t})(),cS=(()=>{let e=class e extends yv{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})(),e.\u0275dir=le({type:e,features:[ht]});let t=e;return t})(),Na=new D("");var uS={provide:Na,useExisting:St(()=>Ra),multi:!0};function lS(){let t=Nt()?Nt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var dS=new D(""),Ra=(()=>{let e=class e extends yv{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!lS())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(v(xt),v(Pe),v(dS,8))},e.\u0275dir=le({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(i,o){i&1&&ue("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[hn([uS]),ht]});let t=e;return t})();function Mn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Dv(t){return t!=null&&typeof t.length=="number"}var Oa=new D(""),Fa=new D(""),fS=/^(?=.{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])?)*$/,Zi=class{static min(e){return hS(e)}static max(e){return pS(e)}static required(e){return gS(e)}static requiredTrue(e){return mS(e)}static email(e){return vS(e)}static minLength(e){return yS(e)}static maxLength(e){return DS(e)}static pattern(e){return wS(e)}static nullValidator(e){return wv(e)}static compose(e){return _v(e)}static composeAsync(e){return Tv(e)}};function hS(t){return e=>{if(Mn(e.value)||Mn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(Mn(e.value)||Mn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function gS(t){return Mn(t.value)?{required:!0}:null}function mS(t){return t.value===!0?null:{required:!0}}function vS(t){return Mn(t.value)||fS.test(t.value)?null:{email:!0}}function yS(t){return e=>Mn(e.value)||!Dv(e.value)?null:e.value.lengthDv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function wS(t){if(!t)return wv;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(Mn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function wv(t){return null}function Cv(t){return t!=null}function bv(t){return pn(t)?X(t):t}function Ev(t){let e={};return t.forEach(r=>{e=r!=null?m(m({},e),r):e}),Object.keys(e).length===0?null:e}function Iv(t,e){return e.map(r=>r(t))}function CS(t){return!t.validate}function Mv(t){return t.map(e=>CS(e)?e:r=>e.validate(r))}function _v(t){if(!t)return null;let e=t.filter(Cv);return e.length==0?null:function(r){return Ev(Iv(r,e))}}function Sv(t){return t!=null?_v(Mv(t)):null}function Tv(t){if(!t)return null;let e=t.filter(Cv);return e.length==0?null:function(r){let n=Iv(r,e).map(bv);return ec(n).pipe(x(Ev))}}function xv(t){return t!=null?Tv(Mv(t)):null}function dv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Av(t){return t._rawValidators}function Nv(t){return t._rawAsyncValidators}function Cd(t){return t?Array.isArray(t)?t:[t]:[]}function Ia(t,e){return Array.isArray(t)?t.includes(e):t===e}function fv(t,e){let r=Cd(e);return Cd(t).forEach(i=>{Ia(r,i)||r.push(i)}),r}function hv(t,e){return Cd(e).filter(r=>!Ia(t,r))}var Ma=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=Sv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=xv(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,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},st=class extends Ma{get formDirective(){return null}get path(){return null}},Yi=class extends Ma{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},_a=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}},bS={"[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"},RP=$(m({},bS),{"[class.ng-submitted]":"isSubmitted"}),Rv=(()=>{let e=class e extends _a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(v(Yi,2))},e.\u0275dir=le({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&xr("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:[ht]});let t=e;return t})(),Ov=(()=>{let e=class e extends _a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(v(st,10))},e.\u0275dir=le({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&xr("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:[ht]});let t=e;return t})();var zi="VALID",Ea="INVALID",qr="PENDING",Gi="DISABLED",_n=class{},Sa=class extends _n{constructor(e,r){super(),this.value=e,this.source=r}},qi=class extends _n{constructor(e,r){super(),this.pristine=e,this.source=r}},Wi=class extends _n{constructor(e,r){super(),this.touched=e,this.source=r}},Wr=class extends _n{constructor(e,r){super(),this.status=e,this.source=r}},bd=class extends _n{constructor(e){super(),this.source=e}},Ed=class extends _n{constructor(e){super(),this.source=e}};function Id(t){return(ka(t)?t.validators:t)||null}function ES(t){return Array.isArray(t)?Sv(t):t||null}function Md(t,e){return(ka(e)?e.asyncValidators:t)||null}function IS(t){return Array.isArray(t)?xv(t):t||null}function ka(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Fv(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new b(1e3,"");if(!n[r])throw new b(1001,"")}function kv(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new b(1002,"")})}var Qi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}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===zi}get invalid(){return this.status===Ea}get pending(){return this.status==qr}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}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(fv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(fv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(hv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(hv(e,this._rawAsyncValidators))}hasValidator(e){return Ia(this._rawValidators,e)}hasAsyncValidator(e){return Ia(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched($(m({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Wi(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Wi(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty($(m({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new qi(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new qi(!0,n))}markAsPending(e={}){this.status=qr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Wr(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending($(m({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(i=>{i.disable($(m({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Sa(this.value,n)),this._events.next(new Wr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors($(m({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=zi,this._forEachChild(n=>{n.enable($(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors($(m({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zi||this.status===qr)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Sa(this.value,r)),this._events.next(new Wr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity($(m({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=qr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=bv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Wr(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?Ea:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qr)?qr:this._anyControlsHaveStatus(Ea)?Ea:zi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new qi(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Wi(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ka(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=ES(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=IS(this._rawAsyncValidators)}},Ta=class extends Qi{constructor(e,r,n){super(Id(r),Md(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){kv(this,!0,e),Object.keys(e).forEach(n=>{Fv(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Pv=new D("CallSetDisabledState",{providedIn:"root",factory:()=>_d}),_d="always";function Sd(t,e){return[...e.path,t]}function pv(t,e,r=_d){Td(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),_S(t,e),TS(t,e),SS(t,e),MS(t,e)}function gv(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Aa(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function xa(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function MS(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Td(t,e){let r=Av(t);e.validator!==null?t.setValidators(dv(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Nv(t);e.asyncValidator!==null?t.setAsyncValidators(dv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();xa(e._rawValidators,i),xa(e._rawAsyncValidators,i)}function Aa(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Av(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Nv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return xa(e._rawValidators,n),xa(e._rawAsyncValidators,n),r}function _S(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Lv(t,e)})}function SS(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Lv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Lv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function TS(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function xS(t,e){t==null,Td(t,e)}function AS(t,e){return Aa(t,e)}function NS(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function RS(t){return Object.getPrototypeOf(t.constructor)===cS}function OS(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function FS(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Ra?r=o:RS(o)?n=o:i=o}),i||n||r||null}function kS(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function mv(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function vv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ft=class extends Qi{constructor(e=null,r,n){super(Id(r),Md(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ka(r)&&(r.nonNullable||r.initialValueIsDefault)&&(vv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){mv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){mv(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){vv(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 PS=t=>t instanceof Ft,LS=(()=>{let e=class e extends st{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Sd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})(),e.\u0275dir=le({type:e,features:[ht]});let t=e;return t})();var Vv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=le({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var jv=new D("");var VS={provide:st,useExisting:St(()=>Zr)},Zr=(()=>{let e=class e extends st{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ie,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Aa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return pv(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){gv(n.control||null,n,!1),kS(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,OS(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new bd(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new Ed(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(gv(i||null,n),PS(o)&&(pv(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);xS(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&AS(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Td(this.form,this),this._oldForm&&Aa(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(v(Oa,10),v(Fa,10),v(Pv,8))},e.\u0275dir=le({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ue("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[hn([VS]),ht,ft]});let t=e;return t})(),jS={provide:st,useExisting:St(()=>Bv)},Bv=(()=>{let e=class e extends LS{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){Uv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(v(st,13),v(Oa,10),v(Fa,10))},e.\u0275dir=le({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[hn([jS]),ht]});let t=e;return t})(),BS={provide:st,useExisting:St(()=>Pa)},Pa=(()=>{let e=class e extends st{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),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 Sd(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Uv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(v(st,13),v(Oa,10),v(Fa,10))},e.\u0275dir=le({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[hn([BS]),ht]});let t=e;return t})();function Uv(t){return!(t instanceof Bv)&&!(t instanceof Zr)&&!(t instanceof Pa)}var US={provide:Yi,useExisting:St(()=>xd)},xd=(()=>{let e=class e extends Yi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new ie,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=FS(this,s)}ngOnChanges(n){this._added||this._setUpControl(),NS(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Sd(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(i){return new(i||e)(v(st,13),v(Oa,10),v(Fa,10),v(Na,10),v(jv,8))},e.\u0275dir=le({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[hn([US]),ht,ft]});let t=e;return t})();var $S=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})(),Ki=class extends Qi{constructor(e,r,n){super(Id(r),Md(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){kv(this,!1,e),e.forEach((n,i)=>{Fv(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._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((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_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 $v=t=>t instanceof Ki;var Hv=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:jv,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Pv,useValue:n.callSetDisabledState??_d}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[$S]});let t=e;return t})();var Gv=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(v(xt),v(Pe))},t.\u0275dir=le({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&ue("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[hn([{provide:Na,useExisting:St(()=>t),multi:!0}])]}),t})();var qv=(()=>{let e=class e{constructor(n){this.service=n}isbnExists(){return n=>this.service.check(n.value).pipe(x(i=>i?{isbnexists:!0}:null))}};e.\u0275fac=function(i){return new(i||e)(E(ot))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Wv=function(t){if(!t.value||typeof t.value!="string")return null;let r=t.value.replace(/-/g,"").length;return r===10||r===13?null:{isbnformat:!0}},Zv=function(t){return!$v(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function zS(t,e){if(t&1&&(w(0,"p",1),S(1),C()),t&2){let r=e.$implicit;N(),$e(" ",r,` -`)}}var Yv=(()=>{let e=class e{constructor(n){this.form=n,this.messages={}}get errors(){if(!this.controlName)return[];let n=this.form.control.get(this.controlName);return!n||!n.errors||!n.touched?[]:Object.keys(n.errors).map(i=>this.messages[i])}};e.\u0275fac=function(i){return new(i||e)(v(Zr))},e.\u0275cmp=ae({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(i,o){i&1&&ee(0,zS,2,1,"p",0),i&2&&O("ngForOf",o.errors)},dependencies:[tt]});let t=e;return t})();var qS=()=>({required:"Title is required"}),WS=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),ZS=()=>({atleastonevalue:"At least one author required"});function YS(t,e){if(t&1&&ce(0,"input",20),t&2){let r=e.index;O("formControlName",r),Tr("aria-label","Author "+r)}}var La=(()=>{let e=class e{constructor(){this.submitBook=new ie,this.form=new Ta({title:new Ft("",{nonNullable:!0,validators:Zi.required}),subtitle:new Ft("",{nonNullable:!0}),isbn:new Ft("",{nonNullable:!0,validators:[Zi.required,Wv],asyncValidators:p(qv).isbnExists()}),description:new Ft("",{nonNullable:!0}),published:new Ft("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Ft("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Ki(n.map(i=>new Ft(i,{nonNullable:!0})),Zv)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Ft("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=$(m({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[ft],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(i,o){i&1&&(w(0,"form",0),ue("ngSubmit",function(){return o.submitForm()}),w(1,"label",1),S(2,"Title"),C(),ce(3,"input",2)(4,"bm-form-errors",3),w(5,"label",4),S(6,"Subtitle"),C(),ce(7,"input",5),w(8,"label",6),S(9,"ISBN"),C(),ce(10,"input",7)(11,"bm-form-errors",8),w(12,"label"),S(13,"Authors"),C(),w(14,"button",9),ue("click",function(){return o.addAuthorControl()}),S(15," + Author "),C(),w(16,"fieldset",10),ee(17,YS,1,2,"input",11),C(),ce(18,"bm-form-errors",12),w(19,"label",13),S(20,"Description"),C(),ce(21,"textarea",14),w(22,"label",15),S(23,"Published"),C(),ce(24,"input",16),w(25,"label",17),S(26,"Thumbnail URL"),C(),ce(27,"input",18),w(28,"button",19),S(29," Save "),C()()),i&2&&(O("formGroup",o.form),N(4),O("messages",Ss(6,qS)),N(7),O("messages",Ss(7,WS)),N(6),O("ngForOf",o.authors.controls),N(),O("messages",Ss(8,ZS)),N(10),O("disabled",o.form.invalid))},dependencies:[tt,Vv,Ra,Rv,Ov,Zr,xd,Pa,Gv,Yv]});let t=e;return t})();var Kv=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(v(ot),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Create Book"),C(),w(2,"bm-book-form",0),ue("submitBook",function(a){return o.create(a)}),C())},dependencies:[La]});let t=e;return t})();function QS(t,e){if(t&1){let r=zt();w(0,"bm-book-form",1),ue("submitBook",function(i){$t(r);let o=Le();return Ht(o.update(i))}),C()}if(t&2){let r=e.ngIf;O("book",r)}}var Jv=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(x(s=>s.get("isbn")),De(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(v(ot),v(yt),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Edit Book"),C(),ee(2,QS,1,1,"bm-book-form",0),Xe(3,"async")),i&2&&(N(2),O("ngIf",pt(3,1,o.book$)))},dependencies:[nt,La,yn]});let t=e;return t})();var KS=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Kv},{path:"admin/edit/:isbn",component:Jv}],Xv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Kt.forChild(KS),Kt]});let t=e;return t})();var ey=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Or,Xv,Hv]});let t=e;return t})();var ty=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e,bootstrap:[rv]}),e.\u0275inj=ne({providers:[{provide:Sl,useClass:lv,multi:!0}],imports:[sm,tv,Kg,uv,ey]});let t=e;return t})();om().bootstrapModule(ty,{ngZoneEventCoalescing:!0}).catch(t=>console.error(t)); diff --git a/main-PJJCRWUW.js b/main-PJJCRWUW.js new file mode 100644 index 0000000..40ed7c2 --- /dev/null +++ b/main-PJJCRWUW.js @@ -0,0 +1,10 @@ +var sy=Object.defineProperty,ay=Object.defineProperties;var cy=Object.getOwnPropertyDescriptors;var Od=Object.getOwnPropertySymbols;var uy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable;var Fd=(t,e,r)=>e in t?sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||={})uy.call(e,r)&&Fd(t,r,e[r]);if(Od)for(var r of Od(e))ly.call(e,r)&&Fd(t,r,e[r]);return t},U=(t,e)=>ay(t,cy(e));var Qr=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())});var ja=null;var Va=1,kd=Symbol("SIGNAL");function $(t){let e=ja;return ja=t,e}function Pd(){return ja}var Ba={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 dy(t){if(!(Ga(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Va)){if(!t.producerMustRecompute(t)&&!$a(t)){t.dirty=!1,t.lastCleanEpoch=Va;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Va}}function Ua(t){return t&&(t.nextProducerIndex=0),$(t)}function Ld(t,e){if($(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ga(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function $a(t){qa(t);for(let e=0;e0}function qa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function fy(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function hy(t){return t.producerNode!==void 0}function py(){throw new Error}var gy=py;function Vd(t){gy=t}function R(t){return typeof t=="function"}function Kn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ji=Kn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Tn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var oe=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(R(n))try{n()}catch(o){e=o instanceof Ji?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{jd(o)}catch(s){e=e??[],s instanceof Ji?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ji(e)}}add(e){var r;if(e&&e!==this)if(this.closed)jd(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Tn(r,e)}remove(e){let{_finalizers:r}=this;r&&Tn(r,e),e instanceof t&&e._removeParent(this)}};oe.EMPTY=(()=>{let t=new oe;return t.closed=!0,t})();var Wa=oe.EMPTY;function Xi(t){return t instanceof oe||t&&"closed"in t&&R(t.remove)&&R(t.add)&&R(t.unsubscribe)}function jd(t){R(t)?t():t.unsubscribe()}var ct={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jn={setTimeout(t,e,...r){let{delegate:n}=Jn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Jn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function eo(t){Jn.setTimeout(()=>{let{onUnhandledError:e}=ct;if(e)e(t);else throw t})}function Kr(){}var Bd=Za("C",void 0,void 0);function Ud(t){return Za("E",void 0,t)}function $d(t){return Za("N",t,void 0)}function Za(t,e,r){return{kind:t,value:e,error:r}}var An=null;function Xn(t){if(ct.useDeprecatedSynchronousErrorHandling){let e=!An;if(e&&(An={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=An;if(An=null,r)throw n}}else t()}function Hd(t){ct.useDeprecatedSynchronousErrorHandling&&An&&(An.errorThrown=!0,An.error=t)}var xn=class extends oe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Xi(e)&&e.add(this)):this.destination=yy}static create(e,r,n){return new er(e,r,n)}next(e){this.isStopped?Qa($d(e),this):this._next(e)}error(e){this.isStopped?Qa(Ud(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Qa(Bd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},my=Function.prototype.bind;function Ya(t,e){return my.call(t,e)}var Ka=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){to(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){to(n)}else to(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){to(r)}}},er=class extends xn{constructor(e,r,n){super();let i;if(R(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&ct.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Ya(e.next,o),error:e.error&&Ya(e.error,o),complete:e.complete&&Ya(e.complete,o)}):i=e}this.destination=new Ka(i)}};function to(t){ct.useDeprecatedSynchronousErrorHandling?Hd(t):eo(t)}function vy(t){throw t}function Qa(t,e){let{onStoppedNotification:r}=ct;r&&Jn.setTimeout(()=>r(t,e))}var yy={closed:!0,next:Kr,error:vy,complete:Kr};var tr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Se(t){return t}function Ja(...t){return Xa(t)}function Xa(t){return t.length===0?Se:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=wy(r)?r:new er(r,n,i);return Xn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=zd(n),new n((i,o)=>{let s=new er({next:a=>{try{r(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[tr](){return this}pipe(...r){return Xa(r)(this)}toPromise(r){return r=zd(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function zd(t){var e;return(e=t??ct.Promise)!==null&&e!==void 0?e:Promise}function Dy(t){return t&&R(t.next)&&R(t.error)&&R(t.complete)}function wy(t){return t&&t instanceof xn||Dy(t)&&Xi(t)}function ec(t){return R(t?.lift)}function j(t){return e=>{if(ec(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(t,e,r,n,i){return new tc(t,e,r,n,i)}var tc=class extends xn{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function nr(){return j((t,e)=>{let r=null;t._refCount++;let n=P(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var rr=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ec(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new oe;let r=this.getSubject();e.add(this.source.subscribe(P(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=oe.EMPTY)}return e}refCount(){return nr()(this)}};var Gd=Kn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var he=(()=>{class t extends B{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 Gd}next(r){Xn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Xn(()=>{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(){Xn(()=>{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:i,observers:o}=this;return n||i?Wa:(this.currentObservers=null,o.push(r),new oe(()=>{this.currentObservers=null,Tn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new no(e,r),t})(),no=class extends he{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Wa}};var ye=class extends he{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var nc={now(){return(nc.delegate||Date).now()},delegate:void 0};var ro=class extends oe{constructor(e,r){super()}schedule(e,r=0){return this}};var Jr={setInterval(t,e,...r){let{delegate:n}=Jr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Jr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var io=class extends ro{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return Jr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Jr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,Tn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var ir=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};ir.now=nc.now;var oo=class extends ir{constructor(e,r=ir.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var qd=new oo(io);var Ve=new B(t=>t.complete());function Wd(t){return t&&R(t.schedule)}function Zd(t){return t[t.length-1]}function so(t){return R(Zd(t))?t.pop():void 0}function en(t){return Wd(Zd(t))?t.pop():void 0}function Qd(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(l.value):i(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function Yd(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nn(t){return this instanceof Nn?(this.v=t,this):new Nn(t)}function Kd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){n[f]&&(i[f]=function(T){return new Promise(function(I,M){o.push([f,T,I,M])>1||c(f,T)})},g&&(i[f]=g(i[f])))}function c(f,g){try{u(n[f](g))}catch(T){h(o[0][3],T)}}function u(f){f.value instanceof Nn?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function Jd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Yd=="function"?Yd(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var ao=t=>t&&typeof t.length=="number"&&typeof t!="function";function co(t){return R(t?.then)}function uo(t){return R(t[tr])}function lo(t){return Symbol.asyncIterator&&R(t?.[Symbol.asyncIterator])}function fo(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Cy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ho=Cy();function po(t){return R(t?.[ho])}function go(t){return Kd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield Nn(r.read());if(i)return yield Nn(void 0);yield yield Nn(n)}}finally{r.releaseLock()}})}function mo(t){return R(t?.getReader)}function pe(t){if(t instanceof B)return t;if(t!=null){if(uo(t))return by(t);if(ao(t))return Ey(t);if(co(t))return Iy(t);if(lo(t))return Xd(t);if(po(t))return My(t);if(mo(t))return _y(t)}throw fo(t)}function by(t){return new B(e=>{let r=t[tr]();if(R(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ey(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,eo)})}function My(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Xd(t){return new B(e=>{Sy(t,e).catch(r=>e.error(r))})}function _y(t){return Xd(go(t))}function Sy(t,e){var r,n,i,o;return Qd(this,void 0,void 0,function*(){try{for(r=Jd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Oe(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function vo(t,e=0){return j((r,n)=>{r.subscribe(P(n,i=>Oe(n,t,()=>n.next(i),e),()=>Oe(n,t,()=>n.complete(),e),i=>Oe(n,t,()=>n.error(i),e)))})}function yo(t,e=0){return j((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function ef(t,e){return pe(t).pipe(yo(e),vo(e))}function tf(t,e){return pe(t).pipe(yo(e),vo(e))}function nf(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function rf(t,e){return new B(r=>{let n;return Oe(r,e,()=>{n=t[ho](),Oe(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>R(n?.return)&&n.return()})}function Do(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Oe(r,e,()=>{let n=t[Symbol.asyncIterator]();Oe(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function of(t,e){return Do(go(t),e)}function sf(t,e){if(t!=null){if(uo(t))return ef(t,e);if(ao(t))return nf(t,e);if(co(t))return tf(t,e);if(lo(t))return Do(t,e);if(po(t))return rf(t,e);if(mo(t))return of(t,e)}throw fo(t)}function X(t,e){return e?sf(t,e):pe(t)}function _(...t){let e=en(t);return X(t,e)}function or(t,e){let r=R(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function rc(t){return!!t&&(t instanceof B||R(t.lift)&&R(t.subscribe))}var Pt=Kn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function A(t,e){return j((r,n)=>{let i=0;r.subscribe(P(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:Ty}=Array;function Ay(t,e){return Ty(e)?t(...e):t(e)}function wo(t){return A(e=>Ay(t,e))}var{isArray:xy}=Array,{getPrototypeOf:Ny,prototype:Ry,keys:Oy}=Object;function Co(t){if(t.length===1){let e=t[0];if(xy(e))return{args:e,keys:null};if(Fy(e)){let r=Oy(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Fy(t){return t&&typeof t=="object"&&Ny(t)===Ry}function bo(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Xr(...t){let e=en(t),r=so(t),{args:n,keys:i}=Co(t);if(n.length===0)return X([],e);let o=new B(ky(n,e,i?s=>bo(i,s):Se));return r?o.pipe(wo(r)):o}function ky(t,e,r=Se){return n=>{af(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let u=X(t[c],e),l=!1;u.subscribe(P(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function af(t,e,r){t?Oe(r,t,e):e()}function cf(t,e,r,n,i,o,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&e.complete()},f=T=>u{o&&e.next(T),u++;let I=!1;pe(r(T,l++)).subscribe(P(e,M=>{i?.(M),o?f(M):e.next(M)},()=>{I=!0},void 0,()=>{if(I)try{for(u--;c.length&&ug(M)):g(M)}h()}catch(M){e.error(M)}}))};return t.subscribe(P(e,f,()=>{d=!0,h()})),()=>{a?.()}}function ge(t,e,r=1/0){return R(e)?ge((n,i)=>A((o,s)=>e(n,o,i,s))(pe(t(n,i))),r):(typeof e=="number"&&(r=e),j((n,i)=>cf(n,i,t,r)))}function tn(t=1/0){return ge(Se,t)}function uf(){return tn(1)}function sr(...t){return uf()(X(t,en(t)))}function Eo(t){return new B(e=>{pe(t()).subscribe(e)})}function ic(...t){let e=so(t),{args:r,keys:n}=Co(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?bo(n,a):a),o.complete())}))}});return e?i.pipe(wo(e)):i}function Ce(t,e){return j((r,n)=>{let i=0;r.subscribe(P(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Ze(t){return j((e,r)=>{let n=null,i=!1,o;n=e.subscribe(P(r,void 0,void 0,s=>{o=pe(t(s,Ze(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function lf(t,e,r,n,i){return(o,s)=>{let a=r,c=e,u=0;o.subscribe(P(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Lt(t,e){return R(e)?ge(t,e,1):ge(t,1)}function oc(t,e=qd){return j((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l{o=u,s=e.now(),i||(i=e.schedule(c,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function nn(t){return j((e,r)=>{let n=!1;e.subscribe(P(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Vt(t){return t<=0?()=>Ve:j((e,r)=>{let n=0;e.subscribe(P(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function sc(t){return A(()=>t)}function ac(t,e=Se){return t=t??Py,j((r,n)=>{let i,o=!0;r.subscribe(P(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function Py(t,e){return t===e}function Io(t=Ly){return j((e,r)=>{let n=!1;e.subscribe(P(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function Ly(){return new Pt}function rn(t){return j((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function wt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?Ce((i,o)=>t(i,o,n)):Se,Vt(1),r?nn(e):Io(()=>new Pt))}function ar(t){return t<=0?()=>Ve:j((e,r)=>{let n=[];e.subscribe(P(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function cc(t,e){let r=arguments.length>=2;return n=>n.pipe(t?Ce((i,o)=>t(i,o,n)):Se,ar(1),r?nn(e):Io(()=>new Pt))}function uc(t,e){return j(lf(t,e,arguments.length>=2,!0))}function lc(...t){let e=en(t);return j((r,n)=>{(e?sr(t,r,e):sr(t,r)).subscribe(n)})}function De(t,e){return j((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(P(n,c=>{i?.unsubscribe();let u=0,l=o++;pe(t(c,l)).subscribe(i=P(n,d=>n.next(e?e(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function dc(t){return j((e,r)=>{pe(t).subscribe(P(r,()=>r.complete(),Kr)),!r.closed&&e.subscribe(r)})}function se(t,e,r){let n=R(t)||e||r?{next:t,error:e,complete:r}:t;return n?j((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(P(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.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)}))}):Se}var Jf="https://g.co/ng/security#xss",b=class extends Error{constructor(e,r){super(as(e,r)),this.code=e}};function as(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ui(t){return{toString:t}.toString()}var Mo="__parameters__";function Vy(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Xf(t,e,r){return ui(()=>{let n=Vy(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);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&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var be=globalThis;function Y(t){for(let e in t)if(t[e]===Y)return e;throw Error("Could not find renamed property on target object.")}function jy(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ae(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ae).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function df(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var By=Y({__forward_ref__:Y});function Tt(t){return t.__forward_ref__=Tt,t.toString=function(){return Ae(this())},t}function Te(t){return eh(t)?t():t}function eh(t){return typeof t=="function"&&t.hasOwnProperty(By)&&t.__forward_ref__===Tt}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ne(t){return{providers:t.providers||[],imports:t.imports||[]}}function cs(t){return ff(t,nh)||ff(t,rh)}function th(t){return cs(t)!==null}function ff(t,e){return t.hasOwnProperty(e)?t[e]:null}function Uy(t){let e=t&&(t[nh]||t[rh]);return e||null}function hf(t){return t&&(t.hasOwnProperty(pf)||t.hasOwnProperty($y))?t[pf]:null}var nh=Y({\u0275prov:Y}),pf=Y({\u0275inj:Y}),rh=Y({ngInjectableDef:Y}),$y=Y({ngInjectorDef:Y}),D=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=y({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ih(t){return t&&!!t.\u0275providers}var Hy=Y({\u0275cmp:Y}),zy=Y({\u0275dir:Y}),Gy=Y({\u0275pipe:Y}),qy=Y({\u0275mod:Y}),Po=Y({\u0275fac:Y}),ei=Y({__NG_ELEMENT_ID__:Y}),gf=Y({__NG_ENV_ID__:Y});function us(t){return typeof t=="string"?t:t==null?"":String(t)}function Wy(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():us(t)}function Zy(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,t)}function Du(t,e){throw new b(-201,!1)}var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{}),_c;function oh(){return _c}function Fe(t){let e=_c;return _c=t,e}function sh(t,e,r){let n=cs(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;Du(t,"Injector")}var Yy={},ni=Yy,Sc="__NG_DI_FLAG__",Lo="ngTempTokenPath",Qy="ngTokenPath",Ky=/\n/gm,Jy="\u0275",mf="__source",fr;function Xy(){return fr}function on(t){let e=fr;return fr=t,e}function eD(t,e=L.Default){if(fr===void 0)throw new b(-203,!1);return fr===null?sh(t,void 0,e):fr.get(t,e&L.Optional?null:void 0,e)}function E(t,e=L.Default){return(oh()||eD)(Te(t),e)}function p(t,e=L.Default){return E(t,ls(e))}function ls(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Tc(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ae(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Ky,` + `)}`}var ds=ah(Xf("Optional"),8);var wu=ah(Xf("SkipSelf"),4);function kn(t,e){let r=t.hasOwnProperty(Po);return r?t[Po]:null}function iD(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Cu(r,e):e(r))}function ch(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Vo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function sD(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function aD(t,e,r){let n=li(t,e);return n>=0?t[n|1]=r:(n=~n,sD(t,n,e,r)),n}function fc(t,e){let r=li(t,e);if(r>=0)return t[r|1]}function li(t,e){return cD(t,e,1)}function cD(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(ut(n))return!1;s=!0}}}}return ut(n)||s}function ut(t){return(t&1)===0}function pD(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!ut(s)&&(e+=yf(o,i),i=""),n=s,o=o||!ut(n);r++}return i!==""&&(e+=yf(o,i)),e}function DD(t){return t.map(yD).join(",")}function wD(t){let e=[],r=[],n=1,i=2;for(;n{let e=yh(t),r=U(m({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===dh.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Et.Emulated,styles:t.styles||Ye,_:null,schemas:t.schemas||null,tView:null,id:""});Dh(r);let n=t.dependencies;return r.directiveDefs=wf(n,!1),r.pipeDefs=wf(n,!0),r.id=ED(r),r})}function CD(t){return cn(t)||ph(t)}function bD(t){return t!==null}function re(t){return ui(()=>({type:t.type,bootstrap:t.bootstrap||Ye,declarations:t.declarations||Ye,imports:t.imports||Ye,exports:t.exports||Ye,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Df(t,e){if(t==null)return pr;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=mr.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==mr.None?[n,a]:n,e[o]=s):r[o]=n}return r}function le(t){return ui(()=>{let e=yh(t);return Dh(e),e})}function di(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function cn(t){return t[Hy]||null}function ph(t){return t[zy]||null}function gh(t){return t[Gy]||null}function mh(t){let e=cn(t)||ph(t)||gh(t);return e!==null?e.standalone:!1}function vh(t,e){let r=t[qy]||null;if(!r&&e===!0)throw new Error(`Type ${Ae(t)} does not have '\u0275mod' property.`);return r}function yh(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||pr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ye,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Df(t.inputs,e),outputs:Df(t.outputs),debugInfo:null}}function Dh(t){t.features?.forEach(e=>e(t))}function wf(t,e){if(!t)return null;let r=e?gh:CD;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(bD)}function ED(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function fs(t){return{\u0275providers:t}}function ID(...t){return{\u0275providers:wh(!0,t),\u0275fromNgModule:!0}}function wh(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Cu(e,s=>{let a=s;xc(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Ch(i,o),r}function Ch(t,e){for(let r=0;r{e(o,n)})}}function xc(t,e,r,n){if(t=Te(t),!t)return!1;let i=null,o=hf(t),s=!o&&cn(t);if(!o&&!s){let c=t.ngModule;if(o=hf(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)xc(u,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;try{Cu(o.imports,l=>{xc(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ch(u,e)}if(!a){let u=kn(i)||(()=>new i);e({provide:i,useFactory:u,deps:Ye},i),e({provide:lh,useValue:i,multi:!0},i),e({provide:gr,useValue:()=>E(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=t;Eu(c,l=>{e(l,u)})}}else return!1;return i!==t&&t.providers!==void 0}function Eu(t,e){for(let r of t)ih(r)&&(r=r.\u0275providers),Array.isArray(r)?Eu(r,e):e(r)}var MD=Y({provide:String,useValue:Y});function bh(t){return t!==null&&typeof t=="object"&&MD in t}function _D(t){return!!(t&&t.useExisting)}function SD(t){return!!(t&&t.useFactory)}function vr(t){return typeof t=="function"}function TD(t){return!!t.useClass}var hs=new D(""),xo={},AD={},hc;function Iu(){return hc===void 0&&(hc=new jo),hc}var Ie=class{},ii=class extends Ie{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rc(e,s=>this.processProvider(s)),this.records.set(uh,cr(void 0,this)),i.has("environment")&&this.records.set(Ie,cr(void 0,this));let o=this.records.get(hs);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(lh,Ye,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=$(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(),$(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=on(this),n=Fe(void 0),i;try{return e()}finally{on(r),Fe(n)}}get(e,r=ni,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(gf))return e[gf](this);n=ls(n);let i,o=on(this),s=Fe(void 0);try{if(!(n&L.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=FD(e)&&cs(e);u&&this.injectableDefInScope(u)?c=cr(Nc(e),xo):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&L.Self?Iu():this.parent;return r=n&L.Optional&&r===ni?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Lo]=a[Lo]||[]).unshift(Ae(e)),o)throw a;return nD(a,e,"R3InjectorError",this.source)}else throw a}finally{Fe(s),on(o)}}resolveInjectorInitializers(){let e=$(null),r=on(this),n=Fe(void 0),i;try{let o=this.get(gr,Ye,L.Self);for(let s of o)s()}finally{on(r),Fe(n),$(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Ae(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){e=Te(e);let r=vr(e)?e:Te(e&&e.provide),n=ND(e);if(!vr(e)&&e.multi===!0){let i=this.records.get(r);i||(i=cr(void 0,xo,!0),i.factory=()=>Tc(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=$(null);try{return r.value===xo&&(r.value=AD,r.value=r.factory()),typeof r.value=="object"&&r.value&&OD(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{$(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Te(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Nc(t){let e=cs(t),r=e!==null?e.factory:kn(t);if(r!==null)return r;if(t instanceof D)throw new b(204,!1);if(t instanceof Function)return xD(t);throw new b(204,!1)}function xD(t){if(t.length>0)throw new b(204,!1);let r=Uy(t);return r!==null?()=>r.factory(t):()=>new t}function ND(t){if(bh(t))return cr(void 0,t.useValue);{let e=Eh(t);return cr(e,xo)}}function Eh(t,e,r){let n;if(vr(t)){let i=Te(t);return kn(i)||Nc(i)}else if(bh(t))n=()=>Te(t.useValue);else if(SD(t))n=()=>t.useFactory(...Tc(t.deps||[]));else if(_D(t))n=()=>E(Te(t.useExisting));else{let i=Te(t&&(t.useClass||t.provide));if(RD(t))n=()=>new i(...Tc(t.deps));else return kn(i)||Nc(i)}return n}function cr(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function RD(t){return!!t.deps}function OD(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function FD(t){return typeof t=="function"||typeof t=="object"&&t instanceof D}function Rc(t,e){for(let r of t)Array.isArray(r)?Rc(r,e):r&&ih(r)?Rc(r.\u0275providers,e):e(r)}function Ue(t,e){t instanceof ii&&t.assertNotDestroyed();let r,n=on(t),i=Fe(void 0);try{return e()}finally{on(n),Fe(i)}}function Ih(){return oh()!==void 0||Xy()!=null}function kD(t){if(!Ih())throw new b(-203,!1)}function PD(t){let e=be.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function LD(t){return typeof t=="function"}var Ut=0,F=1,x=2,Me=3,lt=4,ft=5,Bo=6,Uo=7,dt=8,yr=9,It=10,Ee=11,oi=12,Cf=13,Mr=14,Mt=15,Pn=16,ur=17,jt=18,ps=19,Mh=20,sn=21,pc=22,Qe=23,Ke=25,_h=1;var Ln=7,$o=8,Dr=9,je=10,Ho=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ho||{});function an(t){return Array.isArray(t)&&typeof t[_h]=="object"}function $t(t){return Array.isArray(t)&&t[_h]===!0}function Sh(t){return(t.flags&4)!==0}function gs(t){return t.componentOffset>-1}function Mu(t){return(t.flags&1)===1}function un(t){return!!t.template}function Oc(t){return(t[x]&512)!==0}var Fc=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Th(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function ht(){return Ah}function Ah(t){return t.type.prototype.ngOnChanges&&(t.setInput=jD),VD}ht.ngInherit=!0;function VD(){let t=Nh(this),e=t?.current;if(e){let r=t.previous;if(r===pr)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function jD(t,e,r,n,i){let o=this.declaredInputs[n],s=Nh(t)||BD(t,{previous:pr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new Fc(u&&u.currentValue,r,c===pr),Th(t,e,i,r)}var xh="__ngSimpleChanges__";function Nh(t){return t[xh]||null}function BD(t,e){return t[xh]=e}var bf=null;var Ct=function(t,e,r){bf?.(t,e,r)},UD="svg",$D="math";function _t(t){for(;Array.isArray(t);)t=t[Ut];return t}function Rh(t,e){return _t(e[t])}function Je(t,e){return _t(e[t.index])}function Oh(t,e){return t.data[e]}function _u(t,e){return t[e]}function dn(t,e){let r=e[t];return an(r)?r:r[Ut]}function HD(t){return(t[x]&4)===4}function Su(t){return(t[x]&128)===128}function zD(t){return $t(t[Me])}function zo(t,e){return e==null?null:t[e]}function Fh(t){t[ur]=0}function kh(t){t[x]&1024||(t[x]|=1024,Su(t)&&ms(t))}function GD(t,e){for(;t>0;)e=e[Mr],t--;return e}function si(t){return!!(t[x]&9216||t[Qe]?.dirty)}function kc(t){t[It].changeDetectionScheduler?.notify(7),t[x]&64&&(t[x]|=1024),si(t)&&ms(t)}function ms(t){t[It].changeDetectionScheduler?.notify(0);let e=Vn(t);for(;e!==null&&!(e[x]&8192||(e[x]|=8192,!Su(e)));)e=Vn(e)}function Ph(t,e){if((t[x]&256)===256)throw new b(911,!1);t[sn]===null&&(t[sn]=[]),t[sn].push(e)}function qD(t,e){if(t[sn]===null)return;let r=t[sn].indexOf(e);r!==-1&&t[sn].splice(r,1)}function Vn(t){let e=t[Me];return $t(e)?e[Me]:e}var V={lFrame:Gh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Lh=!1;function WD(){return V.lFrame.elementDepthCount}function ZD(){V.lFrame.elementDepthCount++}function YD(){V.lFrame.elementDepthCount--}function Vh(){return V.bindingsEnabled}function QD(){return V.skipHydrationRootTNode!==null}function KD(t){return V.skipHydrationRootTNode===t}function JD(){V.skipHydrationRootTNode=null}function H(){return V.lFrame.lView}function ke(){return V.lFrame.tView}function Ht(t){return V.lFrame.contextLView=t,t[dt]}function zt(t){return V.lFrame.contextLView=null,t}function xe(){let t=jh();for(;t!==null&&t.type===64;)t=t.parent;return t}function jh(){return V.lFrame.currentTNode}function XD(){let t=V.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function fi(t,e){let r=V.lFrame;r.currentTNode=t,r.isParent=e}function Bh(){return V.lFrame.isParent}function ew(){V.lFrame.isParent=!1}function tw(){return V.lFrame.contextLView}function Uh(){return Lh}function Ef(t){Lh=t}function vs(){let t=V.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function nw(t){return V.lFrame.bindingIndex=t}function Tu(){return V.lFrame.bindingIndex++}function rw(t){let e=V.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function iw(){return V.lFrame.inI18n}function ow(t,e){let r=V.lFrame;r.bindingIndex=r.bindingRootIndex=t,Pc(e)}function sw(){return V.lFrame.currentDirectiveIndex}function Pc(t){V.lFrame.currentDirectiveIndex=t}function aw(t){let e=V.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function $h(){return V.lFrame.currentQueryIndex}function Au(t){V.lFrame.currentQueryIndex=t}function cw(t){let e=t[F];return e.type===2?e.declTNode:e.type===1?t[ft]:null}function Hh(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=cw(o),i===null||(o=o[Mr],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=V.lFrame=zh();return n.currentTNode=e,n.lView=t,!0}function xu(t){let e=zh(),r=t[F];V.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function zh(){let t=V.lFrame,e=t===null?null:t.child;return e===null?Gh(t):e}function Gh(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function qh(){let t=V.lFrame;return V.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Wh=qh;function Nu(){let t=qh();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function uw(t){return(V.lFrame.contextLView=GD(t,V.lFrame.contextLView))[dt]}function _r(){return V.lFrame.selectedIndex}function jn(t){V.lFrame.selectedIndex=t}function Zh(){let t=V.lFrame;return Oh(t.tView,t.selectedIndex)}function lw(){return V.lFrame.currentNamespace}var Yh=!0;function Ru(){return Yh}function Ou(t){Yh=t}function dw(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Ah(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Fu(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[c]<0&&(t[ur]+=65536),(a>14>16&&(t[x]&3)===e&&(t[x]+=16384,If(a,o)):If(a,o)}var hr=-1,Bn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function hw(t){return t instanceof Bn}function pw(t){return(t.flags&8)!==0}function gw(t){return(t.flags&16)!==0}function Kh(t){return t!==hr}function Go(t){return t&32767}function mw(t){return t>>16}function qo(t,e){let r=mw(t),n=e;for(;r>0;)n=n[Mr],r--;return n}var Lc=!0;function Wo(t){let e=Lc;return Lc=t,e}var vw=256,Jh=vw-1,Xh=5,yw=0,bt={};function Dw(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ei)&&(n=r[ei]),n==null&&(n=r[ei]=yw++);let i=n&Jh,o=1<>Xh)]|=o}function Zo(t,e){let r=ep(t,e);if(r!==-1)return r;let n=e[F];n.firstCreatePass&&(t.injectorIndex=e.length,mc(n.data,t),mc(e,null),mc(n.blueprint,null));let i=ku(t,e),o=t.injectorIndex;if(Kh(i)){let s=Go(i),a=qo(i,e),c=a[F].data;for(let u=0;u<8;u++)e[o+u]=a[s+u]|c[s+u]}return e[o+8]=i,o}function mc(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ep(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ku(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=op(i),n===null)return hr;if(r++,i=i[Mr],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return hr}function Vc(t,e,r){Dw(t,e,r)}function ww(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,h=i?a+l:u;for(let f=d;f=c&&g.type===r)return f}if(i){let f=s[c];if(f&&un(f)&&f.type===r)return c}return null}function Un(t,e,r,n){let i=t[r],o=e.data;if(hw(i)){let s=i;s.resolving&&Zy(Wy(o[r]));let a=Wo(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Fe(s.injectImpl):null,l=Hh(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&dw(r,o[r],e)}finally{u!==null&&Fe(u),Wo(a),s.resolving=!1,Wh()}}return i}function bw(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ei)?t[ei]:void 0;return typeof e=="number"?e>=0?e&Jh:Ew:e}function Mf(t,e,r){let n=1<>Xh)]&n)}function _f(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var Fn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return rp(this._tNode,this._lView,e,ls(n),r)}};function Ew(){return new Fn(xe(),H())}function Sr(t){return ui(()=>{let e=t.prototype.constructor,r=e[Po]||jc(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Po]||jc(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function jc(t){return eh(t)?()=>{let e=jc(Te(t));return e&&e()}:kn(t)}function Iw(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[x]&2048&&!(s[x]&512);){let a=ip(o,s,r,n|L.Self,bt);if(a!==bt)return a;let c=o.parent;if(!c){let u=s[Mh];if(u){let l=u.get(r,bt,n);if(l!==bt)return l}c=op(s),s=s[Mr]}o=c}return i}function op(t){let e=t[F],r=e.type;return r===2?e.declTNode:r===1?t[ft]:null}function Pu(t){return ww(xe(),t)}function Sf(t,e=null,r=null,n){let i=sp(t,e,r,n);return i.resolveInjectorInitializers(),i}function sp(t,e=null,r=null,n,i=new Set){let o=[r||Ye,ID(t)];return n=n||(typeof t=="object"?void 0:Ae(t)),new ii(o,e||Iu(),n||null,i)}var On=class On{static create(e,r){if(Array.isArray(e))return Sf({name:""},r,e,"");{let n=e.name??"";return Sf({name:n},e.parent,e.providers,n)}}};On.THROW_IF_NOT_FOUND=ni,On.NULL=new jo,On.\u0275prov=y({token:On,providedIn:"any",factory:()=>E(uh)}),On.__NG_ELEMENT_ID__=-1;var Be=On;var Mw=new D("");Mw.__NG_ELEMENT_ID__=t=>{let e=xe();if(e===null)throw new b(204,!1);if(e.type&2)return e.value;if(t&L.Optional)return null;throw new b(204,!1)};var _w="ngOriginalError";function vc(t){return t[_w]}var St=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&vc(e);for(;r&&vc(r);)r=vc(r);return r||null}},ap=new D("",{providedIn:"root",factory:()=>p(St).handleError.bind(void 0)}),Lu=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Sw,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Bc=class extends Lu{constructor(e){super(),this._lView=e}onDestroy(e){return Ph(this._lView,e),()=>qD(this._lView,e)}};function Sw(){return new Bc(H())}function Tw(){return Tr(xe(),H())}function Tr(t,e){return new Pe(Je(t,e))}var Pe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Tw;let t=e;return t})();function Aw(t){return t instanceof Pe?t.nativeElement:t}var Gt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ye(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Uc=class extends he{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Ih()&&(this.destroyRef=p(Lu,{optional:!0})??void 0,this.pendingTasks=p(Gt,{optional:!0})??void 0)}emit(e){let r=$(null);try{super.next(e)}finally{$(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof oe&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},ie=Uc;function xw(){return this._results[Symbol.iterator]()}var $c=class t{get changes(){return this._changes??=new ie}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=xw)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=oD(e);(this._changesDetected=!iD(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function cp(t){return(t.flags&128)===128}var up=new Map,Nw=0;function Rw(){return Nw++}function Ow(t){up.set(t[ps],t)}function Fw(t){up.delete(t[ps])}var Tf="__ngContext__";function $n(t,e){an(e)?(t[Tf]=e[ps],Ow(e)):t[Tf]=e}function lp(t){return fp(t[oi])}function dp(t){return fp(t[lt])}function fp(t){for(;t!==null&&!$t(t);)t=t[lt];return t}var Hc;function hp(t){Hc=t}function kw(){if(Hc!==void 0)return Hc;if(typeof document<"u")return document;throw new b(210,!1)}var ys=new D("",{providedIn:"root",factory:()=>Pw}),Pw="ng",Vu=new D(""),At=new D("",{providedIn:"platform",factory:()=>"unknown"});var ju=new D("",{providedIn:"root",factory:()=>kw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Lw="h",Vw="b";var jw=()=>null;function Bu(t,e,r=!1){return jw(t,e,r)}var pp=!1,Bw=new D("",{providedIn:"root",factory:()=>pp});var _o;function Uw(){if(_o===void 0&&(_o=null,be.trustedTypes))try{_o=be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return _o}function Af(t){return Uw()?.createScriptURL(t)||t}var Yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jf})`}};function hi(t){return t instanceof Yo?t.changingThisBreaksApplicationSecurity:t}function Uu(t,e){let r=$w(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Jf})`)}return r===e}function $w(t){return t instanceof Yo&&t.getTypeName()||null}var Hw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function gp(t){return t=String(t),t.match(Hw)?t:"unsafe:"+t}var Ds=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ds||{});function pi(t){let e=vp();return e?e.sanitize(Ds.URL,t)||"":Uu(t,"URL")?hi(t):gp(us(t))}function zw(t){let e=vp();if(e)return Af(e.sanitize(Ds.RESOURCE_URL,t)||"");if(Uu(t,"ResourceURL"))return Af(hi(t));throw new b(904,!1)}function Gw(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?zw:pi}function mp(t,e,r){return Gw(e,r)(t)}function vp(){let t=H();return t&&t[It].sanitizer}function yp(t){return t instanceof Function?t():t}function qw(t){return(t??p(Be)).get(At)==="browser"}var Bt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Bt||{}),Ww;function $u(t,e){return Ww(t,e)}function lr(t,e,r,n,i){if(n!=null){let o,s=!1;$t(n)?o=n:an(n)&&(s=!0,n=n[Ut]);let a=_t(n);t===0&&r!==null?i==null?Ep(e,r,a):Qo(e,r,a,i||null,!0):t===1&&r!==null?Qo(e,r,a,i||null,!0):t===2?uC(e,a,s):t===3&&e.destroyNode(a),o!=null&&dC(e,t,o,r,i)}}function Zw(t,e){return t.createText(e)}function Yw(t,e,r){t.setValue(e,r)}function Dp(t,e,r){return t.createElement(e,r)}function Qw(t,e){wp(t,e),e[Ut]=null,e[ft]=null}function Kw(t,e,r,n,i,o){n[Ut]=i,n[ft]=e,ws(t,n,r,1,i,o)}function wp(t,e){e[It].changeDetectionScheduler?.notify(8),ws(t,e,e[Ee],2,null,null)}function Jw(t){let e=t[oi];if(!e)return yc(t[F],t);for(;e;){let r=null;if(an(e))r=e[oi];else{let n=e[je];n&&(r=n)}if(!r){for(;e&&!e[lt]&&e!==t;)an(e)&&yc(e[F],e),e=e[Me];e===null&&(e=t),an(e)&&yc(e[F],e),r=e&&e[lt]}e=r}}function Xw(t,e,r,n){let i=je+n,o=r.length;n>0&&(r[i-1][lt]=e),n0&&(t[r-1][lt]=n[lt]);let o=Vo(t,je+e);Qw(n[F],n);let s=o[jt];s!==null&&s.detachView(o[F]),n[Me]=null,n[lt]=null,n[x]&=-129}return n}function bp(t,e){if(!(e[x]&256)){let r=e[Ee];r.destroyNode&&ws(t,e,r,3,null,null),Jw(e)}}function yc(t,e){if(e[x]&256)return;let r=$(null);try{e[x]&=-129,e[x]|=256,e[Qe]&&Ha(e[Qe]),tC(t,e),eC(t,e),e[F].type===1&&e[Ee].destroy();let n=e[Pn];if(n!==null&&$t(e[Me])){n!==e[Me]&&Hu(n,e);let i=e[jt];i!==null&&i.detachView(t)}Fw(e)}finally{$(r)}}function eC(t,e){let r=t.cleanup,n=e[Uo];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Uo]=null);let i=e[sn];if(i!==null){e[sn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===Et.None||o===Et.Emulated)return null}return Je(n,r)}}function Qo(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Ep(t,e,r){t.appendChild(e,r)}function xf(t,e,r,n,i){n!==null?Qo(t,e,r,n,i):Ep(t,e,r)}function iC(t,e,r,n){t.removeChild(e,r,n)}function zu(t,e){return t.parentNode(e)}function oC(t,e){return t.nextSibling(e)}function sC(t,e,r){return cC(t,e,r)}function aC(t,e,r){return t.type&40?Je(t,r):null}var cC=aC,Nf;function Gu(t,e,r,n){let i=nC(t,n,e),o=e[Ee],s=n.parent||e[ft],a=sC(s,n,e);if(i!=null)if(Array.isArray(r))for(let c=0;cKe&&Sp(t,e,Ke,!1),Ct(s?2:0,i),r(n,i)}finally{jn(o),Ct(s?3:1,i)}}function Rp(t,e,r){if(Sh(e)){let n=$(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function wC(t,e,r,n){let i=Up(e);i.push(r),t.firstCreatePass&&$p(t).push(n,i.length-1)}function CC(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return QD()&&(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:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Rf(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,c=mr.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}t===0?Of(n,r,u,a,c):Of(n,r,u,a)}return n}function Of(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function bC(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function TC(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;gs(r)&&kC(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Zo(r,e),$n(n,e);let s=r.initialInputs;for(let a=i;a{ms(t.lView)},consumerOnSignalRead(){this.lView[Qe]=this}});function KC(t){let e=t[Qe]??Object.create(JC);return e.lView=t,e}var JC=U(m({},Ba),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Vn(t.lView);for(;e&&!Gp(e[F]);)e=Vn(e);e&&kh(e)},consumerOnSignalRead(){this.lView[Qe]=this}});function Gp(t){return t.type!==2}var XC=100;function qp(t,e=!0,r=0){let n=t[It],i=n.rendererFactory,o=!1;o||i.begin?.();try{eb(t,r)}catch(s){throw e&&Hp(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function eb(t,e){let r=Uh();try{Ef(!0),Zc(t,e);let n=0;for(;si(t);){if(n===XC)throw new b(103,!1);n++,Zc(t,1)}}finally{Ef(r)}}function tb(t,e,r,n){let i=e[x];if((i&256)===256)return;let o=!1,s=!1;!o&&e[It].inlineEffectRunner?.flush(),xu(e);let a=!0,c=null,u=null;o||(Gp(t)?(u=WC(e),c=Ua(u)):Pd()===null?(a=!1,u=KC(e),c=Ua(u)):e[Qe]&&(Ha(e[Qe]),e[Qe]=null));try{Fh(e),nw(t.bindingStartIndex),r!==null&&Np(t,e,r,2,n);let l=(i&3)===3;if(!o)if(l){let f=t.preOrderCheckHooks;f!==null&&No(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Ro(e,f,0,null),gc(e,0)}if(s||nb(e),Wp(e,0),t.contentQueries!==null&&Bp(t,e),!o)if(l){let f=t.contentCheckHooks;f!==null&&No(e,f)}else{let f=t.contentHooks;f!==null&&Ro(e,f,1),gc(e,1)}pC(t,e);let d=t.components;d!==null&&Yp(e,d,0);let h=t.viewQuery;if(h!==null&&Wc(2,h,n),!o)if(l){let f=t.viewCheckHooks;f!==null&&No(e,f)}else{let f=t.viewHooks;f!==null&&Ro(e,f,2),gc(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[pc]){for(let f of e[pc])f();e[pc]=null}o||(e[x]&=-73)}catch(l){throw o||ms(e),l}finally{u!==null&&(Ld(u,c),a&&YC(u)),Nu()}}function Wp(t,e){for(let r=lp(t);r!==null;r=dp(r))for(let n=je;n-1&&(zc(e,n),Vo(r,n))}this._attachedToViewContainer=!1}bp(this._lView[F],this._lView)}onDestroy(e){Ph(this._lView,e)}markForCheck(){Qu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[x]&=-129}reattach(){kc(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,qp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Oc(this._lView),r=this._lView[Pn];r!==null&&!e&&Hu(r,this._lView),wp(this._lView[F],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e;let r=Oc(this._lView),n=this._lView[Pn];n!==null&&!r&&Cp(n,this._lView),kc(this._lView)}},zn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sb;let t=e;return t})(),ib=zn,ob=class extends ib{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=zC(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Hn(i)}};function sb(){return Ku(xe(),H())}function Ku(t,e){return t.type&4?new ob(e,t,Tr(t,e)):null}var _F=new RegExp(`^(\\d+)*(${Vw}|${Lw})*(.*)`);var ab=()=>null;function kf(t,e){return ab(t,e)}var wr=class{},Qp=new D("",{providedIn:"root",factory:()=>!1});var Kp=new D(""),Yc=class{},Jo=class{};function cb(t){let e=Error(`No component factory found for ${Ae(t)}.`);return e[ub]=t,e}var ub="ngComponent";var Qc=class{resolveComponentFactory(e){throw cb(e)}},ul=class ul{};ul.NULL=new Qc;var Cr=ul,br=class{},xt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>lb();let t=e;return t})();function lb(){let t=H(),e=xe(),r=dn(e.index,t);return(an(r)?r:t)[Ee]}var db=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Dc={};var Pf=new Set;function Is(t){Pf.has(t)||(Pf.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Jp(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof be.requestAnimationFrame=="function"&&be.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function Lf(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function Vf(...t){}var W=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.callbackScheduled=!1,pb(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,fb,Vf,Vf);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},fb={};function Ju(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function hb(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Jp(()=>{t.callbackScheduled=!1,Kc(t),t.isCheckStableRunning=!0,Ju(t),t.isCheckStableRunning=!1})}),Kc(t))}function pb(t){let e=()=>{hb(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(gb(a))return r.invokeTask(i,o,s,a);try{return jf(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Bf(t)}},onInvoke:(r,n,i,o,s,a,c)=>{try{return jf(t),r.invoke(i,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!mb(a)&&e(),Bf(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Kc(t),Ju(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Kc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function jf(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Bf(t){t._nesting--,Ju(t)}var Xo=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(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function gb(t){return Xp(t,"__ignore_ng_zone__")}function mb(t){return Xp(t,"__scheduler_tick__")}function Xp(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function vb(t="zone.js",e){return t==="noop"?new Xo:t==="zone.js"?new W(e):t}var dr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(dr||{}),yb={destroy(){}};function Ms(t,e){!e&&kD(Ms);let r=e?.injector??p(Be);if(!qw(r))return yb;Is("NgAfterNextRender");let n=r.get(Xu),i=n.handler??=new Xc,o=e?.phase??dr.MixedReadWrite,s=()=>{i.unregister(c),a()},a=r.get(Lu).onDestroy(s),c=Ue(r,()=>new Jc(o,()=>{s(),t()}));return i.register(c),{destroy:s}}var Jc=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(W),this.errorHandler=p(St,{optional:!0}),p(wr,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},Xc=class{constructor(){this.executingCallbacks=!1,this.buckets={[dr.EarlyRead]:new Set,[dr.Write]:new Set,[dr.MixedReadWrite]:new Set,[dr.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},Xu=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function eu(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Mp(t,r,o.join(" "))}}function Mb(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=Sb;let t=e;return t})();function Sb(){let t=xe();return tg(t,H())}var Tb=hn,eg=class extends Tb{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Tr(this._hostTNode,this._hostLView)}get injector(){return new Fn(this._hostTNode,this._hostLView)}get parentInjector(){let e=ku(this._hostTNode,this._hostLView);if(Kh(e)){let r=qo(e,this._hostLView),n=Go(e),i=r[F].data[n+8];return new Fn(i,r)}else return new Fn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=$f(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-je}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=kf(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Ff(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!LD(e),a;if(s)a=r;else{let g=r||{};a=g.index,n=g.injector,i=g.projectableNodes,o=g.environmentInjector||g.ngModuleRef}let c=s?e:new Er(cn(e)),u=n||this.parentInjector;if(!o&&c.ngModule==null){let T=(s?u:this.parentInjector).get(Ie,null);T&&(o=T)}let l=cn(c.componentType??{}),d=kf(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,i,h,o);return this.insertImpl(f.hostView,a,Ff(this._hostTNode,d)),f}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(zD(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=i[Me],u=new eg(c,c[ft],c[Me]);u.detach(u.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return GC(s,i,o,n),e.attachToViewContainerRef(),ch(wc(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=$f(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=zc(this._lContainer,r);n&&(Vo(wc(this._lContainer),r),bp(n[F],n))}detach(e){let r=this._adjustIndex(e,-1),n=zc(this._lContainer,r);return n&&Vo(wc(this._lContainer),r)!=null?new Hn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function $f(t){return t[$o]}function wc(t){return t[$o]||(t[$o]=[])}function tg(t,e){let r,n=e[t.index];return $t(n)?r=n:(r=jp(n,e,null,t),e[t.index]=r,Es(e,r)),xb(r,e,t,n),new eg(r,t,e)}function Ab(t,e){let r=t[Ee],n=r.createComment(""),i=Je(e,t),o=zu(r,i);return Qo(r,o,n,oC(r,i),!1),n}var xb=Ob,Nb=()=>!1;function Rb(t,e,r){return Nb(t,e,r)}function Ob(t,e,r,n){if(t[Ln])return;let i;r.type&8?i=_t(n):i=Ab(e,r),t[Ln]=i}var ru=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},iu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let u=o[a+1],l=e[-c];for(let d=je;de.trim())}function $b(t,e,r){t.queries===null&&(t.queries=new su),t.queries.track(new au(e,r))}function Hb(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function el(t,e){return t.queries.getByIndex(e)}function zb(t,e){let r=t[F],n=el(r,e);return n.crossesNgTemplate?cu(r,t,e,[]):ng(r,t,n,e)}function Gb(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(Yb))}return o}return ts.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(u=>{i.template=u}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.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(i.styleUrls?.length){let u=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,h)=>{a.push(""),s.push(n(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(u=>{a.push(u),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>Qb(o));e.push(c)}),Wb(),Promise.all(e).then(()=>{})}var ts=new Map,qb=new Set;function Wb(){let t=ts;return ts=new Map,t}function Zb(){return ts.size===0}function Yb(t){return typeof t=="string"?t:t.text()}function Qb(t){qb.delete(t)}function Kb(t){return Object.getPrototypeOf(t.prototype).constructor}function pt(t){let e=Kb(t.type),r=!0,n=[t];for(;e;){let i;if(un(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new b(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=So(t.inputs),s.inputTransforms=So(t.inputTransforms),s.declaredInputs=So(t.declaredInputs),s.outputs=So(t.outputs);let a=i.hostBindings;a&&nE(t,a);let c=i.viewQuery,u=i.contentQueries;if(c&&eE(t,c),u&&tE(t,u),Jb(t,i),jy(t.outputs,i.outputs),un(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=ri(i.hostAttrs,r=ri(r,i.hostAttrs))}}function So(t){return t===pr?{}:t===Ye?[]:t}function eE(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function tE(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function nE(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function tl(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var ln=class{},ai=class{};var ns=class extends ln{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new es(this);let i=vh(e);this._bootstrapComponents=yp(i.bootstrap),this._r3Injector=sp(e,r,[{provide:ln,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver},...n],Ae(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},rs=class extends ai{constructor(e){super(),this.moduleType=e}create(e){return new ns(this.moduleType,e,[])}};function rE(t,e,r){return new ns(t,e,r)}var uu=class extends ln{constructor(e){super(),this.componentFactoryResolver=new es(this),this.instance=null;let r=new ii([...e.providers,{provide:ln,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver}],e.parent||Iu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function _s(t,e,r=null){return new uu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function rg(t){return oE(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function iE(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function pE(t){return(t&2)==2}function gE(t,e){return t&131071|e<<17}function lu(t){return t|2}function Ir(t){return(t&131068)>>2}function Cc(t,e){return t&-131069|e<<2}function mE(t){return(t&1)===1}function du(t){return t|1}function vE(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=qn(s),c=Ir(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||li(d,l)>0)&&(u=!0)}else l=r;if(i)if(c!==0){let h=qn(t[a+1]);t[n+1]=To(h,a),h!==0&&(t[h+1]=Cc(t[h+1],n)),t[a+1]=gE(t[a+1],n)}else t[n+1]=To(a,0),a!==0&&(t[a+1]=Cc(t[a+1],n)),a=n;else t[n+1]=To(c,0),a===0?a=n:t[c+1]=Cc(t[c+1],n),c=n;u&&(t[n+1]=lu(t[n+1])),Hf(t,l,n,!0),Hf(t,l,n,!1),yE(e,l,t,n,o),s=To(a,c),o?e.classBindings=s:e.styleBindings=s}function yE(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&li(o,e)>=0&&(r[n+1]=du(r[n+1]))}function Hf(t,e,r,n){let i=t[r+1],o=e===null,s=n?qn(i):Ir(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],u=t[s+1];DE(c,e)&&(a=!0,t[s+1]=n?du(u):lu(u)),s=n?qn(u):Ir(u)}a&&(t[r+1]=n?lu(i):du(i))}function DE(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?li(t,e)>=0:!1}function O(t,e,r){let n=H(),i=Tu();if(Gn(n,i,e)){let o=ke(),s=Zh();IC(o,s,n,t,e,n[Ee],r,!1)}return O}function zf(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Zu(t,r,o[s],s,n)}function xr(t,e){return wE(t,e,null,!0),xr}function wE(t,e,r,n){let i=H(),o=ke(),s=rw(2);if(o.firstUpdatePass&&bE(o,t,s,n),e!==fn&&Gn(i,s,e)){let a=o.data[_r()];SE(o,a,i,i[Ee],t,i[s+1]=TE(e,r),n,s)}}function CE(t,e){return e>=t.expandoStartIndex}function bE(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[_r()],s=CE(t,r);AE(o,n)&&e===null&&!s&&(e=!1),e=EE(i,o,e,n),vE(i,o,e,r,s,n)}}function EE(t,e,r,n){let i=aw(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=bc(null,t,e,r,n),r=ci(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=bc(i,t,e,r,n),o===null){let c=IE(t,e,n);c!==void 0&&Array.isArray(c)&&(c=bc(null,t,e,c[1],n),c=ci(c,e.attrs,n),ME(t,e,n,c))}else o=_E(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function IE(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Ir(n)!==0)return t[qn(n)]}function ME(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[qn(i)]=n}function _E(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let c=t[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=r[i+1];h===fn&&(h=d?Ye:void 0);let f=d?fc(h,n):l===n?h:void 0;if(u&&!is(f)&&(f=fc(c,n)),is(f)&&(a=f,s))return a;let g=t[i+1];i=s?qn(g):Ir(g)}if(e!==null){let c=o?e.residualClasses:e.residualStyles;c!=null&&(a=fc(c,n))}return a}function is(t){return t!==void 0}function TE(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Ae(hi(t)))),t}function AE(t,e){return(t.flags&(e?8:16))!==0}function xE(t,e,r,n,i,o){let s=e.consts,a=zo(s,i),c=bs(e,t,2,n,a);return Pp(e,r,c,zo(s,o)),c.attrs!==null&&eu(c,c.attrs,!1),c.mergedAttrs!==null&&eu(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function w(t,e,r,n){let i=H(),o=ke(),s=Ke+t,a=i[Ee],c=o.firstCreatePass?xE(s,o,i,e,r,n):o.data[s],u=NE(o,i,c,a,e,t);i[s]=u;let l=Mu(c);return fi(c,!0),_p(a,u,c),!cE(c)&&Ru()&&Gu(o,i,u,c),WD()===0&&$n(u,i),ZD(),l&&(Op(o,i,c),Rp(o,c,i)),n!==null&&Fp(i,c),w}function C(){let t=xe();Bh()?ew():(t=t.parent,fi(t,!1));let e=t;KD(e)&&JD(),YD();let r=ke();return r.firstCreatePass&&(Fu(r,t),Sh(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&pw(e)&&zf(r,e,H(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&gw(e)&&zf(r,e,H(),e.stylesWithoutHost,!1),C}function ce(t,e,r,n){return w(t,e,r,n),C(),ce}var NE=(t,e,r,n,i,o)=>(Ou(!0),Dp(n,i,lw()));function qt(){return H()}var Rn=void 0;function RE(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var OE=["en",[["a","p"],["AM","PM"],Rn],[["AM","PM"],Rn,Rn],[["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"]],Rn,[["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"]],Rn,[["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}",Rn,"{1} 'at' {0}",Rn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",RE],Ec={};function Xe(t){let e=FE(t),r=qf(e);if(r)return r;let n=e.split("-")[0];if(r=qf(n),r)return r;if(n==="en")return OE;throw new b(701,!1)}function qf(t){return t in Ec||(Ec[t]=be.ng&&be.ng.common&&be.ng.common.locales&&be.ng.common.locales[t]),Ec[t]}var de=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(de||{});function FE(t){return t.toLowerCase().replace(/_/g,"-")}var os="en-US";var kE=os;function PE(t){typeof t=="string"&&(kE=t.toLowerCase().replace(/_/g,"-"))}var LE=(t,e,r)=>{};function ue(t,e,r,n){let i=H(),o=ke(),s=xe();return jE(o,i,i[Ee],s,t,e,n),ue}function VE(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function jE(t,e,r,n,i,o,s){let a=Mu(n),u=t.firstCreatePass&&$p(t),l=e[dt],d=Up(e),h=!0;if(n.type&3||s){let T=Je(n,e),I=s?s(T):T,M=d.length,fe=s?Z=>s(_t(Z[n.index])):n.index,J=null;if(!s&&a&&(J=VE(t,e,i,n.index)),J!==null){let Z=J.__ngLastListenerFn__||J;Z.__ngNextListenerFn__=o,J.__ngLastListenerFn__=o,h=!1}else{o=Zf(n,e,l,o),LE(T,i,o);let Z=r.listen(I,i,o);d.push(o,Z),u&&u.push(i,fe,M,M+1)}}else o=Zf(n,e,l,o);let f=n.outputs,g;if(h&&f!==null&&(g=f[i])){let T=g.length;if(T)for(let I=0;I-1?dn(t.index,e):e;Qu(s,5);let a=Wf(e,r,n,o),c=i.__ngNextListenerFn__;for(;c;)a=Wf(e,r,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Le(t=1){return uw(t)}function ig(t,e,r,n){Bb(t,e,r,n)}function og(t){let e=H(),r=ke(),n=$h();Au(n+1);let i=el(r,n);if(t.dirty&&HD(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=zb(e,n);t.reset(o,Aw),t.notifyOnChanges()}return!0}return!1}function sg(){return Vb(H(),$h())}function BE(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function ag(t){let e=tw();return _u(e,Ke+t)}function S(t,e=""){let r=H(),n=ke(),i=t+Ke,o=n.firstCreatePass?bs(n,i,1,e,null):n.data[i],s=UE(n,r,o,e,t);r[i]=s,Ru()&&Gu(n,r,s,o),fi(o,!1)}var UE=(t,e,r,n,i)=>(Ou(!0),Zw(e[Ee],n));function Nt(t){return $e("",t,""),Nt}function $e(t,e,r){let n=H(),i=hE(n,t,e,r);return i!==fn&&BC(n,_r(),i),$e}function $E(t,e,r){let n=ke();if(n.firstCreatePass){let i=un(t);fu(r,n.data,n.blueprint,i,!0),fu(e,n.data,n.blueprint,i,!1)}}function fu(t,e,r,n,i){if(t=Te(t),Array.isArray(t))for(let o=0;o>20;if(vr(t)||!t.multi){let f=new Bn(u,i,v),g=Mc(c,e,i?l:l+h,d);g===-1?(Vc(Zo(a,s),o,c),Ic(o,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[g]=f,s[g]=f)}else{let f=Mc(c,e,l+h,d),g=Mc(c,e,l,l+h),T=f>=0&&r[f],I=g>=0&&r[g];if(i&&!I||!i&&!T){Vc(Zo(a,s),o,c);let M=GE(i?zE:HE,r.length,i,n,u);!i&&I&&(r[g].providerFactory=M),Ic(o,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(M),s.push(M)}else{let M=cg(r[i?g:f],u,!i&&n);Ic(o,t,f>-1?f:g,M)}!i&&n&&I&&r[g].componentProviders++}}}function Ic(t,e,r,n){let i=vr(e),o=TD(e);if(i||o){let c=(o?Te(e.useClass):e).prototype.ngOnDestroy;if(c){let u=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=u.indexOf(r);l===-1?u.push(r,[n,c]):u[l+1].push(n,c)}else u.push(r,c)}}}function cg(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Mc(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>$E(n,i?i(t):t,e)}}var qE=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=wh(!1,n.type),o=i.length>0?_s([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=y({token:e,providedIn:"environment",factory:()=>new e(E(Ie))});let t=e;return t})();function ug(t){Is("NgStandalone"),t.getStandaloneInjector=e=>e.get(qE).getOrCreateStandaloneInjector(t)}function Ss(t,e,r){let n=vs()+t,i=H();return i[n]===fn?nl(i,n,r?e.call(r):e()):sE(i,n)}function Ts(t,e,r,n){return dg(H(),vs(),t,e,r,n)}function lg(t,e){let r=t[e];return r===fn?void 0:r}function dg(t,e,r,n,i,o){let s=e+r;return Gn(t,s,i)?nl(t,s+1,o?n.call(o,i):n(i)):lg(t,s+1)}function WE(t,e,r,n,i,o,s){let a=e+r;return aE(t,a,i,o)?nl(t,a+2,s?n.call(s,i,o):n(i,o)):lg(t,a+2)}function et(t,e){let r=ke(),n,i=t+Ke;r.firstCreatePass?(n=ZE(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=kn(n.type,!0)),s,a=Fe(v);try{let c=Wo(!1),u=o();return Wo(c),BE(r,H(),i,u),u}finally{Fe(a)}}function ZE(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function gt(t,e,r){let n=t+Ke,i=H(),o=_u(i,n);return hg(i,n)?dg(i,vs(),e,o.transform,r,o):o.transform(r)}function fg(t,e,r,n){let i=t+Ke,o=H(),s=_u(o,i);return hg(o,i)?WE(o,vs(),e,s.transform,r,n,s):s.transform(r,n)}function hg(t,e){return t[F].data[e].pure}var Ao=null;function YE(t){Ao!==null&&(t.defaultEncapsulation!==Ao.defaultEncapsulation||t.preserveWhitespaces!==Ao.preserveWhitespaces)||(Ao=t)}var As=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var rl=new D(""),gi=new D(""),xs=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,il||(QE(o),o.addToWindow(i)),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:()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!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,i,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(E(W),E(Ns),E(gi))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ns=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return il?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function QE(t){il=t}var il;function gn(t){return!!t&&typeof t.then=="function"}function ol(t){return!!t&&typeof t.subscribe=="function"}var Rs=new D(""),pg=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Rs,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(gn(s))n.push(s);else if(ol(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Os=new D("");function KE(){Vd(()=>{throw new b(600,!1)})}function JE(t){return t.isBoundToModule}var XE=10;function eI(t,e,r){try{let n=r();return gn(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function gg(t,e){return Array.isArray(e)?e.reduce(gg,t):m(m({},t),e)}var mn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(ap),this.afterRenderEffectManager=p(Xu),this.zonelessEnabled=p(Qp),this.externalTestViews=new Set,this.beforeRender=new he,this.afterTick=new he,this.componentTypes=[],this.components=[],this.isStable=p(Gt).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(Ie)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Jo;if(!this._injector.get(pg).done){let f=!o&&mh(n),g=!1;throw new b(405,g)}let a;o?a=n:a=this._injector.get(Cr).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=JE(a)?void 0:this._injector.get(ln),u=i||a.selector,l=a.create(Be.NULL,[],u,c),d=l.location.nativeElement,h=l.injector.get(rl,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ko(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new b(101,!1);let i=$(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this._runningTick=!1,$(i),this.afterTick.next()}}detectChangesInAttachedViews(n){let i=null;this._injector.destroyed||(i=this._injector.get(br,null,{optional:!0}));let o=0,s=this.afterRenderEffectManager;for(;osi(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>si(c))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ko(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Os,[]);[...this._bootstrapListeners,...i].forEach(o=>o(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 b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ko(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function tI(t,e,r,n){if(!r&&!si(t))return;qp(t,e,r&&!n?0:1)}var pu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Fs=(()=>{let e=class e{compileModuleSync(n){return new rs(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=vh(n),s=yp(o.declarations).reduce((a,c)=>{let u=cn(c);return u&&a.push(new Er(u)),a},[]);return new pu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nI=new D("");function rI(t,e,r){let n=new rs(r);return Promise.resolve(n)}function Yf(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var iI=(()=>{let e=class e{constructor(){this.zone=p(W),this.changeDetectionScheduler=p(wr),this.applicationRef=p(mn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oI({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new W(mg()),[{provide:W,useFactory:t},{provide:gr,multi:!0,useFactory:()=>{let r=p(iI,{optional:!0});return()=>r.initialize()}},{provide:gr,multi:!0,useFactory:()=>{let r=p(aI);return()=>{r.initialize()}}},{provide:ap,useFactory:sI},e===!0?{provide:Kp,useValue:!0}:[]]}function sI(){let t=p(W),e=p(St);return r=>t.runOutsideAngular(()=>e.handleError(r))}function mg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var aI=(()=>{let e=class e{constructor(){this.subscription=new oe,this.initialized=!1,this.zone=p(W),this.pendingTasks=p(Gt)}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(()=>{W.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{W.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var cI=(()=>{let e=class e{constructor(){this.appRef=p(mn),this.taskService=p(Gt),this.ngZone=p(W),this.zonelessEnabled=p(Qp),this.disableScheduling=p(Kp,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new oe,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xo||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?Lf:Jp;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=i(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&W.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let i=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(o){throw this.taskService.remove(i),o}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Lf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(i)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function uI(){return typeof $localize<"u"&&$localize.locale||os}var ks=new D("",{providedIn:"root",factory:()=>p(ks,L.Optional|L.SkipSelf)||uI()});var vg=new D(""),yg=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=vb(i?.ngZone,mg({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=i?.ignoreChangesOutsideZone,a=rE(n.moduleType,this.injector,[...oI({ngZoneFactory:()=>o,ignoreChangesOutsideZone:s}),{provide:wr,useExisting:cI}]),c=a.injector.get(St,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{ko(this._modules,a),u.unsubscribe()})}),eI(c,o,()=>{let u=a.injector.get(pg);return u.runInitializers(),u.donePromise.then(()=>{let l=a.injector.get(ks,os);return PE(l||os),this._moduleDoBootstrap(a),a})})})}bootstrapModule(n,i=[]){let o=gg({},i);return rI(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(mn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new b(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(vg,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(E(Be))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),ti=null,Dg=new D("");function lI(t){if(ti&&!ti.get(Dg,!1))throw new b(400,!1);KE(),ti=t;let e=t.get(yg);return hI(t),e}function sl(t,e,r=[]){let n=`Platform: ${e}`,i=new D(n);return(o=[])=>{let s=wg();if(!s||s.injector.get(Dg,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):lI(dI(a,n))}return fI(i)}}function dI(t=[],e){return Be.create({name:e,providers:[{provide:hs,useValue:"platform"},{provide:vg,useValue:new Set([()=>ti=null])},...t]})}function fI(t){let e=wg();if(!e)throw new b(401,!1);return e}function wg(){return ti?.get(yg)??null}function hI(t){t.get(Vu,null)?.forEach(r=>r())}var vn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=pI;let t=e;return t})();function pI(t){return gI(xe(),H(),(t&16)===16)}function gI(t,e,r){if(gs(t)&&!r){let n=dn(t.index,e);return new Hn(n,n)}else if(t.type&47){let n=e[Mt];return new Hn(n,e)}return null}var gu=class{constructor(){}supports(e){return rg(e)}create(e){return new mu(e)}},mI=(t,e)=>e,mu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||mI}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new vu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new ss),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ss),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},vu=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},yu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},ss=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new yu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Qf(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Kf()),deps:[[e,new wu,new ds]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new b(901,!1)}};e.\u0275prov=y({token:e,providedIn:"root",factory:Kf});let t=e;return t})();var Cg=sl(null,"core",[]),bg=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(E(mn))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})();function Nr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function cl(t){let e=$(null);try{return t()}finally{$(e)}}function Eg(t){let e=cn(t);if(!e)return null;let r=new Er(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var Ag=null;function Rt(){return Ag}function xg(t){Ag??=t}var zs=class{};var _e=new D(""),wl=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(vI),providedIn:"platform"});let t=e;return t})(),Ng=new D(""),vI=(()=>{let e=class e extends wl{constructor(){super(),this._doc=p(_e),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Rt().getBaseHref(this._doc)}onPopState(n){let i=Rt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=Rt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Cl(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Ig(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Zt(t){return t&&t[0]!=="?"?"?"+t:t}var Qt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(bl),providedIn:"root"});let t=e;return t})(),Rg=new D(""),bl=(()=>{let e=class e extends Qt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(_e).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 Cl(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Zt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Zt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Zt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(E(wl),E(Rg,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Og=(()=>{let e=class e extends Qt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Cl(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Zt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Zt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(E(wl),E(Rg,8))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Or=(()=>{let e=class e{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=wI(Ig(Mg(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+Zt(i))}normalize(n){return e.stripTrailingSlash(DI(this._basePath,Mg(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Zt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Zt(i)),o)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Zt,e.joinWithSlash=Cl,e.stripTrailingSlash=Ig,e.\u0275fac=function(i){return new(i||e)(E(Qt))},e.\u0275prov=y({token:e,factory:()=>yI(),providedIn:"root"});let t=e;return t})();function yI(){return new Or(E(Qt))}function DI(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Mg(t){return t.replace(/\/index.html$/,"")}function wI(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var Ne=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ne||{}),K=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(K||{}),He=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(He||{}),yn={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 CI(t){return Xe(t)[de.LocaleId]}function bI(t,e,r){let n=Xe(t),i=[n[de.DayPeriodsFormat],n[de.DayPeriodsStandalone]],o=tt(i,e);return tt(o,r)}function EI(t,e,r){let n=Xe(t),i=[n[de.DaysFormat],n[de.DaysStandalone]],o=tt(i,e);return tt(o,r)}function II(t,e,r){let n=Xe(t),i=[n[de.MonthsFormat],n[de.MonthsStandalone]],o=tt(i,e);return tt(o,r)}function MI(t,e){let n=Xe(t)[de.Eras];return tt(n,e)}function Ps(t,e){let r=Xe(t);return tt(r[de.DateFormat],e)}function Ls(t,e){let r=Xe(t);return tt(r[de.TimeFormat],e)}function Vs(t,e){let n=Xe(t)[de.DateTimeFormat];return tt(n,e)}function qs(t,e){let r=Xe(t),n=r[de.NumberSymbols][e];if(typeof n>"u"){if(e===yn.CurrencyDecimal)return r[de.NumberSymbols][yn.Decimal];if(e===yn.CurrencyGroup)return r[de.NumberSymbols][yn.Group]}return n}function Fg(t){if(!t[de.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[de.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _I(t){let e=Xe(t);return Fg(e),(e[de.ExtraData][2]||[]).map(n=>typeof n=="string"?ll(n):[ll(n[0]),ll(n[1])])}function SI(t,e,r){let n=Xe(t);Fg(n);let i=[n[de.ExtraData][0],n[de.ExtraData][1]],o=tt(i,e)||[];return tt(o,r)||[]}function tt(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function ll(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var TI=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,js={},AI=/((?:[^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]*)/,Yt=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Yt||{}),G=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(G||{}),z=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(z||{});function xI(t,e,r,n){let i=jI(t);e=Wt(r,e)||e;let s=[],a;for(;e;)if(a=AI.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let c=i.getTimezoneOffset();n&&(c=Pg(n,c),i=VI(i,n,!0));let u="";return s.forEach(l=>{let d=PI(l);u+=d?d(i,r,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Gs(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function Wt(t,e){let r=CI(t);if(js[r]??={},js[r][e])return js[r][e];let n="";switch(e){case"shortDate":n=Ps(t,He.Short);break;case"mediumDate":n=Ps(t,He.Medium);break;case"longDate":n=Ps(t,He.Long);break;case"fullDate":n=Ps(t,He.Full);break;case"shortTime":n=Ls(t,He.Short);break;case"mediumTime":n=Ls(t,He.Medium);break;case"longTime":n=Ls(t,He.Long);break;case"fullTime":n=Ls(t,He.Full);break;case"short":let i=Wt(t,"shortTime"),o=Wt(t,"shortDate");n=Bs(Vs(t,He.Short),[i,o]);break;case"medium":let s=Wt(t,"mediumTime"),a=Wt(t,"mediumDate");n=Bs(Vs(t,He.Medium),[s,a]);break;case"long":let c=Wt(t,"longTime"),u=Wt(t,"longDate");n=Bs(Vs(t,He.Long),[c,u]);break;case"full":let l=Wt(t,"fullTime"),d=Wt(t,"fullDate");n=Bs(Vs(t,He.Full),[l,d]);break}return n&&(js[r][e]=n),n}function Bs(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function mt(t,e,r="-",n,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===G.Hours)a===0&&r===-12&&(a=12);else if(t===G.FractionalSeconds)return NI(a,e);let c=qs(s,yn.MinusSign);return mt(a,e,c,n,i)}}function RI(t,e){switch(t){case G.FullYear:return e.getFullYear();case G.Month:return e.getMonth();case G.Date:return e.getDate();case G.Hours:return e.getHours();case G.Minutes:return e.getMinutes();case G.Seconds:return e.getSeconds();case G.FractionalSeconds:return e.getMilliseconds();case G.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function te(t,e,r=Ne.Format,n=!1){return function(i,o){return OI(i,o,t,e,r,n)}}function OI(t,e,r,n,i,o){switch(r){case z.Months:return II(e,i,n)[t.getMonth()];case z.Days:return EI(e,i,n)[t.getDay()];case z.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(o){let u=_I(e),l=SI(e,i,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,T=s>=f.hours&&a>=f.minutes,I=s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Yt.Short:return(i>=0?"+":"")+mt(s,2,o)+mt(Math.abs(i%60),2,o);case Yt.ShortGMT:return"GMT"+(i>=0?"+":"")+mt(s,1,o);case Yt.Long:return"GMT"+(i>=0?"+":"")+mt(s,2,o)+":"+mt(Math.abs(i%60),2,o);case Yt.Extended:return n===0?"Z":(i>=0?"+":"")+mt(s,2,o)+":"+mt(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var FI=0,Hs=4;function kI(t){let e=Gs(t,FI,1).getDay();return Gs(t,0,1+(e<=Hs?Hs:Hs+7)-e)}function kg(t){let e=t.getDay(),r=e===0?-3:Hs-e;return Gs(t.getFullYear(),t.getMonth(),t.getDate()+r)}function dl(t,e=!1){return function(r,n){let i;if(e){let o=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();i=1+Math.floor((s+o)/7)}else{let o=kg(r),s=kI(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return mt(i,t,qs(n,yn.MinusSign))}}function $s(t,e=!1){return function(r,n){let o=kg(r).getFullYear();return mt(o,t,qs(n,yn.MinusSign),e)}}var fl={};function PI(t){if(fl[t])return fl[t];let e;switch(t){case"G":case"GG":case"GGG":e=te(z.Eras,K.Abbreviated);break;case"GGGG":e=te(z.Eras,K.Wide);break;case"GGGGG":e=te(z.Eras,K.Narrow);break;case"y":e=me(G.FullYear,1,0,!1,!0);break;case"yy":e=me(G.FullYear,2,0,!0,!0);break;case"yyy":e=me(G.FullYear,3,0,!1,!0);break;case"yyyy":e=me(G.FullYear,4,0,!1,!0);break;case"Y":e=$s(1);break;case"YY":e=$s(2,!0);break;case"YYY":e=$s(3);break;case"YYYY":e=$s(4);break;case"M":case"L":e=me(G.Month,1,1);break;case"MM":case"LL":e=me(G.Month,2,1);break;case"MMM":e=te(z.Months,K.Abbreviated);break;case"MMMM":e=te(z.Months,K.Wide);break;case"MMMMM":e=te(z.Months,K.Narrow);break;case"LLL":e=te(z.Months,K.Abbreviated,Ne.Standalone);break;case"LLLL":e=te(z.Months,K.Wide,Ne.Standalone);break;case"LLLLL":e=te(z.Months,K.Narrow,Ne.Standalone);break;case"w":e=dl(1);break;case"ww":e=dl(2);break;case"W":e=dl(1,!0);break;case"d":e=me(G.Date,1);break;case"dd":e=me(G.Date,2);break;case"c":case"cc":e=me(G.Day,1);break;case"ccc":e=te(z.Days,K.Abbreviated,Ne.Standalone);break;case"cccc":e=te(z.Days,K.Wide,Ne.Standalone);break;case"ccccc":e=te(z.Days,K.Narrow,Ne.Standalone);break;case"cccccc":e=te(z.Days,K.Short,Ne.Standalone);break;case"E":case"EE":case"EEE":e=te(z.Days,K.Abbreviated);break;case"EEEE":e=te(z.Days,K.Wide);break;case"EEEEE":e=te(z.Days,K.Narrow);break;case"EEEEEE":e=te(z.Days,K.Short);break;case"a":case"aa":case"aaa":e=te(z.DayPeriods,K.Abbreviated);break;case"aaaa":e=te(z.DayPeriods,K.Wide);break;case"aaaaa":e=te(z.DayPeriods,K.Narrow);break;case"b":case"bb":case"bbb":e=te(z.DayPeriods,K.Abbreviated,Ne.Standalone,!0);break;case"bbbb":e=te(z.DayPeriods,K.Wide,Ne.Standalone,!0);break;case"bbbbb":e=te(z.DayPeriods,K.Narrow,Ne.Standalone,!0);break;case"B":case"BB":case"BBB":e=te(z.DayPeriods,K.Abbreviated,Ne.Format,!0);break;case"BBBB":e=te(z.DayPeriods,K.Wide,Ne.Format,!0);break;case"BBBBB":e=te(z.DayPeriods,K.Narrow,Ne.Format,!0);break;case"h":e=me(G.Hours,1,-12);break;case"hh":e=me(G.Hours,2,-12);break;case"H":e=me(G.Hours,1);break;case"HH":e=me(G.Hours,2);break;case"m":e=me(G.Minutes,1);break;case"mm":e=me(G.Minutes,2);break;case"s":e=me(G.Seconds,1);break;case"ss":e=me(G.Seconds,2);break;case"S":e=me(G.FractionalSeconds,1);break;case"SS":e=me(G.FractionalSeconds,2);break;case"SSS":e=me(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Us(Yt.Short);break;case"ZZZZZ":e=Us(Yt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Us(Yt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Us(Yt.Long);break;default:return null}return fl[t]=e,e}function Pg(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function LI(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function VI(t,e,r){let n=r?-1:1,i=t.getTimezoneOffset(),o=Pg(e,i);return LI(t,n*(o-i))}function jI(t){if(_g(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return Gs(i,o-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(TI))return BI(n)}let e=new Date(t);if(!_g(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function BI(t){let e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,c=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,c,u),e}function _g(t){return t instanceof Date&&!isNaN(t.valueOf())}function Ws(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var hl=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},nt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new hl(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Sg(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Sg(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(v(hn),v(zn),v(al))},e.\u0275dir=le({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function Sg(t,e){t.context.$implicit=e.item}var rt=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new pl,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Tg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Tg("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(v(hn),v(zn))},e.\u0275dir=le({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),pl=class{constructor(){this.$implicit=null,this.ngIf=null}};function Tg(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ae(e)}'.`)}function Lg(t,e){return new b(2100,!1)}var gl=class{createSubscription(e,r){return cl(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){cl(()=>e.unsubscribe())}},ml=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},UI=new ml,$I=new gl,Dn=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(gn(n))return UI;if(ol(n))return $I;throw Lg(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(v(vn,16))},e.\u0275pipe=di({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var HI="mediumDate",zI=new D(""),GI=new D(""),Vg=(()=>{let e=class e{constructor(n,i,o){this.locale=n,this.defaultTimezone=i,this.defaultOptions=o}transform(n,i,o,s){if(n==null||n===""||n!==n)return null;try{let a=i??this.defaultOptions?.dateFormat??HI,c=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return xI(n,a,s||this.locale,c)}catch(a){throw Lg(e,a.message)}}};e.\u0275fac=function(i){return new(i||e)(v(ks,16),v(zI,24),v(GI,24))},e.\u0275pipe=di({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var Fr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})(),El="browser",qI="server";function WI(t){return t===El}function Zs(t){return t===qI}var jg=(()=>{let e=class e{};e.\u0275prov=y({token:e,providedIn:"root",factory:()=>WI(p(At))?new vl(p(_e),window):new yl});let t=e;return t})(),vl=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=ZI(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function ZI(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var yl=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Rr=class{};var vi=class{},Qs=class{},Kt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Ml=class{encodeKey(e){return Bg(e)}encodeValue(e){return Bg(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function YI(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var QI=/%(\d[a-f0-9])/gi,KI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Bg(t){return encodeURIComponent(t).replace(QI,(e,r)=>KI[r]??e)}function Ys(t){return`${t}`}var Cn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ml,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=YI(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(Ys):[Ys(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Ys(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Ys(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var _l=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function JI(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ug(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function $g(t){return typeof Blob<"u"&&t instanceof Blob}function Hg(t){return typeof FormData<"u"&&t instanceof FormData}function XI(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var mi=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(JI(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Kt,this.context??=new _l,!this.params)this.params=new Cn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":ah.set(f,e.setHeaders[f]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},bn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(bn||{}),yi=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Kt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ks=class t extends yi{constructor(e={}){super(e),this.type=bn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Di=class t extends yi{constructor(e={}){super(e),this.type=bn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},wn=class extends yi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Zg=200,e0=204;function Il(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Al=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof mi)s=n;else{let u;o.headers instanceof Kt?u=o.headers:u=new Kt(o.headers);let l;o.params&&(o.params instanceof Cn?l=o.params:l=new Cn({fromObject:o.params})),s=new mi(n,i,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=_(s).pipe(Lt(u=>this.handler.handle(u)));if(n instanceof mi||o.observe==="events")return a;let c=a.pipe(Ce(u=>u instanceof Di));switch(o.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 ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Cn().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Il(o,i))}post(n,i,o={}){return this.request("POST",n,Il(o,i))}put(n,i,o={}){return this.request("PUT",n,Il(o,i))}};e.\u0275fac=function(i){return new(i||e)(E(vi))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),t0=/^\)\]\}',?\n/,n0="X-Request-URL";function zg(t){if(t.url)return t.url;let e=n0.toLocaleLowerCase();return t.headers.get(e)}var r0=(()=>{let e=class e{constructor(){this.fetchImpl=p(Sl,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=p(W)}handle(n){return new B(i=>{let o=new AbortController;return this.doRequest(n,o.signal,i).then(Tl,s=>i.error(new wn({error:s}))),()=>o.abort()})}doRequest(n,i,o){return Qr(this,null,function*(){let s=this.createRequestInit(n),a;try{let g=this.fetchImpl(n.urlWithParams,m({signal:i},s));i0(g),o.next({type:bn.Sent}),a=yield g}catch(g){o.error(new wn({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let c=new Kt(a.headers),u=a.statusText,l=zg(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new Ks({headers:c,status:d,statusText:u,url:l})),a.body){let g=a.headers.get("content-length"),T=[],I=a.body.getReader(),M=0,fe,J,Z=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Qr(this,null,function*(){for(;;){let{done:ve,value:We}=yield I.read();if(ve)break;if(T.push(We),M+=We.length,n.reportProgress){J=n.responseType==="text"?(J??"")+(fe??=new TextDecoder).decode(We,{stream:!0}):void 0;let Qn=()=>o.next({type:bn.DownloadProgress,total:g?+g:void 0,loaded:M,partialText:J});Z?Z.run(Qn):Qn()}}}));let qe=this.concatChunks(T,M);try{let ve=a.headers.get("Content-Type")??"";h=this.parseBody(n,qe,ve)}catch(ve){o.error(new wn({error:ve,headers:new Kt(a.headers),status:a.status,statusText:a.statusText,url:zg(a)??n.urlWithParams}));return}}d===0&&(d=h?Zg:0),d>=200&&d<300?(o.next(new Di({body:h,headers:c,status:d,statusText:u,url:l})),o.complete()):o.error(new wn({error:h,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(i).replace(t0,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(n){let i={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>i[s]=a.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(i["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:i,credentials:o}}concatChunks(n,i){let o=new Uint8Array(i),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Sl=class{};function Tl(){}function i0(t){t.then(Tl,Tl)}function Yg(t,e){return e(t)}function o0(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function s0(t,e,r){return(n,i)=>Ue(r,()=>e(n,o=>t(o,i)))}var xl=new D(""),Nl=new D(""),a0=new D(""),Qg=new D("",{providedIn:"root",factory:()=>!0});function c0(){let t=null;return(e,r)=>{t===null&&(t=(p(xl,{optional:!0})??[]).reduceRight(o0,Yg));let n=p(Gt);if(p(Qg)){let o=n.add();return t(e,r).pipe(rn(()=>n.remove(o)))}else return t(e,r)}}var Gg=(()=>{let e=class e extends vi{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(Gt),this.contributeToStability=p(Qg)}handle(n){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Nl),...this.injector.get(a0,[])]));this.chain=i.reduceRight((o,s)=>s0(o,s,this.injector),Yg)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(rn(()=>this.pendingTasks.remove(i)))}else return this.chain(n,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(E(Qs),E(Ie))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var u0=/^\)\]\}',?\n/;function l0(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var qg=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?X(i.\u0275loadImpl()):_(null)).pipe(De(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((I,M)=>a.setRequestHeader(I,M.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let I=n.detectContentTypeHeader();I!==null&&a.setRequestHeader("Content-Type",I)}if(n.responseType){let I=n.responseType.toLowerCase();a.responseType=I!=="json"?I:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let I=a.statusText||"OK",M=new Kt(a.getAllResponseHeaders()),fe=l0(a)||n.url;return u=new Ks({headers:M,status:a.status,statusText:I,url:fe}),u},d=()=>{let{headers:I,status:M,statusText:fe,url:J}=l(),Z=null;M!==e0&&(Z=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=Z?Zg:0);let qe=M>=200&&M<300;if(n.responseType==="json"&&typeof Z=="string"){let ve=Z;Z=Z.replace(u0,"");try{Z=Z!==""?JSON.parse(Z):null}catch(We){Z=ve,qe&&(qe=!1,Z={error:We,text:Z})}}qe?(s.next(new Di({body:Z,headers:I,status:M,statusText:fe,url:J||void 0})),s.complete()):s.error(new wn({error:Z,headers:I,status:M,statusText:fe,url:J||void 0}))},h=I=>{let{url:M}=l(),fe=new wn({error:I,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(fe)},f=!1,g=I=>{f||(s.next(l()),f=!0);let M={type:bn.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(M.total=I.total),n.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},T=I=>{let M={type:bn.UploadProgress,loaded:I.loaded};I.lengthComputable&&(M.total=I.total),s.next(M)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",g),c!==null&&a.upload&&a.upload.addEventListener("progress",T)),a.send(c),s.next({type:bn.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",g),c!==null&&a.upload&&a.upload.removeEventListener("progress",T)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(E(Rr))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Kg=new D(""),d0="XSRF-TOKEN",f0=new D("",{providedIn:"root",factory:()=>d0}),h0="X-XSRF-TOKEN",p0=new D("",{providedIn:"root",factory:()=>h0}),Js=class{},g0=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,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=Ws(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(E(_e),E(At),E(f0))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function m0(t,e){let r=t.url.toLowerCase();if(!p(Kg)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(Js).getToken(),i=p(p0);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Jg=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Jg||{});function v0(t,e){return{\u0275kind:t,\u0275providers:e}}function y0(...t){let e=[Al,qg,Gg,{provide:vi,useExisting:Gg},{provide:Qs,useFactory:()=>p(r0,{optional:!0})??p(qg)},{provide:Nl,useValue:m0,multi:!0},{provide:Kg,useValue:!0},{provide:Js,useClass:g0}];for(let r of t)e.push(...r.\u0275providers);return fs(e)}var Wg=new D("");function D0(){return v0(Jg.LegacyInterceptors,[{provide:Wg,useFactory:c0},{provide:Nl,useExisting:Wg,multi:!0}])}var Xg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({providers:[y0(D0())]});let t=e;return t})();var Fl=class extends zs{constructor(){super(...arguments),this.supportsDOMEvents=!0}},kl=class t extends Fl{static makeCurrent(){xg(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=C0();return r==null?null:b0(r)}resetBaseElement(){wi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ws(document.cookie,e)}},wi=null;function C0(){return wi=wi||document.querySelector("base"),wi?wi.getAttribute("href"):null}function b0(t){return new URL(t,document.baseURI).pathname}var Pl=class{addToWindow(e){be.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new b(5103,!1);return o},be.getAllAngularTestabilities=()=>e.getAllTestabilities(),be.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=be.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};be.frameworkStabilizers||(be.frameworkStabilizers=[]),be.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?Rt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},E0=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ll=new D(""),rm=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(E(Ll),E(W))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Xs=class{constructor(e){this._doc=e}},Rl="ng-app-id",im=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Zs(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Rl}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Rl),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Rl,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(E(_e),E(ys),E(ju,8),E(At))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ol={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},jl=/%COMP%/g,om="%COMP%",I0=`_nghost-${om}`,M0=`_ngcontent-${om}`,_0=!0,S0=new D("",{providedIn:"root",factory:()=>_0});function T0(t){return M0.replace(jl,t)}function A0(t){return I0.replace(jl,t)}function sm(t,e){return e.map(r=>r.replace(jl,t))}var em=(()=>{let e=class e{constructor(n,i,o,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Zs(c),this.defaultRenderer=new Ci(n,a,u,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Et.ShadowDom&&(i=U(m({},i),{encapsulation:Et.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ea?o.applyToHost(n):o instanceof bi&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case Et.Emulated:s=new ea(u,l,i,this.appId,d,a,c,h);break;case Et.ShadowDom:return new Vl(u,l,n,i,a,c,this.nonce,h);default:s=new bi(u,l,i,d,a,c,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(E(rm),E(im),E(ys),E(S0),E(_e),E(At),E(W),E(ju))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),Ci=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Ol[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(tm(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(tm(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new b(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Ol[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Ol[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Bt.DashCase|Bt.Important)?e.style.setProperty(r,n,i&Bt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Bt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Rt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function tm(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Vl=class extends Ci{constructor(e,r,n,i,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=sm(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},bi=class extends Ci{constructor(e,r,n,i,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=c?sm(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ea=class extends bi{constructor(e,r,n,i,o,s,a,c){let u=i+"-"+n.id;super(e,r,n,o,s,a,c,u),this.contentAttr=T0(u),this.hostAttr=A0(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},x0=(()=>{let e=class e extends Xs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})(),nm=["alt","control","meta","shift"],N0={"\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"},R0={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},O0=(()=>{let e=class e extends Xs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),nm.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,i){let o=N0[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),nm.forEach(a=>{if(a!==o){let c=R0[a];c(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function F0(){kl.makeCurrent()}function k0(){return new St}function P0(){return hp(document),document}var L0=[{provide:At,useValue:El},{provide:Vu,useValue:F0,multi:!0},{provide:_e,useFactory:P0,deps:[]}],am=sl(Cg,"browser",L0),V0=new D(""),j0=[{provide:gi,useClass:Pl,deps:[]},{provide:rl,useClass:xs,deps:[W,Ns,gi]},{provide:xs,useClass:xs,deps:[W,Ns,gi]}],B0=[{provide:hs,useValue:"root"},{provide:St,useFactory:k0,deps:[]},{provide:Ll,useClass:x0,multi:!0,deps:[_e,W,At]},{provide:Ll,useClass:O0,multi:!0,deps:[_e]},em,im,rm,{provide:br,useExisting:em},{provide:Rr,useClass:E0,deps:[]},[]],cm=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ys,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(E(V0,12))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({providers:[...B0,...j0],imports:[Fr,bg]});let t=e;return t})();var um=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(E(_e))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var k="primary",Li=Symbol("RouteTitle"),zl=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Br(t){return new zl(t)}function U0(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function bm(t){return t.length>0?t[t.length-1]:null}function Mn(t){return rc(t)?t:gn(t)?X(Promise.resolve(t)):_(t)}var H0={exact:Im,subset:Mm},Em={exact:z0,subset:G0,ignored:()=>!0};function dm(t,e,r){return H0[r.paths](t.root,e.root,r.matrixParams)&&Em[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function z0(t,e){return Ft(t,e)}function Im(t,e,r){if(!Zn(t.segments,e.segments)||!ra(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Im(t.children[n],e.children[n],r))return!1;return!0}function G0(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Cm(t[r],e[r]))}function Mm(t,e,r){return _m(t,e,e.segments,r)}function _m(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Zn(i,r)||e.hasChildren()||!ra(i,r,n))}else if(t.segments.length===r.length){if(!Zn(t.segments,r)||!ra(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!Mm(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Zn(t.segments,i)||!ra(t.segments,i,n)||!t.children[k]?!1:_m(t.children[k],e,o,n)}}function ra(t,e,r){return e.every((n,i)=>Em[r](t[i].parameters,n.parameters))}var En=class{constructor(e=new q([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Br(this.queryParams),this._queryParamMap}toString(){return Z0.serialize(this)}},q=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ia(this)}},Wn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Br(this.parameters),this._parameterMap}toString(){return Tm(this)}};function q0(t,e){return Zn(t,e)&&t.every((r,n)=>Ft(r.parameters,e[n].parameters))}function Zn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function W0(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===k&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==k&&(r=r.concat(e(i,n)))}),r}var Vi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>new Ur,providedIn:"root"});let t=e;return t})(),Ur=class{parse(e){let r=new Wl(e);return new En(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Ei(e.root,!0)}`,n=K0(e.queryParams),i=typeof e.fragment=="string"?`#${Y0(e.fragment)}`:"";return`${r}${n}${i}`}},Z0=new Ur;function ia(t){return t.segments.map(e=>Tm(e)).join("/")}function Ei(t,e){if(!t.hasChildren())return ia(t);if(e){let r=t.children[k]?Ei(t.children[k],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==k&&n.push(`${i}:${Ei(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=W0(t,(n,i)=>i===k?[Ei(t.children[k],!1)]:[`${i}:${Ei(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[k]!=null?`${ia(t)}/${r[0]}`:`${ia(t)}/(${r.join("//")})`}}function Sm(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ta(t){return Sm(t).replace(/%3B/gi,";")}function Y0(t){return encodeURI(t)}function ql(t){return Sm(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oa(t){return decodeURIComponent(t)}function fm(t){return oa(t.replace(/\+/g,"%20"))}function Tm(t){return`${ql(t.path)}${Q0(t.parameters)}`}function Q0(t){return Object.entries(t).map(([e,r])=>`;${ql(e)}=${ql(r)}`).join("")}function K0(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ta(r)}=${ta(i)}`).join("&"):`${ta(r)}=${ta(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var J0=/^[^\/()?;#]+/;function Bl(t){let e=t.match(J0);return e?e[0]:""}var X0=/^[^\/()?;=#]+/;function eM(t){let e=t.match(X0);return e?e[0]:""}var tM=/^[^=?&#]+/;function nM(t){let e=t.match(tM);return e?e[0]:""}var rM=/^[^&#]+/;function iM(t){let e=t.match(rM);return e?e[0]:""}var Wl=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[k]=new q(e,r)),n}parseSegment(){let e=Bl(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new Wn(oa(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=eM(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Bl(this.remaining);i&&(n=i,this.capture(n))}e[oa(r)]=oa(n)}parseQueryParam(e){let r=nM(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=iM(this.remaining);s&&(n=s,this.capture(n))}let i=fm(r),o=fm(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Bl(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=k);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[k]:new q([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function Am(t){return t.segments.length>0?new q([],{[k]:t}):t}function xm(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=xm(i);if(n===k&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new q(t.segments,e);return oM(r)}function oM(t){if(t.numberOfChildren===1&&t.children[k]){let e=t.children[k];return new q(t.segments.concat(e.segments),e.children)}return t}function Ai(t){return t instanceof En}function sM(t,e,r=null,n=null){let i=Nm(t);return Rm(i,e,r,n)}function Nm(t){let e;function r(o){let s={};for(let c of o.children){let u=r(c);s[c.outlet]=u}let a=new q(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=Am(n);return e??i}function Rm(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Ul(i,i,i,r,n);let o=aM(e);if(o.toRoot())return Ul(i,i,new q([],{}),r,n);let s=cM(o,i,t),a=s.processChildren?_i(s.segmentGroup,s.index,o.commands):Fm(s.segmentGroup,s.index,o.commands);return Ul(i,s.segmentGroup,a,r,n)}function sa(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xi(t){return typeof t=="object"&&t!=null&&t.outlets}function Ul(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Om(t,e,r);let a=Am(xm(s));return new En(a,o,i)}function Om(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=Om(o,e,r)}),new q(t.segments,n)}var aa=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&sa(n[0]))throw new b(4003,!1);let i=n.find(xi);if(i&&i!==bm(n))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function aM(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new aa(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new aa(r,e,n)}var Lr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function cM(t,e,r){if(t.isAbsolute)return new Lr(e,!0,0);if(!r)return new Lr(e,!1,NaN);if(r.parent===null)return new Lr(r,!0,0);let n=sa(t.commands[0])?0:1,i=r.segments.length-1+n;return uM(r,i,t.numberOfDoubleDots)}function uM(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new b(4005,!1);i=n.segments.length}return new Lr(n,!1,i-o)}function lM(t){return xi(t[0])?t[0].outlets:{[k]:t}}function Fm(t,e,r){if(t??=new q([],{}),t.segments.length===0&&t.hasChildren())return _i(t,e,r);let n=dM(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==k)&&t.children[k]&&t.numberOfChildren===1&&t.children[k].segments.length===0){let o=_i(t.children[k],e,r);return new q(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Fm(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new q(t.segments,i)}}function dM(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(xi(a))break;let c=`${a}`,u=n0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!pm(c,u,s))return o;n+=2}else{if(!pm(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Zl(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Zl(new q([],{}),0,n))}),e}function hm(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function pm(t,e,r){return t==r.path&&Ft(e,r.parameters)}var Si="imperative",we=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(we||{}),it=class{constructor(e,r){this.id=e,this.url=r}},$r=class extends it{constructor(e,r,n="imperative",i=null){super(e,r),this.type=we.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},yt=class extends it{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=we.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ge=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ge||{}),ca=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ca||{}),Jt=class extends it{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=we.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},In=class extends it{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=we.NavigationSkipped}},Ni=class extends it{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=we.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ua=class extends it{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yl=class extends it{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ql=class extends it{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=we.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Kl=class extends it{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jl=class extends it{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=we.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xl=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ed=class{constructor(e){this.route=e,this.type=we.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},td=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nd=class{constructor(e){this.snapshot=e,this.type=we.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rd=class{constructor(e){this.snapshot=e,this.type=we.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},id=class{constructor(e){this.snapshot=e,this.type=we.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},la=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=we.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ri=class{},Hr=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var od=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ji(this.injector),this.attachRef=null}},ji=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new od(this.parentInjector),this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)(E(Ie))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),da=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=sd(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=sd(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=ad(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return ad(e,this._root).map(r=>r.value)}};function sd(t,e){if(t===e.value)return e;for(let r of e.children){let n=sd(t,r);if(n)return n}return null}function ad(t,e){if(t===e.value)return[e];for(let r of e.children){let n=ad(t,r);if(n.length)return n.unshift(e),n}return[]}var ze=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function Pr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var fa=class extends da{constructor(e,r){super(e),this.snapshot=r,md(this,e)}toString(){return this.snapshot.toString()}};function km(t){let e=hM(t),r=new ye([new Wn("",{})]),n=new ye({}),i=new ye({}),o=new ye({}),s=new ye(""),a=new Dt(r,n,o,s,i,k,t,e.root);return a.snapshot=e.root,new fa(new ze(a,[]),e)}function hM(t){let e={},r={},n={},i="",o=new Vr([],e,n,i,r,k,t,null,{});return new pa("",new ze(o,[]))}var Dt=class{constructor(e,r,n,i,o,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[Li]))??_(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(e=>Br(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>Br(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ha(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),i?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},i&&Lm(i)&&(n.resolve[Li]=i.title),n}var Vr=class{get title(){return this.data?.[Li]}constructor(e,r,n,i,o,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,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??=Br(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Br(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},pa=class extends da{constructor(e,r){super(r),this.url=e,md(this,r)}toString(){return Pm(this._root)}};function md(t,e){e.value._routerState=t,e.children.forEach(r=>md(t,r))}function Pm(t){let e=t.children.length>0?` { ${t.children.map(Pm).join(", ")} } `:"";return`${t.value}${e}`}function $l(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Ft(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Ft(e.params,r.params)||t.paramsSubject.next(r.params),$0(e.url,r.url)||t.urlSubject.next(r.url),Ft(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function cd(t,e){let r=Ft(t.params,e.params)&&q0(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||cd(t.parent,e.parent))}function Lm(t){return typeof t.title=="string"||t.title===null}var vd=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=k,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=p(ji),this.location=p(hn),this.changeDetector=p(vn),this.inputBinder=p(Da,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new ud(n,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=le({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ht]});let t=e;return t})(),ud=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Dt?this.route:e===ji?this.childContexts:this.parent.get(e,r)}},Da=new D(""),gm=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Xr([i.queryParams,i.params,i.data]).pipe(De(([s,a,c],u)=>(c=m(m(m({},s),a),c),u===0?_(c):Promise.resolve(c)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=Eg(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function pM(t,e,r){let n=Oi(t,e._root,r?r._root:void 0);return new fa(n,e)}function Oi(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=gM(t,e,r);return new ze(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Oi(t,a)),s}}let n=mM(e.value),i=e.children.map(o=>Oi(t,o));return new ze(n,i)}}function gM(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Oi(t,n,i);return Oi(t,n)})}function mM(t){return new Dt(new ye(t.url),new ye(t.params),new ye(t.queryParams),new ye(t.fragment),new ye(t.data),t.outlet,t.component,t)}var Fi=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Vm="ngNavigationCancelingError";function ga(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=Ai(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=jm(!1,Ge.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function jm(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Vm]=!0,r.cancellationCode=e,r}function vM(t){return Bm(t)&&Ai(t.url)}function Bm(t){return!!t&&t[Vm]}var yM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[ug],decls:1,vars:0,template:function(i,o){i&1&&ce(0,"router-outlet")},dependencies:[vd],encapsulation:2});let t=e;return t})();function DM(t,e){return t.providers&&!t._injector&&(t._injector=_s(t.providers,e,`Route: ${t.path}`)),t._injector??e}function yd(t){let e=t.children&&t.children.map(yd),r=e?U(m({},t),{children:e}):m({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==k&&(r.component=yM),r}function vt(t){return t.outlet||k}function wM(t,e){let r=t.filter(n=>vt(n)===e);return r.push(...t.filter(n=>vt(n)!==e)),r}function Bi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var CM=(t,e,r,n)=>A(i=>(new ld(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),ld=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),$l(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=Pr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Pr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=Pr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=Pr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new id(o.value.snapshot))}),e.children.length&&this.forwardEvent(new nd(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if($l(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),$l(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=Bi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},ma=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},jr=class{constructor(e,r){this.component=e,this.route=r}};function bM(t,e,r){let n=t._root,i=e?e._root:null;return Ii(n,i,r,[n.value])}function EM(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Gr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!th(t)?t:e.get(t):n}function Ii(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Pr(e);return t.children.forEach(s=>{IM(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ti(a,r.getContext(s),i)),i}function IM(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=MM(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new ma(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ii(t,e,a?a.children:null,n,i):Ii(t,e,r,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new jr(a.outlet.component,s))}else s&&Ti(e,a,i),i.canActivateChecks.push(new ma(n)),o.component?Ii(t,null,a?a.children:null,n,i):Ii(t,null,r,n,i);return i}function MM(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Zn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Zn(t.url,e.url)||!Ft(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cd(t,e)||!Ft(t.queryParams,e.queryParams);case"paramsChange":default:return!cd(t,e)}}function Ti(t,e,r){let n=Pr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Ti(s,e.children.getContext(o),r):Ti(s,null,r):Ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new jr(e.outlet.component,i)):r.canDeactivateChecks.push(new jr(null,i)):r.canDeactivateChecks.push(new jr(null,i))}function Ui(t){return typeof t=="function"}function _M(t){return typeof t=="boolean"}function SM(t){return t&&Ui(t.canLoad)}function TM(t){return t&&Ui(t.canActivate)}function AM(t){return t&&Ui(t.canActivateChild)}function xM(t){return t&&Ui(t.canDeactivate)}function NM(t){return t&&Ui(t.canMatch)}function Um(t){return t instanceof Pt||t?.name==="EmptyError"}var na=Symbol("INITIAL_VALUE");function zr(){return De(t=>Xr(t.map(e=>e.pipe(Vt(1),lc(na)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===na)return na;if(r===!1||RM(r))return r}return!0}),Ce(e=>e!==na),Vt(1)))}function RM(t){return Ai(t)||t instanceof Fi}function OM(t,e){return ge(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?_(U(m({},r),{guardsResult:!0})):FM(s,n,i,t).pipe(ge(a=>a&&_M(a)?kM(n,o,t,e):_(a)),A(a=>U(m({},r),{guardsResult:a})))})}function FM(t,e,r,n){return X(t).pipe(ge(i=>BM(i.component,i.route,r,e,n)),wt(i=>i!==!0,!0))}function kM(t,e,r,n){return X(e).pipe(Lt(i=>sr(LM(i.route.parent,n),PM(i.route,n),jM(t,i.path,r),VM(t,i.route,r))),wt(i=>i!==!0,!0))}function PM(t,e){return t!==null&&e&&e(new rd(t)),_(!0)}function LM(t,e){return t!==null&&e&&e(new td(t)),_(!0)}function VM(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return _(!0);let i=n.map(o=>Eo(()=>{let s=Bi(e)??r,a=Gr(o,s),c=TM(a)?a.canActivate(e,t):Ue(s,()=>a(e,t));return Mn(c).pipe(wt())}));return _(i).pipe(zr())}function jM(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>EM(s)).filter(s=>s!==null).map(s=>Eo(()=>{let a=s.guards.map(c=>{let u=Bi(s.node)??r,l=Gr(c,u),d=AM(l)?l.canActivateChild(n,t):Ue(u,()=>l(n,t));return Mn(d).pipe(wt())});return _(a).pipe(zr())}));return _(o).pipe(zr())}function BM(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return _(!0);let s=o.map(a=>{let c=Bi(e)??i,u=Gr(a,c),l=xM(u)?u.canDeactivate(t,e,r,n):Ue(c,()=>u(t,e,r,n));return Mn(l).pipe(wt())});return _(s).pipe(zr())}function UM(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return _(!0);let o=i.map(s=>{let a=Gr(s,t),c=SM(a)?a.canLoad(e,r):Ue(t,()=>a(e,r));return Mn(c)});return _(o).pipe(zr(),$m(n))}function $m(t){return Ja(se(e=>{if(typeof e!="boolean")throw ga(t,e)}),A(e=>e===!0))}function $M(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return _(!0);let o=i.map(s=>{let a=Gr(s,t),c=NM(a)?a.canMatch(e,r):Ue(t,()=>a(e,r));return Mn(c)});return _(o).pipe(zr(),$m(n))}var ki=class{constructor(e){this.segmentGroup=e||null}},Pi=class extends Error{constructor(e){super(),this.urlTree=e}};function kr(t){return or(new ki(t))}function HM(t){return or(new b(4e3,!1))}function zM(t){return or(jm(!1,Ge.GuardRejected))}var dd=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return _(n);if(i.numberOfChildren>1||!i.children[k])return HM(`${e.redirectTo}`);i=i.children[k]}}applyRedirectCommands(e,r,n,i,o){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:T}=i,I=Ue(o,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:T}));if(I instanceof En)throw new Pi(I);r=I}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Pi(s);return s}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new En(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,i)}),new q(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},fd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GM(t,e,r,n,i){let o=Dd(t,e,r);return o.matched?(n=DM(e,n),$M(n,e,r,i).pipe(A(s=>s===!0?o:m({},fd)))):_(o)}function Dd(t,e,r){if(e.path==="**")return qM(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?m({},fd):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||U0)(r,t,e);if(!i)return m({},fd);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?m(m({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function qM(t){return{matched:!0,parameters:t.length>0?bm(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function mm(t,e,r,n){return r.length>0&&YM(t,r,n)?{segmentGroup:new q(e,ZM(n,new q(r,t.children))),slicedSegments:[]}:r.length===0&&QM(t,r,n)?{segmentGroup:new q(t.segments,WM(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new q(t.segments,t.children),slicedSegments:r}}function WM(t,e,r,n){let i={};for(let o of r)if(wa(t,e,o)&&!n[vt(o)]){let s=new q([],{});i[vt(o)]=s}return m(m({},n),i)}function ZM(t,e){let r={};r[k]=e;for(let n of t)if(n.path===""&&vt(n)!==k){let i=new q([],{});r[vt(n)]=i}return r}function YM(t,e,r){return r.some(n=>wa(t,e,n)&&vt(n)!==k)}function QM(t,e,r){return r.some(n=>wa(t,e,n))}function wa(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function KM(t,e,r,n){return vt(t)!==n&&(n===k||!wa(e,r,t))?!1:Dd(e,t,r).matched}function JM(t,e,r){return e.length===0&&!t.children[r]}var hd=class{};function XM(t,e,r,n,i,o,s="emptyOnly"){return new pd(t,e,r,n,i,s,o).recognize()}var e_=31,pd=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new dd(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=mm(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(({children:r,rootSnapshot:n})=>{let i=new ze(n,r),o=new pa("",i),s=sM(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let r=new Vr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),k,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,k,r).pipe(A(n=>({children:n,rootSnapshot:r})),Ze(n=>{if(n instanceof Pi)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ki?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,o):this.processSegment(e,r,n,n.segments,i,!0,o).pipe(A(s=>s instanceof ze?[s]:[]))}processChildren(e,r,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return X(o).pipe(Lt(s=>{let a=n.children[s],c=wM(r,s);return this.processSegmentGroup(e,c,a,s,i)}),uc((s,a)=>(s.push(...a),s)),nn(null),cc(),ge(s=>{if(s===null)return kr(n);let a=Hm(s);return t_(a),_(a)}))}processSegment(e,r,n,i,o,s,a){return X(r).pipe(Lt(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,i,o,s,a).pipe(Ze(u=>{if(u instanceof ki)return _(null);throw u}))),wt(c=>!!c),Ze(c=>{if(Um(c))return JM(n,i,o)?_(new hd):kr(n);throw c}))}processSegmentAgainstRoute(e,r,n,i,o,s,a,c){return KM(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s,c):kr(i):kr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Dd(r,i,o);if(!c)return kr(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>e_&&(this.allowRedirects=!1));let f=new Vr(o,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,vm(i),vt(i),i.component??i._loadedComponent??null,i,ym(i)),g=ha(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let T=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(i,T).pipe(ge(I=>this.processSegment(e,n,r,I.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,i,o,s){let a=GM(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(De(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(De(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new Vr(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,vm(n),vt(n),n.component??n._loadedComponent??null,n,ym(n)),T=ha(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(T.params),g.data=Object.freeze(T.data);let{segmentGroup:I,slicedSegments:M}=mm(r,h,f,u);if(M.length===0&&I.hasChildren())return this.processChildren(l,u,I,g).pipe(A(J=>new ze(g,J)));if(u.length===0&&M.length===0)return _(new ze(g,[]));let fe=vt(n)===o;return this.processSegment(l,u,I,M,fe?k:o,!0,g).pipe(A(J=>new ze(g,J instanceof ze?[J]:[])))}))):kr(r)))}getChildConfig(e,r,n){return r.children?_({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?_({routes:r._loadedRoutes,injector:r._loadedInjector}):UM(e,r,n,this.urlSerializer).pipe(ge(i=>i?this.configLoader.loadChildren(e,r).pipe(se(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):zM(r))):_({routes:[],injector:e})}};function t_(t){t.sort((e,r)=>e.value.outlet===k?-1:r.value.outlet===k?1:e.value.outlet.localeCompare(r.value.outlet))}function n_(t){let e=t.value.routeConfig;return e&&e.path===""}function Hm(t){let e=[],r=new Set;for(let n of t){if(!n_(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Hm(n.children);e.push(new ze(n.value,i))}return e.filter(n=>!r.has(n))}function vm(t){return t.data||{}}function ym(t){return t.resolve||{}}function r_(t,e,r,n,i,o){return ge(s=>XM(t,e,r,n,s.extractedUrl,i,o).pipe(A(({state:a,tree:c})=>U(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function i_(t,e){return ge(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return _(r);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of zm(c))s.add(u);let a=0;return X(s).pipe(Lt(c=>o.has(c)?o_(c,n,t,e):(c.data=ha(c,c.parent,t).resolve,_(void 0))),se(()=>a++),ar(1),ge(c=>a===s.size?_(r):Ve))})}function zm(t){let e=t.children.map(r=>zm(r)).flat();return[t,...e]}function o_(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Lm(i)&&(o[Li]=i.title),s_(o,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=ha(t,t.parent,r).resolve,null)))}function s_(t,e,r,n){let i=Gl(t);if(i.length===0)return _({});let o={};return X(i).pipe(ge(s=>a_(t[s],e,r,n).pipe(wt(),se(a=>{if(a instanceof Fi)throw ga(new Ur,a);o[s]=a}))),ar(1),sc(o),Ze(s=>Um(s)?Ve:or(s)))}function a_(t,e,r,n){let i=Bi(e)??n,o=Gr(t,i),s=o.resolve?o.resolve(e,r):Ue(i,()=>o(e,r));return Mn(s)}function Hl(t){return De(e=>{let r=t(e);return r?X(r).pipe(A(()=>e)):_(e)})}var Gm=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===k);return i}getResolvedTitleForRoute(n){return n.data[Li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(c_),providedIn:"root"});let t=e;return t})(),c_=(()=>{let e=class e extends Gm{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(E(um))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$i=new D("",{providedIn:"root",factory:()=>({})}),va=new D(""),wd=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Fs)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return _(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Mn(n.loadComponent()).pipe(A(qm),se(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),rn(()=>{this.componentLoaders.delete(n)})),o=new rr(i,()=>new he).pipe(nr());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return _({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=u_(i,this.compiler,n,this.onLoadEndListener).pipe(rn(()=>{this.childrenLoaders.delete(i)})),a=new rr(s,()=>new he).pipe(nr());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function u_(t,e,r,n){return Mn(t.loadChildren()).pipe(A(qm),ge(i=>i instanceof ai||Array.isArray(i)?_(i):X(e.compileModuleAsync(i))),A(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(va,[],{optional:!0,self:!0}).flat()),{routes:s.map(yd),injector:o}}))}function l_(t){return t&&typeof t=="object"&&"default"in t}function qm(t){return l_(t)?t.default:t}var Cd=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(d_),providedIn:"root"});let t=e;return t})(),d_=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wm=new D(""),Zm=new D("");function f_(t,e,r){let n=t.get(Zm),i=t.get(_e);return t.get(W).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),h_(t))),{onViewTransitionCreated:c}=n;return c&&Ue(t,()=>c({transition:a,from:e,to:r})),s})}function h_(t){return new Promise(e=>{Ms(e,{injector:t})})}var p_=new D(""),bd=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new he,this.transitionAbortSubject=new he,this.configLoader=p(wd),this.environmentInjector=p(Ie),this.urlSerializer=p(Vi),this.rootContexts=p(ji),this.location=p(Or),this.inputBindingEnabled=p(Da,{optional:!0})!==null,this.titleStrategy=p(Gm),this.options=p($i,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Cd),this.createViewTransition=p(Wm,{optional:!0}),this.navigationErrorHandler=p(p_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>_(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Xl(o)),i=o=>this.events.next(new ed(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(U(m(m({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ye({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Si,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ce(s=>s.id!==0),A(s=>U(m({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),De(s=>{let a=!1,c=!1;return _(s).pipe(De(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),Ve;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?U(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new In(u.id,this.urlSerializer.serialize(u.rawUrl),h,ca.IgnoredSameUrlNavigation)),u.resolve(!1),Ve}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return _(u).pipe(De(h=>{let f=this.transitions?.getValue();return this.events.next(new $r(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Ve:Promise.resolve(h)}),r_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),se(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=U(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new ua(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:h,extractedUrl:f,source:g,restoredState:T,extras:I}=u,M=new $r(h,this.urlSerializer.serialize(f),g,T);this.events.next(M);let fe=km(this.rootComponentType).snapshot;return this.currentTransition=s=U(m({},u),{targetSnapshot:fe,urlAfterRedirects:f,extras:U(m({},I),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,_(s)}else{let h="";return this.events.next(new In(u.id,this.urlSerializer.serialize(u.extractedUrl),h,ca.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ve}}),se(u=>{let l=new Yl(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),A(u=>(this.currentTransition=s=U(m({},u),{guards:bM(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),OM(this.environmentInjector,u=>this.events.next(u)),se(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw ga(this.urlSerializer,u.guardsResult);let l=new Ql(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Ce(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Ge.GuardRejected),!1)),Hl(u=>{if(u.guards.canActivateChecks.length)return _(u).pipe(se(l=>{let d=new Kl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),De(l=>{let d=!1;return _(l).pipe(i_(this.paramsInheritanceStrategy,this.environmentInjector),se({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ge.NoDataFromResolver)}}))}),se(l=>{let d=new Jl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Hl(u=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(se(f=>{d.component=f}),A(()=>{})));for(let f of d.children)h.push(...l(f));return h};return Xr(l(u.targetSnapshot.root)).pipe(nn(null),Vt(1))}),Hl(()=>this.afterPreactivation()),De(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?X(d).pipe(A(()=>s)):_(s)}),A(u=>{let l=pM(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=U(m({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),se(()=>{this.events.next(new Ri)}),CM(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Vt(1),se({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),dc(this.transitionAbortSubject.pipe(se(u=>{throw u}))),rn(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ge.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ze(u=>{if(c=!0,Bm(u))this.events.next(new Jt(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),vM(u)?this.events.next(new Hr(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Ni(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Ue(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Fi){let{message:h,cancellationCode:f}=ga(this.urlSerializer,d);this.events.next(new Jt(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new Hr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let h=n.errorHandler(u);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ve}))}))}cancelNavigationTransition(n,i,o){let s=new Jt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function g_(t){return t!==Si}var m_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(v_),providedIn:"root"});let t=e;return t})(),gd=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},v_=(()=>{let e=class e extends gd{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ym=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:()=>p(y_),providedIn:"root"});let t=e;return t})(),y_=(()=>{let e=class e extends Ym{constructor(){super(...arguments),this.location=p(Or),this.urlSerializer=p(Vi),this.options=p($i,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Cd),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new En,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=km(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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof $r)this.stateMemento=this.createStateMemento();else if(n instanceof In)this.rawUrlTree=i.initialUrl;else if(n instanceof ua){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Ri?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Jt&&(n.code===Ge.GuardRejected||n.code===Ge.NoDataFromResolver)?this.restoreHistory(i):n instanceof Ni?this.restoreHistory(i,!0):n instanceof yt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=m(m({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=m(m({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Mi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Mi||{});function Qm(t,e){t.events.pipe(Ce(r=>r instanceof yt||r instanceof Jt||r instanceof Ni||r instanceof In),A(r=>r instanceof yt||r instanceof In?Mi.COMPLETE:(r instanceof Jt?r.code===Ge.Redirect||r.code===Ge.SupersededByNewNavigation:!1)?Mi.REDIRECTING:Mi.FAILED),Ce(r=>r!==Mi.REDIRECTING),Vt(1)).subscribe(()=>{e()})}function D_(t){throw t}var w_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},C_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=p(As),this.stateManager=p(Ym),this.options=p($i,{optional:!0})||{},this.pendingTasks=p(Gt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(bd),this.urlSerializer=p(Vi),this.location=p(Or),this.urlHandlingStrategy=p(Cd),this._events=new he,this.errorHandler=this.options.errorHandler||D_,this.navigated=!1,this.routeReuseStrategy=p(m_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(va,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Da,{optional:!0}),this.eventsSubscription=new oe,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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Jt&&i.code!==Ge.Redirect&&i.code!==Ge.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof yt)this.navigated=!0;else if(i instanceof Hr){let a=i.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u=m({info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||g_(o.source)},a);this.scheduleNavigation(c,Si,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}E_(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});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),Si,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=m({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,i,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(yd),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=m(m({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=Nm(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return Rm(h,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Ai(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Si,null,i)}navigate(n,i={skipLocationChange:!1}){return b_(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=m({},w_):i===!1?o=m({},C_):o=i,Ai(n))return dm(this.currentUrlTree,n,o);let s=this.parseUrl(n);return dm(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((h,f)=>{c=h,u=f});let d=this.pendingTasks.add();return Qm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function b_(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,c){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new he,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 yt&&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,i,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||i||o||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 i=this.href===null?null:mp(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(v(Re),v(Dt),Pu("tabindex"),v(xt),v(Pe),v(Qt))},e.\u0275dir=le({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&ue("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Ar("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Nr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Nr],replaceUrl:[2,"replaceUrl","replaceUrl",Nr],routerLink:"routerLink"},standalone:!0,features:[tl,ht]});let t=e;return t})(),Km=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,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 yt&&this.update()})}ngAfterContentInit(){_(this.links.changes,_(null)).pipe(tn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=X(n).pipe(tn()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}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(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=I_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(v(Re),v(Pe),v(xt),v(vn),v(ot,8))},e.\u0275dir=le({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&ig(s,ot,5),i&2){let a;og(a=sg())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[ht]});let t=e;return t})();function I_(t){return!!t.paths}var ya=class{};var M_=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ce(n=>n instanceof yt),Lt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=_s(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)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return X(o).pipe(tn())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=_(null);let s=o.pipe(ge(a=>a===null?_(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return X([s,a]).pipe(tn())}else return s})}};e.\u0275fac=function(i){return new(i||e)(E(Re),E(Fs),E(Ie),E(ya),E(wd))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jm=new D(""),__=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=p(Ie),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 $r?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof yt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof In&&n.code===ca.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 la&&(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,i){this.zone.runOutsideAngular(()=>Qr(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Ms(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new la(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Tp()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();function S_(t){return t.routerState.root}function Hi(t,e){return{\u0275kind:t,\u0275providers:e}}function T_(){let t=p(Be);return e=>{let r=t.get(mn);if(e!==r.components[0])return;let n=t.get(Re),i=t.get(Xm);t.get(Ed)===1&&n.initialNavigation(),t.get(ev,null,L.Optional)?.setUpPreloading(),t.get(Jm,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Xm=new D("",{factory:()=>new he}),Ed=new D("",{providedIn:"root",factory:()=>1});function A_(){return Hi(2,[{provide:Ed,useValue:0},{provide:Rs,multi:!0,deps:[Be],useFactory:e=>{let r=e.get(Ng,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Re),o=e.get(Xm);Qm(i,()=>{n(!0)}),e.get(bd).afterPreactivation=()=>(n(!0),o.closed?_(void 0):o),i.initialNavigation()}))}}])}function x_(){return Hi(3,[{provide:Rs,multi:!0,useFactory:()=>{let e=p(Re);return()=>{e.setUpLocationChangeListener()}}},{provide:Ed,useValue:2}])}var ev=new D("");function N_(t){return Hi(0,[{provide:ev,useExisting:M_},{provide:ya,useExisting:t}])}function R_(){return Hi(8,[gm,{provide:Da,useExisting:gm}])}function O_(t){let e=[{provide:Wm,useValue:f_},{provide:Zm,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return Hi(9,e)}var Dm=new D("ROUTER_FORROOT_GUARD"),F_=[Or,{provide:Vi,useClass:Ur},Re,ji,{provide:Dt,useFactory:S_,deps:[Re]},wd,[]],Xt=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[F_,[],{provide:va,multi:!0,useValue:n},{provide:Dm,useFactory:V_,deps:[[Re,new ds,new wu]]},{provide:$i,useValue:i||{}},i?.useHash?P_():L_(),k_(),i?.preloadingStrategy?N_(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?j_(i):[],i?.bindToComponentInputs?R_().\u0275providers:[],i?.enableViewTransitions?O_().\u0275providers:[],B_()]}}static forChild(n){return{ngModule:e,providers:[{provide:va,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(E(Dm,8))},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})();function k_(){return{provide:Jm,useFactory:()=>{let t=p(jg),e=p(W),r=p($i),n=p(bd),i=p(Vi);return r.scrollOffset&&t.setOffset(r.scrollOffset),new __(i,n,t,e,r)}}}function P_(){return{provide:Qt,useClass:Og}}function L_(){return{provide:Qt,useClass:bl}}function V_(t){return"guarded"}function j_(t){return[t.initialNavigation==="disabled"?x_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?A_().\u0275providers:[]]}var wm=new D("");function B_(){return[{provide:wm,useFactory:T_},{provide:Os,multi:!0,useExisting:wm}]}var st=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ze(n=>(console.error(n),_([]))))}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(Ze(i=>(console.error(i),_([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(i){return new(i||e)(E(Al))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var U_=t=>["/books",t];function $_(t,e){if(t&1&&(w(0,"li")(1,"a",6),S(2),w(3,"p",7),S(4),C()()()),t&2){let r=e.$implicit;N(),O("routerLink",Ts(3,U_,r.isbn)),N(),$e(" ",r.title," "),N(2),Nt(r.subtitle)}}function H_(t,e){t&1&&(w(0,"li"),S(1,"No results"),C())}function z_(t,e){if(t&1&&(w(0,"ul",3),ee(1,$_,5,5,"li",4)(2,H_,2,0,"li",5),C()),t&2){let r=e.ngIf;N(),O("ngForOf",r),N(),O("ngIf",!r.length)}}var tv=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new he,this.isLoading=!1,this.results$=this.input$.pipe(Ce(i=>i.length>=3),oc(500),ac(),se(()=>this.isLoading=!0),De(i=>this.service.getAllSearch(i)),se(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(v(st))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=qt();w(0,"input",1,0),ue("input",function(){Ht(s);let c=ag(1);return zt(o.input$.next(c.value))}),C(),ee(2,z_,3,2,"ul",2),et(3,"async")}i&2&&(xr("loading",o.isLoading),N(2),O("ngIf",gt(3,3,o.results$)))},dependencies:[nt,rt,ot,Dn]});let t=e;return t})();var nv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Home"),C(),w(2,"a",0),S(3,` Show book list +`),C(),w(4,"h2"),S(5,"Search"),C(),ce(6,"bm-search"))},dependencies:[ot,tv]});let t=e;return t})();var q_=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:nv}],rv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Xt.forRoot(q_),Xt]});let t=e;return t})();var Ca=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ye(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function W_(t,e){if(t&1){let r=qt();w(0,"button",6),ue("click",function(){Ht(r);let i=Le();return zt(i.auth.login())}),S(1,"Login"),C()}}function Z_(t,e){if(t&1){let r=qt();w(0,"button",7),ue("click",function(){Ht(r);let i=Le();return zt(i.auth.logout())}),S(1,"Logout"),C()}}var ov=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(v(Ca))},e.\u0275cmp=ae({type:e,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,o){i&1&&(w(0,"nav")(1,"a",0),S(2,"Home"),C(),w(3,"a",1),S(4,"Books"),C(),w(5,"a",2),S(6,"Administration"),C(),w(7,"div",3),ee(8,W_,2,0,"button",4)(9,Z_,2,0,"button",5),C()(),w(10,"main"),ce(11,"router-outlet"),C()),i&2&&(N(8),O("ngIf",!o.auth.isAuthenticated),N(),O("ngIf",o.auth.isAuthenticated))},dependencies:[rt,vd,ot,Km]});let t=e;return t})();var ba=(()=>{let e=class e{transform(n){return n?`${n.substring(0,3)}-${n.substring(3)}`:""}};e.\u0275fac=function(i){return new(i||e)},e.\u0275pipe=di({name:"isbn",type:e,pure:!0});let t=e;return t})();var Y_=t=>["/admin/edit",t];function Q_(t,e){if(t&1&&(w(0,"p",10),S(1),C()),t&2){let r=Le().ngIf;N(),Nt(r.subtitle)}}function K_(t,e){if(t&1&&(w(0,"li"),S(1),C()),t&2){let r=e.$implicit;N(),Nt(r)}}function J_(t,e){if(t&1&&(w(0,"div")(1,"h2"),S(2,"Published"),C(),S(3),et(4,"date"),C()),t&2){let r=Le().ngIf;N(3),$e(" ",fg(4,1,r.published,"longDate")," ")}}function X_(t,e){if(t&1&&ce(0,"img",11),t&2){let r=Le().ngIf;O("src",r.thumbnailUrl,pi)}}function eS(t,e){if(t&1){let r=qt();w(0,"div",1)(1,"h1"),S(2),C(),ee(3,Q_,2,1,"p",2),w(4,"div",3)(5,"div")(6,"h2"),S(7,"Authors"),C(),w(8,"ul"),ee(9,K_,2,1,"li",4),C()(),w(10,"div")(11,"h2"),S(12,"ISBN"),C(),S(13),et(14,"isbn"),C(),ee(15,J_,5,4,"div",5),C(),w(16,"h2"),S(17,"Description"),C(),w(18,"p"),S(19),C(),ee(20,X_,1,1,"img",6),w(21,"a",7),S(22,"Back to list"),C(),w(23,"button",8),ue("click",function(){let i=Ht(r).ngIf,o=Le();return zt(o.removeBook(i.isbn))}),S(24," Remove book "),C(),w(25,"a",9),S(26," Edit book "),C()()}if(t&2){let r=e.ngIf;N(2),Nt(r.title),N(),O("ngIf",r.subtitle),N(6),O("ngForOf",r.authors),N(4),$e(" ",gt(14,8,r.isbn)," "),N(2),O("ngIf",r.published),N(4),Nt(r.description),N(),O("ngIf",r.thumbnailUrl),N(5),O("routerLink",Ts(10,Y_,r.isbn))}}var av=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(v(st),v(Dt),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(ee(0,eS,27,12,"div",0),et(1,"async")),i&2&&O("ngIf",gt(1,1,o.book$))},dependencies:[nt,rt,ot,Dn,Vg,ba]});let t=e;return t})();function tS(t,e){if(t&1&&ce(0,"img",6),t&2){let r=Le(2);O("src",r.book.thumbnailUrl,pi)}}function nS(t,e){if(t&1&&(w(0,"p",7),S(1),C()),t&2){let r=Le(2);N(),$e(" ",r.book.subtitle," ")}}function rS(t,e){if(t&1&&(w(0,"li"),S(1),C()),t&2){let r=e.$implicit;N(),$e(" ",r," ")}}function iS(t,e){if(t&1&&(w(0,"a",1),ee(1,tS,1,1,"img",2),w(2,"h2"),S(3),C(),ee(4,nS,2,1,"p",3),w(5,"ul",4),ee(6,rS,2,1,"li",5),C(),w(7,"div"),S(8),et(9,"isbn"),C()()),t&2){let r=Le();O("routerLink",r.book.isbn),N(),O("ngIf",r.book.thumbnailUrl),N(2),Nt(r.book.title),N(),O("ngIf",r.book.subtitle),N(2),O("ngForOf",r.book.authors),N(2),$e("ISBN ",gt(9,6,r.book.isbn),"")}}var cv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&ee(0,iS,10,8,"a",0),i&2&&O("ngIf",o.book)},dependencies:[nt,rt,ot,ba]});let t=e;return t})();function sS(t,e){if(t&1&&(w(0,"li"),ce(1,"bm-book-list-item",4),C()),t&2){let r=e.$implicit;N(),O("book",r)}}function aS(t,e){t&1&&(w(0,"li"),S(1," No books available. "),C())}function cS(t,e){if(t&1&&(w(0,"ul",1),ee(1,sS,2,1,"li",2)(2,aS,2,0,"li",3),C()),t&2){let r=e.ngIf;N(),O("ngForOf",r),N(),O("ngIf",!r.length)}}var uv=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(v(st))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Books"),C(),ee(2,cS,3,2,"ul",0),et(3,"async")),i&2&&(N(2),O("ngIf",gt(3,1,o.books$)))},dependencies:[nt,rt,cv,Dn]});let t=e;return t})();var uS=[{path:"books",component:uv},{path:"books/:isbn",component:av}],lv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Xt.forChild(uS),Xt]});let t=e;return t})();var dv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Fr,lv]});let t=e;return t})();var fv=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(E(Ca))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let t=e;return t})();var wv=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(v(xt),v(Pe))},e.\u0275dir=le({type:e});let t=e;return t})(),lS=(()=>{let e=class e extends wv{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})(),e.\u0275dir=le({type:e,features:[pt]});let t=e;return t})(),Na=new D("");var dS={provide:Na,useExisting:Tt(()=>Ra),multi:!0};function fS(){let t=Rt()?Rt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var hS=new D(""),Ra=(()=>{let e=class e extends wv{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!fS())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(v(xt),v(Pe),v(hS,8))},e.\u0275dir=le({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(i,o){i&1&&ue("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[pn([dS]),pt]});let t=e;return t})();function _n(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Cv(t){return t!=null&&typeof t.length=="number"}var Oa=new D(""),Fa=new D(""),pS=/^(?=.{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])?)*$/,Zi=class{static min(e){return gS(e)}static max(e){return mS(e)}static required(e){return vS(e)}static requiredTrue(e){return yS(e)}static email(e){return DS(e)}static minLength(e){return wS(e)}static maxLength(e){return CS(e)}static pattern(e){return bS(e)}static nullValidator(e){return bv(e)}static compose(e){return Tv(e)}static composeAsync(e){return xv(e)}};function gS(t){return e=>{if(_n(e.value)||_n(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(_n(e.value)||_n(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function vS(t){return _n(t.value)?{required:!0}:null}function yS(t){return t.value===!0?null:{required:!0}}function DS(t){return _n(t.value)||pS.test(t.value)?null:{email:!0}}function wS(t){return e=>_n(e.value)||!Cv(e.value)?null:e.value.lengthCv(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function bS(t){if(!t)return bv;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(_n(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function bv(t){return null}function Ev(t){return t!=null}function Iv(t){return gn(t)?X(t):t}function Mv(t){let e={};return t.forEach(r=>{e=r!=null?m(m({},e),r):e}),Object.keys(e).length===0?null:e}function _v(t,e){return e.map(r=>r(t))}function ES(t){return!t.validate}function Sv(t){return t.map(e=>ES(e)?e:r=>e.validate(r))}function Tv(t){if(!t)return null;let e=t.filter(Ev);return e.length==0?null:function(r){return Mv(_v(r,e))}}function Av(t){return t!=null?Tv(Sv(t)):null}function xv(t){if(!t)return null;let e=t.filter(Ev);return e.length==0?null:function(r){let n=_v(r,e).map(Iv);return ic(n).pipe(A(Mv))}}function Nv(t){return t!=null?xv(Sv(t)):null}function hv(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Rv(t){return t._rawValidators}function Ov(t){return t._rawAsyncValidators}function Id(t){return t?Array.isArray(t)?t:[t]:[]}function Ia(t,e){return Array.isArray(t)?t.includes(e):t===e}function pv(t,e){let r=Id(e);return Id(t).forEach(i=>{Ia(r,i)||r.push(i)}),r}function gv(t,e){return Id(e).filter(r=>!Ia(t,r))}var Ma=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=Av(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Nv(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,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},at=class extends Ma{get formDirective(){return null}get path(){return null}},Yi=class extends Ma{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},_a=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}},IS={"[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"},OP=U(m({},IS),{"[class.ng-submitted]":"isSubmitted"}),Fv=(()=>{let e=class e extends _a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(v(Yi,2))},e.\u0275dir=le({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&xr("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:[pt]});let t=e;return t})(),kv=(()=>{let e=class e extends _a{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(v(at,10))},e.\u0275dir=le({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&xr("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:[pt]});let t=e;return t})();var zi="VALID",Ea="INVALID",Wr="PENDING",Gi="DISABLED",Sn=class{},Sa=class extends Sn{constructor(e,r){super(),this.value=e,this.source=r}},qi=class extends Sn{constructor(e,r){super(),this.pristine=e,this.source=r}},Wi=class extends Sn{constructor(e,r){super(),this.touched=e,this.source=r}},Zr=class extends Sn{constructor(e,r){super(),this.status=e,this.source=r}},Md=class extends Sn{constructor(e){super(),this.source=e}},_d=class extends Sn{constructor(e){super(),this.source=e}};function Sd(t){return(ka(t)?t.validators:t)||null}function MS(t){return Array.isArray(t)?Av(t):t||null}function Td(t,e){return(ka(e)?e.asyncValidators:t)||null}function _S(t){return Array.isArray(t)?Nv(t):t||null}function ka(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Pv(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new b(1e3,"");if(!n[r])throw new b(1001,"")}function Lv(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new b(1002,"")})}var Qi=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new he,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}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===zi}get invalid(){return this.status===Ea}get pending(){return this.status==Wr}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}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(pv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(pv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(gv(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(gv(e,this._rawAsyncValidators))}hasValidator(e){return Ia(this._rawValidators,e)}hasAsyncValidator(e){return Ia(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(U(m({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Wi(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Wi(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(U(m({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new qi(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new qi(!0,n))}markAsPending(e={}){this.status=Wr;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Zr(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(U(m({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(i=>{i.disable(U(m({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Sa(this.value,n)),this._events.next(new Zr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(m({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=zi,this._forEachChild(n=>{n.enable(U(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(U(m({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zi||this.status===Wr)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Sa(this.value,r)),this._events.next(new Zr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(U(m({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=Wr,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Iv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Zr(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?Ea:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wr)?Wr:this._anyControlsHaveStatus(Ea)?Ea:zi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),i&&this._events.next(new qi(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Wi(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ka(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=MS(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=_S(this._rawAsyncValidators)}},Ta=class extends Qi{constructor(e,r,n){super(Sd(r),Td(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){Lv(this,!0,e),Object.keys(e).forEach(n=>{Pv(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Vv=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Ad}),Ad="always";function xd(t,e){return[...e.path,t]}function mv(t,e,r=Ad){Nd(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),TS(t,e),xS(t,e),AS(t,e),SS(t,e)}function vv(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),xa(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Aa(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function SS(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Nd(t,e){let r=Rv(t);e.validator!==null?t.setValidators(hv(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Ov(t);e.asyncValidator!==null?t.setAsyncValidators(hv(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Aa(e._rawValidators,i),Aa(e._rawAsyncValidators,i)}function xa(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=Rv(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=Ov(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Aa(e._rawValidators,n),Aa(e._rawAsyncValidators,n),r}function TS(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&jv(t,e)})}function AS(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&jv(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function jv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function xS(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function NS(t,e){t==null,Nd(t,e)}function RS(t,e){return xa(t,e)}function OS(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function FS(t){return Object.getPrototypeOf(t.constructor)===lS}function kS(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function PS(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Ra?r=o:FS(o)?n=o:i=o}),i||n||r||null}function LS(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function yv(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Dv(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var kt=class extends Qi{constructor(e=null,r,n){super(Sd(r),Td(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ka(r)&&(r.nonNullable||r.initialValueIsDefault)&&(Dv(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){yv(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){yv(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){Dv(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 VS=t=>t instanceof kt,jS=(()=>{let e=class e extends at{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xd(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Sr(e)))(o||e)}})(),e.\u0275dir=le({type:e,features:[pt]});let t=e;return t})();var Bv=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=le({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Uv=new D("");var BS={provide:at,useExisting:Tt(()=>Yr)},Yr=(()=>{let e=class e extends at{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ie,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return mv(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){vv(n.control||null,n,!1),LS(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,kS(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Md(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new _d(this.form))}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(vv(i||null,n),VS(o)&&(mv(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);NS(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&RS(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nd(this.form,this),this._oldForm&&xa(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(v(Oa,10),v(Fa,10),v(Vv,8))},e.\u0275dir=le({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&ue("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pn([BS]),pt,ht]});let t=e;return t})(),US={provide:at,useExisting:Tt(()=>$v)},$v=(()=>{let e=class e extends jS{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){Hv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(v(at,13),v(Oa,10),v(Fa,10))},e.\u0275dir=le({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[pn([US]),pt]});let t=e;return t})(),$S={provide:at,useExisting:Tt(()=>Pa)},Pa=(()=>{let e=class e extends at{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),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 xd(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Hv(this._parent)}};e.\u0275fac=function(i){return new(i||e)(v(at,13),v(Oa,10),v(Fa,10))},e.\u0275dir=le({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[pn([$S]),pt]});let t=e;return t})();function Hv(t){return!(t instanceof $v)&&!(t instanceof Yr)&&!(t instanceof Pa)}var HS={provide:Yi,useExisting:Tt(()=>Rd)},Rd=(()=>{let e=class e extends Yi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new ie,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=PS(this,s)}ngOnChanges(n){this._added||this._setUpControl(),OS(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return xd(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(i){return new(i||e)(v(at,13),v(Oa,10),v(Fa,10),v(Na,10),v(Uv,8))},e.\u0275dir=le({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[pn([HS]),pt,ht]});let t=e;return t})();var zS=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({});let t=e;return t})(),Ki=class extends Qi{constructor(e,r,n){super(Sd(r),Td(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){Lv(this,!1,e),e.forEach((n,i)=>{Pv(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._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((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_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 zv=t=>t instanceof Ki;var Gv=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Uv,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Vv,useValue:n.callSetDisabledState??Ad}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[zS]});let t=e;return t})();var Wv=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(v(xt),v(Pe))},t.\u0275dir=le({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&ue("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[pn([{provide:Na,useExisting:Tt(()=>t),multi:!0}])]}),t})();var Zv=(()=>{let e=class e{constructor(n){this.service=n}isbnExists(){return n=>this.service.check(n.value).pipe(A(i=>i?{isbnexists:!0}:null))}};e.\u0275fac=function(i){return new(i||e)(E(st))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Yv=function(t){if(!t.value||typeof t.value!="string")return null;let r=t.value.replace(/-/g,"").length;return r===10||r===13?null:{isbnformat:!0}},Qv=function(t){return!zv(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function qS(t,e){if(t&1&&(w(0,"p",1),S(1),C()),t&2){let r=e.$implicit;N(),$e(" ",r,` +`)}}var Kv=(()=>{let e=class e{constructor(n){this.form=n,this.messages={}}get errors(){if(!this.controlName)return[];let n=this.form.control.get(this.controlName);return!n||!n.errors||!n.touched?[]:Object.keys(n.errors).map(i=>this.messages[i])}};e.\u0275fac=function(i){return new(i||e)(v(Yr))},e.\u0275cmp=ae({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(i,o){i&1&&ee(0,qS,2,1,"p",0),i&2&&O("ngForOf",o.errors)},dependencies:[nt]});let t=e;return t})();var ZS=()=>({required:"Title is required"}),YS=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),QS=()=>({atleastonevalue:"At least one author required"});function KS(t,e){if(t&1&&ce(0,"input",20),t&2){let r=e.index;O("formControlName",r),Ar("aria-label","Author "+r)}}var La=(()=>{let e=class e{constructor(){this.submitBook=new ie,this.form=new Ta({title:new kt("",{nonNullable:!0,validators:Zi.required}),subtitle:new kt("",{nonNullable:!0}),isbn:new kt("",{nonNullable:!0,validators:[Zi.required,Yv],asyncValidators:p(Zv).isbnExists()}),description:new kt("",{nonNullable:!0}),published:new kt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new kt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Ki(n.map(i=>new kt(i,{nonNullable:!0})),Qv)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new kt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=U(m({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[ht],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(i,o){i&1&&(w(0,"form",0),ue("ngSubmit",function(){return o.submitForm()}),w(1,"label",1),S(2,"Title"),C(),ce(3,"input",2)(4,"bm-form-errors",3),w(5,"label",4),S(6,"Subtitle"),C(),ce(7,"input",5),w(8,"label",6),S(9,"ISBN"),C(),ce(10,"input",7)(11,"bm-form-errors",8),w(12,"label"),S(13,"Authors"),C(),w(14,"button",9),ue("click",function(){return o.addAuthorControl()}),S(15," + Author "),C(),w(16,"fieldset",10),ee(17,KS,1,2,"input",11),C(),ce(18,"bm-form-errors",12),w(19,"label",13),S(20,"Description"),C(),ce(21,"textarea",14),w(22,"label",15),S(23,"Published"),C(),ce(24,"input",16),w(25,"label",17),S(26,"Thumbnail URL"),C(),ce(27,"input",18),w(28,"button",19),S(29," Save "),C()()),i&2&&(O("formGroup",o.form),N(4),O("messages",Ss(6,ZS)),N(7),O("messages",Ss(7,YS)),N(6),O("ngForOf",o.authors.controls),N(),O("messages",Ss(8,QS)),N(10),O("disabled",o.form.invalid))},dependencies:[nt,Bv,Ra,Fv,kv,Yr,Rd,Pa,Wv,Kv]});let t=e;return t})();var Xv=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(v(st),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Create Book"),C(),w(2,"bm-book-form",0),ue("submitBook",function(a){return o.create(a)}),C())},dependencies:[La]});let t=e;return t})();function JS(t,e){if(t&1){let r=qt();w(0,"bm-book-form",1),ue("submitBook",function(i){Ht(r);let o=Le();return zt(o.update(i))}),C()}if(t&2){let r=e.ngIf;O("book",r)}}var ey=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(A(s=>s.get("isbn")),De(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(v(st),v(Dt),v(Re))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(i,o){i&1&&(w(0,"h1"),S(1,"Edit Book"),C(),ee(2,JS,1,1,"bm-book-form",0),et(3,"async")),i&2&&(N(2),O("ngIf",gt(3,1,o.book$)))},dependencies:[rt,La,Dn]});let t=e;return t})();var XS=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Xv},{path:"admin/edit/:isbn",component:ey}],ty=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Xt.forChild(XS),Xt]});let t=e;return t})();var ny=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e}),e.\u0275inj=ne({imports:[Fr,ty,Gv]});let t=e;return t})();var ry=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=re({type:e,bootstrap:[ov]}),e.\u0275inj=ne({providers:[{provide:xl,useClass:fv,multi:!0}],imports:[cm,rv,Xg,dv,ny]});let t=e;return t})();am().bootstrapModule(ry,{ngZoneEventCoalescing:!0}).catch(t=>console.error(t));