From 1b4b7d994eb82f1cbde88dbc61eef0c0c34f8dc9 Mon Sep 17 00:00:00 2001 From: RonanCodes Date: Mon, 29 Apr 2024 22:45:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20RonanCod?= =?UTF-8?q?es/chuck-norris-joke-generator@1d599f0d69eced3760019dc3dfc11b5d?= =?UTF-8?q?60640a4f=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chunk-F53I2EFS.js | 7 +++++++ chunk-V5MKIVOR.js => chunk-G4FRQYPG.js | 2 +- chunk-GMEIUZRC.js | 7 ------- index.html | 4 ++-- main-77SOU5AP.js | 2 -- main-KFYXN3IJ.js | 2 ++ 6 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 chunk-F53I2EFS.js rename chunk-V5MKIVOR.js => chunk-G4FRQYPG.js (99%) delete mode 100644 chunk-GMEIUZRC.js delete mode 100644 main-77SOU5AP.js create mode 100644 main-KFYXN3IJ.js diff --git a/chunk-F53I2EFS.js b/chunk-F53I2EFS.js new file mode 100644 index 0000000..ebfb7e5 --- /dev/null +++ b/chunk-F53I2EFS.js @@ -0,0 +1,7 @@ +var nl=Object.defineProperty,rl=Object.defineProperties;var ol=Object.getOwnPropertyDescriptors;var Zt=Object.getOwnPropertySymbols;var Qi=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable;var Yi=(e,t,n)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||={})Qi.call(t,n)&&Yi(e,n,t[n]);if(Zt)for(var n of Zt(t))Zi.call(t,n)&&Yi(e,n,t[n]);return e},Et=(e,t)=>rl(e,ol(t));var fy=(e,t)=>{var n={};for(var r in e)Qi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zt)for(var r of Zt(e))t.indexOf(r)<0&&Zi.call(e,r)&&(n[r]=e[r]);return n};var Ki=null;var mr=1,Ji=Symbol("SIGNAL");function C(e){let t=Ki;return Ki=e,t}var Xi={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 il(e){if(!(vr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===mr)){if(!e.producerMustRecompute(e)&&!yr(e)){e.dirty=!1,e.lastCleanEpoch=mr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=mr}}function es(e){return e&&(e.nextProducerIndex=0),C(e)}function ts(e,t){if(C(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(vr(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function yr(e){Kt(e);for(let t=0;t0}function Kt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function sl(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function al(){throw new Error}var ul=al;function rs(e){ul=e}function m(e){return typeof e=="function"}function et(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Jt=et(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ne(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var F=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof Jt?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{os(i)}catch(s){t=t??[],s instanceof Jt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Jt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)os(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ne(n,t)}remove(t){let{_finalizers:n}=this;n&&Ne(n,t),t instanceof e&&t._removeParent(this)}};F.EMPTY=(()=>{let e=new F;return e.closed=!0,e})();var Ir=F.EMPTY;function Xt(e){return e instanceof F||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function os(e){m(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var tt={setTimeout(e,t,...n){let{delegate:r}=tt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=tt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function en(e){tt.setTimeout(()=>{let{onUnhandledError:t}=X;if(t)t(e);else throw e})}function Ct(){}var is=wr("C",void 0,void 0);function ss(e){return wr("E",void 0,e)}function as(e){return wr("N",e,void 0)}function wr(e,t,n){return{kind:e,value:t,error:n}}var Ae=null;function nt(e){if(X.useDeprecatedSynchronousErrorHandling){let t=!Ae;if(t&&(Ae={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ae;if(Ae=null,n)throw r}}else e()}function us(e){X.useDeprecatedSynchronousErrorHandling&&Ae&&(Ae.errorThrown=!0,Ae.error=e)}var Oe=class extends F{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Xt(t)&&t.add(this)):this.destination=dl}static create(t,n,r){return new pe(t,n,r)}next(t){this.isStopped?Cr(as(t),this):this._next(t)}error(t){this.isStopped?Cr(ss(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cr(is,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},cl=Function.prototype.bind;function Er(e,t){return cl.call(e,t)}var br=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){tn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){tn(r)}else tn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){tn(n)}}},pe=class extends Oe{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&X.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Er(t.next,i),error:t.error&&Er(t.error,i),complete:t.complete&&Er(t.complete,i)}):o=t}this.destination=new br(o)}};function tn(e){X.useDeprecatedSynchronousErrorHandling?us(e):en(e)}function ll(e){throw e}function Cr(e,t){let{onStoppedNotification:n}=X;n&&tt.setTimeout(()=>n(e,t))}var dl={closed:!0,next:Ct,error:ll,complete:Ct};var rt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function j(e){return e}function fl(...e){return Mr(e)}function Mr(e){return e.length===0?j:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var M=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=hl(n)?n:new pe(n,r,o);return nt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=cs(r),new r((o,i)=>{let s=new pe({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[rt](){return this}pipe(...n){return Mr(n)(this)}toPromise(n){return n=cs(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function cs(e){var t;return(t=e??X.Promise)!==null&&t!==void 0?t:Promise}function pl(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function hl(e){return e&&e instanceof Oe||pl(e)&&Xt(e)}function _r(e){return m(e?.lift)}function y(e){return t=>{if(_r(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new xr(e,t,n,r,o)}var xr=class extends Oe{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Tr(){return y((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Sr=class extends M{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,_r(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new F;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=F.EMPTY)}return t}refCount(){return Tr()(this)}};var ls=et(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends M{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new nn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ls}next(n){nt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){nt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){nt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ir:(this.currentObservers=null,i.push(n),new F(()=>{this.currentObservers=null,Ne(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new M;return n.source=this,n}}return e.create=(t,n)=>new nn(t,n),e})(),nn=class extends se{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ir}};var bt=class extends se{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Nr={now(){return(Nr.delegate||Date).now()},delegate:void 0};var rn=class extends F{constructor(t,n){super()}schedule(t,n=0){return this}};var Mt={setInterval(e,t,...n){let{delegate:r}=Mt;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Mt;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var on=class extends rn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Mt.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Mt.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Ne(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var ot=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};ot.now=Nr.now;var sn=class extends ot{constructor(t,n=ot.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ds=new sn(on);var _t=new M(e=>e.complete());function fs(e){return e&&m(e.schedule)}function ps(e){return e[e.length-1]}function an(e){return m(ps(e))?e.pop():void 0}function we(e){return fs(ps(e))?e.pop():void 0}function gs(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function hs(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fe(e){return this instanceof Fe?(this.v=e,this):new Fe(e)}function ms(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,v){i.push([f,p,h,v])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(h){d(i[0][3],h)}}function u(f){f.value instanceof Fe?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function ys(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof hs=="function"?hs(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var un=e=>e&&typeof e.length=="number"&&typeof e!="function";function cn(e){return m(e?.then)}function ln(e){return m(e[rt])}function dn(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function fn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function gl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var pn=gl();function hn(e){return m(e?.[pn])}function gn(e){return ms(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Fe(n.read());if(o)return yield Fe(void 0);yield yield Fe(r)}}finally{n.releaseLock()}})}function mn(e){return m(e?.getReader)}function N(e){if(e instanceof M)return e;if(e!=null){if(ln(e))return ml(e);if(un(e))return yl(e);if(cn(e))return Dl(e);if(dn(e))return Ds(e);if(hn(e))return vl(e);if(mn(e))return Il(e)}throw fn(e)}function ml(e){return new M(t=>{let n=e[rt]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function yl(e){return new M(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,en)})}function vl(e){return new M(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ds(e){return new M(t=>{wl(e,t).catch(n=>t.error(n))})}function Il(e){return Ds(gn(e))}function wl(e,t){var n,r,o,i;return gs(this,void 0,void 0,function*(){try{for(n=ys(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function B(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function yn(e,t=0){return y((n,r)=>{n.subscribe(D(r,o=>B(r,e,()=>r.next(o),t),()=>B(r,e,()=>r.complete(),t),o=>B(r,e,()=>r.error(o),t)))})}function Dn(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function vs(e,t){return N(e).pipe(Dn(t),yn(t))}function Is(e,t){return N(e).pipe(Dn(t),yn(t))}function ws(e,t){return new M(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Es(e,t){return new M(n=>{let r;return B(n,t,()=>{r=e[pn](),B(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function vn(e,t){if(!e)throw new Error("Iterable cannot be null");return new M(n=>{B(n,t,()=>{let r=e[Symbol.asyncIterator]();B(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Cs(e,t){return vn(gn(e),t)}function bs(e,t){if(e!=null){if(ln(e))return vs(e,t);if(un(e))return ws(e,t);if(cn(e))return Is(e,t);if(dn(e))return vn(e,t);if(hn(e))return Es(e,t);if(mn(e))return Cs(e,t)}throw fn(e)}function Ee(e,t){return t?bs(e,t):N(e)}function El(...e){let t=we(e);return Ee(e,t)}function Cl(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new M(t?o=>t.schedule(r,0,o):r)}function bl(e){return!!e&&(e instanceof M||m(e.lift)&&m(e.subscribe))}var Re=et(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ae(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Ml}=Array;function _l(e,t){return Ml(t)?e(...t):e(t)}function In(e){return ae(t=>_l(e,t))}var{isArray:xl}=Array,{getPrototypeOf:Tl,prototype:Sl,keys:Nl}=Object;function wn(e){if(e.length===1){let t=e[0];if(xl(t))return{args:t,keys:null};if(Al(t)){let n=Nl(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Al(e){return e&&typeof e=="object"&&Tl(e)===Sl}function En(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ol(...e){let t=we(e),n=an(e),{args:r,keys:o}=wn(e);if(r.length===0)return Ee([],t);let i=new M(Fl(r,t,o?s=>En(o,s):j));return n?i.pipe(In(n)):i}function Fl(e,t,n=j){return r=>{Ms(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=Ee(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ms(e,t,n){e?B(n,e,t):t()}function _s(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=v=>c{i&&t.next(v),c++;let P=!1;N(n(v,l++)).subscribe(D(t,O=>{o?.(O),i?p(O):t.next(O)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;u.length&&ch(O)):h(O)}f()}catch(O){t.error(O)}}))};return e.subscribe(D(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Pe(e,t,n=1/0){return m(t)?Pe((r,o)=>ae((i,s)=>t(r,i,o,s))(N(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>_s(r,o,e,n)))}function Ar(e=1/0){return Pe(j,e)}function xs(){return Ar(1)}function Cn(...e){return xs()(Ee(e,we(e)))}function Rl(e){return new M(t=>{N(e()).subscribe(t)})}function Pl(...e){let t=an(e),{args:n,keys:r}=wn(e),o=new M(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?En(r,a):a),i.complete())}))}});return t?o.pipe(In(t)):o}function ke(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ts(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=N(e(s,Ts(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ss(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function kl(e,t){return m(t)?Pe(e,t,1):Pe(e,1)}function Ll(e,t=ds){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function xt(e){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Or(e){return e<=0?()=>_t:y((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function jl(e){return ae(()=>e)}function Vl(e,t=j){return e=e??Bl,y((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Bl(e,t){return e===t}function bn(e=$l){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function $l(){return new Re}function Hl(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ns(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ke((o,i)=>e(o,i,r)):j,Or(1),n?xt(t):bn(()=>new Re))}function Fr(e){return e<=0?()=>_t:y((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ul(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ke((o,i)=>e(o,i,r)):j,Fr(1),n?xt(t):bn(()=>new Re))}function Gl(e,t){return y(Ss(e,t,arguments.length>=2,!0))}function zl(e={}){let{connector:t=()=>new se,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,l=d=!1},h=()=>{let v=s;p(),v?.unsubscribe()};return y((v,P)=>{c++,!d&&!l&&f();let O=u=u??t();P.add(()=>{c--,c===0&&!d&&!l&&(a=Rr(h,o))}),O.subscribe(P),!s&&c>0&&(s=new pe({next:Y=>O.next(Y),error:Y=>{d=!0,f(),a=Rr(p,n,Y),O.error(Y)},complete:()=>{l=!0,f(),a=Rr(p,r),O.complete()}}),N(v).subscribe(s))})(i)}}function Rr(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new pe({next:()=>{r.unsubscribe(),e()}});return N(t(...n)).subscribe(r)}function Wl(e){return ke((t,n)=>e<=n)}function ql(...e){let t=we(e);return y((n,r)=>{(t?Cn(e,n,t):Cn(e,n)).subscribe(r)})}function Yl(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o?.unsubscribe();let c=0,l=i++;N(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ql(e){return y((t,n)=>{N(e).subscribe(D(n,()=>n.complete(),Ct)),!n.closed&&t.subscribe(n)})}function Zl(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):j}var ma="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(ya(t,n)),this.code=t}};function ya(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Bt(e){return{toString:e}.toString()}var Mn="__parameters__";function Kl(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Da(e,t,n){return Bt(()=>{let r=Kl(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Mn)?u[Mn]:Object.defineProperty(u,Mn,{value:[]})[Mn];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var be=globalThis;function T(e){for(let t in e)if(e[t]===T)return t;throw Error("Could not find renamed property on target object.")}function Jl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function U(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(U).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Yr(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Xl=T({__forward_ref__:T});function va(e){return e.__forward_ref__=va,e.toString=function(){return U(this())},e}function Q(e){return Ia(e)?e():e}function Ia(e){return typeof e=="function"&&e.hasOwnProperty(Xl)&&e.__forward_ref__===va}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wa(e){return{providers:e.providers||[],imports:e.imports||[]}}function rr(e){return As(e,Ea)||As(e,Ca)}function zC(e){return rr(e)!==null}function As(e,t){return e.hasOwnProperty(t)?e[t]:null}function ed(e){let t=e&&(e[Ea]||e[Ca]);return t||null}function Os(e){return e&&(e.hasOwnProperty(Fs)||e.hasOwnProperty(td))?e[Fs]:null}var Ea=T({\u0275prov:T}),Fs=T({\u0275inj:T}),Ca=T({ngInjectableDef:T}),td=T({ngInjectorDef:T}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ba(e){return e&&!!e.\u0275providers}var nd=T({\u0275cmp:T}),rd=T({\u0275dir:T}),od=T({\u0275pipe:T}),id=T({\u0275mod:T}),Ln=T({\u0275fac:T}),Tt=T({__NG_ELEMENT_ID__:T}),Rs=T({__NG_ENV_ID__:T});function or(e){return typeof e=="string"?e:e==null?"":String(e)}function sd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():or(e)}function ad(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function Xo(e,t){throw new b(-201,!1)}var w=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(w||{}),Qr;function Ma(){return Qr}function $(e){let t=Qr;return Qr=e,t}function _a(e,t,n){let r=rr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&w.Optional)return null;if(t!==void 0)return t;Xo(e,"Injector")}var ud={},St=ud,Zr="__NG_DI_FLAG__",jn="ngTempTokenPath",cd="ngTokenPath",ld=/\n/gm,dd="\u0275",Ps="__source",ct;function fd(){return ct}function Ce(e){let t=ct;return ct=e,t}function pd(e,t=w.Default){if(ct===void 0)throw new b(-203,!1);return ct===null?_a(e,void 0,t):ct.get(e,t&w.Optional?null:void 0,t)}function L(e,t=w.Default){return(Ma()||pd)(Q(e),t)}function x(e,t=w.Default){return L(e,ir(t))}function ir(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Kr(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):U(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ld,` + `)}`}var yd=xa(Da("Optional"),8);var Dd=xa(Da("SkipSelf"),4);function Be(e,t){let n=e.hasOwnProperty(Ln);return n?e[Ln]:null}function vd(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?ei(n,t):t(n))}function Ta(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wd(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ti(e,t,n){let r=$t(e,t);return r>=0?e[r|1]=n:(r=~r,Ed(e,r,t,n)),r}function Pr(e,t){let n=$t(e,t);if(n>=0)return e[n|1]}function $t(e,t){return Cd(e,t,1)}function Cd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(ee(r))return!1;s=!0}}}}return ee(r)||s}function ee(e){return(e&1)===0}function Sd(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ee(s)&&(t+=Ls(i,o),o=""),r=s,i=i||!ee(r);n++}return o!==""&&(t+=Ls(i,o)),t}function Pd(e){return e.map(Rd).join(",")}function kd(e){let t=[],n=[],r=1,o=2;for(;r{let t=$a(e),n=Et(wt({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Aa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Nt.Emulated,styles:e.styles||H,_:null,schemas:e.schemas||null,tView:null,id:""});Ha(n);let r=e.dependencies;return n.directiveDefs=Vs(r,!1),n.pipeDefs=Vs(r,!0),n.id=Bd(n),n})}function Ld(e){return _e(e)||ja(e)}function jd(e){return e!==null}function Pa(e){return Bt(()=>({type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function js(e,t){if(e==null)return dt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=$e.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==$e.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ka(e){return Bt(()=>{let t=$a(e);return Ha(t),t})}function La(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function _e(e){return e[nd]||null}function ja(e){return e[rd]||null}function Va(e){return e[od]||null}function Vd(e){let t=_e(e)||ja(e)||Va(e);return t!==null?t.standalone:!1}function Ba(e,t){let n=e[id]||null;if(!n&&t===!0)throw new Error(`Type ${U(e)} does not have '\u0275mod' property.`);return n}function $a(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||dt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:js(e.inputs,t),outputs:js(e.outputs),debugInfo:null}}function Ha(e){e.features?.forEach(t=>t(e))}function Vs(e,t){if(!e)return null;let n=t?Va:Ld;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(jd)}function Bd(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function $d(e){return{\u0275providers:e}}function Hd(...e){return{\u0275providers:Ua(!0,e),\u0275fromNgModule:!0}}function Ua(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ei(t,s=>{let a=s;Xr(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ga(o,i),n}function Ga(e,t){for(let n=0;n{t(i,r)})}}function Xr(e,t,n,r){if(e=Q(e),!e)return!1;let o=null,i=Os(e),s=!i&&_e(e);if(!i&&!s){let u=e.ngModule;if(i=Os(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Xr(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{ei(i.imports,l=>{Xr(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ga(c,t)}if(!a){let c=Be(o)||(()=>new o);t({provide:o,useFactory:c,deps:H},o),t({provide:Na,useValue:o,multi:!0},o),t({provide:Bn,useValue:()=>L(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;ri(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function ri(e,t){for(let n of e)ba(n)&&(n=n.\u0275providers),Array.isArray(n)?ri(n,t):t(n)}var Ud=T({provide:String,useValue:T});function za(e){return e!==null&&typeof e=="object"&&Ud in e}function Gd(e){return!!(e&&e.useExisting)}function zd(e){return!!(e&&e.useFactory)}function eo(e){return typeof e=="function"}var Wa=new S(""),An={},Wd={},kr;function oi(){return kr===void 0&&(kr=new $n),kr}var xe=class{},Ot=class extends xe{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,no(t,s=>this.processProvider(s)),this.records.set(Sa,it(void 0,this)),o.has("environment")&&this.records.set(xe,it(void 0,this));let i=this.records.get(Wa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Na,H,w.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=C(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ce(this),r=$(void 0),o;try{return t()}finally{Ce(n),$(r)}}get(t,n=St,r=w.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Rs))return t[Rs](this);r=ir(r);let o,i=Ce(this),s=$(void 0);try{if(!(r&w.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Jd(t)&&rr(t);c&&this.injectableDefInScope(c)?u=it(to(t),An):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&w.Self?oi():this.parent;return n=r&w.Optional&&n===St?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[jn]=a[jn]||[]).unshift(U(t)),i)throw a;return gd(a,t,"R3InjectorError",this.source)}else throw a}finally{$(s),Ce(i)}}resolveInjectorInitializers(){let t=C(null),n=Ce(this),r=$(void 0),o;try{let i=this.get(Bn,H,w.Self);for(let s of i)s()}finally{Ce(n),$(r),C(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(U(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Q(t);let n=eo(t)?t:Q(t&&t.provide),r=Yd(t);if(!eo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=it(void 0,An,!0),o.factory=()=>Kr(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=C(null);try{return n.value===An&&(n.value=Wd,n.value=n.factory()),typeof n.value=="object"&&n.value&&Kd(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function to(e){let t=rr(e),n=t!==null?t.factory:Be(e);if(n!==null)return n;if(e instanceof S)throw new b(204,!1);if(e instanceof Function)return qd(e);throw new b(204,!1)}function qd(e){if(e.length>0)throw new b(204,!1);let n=ed(e);return n!==null?()=>n.factory(e):()=>new e}function Yd(e){if(za(e))return it(void 0,e.useValue);{let t=Qd(e);return it(t,An)}}function Qd(e,t,n){let r;if(eo(e)){let o=Q(e);return Be(o)||to(o)}else if(za(e))r=()=>Q(e.useValue);else if(zd(e))r=()=>e.useFactory(...Kr(e.deps||[]));else if(Gd(e))r=()=>L(Q(e.useExisting));else{let o=Q(e&&(e.useClass||e.provide));if(Zd(e))r=()=>new o(...Kr(e.deps));else return Be(o)||to(o)}return r}function it(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zd(e){return!!e.deps}function Kd(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Jd(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function no(e,t){for(let n of e)Array.isArray(n)?no(n,t):n&&ba(n)?no(n.\u0275providers,t):t(n)}function Xd(e,t){e instanceof Ot&&e.assertNotDestroyed();let n,r=Ce(e),o=$(void 0);try{return t()}finally{Ce(r),$(o)}}function qa(){return Ma()!==void 0||fd()!=null}function ef(e){if(!qa())throw new b(-203,!1)}function tf(e){return typeof e=="function"}var ye=0,I=1,g=2,k=3,ne=4,W=5,Ft=6,Rt=7,he=8,ft=9,re=10,R=11,Pt=12,Bs=13,Ht=14,oe=15,Ut=16,st=17,ge=18,sr=19,Ya=20,Me=21,Lr=22,He=23,ie=25,Qa=1;var Ue=7,Hn=8,pt=9,z=10,ii=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(ii||{});function je(e){return Array.isArray(e)&&typeof e[Qa]=="object"}function De(e){return Array.isArray(e)&&e[Qa]===!0}function Za(e){return(e.flags&4)!==0}function ar(e){return e.componentOffset>-1}function si(e){return(e.flags&1)===1}function Ge(e){return!!e.template}function nf(e){return(e[g]&512)!==0}var ro=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ka(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Ja(){return Xa}function Xa(e){return e.type.prototype.ngOnChanges&&(e.setInput=of),rf}Ja.ngInherit=!0;function rf(){let e=tu(this),t=e?.current;if(t){let n=e.previous;if(n===dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function of(e,t,n,r,o){let i=this.declaredInputs[r],s=tu(e)||sf(e,{previous:dt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new ro(c&&c.currentValue,n,u===dt),Ka(e,t,o,n)}var eu="__ngSimpleChanges__";function tu(e){return e[eu]||null}function sf(e,t){return e[eu]=t}var $s=null;var ue=function(e,t,n){$s?.(e,t,n)},af="svg",uf="math",cf=!1;function lf(){return cf}function le(e){for(;Array.isArray(e);)e=e[ye];return e}function nu(e,t){return le(t[e])}function K(e,t){return le(t[e.index])}function ru(e,t){return e.data[t]}function df(e,t){return e[t]}function Se(e,t){let n=t[e];return je(n)?n:n[ye]}function ff(e){return(e[g]&4)===4}function ai(e){return(e[g]&128)===128}function pf(e){return De(e[k])}function Un(e,t){return t==null?null:e[t]}function ou(e){e[st]=0}function hf(e){e[g]&1024||(e[g]|=1024,ai(e)&&kt(e))}function ui(e){return!!(e[g]&9216||e[He]?.dirty)}function oo(e){e[re].changeDetectionScheduler?.notify(1),ui(e)?kt(e):e[g]&64&&(lf()?(e[g]|=1024,kt(e)):e[re].changeDetectionScheduler?.notify())}function kt(e){e[re].changeDetectionScheduler?.notify();let t=Lt(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!ai(t)));)t=Lt(t)}function iu(e,t){if((e[g]&256)===256)throw new b(911,!1);e[Me]===null&&(e[Me]=[]),e[Me].push(t)}function gf(e,t){if(e[Me]===null)return;let n=e[Me].indexOf(t);n!==-1&&e[Me].splice(n,1)}function Lt(e){let t=e[k];return De(t)?t[k]:t}var E={lFrame:mu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function mf(){return E.lFrame.elementDepthCount}function yf(){E.lFrame.elementDepthCount++}function Df(){E.lFrame.elementDepthCount--}function su(){return E.bindingsEnabled}function au(){return E.skipHydrationRootTNode!==null}function vf(e){return E.skipHydrationRootTNode===e}function If(){E.skipHydrationRootTNode=null}function _(){return E.lFrame.lView}function G(){return E.lFrame.tView}function q(){let e=uu();for(;e!==null&&e.type===64;)e=e.parent;return e}function uu(){return E.lFrame.currentTNode}function wf(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Gt(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function cu(){return E.lFrame.isParent}function lu(){E.lFrame.isParent=!1}function du(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ef(e){return E.lFrame.bindingIndex=e}function ci(){return E.lFrame.bindingIndex++}function fu(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Cf(){return E.lFrame.inI18n}function bf(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,io(t)}function Mf(){return E.lFrame.currentDirectiveIndex}function io(e){E.lFrame.currentDirectiveIndex=e}function _f(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pu(){return E.lFrame.currentQueryIndex}function li(e){E.lFrame.currentQueryIndex=e}function xf(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[W]:null}function hu(e,t,n){if(n&w.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&w.Host);)if(o=xf(i),o===null||(i=i[Ht],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=gu();return r.currentTNode=t,r.lView=e,!0}function di(e){let t=gu(),n=e[I];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gu(){let e=E.lFrame,t=e===null?null:e.child;return t===null?mu(e):t}function mu(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function yu(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Du=yu;function fi(){let e=yu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ze(){return E.lFrame.selectedIndex}function ze(e){E.lFrame.selectedIndex=e}function vu(){let e=E.lFrame;return ru(e.tView,e.selectedIndex)}function Tf(){return E.lFrame.currentNamespace}var Iu=!0;function pi(){return Iu}function hi(e){Iu=e}function Sf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Xa(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function gi(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[st]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Hs(a,i)):Hs(a,i)}var lt=-1,jt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Af(e){return e instanceof jt}function Of(e){return(e.flags&8)!==0}function Ff(e){return(e.flags&16)!==0}function Eu(e){return e!==lt}function Gn(e){return e&32767}function Rf(e){return e>>16}function zn(e,t){let n=Rf(e),r=t;for(;n>0;)r=r[Ht],n--;return r}var so=!0;function Wn(e){let t=so;return so=e,t}var Pf=256,Cu=Pf-1,bu=5,kf=0,ce={};function Lf(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Tt)&&(r=n[Tt]),r==null&&(r=n[Tt]=kf++);let o=r&Cu,i=1<>bu)]|=i}function Mu(e,t){let n=_u(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Vr(r.data,e),Vr(t,null),Vr(r.blueprint,null));let o=mi(e,t),i=e.injectorIndex;if(Eu(o)){let s=Gn(o),a=zn(o,t),u=a[I].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Vr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _u(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function mi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Au(o),r===null)return lt;if(n++,o=o[Ht],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return lt}function jf(e,t,n){Lf(e,t,n)}function Vf(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&h.type===n)return p}if(o){let p=s[u];if(p&&Ge(p)&&p.type===n)return u}return null}function ht(e,t,n,r){let o=e[n],i=t.data;if(Af(o)){let s=o;s.resolving&&ad(sd(i[n]));let a=Wn(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?$(s.injectImpl):null,l=hu(e,r,w.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Sf(n,i[n],t)}finally{c!==null&&$(c),Wn(a),s.resolving=!1,Du()}}return o}function $f(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Tt)?e[Tt]:void 0;return typeof t=="number"?t>=0?t&Cu:Hf:t}function Us(e,t,n){let r=1<>bu)]&r)}function Gs(e,t){return!(e&w.Self)&&!(e&w.Host&&t)}var Ve=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Su(this._tNode,this._lView,t,ir(r),n)}};function Hf(){return new Ve(q(),_())}function qC(e){return Bt(()=>{let t=e.prototype.constructor,n=t[Ln]||ao(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ln]||ao(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ao(e){return Ia(e)?()=>{let t=ao(Q(e));return t&&t()}:Be(e)}function Uf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=Nu(i,s,n,r|w.Self,ce);if(a!==ce)return a;let u=i.parent;if(!u){let c=s[Ya];if(c){let l=c.get(n,ce,r);if(l!==ce)return l}u=Au(s),s=s[Ht]}i=u}return o}function Au(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[W]:null}function Gf(e){return Vf(q(),e)}function zs(e,t=null,n=null,r){let o=Ou(e,t,n,r);return o.resolveInjectorInitializers(),o}function Ou(e,t=null,n=null,r,o=new Set){let i=[n||H,Hd(e)];return r=r||(typeof e=="object"?void 0:U(e)),new Ot(i,t||oi(),r||null,o)}var zt=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return zs({name:""},o,r,"");{let i=r.name??"";return zs({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=St,t.NULL=new $n,t.\u0275prov=A({token:t,providedIn:"any",factory:()=>L(Sa)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var zf="ngOriginalError";function Br(e){return e[zf]}var We=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Br(t);for(;n&&Br(n);)n=Br(n);return n||null}},Fu=new S("",{providedIn:"root",factory:()=>x(We).handleError.bind(void 0)}),yi=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Wf,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),uo=class extends yi{constructor(t){super(),this._lView=t}onDestroy(t){return iu(this._lView,t),()=>gf(this._lView,t)}};function Wf(){return new uo(_())}function qf(){return Dt(q(),_())}function Dt(e,t){return new vt(K(e,t))}var vt=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=qf;let e=t;return e})();function Yf(e){return e instanceof vt?e.nativeElement:e}var co=class extends se{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,qa()&&(this.destroyRef=x(yi,{optional:!0})??void 0)}emit(t){let n=C(null);try{super.next(t)}finally{C(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=$r(i),o&&(o=$r(o)),s&&(s=$r(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof F&&t.add(a),a}};function $r(e){return t=>{setTimeout(e,void 0,t)}}var Le=co;function Qf(){return this._results[Symbol.iterator]()}var lo=class e{get changes(){return this._changes??=new Le}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Qf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Id(t);(this._changesDetected=!vd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Ru(e){return(e.flags&128)===128}var Pu=new Map,Zf=0;function Kf(){return Zf++}function Jf(e){Pu.set(e[sr],e)}function Xf(e){Pu.delete(e[sr])}var Ws="__ngContext__";function qe(e,t){je(t)?(e[Ws]=t[sr],Jf(t)):e[Ws]=t}function ku(e){return ju(e[Pt])}function Lu(e){return ju(e[ne])}function ju(e){for(;e!==null&&!De(e);)e=e[ne];return e}var fo;function YC(e){fo=e}function ep(){if(fo!==void 0)return fo;if(typeof document<"u")return document;throw new b(210,!1)}var QC=new S("",{providedIn:"root",factory:()=>tp}),tp="ng",np=new S(""),Di=new S("",{providedIn:"platform",factory:()=>"unknown"});var ZC=new S(""),KC=new S("",{providedIn:"root",factory:()=>ep().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rp="h",op="b";var ip=()=>null;function vi(e,t,n=!1){return ip(e,t,n)}var Vu=!1,sp=new S("",{providedIn:"root",factory:()=>Vu});var _n;function ap(){if(_n===void 0&&(_n=null,be.trustedTypes))try{_n=be.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _n}function ur(e){return ap()?.createHTML(e)||e}var xn;function up(){if(xn===void 0&&(xn=null,be.trustedTypes))try{xn=be.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xn}function qs(e){return up()?.createScriptURL(e)||e}var me=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ma})`}},po=class extends me{getTypeName(){return"HTML"}},ho=class extends me{getTypeName(){return"Style"}},go=class extends me{getTypeName(){return"Script"}},mo=class extends me{getTypeName(){return"URL"}},yo=class extends me{getTypeName(){return"ResourceURL"}};function Wt(e){return e instanceof me?e.changingThisBreaksApplicationSecurity:e}function Bu(e,t){let n=cp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ma})`)}return n===t}function cp(e){return e instanceof me&&e.getTypeName()||null}function JC(e){return new po(e)}function XC(e){return new ho(e)}function eb(e){return new go(e)}function tb(e){return new mo(e)}function nb(e){return new yo(e)}function lp(e){let t=new vo(e);return dp()?new Do(t):t}var Do=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(ur(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},vo=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ur(t),n}};function dp(){try{return!!new window.DOMParser().parseFromString(ur(""),"text/html")}catch{return!1}}var fp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $u(e){return e=String(e),e.match(fp)?e:"unsafe:"+e}function ve(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function qt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Hu=ve("area,br,col,hr,img,wbr"),Uu=ve("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gu=ve("rp,rt"),pp=qt(Gu,Uu),hp=qt(Uu,ve("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),gp=qt(Gu,ve("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ys=qt(Hu,hp,gp,pp),zu=ve("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),mp=ve("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),yp=ve("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Dp=qt(zu,mp,yp),vp=ve("script,style,template"),Io=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Ep(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=wp(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Qs(t).toLowerCase();if(!Ys.hasOwnProperty(n))return this.sanitizedSomething=!0,!vp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Qs(t).toLowerCase();Ys.hasOwnProperty(n)&&!Hu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Zs(t))}};function Ip(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function wp(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Wu(t);return t}function Ep(e){let t=e.firstChild;if(t&&Ip(e,t))throw Wu(t);return t}function Qs(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Wu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Cp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bp=/([^\#-~ |!])/g;function Zs(e){return e.replace(/&/g,"&").replace(Cp,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(bp,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Tn;function rb(e,t){let n=null;try{Tn=Tn||lp(e);let r=t?String(t):"";n=Tn.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Tn.getInertBodyElement(r)}while(r!==i);let a=new Io().sanitizeChildren(Ks(n)||n);return ur(a)}finally{if(n){let r=Ks(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ks(e){return"content"in e&&Mp(e)?e.content:null}function Mp(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ii=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ii||{});function _p(e){let t=qu();return t?t.sanitize(Ii.URL,e)||"":Bu(e,"URL")?Wt(e):$u(or(e))}function xp(e){let t=qu();if(t)return qs(t.sanitize(Ii.RESOURCE_URL,e)||"");if(Bu(e,"ResourceURL"))return qs(Wt(e));throw new b(904,!1)}function Tp(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?xp:_p}function ob(e,t,n){return Tp(t,n)(e)}function qu(){let e=_();return e&&e[re].sanitizer}function Yu(e){return e instanceof Function?e():e}function Sp(e){return(e??x(zt)).get(Di)==="browser"}var qn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qn||{}),Np;function wi(e,t){return Np(e,t)}function at(e,t,n,r,o){if(r!=null){let i,s=!1;De(r)?i=r:je(r)&&(s=!0,r=r[ye]);let a=le(r);e===0&&n!==null?o==null?ec(t,n,a):Yn(t,n,a,o||null,!0):e===1&&n!==null?Yn(t,n,a,o||null,!0):e===2?zp(t,a,s):e===3&&t.destroyNode(a),i!=null&&qp(t,e,i,n,o)}}function Ap(e,t){return e.createText(t)}function Op(e,t,n){e.setValue(t,n)}function Qu(e,t,n){return e.createElement(t,n)}function Fp(e,t){Zu(e,t),t[ye]=null,t[W]=null}function Rp(e,t,n,r,o,i){r[ye]=o,r[W]=t,cr(e,r,n,1,o,i)}function Zu(e,t){t[re].changeDetectionScheduler?.notify(1),cr(e,t,t[R],2,null,null)}function Pp(e){let t=e[Pt];if(!t)return Hr(e[I],e);for(;t;){let n=null;if(je(t))n=t[Pt];else{let r=t[z];r&&(n=r)}if(!n){for(;t&&!t[ne]&&t!==e;)je(t)&&Hr(t[I],t),t=t[k];t===null&&(t=e),je(t)&&Hr(t[I],t),n=t&&t[ne]}t=n}}function kp(e,t,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][ne]=t),r0&&(e[n-1][ne]=r[ne]);let i=Vn(e,z+t);Fp(r[I],r);let s=i[ge];s!==null&&s.detachView(i[I]),r[k]=null,r[ne]=null,r[g]&=-129}return r}function Ju(e,t){if(!(t[g]&256)){let n=t[R];n.destroyNode&&cr(e,t,n,3,null,null),Pp(t)}}function Hr(e,t){if(t[g]&256)return;let n=C(null);try{t[g]&=-129,t[g]|=256,t[He]&&ns(t[He]),Vp(e,t),jp(e,t),t[I].type===1&&t[R].destroy();let r=t[Ut];if(r!==null&&De(t[k])){r!==t[k]&&Ku(r,t);let o=t[ge];o!==null&&o.detachView(e)}Xf(t)}finally{C(n)}}function jp(e,t){let n=e.cleanup,r=t[Rt];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Rt]=null);let o=t[Me];if(o!==null){t[Me]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Nt.None||i===Nt.Emulated)return null}return K(r,n)}}function Yn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ec(e,t,n){e.appendChild(t,n)}function Js(e,t,n,r,o){r!==null?Yn(e,t,n,r,o):ec(e,t,n)}function $p(e,t,n,r){e.removeChild(t,n,r)}function Ei(e,t){return e.parentNode(t)}function Hp(e,t){return e.nextSibling(t)}function tc(e,t,n){return Gp(e,t,n)}function Up(e,t,n){return e.type&40?K(e,n):null}var Gp=Up,Xs;function Ci(e,t,n,r){let o=Xu(e,r,t),i=t[R],s=r.parent||t[W],a=tc(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uie&&sc(e,t,ie,!1),ue(s?2:0,o),n(r,o)}finally{ze(i),ue(s?3:1,o)}}function lc(e,t,n){if(Za(t)){let r=C(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function nh(e,t,n,r){let o=vc(t);o.push(n),e.firstCreatePass&&Ic(e).push(r,o.length-1)}function rh(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return au()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ea(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=$e.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?ta(r,n,c,a,u):ta(r,n,c,a)}return r}function ta(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function oh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function lh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;ar(n)&&yh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Mu(n,t),qe(r,t);let s=n.initialInputs;for(let a=o;a{kt(e.lView)},consumerOnSignalRead(){this.lView[He]=this}}),Cc=100;function bc(e,t=!0,n=0){let r=e[re],o=r.rendererFactory,i=!1;i||o.begin?.();try{Fh(e,n)}catch(s){throw t&&wc(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Fh(e,t){Mo(e,t);let n=0;for(;ui(e);){if(n===Cc)throw new b(103,!1);n++,Mo(e,1)}}function Rh(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1;!i&&t[re].inlineEffectRunner?.flush(),di(t);let s=null,a=null;!i&&Ph(e)&&(a=Sh(t),s=es(a));try{ou(t),Ef(e.bindingStartIndex),n!==null&&cc(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&On(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Fn(t,d,0,null),jr(t,0)}if(kh(t),Mc(t,0),e.contentQueries!==null&&Dc(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&On(t,d)}else{let d=e.contentHooks;d!==null&&Fn(t,d,1),jr(t,1)}Zp(e,t);let c=e.components;c!==null&&xc(t,c,0);let l=e.viewQuery;if(l!==null&&bo(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&On(t,d)}else{let d=e.viewHooks;d!==null&&Fn(t,d,2),jr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Lr]){for(let d of t[Lr])d();t[Lr]=null}i||(t[g]&=-73)}catch(u){throw kt(t),u}finally{a!==null&&(ts(a,s),Ah(a)),fi()}}function Ph(e){return e.type!==2}function Mc(e,t){for(let n=ku(e);n!==null;n=Lu(n))for(let r=z;r-1&&(wo(t,r),Vn(n,r))}this._attachedToViewContainer=!1}Ju(this._lView[I],this._lView)}onDestroy(t){iu(this._lView,t)}markForCheck(){Ti(this._cdRefInjectingView||this._lView)}detach(){this._lView[g]&=-129}reattach(){oo(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,bc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Zu(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t,oo(this._lView)}},gt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Bh;let e=t;return e})(),jh=gt,Vh=class extends jh{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=_h(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ye(o)}};function Bh(){return Si(q(),_())}function Si(e,t){return e.type&4?new Vh(t,e,Dt(e,t)):null}var ub=new RegExp(`^(\\d+)*(${op}|${rp})*(.*)`);var $h=()=>null;function ra(e,t){return $h(e,t)}var Zn=class{},_o=class{},Kn=class{};function Hh(e){let t=Error(`No component factory found for ${U(e)}.`);return t[Uh]=e,t}var Uh="ngComponent";var xo=class{resolveComponentFactory(t){throw Hh(t)}},fr=(()=>{let t=class t{};t.NULL=new xo;let e=t;return e})(),To=class{},Tc=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Gh();let e=t;return e})();function Gh(){let e=_(),t=q(),n=Se(t.index,e);return(je(n)?n:e)[R]}var zh=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Ur={};var oa=new Set;function Ni(e){oa.has(e)||(oa.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ia(...e){}function Wh(){let e=typeof be.requestAnimationFrame=="function",t=be[e?"requestAnimationFrame":"setTimeout"],n=be[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var Z=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Le(!1),this.onMicrotaskEmpty=new Le(!1),this.onStable=new Le(!1),this.onError=new Le(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Wh().nativeRequestAnimationFrame,Qh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,qh,ia,ia);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},qh={};function Ai(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yh(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(be,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,So(e),e.isCheckStableRunning=!0,Ai(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),So(e))}function Qh(e){let t=()=>{Yh(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Zh(a))return n.invokeTask(o,i,s,a);try{return sa(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),aa(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return sa(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),aa(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,So(e),Ai(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function So(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function sa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function aa(e){e._nesting--,Ai(e)}function Zh(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var ut=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ut||{}),Kh={destroy(){}};function Jh(e,t){!t&&ef(Jh);let n=t?.injector??x(zt);if(!Sp(n))return Kh;Ni("NgAfterNextRender");let r=n.get(Oi),o=r.handler??=new Ao,i=t?.phase??ut.MixedReadWrite,s=()=>{o.unregister(u),a()},a=n.get(yi).onDestroy(s),u=Xd(n,()=>new No(i,()=>{s(),e()}));return o.register(u),{destroy:s}}var No=class{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=x(Z),this.errorHandler=x(We,{optional:!0}),x(Zn,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}},Ao=class{constructor(){this.executingCallbacks=!1,this.buckets={[ut.EarlyRead]:new Set,[ut.Write]:new Set,[ut.MixedReadWrite]:new Set,[ut.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let n of t)n.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},Oi=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Oo(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&oc(e,n,i.join(" "))}}function ig(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=ag;let e=t;return e})();function ag(){let e=q();return Nc(e,_())}var ug=Qt,Sc=class extends ug{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new Ve(this._hostTNode,this._hostLView)}get parentInjector(){let t=mi(this._hostTNode,this._hostLView);if(Eu(t)){let n=zn(t,this._hostLView),r=Gn(t),o=n[I].data[r+8];return new Ve(o,n)}else return new Ve(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ca(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-z}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ra(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,na(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!tf(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new mt(_e(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(s?c:this.parentInjector).get(xe,null);v&&(i=v)}let l=_e(u.componentType??{}),d=ra(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,na(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(pf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[k],c=new Sc(u,u[W],u[k]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return xh(s,o,i,r),t.attachToViewContainerRef(),Ta(Gr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ca(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=wo(this._lContainer,n);r&&(Vn(Gr(this._lContainer),n),Ju(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=wo(this._lContainer,n);return r&&Vn(Gr(this._lContainer),n)!=null?new Ye(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ca(e){return e[Hn]}function Gr(e){return e[Hn]||(e[Hn]=[])}function Nc(e,t){let n,r=t[e.index];return De(r)?n=r:(n=yc(r,t,null,e),t[e.index]=n,dr(t,n)),lg(n,t,e,r),new Sc(n,e,t)}function cg(e,t){let n=e[R],r=n.createComment(""),o=K(t,e),i=Ei(n,o);return Yn(n,i,r,Hp(n,o),!1),r}var lg=pg,dg=()=>!1;function fg(e,t,n){return dg(e,t,n)}function pg(e,t,n,r){if(e[Ue])return;let o;n.type&8?o=le(r):o=cg(t,n),e[Ue]=o}var Po=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ko=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=z;dt.trim())}function Eg(e,t,n){e.queries===null&&(e.queries=new jo),e.queries.track(new Vo(t,n))}function Cg(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Fi(e,t){return e.queries.getByIndex(t)}function bg(e,t){let n=e[I],r=Fi(n,t);return r.crossesNgTemplate?Bo(n,e,t,[]):Ac(n,e,r,t)}function Mg(e){return Object.getPrototypeOf(e.prototype).constructor}function _g(e){let t=Mg(e.type),n=!0,r=[e];for(;t;){let o;if(Ge(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new b(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Sn(e.inputs),s.inputTransforms=Sn(e.inputTransforms),s.declaredInputs=Sn(e.declaredInputs),s.outputs=Sn(e.outputs);let a=o.hostBindings;a&&Ag(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Sg(e,u),c&&Ng(e,c),xg(e,o),Jl(e.outputs,o.outputs),Ge(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=At(o.hostAttrs,n=At(n,o.hostAttrs))}}function Sn(e){return e===dt?{}:e===H?[]:e}function Sg(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Ng(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Ag(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Og(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Te=class{},$o=class{};var Ho=class extends Te{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Jn(this);let o=Ba(t);this._bootstrapComponents=Yu(o.bootstrap),this._r3Injector=Ou(t,n,[{provide:Te,useValue:this},{provide:fr,useValue:this.componentFactoryResolver},...r],U(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Uo=class extends $o{constructor(t){super(),this.moduleType=t}create(t){return new Ho(this.moduleType,t,[])}};var Xn=class extends Te{constructor(t){super(),this.componentFactoryResolver=new Jn(this),this.instance=null;let n=new Ot([...t.providers,{provide:Te,useValue:this},{provide:fr,useValue:this.componentFactoryResolver}],t.parent||oi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Fg(e,t,n=null){return new Xn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Oc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new bt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fc(e){return Pg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Rg(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function Gg(e){return(e&2)==2}function zg(e,t){return e&131071|t<<17}function Go(e){return e|2}function yt(e){return(e&131068)>>2}function zr(e,t){return e&-131069|t<<2}function Wg(e){return(e&1)===1}function zo(e){return e|1}function qg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Qe(s),u=yt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||$t(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let f=Qe(e[a+1]);e[r+1]=Nn(f,a),f!==0&&(e[f+1]=zr(e[f+1],r)),e[a+1]=zg(e[a+1],r)}else e[r+1]=Nn(a,0),a!==0&&(e[a+1]=zr(e[a+1],r)),a=r;else e[r+1]=Nn(u,0),a===0?a=r:e[u+1]=zr(e[u+1],r),u=r;c&&(e[r+1]=Go(e[r+1])),la(e,l,r,!0),la(e,l,r,!1),Yg(t,l,e,r,i),s=Nn(a,u),i?t.classBindings=s:t.styleBindings=s}function Yg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&$t(i,t)>=0&&(n[r+1]=zo(n[r+1]))}function la(e,t,n,r){let o=e[n+1],i=t===null,s=r?Qe(o):yt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Qg(u,t)&&(a=!0,e[s+1]=r?zo(c):Go(c)),s=r?Qe(c):yt(c)}a&&(e[n+1]=r?Go(o):zo(o))}function Qg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$t(e,t)>=0:!1}var te={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Zg(e){return e.substring(te.key,te.keyEnd)}function Kg(e){return Jg(e),Pc(e,kc(e,0,te.textEnd))}function Pc(e,t){let n=te.textEnd;return n===t?-1:(t=te.keyEnd=Xg(e,te.key=t,n),kc(e,t,n))}function Jg(e){te.key=0,te.keyEnd=0,te.value=0,te.valueEnd=0,te.textEnd=e.length}function kc(e,t,n){for(;t32;)t++;return t}function em(e,t,n){let r=_(),o=ci();if(It(r,o,t)){let i=G(),s=vu();sh(i,s,r,e,t,r[R],n,!1)}return em}function Wo(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";_i(e,n,i[s],s,r)}function tm(e,t){return rm(e,t,null,!0),tm}function lb(e){om(lm,nm,e,!0)}function nm(e,t){for(let n=Kg(t);n>=0;n=Pc(t,n))ti(e,Zg(t),!0)}function rm(e,t,n,r){let o=_(),i=G(),s=fu(2);if(i.firstUpdatePass&&jc(i,e,s,r),t!==de&&It(o,s,t)){let a=i.data[Ze()];Vc(i,a,o,o[R],e,o[s+1]=fm(t,n),r,s)}}function om(e,t,n,r){let o=G(),i=fu(2);o.firstUpdatePass&&jc(o,null,i,r);let s=_();if(n!==de&&It(s,i,n)){let a=o.data[Ze()];if(Bc(a,r)&&!Lc(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Yr(u,n||"")),Wo(o,a,s,n,r)}else dm(o,a,s,s[R],s[i+1],s[i+1]=cm(e,t,n),r,i)}}function Lc(e,t){return t>=e.expandoStartIndex}function jc(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ze()],s=Lc(e,n);Bc(i,r)&&t===null&&!s&&(t=!1),t=im(o,i,t,r),qg(o,i,t,n,s,r)}}function im(e,t,n,r){let o=_f(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Wr(null,e,t,n,r),n=Vt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Wr(o,e,t,n,r),i===null){let u=sm(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Wr(null,e,t,u[1],r),u=Vt(u,t.attrs,r),am(e,t,r,u))}else i=um(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function sm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yt(r)!==0)return e[Qe(r)]}function am(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Qe(o)]=r}function um(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=n[o+1];f===de&&(f=d?H:void 0);let p=d?Pr(f,r):l===r?f:void 0;if(c&&!er(p)&&(p=Pr(u,r)),er(p)&&(a=p,s))return a;let h=e[o+1];o=s?Qe(h):yt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Pr(u,r))}return a}function er(e){return e!==void 0}function fm(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=U(Wt(e)))),e}function Bc(e,t){return(e.flags&(t?8:16))!==0}function pm(e,t,n,r,o,i){let s=t.consts,a=Un(s,o),u=Yt(t,e,2,r,a);return hc(t,n,u,Un(s,i)),u.attrs!==null&&Oo(u,u.attrs,!1),u.mergedAttrs!==null&&Oo(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function $c(e,t,n,r){let o=_(),i=G(),s=ie+e,a=o[R],u=i.firstCreatePass?pm(s,i,o,t,n,r):i.data[s],c=gm(i,o,u,a,t,e);o[s]=c;let l=si(u);return Gt(u,!0),ic(a,c,u),!Lg(u)&&pi()&&Ci(i,o,c,u),mf()===0&&qe(c,o),yf(),l&&(dc(i,o,u),lc(i,u,o)),r!==null&&fc(o,u),$c}function Hc(){let e=q();cu()?lu():(e=e.parent,Gt(e,!1));let t=e;vf(t)&&If(),Df();let n=G();return n.firstCreatePass&&(gi(n,e),Za(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Of(t)&&Wo(n,t,_(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ff(t)&&Wo(n,t,_(),t.stylesWithoutHost,!1),Hc}function hm(e,t,n,r){return $c(e,t,n,r),Hc(),hm}var gm=(e,t,n,r,o,i)=>(hi(!0),Qu(r,o,Tf()));var tr="en-US";var mm=tr;function ym(e){typeof e=="string"&&(mm=e.toLowerCase().replace(/_/g,"-"))}function Dm(e,t,n,r){let o=_(),i=G(),s=q();return Im(i,o,o[R],s,e,t,r),Dm}function vm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Im(e,t,n,r,o,i,s){let a=si(r),c=e.firstCreatePass&&Ic(e),l=t[he],d=vc(t),f=!0;if(r.type&3||s){let v=K(r,t),P=s?s(v):v,O=d.length,Y=s?fe=>s(le(fe[r.index])):r.index,V=null;if(!s&&a&&(V=vm(e,t,o,r.index)),V!==null){let fe=V.__ngLastListenerFn__||V;fe.__ngNextListenerFn__=i,V.__ngLastListenerFn__=i,f=!1}else{i=pa(r,t,l,i,!1);let fe=n.listen(P,o,i);d.push(i,fe),c&&c.push(o,Y,O,O+1)}}else i=pa(r,t,l,i,!1);let p=r.outputs,h;if(f&&p!==null&&(h=p[o])){let v=h.length;if(v)for(let P=0;P-1?Se(e.index,t):t;Ti(a);let u=fa(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)u=fa(t,n,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function wm(e,t){let n=null,r=Nd(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function mb(e,t=""){let n=_(),r=G(),o=e+ie,i=r.firstCreatePass?Yt(r,o,1,t,null):r.data[o],s=Cm(r,n,i,t,e);n[o]=s,pi()&&Ci(r,n,s,i),Gt(i,!1)}var Cm=(e,t,n,r,o)=>(hi(!0),Ap(t[R],r));function bm(e){return Uc("",e,""),bm}function Uc(e,t,n){let r=_(),o=Ug(r,e,t,n);return o!==de&&Eh(r,Ze(),o),Uc}var Mm=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Ua(!1,r.type),i=o.length>0?Fg([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=A({token:t,providedIn:"environment",factory:()=>new t(L(xe))});let e=t;return e})();function yb(e){Ni("NgStandalone"),e.getStandaloneInjector=t=>t.get(Mm).getOrCreateStandaloneInjector(e)}function Db(e,t,n){let r=du()+e,o=_();return o[r]===de?Rc(o,r,n?t.call(n):t()):kg(o,r)}function _m(e,t){let n=e[t];return n===de?void 0:n}function xm(e,t,n,r,o,i){let s=t+n;return It(e,s,o)?Rc(e,s+1,i?r.call(i,o):r(o)):_m(e,s+1)}function vb(e,t){let n=G(),r,o=e+ie;n.firstCreatePass?(r=Tm(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Be(r.type,!0)),s,a=$(Ke);try{let u=Wn(!1),c=i();return Wn(u),Em(n,_(),o,c),c}finally{$(a)}}function Tm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ib(e,t,n){let r=e+ie,o=_(),i=df(o,r);return Sm(o,r)?xm(o,du(),t,i.transform,n,i):i.transform(n)}function Sm(e,t){return e[I].data[t].pure}var wb=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var Nm=new S("");function pr(e){return!!e&&typeof e.then=="function"}function Ri(e){return!!e&&typeof e.subscribe=="function"}var Am=new S(""),Gc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=x(Am,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(pr(s))r.push(s);else if(Ri(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Om=new S("");function Fm(){rs(()=>{throw new b(600,!1)})}function Rm(e){return e.isBoundToModule}function Pm(e,t,n){try{let r=n();return pr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var zc=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=x(Fu),this.afterRenderEffectManager=x(Oi),this.externalTestViews=new Set,this.beforeRender=new se,this.afterTick=new se,this.componentTypes=[],this.components=[],this.isStable=x(Oc).hasPendingTasks.pipe(ae(r=>!r)),this._injector=x(xe)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Kn;if(!this._injector.get(Gc).done){let p=!i&&Vd(r),h=!1;throw new b(405,h)}let a;i?a=r:a=this._injector.get(fr).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=Rm(a)?void 0:this._injector.get(Te),c=o||a.selector,l=a.create(zt.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Nm,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),qr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new b(101,!1);let o=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,C(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===Cc)throw new b(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)km(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>qo(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>qo(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;qr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Om,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>qr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new b(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function qr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function km(e,t,n){!t&&!qo(e)||Lm(e,n,t)}function qo(e){return ui(e)}function Lm(e,t,n){let r;n?(r=0,e[g]|=1024):e[g]&64?r=0:r=1,bc(e,t,r)}var Yo=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Eb=(()=>{let t=class t{compileModuleSync(r){return new Uo(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Ba(r),s=Yu(i.declarations).reduce((a,u)=>{let c=_e(u);return c&&a.push(new mt(c)),a},[]);return new Yo(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var jm=(()=>{let t=class t{constructor(){this.zone=x(Z),this.applicationRef=x(zc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Vm(e){return[{provide:Z,useFactory:e},{provide:Bn,multi:!0,useFactory:()=>{let t=x(jm,{optional:!0});return()=>t.initialize()}},{provide:Bn,multi:!0,useFactory:()=>{let t=x(Um);return()=>{t.initialize()}}},{provide:Fu,useFactory:Bm}]}function Bm(){let e=x(Z),t=x(We);return n=>e.runOutsideAngular(()=>t.handleError(n))}function $m(e){let t=Vm(()=>new Z(Hm(e)));return $d([[],t])}function Hm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Um=(()=>{let t=class t{constructor(){this.subscription=new F,this.initialized=!1,this.zone=x(Z),this.pendingTasks=x(Oc)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Gm(){return typeof $localize<"u"&&$localize.locale||tr}var Pi=new S("",{providedIn:"root",factory:()=>x(Pi,w.Optional|w.SkipSelf)||Gm()});var Wc=new S("");var kn=null;function zm(e=[],t){return zt.create({name:t,providers:[{provide:Wa,useValue:"platform"},{provide:Wc,useValue:new Set([()=>kn=null])},...e]})}function Wm(e=[]){if(kn)return kn;let t=zm(e);return kn=t,Fm(),qm(t),t}function qm(e){e.get(np,null)?.forEach(n=>n())}var ki=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ym;let e=t;return e})();function Ym(e){return Qm(q(),_(),(e&16)===16)}function Qm(e,t,n){if(ar(e)&&!n){let r=Se(e.index,t);return new Ye(r,r)}else if(e.type&47){let r=t[oe];return new Ye(r,t)}return null}var Qo=class{constructor(){}supports(t){return Fc(t)}create(t){return new Zo(t)}},Zm=(e,t)=>t,Zo=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Zm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Ko(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new nr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new nr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Ko=class{constructor(t,n){this.item=t,this.trackById=n,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}},Jo=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},nr=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Jo,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ha(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||ga()),deps:[[t,new Dd,new yd]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new b(901,!1)}};t.\u0275prov=A({token:t,providedIn:"root",factory:ga});let e=t;return e})();function Cb(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Wm(r),i=[$m(),...n||[]],a=new Xn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(Z);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(We,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:p=>{c.handleError(p)}})});let d=()=>a.destroy(),f=o.get(Wc);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),Pm(c,u,()=>{let p=a.get(Gc);return p.runInitializers(),p.donePromise.then(()=>{let h=a.get(Pi,tr);ym(h||tr);let v=a.get(zc);return t!==void 0&&v.bootstrap(t),v})})})}catch(t){return Promise.reject(t)}}function Km(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function ji(e){let t=C(null);try{return e()}finally{C(t)}}function bb(e){let t=_e(e);if(!t)return null;let n=new mt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Jc=null;function Vi(){return Jc}function Qb(e){Jc??=e}var qc=class{};var zi=new S(""),Wi=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>x(Xm),providedIn:"platform"});let e=t;return e})(),Zb=new S(""),Xm=(()=>{let t=class t extends Wi{constructor(){super(),this._doc=x(zi),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vi().getBaseHref(this._doc)}onPopState(r){let o=Vi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=Vi().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function qi(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Yc(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ie(e){return e&&e[0]!=="?"?"?"+e:e}var hr=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=A({token:t,factory:()=>x(ey),providedIn:"root"});let e=t;return e})(),Xc=new S(""),ey=(()=>{let t=class t extends hr{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??x(zi).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return qi(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ie(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ie(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ie(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(L(Wi),L(Xc,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Kb=(()=>{let t=class t extends hr{constructor(r,o){super(),this._platformLocation=r,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}path(r=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(r){let o=qi(this._baseHref,r);return o.length>0?"#"+o:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ie(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ie(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(L(Wi),L(Xc,8))},t.\u0275prov=A({token:t,factory:t.\u0275fac});let e=t;return e})(),ty=(()=>{let t=class t{constructor(r){this._subject=new Le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=oy(Yc(Qc(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ie(o))}normalize(r){return t.stripTrailingSlash(ry(this._basePath,Qc(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ie(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ie(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ie,t.joinWithSlash=qi,t.stripTrailingSlash=Yc,t.\u0275fac=function(o){return new(o||t)(L(hr))},t.\u0275prov=A({token:t,factory:()=>ny(),providedIn:"root"});let e=t;return e})();function ny(){return new ty(L(hr))}function ry(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Qc(e){return e.replace(/\/index.html$/,"")}function oy(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Jb(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Bi=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Xb=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Bi(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Zc(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Zc(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(Ke(Qt),Ke(gt),Ke(Li))},t.\u0275dir=ka({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Zc(e,t){e.context.$implicit=t.item}function iy(e,t){return new b(2100,!1)}var $i=class{createSubscription(t,n){return ji(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){ji(()=>t.unsubscribe())}},Hi=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},sy=new Hi,ay=new $i,e0=(()=>{let t=class t{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,o=>this._updateLatestValue(r,o))}_selectStrategy(r){if(pr(r))return sy;if(Ri(r))return ay;throw iy(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,o){r===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(Ke(ki,16))},t.\u0275pipe=La({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var t0=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Pa({type:t}),t.\u0275inj=wa({});let e=t;return e})(),uy="browser",cy="server";function ly(e){return e===uy}function n0(e){return e===cy}var r0=(()=>{let t=class t{};t.\u0275prov=A({token:t,providedIn:"root",factory:()=>ly(x(Di))?new Ui(x(zi),window):new Gi});let e=t;return e})(),Ui=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=dy(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function dy(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Gi=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Kc=class{};export{wt as a,Et as b,fy as c,F as d,fl as e,M as f,Tr as g,Sr as h,se as i,bt as j,_t as k,Ee as l,El as m,Cl as n,bl as o,Re as p,ae as q,Ol as r,Pe as s,Ar as t,Cn as u,Rl as v,Pl as w,ke as x,Ts as y,kl as z,Ll as A,xt as B,Or as C,jl as D,Vl as E,Hl as F,Ns as G,Fr as H,Ul as I,Gl as J,zl as K,Wl as L,ql as M,Yl as N,Ql as O,Zl as P,b as Q,A as R,wa as S,zC as T,S as U,w as V,L as W,x as X,yd as Y,Dd as Z,Nt as _,$e as $,WC as aa,Pa as ba,ka as ca,$d as da,Wa as ea,xe as fa,Xd as ga,Ja as ha,qC as ia,Gf as ja,zt as ka,We as la,vt as ma,Le as na,YC as oa,QC as pa,np as qa,Di as ra,ZC as sa,KC as ta,Wt as ua,Bu as va,JC as wa,XC as xa,eb as ya,tb as za,nb as Aa,$u as Ba,rb as Ca,Ii as Da,ob as Ea,qn as Fa,ib as Ga,Ke as Ha,sb as Ia,Zn as Ja,To as Ka,Tc as La,Ni as Ma,Z as Na,Jh as Oa,Qt as Pa,_g as Qa,Og as Ra,$o as Sa,Fg as Ta,Oc as Ua,Vg as Va,Hg as Wa,em as Xa,tm as Ya,lb as Za,$c as _a,Hc as $a,hm as ab,Dm as bb,db as cb,fb as db,pb as eb,hb as fb,gb,mb as hb,bm as ib,Uc as jb,yb as kb,Db as lb,vb as mb,Ib as nb,wb as ob,pr as pb,Am as qb,Om as rb,zc as sb,Eb as tb,ki as ub,Cb as vb,Km as wb,bb as xb,Vi as yb,Qb as zb,qc as Ab,zi as Bb,Zb as Cb,hr as Db,ey as Eb,Kb as Fb,ty as Gb,Jb as Hb,Xb as Ib,e0 as Jb,t0 as Kb,uy as Lb,ly as Mb,n0 as Nb,r0 as Ob,Kc as Pb}; diff --git a/chunk-V5MKIVOR.js b/chunk-G4FRQYPG.js similarity index 99% rename from chunk-V5MKIVOR.js rename to chunk-G4FRQYPG.js index d71bad4..93d1b83 100644 --- a/chunk-V5MKIVOR.js +++ b/chunk-G4FRQYPG.js @@ -1 +1 @@ -import{P as E,Q as gt,a as ue,c as pt}from"./chunk-GMEIUZRC.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),B="*";function yt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Me(n){return{type:_.Style,styles:n,offset:null}}var U=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ce="!";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function xt(n){return new E(3003,!1)}function Zt(n){return new E(3004,!1)}function Jt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function os(){return new E(3012,!1)}function as(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Ss(n){return new E(3504,!1)}function Es(n){return new E(3301,!1)}function vs(n,e){return new E(3302,!1)}function Ts(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function Ps(n){return new E(3402,!1)}function As(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(n){switch(n.length){case 0:return new U;case 1:return n[0];default:return new ie(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==o,u=c&&a||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ce:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),a=u,o=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function st(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Ms(n){return n.substring(1,6)=="ebkit"}var Y=null,Et=!1;function Cs(n){Y||(Y=ks()||{},Et=Y.style?"WebkitAppearance"in Y.style:!1);let e=!0;return Y.style&&!Ms(n)&&(e=n in Y.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}function Ai(n){return Ns.has(n)}function ks(){return typeof document<"u"?document.body:null}function Kt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function qt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{let e=class e{validateStyleProperty(s){return Cs(s)}matchesElement(s,i){return!1}containsElement(s,i){return Kt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return qt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],h){return new U(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new zt;var vt=ut,Ie=class{},Ke=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Fs=1e3,Bt="{{",Rs="}}",nt="ng-enter",ye="ng-leave",fe="ng-trigger",_e=".ng-trigger",Tt="ng-animating",qe=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Fs;default:return n}}function Se(n,e,t){return n.hasOwnProperty("duration")?n:Os(n,e,t)}function Os(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ze(parseFloat(l),a[4]));let h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(Ht()),a=!0),r<0&&(e.push(Yt()),a=!0),a&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:o}}function Ls(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ne(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Rs}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(Be,(r,o)=>{let a=e[o];return a==null&&(t.push(xt(o)),a=""),a.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function rt(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function Ni(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qs(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,ot(n,a)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Zt(e.type)}}function ot(n,e){return window.getComputedStyle(n)[e]}var Bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Jt(e,s))}return o+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],o=s[3];e.push(bt(i,o));let a=i==Ee&&o==Ee;r[0]=="<"&&!a&&e.push(bt(o,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var de=new Set(["true","1"]),me=new Set(["false","0"]);function bt(n,e){let t=de.has(n)||me.has(n),s=de.has(e)||me.has(e);return(i,r)=>{let o=n==Ee||n==i,a=e==Ee||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?de.has(n):me.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?de.has(e):me.has(e)),o&&a}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function at(n,e,t,s){return new $e(n).build(e,t,s)}var Pt="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),R(this,ne(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pt,e.collectedStyles=new Map,e.collectedStyles.set(Pt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(ts())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,ne(e.animation),t),i=Qs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:X(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:X(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:X(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let h={};s.easing&&(h.easing=s.easing),o=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===B?s.push(a):t.errors.push(is(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,o=[],a=!1,l=!1,h=0,c=e.steps.map(b=>{let P=this._makeStyleAst(b,t),M=P.offset!=null?P.offset:Gs(P.styles),N=0;return M!=null&&(r++,N=P.offset=M),l=l||N<0||N>1,a=a||N0&&r{let M=S>0?P==y?1:S*P:o[P],N=M*T;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=M,s.styles.push(b)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,ne(e.animation),t),options:X(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:X(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:X(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:X(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Se(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,ne(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,_e).replace(/@\w+/g,t=>_e+"-"+t.slice(1)).replace(/:animating/g,qe),[n,e]}function Ws(n){return n?ue({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Se(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Se(t,e);return ke(i.duration,i.delay,i.easing)}function X(n){return n?(n=ue({},n),n.params&&(n.params=Ws(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Zs=":leave",Js=new RegExp(Zs,"g");function ht(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,o,a,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,o,a,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let S=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),R(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:$(oe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?$(s.duration):null,a=s.delay!=null?$(s.delay):null;return o!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);let o=$(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>R(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return Se(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;a.forwardTime(h*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),R(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},ve={},je=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&a.length==0&&o.push(us(t)),a}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=ei(e,this._globalTimelineStyles);for(let[a,l]of o){let h=oe(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??B),this._updateStyle(a,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let h=new Map([...this._backFill,...a]);h.forEach((c,u)=>{c===ce?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return lt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",At(a)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let S=new Map(e[u]),y=S.get("offset"),d=t+y*s;S.set("offset",At(d/o)),r.push(S)}s=o,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function At(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,o]of i)t.set(r,o)}),t}function Nt(n,e,t,s,i,r,o,a,l,h,c,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:S}}var Fe={},we=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,c){let u=[],S=this.ast.options&&this.ast.options.params||Fe,y=a&&a.params||Fe,d=this.buildStyles(s,y,u),g=l&&l.params||Fe,T=this.buildStyles(i,g,u),b=new Set,P=new Map,M=new Map,N=i==="void",Z={params:Vt(g,S),delay:this.ast.options?.delay},q=c?[]:ht(e,t,this.ast.animation,r,o,d,T,Z,h,u),C=0;return q.forEach(k=>{C=Math.max(k.duration+k.delay,C)}),u.length?Nt(t,this._triggerName,s,i,N,d,T,[],[],P,M,C,u):(q.forEach(k=>{let W=k.element,J=O(P,W,new Set);k.preStyleProps.forEach(G=>J.add(G));let ct=O(M,W,new Set);k.postStyleProps.forEach(G=>ct.add(G)),W!==t&&b.add(W)}),Nt(t,this._triggerName,s,i,N,d,T,q,[...b.values()],P,M,C))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=ue({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new we(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new we(n,r,e)}function Dt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ht(this._driver,t,r,nt,ye,new Map,new Map,s,ni,i),o.forEach(c=>{let u=O(a,c.element,new Map);c.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(_s()),o=[]),i.length)throw Ss(i);a.forEach((c,u)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=o.map(c=>{let u=a.get(c.element);return this._buildPlayer(c,new Map,u)}),h=j(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Mt="ng-animate-queued",ri=".ng-animate-queued",Re="ng-animate-disabled",oi=".ng-animate-disabled",ai="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},K="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:o}=r,a=pt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},re="void",Oe=new ae(re),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw vs(s,t);if(s==null||s.length==0)throw Ts(t);if(!di(s))throw ws(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(I(e,fe),I(e,fe+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(I(e,fe),I(e,fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=Oe),!(h.value===re)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],T=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{x(e,T),Q(e,b)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:o,isFallbackTransition:d}),d||(I(e,Mt),o.onStart(()=>{ee(e,Mt)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let b=T.indexOf(o);b>=0&&T.splice(b,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,_e,!0);s.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,re,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,h=s.get(o)||Oe,c=new ae(re),u=new le(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[K];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!pe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(pe(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,_e,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Ps(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(v=>I(v,p))});let T=[],b=new Set,P=new Set;for(let f=0;fb.add(v)):P.add(m))}let M=new Map,N=Ft(S,Array.from(b));N.forEach((f,m)=>{let p=ye+g++;M.set(m,p),f.forEach(v=>I(v,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(v=>ee(v,p))}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(v=>ee(v,p))}),T.forEach(f=>{this.processLeaveNode(f)})});let Z=[],q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let v=p.player,A=p.element;if(Z.push(v),this.collectedEnterElements.length){let D=A[K];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let he=L.get(p.triggerName);he.value=H,L.set(p.triggerName,he)}}v.destroy();return}}let z=!u||!this.driver.containsElement(u,A),F=M.get(A),V=d.get(A),w=this._buildInstruction(p,s,V,F,z);if(w.errors&&w.errors.length){q.push(w);return}if(z){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}let mt=[];w.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||mt.push(D)}),w.timelines=mt,s.append(A,w.timelines);let Gt={instruction:w,player:v,element:A};o.push(Gt),w.queriedElements.forEach(D=>O(a,D,[]).push(v)),w.preStyleProps.forEach((D,H)=>{if(D.size){let L=l.get(H);L||l.set(H,L=new Set),D.forEach((he,De)=>L.add(De))}}),w.postStyleProps.forEach((D,H)=>{let L=h.get(H);L||h.set(H,L=new Set),D.forEach((he,De)=>L.add(De))})});if(q.length){let f=[];q.forEach(m=>{f.push(As(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let C=new Map,k=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(v=>{O(C,m,[]).push(v),v.destroy()})});let W=T.filter(f=>Rt(f,l,h)),J=new Map;kt(J,this.driver,P,h,B).forEach(f=>{Rt(f,l,h)&&W.push(f)});let G=new Map;y.forEach((f,m)=>{kt(G,this.driver,new Set(f),l,ce)}),W.forEach(f=>{let m=J.get(f),p=G.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ne=[],ft=[],dt={};o.forEach(f=>{let{element:m,player:p,instruction:v}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),i.push(p);return}let A=dt;if(k.size>1){let F=m,V=[];for(;F=F.parentNode;){let w=k.get(F);if(w){A=w;break}V.push(F)}V.forEach(w=>k.set(w,A))}let z=this._buildAnimation(p.namespaceId,v,C,r,G,J);if(p.setRealPlayer(z),A===dt)Ne.push(p);else{let F=this.playersByElement.get(A);F&&F.length&&(p.parentPlayer=j(F)),i.push(p)}}else x(m,v.fromStyles),p.onDestroy(()=>Q(m,v.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!z.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return T.length=0,Ne.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ne}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==re;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=O(s,h,[]);this._getPreviousPlayers(h,c,o,a,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let T=g[K];if(T&&T.removedBeforeQueried)return new U(d.duration,d.delay);let b=g!==l,P=pi((s.get(g)||hi).map(C=>C.getRealPlayer())).filter(C=>{let k=C;return k.element?k.element===g:!1}),M=r.get(g),N=o.get(g),Z=It(this._normalizer,d.keyframes,M,N),q=this._buildPlayer(d,Z,P);if(d.subTimeline&&i&&u.add(g),b){let C=new le(e,a,g);C.setRealPlayer(q),h.push(C)}return q});h.forEach(d=>{O(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Tt));let y=j(S);return y.onDestroy(()=>{c.forEach(d=>ee(d,Tt)),Q(l,t.toStyles)}),u.forEach(d=>{O(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new U(e.duration,e.delay)}},le=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new U,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function pe(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function Ct(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Ct(l)));let o=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let S=e.computeStyle(h,u,i);c.set(u,S),(!S||S.length==0)&&(h[K]=ui,o.push(h))}),n.set(h,c)});let a=0;return t.forEach(l=>Ct(l,r[a++])),o}function Ft(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let h=a.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=o(h),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var be=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new xe(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,a=si(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=St(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=St(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Ze=te;function Le(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var Pe=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:ot(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Kt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return qt(e,t,s)}computeStyle(e,t,s){return ot(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let h=new Map,c=o.filter(y=>y instanceof Pe);qs(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Ls(t).map(y=>new Map(y));u=zs(e,u,h);let S=yi(e,u);return new Pe(e,u,l,S)}};function Di(n,e,t){return n==="noop"?new be(e,new zt,new Ke,t):new be(e,new Je,new Qe,t)}var Ot=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ye,o,a,i,r,l);if(l.length)throw ms(l);return h}},ge="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ge&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ge?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ge){let i=Si(e),r=t.slice(1),o="";return r.charAt(0)!=ge&&([r,o]=Ei(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Lt=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new et(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{vt as AnimationDriver,zt as NoopAnimationDriver,Ot as \u0275Animation,be as \u0275AnimationEngine,et as \u0275AnimationRenderer,Lt as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,Ke as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,Pe as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,qs as \u0275allowPreviousPlayerStylesMerge,Ni as \u0275camelCaseToDashCase,Kt as \u0275containsElement,Di as \u0275createEngine,it as \u0275getParentElement,qt as \u0275invokeQuery,Ls as \u0275normalizeKeyframes,Cs as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; +import{Q as E,R as gt,a as ue,c as pt}from"./chunk-F53I2EFS.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),B="*";function yt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Me(n){return{type:_.Style,styles:n,offset:null}}var U=class{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ie=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ce="!";function _t(n){return new E(3e3,!1)}function Ht(){return new E(3100,!1)}function Yt(){return new E(3101,!1)}function Xt(n){return new E(3001,!1)}function xt(n){return new E(3003,!1)}function Zt(n){return new E(3004,!1)}function Jt(n,e){return new E(3005,!1)}function es(){return new E(3006,!1)}function ts(){return new E(3007,!1)}function ss(n,e){return new E(3008,!1)}function is(n){return new E(3002,!1)}function ns(n,e,t,s,i){return new E(3010,!1)}function rs(){return new E(3011,!1)}function os(){return new E(3012,!1)}function as(){return new E(3200,!1)}function ls(){return new E(3202,!1)}function hs(){return new E(3013,!1)}function us(n){return new E(3014,!1)}function cs(n){return new E(3015,!1)}function fs(n){return new E(3016,!1)}function ds(n){return new E(3500,!1)}function ms(n){return new E(3501,!1)}function ps(n,e){return new E(3404,!1)}function gs(n){return new E(3502,!1)}function ys(n){return new E(3503,!1)}function _s(){return new E(3300,!1)}function Ss(n){return new E(3504,!1)}function Es(n){return new E(3301,!1)}function vs(n,e){return new E(3302,!1)}function Ts(n){return new E(3303,!1)}function ws(n,e){return new E(3400,!1)}function bs(n){return new E(3401,!1)}function Ps(n){return new E(3402,!1)}function As(n,e){return new E(3505,!1)}var Ns=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function j(n){switch(n.length){case 0:return new U;case 1:return n[0];default:return new ie(n)}}function It(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let h=l.get("offset"),c=h==o,u=c&&a||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case ce:g=t.get(y);break;case B:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}u.set(d,g)}),c||r.push(u),a=u,o=h}),i.length)throw gs(i);return r}function tt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ce(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ce(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ce(t,"destroy",n)));break}}function Ce(n,e,t){let s=t.totalTime,i=!!t.disabled,r=st(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function st(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function St(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ds=typeof document>"u"?null:document.documentElement;function it(n){let e=n.parentNode||n.host||null;return e===Ds?null:e}function Ms(n){return n.substring(1,6)=="ebkit"}var Y=null,Et=!1;function Cs(n){Y||(Y=ks()||{},Et=Y.style?"WebkitAppearance"in Y.style:!1);let e=!0;return Y.style&&!Ms(n)&&(e=n in Y.style,!e&&Et&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y.style)),e}function Ai(n){return Ns.has(n)}function ks(){return typeof document<"u"?document.body:null}function Kt(n,e){for(;e;){if(e===n)return!0;e=it(e)}return!1}function qt(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var zt=(()=>{let e=class e{validateStyleProperty(s){return Cs(s)}matchesElement(s,i){return!1}containsElement(s,i){return Kt(s,i)}getParentElement(s){return it(s)}query(s,i,r){return qt(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],h){return new U(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac});let n=e;return n})(),ut=class ut{};ut.NOOP=new zt;var vt=ut,Ie=class{},Ke=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},Fs=1e3,Bt="{{",Rs="}}",nt="ng-enter",ye="ng-leave",fe="ng-trigger",_e=".ng-trigger",Tt="ng-animating",qe=".ng-animating";function $(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Fs;default:return n}}function Se(n,e,t){return n.hasOwnProperty("duration")?n:Os(n,e,t)}function Os(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(_t(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ze(parseFloat(l),a[4]));let h=a[5];h&&(o=h)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(Ht()),a=!0),r<0&&(e.push(Yt()),a=!0),a&&e.splice(l,0,_t(n))}return{duration:i,delay:r,easing:o}}function Ls(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function wt(n){return Array.isArray(n)?new Map(...n):new Map(n)}function Q(n,e,t){e.forEach((s,i)=>{let r=rt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function x(n,e){e.forEach((t,s)=>{let i=rt(s);n.style[i]=""})}function ne(n){return Array.isArray(n)?n.length==1?n[0]:yt(n):n}function Is(n,e,t){let s=e.params||{},i=Qt(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Xt(r))})}var Be=new RegExp(`${Bt}\\s*(.+?)\\s*${Rs}`,"g");function Qt(n){let e=[];if(typeof n=="string"){let t;for(;t=Be.exec(n);)e.push(t[1]);Be.lastIndex=0}return e}function oe(n,e,t){let s=`${n}`,i=s.replace(Be,(r,o)=>{let a=e[o];return a==null&&(t.push(xt(o)),a=""),a.toString()});return i==s?n:i}var Ks=/-+([a-z0-9])/g;function rt(n){return n.replace(Ks,(...e)=>e[1].toUpperCase())}function Ni(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qs(n,e){return n===0||e===0}function zs(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,ot(n,a)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Zt(e.type)}}function ot(n,e){return window.getComputedStyle(n)[e]}var Bs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Qe=class extends Ie{normalizePropertyName(e,t){return rt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(Bs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Jt(e,s))}return o+r}};var Ee="*";function Qs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>$s(s,t,e)):t.push(n),t}function $s(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(cs(n)),e;let i=s[1],r=s[2],o=s[3];e.push(bt(i,o));let a=i==Ee&&o==Ee;r[0]=="<"&&!a&&e.push(bt(o,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var de=new Set(["true","1"]),me=new Set(["false","0"]);function bt(n,e){let t=de.has(n)||me.has(n),s=de.has(e)||me.has(e);return(i,r)=>{let o=n==Ee||n==i,a=e==Ee||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?de.has(n):me.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?de.has(e):me.has(e)),o&&a}}var $t=":self",Us=new RegExp(`s*${$t}s*,?`,"g");function at(n,e,t,s){return new $e(n).build(e,t,s)}var Pt="",$e=class{constructor(e){this._driver=e}build(e,t,s){let i=new Ve(t);return this._resetContextStyleTimingState(i),R(this,ne(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pt,e.collectedStyles=new Map,e.collectedStyles.set(Pt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(es()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,h=l.name;h.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=h}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(ts())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qt(l).forEach(h=>{o.hasOwnProperty(h)||r.add(h)})})}),r.size&&t.errors.push(ss(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,ne(e.animation),t),i=Qs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:X(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:X(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:X(e.options)}}visitAnimate(e,t){let s=Hs(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Me({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let h={};s.easing&&(h.easing=s.easing),o=Me(h)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===B?s.push(a):t.errors.push(is(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Bt)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let h=t.collectedStyles.get(t.currentQuerySelector),c=h.get(l),u=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(ns(l,c.startTime,c.endTime,r,i)),u=!1),r=c.startTime),u&&h.set(l,{startTime:r,endTime:i}),t.options&&Is(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rs()),s;let i=1,r=0,o=[],a=!1,l=!1,h=0,c=e.steps.map(b=>{let P=this._makeStyleAst(b,t),M=P.offset!=null?P.offset:Gs(P.styles),N=0;return M!=null&&(r++,N=P.offset=M),l=l||N<0||N>1,a=a||N0&&r{let M=S>0?P==y?1:S*P:o[P],N=M*T;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=M,s.styles.push(b)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,ne(e.animation),t),options:X(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:X(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:X(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=js(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,ne(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:X(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Se(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,ne(e.animation),t),timings:s,options:null}}};function js(n){let e=!!n.split(/\s*,\s*/).find(t=>t==$t);return e&&(n=n.replace(Us,"")),n=n.replace(/@\*/g,_e).replace(/@\w+/g,t=>_e+"-"+t.slice(1)).replace(/:animating/g,qe),[n,e]}function Ws(n){return n?ue({},n):null}var Ve=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Gs(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Hs(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Se(n,e).duration;return ke(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Se(t,e);return ke(i.duration,i.delay,i.easing)}function X(n){return n?(n=ue({},n),n.params&&(n.params=Ws(n.params))):n={},n}function ke(n,e,t){return{duration:n,delay:e,easing:t}}function lt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var se=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ys=1,Xs=":enter",xs=new RegExp(Xs,"g"),Zs=":leave",Js=new RegExp(Zs,"g");function ht(n,e,t,s,i,r=new Map,o=new Map,a,l,h=[]){return new Ue().buildKeyframes(n,e,t,s,i,r,o,a,l,h)}var Ue=class{buildKeyframes(e,t,s,i,r,o,a,l,h,c=[]){h=h||new se;let u=new je(e,t,h,i,r,c,[]);u.options=l;let S=l.delay?$(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),R(this,s,u);let y=u.timelines.filter(d=>d.containsAnimation());if(y.length&&a.size){let d;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){d=T;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([a],null,u.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[lt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:$(oe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?$(s.duration):null,a=s.delay!=null?$(s.delay):null;return o!==0&&e.forEach(l=>{let h=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,h.duration+h.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ve);let o=$(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>R(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?oe(s,t.params,t.errors):s;return Se(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let h=l.offset||0;a.forwardTime(h*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?$(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ve);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((h,c)=>{t.currentQueryIndex=c;let u=t.createSubContext(e.options,h);r&&u.delayNextStep(r),h===t.element&&(l=u.currentTimeline),R(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let u=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},ve={},je=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ve,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Te(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=$(s.duration)),s.delay!=null&&(i.delay=$(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ve,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new We(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,h=this._driver.query(this.element,e,l);s!==0&&(h=s<0?h.slice(h.length+s,h.length):h.slice(0,s)),a.push(...h)}return!r&&a.length==0&&o.push(us(t)),a}},Te=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ys,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=ei(e,this._globalTimelineStyles);for(let[a,l]of o){let h=oe(l,r,s);this._pendingStyles.set(a,h),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??B),this._updateStyle(a,h)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let h=new Map([...this._backFill,...a]);h.forEach((c,u)=>{c===ce?e.add(u):c===B&&t.add(u)}),s||h.set("offset",l/this.duration),i.push(h)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return lt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},We=class extends Te{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let h=new Map(e[0]);h.set("offset",At(a)),r.push(h);let c=e.length-1;for(let u=1;u<=c;u++){let S=new Map(e[u]),y=S.get("offset"),d=t+y*s;S.set("offset",At(d/o)),r.push(S)}s=o,t=0,i="",e=r}return lt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function At(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function ei(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,o]of i)t.set(r,o)}),t}function Nt(n,e,t,s,i,r,o,a,l,h,c,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:S}}var Fe={},we=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ti(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,h,c){let u=[],S=this.ast.options&&this.ast.options.params||Fe,y=a&&a.params||Fe,d=this.buildStyles(s,y,u),g=l&&l.params||Fe,T=this.buildStyles(i,g,u),b=new Set,P=new Map,M=new Map,N=i==="void",Z={params:Vt(g,S),delay:this.ast.options?.delay},q=c?[]:ht(e,t,this.ast.animation,r,o,d,T,Z,h,u),C=0;return q.forEach(k=>{C=Math.max(k.duration+k.delay,C)}),u.length?Nt(t,this._triggerName,s,i,N,d,T,[],[],P,M,C,u):(q.forEach(k=>{let W=k.element,J=O(P,W,new Set);k.preStyleProps.forEach(G=>J.add(G));let ct=O(M,W,new Set);k.postStyleProps.forEach(G=>ct.add(G)),W!==t&&b.add(W)}),Nt(t,this._triggerName,s,i,N,d,T,q,[...b.values()],P,M,C))}};function ti(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function Vt(n,e){let t=ue({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var Ge=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=Vt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function si(n,e,t){return new He(n,e,t)}var He=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new Ge(i.style,r,s))}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new we(e,i,this.states))}),this.fallbackTransition=ii(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ii(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new we(n,r,e)}function Dt(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ni=new se,Ye=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=at(this._driver,t,s,i);if(s.length)throw ys(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=It(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ht(this._driver,t,r,nt,ye,new Map,new Map,s,ni,i),o.forEach(c=>{let u=O(a,c.element,new Map);c.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(_s()),o=[]),i.length)throw Ss(i);a.forEach((c,u)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(u,y,B))})});let l=o.map(c=>{let u=a.get(c.element);return this._buildPlayer(c,new Map,u)}),h=j(l);return this._playersById.set(e,h),h.onDestroy(()=>this.destroy(e)),this.players.push(h),h}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Es(e);return t}listen(e,t,s,i){let r=st(t,"","","");return tt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Mt="ng-animate-queued",ri=".ng-animate-queued",Re="ng-animate-disabled",oi=".ng-animate-disabled",ai="ng-star-inserted",li=".ng-star-inserted",hi=[],Ut={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},K="__ng_removed",ae=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=fi(i),s){let r=e,{value:o}=r,a=pt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},re="void",Oe=new ae(re),Xe=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw vs(s,t);if(s==null||s.length==0)throw Ts(t);if(!di(s))throw ws(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(I(e,fe),I(e,fe+"-"+t),a.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw bs(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new le(this.id,t,e),a=this._engine.statesByElement.get(e);a||(I(e,fe),I(e,fe+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),h=new ae(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&h.absorbOptions(l.options),a.set(t,h),l||(l=Oe),!(h.value===re)&&l.value===h.value){if(!gi(l.params,h.params)){let g=[],T=r.matchStyles(l.value,l.params,g),b=r.matchStyles(h.value,h.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{x(e,T),Q(e,b)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,h.value,e,h.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:h,player:o,isFallbackTransition:d}),d||(I(e,Mt),o.onStart(()=>{ee(e,Mt)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let b=T.indexOf(o);b>=0&&T.splice(b,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,_e,!0);s.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,h)=>{if(o.set(h,l.value),this._triggers.has(h)){let c=this.trigger(e,h,re,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,h=s.get(o)||Oe,c=new ae(re),u=new le(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:h,toState:c,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[K];(!r||r===Ut)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=st(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,tt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},xe=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s,i){this.bodyNode=e,this.driver=t,this._normalizer=s,this.scheduler=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Xe(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let h=s.indexOf(l);s.splice(h+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(pe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!pe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(pe(t)){this.scheduler?.notify();let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return pe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,_e,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,qe,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=Ut,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,oi,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Ps(e)}_flushAnimations(e,t){let s=new se,i=[],r=new Map,o=[],a=new Map,l=new Map,h=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ri,!0);for(let p=0;p{let p=nt+g++;d.set(m,p),f.forEach(v=>I(v,p))});let T=[],b=new Set,P=new Set;for(let f=0;fb.add(v)):P.add(m))}let M=new Map,N=Ft(S,Array.from(b));N.forEach((f,m)=>{let p=ye+g++;M.set(m,p),f.forEach(v=>I(v,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(v=>ee(v,p))}),N.forEach((f,m)=>{let p=M.get(m);f.forEach(v=>ee(v,p))}),T.forEach(f=>{this.processLeaveNode(f)})});let Z=[],q=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let v=p.player,A=p.element;if(Z.push(v),this.collectedEnterElements.length){let D=A[K];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let he=L.get(p.triggerName);he.value=H,L.set(p.triggerName,he)}}v.destroy();return}}let z=!u||!this.driver.containsElement(u,A),F=M.get(A),V=d.get(A),w=this._buildInstruction(p,s,V,F,z);if(w.errors&&w.errors.length){q.push(w);return}if(z){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>x(A,w.fromStyles)),v.onDestroy(()=>Q(A,w.toStyles)),i.push(v);return}let mt=[];w.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||mt.push(D)}),w.timelines=mt,s.append(A,w.timelines);let Gt={instruction:w,player:v,element:A};o.push(Gt),w.queriedElements.forEach(D=>O(a,D,[]).push(v)),w.preStyleProps.forEach((D,H)=>{if(D.size){let L=l.get(H);L||l.set(H,L=new Set),D.forEach((he,De)=>L.add(De))}}),w.postStyleProps.forEach((D,H)=>{let L=h.get(H);L||h.set(H,L=new Set),D.forEach((he,De)=>L.add(De))})});if(q.length){let f=[];q.forEach(m=>{f.push(As(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let C=new Map,k=new Map;o.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,C))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(v=>{O(C,m,[]).push(v),v.destroy()})});let W=T.filter(f=>Rt(f,l,h)),J=new Map;kt(J,this.driver,P,h,B).forEach(f=>{Rt(f,l,h)&&W.push(f)});let G=new Map;y.forEach((f,m)=>{kt(G,this.driver,new Set(f),l,ce)}),W.forEach(f=>{let m=J.get(f),p=G.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ne=[],ft=[],dt={};o.forEach(f=>{let{element:m,player:p,instruction:v}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>Q(m,v.toStyles)),p.disabled=!0,p.overrideTotalTime(v.totalTime),i.push(p);return}let A=dt;if(k.size>1){let F=m,V=[];for(;F=F.parentNode;){let w=k.get(F);if(w){A=w;break}V.push(F)}V.forEach(w=>k.set(w,A))}let z=this._buildAnimation(p.namespaceId,v,C,r,G,J);if(p.setRealPlayer(z),A===dt)Ne.push(p);else{let F=this.playersByElement.get(A);F&&F.length&&(p.parentPlayer=j(F)),i.push(p)}}else x(m,v.fromStyles),p.onDestroy(()=>Q(m,v.toStyles)),ft.push(p),c.has(m)&&i.push(p)}),ft.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=j(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!z.destroyed);A.length?mi(this,m,A):this.processLeaveNode(m)}return T.length=0,Ne.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ne}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==re;a.forEach(h=>{h.queued||!l&&h.triggerName!=i||o.push(h)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let h=l.element,c=h!==r,u=O(s,h,[]);this._getPreviousPlayers(h,c,o,a,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),u.push(y)})}x(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,h=[],c=new Set,u=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let T=g[K];if(T&&T.removedBeforeQueried)return new U(d.duration,d.delay);let b=g!==l,P=pi((s.get(g)||hi).map(C=>C.getRealPlayer())).filter(C=>{let k=C;return k.element?k.element===g:!1}),M=r.get(g),N=o.get(g),Z=It(this._normalizer,d.keyframes,M,N),q=this._buildPlayer(d,Z,P);if(d.subTimeline&&i&&u.add(g),b){let C=new le(e,a,g);C.setRealPlayer(q),h.push(C)}return q});h.forEach(d=>{O(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>ci(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Tt));let y=j(S);return y.onDestroy(()=>{c.forEach(d=>ee(d,Tt)),Q(l,t.toStyles)}),u.forEach(d=>{O(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new U(e.duration,e.delay)}},le=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new U,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>tt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ci(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function fi(n){return n??null}function pe(n){return n&&n.nodeType===1}function di(n){return n=="start"||n=="done"}function Ct(n,e){let t=n.style.display;return n.style.display=e??"none",t}function kt(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Ct(l)));let o=[];s.forEach((l,h)=>{let c=new Map;l.forEach(u=>{let S=e.computeStyle(h,u,i);c.set(u,S),(!S||S.length==0)&&(h[K]=ui,o.push(h))}),n.set(h,c)});let a=0;return t.forEach(l=>Ct(l,r[a++])),o}function Ft(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let h=a.parentNode;return t.has(h)?l=h:i.has(h)?l=s:l=o(h),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function I(n,e){n.classList?.add(e)}function ee(n,e){n.classList?.remove(e)}function mi(n,e,t){j(t).onDone(()=>n.processLeaveNode(e))}function pi(n){let e=[];return jt(n,e),e}function jt(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var be=class{constructor(e,t,s,i){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new xe(e.body,t,s,i),this._timelineEngine=new Ye(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],h=[],c=at(this._driver,r,l,h);if(l.length)throw ps(i,l);h.length&&void 0,a=si(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=St(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=St(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function yi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new Ze(n,t,s):null}var te=class te{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=te.initialStylesByElement.get(e);i||te.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(te.initialStylesByElement.delete(this._element),this._startStyles&&(x(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(x(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}};te.initialStylesByElement=new WeakMap;var Ze=te;function Le(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var Pe=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:ot(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Je=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Kt(e,t)}getParentElement(e){return it(e)}query(e,t,s){return qt(e,t,s)}computeStyle(e,t,s){return ot(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let h=new Map,c=o.filter(y=>y instanceof Pe);qs(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>h.set(g,d))});let u=Ls(t).map(y=>new Map(y));u=zs(e,u,h);let S=yi(e,u);return new Pe(e,u,l,S)}};function Di(n,e,t){return n==="noop"?new be(e,new zt,new Ke,t):new be(e,new Je,new Qe,t)}var Ot=class{constructor(e,t){this._driver=e;let s=[],i=[],r=at(e,t,s,i);if(s.length)throw ds(s);i.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,i,r){let o=Array.isArray(t)?wt(t):t,a=Array.isArray(s)?wt(s):s,l=[];r=r||new se;let h=ht(this._driver,e,this._animationAst,nt,ye,o,a,i,r,l);if(l.length)throw ms(l);return h}},ge="@",Wt="@.disabled",Ae=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==ge&&t==Wt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},et=class extends Ae{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==ge?t.charAt(1)=="."&&t==Wt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==ge){let i=Si(e),r=t.slice(1),o="";return r.charAt(0)!=ge&&([r,o]=Ei(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Lt=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let h=this._rendererCache,c=h.get(i);if(!c){let u=()=>h.delete(i);c=new Ae(s,i,this.engine,u),h.set(i,c)}return c}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=h=>{Array.isArray(h)?h.forEach(a):this.engine.registerTrigger(r,o,e,h.name,h)};return t.data.animation.forEach(a),new et(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{vt as AnimationDriver,zt as NoopAnimationDriver,Ot as \u0275Animation,be as \u0275AnimationEngine,et as \u0275AnimationRenderer,Lt as \u0275AnimationRendererFactory,Ie as \u0275AnimationStyleNormalizer,Ae as \u0275BaseAnimationRenderer,Ke as \u0275NoopAnimationStyleNormalizer,Je as \u0275WebAnimationsDriver,Pe as \u0275WebAnimationsPlayer,Qe as \u0275WebAnimationsStyleNormalizer,qs as \u0275allowPreviousPlayerStylesMerge,Ni as \u0275camelCaseToDashCase,Kt as \u0275containsElement,Di as \u0275createEngine,it as \u0275getParentElement,qt as \u0275invokeQuery,Ls as \u0275normalizeKeyframes,Cs as \u0275validateStyleProperty,Ai as \u0275validateWebAnimatableStyleProperty}; diff --git a/chunk-GMEIUZRC.js b/chunk-GMEIUZRC.js deleted file mode 100644 index ad6d2f6..0000000 --- a/chunk-GMEIUZRC.js +++ /dev/null @@ -1,7 +0,0 @@ -var Vc=Object.defineProperty,Bc=Object.defineProperties;var $c=Object.getOwnPropertyDescriptors;var qt=Object.getOwnPropertySymbols;var Ri=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable;var Fi=(e,t,n)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vt=(e,t)=>{for(var n in t||={})Ri.call(t,n)&&Fi(e,n,t[n]);if(qt)for(var n of qt(t))Pi.call(t,n)&&Fi(e,n,t[n]);return e},It=(e,t)=>Bc(e,$c(t));var Gm=(e,t)=>{var n={};for(var r in e)Ri.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qt)for(var r of qt(e))t.indexOf(r)<0&&Pi.call(e,r)&&(n[r]=e[r]);return n};var ki=null;var cr=1,Li=Symbol("SIGNAL");function C(e){let t=ki;return ki=e,t}var ji={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 Hc(e){if(!(fr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cr)){if(!e.producerMustRecompute(e)&&!lr(e)){e.dirty=!1,e.lastCleanEpoch=cr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=cr}}function Vi(e){return e&&(e.nextProducerIndex=0),C(e)}function Bi(e,t){if(C(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(fr(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function lr(e){Yt(e);for(let t=0;t0}function Yt(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Uc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Gc(){throw new Error}var zc=Gc;function Hi(e){zc=e}function m(e){return typeof e=="function"}function Ke(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qt=Ke(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function _e(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var F=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(m(r))try{r()}catch(i){t=i instanceof Qt?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ui(i)}catch(s){t=t??[],s instanceof Qt?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qt(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ui(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&_e(n,t)}remove(t){let{_finalizers:n}=this;n&&_e(n,t),t instanceof e&&t._removeParent(this)}};F.EMPTY=(()=>{let e=new F;return e.closed=!0,e})();var pr=F.EMPTY;function Zt(e){return e instanceof F||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function Ui(e){m(e)?e():e.unsubscribe()}var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Je={setTimeout(e,t,...n){let{delegate:r}=Je;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Je;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Kt(e){Je.setTimeout(()=>{let{onUnhandledError:t}=J;if(t)t(e);else throw e})}function wt(){}var Gi=hr("C",void 0,void 0);function zi(e){return hr("E",void 0,e)}function Wi(e){return hr("N",e,void 0)}function hr(e,t,n){return{kind:e,value:t,error:n}}var xe=null;function Xe(e){if(J.useDeprecatedSynchronousErrorHandling){let t=!xe;if(t&&(xe={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=xe;if(xe=null,n)throw r}}else e()}function qi(e){J.useDeprecatedSynchronousErrorHandling&&xe&&(xe.errorThrown=!0,xe.error=e)}var Te=class extends F{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Zt(t)&&t.add(this)):this.destination=Yc}static create(t,n,r){return new fe(t,n,r)}next(t){this.isStopped?mr(Wi(t),this):this._next(t)}error(t){this.isStopped?mr(zi(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?mr(Gi,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wc=Function.prototype.bind;function gr(e,t){return Wc.call(e,t)}var yr=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Jt(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Jt(r)}else Jt(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Jt(n)}}},fe=class extends Te{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&J.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&gr(t.next,i),error:t.error&&gr(t.error,i),complete:t.complete&&gr(t.complete,i)}):o=t}this.destination=new yr(o)}};function Jt(e){J.useDeprecatedSynchronousErrorHandling?qi(e):Kt(e)}function qc(e){throw e}function mr(e,t){let{onStoppedNotification:n}=J;n&&Je.setTimeout(()=>n(e,t))}var Yc={closed:!0,next:wt,error:qc,complete:wt};var et=typeof Symbol=="function"&&Symbol.observable||"@@observable";function L(e){return e}function Qc(...e){return Dr(e)}function Dr(e){return e.length===0?L:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var b=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Kc(n)?n:new fe(n,r,o);return Xe(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Yi(r),new r((o,i)=>{let s=new fe({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[et](){return this}pipe(...n){return Dr(n)(this)}toPromise(n){return n=Yi(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Yi(e){var t;return(t=e??J.Promise)!==null&&t!==void 0?t:Promise}function Zc(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function Kc(e){return e&&e instanceof Te||Zc(e)&&Zt(e)}function vr(e){return m(e?.lift)}function y(e){return t=>{if(vr(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,t,n,r,o){return new Ir(e,t,n,r,o)}var Ir=class extends Te{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function wr(){return y((e,t)=>{let n=null;e._refCount++;let r=D(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Er=class extends b{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,vr(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new F;let n=this.getSubject();t.add(this.source.subscribe(D(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=F.EMPTY)}return t}refCount(){return wr()(this)}};var Qi=Ke(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ie=(()=>{class e extends b{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Xt(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Qi}next(n){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?pr:(this.currentObservers=null,i.push(n),new F(()=>{this.currentObservers=null,_e(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new b;return n.source=this,n}}return e.create=(t,n)=>new Xt(t,n),e})(),Xt=class extends ie{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:pr}};var Et=class extends ie{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Cr={now(){return(Cr.delegate||Date).now()},delegate:void 0};var en=class extends F{constructor(t,n){super()}schedule(t,n=0){return this}};var Ct={setInterval(e,t,...n){let{delegate:r}=Ct;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ct;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var tn=class extends en{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Ct.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Ct.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,_e(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var tt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};tt.now=Cr.now;var nn=class extends tt{constructor(t,n=tt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zi=new nn(tn);var bt=new b(e=>e.complete());function Ki(e){return e&&m(e.schedule)}function Ji(e){return e[e.length-1]}function rn(e){return m(Ji(e))?e.pop():void 0}function Ie(e){return Ki(Ji(e))?e.pop():void 0}function es(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Xi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Se(e){return this instanceof Se?(this.v=e,this):new Se(e)}function ts(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(p){return new Promise(function(h,v){i.push([f,p,h,v])>1||a(f,p)})})}function a(f,p){try{u(r[f](p))}catch(h){d(i[0][3],h)}}function u(f){f.value instanceof Se?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),i.shift(),i.length&&a(i[0][0],i[0][1])}}function ns(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Xi=="function"?Xi(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var on=e=>e&&typeof e.length=="number"&&typeof e!="function";function sn(e){return m(e?.then)}function an(e){return m(e[et])}function un(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function cn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Jc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ln=Jc();function dn(e){return m(e?.[ln])}function fn(e){return ts(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Se(n.read());if(o)return yield Se(void 0);yield yield Se(r)}}finally{n.releaseLock()}})}function pn(e){return m(e?.getReader)}function T(e){if(e instanceof b)return e;if(e!=null){if(an(e))return Xc(e);if(on(e))return el(e);if(sn(e))return tl(e);if(un(e))return rs(e);if(dn(e))return nl(e);if(pn(e))return rl(e)}throw cn(e)}function Xc(e){return new b(t=>{let n=e[et]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function el(e){return new b(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Kt)})}function nl(e){return new b(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function rs(e){return new b(t=>{ol(e,t).catch(n=>t.error(n))})}function rl(e){return rs(fn(e))}function ol(e,t){var n,r,o,i;return es(this,void 0,void 0,function*(){try{for(n=ns(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function V(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function hn(e,t=0){return y((n,r)=>{n.subscribe(D(r,o=>V(r,e,()=>r.next(o),t),()=>V(r,e,()=>r.complete(),t),o=>V(r,e,()=>r.error(o),t)))})}function gn(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function os(e,t){return T(e).pipe(gn(t),hn(t))}function is(e,t){return T(e).pipe(gn(t),hn(t))}function ss(e,t){return new b(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function as(e,t){return new b(n=>{let r;return V(n,t,()=>{r=e[ln](),V(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>m(r?.return)&&r.return()})}function mn(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(n=>{V(n,t,()=>{let r=e[Symbol.asyncIterator]();V(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function us(e,t){return mn(fn(e),t)}function cs(e,t){if(e!=null){if(an(e))return os(e,t);if(on(e))return ss(e,t);if(sn(e))return is(e,t);if(un(e))return mn(e,t);if(dn(e))return as(e,t);if(pn(e))return us(e,t)}throw cn(e)}function we(e,t){return t?cs(e,t):T(e)}function il(...e){let t=Ie(e);return we(e,t)}function sl(e,t){let n=m(e)?e:()=>e,r=o=>o.error(n());return new b(t?o=>t.schedule(r,0,o):r)}function al(e){return!!e&&(e instanceof b||m(e.lift)&&m(e.subscribe))}var Ne=Ke(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function se(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ul}=Array;function cl(e,t){return ul(t)?e(...t):e(t)}function yn(e){return se(t=>cl(e,t))}var{isArray:ll}=Array,{getPrototypeOf:dl,prototype:fl,keys:pl}=Object;function Dn(e){if(e.length===1){let t=e[0];if(ll(t))return{args:t,keys:null};if(hl(t)){let n=pl(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hl(e){return e&&typeof e=="object"&&dl(e)===fl}function vn(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function gl(...e){let t=Ie(e),n=rn(e),{args:r,keys:o}=Dn(e);if(r.length===0)return we([],t);let i=new b(ml(r,t,o?s=>vn(o,s):L));return n?i.pipe(yn(n)):i}function ml(e,t,n=L){return r=>{ls(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=we(e[u],t),l=!1;c.subscribe(D(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ls(e,t,n){e?V(n,e,t):t()}function ds(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&t.complete()},p=v=>c{i&&t.next(v),c++;let P=!1;T(n(v,l++)).subscribe(D(t,N=>{o?.(N),i?p(N):t.next(N)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;u.length&&ch(N)):h(N)}f()}catch(N){t.error(N)}}))};return e.subscribe(D(t,p,()=>{d=!0,f()})),()=>{a?.()}}function Ae(e,t,n=1/0){return m(t)?Ae((r,o)=>se((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>ds(r,o,e,n)))}function fs(e=1/0){return Ae(L,e)}function ps(){return fs(1)}function In(...e){return ps()(we(e,Ie(e)))}function yl(e){return new b(t=>{T(e()).subscribe(t)})}function Dl(...e){let t=rn(e),{args:n,keys:r}=Dn(e),o=new b(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?vn(r,a):a),i.complete())}))}});return t?o.pipe(yn(t)):o}function Oe(e,t){return y((n,r)=>{let o=0;n.subscribe(D(r,i=>e.call(t,i,o++)&&r.next(i)))})}function hs(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(D(n,void 0,void 0,s=>{i=T(e(s,hs(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function gs(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(D(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function vl(e,t){return m(t)?Ae(e,t,1):Ae(e,1)}function Il(e,t=Zi){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Mt(e){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function br(e){return e<=0?()=>bt:y((t,n)=>{let r=0;t.subscribe(D(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function wl(e){return se(()=>e)}function El(e,t=L){return e=e??Cl,y((n,r)=>{let o,i=!0;n.subscribe(D(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Cl(e,t){return e===t}function wn(e=bl){return y((t,n)=>{let r=!1;t.subscribe(D(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function bl(){return new Ne}function Ml(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function ms(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Oe((o,i)=>e(o,i,r)):L,br(1),n?Mt(t):wn(()=>new Ne))}function Mr(e){return e<=0?()=>bt:y((t,n)=>{let r=[];t.subscribe(D(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function _l(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Oe((o,i)=>e(o,i,r)):L,Mr(1),n?Mt(t):wn(()=>new Ne))}function xl(e,t){return y(gs(e,t,arguments.length>=2,!0))}function Tl(e={}){let{connector:t=()=>new ie,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},p=()=>{f(),s=u=void 0,l=d=!1},h=()=>{let v=s;p(),v?.unsubscribe()};return y((v,P)=>{c++,!d&&!l&&f();let N=u=u??t();P.add(()=>{c--,c===0&&!d&&!l&&(a=_r(h,o))}),N.subscribe(P),!s&&c>0&&(s=new fe({next:q=>N.next(q),error:q=>{d=!0,f(),a=_r(p,n,q),N.error(q)},complete:()=>{l=!0,f(),a=_r(p,r),N.complete()}}),T(v).subscribe(s))})(i)}}function _r(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new fe({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function Sl(e){return Oe((t,n)=>e<=n)}function Nl(...e){let t=Ie(e);return y((n,r)=>{(t?In(e,n,t):In(e,n)).subscribe(r)})}function Al(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(D(r,u=>{o?.unsubscribe();let c=0,l=i++;T(e(u,l)).subscribe(o=D(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ol(e){return y((t,n)=>{T(e).subscribe(D(n,()=>n.complete(),wt)),!n.closed&&t.subscribe(n)})}function Fl(e,t,n){let r=m(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):L}var ta="https://g.co/ng/security#xss",M=class extends Error{constructor(t,n){super(na(t,n)),this.code=t}};function na(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Vt(e){return{toString:e}.toString()}var En="__parameters__";function Rl(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function ra(e,t,n){return Vt(()=>{let r=Rl(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(En)?u[En]:Object.defineProperty(u,En,{value:[]})[En];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var it=globalThis;function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function Pl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function H(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(H).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Br(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var kl=_({__forward_ref__:_});function oa(e){return e.__forward_ref__=oa,e.toString=function(){return H(this())},e}function Y(e){return ia(e)?e():e}function ia(e){return typeof e=="function"&&e.hasOwnProperty(kl)&&e.__forward_ref__===oa}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function sa(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jn(e){return ys(e,aa)||ys(e,ua)}function EC(e){return Jn(e)!==null}function ys(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ll(e){let t=e&&(e[aa]||e[ua]);return t||null}function Ds(e){return e&&(e.hasOwnProperty(vs)||e.hasOwnProperty(jl))?e[vs]:null}var aa=_({\u0275prov:_}),vs=_({\u0275inj:_}),ua=_({ngInjectableDef:_}),jl=_({ngInjectorDef:_}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ca(e){return e&&!!e.\u0275providers}var Vl=_({\u0275cmp:_}),Bl=_({\u0275dir:_}),$l=_({\u0275pipe:_}),Hl=_({\u0275mod:_}),Fn=_({\u0275fac:_}),_t=_({__NG_ELEMENT_ID__:_}),Is=_({__NG_ENV_ID__:_});function Go(e){return typeof e=="string"?e:e==null?"":String(e)}function Ul(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Go(e)}function Gl(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,e)}function zo(e,t){throw new M(-201,!1)}var w=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(w||{}),$r;function la(){return $r}function B(e){let t=$r;return $r=e,t}function da(e,t,n){let r=Jn(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&w.Optional)return null;if(t!==void 0)return t;zo(e,"Injector")}var zl={},xt=zl,Hr="__NG_DI_FLAG__",Rn="ngTempTokenPath",Wl="ngTokenPath",ql=/\n/gm,Yl="\u0275",ws="__source",st;function Ql(){return st}function Ee(e){let t=st;return st=e,t}function Zl(e,t=w.Default){if(st===void 0)throw new M(-203,!1);return st===null?da(e,void 0,t):st.get(e,t&w.Optional?null:void 0,t)}function U(e,t=w.Default){return(la()||Zl)(Y(e),t)}function A(e,t=w.Default){return U(e,Xn(t))}function Xn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ur(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):H(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(ql,` - `)}`}var ed=fa(ra("Optional"),8);var td=fa(ra("SkipSelf"),4);function Pe(e,t){let n=e.hasOwnProperty(Fn);return n?e[Fn]:null}function nd(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Wo(n,t):t(n))}function pa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function od(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function qo(e,t,n){let r=Bt(e,t);return r>=0?e[r|1]=n:(r=~r,id(e,r,t,n)),r}function xr(e,t){let n=Bt(e,t);if(n>=0)return e[n|1]}function Bt(e,t){return sd(e,t,1)}function sd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(X(r))return!1;s=!0}}}}return X(r)||s}function X(e){return(e&1)===0}function fd(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!X(s)&&(t+=Cs(i,o),o=""),r=s,i=i||!X(r);n++}return o!==""&&(t+=Cs(i,o)),t}function Dd(e){return e.map(yd).join(",")}function vd(e){let t=[],n=[],r=1,o=2;for(;r{let t=_a(e),n=It(vt({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ma.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Tt.Emulated,styles:e.styles||$,_:null,schemas:e.schemas||null,tView:null,id:""});xa(n);let r=e.dependencies;return n.directiveDefs=Ms(r,!1),n.pipeDefs=Ms(r,!0),n.id=Cd(n),n})}function Id(e){return Le(e)||Ca(e)}function wd(e){return e!==null}function Ia(e){return Vt(()=>({type:e.type,bootstrap:e.bootstrap||$,declarations:e.declarations||$,imports:e.imports||$,exports:e.exports||$,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function bs(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=ke.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ke.None?[r,a]:r,t[i]=s):n[i]=r}return n}function wa(e){return Vt(()=>{let t=_a(e);return xa(t),t})}function Ea(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Le(e){return e[Vl]||null}function Ca(e){return e[Bl]||null}function ba(e){return e[$l]||null}function Ed(e){let t=Le(e)||Ca(e)||ba(e);return t!==null?t.standalone:!1}function Ma(e,t){let n=e[Hl]||null;if(!n&&t===!0)throw new Error(`Type ${H(e)} does not have '\u0275mod' property.`);return n}function _a(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||$,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bs(e.inputs,t),outputs:bs(e.outputs),debugInfo:null}}function xa(e){e.features?.forEach(t=>t(e))}function Ms(e,t){if(!e)return null;let n=t?ba:Id;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(wd)}function Cd(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function bd(e){return{\u0275providers:e}}function Md(...e){return{\u0275providers:Ta(!0,e),\u0275fromNgModule:!0}}function Ta(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Wo(t,s=>{let a=s;zr(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Sa(o,i),n}function Sa(e,t){for(let n=0;n{t(i,r)})}}function zr(e,t,n,r){if(e=Y(e),!e)return!1;let o=null,i=Ds(e),s=!i&&Le(e);if(!i&&!s){let u=e.ngModule;if(i=Ds(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)zr(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Wo(i.imports,l=>{zr(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Sa(c,t)}if(!a){let c=Pe(o)||(()=>new o);t({provide:o,useFactory:c,deps:$},o),t({provide:ga,useValue:o,multi:!0},o),t({provide:kn,useValue:()=>U(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;Qo(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Qo(e,t){for(let n of e)ca(n)&&(n=n.\u0275providers),Array.isArray(n)?Qo(n,t):t(n)}var _d=_({provide:String,useValue:_});function Na(e){return e!==null&&typeof e=="object"&&_d in e}function xd(e){return!!(e&&e.useExisting)}function Td(e){return!!(e&&e.useFactory)}function Wr(e){return typeof e=="function"}var Aa=new S(""),xn={},Sd={},Tr;function Zo(){return Tr===void 0&&(Tr=new Ln),Tr}var be=class{},Nt=class extends be{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yr(t,s=>this.processProvider(s)),this.records.set(ha,nt(void 0,this)),o.has("environment")&&this.records.set(be,nt(void 0,this));let i=this.records.get(Aa);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ga,$,w.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=C(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),C(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ee(this),r=B(void 0),o;try{return t()}finally{Ee(n),B(r)}}get(t,n=xt,r=w.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Is))return t[Is](this);r=Xn(r);let o,i=Ee(this),s=B(void 0);try{if(!(r&w.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Pd(t)&&Jn(t);c&&this.injectableDefInScope(c)?u=nt(qr(t),xn):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&w.Self?Zo():this.parent;return n=r&w.Optional&&n===xt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Rn]=a[Rn]||[]).unshift(H(t)),i)throw a;return Jl(a,t,"R3InjectorError",this.source)}else throw a}finally{B(s),Ee(i)}}resolveInjectorInitializers(){let t=C(null),n=Ee(this),r=B(void 0),o;try{let i=this.get(kn,$,w.Self);for(let s of i)s()}finally{Ee(n),B(r),C(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(H(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){t=Y(t);let n=Wr(t)?t:Y(t&&t.provide),r=Ad(t);if(!Wr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=nt(void 0,xn,!0),o.factory=()=>Ur(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=C(null);try{return n.value===xn&&(n.value=Sd,n.value=n.factory()),typeof n.value=="object"&&n.value&&Rd(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Y(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function qr(e){let t=Jn(e),n=t!==null?t.factory:Pe(e);if(n!==null)return n;if(e instanceof S)throw new M(204,!1);if(e instanceof Function)return Nd(e);throw new M(204,!1)}function Nd(e){if(e.length>0)throw new M(204,!1);let n=Ll(e);return n!==null?()=>n.factory(e):()=>new e}function Ad(e){if(Na(e))return nt(void 0,e.useValue);{let t=Od(e);return nt(t,xn)}}function Od(e,t,n){let r;if(Wr(e)){let o=Y(e);return Pe(o)||qr(o)}else if(Na(e))r=()=>Y(e.useValue);else if(Td(e))r=()=>e.useFactory(...Ur(e.deps||[]));else if(xd(e))r=()=>U(Y(e.useExisting));else{let o=Y(e&&(e.useClass||e.provide));if(Fd(e))r=()=>new o(...Ur(e.deps));else return Pe(o)||qr(o)}return r}function nt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Fd(e){return!!e.deps}function Rd(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Pd(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function Yr(e,t){for(let n of e)Array.isArray(n)?Yr(n,t):n&&ca(n)?Yr(n.\u0275providers,t):t(n)}function bC(e,t){e instanceof Nt&&e.assertNotDestroyed();let n,r=Ee(e),o=B(void 0);try{return t()}finally{Ee(r),B(o)}}function kd(){return la()!==void 0||Ql()!=null}function Ld(e){return typeof e=="function"}var me=0,I=1,g=2,k=3,te=4,W=5,At=6,Ot=7,pe=8,lt=9,ce=10,R=11,Ft=12,_s=13,$t=14,re=15,Ht=16,rt=17,he=18,er=19,Oa=20,Ce=21,Sr=22,je=23,oe=25,Fa=1;var Ve=7,jn=8,dt=9,z=10,Ko=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ko||{});function at(e){return Array.isArray(e)&&typeof e[Fa]=="object"}function ye(e){return Array.isArray(e)&&e[Fa]===!0}function Ra(e){return(e.flags&4)!==0}function tr(e){return e.componentOffset>-1}function Jo(e){return(e.flags&1)===1}function Be(e){return!!e.template}function jd(e){return(e[g]&512)!==0}var Qr=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Pa(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function ka(){return La}function La(e){return e.type.prototype.ngOnChanges&&(e.setInput=Bd),Vd}ka.ngInherit=!0;function Vd(){let e=Va(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Bd(e,t,n,r,o){let i=this.declaredInputs[r],s=Va(e)||$d(e,{previous:ct,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Qr(c&&c.currentValue,n,u===ct),Pa(e,t,o,n)}var ja="__ngSimpleChanges__";function Va(e){return e[ja]||null}function $d(e,t){return e[ja]=t}var xs=null;var ae=function(e,t,n){xs?.(e,t,n)},Hd="svg",Ud="math",Gd=!1;function zd(){return Gd}function le(e){for(;Array.isArray(e);)e=e[me];return e}function Ba(e,t){return le(t[e])}function Q(e,t){return le(t[e.index])}function $a(e,t){return e.data[t]}function Wd(e,t){return e[t]}function ze(e,t){let n=t[e];return at(n)?n:n[me]}function qd(e){return(e[g]&4)===4}function Xo(e){return(e[g]&128)===128}function Yd(e){return ye(e[k])}function Vn(e,t){return t==null?null:e[t]}function Ha(e){e[rt]=0}function Qd(e){e[g]&1024||(e[g]|=1024,Xo(e)&&Rt(e))}function ei(e){return!!(e[g]&9216||e[je]?.dirty)}function Zr(e){e[ce].changeDetectionScheduler?.notify(1),ei(e)?Rt(e):e[g]&64&&(zd()?(e[g]|=1024,Rt(e)):e[ce].changeDetectionScheduler?.notify())}function Rt(e){e[ce].changeDetectionScheduler?.notify();let t=Pt(e);for(;t!==null&&!(t[g]&8192||(t[g]|=8192,!Xo(t)));)t=Pt(t)}function Ua(e,t){if((e[g]&256)===256)throw new M(911,!1);e[Ce]===null&&(e[Ce]=[]),e[Ce].push(t)}function Zd(e,t){if(e[Ce]===null)return;let n=e[Ce].indexOf(t);n!==-1&&e[Ce].splice(n,1)}function Pt(e){let t=e[k];return ye(t)?t[k]:t}var E={lFrame:Xa(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Kd(){return E.lFrame.elementDepthCount}function Jd(){E.lFrame.elementDepthCount++}function Xd(){E.lFrame.elementDepthCount--}function Ga(){return E.bindingsEnabled}function za(){return E.skipHydrationRootTNode!==null}function ef(e){return E.skipHydrationRootTNode===e}function tf(){E.skipHydrationRootTNode=null}function x(){return E.lFrame.lView}function G(){return E.lFrame.tView}function Z(){let e=Wa();for(;e!==null&&e.type===64;)e=e.parent;return e}function Wa(){return E.lFrame.currentTNode}function nf(){let e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=E.lFrame;n.currentTNode=e,n.isParent=t}function qa(){return E.lFrame.isParent}function Ya(){E.lFrame.isParent=!1}function rf(){let e=E.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function of(e){return E.lFrame.bindingIndex=e}function ti(){return E.lFrame.bindingIndex++}function Qa(e){let t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function sf(){return E.lFrame.inI18n}function af(e,t){let n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kr(t)}function uf(){return E.lFrame.currentDirectiveIndex}function Kr(e){E.lFrame.currentDirectiveIndex=e}function cf(e){let t=E.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Za(){return E.lFrame.currentQueryIndex}function ni(e){E.lFrame.currentQueryIndex=e}function lf(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[W]:null}function Ka(e,t,n){if(n&w.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&w.Host);)if(o=lf(i),o===null||(i=i[$t],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=E.lFrame=Ja();return r.currentTNode=t,r.lView=e,!0}function ri(e){let t=Ja(),n=e[I];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ja(){let e=E.lFrame,t=e===null?null:e.child;return t===null?Xa(e):t}function Xa(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function eu(){let e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var tu=eu;function oi(){let e=eu();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function We(){return E.lFrame.selectedIndex}function $e(e){E.lFrame.selectedIndex=e}function nu(){let e=E.lFrame;return $a(e.tView,e.selectedIndex)}function df(){return E.lFrame.currentNamespace}var ru=!0;function ii(){return ru}function si(e){ru=e}function ff(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=La(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ai(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[rt]+=65536),(a>14>16&&(e[g]&3)===t&&(e[g]+=16384,Ts(a,i)):Ts(a,i)}var ut=-1,kt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function hf(e){return e instanceof kt}function gf(e){return(e.flags&8)!==0}function mf(e){return(e.flags&16)!==0}function iu(e){return e!==ut}function Bn(e){return e&32767}function yf(e){return e>>16}function $n(e,t){let n=yf(e),r=t;for(;n>0;)r=r[$t],n--;return r}var Jr=!0;function Hn(e){let t=Jr;return Jr=e,t}var Df=256,su=Df-1,au=5,vf=0,ue={};function If(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(_t)&&(r=n[_t]),r==null&&(r=n[_t]=vf++);let o=r&su,i=1<>au)]|=i}function uu(e,t){let n=cu(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Ar(r.data,e),Ar(t,null),Ar(r.blueprint,null));let o=ui(e,t),i=e.injectorIndex;if(iu(o)){let s=Bn(o),a=$n(o,t),u=a[I].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function Ar(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ui(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=hu(o),r===null)return ut;if(n++,o=o[$t],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ut}function wf(e,t,n){If(e,t,n)}function Ef(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,f=o?a+l:c;for(let p=d;p=u&&h.type===n)return p}if(o){let p=s[u];if(p&&Be(p)&&p.type===n)return u}return null}function ft(e,t,n,r){let o=e[n],i=t.data;if(hf(o)){let s=o;s.resolving&&Gl(Ul(i[n]));let a=Hn(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?B(s.injectImpl):null,l=Ka(e,r,w.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&ff(n,i[n],t)}finally{c!==null&&B(c),Hn(a),s.resolving=!1,tu()}}return o}function bf(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(_t)?e[_t]:void 0;return typeof t=="number"?t>=0?t&su:Mf:t}function Ss(e,t,n){let r=1<>au)]&r)}function Ns(e,t){return!(e&w.Self)&&!(e&w.Host&&t)}var Re=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return fu(this._tNode,this._lView,t,Xn(r),n)}};function Mf(){return new Re(Z(),x())}function MC(e){return Vt(()=>{let t=e.prototype.constructor,n=t[Fn]||Xr(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Fn]||Xr(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Xr(e){return ia(e)?()=>{let t=Xr(Y(e));return t&&t()}:Pe(e)}function _f(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[g]&2048&&!(s[g]&512);){let a=pu(i,s,n,r|w.Self,ue);if(a!==ue)return a;let u=i.parent;if(!u){let c=s[Oa];if(c){let l=c.get(n,ue,r);if(l!==ue)return l}u=hu(s),s=s[$t]}i=u}return o}function hu(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[W]:null}function xf(e){return Ef(Z(),e)}function As(e,t=null,n=null,r){let o=gu(e,t,n,r);return o.resolveInjectorInitializers(),o}function gu(e,t=null,n=null,r,o=new Set){let i=[n||$,Md(e)];return r=r||(typeof e=="object"?void 0:H(e)),new Nt(i,t||Zo(),r||null,o)}var ci=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return As({name:""},o,r,"");{let i=r.name??"";return As({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=xt,t.NULL=new Ln,t.\u0275prov=O({token:t,providedIn:"any",factory:()=>U(ha)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Tf="ngOriginalError";function Or(e){return e[Tf]}var pt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Or(t);for(;n&&Or(n);)n=Or(n);return n||null}},mu=new S("",{providedIn:"root",factory:()=>A(pt).handleError.bind(void 0)}),yu=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Sf,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),eo=class extends yu{constructor(t){super(),this._lView=t}onDestroy(t){return Ua(this._lView,t),()=>Zd(this._lView,t)}};function Sf(){return new eo(x())}function Nf(){return mt(Z(),x())}function mt(e,t){return new yt(Q(e,t))}var yt=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Nf;let e=t;return e})();function Af(e){return e instanceof yt?e.nativeElement:e}var to=class extends ie{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,kd()&&(this.destroyRef=A(yu,{optional:!0})??void 0)}emit(t){let n=C(null);try{super.next(t)}finally{C(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Fr(i),o&&(o=Fr(o)),s&&(s=Fr(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof F&&t.add(a),a}};function Fr(e){return t=>{setTimeout(e,void 0,t)}}var Fe=to;function Of(){return this._results[Symbol.iterator]()}var no=class e{get changes(){return this._changes??=new Fe}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Of)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=rd(t);(this._changesDetected=!nd(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Du(e){return(e.flags&128)===128}var vu=new Map,Ff=0;function Rf(){return Ff++}function Pf(e){vu.set(e[er],e)}function kf(e){vu.delete(e[er])}var Os="__ngContext__";function He(e,t){at(t)?(e[Os]=t[er],Pf(t)):e[Os]=t}function Iu(e){return Eu(e[Ft])}function wu(e){return Eu(e[te])}function Eu(e){for(;e!==null&&!ye(e);)e=e[te];return e}var ro;function _C(e){ro=e}function Lf(){if(ro!==void 0)return ro;if(typeof document<"u")return document;throw new M(210,!1)}var xC=new S("",{providedIn:"root",factory:()=>jf}),jf="ng",Vf=new S(""),Bf=new S("",{providedIn:"platform",factory:()=>"unknown"});var TC=new S(""),SC=new S("",{providedIn:"root",factory:()=>Lf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var $f="h",Hf="b";var Uf=()=>null;function li(e,t,n=!1){return Uf(e,t,n)}var Cu=!1,Gf=new S("",{providedIn:"root",factory:()=>Cu});var Cn;function zf(){if(Cn===void 0&&(Cn=null,it.trustedTypes))try{Cn=it.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Cn}function nr(e){return zf()?.createHTML(e)||e}var ge=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ta})`}},oo=class extends ge{getTypeName(){return"HTML"}},io=class extends ge{getTypeName(){return"Style"}},so=class extends ge{getTypeName(){return"Script"}},ao=class extends ge{getTypeName(){return"URL"}},uo=class extends ge{getTypeName(){return"ResourceURL"}};function di(e){return e instanceof ge?e.changingThisBreaksApplicationSecurity:e}function NC(e,t){let n=Wf(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ta})`)}return n===t}function Wf(e){return e instanceof ge&&e.getTypeName()||null}function AC(e){return new oo(e)}function OC(e){return new io(e)}function FC(e){return new so(e)}function RC(e){return new ao(e)}function PC(e){return new uo(e)}function qf(e){let t=new lo(e);return Yf()?new co(t):t}var co=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(nr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},lo=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=nr(t),n}};function Yf(){try{return!!new window.DOMParser().parseFromString(nr(""),"text/html")}catch{return!1}}var Qf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Zf(e){return e=String(e),e.match(Qf)?e:"unsafe:"+e}function De(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Gt(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var bu=De("area,br,col,hr,img,wbr"),Mu=De("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_u=De("rp,rt"),Kf=Gt(_u,Mu),Jf=Gt(Mu,De("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xf=Gt(_u,De("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fs=Gt(bu,Jf,Xf,Kf),xu=De("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ep=De("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),tp=De("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),np=Gt(xu,ep,tp),rp=De("script,style,template"),fo=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=sp(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=ip(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Rs(t).toLowerCase();if(!Fs.hasOwnProperty(n))return this.sanitizedSomething=!0,!rp.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Rs(t).toLowerCase();Fs.hasOwnProperty(n)&&!bu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Ps(t))}};function op(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ip(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Tu(t);return t}function sp(e){let t=e.firstChild;if(t&&op(e,t))throw Tu(t);return t}function Rs(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Tu(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var ap=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,up=/([^\#-~ |!])/g;function Ps(e){return e.replace(/&/g,"&").replace(ap,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(up,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var bn;function kC(e,t){let n=null;try{bn=bn||qf(e);let r=t?String(t):"";n=bn.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=bn.getInertBodyElement(r)}while(r!==i);let a=new fo().sanitizeChildren(ks(n)||n);return nr(a)}finally{if(n){let r=ks(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function ks(e){return"content"in e&&cp(e)?e.content:null}function cp(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var lp=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(lp||{});function Su(e){return e instanceof Function?e():e}var Un=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Un||{}),dp;function fi(e,t){return dp(e,t)}function ot(e,t,n,r,o){if(r!=null){let i,s=!1;ye(r)?i=r:at(r)&&(s=!0,r=r[me]);let a=le(r);e===0&&n!==null?o==null?Pu(t,n,a):Gn(t,n,a,o||null,!0):e===1&&n!==null?Gn(t,n,a,o||null,!0):e===2?_p(t,a,s):e===3&&t.destroyNode(a),i!=null&&Tp(t,e,i,n,o)}}function fp(e,t){return e.createText(t)}function pp(e,t,n){e.setValue(t,n)}function Nu(e,t,n){return e.createElement(t,n)}function hp(e,t){Au(e,t),t[me]=null,t[W]=null}function gp(e,t,n,r,o,i){r[me]=o,r[W]=t,rr(e,r,n,1,o,i)}function Au(e,t){t[ce].changeDetectionScheduler?.notify(1),rr(e,t,t[R],2,null,null)}function mp(e){let t=e[Ft];if(!t)return Rr(e[I],e);for(;t;){let n=null;if(at(t))n=t[Ft];else{let r=t[z];r&&(n=r)}if(!n){for(;t&&!t[te]&&t!==e;)at(t)&&Rr(t[I],t),t=t[k];t===null&&(t=e),at(t)&&Rr(t[I],t),n=t&&t[te]}t=n}}function yp(e,t,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][te]=t),r0&&(e[n-1][te]=r[te]);let i=Pn(e,z+t);hp(r[I],r);let s=i[he];s!==null&&s.detachView(i[I]),r[k]=null,r[te]=null,r[g]&=-129}return r}function Fu(e,t){if(!(t[g]&256)){let n=t[R];n.destroyNode&&rr(e,t,n,3,null,null),mp(t)}}function Rr(e,t){if(t[g]&256)return;let n=C(null);try{t[g]&=-129,t[g]|=256,t[je]&&$i(t[je]),Ip(e,t),vp(e,t),t[I].type===1&&t[R].destroy();let r=t[Ht];if(r!==null&&ye(t[k])){r!==t[k]&&Ou(r,t);let o=t[he];o!==null&&o.detachView(e)}kf(t)}finally{C(n)}}function vp(e,t){let n=e.cleanup,r=t[Ot];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Ot]=null);let o=t[Ce];if(o!==null){t[Ce]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Tt.None||i===Tt.Emulated)return null}return Q(r,n)}}function Gn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pu(e,t,n){e.appendChild(t,n)}function Ls(e,t,n,r,o){r!==null?Gn(e,t,n,r,o):Pu(e,t,n)}function Ep(e,t,n,r){e.removeChild(t,n,r)}function pi(e,t){return e.parentNode(t)}function Cp(e,t){return e.nextSibling(t)}function ku(e,t,n){return Mp(e,t,n)}function bp(e,t,n){return e.type&40?Q(e,n):null}var Mp=bp,js;function hi(e,t,n,r){let o=Ru(e,r,t),i=t[R],s=r.parent||t[W],a=ku(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;uoe&&$u(e,t,oe,!1),ae(s?2:0,o),n(r,o)}finally{$e(i),ae(s?3:1,o)}}function zu(e,t,n){if(Ra(t)){let r=C(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Lp(e,t,n,r){let o=ec(t);o.push(n),e.firstCreatePass&&tc(e).push(r,o.length-1)}function jp(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return za()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Vs(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=ke.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Bs(r,n,c,a,u):Bs(r,n,c,a)}return r}function Bs(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Vp(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function zp(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;tr(n)&&Jp(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||uu(n,t),He(r,t);let s=n.initialInputs;for(let a=o;a{Rt(e.lView)},consumerOnSignalRead(){this.lView[je]=this}}),oc=100;function ic(e,t=!0,n=0){let r=e[ce],o=r.rendererFactory,i=!1;i||o.begin?.();try{hh(e,n)}catch(s){throw t&&nc(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function hh(e,t){yo(e,t);let n=0;for(;ei(e);){if(n===oc)throw new M(103,!1);n++,yo(e,1)}}function gh(e,t,n,r){let o=t[g];if((o&256)===256)return;let i=!1;!i&&t[ce].inlineEffectRunner?.flush(),ri(t);let s=null,a=null;!i&&mh(e)&&(a=lh(t),s=Vi(a));try{Ha(t),of(e.bindingStartIndex),n!==null&&Gu(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Tn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Sn(t,d,0,null),Nr(t,0)}if(yh(t),sc(t,0),e.contentQueries!==null&&Xu(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Tn(t,d)}else{let d=e.contentHooks;d!==null&&Sn(t,d,1),Nr(t,1)}Ap(e,t);let c=e.components;c!==null&&uc(t,c,0);let l=e.viewQuery;if(l!==null&&mo(2,l,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Tn(t,d)}else{let d=e.viewHooks;d!==null&&Sn(t,d,2),Nr(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Sr]){for(let d of t[Sr])d();t[Sr]=null}i||(t[g]&=-73)}catch(u){throw Rt(t),u}finally{a!==null&&(Bi(a,s),fh(a)),oi()}}function mh(e){return e.type!==2}function sc(e,t){for(let n=Iu(e);n!==null;n=wu(n))for(let r=z;r-1&&(po(t,r),Pn(n,r))}this._attachedToViewContainer=!1}Fu(this._lView[I],this._lView)}onDestroy(t){Ua(this._lView,t)}markForCheck(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[g]&=-129}reattach(){Zr(this._lView),this._lView[g]|=128}detectChanges(){this._lView[g]|=1024,ic(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Au(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t,Zr(this._lView)}},ht=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=wh;let e=t;return e})(),vh=ht,Ih=class extends vh{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=ah(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Ue(o)}};function wh(){return Ii(Z(),x())}function Ii(e,t){return e.type&4?new Ih(t,e,mt(e,t)):null}var BC=new RegExp(`^(\\d+)*(${Hf}|${$f})*(.*)`);var Eh=()=>null;function Hs(e,t){return Eh(e,t)}var Do=class{},vo=class{},Wn=class{};function Ch(e){let t=Error(`No component factory found for ${H(e)}.`);return t[bh]=e,t}var bh="ngComponent";var Io=class{resolveComponentFactory(t){throw Ch(t)}},sr=(()=>{let t=class t{};t.NULL=new Io;let e=t;return e})(),wo=class{};var Mh=(()=>{let t=class t{};t.\u0275prov=O({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Pr={};var Us=new Set;function cc(e){Us.has(e)||(Us.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Gs(...e){}function _h(){let e=typeof it.requestAnimationFrame=="function",t=it[e?"requestAnimationFrame":"setTimeout"],n=it[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var ne=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=_h().nativeRequestAnimationFrame,Sh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,xh,Gs,Gs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},xh={};function wi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Th(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(it,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Eo(e),e.isCheckStableRunning=!0,wi(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Eo(e))}function Sh(e){let t=()=>{Th(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Nh(a))return n.invokeTask(o,i,s,a);try{return zs(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ws(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return zs(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ws(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Eo(e),wi(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Eo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ws(e){e._nesting--,wi(e)}function Nh(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var lc=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=O({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Co(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Vu(e,n,i.join(" "))}}function Lh(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Vh;let e=t;return e})();function Vh(){let e=Z();return fc(e,x())}var Bh=Wt,dc=class extends Bh{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return mt(this._hostTNode,this._hostLView)}get injector(){return new Re(this._hostTNode,this._hostLView)}get parentInjector(){let t=ui(this._hostTNode,this._hostLView);if(iu(t)){let n=$n(t,this._hostLView),r=Bn(t),o=n[I].data[r+8];return new Re(o,n)}else return new Re(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ys(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-z}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Hs(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,$s(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Ld(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new Lt(Le(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(s?c:this.parentInjector).get(be,null);v&&(i=v)}let l=Le(u.componentType??{}),d=Hs(this._lContainer,l?.id??null),f=d?.firstChild??null,p=u.create(c,o,f,i);return this.insertImpl(p.hostView,a,$s(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Yd(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[k],c=new dc(u,u[W],u[k]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return uh(s,o,i,r),t.attachToViewContainerRef(),pa(kr(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ys(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=po(this._lContainer,n);r&&(Pn(kr(this._lContainer),n),Fu(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=po(this._lContainer,n);return r&&Pn(kr(this._lContainer),n)!=null?new Ue(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ys(e){return e[jn]}function kr(e){return e[jn]||(e[jn]=[])}function fc(e,t){let n,r=t[e.index];return ye(r)?n=r:(n=Ju(r,t,null,e),t[e.index]=n,ir(t,n)),Hh(n,t,e,r),new dc(n,e,t)}function $h(e,t){let n=e[R],r=n.createComment(""),o=Q(t,e),i=pi(n,o);return Gn(n,i,r,Cp(n,o),!1),r}var Hh=zh,Uh=()=>!1;function Gh(e,t,n){return Uh(e,t,n)}function zh(e,t,n,r){if(e[Ve])return;let o;n.type&8?o=le(r):o=$h(t,n),e[Ve]=o}var _o=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},xo=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=z;dt.trim())}function eg(e,t,n){e.queries===null&&(e.queries=new So),e.queries.track(new No(t,n))}function tg(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ei(e,t){return e.queries.getByIndex(t)}function ng(e,t){let n=e[I],r=Ei(n,t);return r.crossesNgTemplate?Ao(n,e,t,[]):pc(n,e,r,t)}function rg(e){return Object.getPrototypeOf(e.prototype).constructor}function og(e){let t=rg(e.type),n=!0,r=[e];for(;t;){let o;if(Be(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Mn(e.inputs),s.inputTransforms=Mn(e.inputTransforms),s.declaredInputs=Mn(e.declaredInputs),s.outputs=Mn(e.outputs);let a=o.hostBindings;a&&cg(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&ag(e,u),c&&ug(e,c),ig(e,o),Pl(e.outputs,o.outputs),Be(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=St(o.hostAttrs,n=St(n,o.hostAttrs))}}function Mn(e){return e===ct?{}:e===$?[]:e}function ag(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function ug(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cg(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function lg(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}var Me=class{},Oo=class{};var Fo=class extends Me{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qn(this);let o=Ma(t);this._bootstrapComponents=Su(o.bootstrap),this._r3Injector=gu(t,n,[{provide:Me,useValue:this},{provide:sr,useValue:this.componentFactoryResolver},...r],H(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ro=class extends Oo{constructor(t){super(),this.moduleType=t}create(t){return new Fo(this.moduleType,t,[])}};var Yn=class extends Me{constructor(t){super(),this.componentFactoryResolver=new qn(this),this.instance=null;let n=new Nt([...t.providers,{provide:Me,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],t.parent||Zo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dg(e,t,n=null){return new Yn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var hc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Et(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function gc(e){return pg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function fg(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function Eg(e){return(e&2)==2}function Cg(e,t){return e&131071|t<<17}function Po(e){return e|2}function gt(e){return(e&131068)>>2}function Lr(e,t){return e&-131069|t<<2}function bg(e){return(e&1)===1}function ko(e){return e|1}function Mg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ge(s),u=gt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Bt(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let f=Ge(e[a+1]);e[r+1]=_n(f,a),f!==0&&(e[f+1]=Lr(e[f+1],r)),e[a+1]=Cg(e[a+1],r)}else e[r+1]=_n(a,0),a!==0&&(e[a+1]=Lr(e[a+1],r)),a=r;else e[r+1]=_n(u,0),a===0?a=r:e[u+1]=Lr(e[u+1],r),u=r;c&&(e[r+1]=Po(e[r+1])),Qs(e,l,r,!0),Qs(e,l,r,!1),_g(t,l,e,r,i),s=_n(a,u),i?t.classBindings=s:t.styleBindings=s}function _g(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Bt(i,t)>=0&&(n[r+1]=ko(n[r+1]))}function Qs(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ge(o):gt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];xg(u,t)&&(a=!0,e[s+1]=r?ko(c):Po(c)),s=r?Ge(c):gt(c)}a&&(e[n+1]=r?Po(o):ko(o))}function xg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Bt(e,t)>=0:!1}var ee={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Tg(e){return e.substring(ee.key,ee.keyEnd)}function Sg(e){return Ng(e),mc(e,yc(e,0,ee.textEnd))}function mc(e,t){let n=ee.textEnd;return n===t?-1:(t=ee.keyEnd=Ag(e,ee.key=t,n),yc(e,t,n))}function Ng(e){ee.key=0,ee.keyEnd=0,ee.value=0,ee.valueEnd=0,ee.textEnd=e.length}function yc(e,t,n){for(;t32;)t++;return t}function Og(e,t,n){let r=x(),o=ti();if(Dt(r,o,t)){let i=G(),s=nu();$p(i,s,r,e,t,r[R],n,!1)}return Og}function Lo(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";yi(e,n,i[s],s,r)}function Fg(e,t){return Pg(e,t,null,!0),Fg}function HC(e){kg(Hg,Rg,e,!0)}function Rg(e,t){for(let n=Sg(t);n>=0;n=mc(t,n))qo(e,Tg(t),!0)}function Pg(e,t,n,r){let o=x(),i=G(),s=Qa(2);if(i.firstUpdatePass&&vc(i,e,s,r),t!==ve&&Dt(o,s,t)){let a=i.data[We()];Ic(i,a,o,o[R],e,o[s+1]=Gg(t,n),r,s)}}function kg(e,t,n,r){let o=G(),i=Qa(2);o.firstUpdatePass&&vc(o,null,i,r);let s=x();if(n!==ve&&Dt(s,i,n)){let a=o.data[We()];if(wc(a,r)&&!Dc(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Br(u,n||"")),Lo(o,a,s,n,r)}else Ug(o,a,s,s[R],s[i+1],s[i+1]=$g(e,t,n),r,i)}}function Dc(e,t){return t>=e.expandoStartIndex}function vc(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[We()],s=Dc(e,n);wc(i,r)&&t===null&&!s&&(t=!1),t=Lg(o,i,t,r),Mg(o,i,t,n,s,r)}}function Lg(e,t,n,r){let o=cf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=jr(null,e,t,n,r),n=jt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=jr(o,e,t,n,r),i===null){let u=jg(e,t,r);u!==void 0&&Array.isArray(u)&&(u=jr(null,e,t,u[1],r),u=jt(u,t.attrs,r),Vg(e,t,r,u))}else i=Bg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function jg(e,t,n){let r=n?t.classBindings:t.styleBindings;if(gt(r)!==0)return e[Ge(r)]}function Vg(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Ge(o)]=r}function Bg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=n[o+1];f===ve&&(f=d?$:void 0);let p=d?xr(f,r):l===r?f:void 0;if(c&&!Qn(p)&&(p=xr(u,r)),Qn(p)&&(a=p,s))return a;let h=e[o+1];o=s?Ge(h):gt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=xr(u,r))}return a}function Qn(e){return e!==void 0}function Gg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=H(di(e)))),e}function wc(e,t){return(e.flags&(t?8:16))!==0}function zg(e,t,n,r,o,i){let s=t.consts,a=Vn(s,o),u=zt(t,e,2,r,a);return Qu(t,n,u,Vn(s,i)),u.attrs!==null&&Co(u,u.attrs,!1),u.mergedAttrs!==null&&Co(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Ec(e,t,n,r){let o=x(),i=G(),s=oe+e,a=o[R],u=i.firstCreatePass?zg(s,i,o,t,n,r):i.data[s],c=qg(i,o,u,a,t,e);o[s]=c;let l=Jo(u);return Ut(u,!0),Bu(a,c,u),!gg(u)&&ii()&&hi(i,o,c,u),Kd()===0&&He(c,o),Jd(),l&&(Wu(i,o,u),zu(i,u,o)),r!==null&&qu(o,u),Ec}function Cc(){let e=Z();qa()?Ya():(e=e.parent,Ut(e,!1));let t=e;ef(t)&&tf(),Xd();let n=G();return n.firstCreatePass&&(ai(n,e),Ra(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&gf(t)&&Lo(n,t,x(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&mf(t)&&Lo(n,t,x(),t.stylesWithoutHost,!1),Cc}function Wg(e,t,n,r){return Ec(e,t,n,r),Cc(),Wg}var qg=(e,t,n,r,o,i)=>(si(!0),Nu(r,o,df()));var Zn="en-US";var Yg=Zn;function Qg(e){typeof e=="string"&&(Yg=e.toLowerCase().replace(/_/g,"-"))}function Zg(e,t,n,r){let o=x(),i=G(),s=Z();return Jg(i,o,o[R],s,e,t,r),Zg}function Kg(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Jg(e,t,n,r,o,i,s){let a=Jo(r),c=e.firstCreatePass&&tc(e),l=t[pe],d=ec(t),f=!0;if(r.type&3||s){let v=Q(r,t),P=s?s(v):v,N=d.length,q=s?de=>s(le(de[r.index])):r.index,j=null;if(!s&&a&&(j=Kg(e,t,o,r.index)),j!==null){let de=j.__ngLastListenerFn__||j;de.__ngNextListenerFn__=i,j.__ngLastListenerFn__=i,f=!1}else{i=Js(r,t,l,i,!1);let de=n.listen(P,o,i);d.push(i,de),c&&c.push(o,q,N,N+1)}}else i=Js(r,t,l,i,!1);let p=r.outputs,h;if(f&&p!==null&&(h=p[o])){let v=h.length;if(v)for(let P=0;P-1?ze(e.index,t):t;vi(a);let u=Ks(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)u=Ks(t,n,c,s)&&u,c=c.__ngNextListenerFn__;return o&&u===!1&&s.preventDefault(),u}}function Xg(e,t){let n=null,r=pd(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function YC(e,t=""){let n=x(),r=G(),o=e+oe,i=r.firstCreatePass?zt(r,o,1,t,null):r.data[o],s=tm(r,n,i,t,e);n[o]=s,ii()&&hi(r,n,s,i),Ut(i,!1)}var tm=(e,t,n,r,o)=>(si(!0),fp(t[R],r));function nm(e){return bc("",e,""),nm}function bc(e,t,n){let r=x(),o=wg(r,e,t,n);return o!==ve&&rh(r,We(),o),bc}var rm=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=Ta(!1,r.type),i=o.length>0?dg([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=O({token:t,providedIn:"environment",factory:()=>new t(U(be))});let e=t;return e})();function QC(e){cc("NgStandalone"),e.getStandaloneInjector=t=>t.get(rm).getOrCreateStandaloneInjector(e)}function om(e,t){let n=e[t];return n===ve?void 0:n}function im(e,t,n,r,o,i){let s=t+n;return Dt(e,s,o)?hg(e,s+1,i?r.call(i,o):r(o)):om(e,s+1)}function ZC(e,t){let n=G(),r,o=e+oe;n.firstCreatePass?(r=sm(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Pe(r.type,!0)),s,a=B(qe);try{let u=Hn(!1),c=i();return Hn(u),em(n,x(),o,c),c}finally{B(a)}}function sm(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function KC(e,t,n){let r=e+oe,o=x(),i=Wd(o,r);return am(o,r)?im(o,rf(),t,i.transform,n,i):i.transform(n)}function am(e,t){return e[I].data[t].pure}var JC=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var um=new S("");function ar(e){return!!e&&typeof e.then=="function"}function Ci(e){return!!e&&typeof e.subscribe=="function"}var cm=new S(""),Mc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=A(cm,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(ar(s))r.push(s);else if(Ci(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),lm=new S("");function dm(){Hi(()=>{throw new M(600,!1)})}function fm(e){return e.isBoundToModule}function pm(e,t,n){try{let r=n();return ar(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _c=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A(mu),this.afterRenderEffectManager=A(lc),this.externalTestViews=new Set,this.beforeRender=new ie,this.afterTick=new ie,this.componentTypes=[],this.components=[],this.isStable=A(hc).hasPendingTasks.pipe(se(r=>!r)),this._injector=A(be)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Wn;if(!this._injector.get(Mc).done){let p=!i&&Ed(r),h=!1;throw new M(405,h)}let a;i?a=r:a=this._injector.get(sr).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let u=fm(a)?void 0:this._injector.get(Me),c=o||a.selector,l=a.create(ci.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(um,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Vr(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new M(101,!1);let o=C(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,C(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===oc)throw new M(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)hm(a,s,u)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>jo(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>jo(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;Vr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(lm,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Vr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new M(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Vr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function hm(e,t,n){!t&&!jo(e)||gm(e,n,t)}function jo(e){return ei(e)}function gm(e,t,n){let r;n?(r=0,e[g]|=1024):e[g]&64?r=0:r=1,ic(e,t,r)}var Vo=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},XC=(()=>{let t=class t{compileModuleSync(r){return new Ro(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=Ma(r),s=Su(i.declarations).reduce((a,u)=>{let c=Le(u);return c&&a.push(new Lt(c)),a},[]);return new Vo(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var mm=(()=>{let t=class t{constructor(){this.zone=A(ne),this.applicationRef=A(_c)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ym(e){return[{provide:ne,useFactory:e},{provide:kn,multi:!0,useFactory:()=>{let t=A(mm,{optional:!0});return()=>t.initialize()}},{provide:kn,multi:!0,useFactory:()=>{let t=A(wm);return()=>{t.initialize()}}},{provide:mu,useFactory:Dm}]}function Dm(){let e=A(ne),t=A(pt);return n=>e.runOutsideAngular(()=>t.handleError(n))}function vm(e){let t=ym(()=>new ne(Im(e)));return bd([[],t])}function Im(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var wm=(()=>{let t=class t{constructor(){this.subscription=new F,this.initialized=!1,this.zone=A(ne),this.pendingTasks=A(hc)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Em(){return typeof $localize<"u"&&$localize.locale||Zn}var bi=new S("",{providedIn:"root",factory:()=>A(bi,w.Optional|w.SkipSelf)||Em()});var xc=new S("");var On=null;function Cm(e=[],t){return ci.create({name:t,providers:[{provide:Aa,useValue:"platform"},{provide:xc,useValue:new Set([()=>On=null])},...e]})}function bm(e=[]){if(On)return On;let t=Cm(e);return On=t,dm(),Mm(t),t}function Mm(e){e.get(Vf,null)?.forEach(n=>n())}var Mi=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=_m;let e=t;return e})();function _m(e){return xm(Z(),x(),(e&16)===16)}function xm(e,t,n){if(tr(e)&&!n){let r=ze(e.index,t);return new Ue(r,r)}else if(e.type&47){let r=t[re];return new Ue(r,t)}return null}var Bo=class{constructor(){}supports(t){return gc(t)}create(t){return new $o(t)}},Tm=(e,t)=>t,$o=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Tm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Ho(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Kn),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Kn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Ho=class{constructor(t,n){this.item=t,this.trackById=n,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}},Uo=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Kn=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Uo,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Xs(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||ea()),deps:[[t,new td,new ed]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new M(901,!1)}};t.\u0275prov=O({token:t,providedIn:"root",factory:ea});let e=t;return e})();function eb(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=bm(r),i=[vm(),...n||[]],a=new Yn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(ne);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(pt,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:p=>{c.handleError(p)}})});let d=()=>a.destroy(),f=o.get(xc);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),pm(c,u,()=>{let p=a.get(Mc);return p.runInitializers(),p.donePromise.then(()=>{let h=a.get(bi,Zn);Qg(h||Zn);let v=a.get(_c);return t!==void 0&&v.bootstrap(t),v})})})}catch(t){return Promise.reject(t)}}function Sm(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function xi(e){let t=C(null);try{return e()}finally{C(t)}}var Fc=null;function Ti(){return Fc}function Mb(e){Fc??=e}var Tc=class{};var Rc=new S(""),Pc=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:()=>A(Om),providedIn:"platform"});let e=t;return e})();var Om=(()=>{let t=class t extends Pc{constructor(){super(),this._doc=A(Rc),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ti().getBaseHref(this._doc)}onPopState(r){let o=Ti().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",r,!1),()=>o.removeEventListener("popstate",r)}onHashChange(r){let o=Ti().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",r,!1),()=>o.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,o,i){this._history.pushState(r,o,i)}replaceState(r,o,i){this._history.replaceState(r,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function kc(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Sc(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Ye(e){return e&&e[0]!=="?"?"?"+e:e}var Oi=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=O({token:t,factory:()=>A(Rm),providedIn:"root"});let e=t;return e})(),Fm=new S(""),Rm=(()=>{let t=class t extends Oi{constructor(r,o){super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??A(Rc).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return kc(this._baseHref,r)}path(r=!1){let o=this._platformLocation.pathname+Ye(this._platformLocation.search),i=this._platformLocation.hash;return i&&r?`${o}${i}`:o}pushState(r,o,i,s){let a=this.prepareExternalUrl(i+Ye(s));this._platformLocation.pushState(r,o,a)}replaceState(r,o,i,s){let a=this.prepareExternalUrl(i+Ye(s));this._platformLocation.replaceState(r,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){this._platformLocation.historyGo?.(r)}};t.\u0275fac=function(o){return new(o||t)(U(Pc),U(Fm,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Pm=(()=>{let t=class t{constructor(r){this._subject=new Fe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let o=this._locationStrategy.getBaseHref();this._basePath=jm(Sc(Nc(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,o=""){return this.path()==this.normalize(r+Ye(o))}normalize(r){return t.stripTrailingSlash(Lm(this._basePath,Nc(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,o="",i=null){this._locationStrategy.pushState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ye(o)),i)}replaceState(r,o="",i=null){this._locationStrategy.replaceState(i,"",r,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ye(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){this._locationStrategy.historyGo?.(r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",o){this._urlChangeListeners.forEach(i=>i(r,o))}subscribe(r,o,i){return this._subject.subscribe({next:r,error:o,complete:i})}};t.normalizeQueryParams=Ye,t.joinWithSlash=kc,t.stripTrailingSlash=Sc,t.\u0275fac=function(o){return new(o||t)(U(Oi))},t.\u0275prov=O({token:t,factory:()=>km(),providedIn:"root"});let e=t;return e})();function km(){return new Pm(U(Oi))}function Lm(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Nc(e){return e.replace(/\/index.html$/,"")}function jm(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function _b(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Si=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},xb=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Si(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),Ac(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Ac(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(qe(Wt),qe(ht),qe(_i))},t.\u0275dir=wa({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Ac(e,t){e.context.$implicit=t.item}function Vm(e,t){return new M(2100,!1)}var Ni=class{createSubscription(t,n){return xi(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){xi(()=>t.unsubscribe())}},Ai=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},Bm=new Ai,$m=new Ni,Tb=(()=>{let t=class t{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,o=>this._updateLatestValue(r,o))}_selectStrategy(r){if(ar(r))return Bm;if(Ci(r))return $m;throw Vm(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,o){r===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(qe(Mi,16))},t.\u0275pipe=Ea({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var Sb=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ia({type:t}),t.\u0275inj=sa({});let e=t;return e})(),Hm="browser",Um="server";function Nb(e){return e===Hm}function Ab(e){return e===Um}var Oc=class{};export{vt as a,It as b,Gm as c,F as d,Qc as e,b as f,wr as g,Er as h,ie as i,Et as j,bt as k,we as l,il as m,sl as n,al as o,Ne as p,se as q,gl as r,Ae as s,In as t,yl as u,Dl as v,Oe as w,hs as x,vl as y,Il as z,Mt as A,br as B,wl as C,El as D,Ml as E,ms as F,Mr as G,_l as H,xl as I,Tl as J,Sl as K,Nl as L,Al as M,Ol as N,Fl as O,M as P,O as Q,sa as R,EC as S,S as T,w as U,U as V,A as W,Tt as X,ke as Y,CC as Z,Ia as _,wa as $,bd as aa,Aa as ba,be as ca,bC as da,ka as ea,MC as fa,xf as ga,ci as ha,pt as ia,yt as ja,Fe as ka,_C as la,xC as ma,Vf as na,Bf as oa,TC as pa,SC as qa,di as ra,NC as sa,AC as ta,OC as ua,FC as va,RC as wa,PC as xa,Zf as ya,kC as za,lp as Aa,Un as Ba,LC as Ca,qe as Da,jC as Ea,Do as Fa,wo as Ga,cc as Ha,ne as Ia,Wt as Ja,og as Ka,lg as La,Oo as Ma,dg as Na,hc as Oa,yg as Pa,Ig as Qa,Og as Ra,Fg as Sa,HC as Ta,Ec as Ua,Cc as Va,Wg as Wa,Zg as Xa,UC as Ya,GC as Za,zC as _a,WC as $a,qC as ab,YC as bb,nm as cb,QC as db,ZC as eb,KC as fb,JC as gb,ar as hb,cm as ib,lm as jb,_c as kb,XC as lb,Mi as mb,eb as nb,Sm as ob,Ti as pb,Mb as qb,Tc as rb,Rc as sb,Pm as tb,_b as ub,xb as vb,Tb as wb,Sb as xb,Hm as yb,Nb as zb,Ab,Oc as Bb}; diff --git a/index.html b/index.html index e31cca9..ee50de8 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,8 @@ + - + diff --git a/main-77SOU5AP.js b/main-77SOU5AP.js deleted file mode 100644 index e1bb279..0000000 --- a/main-77SOU5AP.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as rt,$a as Ye,A as Hn,Aa as W,Ab as cn,B as nt,Ba as me,Bb as dn,C as To,Ca as Gt,D as Ro,Da as C,E as ut,Ea as he,F as gt,Fa as Vo,G as qn,Ga as Ke,H as Ao,Ha as Jn,I as Do,Ia as A,J as So,Ja as Wo,K as He,Ka as Ho,L as qe,La as Mt,M as J,Ma as qo,N as Vt,Na as Go,O as D,Oa as pe,P as R,Pa as Xn,Q as g,Qa as kt,R as S,Ra as Qn,S as Mo,Sa as vt,T as w,Ta as Kt,U as Gn,Ua as H,V as m,Va as X,W as h,Wa as it,X as le,Xa as Ze,Y as O,Ya as Ot,Z as N,Za as yt,_ as M,_a as ti,a as u,aa as Rt,ab as Je,b as U,ba as ko,bb as at,ca as Wt,cb as Xe,d as ce,da as mt,db as F,e as xo,ea as Kn,eb as Qe,f as We,fa as Zn,fb as tn,g as $n,ga as Yn,gb as en,h as Bn,ha as Oo,hb as Ko,i as Z,ia as At,ib as ei,j as k,ja as B,jb as ni,k as ft,ka as Dt,kb as nn,l as V,la as No,lb as ii,m as b,ma as Ge,mb as on,n as Ct,na as Fo,nb as Zo,o as Io,oa as ht,ob as st,p as Eo,pa as St,pb as oi,q as v,qa as ue,qb as Yo,r as de,ra as Ht,rb as Jo,s as Y,sa as qt,sb as T,t as Bt,ta as Po,tb as rn,u as Vn,ua as jo,ub as an,v as Co,va as Lo,vb as Xo,w as lt,wa as Uo,wb as sn,x as bt,xa as zo,xb as fe,y as Tt,ya as $o,yb as Qo,z as Wn,za as Bo,zb as tr}from"./chunk-GMEIUZRC.js";var ge=class{},un=class{},Nt=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ai=class{encodeKey(t){return er(t)}encodeValue(t){return er(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Qa(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var ts=/%(\d[a-f0-9])/gi,es={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function er(n){return encodeURIComponent(n).replace(ts,(t,o)=>es[o]??t)}function ln(n){return`${n}`}var _t=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ai,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Qa(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(ln):[ln(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(ln(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(ln(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var si=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function ns(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function nr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function ir(n){return typeof Blob<"u"&&n instanceof Blob}function or(n){return typeof FormData<"u"&&n instanceof FormData}function is(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var be=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(ns(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Nt,this.context??=new si,!this.params)this.params=new _t,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sf.set(_,t.setHeaders[_]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((f,_)=>f.set(_,t.setParams[_]),l)),new n(o,e,a,{params:l,headers:c,context:p,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},Zt=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(Zt||{}),ve=class{constructor(t,o=pn.Ok,e="OK"){this.headers=t.headers||new Nt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ci=class n extends ve{constructor(t={}){super(t),this.type=Zt.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},mn=class n extends ve{constructor(t={}){super(t),this.type=Zt.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},hn=class extends ve{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},pn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(pn||{});function ri(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var ye=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof be)a=e;else{let c;r.headers instanceof Nt?c=r.headers:c=new Nt(r.headers);let l;r.params&&(r.params instanceof _t?l=r.params:l=new _t({fromObject:r.params})),a=new be(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=b(a).pipe(Tt(c=>this.handler.handle(c)));if(e instanceof be||r.observe==="events")return s;let d=s.pipe(lt(c=>c instanceof mn));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new _t().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,ri(r,i))}post(e,i,r={}){return this.request("POST",e,ri(r,i))}put(e,i,r={}){return this.request("PUT",e,ri(r,i))}};t.\u0275fac=function(i){return new(i||t)(m(ge))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function dr(n,t){return t(n)}function os(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function rs(n,t,o){return(e,i)=>mt(o,()=>t(e,r=>n(r,i)))}var as=new w(""),di=new w(""),ss=new w(""),cs=new w("");function ds(){let n=null;return(t,o)=>{n===null&&(n=(h(as,{optional:!0})??[]).reduceRight(os,dr));let e=h(pe),i=e.add();return n(t,o).pipe(ut(()=>e.remove(i)))}}var rr=(()=>{let t=class t extends ge{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=h(pe);let r=h(cs,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(di),...this.injector.get(ss,[])]));this.chain=r.reduceRight((a,s)=>rs(a,s,this.injector),dr)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(ut(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(m(un),m(Wt))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();var ls=/^\)\]\}',?\n/;function us(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var ar=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new R(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?V(i.\u0275loadImpl()):b(null)).pipe(J(()=>new We(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,x)=>s.setRequestHeader(E,x.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let E=e.detectContentTypeHeader();E!==null&&s.setRequestHeader("Content-Type",E)}if(e.responseType){let E=e.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let E=s.statusText||"OK",x=new Nt(s.getAllResponseHeaders()),et=us(s)||e.url;return c=new ci({headers:x,status:s.status,statusText:E,url:et}),c},p=()=>{let{headers:E,status:x,statusText:et,url:wo}=l(),$=null;x!==pn.NoContent&&($=typeof s.response>"u"?s.responseText:s.response),x===0&&(x=$?pn.Ok:0);let zn=x>=200&&x<300;if(e.responseType==="json"&&typeof $=="string"){let Ka=$;$=$.replace(ls,"");try{$=$!==""?JSON.parse($):null}catch(Za){$=Ka,zn&&(zn=!1,$={error:Za,text:$})}}zn?(a.next(new mn({body:$,headers:E,status:x,statusText:et,url:wo||void 0})),a.complete()):a.error(new hn({error:$,headers:E,status:x,statusText:et,url:wo||void 0}))},f=E=>{let{url:x}=l(),et=new hn({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:x||void 0});a.error(et)},_=!1,K=E=>{_||(a.next(l()),_=!0);let x={type:Zt.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),e.responseType==="text"&&s.responseText&&(x.partialText=s.responseText),a.next(x)},L=E=>{let x={type:Zt.UploadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),a.next(x)};return s.addEventListener("load",p),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),e.reportProgress&&(s.addEventListener("progress",K),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:Zt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",p),s.removeEventListener("timeout",f),e.reportProgress&&(s.removeEventListener("progress",K),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(m(dn))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),lr=new w(""),ms="XSRF-TOKEN",hs=new w("",{providedIn:"root",factory:()=>ms}),ps="X-XSRF-TOKEN",fs=new w("",{providedIn:"root",factory:()=>ps}),fn=class{},bs=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=an(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(m(T),m(ht),m(hs))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function gs(n,t){let o=n.url.toLowerCase();if(!h(lr)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=h(fn).getToken(),i=h(fs);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var ur=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(ur||{});function vs(n,t){return{\u0275kind:n,\u0275providers:t}}function li(...n){let t=[ye,ar,rr,{provide:ge,useExisting:rr},{provide:un,useExisting:ar},{provide:di,useValue:gs,multi:!0},{provide:lr,useValue:!0},{provide:fn,useClass:bs}];for(let o of n)t.push(...o.\u0275providers);return Rt(t)}var sr=new w("");function ys(){return vs(ur.LegacyInterceptors,[{provide:sr,useFactory:ds},{provide:di,useExisting:sr,multi:!0}])}var mr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({providers:[li(ys())]});let n=t;return n})();var hi=class extends Jo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},pi=class n extends hi{static makeCurrent(){Yo(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=ws();return o==null?null:xs(o)}resetBaseElement(){_e=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return an(document.cookie,t)}},_e=null;function ws(){return _e=_e||document.querySelector("base"),_e?_e.getAttribute("href"):null}function xs(n){return new URL(n,document.baseURI).pathname}var Is=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),fi=new w(""),vr=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new R(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(m(fi),m(A))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),bn=class{constructor(t){this._doc=t}},ui="ng-app-id",yr=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=cn(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${ui}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(ui),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(ui,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(m(T),m(Ge),m(ue,8),m(ht))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),mi={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gi=/%COMP%/g,_r="%COMP%",Es=`_nghost-${_r}`,Cs=`_ngcontent-${_r}`,Ts=!0,Rs=new w("",{providedIn:"root",factory:()=>Ts});function As(n){return Cs.replace(gi,n)}function Ds(n){return Es.replace(gi,n)}function wr(n,t){return t.map(o=>o.replace(gi,n))}var gn=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=cn(d),this.defaultRenderer=new we(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===le.ShadowDom&&(i=U(u({},i),{encapsulation:le.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof vn?r.applyToHost(e):r instanceof xe&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case le.Emulated:a=new vn(c,l,i,this.appId,p,s,d,f);break;case le.ShadowDom:return new bi(c,l,e,i,s,d,this.nonce,f);default:a=new xe(c,l,i,p,s,d,f);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(m(vr),m(yr),m(Ge),m(Rs),m(T),m(ht),m(A),m(ue))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),we=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(mi[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(pr(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(pr(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new R(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=mi[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=mi[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(me.DashCase|me.Important)?t.style.setProperty(o,e,i&me.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&me.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=oi().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function pr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var bi=class extends we{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=wr(i.id,i.styles);for(let l of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},xe=class extends we{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?wr(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},vn=class extends xe{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=As(c),this.hostAttr=Ds(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},Ss=(()=>{let t=class t extends bn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(m(T))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),fr=["alt","control","meta","shift"],Ms={"\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"},ks={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Os=(()=>{let t=class t extends bn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oi().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),fr.forEach(l=>{let p=i.indexOf(l);p>-1&&(i.splice(p,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=Ms[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),fr.forEach(s=>{if(s!==r){let d=ks[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(m(T))},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})();function xr(n,t){return Zo(u({rootComponent:n},Ns(t)))}function Ns(n){return{appProviders:[...Us,...n?.providers??[]],platformProviders:Ls}}function Fs(){pi.makeCurrent()}function Ps(){return new At}function js(){return No(document),document}var Ls=[{provide:ht,useValue:Qo},{provide:Fo,useValue:Fs,multi:!0},{provide:T,useFactory:js,deps:[]}];var Us=[{provide:ko,useValue:"root"},{provide:At,useFactory:Ps,deps:[]},{provide:fi,useClass:Ss,multi:!0,deps:[T,A,ht]},{provide:fi,useClass:Os,multi:!0,deps:[T]},gn,yr,vr,{provide:Ke,useExisting:gn},{provide:dn,useClass:Is,deps:[]},[]];var Ir=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(m(T))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var vi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=m(zs),r},providedIn:"root"});let n=t;return n})(),zs=(()=>{let t=class t extends vi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case W.NONE:return i;case W.HTML:return qt(i,"HTML")?Ht(i):Bo(this._doc,String(i)).toString();case W.STYLE:return qt(i,"Style")?Ht(i):i;case W.SCRIPT:if(qt(i,"Script"))return Ht(i);throw new R(5200,!1);case W.URL:return qt(i,"URL")?Ht(i):$o(String(i));case W.RESOURCE_URL:if(qt(i,"ResourceURL"))return Ht(i);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return Po(e)}bypassSecurityTrustStyle(e){return jo(e)}bypassSecurityTrustScript(e){return Lo(e)}bypassSecurityTrustUrl(e){return Uo(e)}bypassSecurityTrustResourceUrl(e){return zo(e)}};t.\u0275fac=function(i){return new(i||t)(m(T))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",je=Symbol("RouteTitle"),Ii=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function te(n){return new Ii(n)}function Bs(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function Mr(n){return n.length>0?n[n.length-1]:null}function It(n){return Io(n)?n:Ko(n)?V(Promise.resolve(n)):b(n)}var Ws={exact:Or,subset:Nr},kr={exact:Hs,subset:qs,ignored:()=>!0};function Cr(n,t,o){return Ws[o.paths](n.root,t.root,o.matrixParams)&&kr[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Hs(n,t){return ct(n,t)}function Or(n,t,o){if(!Pt(n.segments,t.segments)||!wn(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!Or(n.children[e],t.children[e],o))return!1;return!0}function qs(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>Sr(n[o],t[o]))}function Nr(n,t,o){return Fr(n,t,t.segments,o)}function Fr(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Pt(i,o)||t.hasChildren()||!wn(i,o,e))}else if(n.segments.length===o.length){if(!Pt(n.segments,o)||!wn(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!Nr(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Pt(n.segments,i)||!wn(n.segments,i,e)||!n.children[y]?!1:Fr(n.children[y],t,r,e)}}function wn(n,t,o){return t.every((e,i)=>kr[o](n[i].parameters,e.parameters))}var wt=class{constructor(t=new I([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=te(this.queryParams),this._queryParamMap}toString(){return Zs.serialize(this)}},I=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xn(this)}},Ft=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=te(this.parameters),this._parameterMap}toString(){return jr(this)}};function Gs(n,t){return Pt(n,t)&&n.every((o,e)=>ct(o.parameters,t[e].parameters))}function Pt(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function Ks(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Yi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>new En,providedIn:"root"});let n=t;return n})(),En=class{parse(t){let o=new Ti(t);return new wt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${Ie(t.root,!0)}`,e=Xs(t.queryParams),i=typeof t.fragment=="string"?`#${Ys(t.fragment)}`:"";return`${o}${e}${i}`}},Zs=new En;function xn(n){return n.segments.map(t=>jr(t)).join("/")}function Ie(n,t){if(!n.hasChildren())return xn(n);if(t){let o=n.children[y]?Ie(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${Ie(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=Ks(n,(e,i)=>i===y?[Ie(n.children[y],!1)]:[`${i}:${Ie(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${xn(n)}/${o[0]}`:`${xn(n)}/(${o.join("//")})`}}function Pr(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yn(n){return Pr(n).replace(/%3B/gi,";")}function Ys(n){return encodeURI(n)}function Ci(n){return Pr(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function In(n){return decodeURIComponent(n)}function Tr(n){return In(n.replace(/\+/g,"%20"))}function jr(n){return`${Ci(n.path)}${Js(n.parameters)}`}function Js(n){return Object.entries(n).map(([t,o])=>`;${Ci(t)}=${Ci(o)}`).join("")}function Xs(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${yn(o)}=${yn(i)}`).join("&"):`${yn(o)}=${yn(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var Qs=/^[^\/()?;#]+/;function yi(n){let t=n.match(Qs);return t?t[0]:""}var tc=/^[^\/()?;=#]+/;function ec(n){let t=n.match(tc);return t?t[0]:""}var nc=/^[^=?&#]+/;function ic(n){let t=n.match(nc);return t?t[0]:""}var oc=/^[^&#]+/;function rc(n){let t=n.match(oc);return t?t[0]:""}var Ti=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new I([],{}):new I([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new I(t,o)),e}parseSegment(){let t=yi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(t),new Ft(In(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=ec(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=yi(this.remaining);i&&(e=i,this.capture(e))}t[In(o)]=In(e)}parseQueryParam(t){let o=ic(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=rc(this.remaining);a&&(e=a,this.capture(e))}let i=Tr(o),r=Tr(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=yi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new I([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new R(4011,!1)}};function Lr(n){return n.segments.length>0?new I([],{[y]:n}):n}function Ur(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=Ur(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new I(n.segments,t);return ac(o)}function ac(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new I(n.segments.concat(t.segments),t.children)}return n}function ee(n){return n instanceof wt}function sc(n,t,o=null,e=null){let i=zr(n);return $r(i,t,o,e)}function zr(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new I(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=Lr(e);return t??i}function $r(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return _i(i,i,i,o,e);let r=cc(t);if(r.toRoot())return _i(i,i,new I([],{}),o,e);let a=dc(r,i,n),s=a.processChildren?Te(a.segmentGroup,a.index,r.commands):Vr(a.segmentGroup,a.index,r.commands);return _i(i,a.segmentGroup,s,o,e)}function Cn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function De(n){return typeof n=="object"&&n!=null&&n.outlets}function _i(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=Br(n,t,o);let s=Lr(Ur(a));return new wt(s,r,i)}function Br(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=Br(r,t,o)}),new I(n.segments,e)}var Tn=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&Cn(e[0]))throw new R(4003,!1);let i=e.find(De);if(i&&i!==Mr(e))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function cc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Tn(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new Tn(o,t,e)}var Xt=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function dc(n,t,o){if(n.isAbsolute)return new Xt(t,!0,0);if(!o)return new Xt(t,!1,NaN);if(o.parent===null)return new Xt(o,!0,0);let e=Cn(n.commands[0])?0:1,i=o.segments.length-1+e;return lc(o,i,n.numberOfDoubleDots)}function lc(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new R(4005,!1);i=e.segments.length}return new Xt(e,!1,i-r)}function uc(n){return De(n[0])?n[0].outlets:{[y]:n}}function Vr(n,t,o){if(n??=new I([],{}),n.segments.length===0&&n.hasChildren())return Te(n,t,o);let e=mc(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=Te(n.children[y],t,o);return new I(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Vr(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new I(n.segments,i)}}function mc(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(De(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ar(d,c,a))return r;e+=2}else{if(!Ar(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function Ri(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=Ri(new I([],{}),0,e))}),t}function Rr(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function Ar(n,t,o){return n==o.path&&ct(t,o.parameters)}var Re="imperative",j=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(j||{}),Q=class{constructor(t,o){this.id=t,this.url=o}},Se=class extends Q{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends Q{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},G=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(G||{}),Ai=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Ai||{}),xt=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Lt=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},Me=class extends Q{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Rn=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Di=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Si=class extends Q{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Mi=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ki=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oi=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ni=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fi=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pi=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ji=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Li=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ke=class{},Oe=class{constructor(t){this.url=t}};var Ui=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new On,this.attachRef=null}},On=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Ui,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),An=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=zi(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=zi(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=$i(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return $i(t,this._root).map(o=>o.value)}};function zi(n,t){if(n===t.value)return t;for(let o of t.children){let e=zi(n,o);if(e)return e}return null}function $i(n,t){if(n===t.value)return[t];for(let o of t.children){let e=$i(n,o);if(e.length)return e.unshift(t),e}return[]}var q=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function Jt(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var Dn=class extends An{constructor(t,o){super(t),this.snapshot=o,Xi(this,t)}toString(){return this.snapshot.toString()}};function Wr(n){let t=pc(n),o=new k([new Ft("",{})]),e=new k({}),i=new k({}),r=new k({}),a=new k(""),s=new ne(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new Dn(new q(s,[]),t)}function pc(n){let t={},o={},e={},i="",r=new Ne([],t,e,i,o,y,n,null,{});return new Sn("",new q(r,[]))}var ne=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[je]))??b(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}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(v(t=>te(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>te(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ji(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:u(u({},t.params),n.params),data:u(u({},t.data),n.data),resolve:u(u(u(u({},n.data),t.data),i?.data),n._resolvedData)}:e={params:u({},n.params),data:u({},n.data),resolve:u(u({},n.data),n._resolvedData??{})},i&&qr(i)&&(e.resolve[je]=i.title),e}var Ne=class{get title(){return this.data?.[je]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,this._resolve=c}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??=te(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=te(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Sn=class extends An{constructor(t,o){super(o),this.url=t,Xi(this,o)}toString(){return Hr(this._root)}};function Xi(n,t){t.value._routerState=n,t.children.forEach(o=>Xi(n,o))}function Hr(n){let t=n.children.length>0?` { ${n.children.map(Hr).join(", ")} } `:"";return`${n.value}${t}`}function wi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,ct(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),ct(t.params,o.params)||n.paramsSubject.next(o.params),Vs(t.url,o.url)||n.urlSubject.next(o.url),ct(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Bi(n,t){let o=ct(n.params,t.params)&&Gs(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||Bi(n.parent,t.parent))}function qr(n){return typeof n.title=="string"||n.title===null}var Qi=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new Dt,this.deactivateEvents=new Dt,this.attachEvents=new Dt,this.detachEvents=new Dt,this.parentContexts=h(On),this.location=h(Wo),this.changeDetector=h(on),this.environmentInjector=h(Wt),this.inputBinder=h(to,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new Vi(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Kn]});let n=t;return n})(),Vi=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===ne?this.route:t===On?this.childContexts:this.parent.get(t,o)}},to=new w("");function fc(n,t,o){let e=Fe(n,t._root,o?o._root:void 0);return new Dn(e,t)}function Fe(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=bc(n,t,o);return new q(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Fe(n,s)),a}}let e=gc(t.value),i=t.children.map(r=>Fe(n,r));return new q(e,i)}}function bc(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Fe(n,e,i);return Fe(n,e)})}function gc(n){return new ne(new k(n.url),new k(n.params),new k(n.queryParams),new k(n.fragment),new k(n.data),n.outlet,n.component,n)}var Gr="ngNavigationCancelingError";function Kr(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=ee(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Zr(!1,G.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Zr(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[Gr]=!0,o.cancellationCode=t,o}function vc(n){return Yr(n)&&ee(n.url)}function Yr(n){return!!n&&n[Gr]}var yc=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[F],decls:1,vars:0,template:function(i,r){i&1&&it(0,"router-outlet")},dependencies:[Qi],encapsulation:2});let n=t;return n})();function _c(n,t){return n.providers&&!n._injector&&(n._injector=Go(n.providers,t,`Route: ${n.path}`)),n._injector??t}function eo(n){let t=n.children&&n.children.map(eo),o=t?U(u({},n),{children:t}):u({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=yc),o}function dt(n){return n.outlet||y}function wc(n,t){let o=n.filter(e=>dt(e)===t);return o.push(...n.filter(e=>dt(e)!==t)),o}function Le(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var xc=(n,t,o,e)=>v(i=>(new Wi(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),Wi=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),wi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=Jt(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=Jt(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=Jt(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=Jt(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new Li(r.value.snapshot))}),t.children.length&&this.forwardEvent(new Pi(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(wi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),wi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=Le(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Mn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Qt=class{constructor(t,o){this.component=t,this.route=o}};function Ic(n,t,o){let e=n._root,i=t?t._root:null;return Ee(e,i,o,[e.value])}function Ec(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function oe(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!Mo(n)?n:t.get(n):e}function Ee(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=Jt(t);return n.children.forEach(a=>{Cc(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Ae(s,o.getContext(a),i)),i}function Cc(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=Tc(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Mn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Ee(n,t,s?s.children:null,e,i):Ee(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Qt(s.outlet.component,a))}else a&&Ae(t,s,i),i.canActivateChecks.push(new Mn(e)),r.component?Ee(n,null,s?s.children:null,e,i):Ee(n,null,o,e,i);return i}function Tc(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Pt(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Pt(n.url,t.url)||!ct(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Bi(n,t)||!ct(n.queryParams,t.queryParams);case"paramsChange":default:return!Bi(n,t)}}function Ae(n,t,o){let e=Jt(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?Ae(a,t.children.getContext(r),o):Ae(a,null,o):Ae(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new Qt(t.outlet.component,i)):o.canDeactivateChecks.push(new Qt(null,i)):o.canDeactivateChecks.push(new Qt(null,i))}function Ue(n){return typeof n=="function"}function Rc(n){return typeof n=="boolean"}function Ac(n){return n&&Ue(n.canLoad)}function Dc(n){return n&&Ue(n.canActivate)}function Sc(n){return n&&Ue(n.canActivateChild)}function Mc(n){return n&&Ue(n.canDeactivate)}function kc(n){return n&&Ue(n.canMatch)}function Jr(n){return n instanceof Eo||n?.name==="EmptyError"}var _n=Symbol("INITIAL_VALUE");function ie(){return J(n=>de(n.map(t=>t.pipe(nt(1),qe(_n)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===_n)return _n;if(o===!1||o instanceof wt)return o}return!0}),lt(t=>t!==_n),nt(1)))}function Oc(n,t){return Y(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?b(U(u({},o),{guardsResult:!0})):Nc(a,e,i,n).pipe(Y(s=>s&&Rc(s)?Fc(e,r,n,t):b(s)),v(s=>U(u({},o),{guardsResult:s})))})}function Nc(n,t,o,e){return V(n).pipe(Y(i=>zc(i.component,i.route,o,t,e)),gt(i=>i!==!0,!0))}function Fc(n,t,o,e){return V(t).pipe(Tt(i=>Bt(jc(i.route.parent,e),Pc(i.route,e),Uc(n,i.path,o),Lc(n,i.route,o))),gt(i=>i!==!0,!0))}function Pc(n,t){return n!==null&&t&&t(new ji(n)),b(!0)}function jc(n,t){return n!==null&&t&&t(new Fi(n)),b(!0)}function Lc(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return b(!0);let i=e.map(r=>Vn(()=>{let a=Le(t)??o,s=oe(r,a),d=Dc(s)?s.canActivate(t,n):mt(a,()=>s(t,n));return It(d).pipe(gt())}));return b(i).pipe(ie())}function Uc(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>Ec(a)).filter(a=>a!==null).map(a=>Vn(()=>{let s=a.guards.map(d=>{let c=Le(a.node)??o,l=oe(d,c),p=Sc(l)?l.canActivateChild(e,n):mt(c,()=>l(e,n));return It(p).pipe(gt())});return b(s).pipe(ie())}));return b(r).pipe(ie())}function zc(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return b(!0);let a=r.map(s=>{let d=Le(t)??i,c=oe(s,d),l=Mc(c)?c.canDeactivate(n,t,o,e):mt(d,()=>c(n,t,o,e));return It(l).pipe(gt())});return b(a).pipe(ie())}function $c(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return b(!0);let r=i.map(a=>{let s=oe(a,n),d=Ac(s)?s.canLoad(t,o):mt(n,()=>s(t,o));return It(d)});return b(r).pipe(ie(),Xr(e))}function Xr(n){return xo(D(t=>{if(ee(t))throw Kr(n,t)}),v(t=>t===!0))}function Bc(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return b(!0);let r=i.map(a=>{let s=oe(a,n),d=kc(s)?s.canMatch(t,o):mt(n,()=>s(t,o));return It(d)});return b(r).pipe(ie(),Xr(e))}var Pe=class{constructor(t){this.segmentGroup=t||null}},kn=class extends Error{constructor(t){super(),this.urlTree=t}};function Yt(n){return Ct(new Pe(n))}function Vc(n){return Ct(new R(4e3,!1))}function Wc(n){return Ct(Zr(!1,G.GuardRejected))}var Hi=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return b(e);if(i.numberOfChildren>1||!i.children[y])return Vc(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new kn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new wt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new I(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},qi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hc(n,t,o,e,i){let r=no(n,t,o);return r.matched?(e=_c(t,e),Bc(e,t,o,i).pipe(v(a=>a===!0?r:u({},qi)))):b(r)}function no(n,t,o){if(t.path==="**")return qc(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?u({},qi):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Bs)(o,n,t);if(!i)return u({},qi);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?u(u({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function qc(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Dr(n,t,o,e){return o.length>0&&Zc(n,o,e)?{segmentGroup:new I(t,Kc(e,new I(o,n.children))),slicedSegments:[]}:o.length===0&&Yc(n,o,e)?{segmentGroup:new I(n.segments,Gc(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new I(n.segments,n.children),slicedSegments:o}}function Gc(n,t,o,e){let i={};for(let r of o)if(Nn(n,t,r)&&!e[dt(r)]){let a=new I([],{});i[dt(r)]=a}return u(u({},e),i)}function Kc(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&dt(e)!==y){let i=new I([],{});o[dt(e)]=i}return o}function Zc(n,t,o){return o.some(e=>Nn(n,t,e)&&dt(e)!==y)}function Yc(n,t,o){return o.some(e=>Nn(n,t,e))}function Nn(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Jc(n,t,o,e){return dt(n)!==e&&(e===y||!Nn(t,o,n))?!1:no(t,n,o).matched}function Xc(n,t,o){return t.length===0&&!n.children[o]}var Gi=class{};function Qc(n,t,o,e,i,r,a="emptyOnly"){return new Ki(n,t,o,e,i,a,r).recognize()}var td=31,Ki=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Hi(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new R(4002,`'${t.segmentGroup}'`)}recognize(){let t=Dr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new Ne([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new q(e,o),r=new Sn("",i),a=sc(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(bt(e=>{if(e instanceof kn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Pe?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=Ji(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof q?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return V(i).pipe(Tt(r=>{let a=e.children[r],s=wc(o,r);return this.processSegmentGroup(t,s,a,r)}),Do((r,a)=>(r.push(...a),r)),Hn(null),Ao(),Y(r=>{if(r===null)return Yt(e);let a=Qr(r);return ed(a),b(a)}))}processSegment(t,o,e,i,r,a){return V(o).pipe(Tt(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(bt(d=>{if(d instanceof Pe)return b(null);throw d}))),gt(s=>!!s),bt(s=>{if(Jr(s))return Xc(e,i,r)?b(new Gi):Yt(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Jc(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):Yt(i):Yt(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=no(o,i,r);if(!s)return Yt(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>td&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(Y(f=>this.processSegment(t,e,o,f.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Hc(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(J(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(J(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:p,parameters:f}=s,_=new Ne(l,f,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,id(e),dt(e),e.component??e._loadedComponent??null,e,od(e)),{segmentGroup:K,slicedSegments:L}=Dr(o,l,p,d);if(L.length===0&&K.hasChildren())return this.processChildren(c,d,K).pipe(v(x=>x===null?null:new q(_,x)));if(d.length===0&&L.length===0)return b(new q(_,[]));let E=dt(e)===r;return this.processSegment(c,d,K,L,E?y:r,!0).pipe(v(x=>new q(_,x instanceof q?[x]:[])))}))):Yt(o)))}getChildConfig(t,o,e){return o.children?b({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?b({routes:o._loadedRoutes,injector:o._loadedInjector}):$c(t,o,e,this.urlSerializer).pipe(Y(i=>i?this.configLoader.loadChildren(t,o).pipe(D(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):Wc(o))):b({routes:[],injector:t})}};function ed(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function nd(n){let t=n.value.routeConfig;return t&&t.path===""}function Qr(n){let t=[],o=new Set;for(let e of n){if(!nd(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Qr(e.children);t.push(new q(e.value,i))}return t.filter(e=>!o.has(e))}function id(n){return n.data||{}}function od(n){return n.resolve||{}}function rd(n,t,o,e,i,r){return Y(a=>Qc(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(u({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function ad(n,t){return Y(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return b(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of ta(d))a.add(c);let s=0;return V(a).pipe(Tt(d=>r.has(d)?sd(d,e,n,t):(d.data=Ji(d,d.parent,n).resolve,b(void 0))),D(()=>s++),qn(1),Y(d=>s===a.size?b(o):ft))})}function ta(n){let t=n.children.map(o=>ta(o)).flat();return[n,...t]}function sd(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!qr(i)&&(r[je]=i.title),cd(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=Ji(n,n.parent,o).resolve,null)))}function cd(n,t,o,e){let i=Ei(n);if(i.length===0)return b({});let r={};return V(i).pipe(Y(a=>dd(n[a],t,o,e).pipe(gt(),D(s=>{r[a]=s}))),qn(1),To(r),bt(a=>Jr(a)?ft:Ct(a)))}function dd(n,t,o,e){let i=Le(t)??e,r=oe(n,i),a=r.resolve?r.resolve(t,o):mt(i,()=>r(t,o));return It(a)}function xi(n){return J(t=>{let o=n(t);return o?V(o).pipe(v(()=>t)):b(t)})}var ea=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[je]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(ld),providedIn:"root"});let n=t;return n})(),ld=(()=>{let t=class t extends ea{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(m(Ir))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),io=new w("",{providedIn:"root",factory:()=>({})}),oo=new w(""),ud=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(ii)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return b(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=It(e.loadComponent()).pipe(v(na),D(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),ut(()=>{this.componentLoaders.delete(e)})),r=new Bn(i,()=>new Z).pipe($n());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return b({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=md(i,this.compiler,e,this.onLoadEndListener).pipe(ut(()=>{this.childrenLoaders.delete(i)})),s=new Bn(a,()=>new Z).pipe($n());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function md(n,t,o,e){return It(n.loadChildren()).pipe(v(na),Y(i=>i instanceof qo||Array.isArray(i)?b(i):V(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(oo,[],{optional:!0,self:!0}).flat()),{routes:a.map(eo),injector:r}}))}function hd(n){return n&&typeof n=="object"&&"default"in n}function na(n){return hd(n)?n.default:n}var ro=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(pd),providedIn:"root"});let n=t;return n})(),pd=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),fd=new w("");var bd=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Z,this.transitionAbortSubject=new Z,this.configLoader=h(ud),this.environmentInjector=h(Wt),this.urlSerializer=h(Yi),this.rootContexts=h(On),this.location=h(rn),this.inputBindingEnabled=h(to,{optional:!0})!==null,this.titleStrategy=h(ea),this.options=h(io,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(ro),this.createViewTransition=h(fd,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Oi(r)),i=r=>this.events.next(new Ni(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(u(u({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new k({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Re,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(lt(a=>a.id!==0),v(a=>U(u({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),J(a=>{let s=!1,d=!1;return b(a).pipe(J(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",G.SupersededByNewNavigation),ft;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(u({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!=="reload"){let f="";return this.events.next(new Lt(c.id,this.urlSerializer.serialize(c.rawUrl),f,Ai.IgnoredSameUrlNavigation)),c.resolve(null),ft}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return b(c).pipe(J(f=>{let _=this.transitions?.getValue();return this.events.next(new Se(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),_!==this.transitions?.getValue()?ft:Promise.resolve(f)}),rd(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),D(f=>{a.targetSnapshot=f.targetSnapshot,a.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=U(u({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let _=new Rn(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(_)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:_,source:K,restoredState:L,extras:E}=c,x=new Se(f,this.urlSerializer.serialize(_),K,L);this.events.next(x);let et=Wr(this.rootComponentType).snapshot;return this.currentTransition=a=U(u({},c),{targetSnapshot:et,urlAfterRedirects:_,extras:U(u({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,b(a)}else{let f="";return this.events.next(new Lt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Ai.IgnoredByUrlHandlingStrategy)),c.resolve(null),ft}}),D(c=>{let l=new Di(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(u({},c),{guards:Ic(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),Oc(this.environmentInjector,c=>this.events.next(c)),D(c=>{if(a.guardsResult=c.guardsResult,ee(c.guardsResult))throw Kr(this.urlSerializer,c.guardsResult);let l=new Si(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),lt(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",G.GuardRejected),!1)),xi(c=>{if(c.guards.canActivateChecks.length)return b(c).pipe(D(l=>{let p=new Mi(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),J(l=>{let p=!1;return b(l).pipe(ad(this.paramsInheritanceStrategy,this.environmentInjector),D({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",G.NoDataFromResolver)}}))}),D(l=>{let p=new ki(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),xi(c=>{let l=p=>{let f=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(p.routeConfig).pipe(D(_=>{p.component=_}),v(()=>{})));for(let _ of p.children)f.push(...l(_));return f};return de(l(c.targetSnapshot.root)).pipe(Hn(null),nt(1))}),xi(()=>this.afterPreactivation()),J(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?V(p).pipe(v(()=>a)):b(a)}),v(c=>{let l=fc(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(u({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),D(()=>{this.events.next(new ke)}),xc(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),nt(1),D({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Vt(this.transitionAbortSubject.pipe(D(c=>{throw c}))),ut(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",G.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),bt(c=>{if(d=!0,Yr(c))this.events.next(new xt(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),vc(c)?this.events.next(new Oe(c.url)):a.resolve(!1);else{this.events.next(new Me(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return ft}))}))}cancelNavigationTransition(e,i,r){let a=new xt(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function gd(n){return n!==Re}var vd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(yd),providedIn:"root"});let n=t;return n})(),Zi=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},yd=(()=>{let t=class t extends Zi{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Zn(t)))(r||t)}})(),t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ia=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:()=>h(_d),providedIn:"root"});let n=t;return n})(),_d=(()=>{let t=class t extends ia{constructor(){super(...arguments),this.location=h(rn),this.urlSerializer=h(Yi),this.options=h(io,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(ro),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new wt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Wr(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(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Se)this.stateMemento=this.createStateMemento();else if(e instanceof Lt)this.rawUrlTree=i.initialUrl;else if(e instanceof Rn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof ke?(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))):e instanceof xt&&(e.code===G.GuardRejected||e.code===G.NoDataFromResolver)?this.restoreHistory(i):e instanceof Me?this.restoreHistory(i,!0):e instanceof jt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=u(u({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=u(u({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Zn(t)))(r||t)}})(),t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ce=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Ce||{});function wd(n,t){n.events.pipe(lt(o=>o instanceof jt||o instanceof xt||o instanceof Me||o instanceof Lt),v(o=>o instanceof jt||o instanceof Lt?Ce.COMPLETE:(o instanceof xt?o.code===G.Redirect||o.code===G.SupersededByNewNavigation:!1)?Ce.REDIRECTING:Ce.FAILED),lt(o=>o!==Ce.REDIRECTING),nt(1)).subscribe(()=>{t()})}function xd(n){throw n}var Id={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ed={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},oa=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=h(en),this.stateManager=h(ia),this.options=h(io,{optional:!0})||{},this.pendingTasks=h(pe),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(bd),this.urlSerializer=h(Yi),this.location=h(rn),this.urlHandlingStrategy=h(ro),this._events=new Z,this.errorHandler=this.options.errorHandler||xd,this.navigated=!1,this.routeReuseStrategy=h(vd),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(oo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(to,{optional:!0}),this.eventsSubscription=new ce,this.isNgZoneEnabled=h(A)instanceof A&&A.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof xt&&i.code!==G.Redirect&&i.code!==G.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof jt)this.navigated=!0;else if(i instanceof Oe){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||gd(r.source)};this.scheduleNavigation(s,Re,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}Td(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Re,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=u({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(eo),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(e,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,p=null;switch(d){case"merge":p=u(u({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let f;try{let _=r?r.snapshot:this.routerState.snapshot.root;f=zr(_)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),f=this.currentUrlTree.root}return $r(f,e,p,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ee(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Re,null,i)}navigate(e,i={skipLocationChange:!1}){return Cd(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=u({},Id):i===!1?r=u({},Ed):r=i,ee(e))return Cr(this.currentUrlTree,e,r);let a=this.parseUrl(e);return Cr(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((f,_)=>{d=f,c=_});let p=this.pendingTasks.add();return wd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Cd(n){for(let t=0;to.\u0275providers)])}function Ad(n){return n.routerState.root}function Dd(){let n=h(Oo);return t=>{let o=n.get(nn);if(t!==o.components[0])return;let e=n.get(oa),i=n.get(Sd);n.get(Md)===1&&e.initialNavigation(),n.get(kd,null,Gn.Optional)?.setUpPreloading(),n.get(Rd,null,Gn.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Sd=new w("",{factory:()=>new Z}),Md=new w("",{providedIn:"root",factory:()=>1});var kd=new w("");var aa="https://api.chucknorris.io/jokes/random";var sa=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(aa).pipe(v(e=>e.value))}};t.\u0275fac=function(i){return new(i||t)(m(ye))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var re=(()=>{let t=class t{constructor(e){this.chuckNorrisJokeGeneratorService=e,this._jokes$=new k([]),this.jokes$=this._jokes$.asObservable(),this._isNewJokeIntervalRunning$=new k(!1),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable(),this.newJokeIntervalId=this.startNewJokeTimer()}toggleInterval(){this.newJokeIntervalId?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0))}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());Bt(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i]))}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>{console.log({joke:e}),this._jokes$.next([e,...this._jokes$.value.splice(0,9)])})},5e3)}};t.\u0275fac=function(i){return new(i||t)(m(sa))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Nd(n,t){if(n&1&&(H(0,"li"),at(1),X()),n&2){let o=t.$implicit;Gt(),Xe(o)}}var da=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(C(re))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[F],decls:3,vars:3,consts:[[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&(H(0,"ul"),Xn(1,Nd,2,1,"li",0),Qe(2,"async"),X()),i&2&&(Gt(),Qn("ngForOf",tn(2,1,r.jokeStoreService.jokes$)))},dependencies:[fe,Xo,sn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:90%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:large}"],changeDetection:0});let n=t;return n})();var so;try{so=typeof Intl<"u"&&Intl.v8BreakIterator}catch{so=!1}var z=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?tr(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||so)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(m(ht))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ze;function Fd(){if(ze==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ze=!0}))}finally{ze=ze||!1}return ze}function ae(n){return Fd()?n:!!n.capture}var ao;function Pd(){if(ao==null){let n=typeof document<"u"?document.head:null;ao=!!(n&&(n.createShadowRoot||n.attachShadow))}return ao}function la(n){if(Pd()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Et(n){return n.composedPath?n.composedPath()[0]:n.target}function ua(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function co(n){return Array.isArray(n)?n:[n]}function Ut(n){return n instanceof B?n.nativeElement:n}var ma=new Set,zt,jd=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ud}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Ld(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(m(z),m(ue,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ld(n,t){if(!ma.has(n))try{zt||(zt=document.createElement("style"),t&&zt.setAttribute("nonce",t),zt.setAttribute("type","text/css"),document.head.appendChild(zt)),zt.sheet&&(zt.sheet.insertRule(`@media ${n} {body{ }}`,0),ma.add(n))}catch(o){console.error(o)}}function Ud(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var pa=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new Z}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ha(co(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=ha(co(e)).map(s=>this._registerQuery(s).observable),a=de(r);return a=Bt(a.pipe(nt(1)),a.pipe(He(1),Wn(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new We(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(qe(i),v(({matches:s})=>({query:e,matches:s})),Vt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(m(jd),m(A))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ha(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function uo(n){return n.buttons===0||n.detail===0}function mo(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var zd=new w("cdk-input-modality-detector-options"),$d={ignoreKeys:[18,17,224,91,16]},ga=650,se=ae({passive:!0,capture:!0}),Bd=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new k(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Et(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(mo(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Et(s)},this._options=u(u({},$d),a),this.modalityDetected=this._modality.pipe(He(1)),this.modalityChanged=this.modalityDetected.pipe(Ro()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,se),r.addEventListener("mousedown",this._onMousedown,se),r.addEventListener("touchstart",this._onTouchstart,se)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,se),document.removeEventListener("mousedown",this._onMousedown,se),document.removeEventListener("touchstart",this._onTouchstart,se))}};t.\u0275fac=function(i){return new(i||t)(m(z),m(A),m(T),m(zd,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Pn=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(Pn||{}),Vd=new w("cdk-focus-monitor-default-options"),Fn=ae({passive:!0,capture:!0}),va=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z,this._rootNodeFocusAndBlurListener=d=>{let c=Et(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||Pn.IMMEDIATE}monitor(e,i=!1){let r=Ut(e);if(!this._platform.isBrowser||r.nodeType!==1)return b();let a=la(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new Z,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=Ut(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=Ut(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Pn.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Pn.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?ga:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=Et(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fn),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fn)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Vt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Fn),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fn),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=h(pa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return $t.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return $t.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return $t.BLACK_ON_WHITE}return $t.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(lo,fa,ba),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===$t.BLACK_ON_WHITE?e.add(lo,fa):i===$t.WHITE_ON_BLACK&&e.add(lo,ba)}}};t.\u0275fac=function(i){return new(i||t)(m(z),m(T))},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ho=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({});let n=t;return n})();function qd(){return!0}var Gd=new w("mat-sanity-checks",{providedIn:"root",factory:qd}),ot=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return ua()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(m(ya),m(Gd,8),m(T))},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ho,ho]});let n=t;return n})();var tt=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(tt||{}),bo=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=tt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},_a=ae({passive:!0,capture:!0}),go=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=Et(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,_a)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,_a)))}},wa={enterDuration:225,exitDuration:150},Kd=800,xa=ae({passive:!0,capture:!0}),Ia=["mousedown","touchstart"],Ea=["mouseup","mouseleave","touchend","touchcancel"],Be=class Be{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Ut(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=u(u({},wa),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Zd(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let p=window.getComputedStyle(l),f=p.transitionProperty,_=p.transitionDuration,K=f==="none"||_==="0s"||_==="0s, 0s"||i.width===0&&i.height===0,L=new bo(this,l,e,K);l.style.transform="scale3d(1, 1, 1)",L.state=tt.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let E=null;return!K&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let x=()=>this._finishRippleTransition(L),et=()=>this._destroyRipple(L);l.addEventListener("transitionend",x),l.addEventListener("transitioncancel",et),E={onTransitionEnd:x,onTransitionCancel:et}}),this._activeRipples.set(L,E),(K||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===tt.FADING_OUT||t.state===tt.HIDDEN)return;let o=t.element,e=u(u({},wa),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=tt.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=Ut(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,Ia.forEach(e=>{Be._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ea.forEach(o=>{this._triggerElement.addEventListener(o,this,xa)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===tt.FADING_IN?this._startFadeOutTransition(t):t.state===tt.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=tt.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=tt.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=uo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===tt.VISIBLE||t.config.terminateOnPointerUp&&t.state===tt.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(Ia.forEach(o=>Be._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&Ea.forEach(o=>t.removeEventListener(o,this,xa)))}};Be._eventManager=new go;var vo=Be;function Zd(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var Aa=new w("mat-ripple-global-options"),Yd=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new vo(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:u(u(u({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,u(u({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,u(u({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(C(B),C(A),C(z),C(Aa,8),C(St,8))},t.\u0275dir=rt({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&vt("mat-ripple-unbounded",r.unbounded)},inputs:{color:[O.None,"matRippleColor","color"],unbounded:[O.None,"matRippleUnbounded","unbounded"],centered:[O.None,"matRippleCentered","centered"],radius:[O.None,"matRippleRadius","radius"],animation:[O.None,"matRippleAnimation","animation"],disabled:[O.None,"matRippleDisabled","disabled"],trigger:[O.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),Da=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var Ca={capture:!0},Ta=["focus","click","mouseenter","touchstart"],po="mat-ripple-loader-uninitialized",fo="mat-ripple-loader-class-name",Ra="mat-ripple-loader-centered",jn="mat-ripple-loader-disabled",Sa=(()=>{let t=class t{constructor(){this._document=h(T,{optional:!0}),this._animationMode=h(St,{optional:!0}),this._globalRippleOptions=h(Aa,{optional:!0}),this._platform=h(z),this._ngZone=h(A),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${po}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of Ta)this._document?.addEventListener(e,this._onInteraction,Ca)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of Ta)this._document?.removeEventListener(i,this._onInteraction,Ca)}configureRipple(e,i){e.setAttribute(po,""),(i.className||!e.hasAttribute(fo))&&e.setAttribute(fo,i.className||""),i.centered&&e.setAttribute(Ra,""),i.disabled&&e.setAttribute(jn,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(jn,""):e.removeAttribute(jn)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(fo)),e.append(r);let a=new Yd(new B(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(Ra),a.disabled=e.hasAttribute(jn),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(po),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Jd=["*"],Ln;function Xd(){if(Ln===void 0&&(Ln=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Ln=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Ln}function Ve(n){return Xd()?.createHTML(n)||n}function Ma(n){return Error(`Unable to find icon with the name "${n}"`)}function Qd(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function ka(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Oa(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var pt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},tl=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new pt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(W.HTML,r);if(!s)throw Oa(r);let d=Ve(s);return this._addSvgIconConfig(e,i,new pt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new pt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(W.HTML,i);if(!a)throw Oa(i);let s=Ve(a);return this._addSvgIconSetConfig(e,new pt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(W.RESOURCE_URL,e);if(!i)throw ka(e);let r=this._cachedIconsByUrl.get(i);return r?b(Un(r)):this._loadSvgIconFromConfig(new pt(e,null)).pipe(D(a=>this._cachedIconsByUrl.set(i,a)),v(a=>Un(a)))}getNamedSvgIcon(e,i=""){let r=Na(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ct(Ma(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?b(Un(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>Un(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return b(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(bt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(W.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),b(null)})));return Co(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw Ma(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(D(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?b(null):this._fetchIcon(e).pipe(D(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(Ve(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(Ve("")),r=e.attributes;for(let a=0;aVe(l)),ut(()=>this._inProgressUrlFetches.delete(s)),So());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(Na(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var Fa=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],rl=Fa.map(n=>`[${n}]`).join(", "),al=/^url\(['"]?#(.*?)['"]?\)$/,Pa=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ce.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(rl),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(al):null;if(l){let p=r.get(d);p||(p=[],r.set(d,p)),p.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(nt(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(C(B),C(tl),Yn("aria-hidden"),C(il),C(At),C(nl,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(kt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Kt(r.color?"mat-"+r.color:""),vt("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[O.HasDecoratorInputTransform,"inline","inline",st],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Mt,F],ngContentSelectors:Jd,decls:1,vars:0,template:function(i,r){i&1&&(Ot(),yt(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),ja=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var cl=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var dl=["mat-icon-button",""],ll=["*"];var ul=new w("MAT_BUTTON_CONFIG");var ml=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],hl=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=h(va),this._rippleLoader=h(Sa),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=h(ul,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:p}of ml)d.hasAttribute(l)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){he()},t.\u0275dir=rt({type:t,inputs:{color:"color",disableRipple:[O.HasDecoratorInputTransform,"disableRipple","disableRipple",st],disabled:[O.HasDecoratorInputTransform,"disabled","disabled",st],ariaDisabled:[O.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",st],disabledInteractive:[O.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",st]},features:[Mt]});let n=t;return n})();var La=(()=>{let t=class t extends hl{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(C(B),C(z),C(A),C(St,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(kt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Kt(r.color?"mat-"+r.color:""),vt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[Ho,F],attrs:dl,ngContentSelectors:ll,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Ot(),it(0,"span",0),yt(1),it(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',cl],encapsulation:2,changeDetection:0});let n=t;return n})();var Ua=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,Da,ot]});let n=t;return n})();var fl=["*",[["mat-toolbar-row"]]],bl=["*","mat-toolbar-row"],gl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=rt({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),za=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(C(B),C(z),C(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&ti(a,gl,5),i&2){let s;Ye(s=Je())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(Kt(r.color?"mat-"+r.color:""),vt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[F],ngContentSelectors:bl,decls:2,vars:0,template:function(i,r){i&1&&(Ot(fl),yt(0),yt(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var $a=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=M({type:t}),t.\u0275inj=S({imports:[ot,ot]});let n=t;return n})();var yo=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}(yo||{});var Ba=(()=>{let t=class t{constructor(e){this.jokeStoreService=e,this.hourGlass=yo}};t.\u0275fac=function(i){return new(i||t)(C(re))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[F],decls:15,vars:3,consts:[[1,"header"],[1,"spacer"],["mat-icon-button","","title","Home"],["mat-icon-button","","title","Toggle Interval",3,"click"],["mat-icon-button","","title","Favourites"]],template:function(i,r){i&1&&(H(0,"mat-toolbar")(1,"span",0),at(2,"Chuck Norris Jokes"),X(),it(3,"span",1),H(4,"button",2)(5,"mat-icon"),at(6,"home"),X()(),H(7,"button",3),Ze("click",function(){return r.jokeStoreService.toggleInterval()}),H(8,"mat-icon"),at(9),Qe(10,"async"),X()(),H(11,"button",4)(12,"mat-icon"),at(13,"favorite"),X()()(),it(14,"cnjg-jokes")),i&2&&(Gt(9),Xe(tn(10,1,r.jokeStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[da,ja,Pa,Ua,La,$a,za,fe,sn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{margin-bottom:15px;padding:0 0 0 5px}"],changeDetection:0});let n=t;return n})();var Va=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[F],decls:2,vars:0,template:function(i,r){i&1&&(H(0,"p"),at(1,"favourites works!"),X())}});let n=t;return n})();var Wa=[{path:"",component:Ba},{path:"favourites",component:Va}];var yl="@",_l=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=h(Vo,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-V5MKIVOR.js")).catch(i=>{throw new R(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new _o(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){he()},t.\u0275prov=g({token:t,factory:t.\u0275fac});let n=t;return n})(),_o=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(yl)}};function Ha(n="animations"){return Jn("NgAsyncAnimations"),Rt([{provide:Ke,useFactory:(t,o,e)=>new _l(t,o,e,n),deps:[T,gn,A]},{provide:St,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var qa={providers:[ra(Wa),Ha(),li(),{provide:ei,useFactory:n=>n.initStore(),deps:[re]}]};var Ga=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[F],decls:1,vars:0,template:function(i,r){i&1&&it(0,"router-outlet")},dependencies:[Qi,mr],encapsulation:2});let n=t;return n})();xr(Ga,qa).catch(n=>console.error(n)); diff --git a/main-KFYXN3IJ.js b/main-KFYXN3IJ.js new file mode 100644 index 0000000..0132919 --- /dev/null +++ b/main-KFYXN3IJ.js @@ -0,0 +1,2 @@ +import{$ as D,$a as rt,A as fi,Aa as ar,Ab as wr,B as bi,Ba as sr,Bb as T,C as nt,Ca as cr,Cb as xr,D as Go,Da as K,Db as Ee,E as Ko,Ea as dr,Eb as Ir,F as mt,Fa as _e,Fb as Er,G as wt,Ga as Xt,Gb as Ce,H as gi,Ha as w,Hb as In,I as Zo,Ia as Qt,Ib as Cr,J as Yo,Ja as lr,Jb as ie,K as Jo,Ka as pn,Kb as ft,L as cn,La as ur,Lb as Tr,M as dn,Ma as xi,Mb as Rr,N as G,Na as A,Nb as En,O as Zt,Oa as mr,Ob as Ar,P as S,Pa as hr,Pb as Cn,Q as R,Qa as pr,R as b,Ra as xt,S as O,Sa as fr,T as Xo,Ta as Ii,U as _,Ua as we,V as vi,Va as Ei,W as u,Wa as It,X as m,Xa as Ut,Y as ln,Ya as Et,Z as yi,Za as te,_ as ve,_a as ot,a as h,aa as N,ab as B,b as U,ba as F,bb as xe,ca as it,cb as zt,d as ge,da as Nt,db as Ct,e as Vo,ea as Qo,eb as Ci,f as sn,fa as Ft,fb as fn,g as ui,ga as ct,gb as bn,h as mi,ha as un,hb as pt,i as H,ia as _i,ib as br,j as k,ja as mn,jb as Ti,k as vt,ka as wi,kb as P,l as z,la as Pt,lb as gn,m as f,ma as $,mb as ee,n as Ot,na as jt,nb as ne,o as Wo,oa as tr,ob as vn,p as Ho,pa as hn,pb as gr,q as v,qa as er,qb as Ie,r as Gt,ra as ht,rb as yn,s as q,sa as Lt,sb as _n,t as hi,ta as ye,tb as wn,u as Kt,ua as Yt,ub as xn,v as pi,va as Jt,vb as vr,w as qo,wa as nr,wb as Z,x as st,xa as ir,xb as yr,y as yt,ya as or,yb as Ri,z as _t,za as rr,zb as _r}from"./chunk-F53I2EFS.js";var Re=class{},Rn=class{},$t=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var Si=class{encodeKey(t){return Sr(t)}encodeValue(t){return Sr(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Ps(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var js=/%(\d[a-f0-9])/gi,Ls={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sr(n){return encodeURIComponent(n).replace(js,(t,o)=>Ls[o]??t)}function Tn(n){return`${n}`}var Tt=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Si,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Ps(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(Tn):[Tn(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(Tn(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Tn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Di=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Us(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Dr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Mr(n){return typeof Blob<"u"&&n instanceof Blob}function kr(n){return typeof FormData<"u"&&n instanceof FormData}function zs(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Te=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(Us(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new $t,this.context??=new Di,!this.params)this.params=new Tt,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sg.set(x,t.setHeaders[x]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((g,x)=>g.set(x,t.setParams[x]),l)),new n(o,e,a,{params:l,headers:c,context:p,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},oe=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(oe||{}),Ae=class{constructor(t,o=Dn.Ok,e="OK"){this.headers=t.headers||new $t,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Mi=class n extends Ae{constructor(t={}){super(t),this.type=oe.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},An=class n extends Ae{constructor(t={}){super(t),this.type=oe.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Sn=class extends Ae{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Dn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(Dn||{});function Ai(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var De=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof Te)a=e;else{let c;r.headers instanceof $t?c=r.headers:c=new $t(r.headers);let l;r.params&&(r.params instanceof Tt?l=r.params:l=new Tt({fromObject:r.params})),a=new Te(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=f(a).pipe(_t(c=>this.handler.handle(c)));if(e instanceof Te||r.observe==="events")return s;let d=s.pipe(st(c=>c instanceof An));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Tt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Ai(r,i))}post(e,i,r={}){return this.request("POST",e,Ai(r,i))}put(e,i,r={}){return this.request("PUT",e,Ai(r,i))}};t.\u0275fac=function(i){return new(i||t)(u(Re))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Pr(n,t){return t(n)}function $s(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function Bs(n,t,o){return(e,i)=>ct(o,()=>t(e,r=>n(r,i)))}var Vs=new _(""),ki=new _(""),Ws=new _(""),Hs=new _("");function qs(){let n=null;return(t,o)=>{n===null&&(n=(m(Vs,{optional:!0})??[]).reduceRight($s,Pr));let e=m(we),i=e.add();return n(t,o).pipe(mt(()=>e.remove(i)))}}var Or=(()=>{let t=class t extends Re{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=m(we);let r=m(Hs,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(ki),...this.injector.get(Ws,[])]));this.chain=r.reduceRight((a,s)=>Bs(a,s,this.injector),Pr)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(mt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(u(Rn),u(Ft))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var Gs=/^\)\]\}',?\n/;function Ks(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Nr=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new R(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?z(i.\u0275loadImpl()):f(null)).pipe(G(()=>new sn(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,I)=>s.setRequestHeader(C,I.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let C=s.statusText||"OK",I=new $t(s.getAllResponseHeaders()),et=Ks(s)||e.url;return c=new Mi({headers:I,status:s.status,statusText:C,url:et}),c},p=()=>{let{headers:C,status:I,statusText:et,url:Bo}=l(),W=null;I!==Dn.NoContent&&(W=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=W?Dn.Ok:0);let li=I>=200&&I<300;if(e.responseType==="json"&&typeof W=="string"){let Ms=W;W=W.replace(Gs,"");try{W=W!==""?JSON.parse(W):null}catch(ks){W=Ms,li&&(li=!1,W={error:ks,text:W})}}li?(a.next(new An({body:W,headers:C,status:I,statusText:et,url:Bo||void 0})),a.complete()):a.error(new Sn({error:W,headers:C,status:I,statusText:et,url:Bo||void 0}))},g=C=>{let{url:I}=l(),et=new Sn({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});a.error(et)},x=!1,X=C=>{x||(a.next(l()),x=!0);let I={type:oe.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),a.next(I)},L=C=>{let I={type:oe.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),a.next(I)};return s.addEventListener("load",p),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",X),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:oe.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",p),s.removeEventListener("timeout",g),e.reportProgress&&(s.removeEventListener("progress",X),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(u(Cn))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),jr=new _(""),Zs="XSRF-TOKEN",Ys=new _("",{providedIn:"root",factory:()=>Zs}),Js="X-XSRF-TOKEN",Xs=new _("",{providedIn:"root",factory:()=>Js}),Mn=class{},Qs=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=In(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(u(T),u(ht),u(Ys))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function tc(n,t){let o=n.url.toLowerCase();if(!m(jr)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=m(Mn).getToken(),i=m(Xs);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var Lr=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Lr||{});function ec(n,t){return{\u0275kind:n,\u0275providers:t}}function Oi(...n){let t=[De,Nr,Or,{provide:Re,useExisting:Or},{provide:Rn,useExisting:Nr},{provide:ki,useValue:tc,multi:!0},{provide:jr,useValue:!0},{provide:Mn,useClass:Qs}];for(let o of n)t.push(...o.\u0275providers);return Nt(t)}var Fr=new _("");function nc(){return ec(Lr.LegacyInterceptors,[{provide:Fr,useFactory:qs},{provide:ki,useExisting:Fr,multi:!0}])}var Ur=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({providers:[Oi(nc())]});let n=t;return n})();var Pi=class extends wr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ji=class n extends Pi{static makeCurrent(){_r(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=oc();return o==null?null:rc(o)}resetBaseElement(){Me=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return In(document.cookie,t)}},Me=null;function oc(){return Me=Me||document.querySelector("base"),Me?Me.getAttribute("href"):null}function rc(n){return new URL(n,document.baseURI).pathname}var ac=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Li=new _(""),Wr=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new R(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(u(Li),u(A))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),kn=class{constructor(t){this._doc=t}},Ni="ng-app-id",Hr=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=En(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Ni}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(Ni),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Ni,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(u(T),u(hn),u(ye,8),u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Fi={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},zi=/%COMP%/g,qr="%COMP%",sc=`_nghost-${qr}`,cc=`_ngcontent-${qr}`,dc=!0,lc=new _("",{providedIn:"root",factory:()=>dc});function uc(n){return cc.replace(zi,n)}function mc(n){return sc.replace(zi,n)}function Gr(n,t){return t.map(o=>o.replace(zi,n))}var On=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=En(d),this.defaultRenderer=new ke(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ve.ShadowDom&&(i=U(h({},i),{encapsulation:ve.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Nn?r.applyToHost(e):r instanceof Oe&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case ve.Emulated:a=new Nn(c,l,i,this.appId,p,s,d,g);break;case ve.ShadowDom:return new Ui(c,l,e,i,s,d,this.nonce,g);default:a=new Oe(c,l,i,p,s,d,g);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(u(Wr),u(Hr),u(hn),u(lc),u(T),u(ht),u(A),u(ye))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),ke=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(Fi[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){($r(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&($r(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new R(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=Fi[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=Fi[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(_e.DashCase|_e.Important)?t.style.setProperty(o,e,i&_e.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&_e.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=Ri().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function $r(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Ui=class extends ke{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Gr(i.id,i.styles);for(let l of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Oe=class extends ke{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?Gr(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nn=class extends Oe{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=uc(c),this.hostAttr=mc(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},hc=(()=>{let t=class t extends kn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Br=["alt","control","meta","shift"],pc={"\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"},fc={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bc=(()=>{let t=class t extends kn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ri().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),Br.forEach(l=>{let p=i.indexOf(l);p>-1&&(i.splice(p,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=pc[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Br.forEach(s=>{if(s!==r){let d=fc[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Kr(n,t){return vr(h({rootComponent:n},gc(t)))}function gc(n){return{appProviders:[...xc,...n?.providers??[]],platformProviders:wc}}function vc(){ji.makeCurrent()}function yc(){return new Pt}function _c(){return tr(document),document}var wc=[{provide:ht,useValue:Tr},{provide:er,useValue:vc,multi:!0},{provide:T,useFactory:_c,deps:[]}];var xc=[{provide:Qo,useValue:"root"},{provide:Pt,useFactory:yc,deps:[]},{provide:Li,useClass:hc,multi:!0,deps:[T,A,ht]},{provide:Li,useClass:bc,multi:!0,deps:[T]},On,Hr,Wr,{provide:pn,useExisting:On},{provide:Cn,useClass:ac,deps:[]},[]];var Zr=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var $i=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=u(Ic),r},providedIn:"root"});let n=t;return n})(),Ic=(()=>{let t=class t extends $i{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case K.NONE:return i;case K.HTML:return Jt(i,"HTML")?Yt(i):cr(this._doc,String(i)).toString();case K.STYLE:return Jt(i,"Style")?Yt(i):i;case K.SCRIPT:if(Jt(i,"Script"))return Yt(i);throw new R(5200,!1);case K.URL:return Jt(i,"URL")?Yt(i):sr(String(i));case K.RESOURCE_URL:if(Jt(i,"ResourceURL"))return Yt(i);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return nr(e)}bypassSecurityTrustStyle(e){return ir(e)}bypassSecurityTrustScript(e){return or(e)}bypassSecurityTrustUrl(e){return rr(e)}bypassSecurityTrustResourceUrl(e){return ar(e)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Ze=Symbol("RouteTitle"),qi=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function de(n){return new qi(n)}function Ec(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function aa(n){return n.length>0?n[n.length-1]:null}function Mt(n){return Wo(n)?n:gr(n)?z(Promise.resolve(n)):f(n)}var Tc={exact:ca,subset:da},sa={exact:Rc,subset:Ac,ignored:()=>!0};function Jr(n,t,o){return Tc[o.paths](n.root,t.root,o.matrixParams)&&sa[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Rc(n,t){return dt(n,t)}function ca(n,t,o){if(!Vt(n.segments,t.segments)||!jn(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!ca(n.children[e],t.children[e],o))return!1;return!0}function Ac(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>ra(n[o],t[o]))}function da(n,t,o){return la(n,t,t.segments,o)}function la(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Vt(i,o)||t.hasChildren()||!jn(i,o,e))}else if(n.segments.length===o.length){if(!Vt(n.segments,o)||!jn(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!da(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Vt(n.segments,i)||!jn(n.segments,i,e)||!n.children[y]?!1:la(n.children[y],t,r,e)}}function jn(n,t,o){return t.every((e,i)=>sa[o](n[i].parameters,e.parameters))}var Rt=class{constructor(t=new E([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return Mc.serialize(this)}},E=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ln(this)}},Bt=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return ma(this)}};function Sc(n,t){return Vt(n,t)&&n.every((o,e)=>dt(o.parameters,t[e].parameters))}function Vt(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function Dc(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Ye=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new ze,providedIn:"root"});let n=t;return n})(),ze=class{parse(t){let o=new Zi(t);return new Rt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${Ne(t.root,!0)}`,e=Nc(t.queryParams),i=typeof t.fragment=="string"?`#${kc(t.fragment)}`:"";return`${o}${e}${i}`}},Mc=new ze;function Ln(n){return n.segments.map(t=>ma(t)).join("/")}function Ne(n,t){if(!n.hasChildren())return Ln(n);if(t){let o=n.children[y]?Ne(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${Ne(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=Dc(n,(e,i)=>i===y?[Ne(n.children[y],!1)]:[`${i}:${Ne(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${Ln(n)}/${o[0]}`:`${Ln(n)}/(${o.join("//")})`}}function ua(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fn(n){return ua(n).replace(/%3B/gi,";")}function kc(n){return encodeURI(n)}function Ki(n){return ua(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Un(n){return decodeURIComponent(n)}function Xr(n){return Un(n.replace(/\+/g,"%20"))}function ma(n){return`${Ki(n.path)}${Oc(n.parameters)}`}function Oc(n){return Object.entries(n).map(([t,o])=>`;${Ki(t)}=${Ki(o)}`).join("")}function Nc(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${Fn(o)}=${Fn(i)}`).join("&"):`${Fn(o)}=${Fn(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var Fc=/^[^\/()?;#]+/;function Bi(n){let t=n.match(Fc);return t?t[0]:""}var Pc=/^[^\/()?;=#]+/;function jc(n){let t=n.match(Pc);return t?t[0]:""}var Lc=/^[^=?&#]+/;function Uc(n){let t=n.match(Lc);return t?t[0]:""}var zc=/^[^&#]+/;function $c(n){let t=n.match(zc);return t?t[0]:""}var Zi=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new E(t,o)),e}parseSegment(){let t=Bi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(t),new Bt(Un(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=jc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=Bi(this.remaining);i&&(e=i,this.capture(e))}t[Un(o)]=Un(e)}parseQueryParam(t){let o=Uc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=$c(this.remaining);a&&(e=a,this.capture(e))}let i=Xr(o),r=Xr(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=Bi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new E([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new R(4011,!1)}};function ha(n){return n.segments.length>0?new E([],{[y]:n}):n}function pa(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=pa(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new E(n.segments,t);return Bc(o)}function Bc(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new E(n.segments.concat(t.segments),t.children)}return n}function le(n){return n instanceof Rt}function Vc(n,t,o=null,e=null){let i=fa(n);return ba(i,t,o,e)}function fa(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new E(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=ha(e);return t??i}function ba(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return Vi(i,i,i,o,e);let r=Wc(t);if(r.toRoot())return Vi(i,i,new E([],{}),o,e);let a=Hc(r,i,n),s=a.processChildren?je(a.segmentGroup,a.index,r.commands):va(a.segmentGroup,a.index,r.commands);return Vi(i,a.segmentGroup,s,o,e)}function zn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function $e(n){return typeof n=="object"&&n!=null&&n.outlets}function Vi(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=ga(n,t,o);let s=ha(pa(a));return new Rt(s,r,i)}function ga(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=ga(r,t,o)}),new E(n.segments,e)}var $n=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&zn(e[0]))throw new R(4003,!1);let i=e.find($e);if(i&&i!==aa(e))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Wc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new $n(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new $n(o,t,e)}var se=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function Hc(n,t,o){if(n.isAbsolute)return new se(t,!0,0);if(!o)return new se(t,!1,NaN);if(o.parent===null)return new se(o,!0,0);let e=zn(n.commands[0])?0:1,i=o.segments.length-1+e;return qc(o,i,n.numberOfDoubleDots)}function qc(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new R(4005,!1);i=e.segments.length}return new se(e,!1,i-r)}function Gc(n){return $e(n[0])?n[0].outlets:{[y]:n}}function va(n,t,o){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return je(n,t,o);let e=Kc(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=je(n.children[y],t,o);return new E(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=va(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new E(n.segments,i)}}function Kc(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if($e(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!ta(d,c,a))return r;e+=2}else{if(!ta(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function Yi(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=Yi(new E([],{}),0,e))}),t}function Qr(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function ta(n,t,o){return n==o.path&&dt(t,o.parameters)}var Le="imperative",j=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(j||{}),Q=class{constructor(t,o){this.id=t,this.url=o}},ue=class extends Q{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},lt=class extends Q{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},J=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(J||{}),Bn=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Bn||{}),At=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},St=class extends Q{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},Be=class extends Q{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vn=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ji=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xi=class extends Q{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qi=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},to=class extends Q{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},no=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},io=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oo=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ro=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ao=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wn=class{constructor(t,o,e){this.routerEvent=t,this.position=o,this.anchor=e,this.type=j.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Ve=class{},We=class{constructor(t){this.url=t}};var so=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Je,this.attachRef=null}},Je=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new so,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Hn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=co(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=co(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=lo(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return lo(t,this._root).map(o=>o.value)}};function co(n,t){if(n===t.value)return t;for(let o of t.children){let e=co(n,o);if(e)return e}return null}function lo(n,t){if(n===t.value)return[t];for(let o of t.children){let e=lo(n,o);if(e.length)return e.unshift(t),e}return[]}var Y=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function ae(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var qn=class extends Hn{constructor(t,o){super(t),this.snapshot=o,_o(this,t)}toString(){return this.snapshot.toString()}};function ya(n){let t=Yc(n),o=new k([new Bt("",{})]),e=new k({}),i=new k({}),r=new k({}),a=new k(""),s=new Dt(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new qn(new Y(s,[]),t)}function Yc(n){let t={},o={},e={},i="",r=new He([],t,e,i,o,y,n,null,{});return new Gn("",new Y(r,[]))}var Dt=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Ze]))??f(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}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(v(t=>de(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>de(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function yo(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:h(h({},t.params),n.params),data:h(h({},t.data),n.data),resolve:h(h(h(h({},n.data),t.data),i?.data),n._resolvedData)}:e={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&wa(i)&&(e.resolve[Ze]=i.title),e}var He=class{get title(){return this.data?.[Ze]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,this._resolve=c}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??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Gn=class extends Hn{constructor(t,o){super(o),this.url=t,_o(this,o)}toString(){return _a(this._root)}};function _o(n,t){t.value._routerState=n,t.children.forEach(o=>_o(n,o))}function _a(n){let t=n.children.length>0?` { ${n.children.map(_a).join(", ")} } `:"";return`${n.value}${t}`}function Wi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,dt(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),dt(t.params,o.params)||n.paramsSubject.next(o.params),Cc(t.url,o.url)||n.urlSubject.next(o.url),dt(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function uo(n,t){let o=dt(n.params,t.params)&&Sc(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||uo(n.parent,t.parent))}function wa(n){return typeof n.title=="string"||n.title===null}var wo=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new jt,this.deactivateEvents=new jt,this.attachEvents=new jt,this.detachEvents=new jt,this.parentContexts=m(Je),this.location=m(hr),this.changeDetector=m(xn),this.environmentInjector=m(Ft),this.inputBinder=m(Jn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new mo(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=it({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[un]});let n=t;return n})(),mo=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===Dt?this.route:t===Je?this.childContexts:this.parent.get(t,o)}},Jn=new _(""),ea=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=Gt([i.queryParams,i.params,i.data]).pipe(G(([a,s,d],c)=>(d=h(h(h({},a),s),d),c===0?f(d):Promise.resolve(d)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=yr(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:d}of s.inputs)e.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(e,r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Jc(n,t,o){let e=qe(n,t._root,o?o._root:void 0);return new qn(e,t)}function qe(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=Xc(n,t,o);return new Y(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>qe(n,s)),a}}let e=Qc(t.value),i=t.children.map(r=>qe(n,r));return new Y(e,i)}}function Xc(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return qe(n,e,i);return qe(n,e)})}function Qc(n){return new Dt(new k(n.url),new k(n.params),new k(n.queryParams),new k(n.fragment),new k(n.data),n.outlet,n.component,n)}var xa="ngNavigationCancelingError";function Ia(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=le(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Ea(!1,J.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Ea(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[xa]=!0,o.cancellationCode=t,o}function td(n){return Ca(n)&&le(n.url)}function Ca(n){return!!n&&n[xa]}var ed=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"router-outlet")},dependencies:[wo],encapsulation:2});let n=t;return n})();function nd(n,t){return n.providers&&!n._injector&&(n._injector=Ii(n.providers,t,`Route: ${n.path}`)),n._injector??t}function xo(n){let t=n.children&&n.children.map(xo),o=t?U(h({},n),{children:t}):h({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=ed),o}function ut(n){return n.outlet||y}function id(n,t){let o=n.filter(e=>ut(e)===t);return o.push(...n.filter(e=>ut(e)!==t)),o}function Xe(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var od=(n,t,o,e)=>v(i=>(new ho(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),ho=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),Wi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=ae(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=ae(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=ae(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=ae(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new ao(r.value.snapshot))}),t.children.length&&this.forwardEvent(new oo(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(Wi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Wi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=Xe(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Kn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ce=class{constructor(t,o){this.component=t,this.route=o}};function rd(n,t,o){let e=n._root,i=t?t._root:null;return Fe(e,i,o,[e.value])}function ad(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function he(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!Xo(n)?n:t.get(n):e}function Fe(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=ae(t);return n.children.forEach(a=>{sd(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>Ue(s,o.getContext(a),i)),i}function sd(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=cd(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Kn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Fe(n,t,s?s.children:null,e,i):Fe(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new ce(s.outlet.component,a))}else a&&Ue(t,s,i),i.canActivateChecks.push(new Kn(e)),r.component?Fe(n,null,s?s.children:null,e,i):Fe(n,null,o,e,i);return i}function cd(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Vt(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Vt(n.url,t.url)||!dt(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uo(n,t)||!dt(n.queryParams,t.queryParams);case"paramsChange":default:return!uo(n,t)}}function Ue(n,t,o){let e=ae(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?Ue(a,t.children.getContext(r),o):Ue(a,null,o):Ue(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new ce(t.outlet.component,i)):o.canDeactivateChecks.push(new ce(null,i)):o.canDeactivateChecks.push(new ce(null,i))}function Qe(n){return typeof n=="function"}function dd(n){return typeof n=="boolean"}function ld(n){return n&&Qe(n.canLoad)}function ud(n){return n&&Qe(n.canActivate)}function md(n){return n&&Qe(n.canActivateChild)}function hd(n){return n&&Qe(n.canDeactivate)}function pd(n){return n&&Qe(n.canMatch)}function Ta(n){return n instanceof Ho||n?.name==="EmptyError"}var Pn=Symbol("INITIAL_VALUE");function me(){return G(n=>Gt(n.map(t=>t.pipe(nt(1),dn(Pn)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===Pn)return Pn;if(o===!1||o instanceof Rt)return o}return!0}),st(t=>t!==Pn),nt(1)))}function fd(n,t){return q(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?f(U(h({},o),{guardsResult:!0})):bd(a,e,i,n).pipe(q(s=>s&&dd(s)?gd(e,r,n,t):f(s)),v(s=>U(h({},o),{guardsResult:s})))})}function bd(n,t,o,e){return z(n).pipe(q(i=>xd(i.component,i.route,o,t,e)),wt(i=>i!==!0,!0))}function gd(n,t,o,e){return z(t).pipe(_t(i=>Kt(yd(i.route.parent,e),vd(i.route,e),wd(n,i.path,o),_d(n,i.route,o))),wt(i=>i!==!0,!0))}function vd(n,t){return n!==null&&t&&t(new ro(n)),f(!0)}function yd(n,t){return n!==null&&t&&t(new io(n)),f(!0)}function _d(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return f(!0);let i=e.map(r=>pi(()=>{let a=Xe(t)??o,s=he(r,a),d=ud(s)?s.canActivate(t,n):ct(a,()=>s(t,n));return Mt(d).pipe(wt())}));return f(i).pipe(me())}function wd(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>ad(a)).filter(a=>a!==null).map(a=>pi(()=>{let s=a.guards.map(d=>{let c=Xe(a.node)??o,l=he(d,c),p=md(l)?l.canActivateChild(e,n):ct(c,()=>l(e,n));return Mt(p).pipe(wt())});return f(s).pipe(me())}));return f(r).pipe(me())}function xd(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return f(!0);let a=r.map(s=>{let d=Xe(t)??i,c=he(s,d),l=hd(c)?c.canDeactivate(n,t,o,e):ct(d,()=>c(n,t,o,e));return Mt(l).pipe(wt())});return f(a).pipe(me())}function Id(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return f(!0);let r=i.map(a=>{let s=he(a,n),d=ld(s)?s.canLoad(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(me(),Ra(e))}function Ra(n){return Vo(S(t=>{if(le(t))throw Ia(n,t)}),v(t=>t===!0))}function Ed(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return f(!0);let r=i.map(a=>{let s=he(a,n),d=pd(s)?s.canMatch(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(me(),Ra(e))}var Ge=class{constructor(t){this.segmentGroup=t||null}},Zn=class extends Error{constructor(t){super(),this.urlTree=t}};function re(n){return Ot(new Ge(n))}function Cd(n){return Ot(new R(4e3,!1))}function Td(n){return Ot(Ea(!1,J.GuardRejected))}var po=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return f(e);if(i.numberOfChildren>1||!i.children[y])return Cd(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Zn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new Rt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new E(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},fo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Rd(n,t,o,e,i){let r=Io(n,t,o);return r.matched?(e=nd(t,e),Ed(e,t,o,i).pipe(v(a=>a===!0?r:h({},fo)))):f(r)}function Io(n,t,o){if(t.path==="**")return Ad(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?h({},fo):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Ec)(o,n,t);if(!i)return h({},fo);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?h(h({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Ad(n){return{matched:!0,parameters:n.length>0?aa(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function na(n,t,o,e){return o.length>0&&Md(n,o,e)?{segmentGroup:new E(t,Dd(e,new E(o,n.children))),slicedSegments:[]}:o.length===0&&kd(n,o,e)?{segmentGroup:new E(n.segments,Sd(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new E(n.segments,n.children),slicedSegments:o}}function Sd(n,t,o,e){let i={};for(let r of o)if(Xn(n,t,r)&&!e[ut(r)]){let a=new E([],{});i[ut(r)]=a}return h(h({},e),i)}function Dd(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&ut(e)!==y){let i=new E([],{});o[ut(e)]=i}return o}function Md(n,t,o){return o.some(e=>Xn(n,t,e)&&ut(e)!==y)}function kd(n,t,o){return o.some(e=>Xn(n,t,e))}function Xn(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Od(n,t,o,e){return ut(n)!==e&&(e===y||!Xn(t,o,n))?!1:Io(t,n,o).matched}function Nd(n,t,o){return t.length===0&&!n.children[o]}var bo=class{};function Fd(n,t,o,e,i,r,a="emptyOnly"){return new go(n,t,o,e,i,a,r).recognize()}var Pd=31,go=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new R(4002,`'${t.segmentGroup}'`)}recognize(){let t=na(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new He([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new Y(e,o),r=new Gn("",i),a=Vc(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(yt(e=>{if(e instanceof Zn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ge?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=yo(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof Y?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return z(i).pipe(_t(r=>{let a=e.children[r],s=id(o,r);return this.processSegmentGroup(t,s,a,r)}),Yo((r,a)=>(r.push(...a),r)),bi(null),Zo(),q(r=>{if(r===null)return re(e);let a=Aa(r);return jd(a),f(a)}))}processSegment(t,o,e,i,r,a){return z(o).pipe(_t(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(yt(d=>{if(d instanceof Ge)return f(null);throw d}))),wt(s=>!!s),yt(s=>{if(Ta(s))return Nd(e,i,r)?f(new bo):re(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Od(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):re(i):re(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=Io(o,i,r);if(!s)return re(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Pd&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(q(g=>this.processSegment(t,e,o,g.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Rd(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(G(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(G(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:p,parameters:g}=s,x=new He(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Ud(e),ut(e),e.component??e._loadedComponent??null,e,zd(e)),{segmentGroup:X,slicedSegments:L}=na(o,l,p,d);if(L.length===0&&X.hasChildren())return this.processChildren(c,d,X).pipe(v(I=>I===null?null:new Y(x,I)));if(d.length===0&&L.length===0)return f(new Y(x,[]));let C=ut(e)===r;return this.processSegment(c,d,X,L,C?y:r,!0).pipe(v(I=>new Y(x,I instanceof Y?[I]:[])))}))):re(o)))}getChildConfig(t,o,e){return o.children?f({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?f({routes:o._loadedRoutes,injector:o._loadedInjector}):Id(t,o,e,this.urlSerializer).pipe(q(i=>i?this.configLoader.loadChildren(t,o).pipe(S(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):Td(o))):f({routes:[],injector:t})}};function jd(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function Ld(n){let t=n.value.routeConfig;return t&&t.path===""}function Aa(n){let t=[],o=new Set;for(let e of n){if(!Ld(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Aa(e.children);t.push(new Y(e.value,i))}return t.filter(e=>!o.has(e))}function Ud(n){return n.data||{}}function zd(n){return n.resolve||{}}function $d(n,t,o,e,i,r){return q(a=>Fd(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(h({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function Bd(n,t){return q(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return f(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of Sa(d))a.add(c);let s=0;return z(a).pipe(_t(d=>r.has(d)?Vd(d,e,n,t):(d.data=yo(d,d.parent,n).resolve,f(void 0))),S(()=>s++),gi(1),q(d=>s===a.size?f(o):vt))})}function Sa(n){let t=n.children.map(o=>Sa(o)).flat();return[n,...t]}function Vd(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!wa(i)&&(r[Ze]=i.title),Wd(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=yo(n,n.parent,o).resolve,null)))}function Wd(n,t,o,e){let i=Gi(n);if(i.length===0)return f({});let r={};return z(i).pipe(q(a=>Hd(n[a],t,o,e).pipe(wt(),S(s=>{r[a]=s}))),gi(1),Go(r),yt(a=>Ta(a)?vt:Ot(a)))}function Hd(n,t,o,e){let i=Xe(t)??e,r=he(n,i),a=r.resolve?r.resolve(t,o):ct(i,()=>r(t,o));return Mt(a)}function Hi(n){return G(t=>{let o=n(t);return o?z(o).pipe(v(()=>t)):f(t)})}var Da=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Ze]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(qd),providedIn:"root"});let n=t;return n})(),qd=(()=>{let t=class t extends Da{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(u(Zr))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),tn=new _("",{providedIn:"root",factory:()=>({})}),Ke=new _(""),Eo=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(wn)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Mt(e.loadComponent()).pipe(v(Ma),S(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),mt(()=>{this.componentLoaders.delete(e)})),r=new mi(i,()=>new H).pipe(ui());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return f({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=Gd(i,this.compiler,e,this.onLoadEndListener).pipe(mt(()=>{this.childrenLoaders.delete(i)})),s=new mi(a,()=>new H).pipe(ui());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Gd(n,t,o,e){return Mt(n.loadChildren()).pipe(v(Ma),q(i=>i instanceof fr||Array.isArray(i)?f(i):z(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Ke,[],{optional:!0,self:!0}).flat()),{routes:a.map(xo),injector:r}}))}function Kd(n){return n&&typeof n=="object"&&"default"in n}function Ma(n){return Kd(n)?n.default:n}var Co=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(Zd),providedIn:"root"});let n=t;return n})(),Zd=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ka=new _(""),Oa=new _("");function Yd(n,t,o){let e=n.get(Oa),i=n.get(T);return n.get(A).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let r,a=new Promise(c=>{r=c}),s=i.startViewTransition(()=>(r(),Jd(n))),{onViewTransitionCreated:d}=e;return d&&ct(n,()=>d({transition:s,from:t,to:o})),a})}function Jd(n){return new Promise(t=>{mr(t,{injector:n})})}var To=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=m(Eo),this.environmentInjector=m(Ft),this.urlSerializer=m(Ye),this.rootContexts=m(Je),this.location=m(Ce),this.inputBindingEnabled=m(Jn,{optional:!0})!==null,this.titleStrategy=m(Da),this.options=m(tn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(Co),this.createViewTransition=m(ka,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let e=r=>this.events.next(new eo(r)),i=r=>this.events.next(new no(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(h(h({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new k({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Le,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(a=>a.id!==0),v(a=>U(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),G(a=>{let s=!1,d=!1;return f(a).pipe(G(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),vt;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!=="reload"){let g="";return this.events.next(new St(c.id,this.urlSerializer.serialize(c.rawUrl),g,Bn.IgnoredSameUrlNavigation)),c.resolve(null),vt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return f(c).pipe(G(g=>{let x=this.transitions?.getValue();return this.events.next(new ue(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),x!==this.transitions?.getValue()?vt:Promise.resolve(g)}),$d(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(g=>{a.targetSnapshot=g.targetSnapshot,a.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=U(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let x=new Vn(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:x,source:X,restoredState:L,extras:C}=c,I=new ue(g,this.urlSerializer.serialize(x),X,L);this.events.next(I);let et=ya(this.rootComponentType).snapshot;return this.currentTransition=a=U(h({},c),{targetSnapshot:et,urlAfterRedirects:x,extras:U(h({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,f(a)}else{let g="";return this.events.next(new St(c.id,this.urlSerializer.serialize(c.extractedUrl),g,Bn.IgnoredByUrlHandlingStrategy)),c.resolve(null),vt}}),S(c=>{let l=new Ji(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(h({},c),{guards:rd(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),fd(this.environmentInjector,c=>this.events.next(c)),S(c=>{if(a.guardsResult=c.guardsResult,le(c.guardsResult))throw Ia(this.urlSerializer,c.guardsResult);let l=new Xi(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),st(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",J.GuardRejected),!1)),Hi(c=>{if(c.guards.canActivateChecks.length)return f(c).pipe(S(l=>{let p=new Qi(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),G(l=>{let p=!1;return f(l).pipe(Bd(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",J.NoDataFromResolver)}}))}),S(l=>{let p=new to(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Hi(c=>{let l=p=>{let g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(S(x=>{p.component=x}),v(()=>{})));for(let x of p.children)g.push(...l(x));return g};return Gt(l(c.targetSnapshot.root)).pipe(bi(null),nt(1))}),Hi(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?z(p).pipe(v(()=>a)):f(a)}),v(c=>{let l=Jc(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),S(()=>{this.events.next(new Ve)}),od(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),nt(1),S({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Zt(this.transitionAbortSubject.pipe(S(c=>{throw c}))),mt(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(c=>{if(d=!0,Ca(c))this.events.next(new At(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),td(c)?this.events.next(new We(c.url)):a.resolve(!1);else{this.events.next(new Be(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return vt}))}))}cancelNavigationTransition(e,i,r){let a=new At(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Xd(n){return n!==Le}var Qd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(tl),providedIn:"root"});let n=t;return n})(),vo=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},tl=(()=>{let t=class t extends vo{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_i(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Na=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(el),providedIn:"root"});let n=t;return n})(),el=(()=>{let t=class t extends Na{constructor(){super(...arguments),this.location=m(Ce),this.urlSerializer=m(Ye),this.options=m(tn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(Co),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ya(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(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof ue)this.stateMemento=this.createStateMemento();else if(e instanceof St)this.rawUrlTree=i.initialUrl;else if(e instanceof Vn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof Ve?(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))):e instanceof At&&(e.code===J.GuardRejected||e.code===J.NoDataFromResolver)?this.restoreHistory(i):e instanceof Be?this.restoreHistory(i,!0):e instanceof lt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=h(h({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=h(h({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_i(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Pe=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Pe||{});function Fa(n,t){n.events.pipe(st(o=>o instanceof lt||o instanceof At||o instanceof Be||o instanceof St),v(o=>o instanceof lt||o instanceof St?Pe.COMPLETE:(o instanceof At?o.code===J.Redirect||o.code===J.SupersededByNewNavigation:!1)?Pe.REDIRECTING:Pe.FAILED),st(o=>o!==Pe.REDIRECTING),nt(1)).subscribe(()=>{t()})}function nl(n){throw n}var il={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ol={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bt=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=m(vn),this.stateManager=m(Na),this.options=m(tn,{optional:!0})||{},this.pendingTasks=m(we),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(To),this.urlSerializer=m(Ye),this.location=m(Ce),this.urlHandlingStrategy=m(Co),this._events=new H,this.errorHandler=this.options.errorHandler||nl,this.navigated=!1,this.routeReuseStrategy=m(Qd),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Ke,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(Jn,{optional:!0}),this.eventsSubscription=new ge,this.isNgZoneEnabled=m(A)instanceof A&&A.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof At&&i.code!==J.Redirect&&i.code!==J.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof lt)this.navigated=!0;else if(i instanceof We){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Xd(r.source)};this.scheduleNavigation(s,Le,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}al(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Le,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=h({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(xo),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(e,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,p=null;switch(d){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let g;try{let x=r?r.snapshot:this.routerState.snapshot.root;g=fa(x)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return ba(g,e,p,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=le(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Le,null,i)}navigate(e,i={skipLocationChange:!1}){return rl(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=h({},il):i===!1?r=h({},ol):r=i,le(e))return Jr(this.currentUrlTree,e,r);let a=this.parseUrl(e);return Jr(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,x)=>{d=g,c=x});let p=this.pendingTasks.add();return Fa(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function rl(n){for(let t=0;t{let t=class t{constructor(e,i,r,a,s,d){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof lt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,a,s){let d=this.urlTree;if(d===null||this.isAnchorElement&&(e!==0||i||r||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(d,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:dr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,a=this.el.nativeElement;i!==null?r.setAttribute(a,e,i):r.removeAttribute(a,e)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(i){return new(i||t)(w(bt),w(Dt),mn("tabindex"),w(ur),w($),w(Ee))},t.\u0275dir=it({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&xe("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&It("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[D.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Z],skipLocationChange:[D.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Z],replaceUrl:[D.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Z],routerLink:"routerLink"},standalone:!0,features:[xt,un]});let n=t;return n})();var Yn=class{};var sl=(()=>{let t=class t{constructor(e,i,r,a,s){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof lt),_t(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let a of i){a.providers&&!a._injector&&(a._injector=Ii(a.providers,e,`Route: ${a.path}`));let s=a._injector??e,d=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(d,a.children??a._loadedRoutes))}return z(r).pipe(hi())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=f(null);let a=r.pipe(q(s=>s===null?f(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return z([a,s]).pipe(hi())}else return a})}};t.\u0275fac=function(i){return new(i||t)(u(bt),u(wn),u(Ft),u(Yn),u(Eo))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ja=new _(""),cl=(()=>{let t=class t{constructor(e,i,r,a,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof ue?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof St&&e.code===Bn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Wn&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Wn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){Qt()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function La(n,...t){return Nt([{provide:Ke,multi:!0,useValue:n},[],{provide:Dt,useFactory:Ua,deps:[bt]},{provide:yn,multi:!0,useFactory:za},t.map(o=>o.\u0275providers)])}function Ua(n){return n.routerState.root}function en(n,t){return{\u0275kind:n,\u0275providers:t}}function za(){let n=m(wi);return t=>{let o=n.get(_n);if(t!==o.components[0])return;let e=n.get(bt),i=n.get($a);n.get(Ro)===1&&e.initialNavigation(),n.get(Ba,null,vi.Optional)?.setUpPreloading(),n.get(ja,null,vi.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var $a=new _("",{factory:()=>new H}),Ro=new _("",{providedIn:"root",factory:()=>1});function dl(){return en(2,[{provide:Ro,useValue:0},{provide:Ie,multi:!0,deps:[wi],useFactory:t=>{let o=t.get(xr,Promise.resolve());return()=>o.then(()=>new Promise(e=>{let i=t.get(bt),r=t.get($a);Fa(i,()=>{e(!0)}),t.get(To).afterPreactivation=()=>(e(!0),r.closed?f(void 0):r),i.initialNavigation()}))}}])}function ll(){return en(3,[{provide:Ie,multi:!0,useFactory:()=>{let t=m(bt);return()=>{t.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}])}var Ba=new _("");function ul(n){return en(0,[{provide:Ba,useExisting:sl},{provide:Yn,useExisting:n}])}function ml(){return en(8,[ea,{provide:Jn,useExisting:ea}])}function hl(n){let t=[{provide:ka,useValue:Yd},{provide:Oa,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return en(9,t)}var ia=new _("ROUTER_FORROOT_GUARD"),pl=[Ce,{provide:Ye,useClass:ze},bt,Je,{provide:Dt,useFactory:Ua,deps:[bt]},Eo,[]],Va=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[pl,[],{provide:Ke,multi:!0,useValue:e},{provide:ia,useFactory:vl,deps:[[bt,new ln,new yi]]},{provide:tn,useValue:i||{}},i?.useHash?bl():gl(),fl(),i?.preloadingStrategy?ul(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?yl(i):[],i?.bindToComponentInputs?ml().\u0275providers:[],i?.enableViewTransitions?hl().\u0275providers:[],_l()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ke,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(u(ia,8))},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function fl(){return{provide:ja,useFactory:()=>{let n=m(Ar),t=m(A),o=m(tn),e=m(To),i=m(Ye);return o.scrollOffset&&n.setOffset(o.scrollOffset),new cl(i,e,n,t,o)}}}function bl(){return{provide:Ee,useClass:Er}}function gl(){return{provide:Ee,useClass:Ir}}function vl(n){return"guarded"}function yl(n){return[n.initialNavigation==="disabled"?ll().\u0275providers:[],n.initialNavigation==="enabledBlocking"?dl().\u0275providers:[]]}var oa=new _("");function _l(){return[{provide:oa,useFactory:za},{provide:yn,multi:!0,useExisting:oa}]}var So;try{So=typeof Intl<"u"&&Intl.v8BreakIterator}catch{So=!1}var V=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Rr(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||So)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var nn;function xl(){if(nn==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nn=!0}))}finally{nn=nn||!1}return nn}function pe(n){return xl()?n:!!n.capture}var Ao;function Il(){if(Ao==null){let n=typeof document<"u"?document.head:null;Ao=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ao}function Wa(n){if(Il()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function kt(n){return n.composedPath?n.composedPath()[0]:n.target}function Ha(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Do(n){return Array.isArray(n)?n:[n]}function Wt(n){return n instanceof $?n.nativeElement:n}var qa=new Set,Ht,El=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tl}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Cl(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(u(V),u(ye,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Cl(n,t){if(!qa.has(n))try{Ht||(Ht=document.createElement("style"),t&&Ht.setAttribute("nonce",t),Ht.setAttribute("type","text/css"),document.head.appendChild(Ht)),Ht.sheet&&(Ht.sheet.insertRule(`@media ${n} {body{ }}`,0),qa.add(n))}catch(o){console.error(o)}}function Tl(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Ka=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new H}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Ga(Do(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Ga(Do(e)).map(s=>this._registerQuery(s).observable),a=Gt(r);return a=Kt(a.pipe(nt(1)),a.pipe(cn(1),fi(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new sn(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(dn(i),v(({matches:s})=>({query:e,matches:s})),Zt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(u(El),u(A))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ga(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function ko(n){return n.buttons===0||n.detail===0}function Oo(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Rl=new _("cdk-input-modality-detector-options"),Al={ignoreKeys:[18,17,224,91,16]},Ja=650,fe=pe({passive:!0,capture:!0}),Sl=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new k(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=kt(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Oo(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kt(s)},this._options=h(h({},Al),a),this.modalityDetected=this._modality.pipe(cn(1)),this.modalityChanged=this.modalityDetected.pipe(Ko()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,fe),r.addEventListener("mousedown",this._onMousedown,fe),r.addEventListener("touchstart",this._onTouchstart,fe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fe),document.removeEventListener("mousedown",this._onMousedown,fe),document.removeEventListener("touchstart",this._onTouchstart,fe))}};t.\u0275fac=function(i){return new(i||t)(u(V),u(A),u(T),u(Rl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ti=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(ti||{}),Dl=new _("cdk-focus-monitor-default-options"),Qn=pe({passive:!0,capture:!0}),Xa=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=d=>{let c=kt(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||ti.IMMEDIATE}monitor(e,i=!1){let r=Wt(e);if(!this._platform.isBrowser||r.nodeType!==1)return f();let a=Wa(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new H,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=Wt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=Wt(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ti.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===ti.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Ja:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=kt(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Qn),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Qn)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Zt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Qn),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Qn),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=m(Ka).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return qt.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return qt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return qt.BLACK_ON_WHITE}return qt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Mo,Za,Ya),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===qt.BLACK_ON_WHITE?e.add(Mo,Za):i===qt.WHITE_ON_BLACK&&e.add(Mo,Ya)}}};t.\u0275fac=function(i){return new(i||t)(u(V),u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var No=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Ol(){return!0}var Nl=new _("mat-sanity-checks",{providedIn:"root",factory:Ol}),at=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Ha()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(u(Qa),u(Nl,8),u(T))},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[No,No]});let n=t;return n})();var tt=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(tt||{}),jo=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=tt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},ts=pe({passive:!0,capture:!0}),Lo=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=kt(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,ts)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,ts)))}},es={enterDuration:225,exitDuration:150},Fl=800,ns=pe({passive:!0,capture:!0}),is=["mousedown","touchstart"],os=["mouseup","mouseleave","touchend","touchcancel"],rn=class rn{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Wt(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=h(h({},es),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Pl(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let p=window.getComputedStyle(l),g=p.transitionProperty,x=p.transitionDuration,X=g==="none"||x==="0s"||x==="0s, 0s"||i.width===0&&i.height===0,L=new jo(this,l,e,X);l.style.transform="scale3d(1, 1, 1)",L.state=tt.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let C=null;return!X&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>this._finishRippleTransition(L),et=()=>this._destroyRipple(L);l.addEventListener("transitionend",I),l.addEventListener("transitioncancel",et),C={onTransitionEnd:I,onTransitionCancel:et}}),this._activeRipples.set(L,C),(X||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===tt.FADING_OUT||t.state===tt.HIDDEN)return;let o=t.element,e=h(h({},es),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=tt.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=Wt(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,is.forEach(e=>{rn._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{os.forEach(o=>{this._triggerElement.addEventListener(o,this,ns)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===tt.FADING_IN?this._startFadeOutTransition(t):t.state===tt.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=tt.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=tt.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=ko(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===tt.VISIBLE||t.config.terminateOnPointerUp&&t.state===tt.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(is.forEach(o=>rn._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&os.forEach(o=>t.removeEventListener(o,this,ns)))}};rn._eventManager=new Lo;var Uo=rn;function Pl(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var cs=new _("mat-ripple-global-options"),jl=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Uo(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:h(h(h({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,h(h({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,h(h({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(w($),w(A),w(V),w(cs,8),w(Lt,8))},t.\u0275dir=it({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Et("mat-ripple-unbounded",r.unbounded)},inputs:{color:[D.None,"matRippleColor","color"],unbounded:[D.None,"matRippleUnbounded","unbounded"],centered:[D.None,"matRippleCentered","centered"],radius:[D.None,"matRippleRadius","radius"],animation:[D.None,"matRippleAnimation","animation"],disabled:[D.None,"matRippleDisabled","disabled"],trigger:[D.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),ds=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var rs={capture:!0},as=["focus","click","mouseenter","touchstart"],Fo="mat-ripple-loader-uninitialized",Po="mat-ripple-loader-class-name",ss="mat-ripple-loader-centered",ei="mat-ripple-loader-disabled",ls=(()=>{let t=class t{constructor(){this._document=m(T,{optional:!0}),this._animationMode=m(Lt,{optional:!0}),this._globalRippleOptions=m(cs,{optional:!0}),this._platform=m(V),this._ngZone=m(A),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Fo}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of as)this._document?.addEventListener(e,this._onInteraction,rs)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of as)this._document?.removeEventListener(i,this._onInteraction,rs)}configureRipple(e,i){e.setAttribute(Fo,""),(i.className||!e.hasAttribute(Po))&&e.setAttribute(Po,i.className||""),i.centered&&e.setAttribute(ss,""),i.disabled&&e.setAttribute(ei,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ei,""):e.removeAttribute(ei)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Po)),e.append(r);let a=new jl(new $(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(ss),a.disabled=e.hasAttribute(ei),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(Fo),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ll=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Ul=["mat-icon-button",""],zl=["*"];var $l=new _("MAT_BUTTON_CONFIG");var Bl=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Vl=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=m(Xa),this._rippleLoader=m(ls),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=m($l,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:p}of Bl)d.hasAttribute(l)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){Qt()},t.\u0275dir=it({type:t,inputs:{color:"color",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Z],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Z],ariaDisabled:[D.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Z],disabledInteractive:[D.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Z]},features:[xt]});let n=t;return n})();var ni=(()=>{let t=class t extends Vl{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(w($),w(V),w(A),w(Lt,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(It("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),te(r.color?"mat-"+r.color:""),Et("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[pr,P],attrs:Ul,ngContentSelectors:zl,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(zt(),B(0,"span",0),Ct(1),B(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Ll],encapsulation:2,changeDetection:0});let n=t;return n})();var ii=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,ds,at]});let n=t;return n})();var Wl=["*"],oi;function Hl(){if(oi===void 0&&(oi=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(oi=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return oi}function an(n){return Hl()?.createHTML(n)||n}function ms(n){return Error(`Unable to find icon with the name "${n}"`)}function ql(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function hs(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ps(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var gt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},Gl=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new gt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(K.HTML,r);if(!s)throw ps(r);let d=an(s);return this._addSvgIconConfig(e,i,new gt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new gt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(K.HTML,i);if(!a)throw ps(i);let s=an(a);return this._addSvgIconSetConfig(e,new gt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(K.RESOURCE_URL,e);if(!i)throw hs(e);let r=this._cachedIconsByUrl.get(i);return r?f(ri(r)):this._loadSvgIconFromConfig(new gt(e,null)).pipe(S(a=>this._cachedIconsByUrl.set(i,a)),v(a=>ri(a)))}getNamedSvgIcon(e,i=""){let r=fs(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ot(ms(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(ri(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>ri(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return f(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(yt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(K.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return qo(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw ms(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(S(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(S(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(an(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(an("")),r=e.attributes;for(let a=0;aan(l)),mt(()=>this._inProgressUrlFetches.delete(s)),Jo());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(fs(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var bs=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xl=bs.map(n=>`[${n}]`).join(", "),Ql=/^url\(['"]?#(.*?)['"]?\)$/,ai=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ge.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(Xl),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(Ql):null;if(l){let p=r.get(d);p||(p=[],r.set(d,p)),p.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(nt(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(w($),w(Gl),mn("aria-hidden"),w(Yl),w(Pt),w(Zl,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(It("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),te(r.color?"mat-"+r.color:""),Et("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[D.HasDecoratorInputTransform,"inline","inline",Z],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[xt,P],ngContentSelectors:Wl,decls:1,vars:0,template:function(i,r){i&1&&(zt(),Ct(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),si=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();function tu(n,t){if(n&1&&(ot(0,"li")(1,"button",1)(2,"mat-icon"),pt(3,"favorite_border"),rt()(),pt(4),rt()),n&2){let o=t.$implicit;Xt(4),Ti(" ",o," ")}}var ci=(()=>{let t=class t{constructor(){this.jokes=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-joke-list"]],inputs:{jokes:"jokes"},standalone:!0,features:[P],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-icon-button","","title","Favourites","routerLink","/favourites"]],template:function(i,r){i&1&&(ot(0,"ul"),Ei(1,tu,5,1,"li",0),rt()),i&2&&(Xt(),Ut("ngForOf",r.jokes))},dependencies:[ft,Cr,si,ai,ii,ni],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:90%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:large;vertical-align:text-top}"],changeDetection:0});let n=t;return n})();var vs=(()=>{let t=class t{saveToLocalStorage(e,i){localStorage.setItem(e,i)}getFromLocalStorage(e){return localStorage.getItem(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var di=(()=>{let t=class t{constructor(e){this.localStorageService=e,this._favourites$=new k([]),this.favourites$=this._favourites$.asObservable()}addFavourite(e){this._favourites$.next([...this._favourites$.value,e]),this.persistToLocalStorage()}removeFavourite(e){this._favourites$.next(this._favourites$.value.filter(i=>i!==e)),this.persistToLocalStorage()}initStore(){let e=this.localStorageService.getFromLocalStorage("favourites");e&&this._favourites$.next(JSON.parse(e))}persistToLocalStorage(){this.localStorageService.saveToLocalStorage("favourites",JSON.stringify(this._favourites$.value))}};t.\u0275fac=function(i){return new(i||t)(u(vs))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var iu=()=>[],ys=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e}};t.\u0275fac=function(i){return new(i||t)(w(di))},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ee(1,"async")),i&2&&Ut("jokes",ne(1,1,r.favouritesStoreService.favourites$)||gn(3,iu))},dependencies:[ft,ie,ci],changeDetection:0});let n=t;return n})();var _s="https://api.chucknorris.io/jokes/random";var ws=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(_s).pipe(v(e=>e.value))}};t.\u0275fac=function(i){return new(i||t)(u(De))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var be=(()=>{let t=class t{constructor(e){this.chuckNorrisJokeGeneratorService=e,this._jokes$=new k([]),this.jokes$=this._jokes$.asObservable(),this._isNewJokeIntervalRunning$=new k(!1),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable(),this.newJokeIntervalId=this.startNewJokeTimer()}toggleInterval(){this.newJokeIntervalId?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0))}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());Kt(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i]))}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>{console.log({joke:e}),this._jokes$.next([e,...this._jokes$.value.splice(0,9)])})},5e3)}};t.\u0275fac=function(i){return new(i||t)(u(ws))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ru=()=>[],Is=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(w(be))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ee(1,"async")),i&2&&Ut("jokes",ne(1,1,r.jokeStoreService.jokes$)||gn(3,ru))},dependencies:[ft,ie,ci],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var Es=[{path:"",redirectTo:"jokes",pathMatch:"full"},{path:"jokes",component:Is},{path:"favourites",component:ys}];var au="@",su=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=m(lr,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-G4FRQYPG.js")).catch(i=>{throw new R(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new zo(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){Qt()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),zo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(au)}};function Cs(n="animations"){return xi("NgAsyncAnimations"),Nt([{provide:pn,useFactory:(t,o,e)=>new su(t,o,e,n),deps:[T,On,A]},{provide:Lt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Ts={providers:[La(Es),Cs(),Oi(),{provide:Ie,useFactory:(n,t)=>{n.initStore(),t.initStore()},deps:[be,di]}]};var cu=["*",[["mat-toolbar-row"]]],du=["*","mat-toolbar-row"],lu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=it({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Rs=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(w($),w(V),w(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Ci(a,lu,5),i&2){let s;fn(s=bn())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(te(r.color?"mat-"+r.color:""),Et("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:du,decls:2,vars:0,template:function(i,r){i&1&&(zt(cu),Ct(0),Ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var As=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var $o=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}($o||{});var Ss=(()=>{let t=class t{constructor(e){this.jokeStoreService=e,this.hourGlass=$o}};t.\u0275fac=function(i){return new(i||t)(w(be))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[P],decls:15,vars:3,consts:[[1,"header"],[1,"spacer"],["mat-icon-button","","title","Jokes","routerLink","/jokes"],["mat-icon-button","","title","Favourites","routerLink","/favourites"],["mat-icon-button","","title","Toggle Interval",3,"click"]],template:function(i,r){i&1&&(ot(0,"mat-toolbar")(1,"span",0),pt(2,"Chuck Norris Jokes"),rt(),B(3,"span",1),ot(4,"button",2)(5,"mat-icon"),pt(6,"home"),rt()(),ot(7,"button",3)(8,"mat-icon"),pt(9,"favorite"),rt()(),ot(10,"button",4),xe("click",function(){return r.jokeStoreService.toggleInterval()}),ot(11,"mat-icon"),pt(12),ee(13,"async"),rt()()(),B(14,"router-outlet")),i&2&&(Xt(12),br(ne(13,1,r.jokeStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[si,ai,ii,ni,As,Rs,ft,ie,Va,wo,Pa],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{margin-bottom:15px;padding:0 0 0 5px}"],changeDetection:0});let n=t;return n})();var Ds=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"cnjg-home")},dependencies:[Ur,Ss],encapsulation:2});let n=t;return n})();Kr(Ds,Ts).catch(n=>console.error(n));