git-history-ui 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ var SC=Object.defineProperty,xC=Object.defineProperties;var TC=Object.getOwnPropertyDescriptors;var Np=Object.getOwnPropertySymbols;var AC=Object.prototype.hasOwnProperty,NC=Object.prototype.propertyIsEnumerable;var Rp=(e,t,n)=>t in e?SC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||={})AC.call(t,n)&&Rp(e,n,t[n]);if(Np)for(var n of Np(t))NC.call(t,n)&&Rp(e,n,t[n]);return e},Z=(e,t)=>xC(e,TC(t));var Yl;function Os(){return Yl}function Wt(e){let t=Yl;return Yl=e,t}var Op=Symbol("NotFound");function qr(e){return e===Op||e?.name==="\u0275NotFound"}function Vs(e,t){return Object.is(e,t)}var Be=null,ks=!1,Ql=1,RC=null,Ue=Symbol("SIGNAL");function B(e){let t=Be;return Be=e,t}function js(){return Be}var ar={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Zr(e){if(ks)throw new Error("");if(Be===null)return;Be.consumerOnSignalRead(e);let t=Be.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Be.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Be.producers,n!==void 0&&n.producer===e)){Be.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Be&&(!r||kC(o,Be)))return;let i=Qr(Be),s={producer:e,consumer:Be,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Be.producersTail=s,t!==void 0?t.nextProducer=s:Be.producers=s,i&&Pp(e,s)}function kp(){Ql++}function Bs(e){if(!(Qr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ql)){if(!e.producerMustRecompute(e)&&!ai(e)){Ls(e);return}e.producerRecomputeValue(e),Ls(e)}}function Kl(e){if(e.consumers===void 0)return;let t=ks;ks=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||OC(r)}}finally{ks=t}}function Xl(){return Be?.consumerAllowSignalWrites!==!1}function OC(e){e.dirty=!0,Kl(e),e.consumerMarkedDirty?.(e)}function Ls(e){e.dirty=!1,e.lastCleanEpoch=Ql}function cr(e){return e&&(e.producersTail=void 0,e.recomputing=!0),B(e)}function Yr(e,t){if(B(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(Qr(e))do r=Jl(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function ai(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Bs(n),r!==n.version))return!0}return!1}function ci(e){if(Qr(e)){let t=e.producers;for(;t!==void 0;)t=Jl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Pp(e,t){let n=e.consumersTail,r=Qr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Pp(o.producer,o)}function Jl(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Qr(t)){let i=t.producers;for(;i!==void 0;)i=Jl(i)}return n}function Qr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Us(e){RC?.(e)}function kC(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Hs(e,t){let n=Object.create(PC);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Bs(n),Zr(n),n.value===si)throw n.error;return n.value};return r[Ue]=n,Us(n),r}var Ps=Symbol("UNSET"),Fs=Symbol("COMPUTING"),si=Symbol("ERRORED"),PC=Z(M({},ar),{value:Ps,dirty:!0,error:null,equal:Vs,kind:"computed",producerMustRecompute(e){return e.value===Ps||e.value===Fs},producerRecomputeValue(e){if(e.value===Fs)throw new Error("");let t=e.value;e.value=Fs;let n=cr(e),r,o=!1;try{r=e.computation(),B(null),o=t!==Ps&&t!==si&&r!==si&&e.equal(t,r)}catch(i){r=si,e.error=i}finally{Yr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function FC(){throw new Error}var Fp=FC;function Lp(e){Fp(e)}function eu(e){Fp=e}var LC=null;function tu(e,t){let n=Object.create($s);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Vp(n);return r[Ue]=n,Us(n),[r,s=>Kr(n,s),s=>nu(n,s)]}function Vp(e){return Zr(e),e.value}function Kr(e,t){Xl()||Lp(e),e.equal(e.value,t)||(e.value=t,VC(e))}function nu(e,t){Xl()||Lp(e),Kr(e,t(e.value))}var $s=Z(M({},ar),{equal:Vs,value:void 0,kind:"signal"});function VC(e){e.version++,kp(),Kl(e),LC?.(e)}function V(e){return typeof e=="function"}function Xr(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 zs=Xr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function li(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=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(V(r))try{r()}catch(i){t=i instanceof zs?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{jp(i)}catch(s){t=t??[],s instanceof zs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new zs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)jp(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)&&li(n,t)}remove(t){let{_finalizers:n}=this;n&&li(n,t),t instanceof e&&t._removeParent(this)}};_e.EMPTY=(()=>{let e=new _e;return e.closed=!0,e})();var ru=_e.EMPTY;function Gs(e){return e instanceof _e||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function jp(e){V(e)?e():e.unsubscribe()}var Tt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jr={setTimeout(e,t,...n){let{delegate:r}=Jr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Jr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ws(e){Jr.setTimeout(()=>{let{onUnhandledError:t}=Tt;if(t)t(e);else throw e})}function ui(){}var Bp=ou("C",void 0,void 0);function Up(e){return ou("E",void 0,e)}function Hp(e){return ou("N",e,void 0)}function ou(e,t,n){return{kind:e,value:t,error:n}}var lr=null;function eo(e){if(Tt.useDeprecatedSynchronousErrorHandling){let t=!lr;if(t&&(lr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=lr;if(lr=null,n)throw r}}else e()}function $p(e){Tt.useDeprecatedSynchronousErrorHandling&&lr&&(lr.errorThrown=!0,lr.error=e)}var ur=class extends _e{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Gs(t)&&t.add(this)):this.destination=UC}static create(t,n,r){return new to(t,n,r)}next(t){this.isStopped?su(Hp(t),this):this._next(t)}error(t){this.isStopped?su(Up(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?su(Bp,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()}}},jC=Function.prototype.bind;function iu(e,t){return jC.call(e,t)}var au=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){qs(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){qs(r)}else qs(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){qs(n)}}},to=class extends ur{constructor(t,n,r){super();let o;if(V(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Tt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&iu(t.next,i),error:t.error&&iu(t.error,i),complete:t.complete&&iu(t.complete,i)}):o=t}this.destination=new au(o)}};function qs(e){Tt.useDeprecatedSynchronousErrorHandling?$p(e):Ws(e)}function BC(e){throw e}function su(e,t){let{onStoppedNotification:n}=Tt;n&&Jr.setTimeout(()=>n(e,t))}var UC={closed:!0,next:ui,error:BC,complete:ui};var no=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ct(e){return e}function cu(...e){return lu(e)}function lu(e){return e.length===0?ct:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var G=(()=>{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=$C(n)?n:new to(n,r,o);return eo(()=>{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=zp(r),new r((o,i)=>{let s=new to({next:a=>{try{n(a)}catch(c){i(c),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)}[no](){return this}pipe(...n){return lu(n)(this)}toPromise(n){return n=zp(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 zp(e){var t;return(t=e??Tt.Promise)!==null&&t!==void 0?t:Promise}function HC(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function $C(e){return e&&e instanceof ur||HC(e)&&Gs(e)}function uu(e){return V(e?.lift)}function J(e){return t=>{if(uu(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 Y(e,t,n,r,o){return new du(e,t,n,r,o)}var du=class extends ur{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=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 ro(){return J((e,t)=>{let n=null;e._refCount++;let r=Y(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 oo=class extends G{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,uu(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 _e;let n=this.getSubject();t.add(this.source.subscribe(Y(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=_e.EMPTY)}return t}refCount(){return ro()(this)}};var Gp=Xr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=(()=>{class e extends G{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Zs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Gp}next(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){eo(()=>{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(){eo(()=>{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?ru:(this.currentObservers=null,i.push(n),new _e(()=>{this.currentObservers=null,li(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new G;return n.source=this,n}}return e.create=(t,n)=>new Zs(t,n),e})(),Zs=class extends De{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:ru}};var Oe=class extends De{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 Je=new G(e=>e.complete());function Wp(e){return e&&V(e.schedule)}function qp(e){return e[e.length-1]}function Ys(e){return V(qp(e))?e.pop():void 0}function Rn(e){return Wp(qp(e))?e.pop():void 0}function Yp(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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Zp(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 dr(e){return this instanceof dr?(this.v=e,this):new dr(e)}function Qp(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(v){return Promise.resolve(v).then(f,d)}}function a(f,v){r[f]&&(o[f]=function(m){return new Promise(function(g,p){i.push([f,m,g,p])>1||c(f,m)})},v&&(o[f]=v(o[f])))}function c(f,v){try{l(r[f](v))}catch(m){h(i[0][3],m)}}function l(f){f.value instanceof dr?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,v){f(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Kp(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 Zp=="function"?Zp(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,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Qs=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ks(e){return V(e?.then)}function Xs(e){return V(e[no])}function Js(e){return Symbol.asyncIterator&&V(e?.[Symbol.asyncIterator])}function ea(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 zC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ta=zC();function na(e){return V(e?.[ta])}function ra(e){return Qp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield dr(n.read());if(o)return yield dr(void 0);yield yield dr(r)}}finally{n.releaseLock()}})}function oa(e){return V(e?.getReader)}function Ce(e){if(e instanceof G)return e;if(e!=null){if(Xs(e))return GC(e);if(Qs(e))return WC(e);if(Ks(e))return qC(e);if(Js(e))return Xp(e);if(na(e))return ZC(e);if(oa(e))return YC(e)}throw ea(e)}function GC(e){return new G(t=>{let n=e[no]();if(V(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function WC(e){return new G(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function qC(e){return new G(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ws)})}function ZC(e){return new G(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Xp(e){return new G(t=>{QC(e,t).catch(n=>t.error(n))})}function YC(e){return Xp(ra(e))}function QC(e,t){var n,r,o,i;return Yp(this,void 0,void 0,function*(){try{for(n=Kp(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 et(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 ia(e,t=0){return J((n,r)=>{n.subscribe(Y(r,o=>et(r,e,()=>r.next(o),t),()=>et(r,e,()=>r.complete(),t),o=>et(r,e,()=>r.error(o),t)))})}function sa(e,t=0){return J((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Jp(e,t){return Ce(e).pipe(sa(t),ia(t))}function eg(e,t){return Ce(e).pipe(sa(t),ia(t))}function tg(e,t){return new G(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ng(e,t){return new G(n=>{let r;return et(n,t,()=>{r=e[ta](),et(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)}),()=>V(r?.return)&&r.return()})}function aa(e,t){if(!e)throw new Error("Iterable cannot be null");return new G(n=>{et(n,t,()=>{let r=e[Symbol.asyncIterator]();et(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function rg(e,t){return aa(ra(e),t)}function og(e,t){if(e!=null){if(Xs(e))return Jp(e,t);if(Qs(e))return tg(e,t);if(Ks(e))return eg(e,t);if(Js(e))return aa(e,t);if(na(e))return ng(e,t);if(oa(e))return rg(e,t)}throw ea(e)}function he(e,t){return t?og(e,t):Ce(e)}function P(...e){let t=Rn(e);return he(e,t)}function io(e,t){let n=V(e)?e:()=>e,r=o=>o.error(n());return new G(t?o=>t.schedule(r,0,o):r)}function fu(e){return!!e&&(e instanceof G||V(e.lift)&&V(e.subscribe))}var dn=Xr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function U(e,t){return J((n,r)=>{let o=0;n.subscribe(Y(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:KC}=Array;function XC(e,t){return KC(t)?e(...t):e(t)}function ca(e){return U(t=>XC(e,t))}var{isArray:JC}=Array,{getPrototypeOf:eE,prototype:tE,keys:nE}=Object;function la(e){if(e.length===1){let t=e[0];if(JC(t))return{args:t,keys:null};if(rE(t)){let n=nE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function rE(e){return e&&typeof e=="object"&&eE(e)===tE}function ua(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function da(...e){let t=Rn(e),n=Ys(e),{args:r,keys:o}=la(e);if(r.length===0)return he([],t);let i=new G(oE(r,t,o?s=>ua(o,s):ct));return n?i.pipe(ca(n)):i}function oE(e,t,n=ct){return r=>{ig(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ig(t,()=>{let l=he(e[c],t),u=!1;l.subscribe(Y(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ig(e,t,n){e?et(n,e,t):t()}function sg(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?v(m):c.push(m),v=m=>{i&&t.next(m),l++;let g=!1;Ce(n(m,u++)).subscribe(Y(t,p=>{o?.(p),i?f(p):t.next(p)},()=>{g=!0},void 0,()=>{if(g)try{for(l--;c.length&&l<r;){let p=c.shift();s?et(t,s,()=>v(p)):v(p)}h()}catch(p){t.error(p)}}))};return e.subscribe(Y(t,f,()=>{d=!0,h()})),()=>{a?.()}}function be(e,t,n=1/0){return V(t)?be((r,o)=>U((i,s)=>t(r,i,o,s))(Ce(e(r,o))),n):(typeof t=="number"&&(n=t),J((r,o)=>sg(r,o,e,n)))}function ag(e=1/0){return be(ct,e)}function cg(){return ag(1)}function so(...e){return cg()(he(e,Rn(e)))}function di(e){return new G(t=>{Ce(e()).subscribe(t)})}function hu(...e){let t=Ys(e),{args:n,keys:r}=la(e),o=new G(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;Ce(n[u]).subscribe(Y(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?ua(r,a):a),i.complete())}))}});return t?o.pipe(ca(t)):o}function tt(e,t){return J((n,r)=>{let o=0;n.subscribe(Y(r,i=>e.call(t,i,o++)&&r.next(i)))})}function On(e){return J((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Y(n,void 0,void 0,s=>{i=Ce(e(s,On(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function lg(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(Y(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function kn(e,t){return V(t)?be(e,t,1):be(e,1)}function Pn(e){return J((t,n)=>{let r=!1;t.subscribe(Y(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function fn(e){return e<=0?()=>Je:J((t,n)=>{let r=0;t.subscribe(Y(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function fa(e=iE){return J((t,n)=>{let r=!1;t.subscribe(Y(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function iE(){return new dn}function Fn(e){return J((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function hn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):ct,fn(1),n?Pn(t):fa(()=>new dn))}function ao(e){return e<=0?()=>Je:J((t,n)=>{let r=[];t.subscribe(Y(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function pu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):ct,ao(1),n?Pn(t):fa(()=>new dn))}function gu(e,t){return J(lg(e,t,arguments.length>=2,!0))}function mu(...e){let t=Rn(e);return J((n,r)=>{(t?so(e,n,t):so(e,n)).subscribe(r)})}function He(e,t){return J((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Y(r,c=>{o?.unsubscribe();let l=0,u=i++;Ce(e(c,u)).subscribe(o=Y(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ha(e){return J((t,n)=>{Ce(e).subscribe(Y(n,()=>n.complete(),ui)),!n.closed&&t.subscribe(n)})}function Te(e,t,n){let r=V(e)||t||n?{next:e,error:t,complete:n}:e;return r?J((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(Y(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):ct}function ug(e){let t=B(null);try{return e()}finally{B(t)}}var Tu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(lo(t,n)),this.code=t}};function sE(e){return`NG0${Math.abs(e)}`}function lo(e,t){return`${sE(e)}${t?": "+t:""}`}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("")}function hg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function gn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(gn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function ya(e,t){return e?t?`${e} ${t}`:e:t||""}var aE=oe({__forward_ref__:oe});function vn(e){return e.__forward_ref__=vn,e.toString=function(){return gn(this())},e}function ke(e){return Au(e)?e():e}function Au(e){return typeof e=="function"&&e.hasOwnProperty(aE)&&e.__forward_ref__===vn}function pg(e,t){e==null&&Nu(t,e,null,"!=")}function Nu(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function N(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function mi(e){return cE(e,_a)}function Ru(e){return mi(e)!==null}function cE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function lE(e){let t=e?.[_a]??null;return t||null}function yu(e){return e&&e.hasOwnProperty(ga)?e[ga]:null}var _a=oe({\u0275prov:oe}),ga=oe({\u0275inj:oe}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ou(e){return e&&!!e.\u0275providers}var ku=oe({\u0275cmp:oe}),Pu=oe({\u0275dir:oe}),Fu=oe({\u0275pipe:oe}),Lu=oe({\u0275mod:oe}),pi=oe({\u0275fac:oe}),vr=oe({__NG_ELEMENT_ID__:oe}),dg=oe({__NG_ENV_ID__:oe});function Vn(e){return typeof e=="string"?e:e==null?"":String(e)}function ma(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Vn(e)}var Vu=oe({ngErrorCode:oe}),gg=oe({ngErrorMessage:oe}),hi=oe({ngTokenPath:oe});function ju(e,t){return mg("",-200,t)}function Da(e,t){throw new S(-201,!1)}function uE(e,t){e[hi]??=[];let n=e[hi],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(pg(t.provide,"Token with multi: true should have a provide property"),r=ma(t.provide)):r=ma(t),n[0]!==r&&e[hi].unshift(r)}function dE(e,t){let n=e[hi],r=e[Vu],o=e[gg]||e.message;return e.message=hE(o,r,n,t),e}function mg(e,t,n){let r=new S(t,e);return r[Vu]=t,r[gg]=e,n&&(r[hi]=n),r}function fE(e){return e[Vu]}function hE(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return lo(t,`${e}${i}${o}`)}var _u;function vg(){return _u}function lt(e){let t=_u;return _u=e,t}function Bu(e,t,n){let r=mi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Da(e,"Injector")}var pE={},fr=pE,Du="__NG_DI_FLAG__",Cu=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=hr(n)||0;try{return this.injector.get(t,r&8?null:fr,r)}catch(o){if(qr(o))return o;throw o}}};function gE(e,t=0){let n=Os();if(n===void 0)throw new S(-203,!1);if(n===null)return Bu(e,void 0,t);{let r=mE(t),o=n.retrieve(e,r);if(qr(o)){if(r.optional)return null;throw o}return o}}function k(e,t=0){return(vg()||gE)(ke(e),t)}function _(e,t){return k(e,hr(t))}function hr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function mE(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Eu(e){let t=[];for(let n=0;n<e.length;n++){let r=ke(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=vE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(k(o,i))}else t.push(k(r))}return t}function Uu(e,t){return e[Du]=t,e.prototype[Du]=t,e}function vE(e){return e[Du]}function pr(e,t){let n=e.hasOwnProperty(pi);return n?e[pi]:null}function yg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function _g(e){return e.flat(Number.POSITIVE_INFINITY)}function Ca(e,t){e.forEach(n=>Array.isArray(n)?Ca(n,t):t(n))}function Hu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Dg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Ea(e,t,n){let r=uo(e,t);return r>=0?e[r|1]=n:(r=~r,Dg(e,r,t,n)),r}function wa(e,t){let n=uo(e,t);if(n>=0)return e[n|1]}function uo(e,t){return yE(e,t,1)}function yE(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var jn={},qe=[],Bn=new x(""),$u=new x("",-1),zu=new x(""),gi=class{get(t,n=fr){if(n===fr){let o=mg("",-201);throw o.name="\u0275NotFound",o}return n}};function Gu(e){return e[Lu]||null}function Un(e){return e[ku]||null}function Wu(e){return e[Pu]||null}function Cg(e){return e[Fu]||null}function fo(e){return{\u0275providers:e}}function Eg(...e){return{\u0275providers:qu(!0,e),\u0275fromNgModule:!0}}function qu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ca(t,s=>{let a=s;va(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&wg(o,i),n}function wg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Zu(o,i=>{t(i,r)})}}function va(e,t,n,r){if(e=ke(e),!e)return!1;let o=null,i=yu(e),s=!i&&Un(e);if(!i&&!s){let c=e.ngModule;if(i=yu(c),i)o=c;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 c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)va(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Ca(i.imports,u=>{va(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&wg(l,t)}if(!a){let l=pr(o)||(()=>new o);t({provide:o,useFactory:l,deps:qe},o),t({provide:zu,useValue:o,multi:!0},o),t({provide:Bn,useValue:()=>k(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Zu(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Zu(e,t){for(let n of e)Ou(n)&&(n=n.\u0275providers),Array.isArray(n)?Zu(n,t):t(n)}var _E=oe({provide:String,useValue:oe});function bg(e){return e!==null&&typeof e=="object"&&_E in e}function DE(e){return!!(e&&e.useExisting)}function CE(e){return!!(e&&e.useFactory)}function gr(e){return typeof e=="function"}function Ig(e){return!!e.useClass}var yi=new x(""),pa={},fg={},vu;function _i(){return vu===void 0&&(vu=new gi),vu}var Ie=class{},mr=class extends Ie{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,bu(t,s=>this.processProvider(s)),this.records.set($u,co(void 0,this)),o.has("environment")&&this.records.set(Ie,co(void 0,this));let i=this.records.get(yi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zu,qe,{self:!0}))}retrieve(t,n){let r=hr(n)||0;try{return this.get(t,fr,r)}catch(o){if(qr(o))return o;throw o}}destroy(){fi(this),this._destroyed=!0;let t=B(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(),B(t)}}onDestroy(t){return fi(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){fi(this);let n=Wt(this),r=lt(void 0),o;try{return t()}finally{Wt(n),lt(r)}}get(t,n=fr,r){if(fi(this),t.hasOwnProperty(dg))return t[dg](this);let o=hr(r),i,s=Wt(this),a=lt(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=ME(t)&&mi(t);u&&this.injectableDefInScope(u)?l=co(wu(t),pa):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?_i():this.parent;return n=o&8&&n===fr?null:n,c.get(t,n)}catch(c){let l=fE(c);throw l===-200||l===-201?new S(l,null):c}finally{lt(a),Wt(s)}}resolveInjectorInitializers(){let t=B(null),n=Wt(this),r=lt(void 0),o;try{let i=this.get(Bn,qe,{self:!0});for(let s of i)s()}finally{Wt(n),lt(r),B(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(gn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ke(t);let n=gr(t)?t:ke(t&&t.provide),r=wE(t);if(!gr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=co(void 0,pa,!0),o.factory=()=>Eu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=B(null);try{if(n.value===fg)throw ju(gn(t));return n.value===pa&&(n.value=fg,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&IE(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{B(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ke(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 wu(e){let t=mi(e),n=t!==null?t.factory:pr(e);if(n!==null)return n;if(e instanceof x)throw new S(204,!1);if(e instanceof Function)return EE(e);throw new S(204,!1)}function EE(e){if(e.length>0)throw new S(204,!1);let n=lE(e);return n!==null?()=>n.factory(e):()=>new e}function wE(e){if(bg(e))return co(void 0,e.useValue);{let t=Yu(e);return co(t,pa)}}function Yu(e,t,n){let r;if(gr(e)){let o=ke(e);return pr(o)||wu(o)}else if(bg(e))r=()=>ke(e.useValue);else if(CE(e))r=()=>e.useFactory(...Eu(e.deps||[]));else if(DE(e))r=(o,i)=>k(ke(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ke(e&&(e.useClass||e.provide));if(bE(e))r=()=>new o(...Eu(e.deps));else return pr(o)||wu(o)}return r}function fi(e){if(e.destroyed)throw new S(205,!1)}function co(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function bE(e){return!!e.deps}function IE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ME(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function bu(e,t){for(let n of e)Array.isArray(n)?bu(n,t):n&&Ou(n)?bu(n.\u0275providers,t):t(n)}function Pe(e,t){let n;e instanceof mr?(fi(e),n=e):n=new Cu(e);let r,o=Wt(n),i=lt(void 0);try{return t()}finally{Wt(o),lt(i)}}function Mg(){return vg()!==void 0||Os()!=null}var Rt=0,F=1,L=2,Ae=3,pt=4,gt=5,Di=6,ho=7,$e=8,yr=9,yn=10,fe=11,po=12,Qu=13,_r=14,mt=15,Hn=16,Dr=17,qt=18,Ci=19,Ku=20,pn=21,ba=22,Ei=23,ut=24,Cr=25,nt=26,Sg=1;var $n=7,wi=8,Er=9,Ze=10;function Zt(e){return Array.isArray(e)&&typeof e[Sg]=="object"}function Ot(e){return Array.isArray(e)&&e[Sg]===!0}function Xu(e){return(e.flags&4)!==0}function zn(e){return e.componentOffset>-1}function bi(e){return(e.flags&1)===1}function Yt(e){return!!e.template}function go(e){return(e[L]&512)!==0}function wr(e){return(e[L]&256)===256}var Ju="svg",xg="math";function vt(e){for(;Array.isArray(e);)e=e[Rt];return e}function ed(e,t){return vt(t[e])}function Qt(e,t){return vt(t[e.index])}function Ia(e,t){return e.data[t]}function yt(e,t){let n=t[e];return Zt(n)?n:n[Rt]}function Tg(e){return(e[L]&4)===4}function Ma(e){return(e[L]&128)===128}function Ag(e){return Ot(e[Ae])}function br(e,t){return t==null?null:e[t]}function td(e){e[Dr]=0}function nd(e){e[L]&1024||(e[L]|=1024,Ma(e)&&mo(e))}function Ng(e,t){for(;e>0;)t=t[_r],e--;return t}function Ii(e){return!!(e[L]&9216||e[ut]?.dirty)}function Sa(e){e[yn].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Ii(e)&&mo(e)}function mo(e){e[yn].changeDetectionScheduler?.notify(0);let t=Ln(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!Ma(t)));)t=Ln(t)}function rd(e,t){if(wr(e))throw new S(911,!1);e[pn]===null&&(e[pn]=[]),e[pn].push(t)}function Rg(e,t){if(e[pn]===null)return;let n=e[pn].indexOf(t);n!==-1&&e[pn].splice(n,1)}function Ln(e){let t=e[Ae];return Ot(t)?t[Ae]:t}function od(e){return e[ho]??=[]}function id(e){return e.cleanup??=[]}function Og(e,t,n,r){let o=od(t);o.push(n),e.firstCreatePass&&id(e).push(r,o.length-1)}var z={lFrame:Gg(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Mi=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(Mi||{}),SE=0,Iu=!1;function kg(){return z.lFrame.elementDepthCount}function Pg(){z.lFrame.elementDepthCount++}function sd(){z.lFrame.elementDepthCount--}function ad(){return z.bindingsEnabled}function Fg(){return z.skipHydrationRootTNode!==null}function cd(e){return z.skipHydrationRootTNode===e}function ld(){z.skipHydrationRootTNode=null}function te(){return z.lFrame.lView}function ze(){return z.lFrame.tView}function me(e){return z.lFrame.contextLView=e,e[$e]}function ve(e){return z.lFrame.contextLView=null,e}function Fe(){let e=ud();for(;e!==null&&e.type===64;)e=e.parent;return e}function ud(){return z.lFrame.currentTNode}function Lg(){let e=z.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vo(e,t){let n=z.lFrame;n.currentTNode=e,n.isParent=t}function dd(){return z.lFrame.isParent}function Vg(){z.lFrame.isParent=!1}function fd(e){Nu("Must never be called in production mode"),SE=e}function hd(){return Iu}function pd(e){let t=Iu;return Iu=e,t}function gd(){return z.lFrame.bindingIndex}function jg(e){return z.lFrame.bindingIndex=e}function xa(){return z.lFrame.bindingIndex++}function Si(e){let t=z.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bg(){return z.lFrame.inI18n}function Ug(e,t){let n=z.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ta(t)}function Hg(){return z.lFrame.currentDirectiveIndex}function Ta(e){z.lFrame.currentDirectiveIndex=e}function $g(e){let t=z.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function md(){return z.lFrame.currentQueryIndex}function Aa(e){z.lFrame.currentQueryIndex=e}function xE(e){let t=e[F];return t.type===2?t.declTNode:t.type===1?e[gt]:null}function vd(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=xE(i),o===null||(i=i[_r],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=z.lFrame=zg();return r.currentTNode=t,r.lView=e,!0}function Na(e){let t=zg(),n=e[F];z.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zg(){let e=z.lFrame,t=e===null?null:e.child;return t===null?Gg(e):t}function Gg(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 Wg(){let e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var yd=Wg;function Ra(){let e=Wg();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 qg(e){return(z.lFrame.contextLView=Ng(e,z.lFrame.contextLView))[$e]}function Kt(){return z.lFrame.selectedIndex}function Gn(e){z.lFrame.selectedIndex=e}function _d(){let e=z.lFrame;return Ia(e.tView,e.selectedIndex)}function kt(){z.lFrame.currentNamespace=Ju}function Wn(){TE()}function TE(){z.lFrame.currentNamespace=null}function Zg(){return z.lFrame.currentNamespace}var Yg=!0;function Oa(){return Yg}function ka(e){Yg=e}var AE={elements:void 0};function Pa(){return AE}function Mu(e,t=null,n=null,r){let o=Dd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Dd(e,t=null,n=null,r,o=new Set){let i=[n||qe,Eg(e)];return r=r||(typeof e=="object"?void 0:gn(e)),new mr(i,t||_i(),r||null,o)}var ht=class e{static THROW_IF_NOT_FOUND=fr;static NULL=new gi;static create(t,n){if(Array.isArray(t))return Mu({name:""},n,t,"");{let r=t.name??"";return Mu({name:r},t.parent,t.providers,r)}}static \u0275prov=N({token:e,providedIn:"any",factory:()=>k($u)});static __NG_ELEMENT_ID__=-1},Me=new x(""),Xt=(()=>{class e{static __NG_ELEMENT_ID__=NE;static __NG_ENV_ID__=n=>n}return e})(),Su=class extends Xt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return wr(this._lView)}onDestroy(t){let n=this._lView;return rd(n,t),()=>Rg(n,t)}};function NE(){return new Su(te())}var At=class{_console=console;handleError(t){this._console.error("ERROR",t)}},dt=new x("",{providedIn:"root",factory:()=>{let e=_(Ie),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(At),t.handleError(n))}}}),Qg={provide:Bn,useValue:()=>void _(At),multi:!0};function Cd(e){return typeof e=="function"&&e[Ue]!==void 0}function _n(e,t){let[n,r,o]=tu(e,t?.equal),i=n,s=i[Ue];return i.set=r,i.update=o,i.asReadonly=Kg.bind(i),i}function Kg(){let e=this[Ue];if(e.readonlyFn===void 0){let t=()=>this();t[Ue]=e,e.readonlyFn=t}return e.readonlyFn}function Ed(e){return Cd(e)&&typeof e.set=="function"}var mn=class{},Fa=new x("",{providedIn:"root",factory:()=>!1});var wd=new x(""),bd=new x("");var La=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=RE}return e})();function RE(){return new La(te(),Fe())}var Jt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Oe(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new G(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),xi=(()=>{class e{internalPendingTasks=_(Jt);scheduler=_(mn);errorHandler=_(dt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ti(...e){}var Id=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>new xu})}return e})(),xu=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function bo(e){return{toString:e}.toString()}var Va="__parameters__";function jE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Sm(e,t,n){return bo(()=>{let r=jE(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(c,l,u){let d=c.hasOwnProperty(Va)?c[Va]:Object.defineProperty(c,Va,{value:[]})[Va];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var xm=Uu(Sm("Optional"),8);var Tm=Uu(Sm("SkipSelf"),4);function BE(e){return typeof e=="function"}var Ga=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Am(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var nn=(()=>{let e=()=>Nm;return e.ngInherit=!0,e})();function Nm(e){return e.type.prototype.ngOnChanges&&(e.setInput=HE),UE}function UE(){let e=Om(this),t=e?.current;if(t){let n=e.previous;if(n===jn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function HE(e,t,n,r,o){let i=this.declaredInputs[r],s=Om(e)||$E(e,{previous:jn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ga(l&&l.currentValue,n,c===jn),Am(e,t,o,n)}var Rm="__ngSimpleChanges__";function Om(e){return e[Rm]||null}function $E(e,t){return e[Rm]=t}var Xg=[];var ae=function(e,t=null,n){for(let r=0;r<Xg.length;r++){let o=Xg[r];o(e,t,n)}};function zE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Nm(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 km(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Ba(e,t,n){Pm(e,t,3,n)}function Ua(e,t,n,r){(e[L]&3)===n&&Pm(e,t,n,r)}function Md(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function Pm(e,t,n,r){let o=r!==void 0?e[Dr]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Dr]+=65536),(a<i||i==-1)&&(GE(e,n,t,c),e[Dr]=(e[Dr]&4294901760)+c+2),c++}function Jg(e,t){ae(4,e,t);let n=B(null);try{t.call(e)}finally{B(n),ae(5,e,t)}}function GE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[L]>>14<e[Dr]>>16&&(e[L]&3)===t&&(e[L]+=16384,Jg(a,i)):Jg(a,i)}var _o=-1,Mr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function WE(e){return(e.flags&8)!==0}function qE(e){return(e.flags&16)!==0}function ZE(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];QE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function YE(e){return e===3||e===4||e===6}function QE(e){return e.charCodeAt(0)===64}function Do(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?em(e,n,o,null,t[++r]):em(e,n,o,null,null))}}return e}function em(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Fm(e){return e!==_o}function Wa(e){return e&32767}function KE(e){return e>>16}function qa(e,t){let n=KE(e),r=t;for(;n>0;)r=r[_r],n--;return r}var Pd=!0;function tm(e){let t=Pd;return Pd=e,t}var XE=256,Lm=XE-1,Vm=5,JE=0,en={};function ew(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vr)&&(r=n[vr]),r==null&&(r=n[vr]=JE++);let o=r&Lm,i=1<<o;t.data[e+(o>>Vm)]|=i}function Za(e,t){let n=jm(e,t);if(n!==-1)return n;let r=t[F];r.firstCreatePass&&(e.injectorIndex=t.length,Sd(r.data,e),Sd(t,null),Sd(r.blueprint,null));let o=lf(e,t),i=e.injectorIndex;if(Fm(o)){let s=Wa(o),a=qa(o,t),c=a[F].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Sd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function jm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function lf(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=zm(o),r===null)return _o;if(n++,o=o[_r],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _o}function Fd(e,t,n){ew(e,t,n)}function Bm(e,t,n){if(n&8||e!==void 0)return e;Da(t,"NodeInjector")}function Um(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[yr],i=lt(void 0);try{return o?o.get(t,r,n&8):Bu(t,r,n&8)}finally{lt(i)}}return Bm(r,t,n)}function Hm(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=ow(e,t,n,r,en);if(s!==en)return s}let i=$m(e,t,n,r,en);if(i!==en)return i}return Um(t,n,r,o)}function $m(e,t,n,r,o){let i=nw(n);if(typeof i=="function"){if(!vd(t,e,r))return r&1?Bm(o,n,r):Um(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Da(n);else return s}finally{yd()}}else if(typeof i=="number"){let s=null,a=jm(e,t),c=_o,l=r&1?t[mt][gt]:null;for((a===-1||r&4)&&(c=a===-1?lf(e,t):t[a+8],c===_o||!rm(r,!1)?a=-1:(s=t[F],a=Wa(c),t=qa(c,t)));a!==-1;){let u=t[F];if(nm(i,a,u.data)){let d=tw(a,t,n,s,r,l);if(d!==en)return d}c=t[a+8],c!==_o&&rm(r,t[F].data[a+8]===l)&&nm(i,a,t)?(s=u,a=Wa(c),t=qa(c,t)):a=-1}}return o}function tw(e,t,n,r,o,i){let s=t[F],a=s.data[e+8],c=r==null?zn(a)&&Pd:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ha(a,s,n,c,l);return u!==null?Ri(t,s,u,a,o):en}function Ha(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let v=s[f];if(f<c&&n===v||f>=c&&v.type===n)return f}if(o){let f=s[c];if(f&&Yt(f)&&f.type===n)return c}return null}function Ri(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Mr){let a=i;if(a.resolving){let f=ma(s[n]);throw ju(f)}let c=tm(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?lt(a.injectImpl):null,h=vd(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&zE(n,s[n],t)}finally{d!==null&&lt(d),tm(c),a.resolving=!1,yd()}}return i}function nw(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vr)?e[vr]:void 0;return typeof t=="number"?t>=0?t&Lm:rw:t}function nm(e,t,n){let r=1<<e;return!!(n[t+(e>>Vm)]&r)}function rm(e,t){return!(e&2)&&!(e&1&&t)}var Ir=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Hm(this._tNode,this._lView,t,hr(r),n)}};function rw(){return new Ir(Fe(),te())}function Qn(e){return bo(()=>{let t=e.prototype.constructor,n=t[pi]||Ld(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[pi]||Ld(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ld(e){return Au(e)?()=>{let t=Ld(ke(e));return t&&t()}:pr(e)}function ow(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!go(s);){let a=$m(i,s,n,r|2,en);if(a!==en)return a;let c=i.parent;if(!c){let l=s[Ku];if(l){let u=l.get(n,en,r);if(u!==en)return u}c=zm(s),s=s[_r]}i=c}return o}function zm(e){let t=e[F],n=t.type;return n===2?t.declTNode:n===1?e[gt]:null}function iw(){return Io(Fe(),te())}function Io(e,t){return new Lt(Qt(e,t))}var Lt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=iw}return e})();function sw(e){return e instanceof Lt?e.nativeElement:e}function aw(){return this._results[Symbol.iterator]()}var Ya=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new De}constructor(t=!1){this._emitDistinctChangesOnly=t}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=_g(t);(this._changesDetected=!yg(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.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=aw};function Gm(e){return(e.flags&128)===128}var uf=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(uf||{}),Wm=new Map,cw=0;function lw(){return cw++}function uw(e){Wm.set(e[Ci],e)}function Vd(e){Wm.delete(e[Ci])}var om="__ngContext__";function Co(e,t){Zt(t)?(e[om]=t[Ci],uw(t)):e[om]=t}function qm(e){return Ym(e[po])}function Zm(e){return Ym(e[pt])}function Ym(e){for(;e!==null&&!Ot(e);)e=e[pt];return e}var jd;function df(e){jd=e}function Qm(){if(jd!==void 0)return jd;if(typeof document<"u")return document;throw new S(210,!1)}var cc=new x("",{providedIn:"root",factory:()=>dw}),dw="ng",lc=new x(""),Mo=new x("",{providedIn:"platform",factory:()=>"unknown"});var uc=new x("",{providedIn:"root",factory:()=>Qm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fw="h",hw="b";var Km=!1,Xm=new x("",{providedIn:"root",factory:()=>Km});var pw=(e,t,n,r)=>{};function gw(e,t,n,r){pw(e,t,n,r)}function ff(e){return(e.flags&32)===32}var mw=()=>null;function Jm(e,t,n=!1){return mw(e,t,n)}function ev(e,t){let n=e.contentQueries;if(n!==null){let r=B(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Aa(i),a.contentQueries(2,t[s],s)}}}finally{B(r)}}}function Bd(e,t,n){Aa(0);let r=B(null);try{t(e,n)}finally{B(r)}}function tv(e,t,n){if(Xu(t)){let r=B(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{B(r)}}}var Dn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Dn||{});var Ud=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Tu})`}};function hf(e){return e instanceof Ud?e.changingThisBreaksApplicationSecurity:e}function nv(e){return e instanceof Function?e():e}function vw(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var rv="ng-template";function yw(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&vw(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(pf(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function pf(e){return e.type===4&&e.value!==rv}function _w(e,t,n){let r=e.type===4&&!n?rv:e.value;return t===r}function Dw(e,t,n){let r=4,o=e.attrs,i=o!==null?ww(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Pt(r)&&!Pt(c))return!1;if(s&&Pt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!_w(e,c,n)||c===""&&t.length===1){if(Pt(r))return!1;s=!0}}else if(r&8){if(o===null||!yw(e,o,c,n)){if(Pt(r))return!1;s=!0}}else{let l=t[++a],u=Cw(c,o,pf(e),n);if(u===-1){if(Pt(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Pt(r))return!1;s=!0}}}}return Pt(r)||s}function Pt(e){return(e&1)===0}function Cw(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return bw(t,e)}function Ew(e,t,n=!1){for(let r=0;r<t.length;r++)if(Dw(e,t[r],n))return!0;return!1}function ww(e){for(let t=0;t<e.length;t++){let n=e[t];if(YE(n))return t}return e.length}function bw(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function im(e,t){return e?":not("+t.trim()+")":t}function Iw(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Pt(s)&&(t+=im(i,o),o=""),r=s,i=i||!Pt(r);n++}return o!==""&&(t+=im(i,o)),t}function Mw(e){return e.map(Iw).join(",")}function Sw(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Pt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var rt={};function xw(e,t){return e.createText(t)}function Tw(e,t,n){e.setValue(t,n)}function ov(e,t,n){return e.createElement(t,n)}function Qa(e,t,n,r,o){e.insertBefore(t,n,r,o)}function iv(e,t,n){e.appendChild(t,n)}function sm(e,t,n,r,o){r!==null?Qa(e,t,n,r,o):iv(e,t,n)}function Aw(e,t,n){e.removeChild(null,t,n)}function Nw(e,t,n){e.setAttribute(t,"style",n)}function Rw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function sv(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ZE(e,t,r),o!==null&&Rw(e,t,o),i!==null&&Nw(e,t,i)}function gf(e,t,n,r,o,i,s,a,c,l,u){let d=nt+r,h=d+o,f=Ow(d,h),v=typeof l=="function"?l():l;return f[F]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:v,incompleteFirstPass:!1,ssrId:u}}function Ow(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:rt);return n}function kw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=gf(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function mf(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Rt]=o,d[L]=r|4|128|8|64|1024,(l!==null||e&&e[L]&2048)&&(d[L]|=2048),td(d),d[Ae]=d[_r]=e,d[$e]=n,d[yn]=s||e&&e[yn],d[fe]=a||e&&e[fe],d[yr]=c||e&&e[yr]||null,d[gt]=i,d[Ci]=lw(),d[Di]=u,d[Ku]=l,d[mt]=t.type==2?e[mt]:d,d}function Pw(e,t,n){let r=Qt(t,e),o=kw(n),i=e[yn].rendererFactory,s=vf(e,mf(e,o,null,av(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function av(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function cv(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function vf(e,t){return e[po]?e[Qu][pt]=t:e[po]=t,e[Qu]=t,t}function E(e=1){lv(ze(),te(),Kt()+e,!1)}function lv(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ba(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ua(t,i,0,n)}Gn(n)}var dc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(dc||{});function Hd(e,t,n,r){let o=B(null);try{let[i,s,a]=e.inputs[n],c=null;(s&dc.SignalBased)!==0&&(c=t[i][Ue]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Am(t,c,i,r)}finally{B(o)}}var tn=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(tn||{}),Fw;function yf(e,t){return Fw(e,t)}function yo(e,t,n,r,o){if(r!=null){let i,s=!1;Ot(r)?i=r:Zt(r)&&(s=!0,r=r[Rt]);let a=vt(r);e===0&&n!==null?o==null?iv(t,n,a):Qa(t,n,a,o||null,!0):e===1&&n!==null?Qa(t,n,a,o||null,!0):e===2?Aw(t,a,s):e===3&&t.destroyNode(a),i!=null&&Zw(t,e,i,n,o)}}function Lw(e,t){uv(e,t),t[Rt]=null,t[gt]=null}function Vw(e,t,n,r,o,i){r[Rt]=o,r[gt]=t,fc(e,r,n,1,o,i)}function uv(e,t){t[yn].changeDetectionScheduler?.notify(9),fc(e,t,t[fe],2,null,null)}function jw(e){let t=e[po];if(!t)return xd(e[F],e);for(;t;){let n=null;if(Zt(t))n=t[po];else{let r=t[Ze];r&&(n=r)}if(!n){for(;t&&!t[pt]&&t!==e;)Zt(t)&&xd(t[F],t),t=t[Ae];t===null&&(t=e),Zt(t)&&xd(t[F],t),n=t&&t[pt]}t=n}}function _f(e,t){let n=e[Er],r=n.indexOf(t);n.splice(r,1)}function dv(e,t){if(wr(t))return;let n=t[fe];n.destroyNode&&fc(e,t,n,3,null,null),jw(t)}function xd(e,t){if(wr(t))return;let n=B(null);try{t[L]&=-129,t[L]|=256,t[ut]&&ci(t[ut]),Uw(e,t),Bw(e,t),t[F].type===1&&t[fe].destroy();let r=t[Hn];if(r!==null&&Ot(t[Ae])){r!==t[Ae]&&_f(r,t);let o=t[qt];o!==null&&o.detachView(e)}Vd(t)}finally{B(n)}}function Bw(e,t){let n=e.cleanup,r=t[ho];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ho]=null);let o=t[pn];if(o!==null){t[pn]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Ei];if(i!==null){t[Ei]=null;for(let s of i)s.destroy()}}function Uw(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Mr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];ae(4,a,c);try{c.call(a)}finally{ae(5,a,c)}}else{ae(4,o,i);try{i.call(o)}finally{ae(5,o,i)}}}}}function Hw(e,t,n){return $w(e,t.parent,n)}function $w(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Rt];if(zn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Dn.None||o===Dn.Emulated)return null}return Qt(r,n)}function zw(e,t,n){return Ww(e,t,n)}function Gw(e,t,n){return e.type&40?Qt(e,n):null}var Ww=Gw,am;function Df(e,t,n,r){let o=Hw(e,r,t),i=t[fe],s=r.parent||t[gt],a=zw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)sm(i,o,n[c],a,!1);else sm(i,o,n,a,!1);am!==void 0&&am(i,r,t,n,o)}function Ai(e,t){if(t!==null){let n=t.type;if(n&3)return Qt(t,e);if(n&4)return $d(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ai(e,r);{let o=e[t.index];return Ot(o)?$d(-1,o):vt(o)}}else{if(n&128)return Ai(e,t.next);if(n&32)return yf(t,e)()||vt(e[t.index]);{let r=fv(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ln(e[mt]);return Ai(o,r)}else return Ai(e,t.next)}}}return null}function fv(e,t){if(t!==null){let r=e[mt][gt],o=t.projection;return r.projection[o]}return null}function $d(e,t){let n=Ze+e+1;if(n<t.length){let r=t[n],o=r[F].firstChild;if(o!==null)return Ai(r,o)}return t[$n]}function Cf(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Co(vt(a),r),n.flags|=2),!ff(n))if(c&8)Cf(e,t,n.child,r,o,i,!1),yo(t,e,o,a,i);else if(c&32){let l=yf(n,r),u;for(;u=l();)yo(t,e,o,u,i);yo(t,e,o,a,i)}else c&16?qw(e,t,r,n,o,i):yo(t,e,o,a,i);n=s?n.projectionNext:n.next}}function fc(e,t,n,r,o,i){Cf(n,r,e.firstChild,t,o,i,!1)}function qw(e,t,n,r,o,i){let s=n[mt],c=s[gt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];yo(t,e,o,u,i)}else{let l=c,u=s[Ae];Gm(r)&&(l.flags|=128),Cf(e,t,l,u,o,i,!0)}}function Zw(e,t,n,r,o){let i=n[$n],s=vt(n);i!==s&&yo(t,e,r,i,o);for(let a=Ze;a<n.length;a++){let c=n[a];fc(c[F],c,e,t,r,i)}}function Yw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:tn.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=tn.Important),e.setStyle(n,r,o,i))}}function hv(e,t,n,r,o){let i=Kt(),s=r&2;try{Gn(-1),s&&t.length>nt&&lv(e,t,nt,!1),ae(s?2:0,o,n),n(r,o)}finally{Gn(i),ae(s?3:1,o,n)}}function Ef(e,t,n){nb(e,t,n),(n.flags&64)===64&&rb(e,t,n)}function wf(e,t,n=Qt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Qw(e,t,n,r){let i=r.get(Xm,Km)||n===Dn.ShadowDom,s=e.selectRootElement(t,i);return Kw(s),s}function Kw(e){Xw(e)}var Xw=()=>null;function Jw(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function pv(e,t,n,r,o,i){let s=t[F];if(bf(e,s,t,n,r)){zn(e)&&tb(t,e.index);return}e.type&3&&(n=Jw(n)),eb(e,t,n,r,o,i)}function eb(e,t,n,r,o,i){if(e.type&3){let s=Qt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function tb(e,t){let n=yt(t,e);n[L]&16||(n[L]|=64)}function nb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;zn(n)&&Pw(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Za(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ri(t,e,s,n);if(Co(c,t),i!==null&&ib(t,s-r,c,a,n,i),Yt(a)){let l=yt(n.index,t);l[$e]=Ri(t,e,s,n)}}}function rb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Hg();try{Gn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Ta(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&ob(c,l)}}finally{Gn(-1),Ta(s)}}function ob(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function gv(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ew(t,i.selectors,!1)&&(r??=[],Yt(i)?r.unshift(i):r.push(i))}return r}function ib(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Hd(r,n,c,l)}}function mv(e,t,n,r,o){let i=nt+n,s=t[F],a=o(s,t,e,r,n);t[i]=a,vo(e,!0);let c=e.type===2;return c?(sv(t[fe],a,e),(kg()===0||bi(e))&&Co(a,t),Pg()):Co(a,t),Oa()&&(!c||!ff(e))&&Df(s,t,a,e),e}function vv(e){let t=e;return dd()?Vg():(t=t.parent,vo(t,!1)),t}function sb(e,t){let n=e[yr];if(!n)return;n.get(dt,null)?.(t)}function bf(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];Hd(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Hd(u,l,r,o),a=!0}return a}function ab(e,t){let n=yt(t,e),r=n[F];cb(r,n);let o=n[Rt];o!==null&&n[Di]===null&&(n[Di]=Jm(o,n[yr])),ae(18),If(r,n,n[$e]),ae(19,n[$e])}function cb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function If(e,t,n){Na(t);try{let r=e.viewQuery;r!==null&&Bd(1,r,n);let o=e.template;o!==null&&hv(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[qt]?.finishViewCreation(e),e.staticContentQueries&&ev(e,t),e.staticViewQueries&&Bd(2,e.viewQuery,n);let i=e.components;i!==null&&lb(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Ra()}}function lb(e,t){for(let n=0;n<t.length;n++)ab(e,t[n])}function ub(e,t,n,r){let o=B(null);try{let i=t.tView,a=e[L]&4096?4096:16,c=mf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Hn]=l;let u=e[qt];return u!==null&&(c[qt]=u.createEmbeddedView(i)),If(i,c,n),c}finally{B(o)}}function cm(e,t){return!t||t.firstChild===null||Gm(e)}var lm=!1,db=new x("");function Oi(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(vt(i)),Ot(i)&&yv(i,r);let s=n.type;if(s&8)Oi(e,t,n.child,r);else if(s&32){let a=yf(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=fv(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ln(t[mt]);Oi(c[F],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function yv(e,t){for(let n=Ze;n<e.length;n++){let r=e[n],o=r[F].firstChild;o!==null&&Oi(r[F],r,o,t)}e[$n]!==e[Rt]&&t.push(e[$n])}function _v(e){if(e[Cr]!==null){for(let t of e[Cr])t.impl.addSequence(t);e[Cr].length=0}}var Dv=[];function fb(e){return e[ut]??hb(e)}function hb(e){let t=Dv.pop()??Object.create(gb);return t.lView=e,t}function pb(e){e.lView[ut]!==e&&(e.lView=null,Dv.push(e))}var gb=Z(M({},ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{mo(e.lView)},consumerOnSignalRead(){this.lView[ut]=this}});function mb(e){let t=e[ut]??Object.create(vb);return t.lView=e,t}var vb=Z(M({},ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ln(e.lView);for(;t&&!Cv(t[F]);)t=Ln(t);t&&nd(t)},consumerOnSignalRead(){this.lView[ut]=this}});function Cv(e){return e.type!==2}function Ev(e){if(e[Ei]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Ei])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[L]&8192)}}var yb=100;function Mf(e,t=0){let r=e[yn].rendererFactory,o=!1;o||r.begin?.();try{_b(e,t)}finally{o||r.end?.()}}function _b(e,t){let n=hd();try{pd(!0),zd(e,t);let r=0;for(;Ii(e);){if(r===yb)throw new S(103,!1);r++,zd(e,1)}}finally{pd(n)}}function wv(e,t){fd(t?Mi.Exhaustive:Mi.OnlyDirtyViews);try{Mf(e)}finally{fd(Mi.Off)}}function Db(e,t,n,r){if(wr(t))return;let o=t[L],i=!1,s=!1;Na(t);let a=!0,c=null,l=null;i||(Cv(e)?(l=fb(t),c=cr(l)):js()===null?(a=!1,l=mb(t),c=cr(l)):t[ut]&&(ci(t[ut]),t[ut]=null));try{td(t),jg(e.bindingStartIndex),n!==null&&hv(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ba(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ua(t,f,0,null),Md(t,0)}if(s||Cb(t),Ev(t),bv(t,0),e.contentQueries!==null&&ev(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ba(t,f)}else{let f=e.contentHooks;f!==null&&Ua(t,f,1),Md(t,1)}wb(e,t);let d=e.components;d!==null&&Mv(t,d,0);let h=e.viewQuery;if(h!==null&&Bd(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ba(t,f)}else{let f=e.viewHooks;f!==null&&Ua(t,f,2),Md(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ba]){for(let f of t[ba])f();t[ba]=null}i||(_v(t),t[L]&=-73)}catch(u){throw i||mo(t),u}finally{l!==null&&(Yr(l,c),a&&pb(l)),Ra()}}function bv(e,t){for(let n=qm(e);n!==null;n=Zm(n))for(let r=Ze;r<n.length;r++){let o=n[r];Iv(o,t)}}function Cb(e){for(let t=qm(e);t!==null;t=Zm(t)){if(!(t[L]&2))continue;let n=t[Er];for(let r=0;r<n.length;r++){let o=n[r];nd(o)}}}function Eb(e,t,n){ae(18);let r=yt(t,e);Iv(r,n),ae(19,r[$e])}function Iv(e,t){Ma(e)&&zd(e,t)}function zd(e,t){let r=e[F],o=e[L],i=e[ut],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ai(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)Db(r,e,r.template,e[$e]);else if(o&8192){let a=B(null);try{Ev(e),bv(e,1);let c=r.components;c!==null&&Mv(e,c,1),_v(e)}finally{B(a)}}}function Mv(e,t,n){for(let r=0;r<t.length;r++)Eb(e,t[r],n)}function wb(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Gn(~o);else{let i=o,s=n[++r],a=n[++r];Ug(s,i);let c=t[i];ae(24,c),a(2,c),ae(25,c)}}}finally{Gn(-1)}}function Sf(e,t){let n=hd()?64:1088;for(e[yn].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Ln(e);if(go(e)&&!r)return e;e=r}return null}function Sv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function bb(e,t,n,r=!0){let o=t[F];if(Ib(o,t,e,n),r){let s=$d(n,e),a=t[fe],c=a.parentNode(e[$n]);c!==null&&Vw(o,e[gt],a,t,c,s)}let i=t[Di];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Gd(e,t){if(e.length<=Ze)return;let n=Ze+t,r=e[n];if(r){let o=r[Hn];o!==null&&o!==e&&_f(o,r),t>0&&(e[n-1][pt]=r[pt]);let i=vi(e,Ze+t);Lw(r[F],r);let s=i[qt];s!==null&&s.detachView(i[F]),r[Ae]=null,r[pt]=null,r[L]&=-129}return r}function Ib(e,t,n,r){let o=Ze+r,i=n.length;r>0&&(n[o-1][pt]=t),r<i-Ze?(t[pt]=n[o],Hu(n,Ze+r,t)):(n.push(t),t[pt]=null),t[Ae]=n;let s=t[Hn];s!==null&&n!==s&&xv(s,t);let a=t[qt];a!==null&&a.insertView(e),Sa(t),t[L]|=128}function xv(e,t){let n=e[Er],r=t[Ae];if(Zt(r))e[L]|=2;else{let o=r[Ae][mt];t[mt]!==o&&(e[L]|=2)}n===null?e[Er]=[t]:n.push(t)}var qn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[F];return Oi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[$e]}set context(t){this._lView[$e]=t}get destroyed(){return wr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Ae];if(Ot(t)){let n=t[wi],r=n?n.indexOf(this):-1;r>-1&&(Gd(t,r),vi(n,r))}this._attachedToViewContainer=!1}dv(this._lView[F],this._lView)}onDestroy(t){rd(this._lView,t)}markForCheck(){Sf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Sa(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,Mf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=go(this._lView),n=this._lView[Hn];n!==null&&!t&&_f(n,this._lView),uv(this._lView[F],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=go(this._lView),r=this._lView[Hn];r!==null&&!n&&xv(r,this._lView),Sa(this._lView)}};var Zn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Mb;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=ub(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new qn(i)}}return e})();function Mb(){return xf(Fe(),te())}function xf(e,t){return e.type&4?new Zn(t,e,Io(e,t)):null}function hc(e,t,n,r,o){let i=e.data[t];if(i===null)i=Sb(e,t,n,r,o),Bg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Lg();i.injectorIndex=s===null?-1:s.injectorIndex}return vo(i,!0),i}function Sb(e,t,n,r,o){let i=ud(),s=dd(),a=s?i:i&&i.parent,c=e.data[t]=Tb(e,a,n,t,r,o);return xb(e,c,i,s),c}function xb(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Tb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Fg()&&(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:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex: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}}var o2=new RegExp(`^(\\d+)*(${hw}|${fw})*(.*)`);var Ab=()=>null;function um(e,t){return Ab(e,t)}var Tv=class{},pc=class{},Wd=class{resolveComponentFactory(t){throw new S(917,!1)}},Fi=class{static NULL=new Wd},Sr=class{},Ar=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Nb()}return e})();function Nb(){let e=te(),t=Fe(),n=yt(t.index,e);return(Zt(n)?n:e)[fe]}var Av=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>null})}return e})();var $a={},qd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,$a,r);return o!==$a||n===$a?o:this.parentInjector.get(t,n,r)}};function Ka(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ya(o,a);else if(i==2){let c=a,l=t[++s];r=ya(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function re(e,t=0){let n=te();if(n===null)return k(e,t);let r=Fe();return Hm(r,n,ke(e),t)}function Nv(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}kb(e,t,n,a,i,c,l)}i!==null&&r!==null&&Rb(n,r,i)}function Rb(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}function Ob(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function kb(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&Yt(f)&&(c=!0,Ob(e,n,h)),Fd(Za(n,t),e,f.type)}Bb(n,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=cv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Do(n.mergedAttrs,f.hostAttrs),Fb(e,n,t,d,f),jb(d,f,o),s!==null&&s.has(f)){let[m,g]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,g+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let v=f.type.prototype;!l&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(v.ngOnChanges||v.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}Pb(e,n,i)}function Pb(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))dm(0,t,o,r),dm(1,t,o,r),hm(t,r,!1);else{let i=n.get(o);fm(0,t,i,r),fm(1,t,i,r),hm(t,r,!0)}}}function dm(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Rv(t,i)}}function fm(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Rv(t,s)}}function Rv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function hm(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||pf(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Fb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pr(o.type,!0)),s=new Mr(i,Yt(o),re,null);e.blueprint[r]=s,n[r]=s,Lb(e,t,r,cv(e,n,o.hostVars,rt),o)}function Lb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Vb(s)!=a&&s.push(a),s.push(n,r,i)}}function Vb(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function jb(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Yt(t)&&(n[""]=e)}}function Bb(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ov(e,t,n,r,o,i,s,a){let c=t[F],l=c.consts,u=br(l,s),d=hc(c,e,n,r,u);return i&&Nv(c,t,d,br(l,a),o),d.mergedAttrs=Do(d.mergedAttrs,d.attrs),d.attrs!==null&&Ka(d,d.attrs,!1),d.mergedAttrs!==null&&Ka(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function kv(e,t){km(e,t),Xu(t)&&e.queries.elementEnd(t)}function Ub(e,t,n,r,o,i){let s=t.consts,a=br(s,o),c=hc(t,e,n,r,a);if(c.mergedAttrs=Do(c.mergedAttrs,c.attrs),i!=null){let l=br(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Ka(c,c.attrs,!1),c.mergedAttrs!==null&&Ka(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Tf(e){return Fv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Pv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Fv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Yn(e,t,n){if(n===rt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Lv(e,t,n,r){let o=Yn(e,t,n);return Yn(e,t+1,r)||o}function Hb(e,t,n,r,o){let i=Lv(e,t,n,r);return Yn(e,t+2,o)||i}function za(e,t,n){return function r(o){let i=zn(e)?yt(e.index,t):t;Sf(i,5);let s=t[$e],a=pm(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=pm(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function pm(e,t,n,r){let o=B(null);try{return ae(6,t,n),n(r)!==!1}catch(i){return sb(e,i),!1}finally{ae(7,t,n),B(o)}}function Vv(e,t,n,r,o,i,s,a){let c=bi(e),l=!1,u=null;if(!r&&c&&(u=$b(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Qt(e,n),h=r?r(d):d;gw(n,h,i,a);let f=o.listen(h,i,a),v=r?m=>r(vt(m[e.index])):e.index;jv(v,t,n,i,a,f,!1)}return l}function $b(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ho],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function jv(e,t,n,r,o,i,s){let a=t.firstCreatePass?id(t):null,c=od(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function gm(e,t,n,r,o,i){let s=t[n],a=t[F],l=a.data[n].outputs[r],d=s[l].subscribe(i);jv(e.index,a,t,o,i,d,!0)}var Zd=Symbol("BINDING");var Xa=class extends Fi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Un(t);return new Eo(n,this.ngModule)}};function zb(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&dc.SignalBased)!==0};return o&&(i.transform=o),i})}function Gb(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Wb(e,t,n){let r=t instanceof Ie?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new qd(n,r):n}function qb(e){let t=e.get(Sr,null);if(t===null)throw new S(407,!1);let n=e.get(Av,null),r=e.get(mn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function Zb(e,t){let n=Bv(e);return ov(t,n,n==="svg"?Ju:n==="math"?xg:null)}function Bv(e){return(e.selectors[0][0]||"div").toLowerCase()}var Eo=class extends pc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=zb(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Gb(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Mw(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){ae(22);let a=B(null);try{let c=this.componentDef,l=Yb(r,c,s,i),u=Wb(c,o||this.ngModule,t),d=qb(u),h=d.rendererFactory.createRenderer(null,c),f=r?Qw(h,r,c.encapsulation,u):Zb(c,h),v=s?.some(mm)||i?.some(p=>typeof p!="function"&&p.bindings.some(mm)),m=mf(null,l,null,512|av(c),null,null,d,h,u,null,Jm(f,u,!0));m[nt]=f,Na(m);let g=null;try{let p=Ov(nt,m,2,"#host",()=>l.directiveRegistry,!0,0);f&&(sv(h,f,p),Co(f,m)),Ef(l,m,p),tv(l,p,m),kv(l,p),n!==void 0&&Kb(p,this.ngContentSelectors,n),g=yt(p.index,m),m[$e]=g[$e],If(l,m,null)}catch(p){throw g!==null&&Vd(g),Vd(m),p}finally{ae(23),Ra()}return new Ja(this.componentType,m,!!v)}finally{B(a)}}};function Yb(e,t,n,r){let o=e?["ng-version","20.2.1"]:Sw(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Zd].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let h of d.bindings){a+=h[Zd].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=Wu(d);c.push(h)}return gf(0,null,Qb(i,s),1,a,c,null,null,null,[o],null)}function Qb(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function mm(e){let t=e[Zd].kind;return t==="input"||t==="twoWay"}var Ja=class extends Tv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ia(n[F],nt),this.location=Io(this._tNode,n),this.instance=yt(this._tNode.index,n)[$e],this.hostView=this.changeDetectorRef=new qn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=bf(r,o[F],o,t,n);this.previousInputValues.set(t,n);let s=yt(r.index,o);Sf(s,1)}get injector(){return new Ir(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Kb(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Cn=(()=>{class e{static __NG_ELEMENT_ID__=Xb}return e})();function Xb(){let e=Fe();return Hv(e,te())}var Jb=Cn,Uv=class extends Jb{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Io(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){let t=lf(this._hostTNode,this._hostLView);if(Fm(t)){let n=qa(t,this._hostLView),r=Wa(t),o=n[F].data[r+8];return new Ir(o,n)}else return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=vm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Ze}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=um(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,cm(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!BE(t),l;if(c)l=n;else{let g=n||{};l=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef,s=g.directives,a=g.bindings}let u=c?t:new Eo(Un(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let p=(c?d:this.parentInjector).get(Ie,null);p&&(i=p)}let h=Un(u.componentType??{}),f=um(this._lContainer,h?.id??null),v=f?.firstChild??null,m=u.create(d,o,v,i,s,a);return this.insertImpl(m.hostView,l,cm(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Ag(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Ae],l=new Uv(c,c[gt],c[Ae]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return bb(s,o,i,r),t.attachToViewContainerRef(),Hu(Td(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=vm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Gd(this._lContainer,n);r&&(vi(Td(this._lContainer),n),dv(r[F],r))}detach(t){let n=this._adjustIndex(t,-1),r=Gd(this._lContainer,n);return r&&vi(Td(this._lContainer),n)!=null?new qn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function vm(e){return e[wi]}function Td(e){return e[wi]||(e[wi]=[])}function Hv(e,t){let n,r=t[e.index];return Ot(r)?n=r:(n=Sv(r,t,null,e),t[e.index]=n,vf(t,n)),tI(n,t,e,r),new Uv(n,e,t)}function eI(e,t){let n=e[fe],r=n.createComment(""),o=Qt(t,e),i=n.parentNode(o);return Qa(n,i,r,n.nextSibling(o),!1),r}var tI=oI,nI=()=>!1;function rI(e,t,n){return nI(e,t,n)}function oI(e,t,n,r){if(e[$n])return;let o;n.type&8?o=vt(r):o=eI(t,n),e[$n]=o}var Yd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Qd=class e{queries;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;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Af(t,n).matches!==null&&this.queries[n].setDirty()}},Kd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=fI(t):this.predicate=t}},Xd=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Jd=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,iI(n,i)),this.matchTNodeWithReadOption(t,n,Ha(n,t,i,!1,!1))}else r===Zn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ha(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Lt||o===Cn||o===Zn&&n.type&4)this.addMatch(n.index,-2);else{let i=Ha(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function iI(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function sI(e,t){return e.type&11?Io(e,t):e.type&4?xf(e,t):null}function aI(e,t,n,r){return n===-1?sI(t,e):n===-2?cI(e,t,r):Ri(e,e[F],n,t)}function cI(e,t,n){if(n===Lt)return Io(t,e);if(n===Zn)return xf(t,e);if(n===Cn)return Hv(t,e)}function $v(e,t,n,r){let o=t[qt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(aI(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function ef(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=$v(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=Ze;d<u.length;d++){let h=u[d];h[Hn]===h[Ae]&&ef(h[F],h,l,r)}if(u[Er]!==null){let d=u[Er];for(let h=0;h<d.length;h++){let f=d[h];ef(f[F],f,l,r)}}}}}return r}function lI(e,t){return e[qt].queries[t].queryList}function uI(e,t,n){let r=new Ya((n&4)===4);return Og(e,t,r,r.destroy),(t[qt]??=new Qd).queries.push(new Yd(r))-1}function dI(e,t,n){let r=ze();return r.firstCreatePass&&(hI(r,new Kd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),uI(r,te(),t)}function fI(e){return e.split(",").map(t=>t.trim())}function hI(e,t,n){e.queries===null&&(e.queries=new Xd),e.queries.track(new Jd(t,n))}function Af(e,t){return e.queries.getByIndex(t)}function pI(e,t){let n=e[F],r=Af(n,t);return r.crossesNgTemplate?ef(n,e,t,[]):$v(n,e,r,t)}var ym=new Set;function gc(e){ym.has(e)||(ym.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var xr=class{},mc=class{};var ec=class extends xr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xa(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Gu(t);this._bootstrapComponents=nv(i.bootstrap),this._r3Injector=Dd(t,n,[{provide:xr,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver},...r],gn(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}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)}},tc=class extends mc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new ec(this.moduleType,t,[])}};var ki=class extends xr{injector;componentFactoryResolver=new Xa(this);instance=null;constructor(t){super();let n=new mr([...t.providers,{provide:xr,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver}],t.parent||_i(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Li(e,t,n=null){return new ki({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var gI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=qu(!1,n.type),o=r.length>0?Li([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:e,providedIn:"environment",factory:()=>new e(k(Ie))})}return e})();function Ye(e){return bo(()=>{let t=zv(e),n=Z(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(gI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Dn.Emulated,styles:e.styles||qe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&gc("NgStandalone"),Gv(n);let r=e.dependencies;return n.directiveDefs=_m(r,mI),n.pipeDefs=_m(r,Cg),n.id=_I(n),n})}function mI(e){return Un(e)||Wu(e)}function rn(e){return bo(()=>({type:e.type,bootstrap:e.bootstrap||qe,declarations:e.declarations||qe,imports:e.imports||qe,exports:e.exports||qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function vI(e,t){if(e==null)return jn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=dc.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function yI(e){if(e==null)return jn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ge(e){return bo(()=>{let t=zv(e);return Gv(t),t})}function zv(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,inputConfig:e.inputs||jn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:vI(e.inputs,t),outputs:yI(e.outputs),debugInfo:null}}function Gv(e){e.features?.forEach(t=>t(e))}function _m(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function _I(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,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];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function DI(e){return Object.getPrototypeOf(e.prototype).constructor}function En(e){let t=DI(e.type),n=!0,r=[e];for(;t;){let o;if(Yt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ad(e.inputs),s.declaredInputs=Ad(e.declaredInputs),s.outputs=Ad(e.outputs);let a=o.hostBindings;a&&II(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&wI(e,c),l&&bI(e,l),CI(e,o),hg(e.outputs,o.outputs),Yt(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===En&&(n=!1)}}t=Object.getPrototypeOf(t)}EI(r)}function CI(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function EI(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}function Ad(e){return e===jn?{}:e===qe?[]:e}function wI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function bI(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function II(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function MI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Do(e.mergedAttrs,e.attrs);let u=e.tView=gf(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),vo(e,!1);let c=xI(n,t,e,r);Oa()&&Df(n,t,c,e),Co(c,t);let l=Sv(c,t,c,e);t[r+nt]=l,vf(t,l),rI(l,e,t)}function SI(e,t,n,r,o,i,s,a,c,l,u){let d=n+nt,h;return t.firstCreatePass?(h=hc(t,d,4,s||null,a||null),ad()&&Nv(t,e,h,br(t.consts,l),gv),km(t,h)):h=t.data[d],MI(h,e,t,n,r,o,i,c),bi(h)&&Ef(t,e,h),l!=null&&wf(e,h,u),h}function ye(e,t,n,r,o,i,s,a){let c=te(),l=ze(),u=br(l.consts,i);return SI(c,l,e,t,n,r,o,u,void 0,s,a),ye}var xI=TI;function TI(e,t,n,r){return ka(!0),t[fe].createComment("")}var vc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(vc||{}),Nr=new x(""),Wv=!1,tf=class extends De{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Mg()&&(this.destroyRef=_(Xt,{optional:!0})??void 0,this.pendingTasks=_(Jt,{optional:!0})??void 0)}emit(t){let n=B(null);try{super.next(t)}finally{B(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof _e&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},ne=tf;function qv(e){let t,n;function r(){e=Ti;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Dm(e){return queueMicrotask(()=>e()),()=>{e=Ti}}var Nf="isAngularZone",nc=Nf+"_ID",AI=0,Ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ne(!1);onMicrotaskEmpty=new ne(!1);onStable=new ne(!1);onError=new ne(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Wv}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,OI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Nf)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(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,NI,Ti,Ti);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)}},NI={};function Rf(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 RI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){qv(()=>{e.callbackScheduled=!1,nf(e),e.isCheckStableRunning=!0,Rf(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),nf(e)}function OI(e){let t=()=>{RI(e)},n=AI++;e._inner=e._inner.fork({name:"angular",properties:{[Nf]:!0,[nc]:n,[nc+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(kI(c))return r.invokeTask(i,s,a,c);try{return Cm(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Em(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Cm(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!PI(c)&&t(),Em(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,nf(e),Rf(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function nf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Em(e){e._nesting--,Rf(e)}var rc=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ne;onMicrotaskEmpty=new ne;onStable=new ne;onError=new ne;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function kI(e){return Zv(e,"__ignore_ng_zone__")}function PI(e){return Zv(e,"__scheduler_tick__")}function Zv(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Of=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yv=[0,1,2,3],Qv=(()=>{class e{ngZone=_(Ee);scheduler=_(mn);errorHandler=_(At,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){_(Nr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ae(16),this.executing=!0;for(let r of Yv)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&ae(17)}register(n){let{view:r}=n;r!==void 0?((r[Cr]??=[]).push(n),mo(r),r[L]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(vc.AFTER_NEXT_RENDER,n):n()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),oc=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Cr];t&&(this.view[Cr]=t.filter(n=>n!==this))}};function yc(e,t){let n=t?.injector??_(ht);return gc("NgAfterNextRender"),LI(e,n,t,!0)}function FI(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function LI(e,t,n,r){let o=t.get(Of);o.impl??=t.get(Qv);let i=t.get(Nr,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Xt):null,a=t.get(La,null,{optional:!0}),c=new oc(o.impl,FI(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var kf=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Pf=new x("");function Kn(e){return!!e&&typeof e.then=="function"}function Ff(e){return!!e&&typeof e.subscribe=="function"}var Kv=new x("");var Lf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=_(Kv,{optional:!0})??[];injector=_(ht);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Pe(this.injector,o);if(Kn(i))n.push(i);else if(Ff(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_c=new x("");function Xv(){eu(()=>{let e="";throw new S(600,e)})}function Jv(e){return e.isBoundToModule}var VI=10;var wn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=_(dt);afterRenderManager=_(Of);zonelessEnabled=_(Fa);rootEffectScheduler=_(Id);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new De;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=_(Jt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(U(n=>!n))}constructor(){_(Nr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=_(Ie);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ht.NULL){return this._injector.get(Ee).run(()=>{ae(10);let s=n instanceof pc;if(!this._injector.get(Lf).done){let v="";throw new S(405,v)}let c;s?c=n:c=this._injector.get(Fi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Jv(c)?void 0:this._injector.get(xr),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(Pf,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Ni(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),ae(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ae(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(vc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S(101,!1);let n=B(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,B(n),this.afterTick.next(),ae(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Sr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<VI;)ae(14),this.synchronizeOnce(),ae(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Ii(o))continue;let i=r&&!this.zonelessEnabled?0:1;Mf(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ii(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ni(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(_c,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ni(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ni(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Vf=new x("",{providedIn:"root",factory:()=>!1}),jf=new x("",{providedIn:"root",factory:()=>jI}),jI=4e3;var d2=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function W(e,t,n){let r=te(),o=xa();if(Yn(r,o,t)){let i=ze(),s=_d();pv(s,r,e,t,r[fe],n)}return W}function rf(e,t,n,r,o){bf(t,e,n,o?"class":"style",r)}function w(e,t,n,r){let o=te(),i=o[F],s=e+nt,a=i.firstCreatePass?Ov(s,o,2,t,gv,ad(),n,r):i.data[s];if(mv(a,o,e,t,ey),bi(a)){let c=o[F];Ef(c,o,a),tv(c,a,o)}return r!=null&&wf(o,a),w}function C(){let e=ze(),t=Fe(),n=vv(t);return e.firstCreatePass&&kv(e,n),cd(n)&&ld(),sd(),n.classesWithoutHost!=null&&WE(n)&&rf(e,n,te(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&qE(n)&&rf(e,n,te(),n.stylesWithoutHost,!1),C}function ot(e,t,n,r){return w(e,t,n,r),C(),ot}function _t(e,t,n,r){let o=te(),i=o[F],s=e+nt,a=i.firstCreatePass?Ub(s,i,2,t,n,r):i.data[s];return mv(a,o,e,t,ey),r!=null&&wf(o,a),_t}function on(){let e=Fe(),t=vv(e);return cd(t)&&ld(),sd(),on}function Rr(e,t,n,r){return _t(e,t,n,r),on(),Rr}var ey=(e,t,n,r,o)=>(ka(!0),ov(t[fe],r,Zg()));function Dt(){return te()}var Vi="en-US";var BI=Vi;function ty(e){typeof e=="string"&&(BI=e.toLowerCase().replace(/_/g,"-"))}function Q(e,t,n){let r=te(),o=ze(),i=Fe();return ny(o,r,r[fe],i,e,t,n),Q}function So(e,t,n){let r=te(),o=ze(),i=Fe();return(i.type&3||n)&&Vv(i,o,r,n,r[fe],e,t,za(i,r,t)),So}function ny(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=za(r,t,i),Vv(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];c??=za(r,t,i),gm(r,t,h,f,o,c)}if(l&&l.length)for(let d of l)c??=za(r,t,i),gm(r,t,d,o,o,c)}}function ie(e=1){return qg(e)}function Bf(e,t,n){dI(e,t,n)}function Uf(e){let t=te(),n=ze(),r=md();Aa(r+1);let o=Af(n,r);if(e.dirty&&Tg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=pI(t,r);e.reset(i,sw),e.notifyOnChanges()}return!0}return!1}function Hf(){return lI(te(),md())}function ja(e,t){return e<<17|t<<2}function Tr(e){return e>>17&32767}function UI(e){return(e&2)==2}function HI(e,t){return e&131071|t<<17}function of(e){return e|2}function wo(e){return(e&131068)>>2}function Nd(e,t){return e&-131069|t<<2}function $I(e){return(e&1)===1}function sf(e){return e|1}function zI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Tr(s),c=wo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||uo(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=Tr(e[a+1]);e[r+1]=ja(h,a),h!==0&&(e[h+1]=Nd(e[h+1],r)),e[a+1]=HI(e[a+1],r)}else e[r+1]=ja(a,0),a!==0&&(e[a+1]=Nd(e[a+1],r)),a=r;else e[r+1]=ja(c,0),a===0?a=r:e[c+1]=Nd(e[c+1],r),c=r;l&&(e[r+1]=of(e[r+1])),wm(e,u,r,!0),wm(e,u,r,!1),GI(t,u,e,r,i),s=ja(a,c),i?t.classBindings=s:t.styleBindings=s}function GI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&uo(i,t)>=0&&(n[r+1]=sf(n[r+1]))}function wm(e,t,n,r){let o=e[n+1],i=t===null,s=r?Tr(o):wo(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];WI(c,t)&&(a=!0,e[s+1]=r?sf(l):of(l)),s=r?Tr(l):wo(l)}a&&(e[n+1]=r?of(o):sf(o))}function WI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?uo(e,t)>=0:!1}var Ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qI(e){return e.substring(Ft.key,Ft.keyEnd)}function ZI(e){return YI(e),ry(e,oy(e,0,Ft.textEnd))}function ry(e,t){let n=Ft.textEnd;return n===t?-1:(t=Ft.keyEnd=QI(e,Ft.key=t,n),oy(e,t,n))}function YI(e){Ft.key=0,Ft.keyEnd=0,Ft.value=0,Ft.valueEnd=0,Ft.textEnd=e.length}function oy(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function QI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function ee(e,t,n){return iy(e,t,n,!1),ee}function Xn(e,t){return iy(e,t,null,!0),Xn}function Dc(e){XI(oM,KI,e,!0)}function KI(e,t){for(let n=ZI(t);n>=0;n=ry(t,n))Ea(e,qI(t),!0)}function iy(e,t,n,r){let o=te(),i=ze(),s=Si(2);if(i.firstUpdatePass&&ay(i,e,s,r),t!==rt&&Yn(o,s,t)){let a=i.data[Kt()];cy(i,a,o,o[fe],e,o[s+1]=sM(t,n),r,s)}}function XI(e,t,n,r){let o=ze(),i=Si(2);o.firstUpdatePass&&ay(o,null,i,r);let s=te();if(n!==rt&&Yn(s,i,n)){let a=o.data[Kt()];if(ly(a,r)&&!sy(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ya(c,n||"")),rf(o,a,s,n,r)}else iM(o,a,s,s[fe],s[i+1],s[i+1]=rM(e,t,n),r,i)}}function sy(e,t){return t>=e.expandoStartIndex}function ay(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Kt()],s=sy(e,n);ly(i,r)&&t===null&&!s&&(t=!1),t=JI(o,i,t,r),zI(o,i,t,n,s,r)}}function JI(e,t,n,r){let o=$g(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Rd(null,e,t,n,r),n=Pi(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Rd(o,e,t,n,r),i===null){let c=eM(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Rd(null,e,t,c[1],r),c=Pi(c,t.attrs,r),tM(e,t,r,c))}else i=nM(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function eM(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wo(r)!==0)return e[Tr(r)]}function tM(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Tr(o)]=r}function nM(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Pi(r,s,n)}return Pi(r,t.attrs,n)}function Rd(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Pi(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Pi(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Ea(e,s,n?!0:t[++i]))}return e===void 0?null:e}function rM(e,t,n){if(n==null||n==="")return qe;let r=[],o=hf(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function oM(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ea(e,r,n)}function iM(e,t,n,r,o,i,s,a){o===rt&&(o=qe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,v=null,m;u===d?(c+=2,l+=2,h!==f&&(v=d,m=f)):d===null||u!==null&&u<d?(c+=2,v=u):(l+=2,v=d,m=f),v!==null&&cy(e,t,n,r,v,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function cy(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=$I(l)?bm(c,t,n,o,wo(l),s):void 0;if(!ic(u)){ic(i)||UI(l)&&(i=bm(c,null,n,o,a,s));let d=ed(Kt(),n);Yw(r,s,d,o,i)}}function bm(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===rt&&(h=d?qe:void 0);let f=d?wa(h,r):u===r?h:void 0;if(l&&!ic(f)&&(f=wa(c,r)),ic(f)&&(a=f,s))return a;let v=e[o+1];o=s?Tr(v):wo(v)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=wa(c,r))}return a}function ic(e){return e!==void 0}function sM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=gn(hf(e)))),e}function ly(e,t){return(e.flags&(t?8:16))!==0}function T(e,t=""){let n=te(),r=ze(),o=e+nt,i=r.firstCreatePass?hc(r,o,1,t,null):r.data[o],s=aM(r,n,i,t,e);n[o]=s,Oa()&&Df(r,n,s,i),vo(i,!1)}var aM=(e,t,n,r,o)=>(ka(!0),xw(t[fe],r));function cM(e,t,n,r=""){return Yn(e,xa(),n)?t+Vn(n)+r:rt}function lM(e,t,n,r,o,i=""){let s=gd(),a=Lv(e,s,n,o);return Si(2),a?t+Vn(n)+r+Vn(o)+i:rt}function uM(e,t,n,r,o,i,s,a=""){let c=gd(),l=Hb(e,c,n,o,s);return Si(3),l?t+Vn(n)+r+Vn(o)+i+Vn(s)+a:rt}function we(e){return Se("",e),we}function Se(e,t,n){let r=te(),o=cM(r,e,t,n);return o!==rt&&$f(r,Kt(),o),Se}function Cc(e,t,n,r,o){let i=te(),s=lM(i,e,t,n,r,o);return s!==rt&&$f(i,Kt(),s),Cc}function Ec(e,t,n,r,o,i,s){let a=te(),c=uM(a,e,t,n,r,o,i,s);return c!==rt&&$f(a,Kt(),c),Ec}function $f(e,t,n){let r=ed(t,e);Tw(e[fe],r,n)}function Or(e,t,n){Ed(t)&&(t=t());let r=te(),o=xa();if(Yn(r,o,t)){let i=ze(),s=_d();pv(s,r,e,t,r[fe],n)}return Or}function xo(e,t){let n=Ed(e);return n&&e.set(t),n}function kr(e,t){let n=te(),r=ze(),o=Fe();return ny(r,n,n[fe],o,e,t),kr}function dM(e,t,n){let r=ze();if(r.firstCreatePass){let o=Yt(e);af(n,r.data,r.blueprint,o,!0),af(t,r.data,r.blueprint,o,!1)}}function af(e,t,n,r,o){if(e=ke(e),Array.isArray(e))for(let i=0;i<e.length;i++)af(e[i],t,n,r,o);else{let i=ze(),s=te(),a=Fe(),c=gr(e)?e:ke(e.provide),l=Yu(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(gr(e)||!e.multi){let f=new Mr(l,o,re,null),v=kd(c,t,o?u:u+h,d);v===-1?(Fd(Za(a,s),i,c),Od(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[v]=f,s[v]=f)}else{let f=kd(c,t,u+h,d),v=kd(c,t,u,u+h),m=f>=0&&n[f],g=v>=0&&n[v];if(o&&!g||!o&&!m){Fd(Za(a,s),i,c);let p=pM(o?hM:fM,n.length,o,r,l,e);!o&&g&&(n[v].providerFactory=p),Od(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)}else{let p=uy(n[o?v:f],l,!o&&r);Od(i,e,f>-1?f:v,p)}!o&&r&&g&&n[v].componentProviders++}}}function Od(e,t,n,r){let o=gr(t),i=Ig(t);if(o||i){let c=(i?ke(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function uy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function kd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function fM(e,t,n,r,o){return cf(this.multi,[])}function hM(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ri(r,r[F],this.providerFactory.index,o);s=c.slice(0,a),cf(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],cf(i,s);return s}function cf(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function pM(e,t,n,r,o,i){let s=new Mr(e,n,re,null);return s.multi=[],s.index=t,s.componentProviders=0,uy(s,o,r&&!n),s}function To(e,t=[]){return n=>{n.providersResolver=(r,o)=>dM(r,o?o(e):e,t)}}var sc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},zf=(()=>{class e{compileModuleSync(n){return new tc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Gu(n),i=nv(o.declarations).reduce((s,a)=>{let c=Un(a);return c&&s.push(new Eo(c)),s},[]);return new sc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gM=(()=>{class e{zone=_(Ee);changeDetectionScheduler=_(mn);applicationRef=_(wn);applicationErrorHandler=_(dt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dy({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ee(Z(M({},fy()),{scheduleInRootZone:n})),[{provide:Ee,useFactory:e},{provide:Bn,multi:!0,useFactory:()=>{let r=_(gM,{optional:!0});return()=>r.initialize()}},{provide:Bn,multi:!0,useFactory:()=>{let r=_(mM);return()=>{r.initialize()}}},t===!0?{provide:wd,useValue:!0}:[],{provide:bd,useValue:n??Wv},{provide:dt,useFactory:()=>{let r=_(Ee),o=_(Ie),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(At),i.handleError(s))})}}}]}function fy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var mM=(()=>{class e{subscription=new _e;initialized=!1;zone=_(Ee);pendingTasks=_(Jt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var hy=(()=>{class e{applicationErrorHandler=_(dt);appRef=_(wn);taskService=_(Jt);ngZone=_(Ee);zonelessEnabled=_(Fa);tracing=_(Nr,{optional:!0});disableScheduling=_(wd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(_(bd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Dm:qv;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(nc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Dm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vM(){return typeof $localize<"u"&&$localize.locale||Vi}var wc=new x("",{providedIn:"root",factory:()=>_(wc,{optional:!0,skipSelf:!0})||vM()});function We(e){return ug(e)}function ji(e,t){return Hs(e,t?.equal)}var py=class{[Ue];constructor(t){this[Ue]=t}destroy(){this[Ue].destroy()}};var yy=Symbol("InputSignalNode#UNSET"),PM=Z(M({},$s),{transformFn:void 0,applyValueToInputSignal(e,t){Kr(e,t)}});function _y(e,t){let n=Object.create(PM);n.value=e,n.transformFn=t?.transform;function r(){if(Zr(n),n.value===yy){let o=null;throw new S(-950,o)}return n.value}return r[Ue]=n,r}var FM=new x("");FM.__NG_ELEMENT_ID__=e=>{let t=Fe();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new S(204,!1)};function gy(e,t){return _y(e,t)}function LM(e){return _y(yy,e)}var Dy=(gy.required=LM,gy);var Gf=new x(""),VM=new x("");function Bi(e){return!e.moduleRef}function jM(e){let t=Bi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ee);return n.run(()=>{Bi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Bi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Gf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Gf);s.add(i),e.moduleRef.onDestroy(()=>{Ni(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return UM(r,n,()=>{let i=t.get(Jt),s=i.add(),a=t.get(Lf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(wc,Vi);if(ty(c||Vi),!t.get(VM,!0))return Bi(e)?t.get(wn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Bi(e)){let u=t.get(wn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return BM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var BM;function UM(e,t,n){try{let r=n();return Kn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var bc=null;function HM(e=[],t){return ht.create({name:t,providers:[{provide:yi,useValue:"platform"},{provide:Gf,useValue:new Set([()=>bc=null])},...e]})}function $M(e=[]){if(bc)return bc;let t=HM(e);return bc=t,Xv(),zM(t),t}function zM(e){let t=e.get(lc,null);Pe(e,()=>{t?.forEach(n=>n())})}var No=(()=>{class e{static __NG_ELEMENT_ID__=GM}return e})();function GM(e){return WM(Fe(),te(),(e&16)===16)}function WM(e,t,n){if(zn(e)&&!n){let r=yt(e.index,t);return new qn(r,r)}else if(e.type&175){let r=t[mt];return new qn(r,t)}return null}var Wf=class{constructor(){}supports(t){return Tf(t)}create(t){return new qf(t)}},qM=(e,t)=>t,qf=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||qM}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<my(r,o,i)?n:r,a=my(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let h=0;h<l;h++){let f=h<i.length?i[h]:i[h]=0,v=f+h;u<=v&&v<l&&(i[h]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Tf(t))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Pv(t,a=>{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 Zf(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 Ic),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 Ic),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}},Zf=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Yf=class{_head=null;_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}},Ic=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Yf,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 my(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function vy(){return new Qf([new Wf])}var Qf=(()=>{class e{factories;static \u0275prov=N({token:e,providedIn:"root",factory:vy});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||vy()),deps:[[e,new Tm,new xm]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function Cy(e){ae(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=$M(r),i=[dy({}),{provide:mn,useExisting:hy},Qg,...n||[]],s=new ki({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return jM({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{ae(9)}}function Kf(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var by=null;function Ct(){return by}function Xf(e){by??=e}var Ui=class{},Jf=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(Iy),providedIn:"platform"})}return e})();var Iy=(()=>{class e extends Jf{_location;_history;_doc=_(Me);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ct().getBaseHref(this._doc)}onPopState(n){let r=Ct().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Ct().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function My(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Ey(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Jn(e){return e&&e[0]!=="?"?`?${e}`:e}var Mc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(xy),providedIn:"root"})}return e})(),Sy=new x(""),xy=(()=>{class e extends Mc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??_(Me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return My(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Jn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(k(Jf),k(Sy,8))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ro=(()=>{class e{_subject=new De;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=QM(Ey(wy(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Jn(r))}normalize(n){return e.stripTrailingSlash(YM(this._basePath,wy(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Jn;static joinWithSlash=My;static stripTrailingSlash=Ey;static \u0275fac=function(r){return new(r||e)(k(Mc))};static \u0275prov=N({token:e,factory:()=>ZM(),providedIn:"root"})}return e})();function ZM(){return new Ro(k(Mc))}function YM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function wy(e){return e.replace(/\/index.html$/,"")}function QM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Sc=class{$implicit;ngForOf;index;count;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}},Et=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Sc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Ty(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Ty(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(re(Cn),re(Zn),re(Qf))};static \u0275dir=Ge({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ty(e,t){e.context.$implicit=t.item}var Vt=(()=>{class e{_viewContainer;_context=new xc;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ay(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ay(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(re(Cn),re(Zn))};static \u0275dir=Ge({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),xc=class{$implicit=null;ngIf=null};function Ay(e,t){if(e&&!e.createEmbeddedView)throw new S(2020,!1)}var it=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({})}return e})();function Hi(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 Pr=class{};var Ny="browser";var Ac=new x(""),oh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(k(Ac),k(Ee))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),zi=class{_doc;constructor(t){this._doc=t}manager},eh="ng-app-id";function Ry(e){for(let t of e)t.remove()}function Oy(e,t){let n=t.createElement("style");return n.textContent=e,n}function KM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${eh}="${t}"],link[${eh}="${t}"]`);if(o)for(let i of o)i.removeAttribute(eh),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function nh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var ih=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,KM(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Oy);r?.forEach(o=>this.addUsage(o,this.external,nh))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Ry(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ry(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Oy(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,nh(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(k(Me),k(cc),k(uc,8),k(Mo))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),th={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},sh=/%COMP%/g;var Py="%COMP%",XM=`_nghost-${Py}`,JM=`_ngcontent-${Py}`,eS=!0,tS=new x("",{providedIn:"root",factory:()=>eS});function nS(e){return JM.replace(sh,e)}function rS(e){return XM.replace(sh,e)}function Fy(e,t){return t.map(n=>n.replace(sh,e))}var ah=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(n,r,o,i,s,a,c,l=null,u,d,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.animationDisabled=u,this.maxAnimationTimeout=d,this.tracingService=h,this.platformIsServer=!1,this.defaultRenderer=new Gi(n,s,c,this.platformIsServer,this.tracingService,this.registry=Pa(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Tc?o.applyToHost(n):o instanceof Wi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Dn.Emulated:i=new Tc(c,l,r,this.appId,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Dn.ShadowDom:return new rh(c,l,n,r,s,a,this.nonce,d,h,this.registry,this.maxAnimationTimeout);default:i=new Wi(c,l,r,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(k(oh),k(ih),k(cc),k(tS),k(Me),k(Mo),k(Ee),k(uc),k(Vf),k(jf),k(Nr,8))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Gi=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i,s,a){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i,this.registry=s,this.maxAnimationTimeout=a}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(th[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ky(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ky(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){let{elements:r}=this.registry;if(r){r.animate(n,()=>n.remove(),this.maxAnimationTimeout);return}n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=th[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=th[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(tn.DashCase|tn.Important)?t.style.setProperty(n,r,o&tn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&tn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Ct().getGlobalEventTarget(this.doc,t),!t))throw new S(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function ky(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var rh=class extends Gi{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l,u,d){super(t,i,s,c,l,u,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=o.styles;h=Fy(o.id,h);for(let v of h){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=v,this.shadowRoot.appendChild(m)}let f=o.getExternalStyles?.();if(f)for(let v of f){let m=nh(v,i);a&&m.setAttribute("nonce",a),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Wi=class extends Gi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(t,n,r,o,i,s,a,c,l,u,d,h){super(t,i,s,a,c,l,d),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this._animationDisabled=u;let f=r.styles;this.styles=h?Fy(h,f):f,this.styleUrls=r.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},Tc=class extends Wi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l,u,d,h){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u,d,h,f),this.contentAttr=nS(f),this.hostAttr=rS(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Nc=class e extends Ui{supportsDOMEvents=!0;static makeCurrent(){Xf(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=oS();return n==null?null:iS(n)}resetBaseElement(){qi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hi(document.cookie,t)}},qi=null;function oS(){return qi=qi||document.head.querySelector("base"),qi?qi.getAttribute("href"):null}function iS(e){return new URL(e,document.baseURI).pathname}var sS=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Vy=(()=>{class e extends zi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Ly=["alt","control","meta","shift"],aS={"\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"},cS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},jy=(()=>{class e extends zi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ct().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ly.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=aS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ly.forEach(s=>{if(s!==o){let a=cS[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function ch(e,t){let n=M({rootComponent:e},lS(t));return Cy(n)}function lS(e){return{appProviders:[...pS,...e?.providers??[]],platformProviders:hS}}function uS(){Nc.makeCurrent()}function dS(){return new At}function fS(){return df(document),document}var hS=[{provide:Mo,useValue:Ny},{provide:lc,useValue:uS,multi:!0},{provide:Me,useFactory:fS}];var pS=[{provide:yi,useValue:"root"},{provide:At,useFactory:dS},{provide:Ac,useClass:Vy,multi:!0,deps:[Me]},{provide:Ac,useClass:jy,multi:!0,deps:[Me]},ah,ih,oh,{provide:Sr,useExisting:ah},{provide:Pr,useClass:sS},[]];var Po=class{},Zi=class{},er=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Oc=class{encodeKey(t){return By(t)}encodeValue(t){return By(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function gS(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var mS=/%(\d[a-f0-9])/gi,vS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function By(e){return encodeURIComponent(e).replace(mS,(t,n)=>vS[n]??t)}function Rc(e){return`${e}`}var bn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Oc,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=gS(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Rc):[Rc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}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 n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Rc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Rc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var kc=class{map=new Map;set(t,n){return this.map.set(t,n),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 yS(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Uy(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Hy(e){return typeof Blob<"u"&&e instanceof Blob}function $y(e){return typeof FormData<"u"&&e instanceof FormData}function _S(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var zy="Content-Type",Gy="Accept",qy="X-Request-URL",Zy="text/plain",Yy="application/json",DS=`${Yy}, ${Zy}, */*`,Oo=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(yS(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new S(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new er,this.context??=new kc,!this.params)this.params=new bn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Uy(this.body)||Hy(this.body)||$y(this.body)||_S(this.body)?this.body:this.body instanceof bn?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||$y(this.body)?null:Hy(this.body)?this.body.type||null:Uy(this.body)?null:typeof this.body=="string"?Zy:this.body instanceof bn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Yy:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.transferCache??this.transferCache,v=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,g=t.withCredentials??this.withCredentials,p=t.reportProgress??this.reportProgress,b=t.headers||this.headers,A=t.params||this.params,I=t.context??this.context;return t.setHeaders!==void 0&&(b=Object.keys(t.setHeaders).reduce((j,K)=>j.set(K,t.setHeaders[K]),b)),t.setParams&&(A=Object.keys(t.setParams).reduce((j,K)=>j.set(K,t.setParams[K]),A)),new e(n,r,m,{params:A,headers:b,context:I,reportProgress:p,responseType:o,withCredentials:g,transferCache:f,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:l,credentials:u,referrer:d,integrity:h})}},Fr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Fr||{}),Fo=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new er,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Pc=class e extends Fo{constructor(t={}){super(t)}type=Fr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Yi=class e extends Fo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Fr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},ko=class extends Fo{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),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}},CS=200,ES=204;function lh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Lc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Oo)i=n;else{let c;o.headers instanceof er?c=o.headers:c=new er(o.headers);let l;o.params&&(o.params instanceof bn?l=o.params:l=new bn({fromObject:o.params})),i=new Oo(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=P(i).pipe(kn(c=>this.handler.handle(c)));if(n instanceof Oo||o.observe==="events")return s;let a=s.pipe(tt(c=>c instanceof Yi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new S(2806,!1);return c.body}));case"blob":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new S(2807,!1);return c.body}));case"text":return a.pipe(U(c=>{if(c.body!==null&&typeof c.body!="string")throw new S(2808,!1);return c.body}));case"json":default:return a.pipe(U(c=>c.body))}case"response":return a;default:throw new S(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new bn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,lh(o,r))}post(n,r,o={}){return this.request("POST",n,lh(o,r))}put(n,r,o={}){return this.request("PUT",n,lh(o,r))}static \u0275fac=function(r){return new(r||e)(k(Po))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var wS=new x("");function Qy(e,t){return t(e)}function bS(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function IS(e,t,n){return(r,o)=>Pe(n,()=>t(r,i=>e(i,o)))}var Ky=new x(""),dh=new x(""),Xy=new x(""),fh=new x("",{providedIn:"root",factory:()=>!0});function MS(){let e=null;return(t,n)=>{e===null&&(e=(_(Ky,{optional:!0})??[]).reduceRight(bS,Qy));let r=_(xi);if(_(fh)){let i=r.add();return e(t,n).pipe(Fn(i))}else return e(t,n)}}var Fc=(()=>{class e extends Po{backend;injector;chain=null;pendingTasks=_(xi);contributeToStability=_(fh);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(dh),...this.injector.get(Xy,[])]));this.chain=r.reduceRight((o,i)=>IS(o,i,this.injector),Qy)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Fn(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(k(Zi),k(Ie))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var SS=/^\)\]\}',?\n/,xS=RegExp(`^${qy}:`,"m");function TS(e){return"responseURL"in e&&e.responseURL?e.responseURL:xS.test(e.getAllResponseHeaders())?e.getResponseHeader(qy):null}var uh=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return P(null).pipe(He(()=>new G(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,p)=>s.setRequestHeader(g,p.join(","))),n.headers.has(Gy)||s.setRequestHeader(Gy,DS),!n.headers.has(zy)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(zy,g)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let g=s.statusText||"OK",p=new er(s.getAllResponseHeaders()),b=TS(s)||n.url;return c=new Pc({headers:p,status:s.status,statusText:g,url:b}),c},u=()=>{let{headers:g,status:p,statusText:b,url:A}=l(),I=null;p!==ES&&(I=typeof s.response>"u"?s.responseText:s.response),p===0&&(p=I?CS:0);let j=p>=200&&p<300;if(n.responseType==="json"&&typeof I=="string"){let K=I;I=I.replace(SS,"");try{I=I!==""?JSON.parse(I):null}catch(le){I=K,j&&(j=!1,I={error:le,text:I})}}j?(i.next(new Yi({body:I,headers:g,status:p,statusText:b,url:A||void 0})),i.complete()):i.error(new ko({error:I,headers:g,status:p,statusText:b,url:A||void 0}))},d=g=>{let{url:p}=l(),b=new ko({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});i.error(b)},h=d;n.timeout&&(h=g=>{let{url:p}=l(),b=new ko({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:p||void 0});i.error(b)});let f=!1,v=g=>{f||(i.next(l()),f=!0);let p={type:Fr.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),n.responseType==="text"&&s.responseText&&(p.partialText=s.responseText),i.next(p)},m=g=>{let p={type:Fr.UploadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),i.next(p)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",v),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Fr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",v),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(k(Pr))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Jy=new x(""),AS="XSRF-TOKEN",NS=new x("",{providedIn:"root",factory:()=>AS}),RS="X-XSRF-TOKEN",OS=new x("",{providedIn:"root",factory:()=>RS}),Qi=class{},kS=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(k(Me),k(NS))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function PS(e,t){let n=e.url.toLowerCase();if(!_(Jy)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=_(Qi).getToken(),o=_(OS);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var hh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(hh||{});function FS(e,t){return{\u0275kind:e,\u0275providers:t}}function Vc(...e){let t=[Lc,uh,Fc,{provide:Po,useExisting:Fc},{provide:Zi,useFactory:()=>_(wS,{optional:!0})??_(uh)},{provide:dh,useValue:PS,multi:!0},{provide:Jy,useValue:!0},{provide:Qi,useClass:kS}];for(let n of e)t.push(...n.\u0275providers);return fo(t)}var Wy=new x("");function e_(){return FS(hh.LegacyInterceptors,[{provide:Wy,useFactory:MS},{provide:dh,useExisting:Wy,multi:!0}])}var ph=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({providers:[Vc(e_())]})}return e})();var t_=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var H="primary",ls=Symbol("RouteTitle"),_h=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Ho(e){return new _h(e)}function jS(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function BS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!sn(e[n],t[n]))return!1;return!0}function sn(e,t){let n=e?Dh(e):void 0,r=t?Dh(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!l_(e[o],t[o]))return!1;return!0}function Dh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function l_(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function u_(e){return e.length>0?e[e.length-1]:null}function Sn(e){return fu(e)?e:Kn(e)?he(Promise.resolve(e)):P(e)}var US={exact:f_,subset:h_},d_={exact:HS,subset:$S,ignored:()=>!0};function n_(e,t,n){return US[n.paths](e.root,t.root,n.matrixParams)&&d_[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function HS(e,t){return sn(e,t)}function f_(e,t,n){if(!Vr(e.segments,t.segments)||!Uc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!f_(e.children[r],t.children[r],n))return!1;return!0}function $S(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>l_(e[n],t[n]))}function h_(e,t,n){return p_(e,t,t.segments,n)}function p_(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Vr(o,n)||t.hasChildren()||!Uc(o,n,r))}else if(e.segments.length===n.length){if(!Vr(e.segments,n)||!Uc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!h_(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Vr(e.segments,o)||!Uc(e.segments,o,r)||!e.children[H]?!1:p_(e.children[H],t,i,r)}}function Uc(e,t,n){return t.every((r,o)=>d_[n](e[o].parameters,r.parameters))}var Mn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new se([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ho(this.queryParams),this._queryParamMap}toString(){return WS.serialize(this)}},se=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Hc(this)}},Lr=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Ho(this.parameters),this._parameterMap}toString(){return m_(this)}};function zS(e,t){return Vr(e,t)&&e.every((n,r)=>sn(n.parameters,t[r].parameters))}function Vr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function GS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===H&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==H&&(n=n.concat(t(o,r)))}),n}var el=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>new $o,providedIn:"root"})}return e})(),$o=class{parse(t){let n=new Eh(t);return new Mn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Ki(t.root,!0)}`,r=YS(t.queryParams),o=typeof t.fragment=="string"?`#${qS(t.fragment)}`:"";return`${n}${r}${o}`}},WS=new $o;function Hc(e){return e.segments.map(t=>m_(t)).join("/")}function Ki(e,t){if(!e.hasChildren())return Hc(e);if(t){let n=e.children[H]?Ki(e.children[H],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==H&&r.push(`${o}:${Ki(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=GS(e,(r,o)=>o===H?[Ki(e.children[H],!1)]:[`${o}:${Ki(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[H]!=null?`${Hc(e)}/${n[0]}`:`${Hc(e)}/(${n.join("//")})`}}function g_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jc(e){return g_(e).replace(/%3B/gi,";")}function qS(e){return encodeURI(e)}function Ch(e){return g_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $c(e){return decodeURIComponent(e)}function r_(e){return $c(e.replace(/\+/g,"%20"))}function m_(e){return`${Ch(e.path)}${ZS(e.parameters)}`}function ZS(e){return Object.entries(e).map(([t,n])=>`;${Ch(t)}=${Ch(n)}`).join("")}function YS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${jc(n)}=${jc(o)}`).join("&"):`${jc(n)}=${jc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var QS=/^[^\/()?;#]+/;function gh(e){let t=e.match(QS);return t?t[0]:""}var KS=/^[^\/()?;=#]+/;function XS(e){let t=e.match(KS);return t?t[0]:""}var JS=/^[^=?&#]+/;function ex(e){let t=e.match(JS);return t?t[0]:""}var tx=/^[^&#]+/;function nx(e){let t=e.match(tx);return t?t[0]:""}var Eh=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new se([],{}):new se([],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 n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[H]=new se(t,n)),r}parseSegment(){let t=gh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(t),new Lr($c(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=XS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=gh(this.remaining);o&&(r=o,this.capture(r))}t[$c(n)]=$c(r)}parseQueryParam(t){let n=ex(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=nx(this.remaining);s&&(r=s,this.capture(r))}let o=r_(n),i=r_(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=gh(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=H);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[H]:new se([],s),this.consumeOptional("//")}return n}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 S(4011,!1)}};function v_(e){return e.segments.length>0?new se([],{[H]:e}):e}function y_(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=y_(o);if(r===H&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new se(e.segments,t);return rx(n)}function rx(e){if(e.numberOfChildren===1&&e.children[H]){let t=e.children[H];return new se(e.segments.concat(t.segments),t.children)}return e}function zo(e){return e instanceof Mn}function ox(e,t,n=null,r=null){let o=__(e);return D_(o,t,n,r)}function __(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new se(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=v_(r);return t??o}function D_(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return mh(o,o,o,n,r);let i=ix(t);if(i.toRoot())return mh(o,o,new se([],{}),n,r);let s=sx(i,o,e),a=s.processChildren?Ji(s.segmentGroup,s.index,i.commands):E_(s.segmentGroup,s.index,i.commands);return mh(o,s.segmentGroup,a,n,r)}function zc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ns(e){return typeof e=="object"&&e!=null&&e.outlets}function mh(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=C_(e,t,n);let a=v_(y_(s));return new Mn(a,i,o)}function C_(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=C_(i,t,n)}),new se(e.segments,r)}var Gc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&zc(r[0]))throw new S(4003,!1);let o=r.find(ns);if(o&&o!==u_(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ix(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Gc(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Gc(n,t,r)}var jo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function sx(e,t,n){if(e.isAbsolute)return new jo(t,!0,0);if(!n)return new jo(t,!1,NaN);if(n.parent===null)return new jo(n,!0,0);let r=zc(e.commands[0])?0:1,o=n.segments.length-1+r;return ax(n,o,e.numberOfDoubleDots)}function ax(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new S(4005,!1);o=r.segments.length}return new jo(r,!1,o-i)}function cx(e){return ns(e[0])?e[0].outlets:{[H]:e}}function E_(e,t,n){if(e??=new se([],{}),e.segments.length===0&&e.hasChildren())return Ji(e,t,n);let r=lx(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new se(e.segments.slice(0,r.pathIndex),{});return i.children[H]=new se(e.segments.slice(r.pathIndex),e.children),Ji(i,0,o)}else return r.match&&o.length===0?new se(e.segments,{}):r.match&&!e.hasChildren()?wh(e,t,n):r.match?Ji(e,0,o):wh(e,t,n)}function Ji(e,t,n){if(n.length===0)return new se(e.segments,{});{let r=cx(n),o={};if(Object.keys(r).some(i=>i!==H)&&e.children[H]&&e.numberOfChildren===1&&e.children[H].segments.length===0){let i=Ji(e.children[H],t,n);return new se(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=E_(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new se(e.segments,o)}}function lx(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(ns(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!i_(c,l,s))return i;r+=2}else{if(!i_(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function wh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(ns(i)){let c=ux(i.outlets);return new se(r,c)}if(o===0&&zc(n[0])){let c=e.segments[t];r.push(new Lr(c.path,o_(n[0]))),o++;continue}let s=ns(i)?i.outlets[H]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&zc(a)?(r.push(new Lr(s,o_(a))),o+=2):(r.push(new Lr(s,{})),o++)}return new se(r,{})}function ux(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=wh(new se([],{}),0,r))}),t}function o_(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function i_(e,t,n){return e==n.path&&sn(t,n.parameters)}var es="imperative",Le=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Le||{}),wt=class{id;url;constructor(t,n){this.id=t,this.url=n}},Go=class extends wt{type=Le.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tr=class extends wt{urlAfterRedirects;type=Le.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},st=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(st||{}),Wc=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Wc||{}),In=class extends wt{reason;code;type=Le.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nr=class extends wt{reason;code;type=Le.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},rs=class extends wt{error;target;type=Le.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qc=class extends wt{urlAfterRedirects;state;type=Le.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bh=class extends wt{urlAfterRedirects;state;type=Le.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ih=class extends wt{urlAfterRedirects;state;shouldActivate;type=Le.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Mh=class extends wt{urlAfterRedirects;state;type=Le.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sh=class extends wt{urlAfterRedirects;state;type=Le.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xh=class{route;type=Le.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Th=class{route;type=Le.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ah=class{snapshot;type=Le.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nh=class{snapshot;type=Le.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rh=class{snapshot;type=Le.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oh=class{snapshot;type=Le.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var os=class{},Wo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function dx(e){return!(e instanceof os)&&!(e instanceof Wo)}function fx(e,t){return e.providers&&!e._injector&&(e._injector=Li(e.providers,t,`Route: ${e.path}`)),e._injector??t}function jt(e){return e.outlet||H}function hx(e,t){let n=e.filter(r=>jt(r)===t);return n.push(...e.filter(r=>jt(r)!==t)),n}function Zo(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var kh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Zo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new us(this.rootInjector)}},us=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new kh(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(k(Ie))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Ph(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Ph(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Fh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Fh(t,this._root).map(n=>n.value)}};function Ph(e,t){if(e===t.value)return t;for(let n of t.children){let r=Ph(e,n);if(r)return r}return null}function Fh(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Fh(e,n);if(r.length)return r.unshift(t),r}return[]}var ft=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Vo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Yc=class extends Zc{snapshot;constructor(t,n){super(t),this.snapshot=n,Gh(this,t)}toString(){return this.snapshot.toString()}};function w_(e){let t=px(e),n=new Oe([new Lr("",{})]),r=new Oe({}),o=new Oe({}),i=new Oe({}),s=new Oe(""),a=new jr(n,r,i,s,o,H,e,t.root);return a.snapshot=t.root,new Yc(new ft(a,[]),t)}function px(e){let t={},n={},r={},i=new Bo([],t,r,"",n,H,e,null,{});return new Kc("",new ft(i,[]))}var jr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(U(l=>l[ls]))??P(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(U(t=>Ho(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(U(t=>Ho(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Qc(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:M(M({},t.params),e.params),data:M(M({},t.data),e.data),resolve:M(M(M(M({},e.data),t.data),o?.data),e._resolvedData)}:r={params:M({},e.params),data:M({},e.data),resolve:M(M({},e.data),e._resolvedData??{})},o&&I_(o)&&(r.resolve[ls]=o.title),r}var Bo=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ls]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=Ho(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ho(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Kc=class extends Zc{url;constructor(t,n){super(n),this.url=t,Gh(this,n)}toString(){return b_(this._root)}};function Gh(e,t){t.value._routerState=e,t.children.forEach(n=>Gh(e,n))}function b_(e){let t=e.children.length>0?` { ${e.children.map(b_).join(", ")} } `:"";return`${e.value}${t}`}function vh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,sn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),sn(t.params,n.params)||e.paramsSubject.next(n.params),BS(t.url,n.url)||e.urlSubject.next(n.url),sn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Lh(e,t){let n=sn(e.params,t.params)&&zS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Lh(e.parent,t.parent))}function I_(e){return typeof e.title=="string"||e.title===null}var gx=new x(""),M_=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=H;activateEvents=new ne;deactivateEvents=new ne;attachEvents=new ne;detachEvents=new ne;routerOutletData=Dy(void 0);parentContexts=_(us);location=_(Cn);changeDetector=_(No);inputBinder=_(tl,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Vh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ge({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[nn]})}return e})(),Vh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===jr?this.route:t===us?this.childContexts:t===gx?this.outletData:this.parent.get(t,n)}},tl=new x("");var S_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ye({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&ot(0,"router-outlet")},dependencies:[M_],encapsulation:2})}return e})();function Wh(e){let t=e.children&&e.children.map(Wh),n=t?Z(M({},e),{children:t}):M({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==H&&(n.component=S_),n}function mx(e,t,n){let r=is(e,t._root,n?n._root:void 0);return new Yc(r,t)}function is(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=vx(e,t,n);return new ft(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>is(e,a)),s}}let r=yx(t.value),o=t.children.map(i=>is(e,i));return new ft(r,o)}}function vx(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return is(e,r,o);return is(e,r)})}function yx(e){return new jr(new Oe(e.url),new Oe(e.params),new Oe(e.queryParams),new Oe(e.fragment),new Oe(e.data),e.outlet,e.component,e)}var ss=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},x_="ngNavigationCancelingError";function Xc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=T_(!1,st.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function T_(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[x_]=!0,n.cancellationCode=t,n}function _x(e){return A_(e)&&zo(e.url)}function A_(e){return!!e&&e[x_]}var Dx=(e,t,n,r)=>U(o=>(new jh(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),jh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),vh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Vo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Vo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Vo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Vo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Oh(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Nh(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(vh(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),vh(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Jc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Uo=class{component;route;constructor(t,n){this.component=t,this.route=n}};function Cx(e,t,n){let r=e._root,o=t?t._root:null;return Xi(r,o,n,[r.value])}function Ex(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Yo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ru(e)?e:t.get(e):r}function Xi(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Vo(t);return e.children.forEach(s=>{wx(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ts(a,n.getContext(s),o)),o}function wx(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=bx(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Jc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Xi(e,t,a?a.children:null,r,o):Xi(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Uo(a.outlet.component,s))}else s&&ts(t,a,o),o.canActivateChecks.push(new Jc(r)),i.component?Xi(e,null,a?a.children:null,r,o):Xi(e,null,n,r,o);return o}function bx(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Vr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Vr(e.url,t.url)||!sn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lh(e,t)||!sn(e.queryParams,t.queryParams);case"paramsChange":default:return!Lh(e,t)}}function ts(e,t,n){let r=Vo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ts(s,t.children.getContext(i),n):ts(s,null,n):ts(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Uo(t.outlet.component,o)):n.canDeactivateChecks.push(new Uo(null,o)):n.canDeactivateChecks.push(new Uo(null,o))}function ds(e){return typeof e=="function"}function Ix(e){return typeof e=="boolean"}function Mx(e){return e&&ds(e.canLoad)}function Sx(e){return e&&ds(e.canActivate)}function xx(e){return e&&ds(e.canActivateChild)}function Tx(e){return e&&ds(e.canDeactivate)}function Ax(e){return e&&ds(e.canMatch)}function N_(e){return e instanceof dn||e?.name==="EmptyError"}var Bc=Symbol("INITIAL_VALUE");function qo(){return He(e=>da(e.map(t=>t.pipe(fn(1),mu(Bc)))).pipe(U(t=>{for(let n of t)if(n!==!0){if(n===Bc)return Bc;if(n===!1||Nx(n))return n}return!0}),tt(t=>t!==Bc),fn(1)))}function Nx(e){return zo(e)||e instanceof ss}function Rx(e,t){return be(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?P(Z(M({},n),{guardsResult:!0})):Ox(s,r,o,e).pipe(be(a=>a&&Ix(a)?kx(r,i,e,t):P(a)),U(a=>Z(M({},n),{guardsResult:a})))})}function Ox(e,t,n,r){return he(e).pipe(be(o=>jx(o.component,o.route,n,t,r)),hn(o=>o!==!0,!0))}function kx(e,t,n,r){return he(t).pipe(kn(o=>so(Fx(o.route.parent,r),Px(o.route,r),Vx(e,o.path,n),Lx(e,o.route,n))),hn(o=>o!==!0,!0))}function Px(e,t){return e!==null&&t&&t(new Rh(e)),P(!0)}function Fx(e,t){return e!==null&&t&&t(new Ah(e)),P(!0)}function Lx(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return P(!0);let o=r.map(i=>di(()=>{let s=Zo(t)??n,a=Yo(i,s),c=Sx(a)?a.canActivate(t,e):Pe(s,()=>a(t,e));return Sn(c).pipe(hn())}));return P(o).pipe(qo())}function Vx(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>Ex(s)).filter(s=>s!==null).map(s=>di(()=>{let a=s.guards.map(c=>{let l=Zo(s.node)??n,u=Yo(c,l),d=xx(u)?u.canActivateChild(r,e):Pe(l,()=>u(r,e));return Sn(d).pipe(hn())});return P(a).pipe(qo())}));return P(i).pipe(qo())}function jx(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return P(!0);let s=i.map(a=>{let c=Zo(t)??o,l=Yo(a,c),u=Tx(l)?l.canDeactivate(e,t,n,r):Pe(c,()=>l(e,t,n,r));return Sn(u).pipe(hn())});return P(s).pipe(qo())}function Bx(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return P(!0);let i=o.map(s=>{let a=Yo(s,e),c=Mx(a)?a.canLoad(t,n):Pe(e,()=>a(t,n));return Sn(c)});return P(i).pipe(qo(),R_(r))}function R_(e){return cu(Te(t=>{if(typeof t!="boolean")throw Xc(e,t)}),U(t=>t===!0))}function Ux(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return P(!0);let i=o.map(s=>{let a=Yo(s,e),c=Ax(a)?a.canMatch(t,n):Pe(e,()=>a(t,n));return Sn(c)});return P(i).pipe(qo(),R_(r))}var as=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},cs=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Lo(e){return io(new as(e))}function Hx(e){return io(new S(4e3,!1))}function $x(e){return io(T_(!1,st.GuardRejected))}var Bh=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return P(r);if(o.numberOfChildren>1||!o.children[H])return Hx(`${t.redirectTo}`);o=o.children[H]}}applyRedirectCommands(t,n,r,o,i){return zx(n,o,i).pipe(U(s=>{if(s instanceof Mn)throw new cs(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new cs(a);return a}))}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Mn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new se(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function zx(e,t,n){if(typeof e=="string")return P(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:l,data:u,title:d}=t;return Sn(Pe(n,()=>r({params:l,data:u,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d})))}var Uh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gx(e,t,n,r,o){let i=O_(e,t,n);return i.matched?(r=fx(t,r),Ux(r,t,n,o).pipe(U(s=>s===!0?i:M({},Uh)))):P(i)}function O_(e,t,n){if(t.path==="**")return Wx(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?M({},Uh):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||jS)(n,e,t);if(!o)return M({},Uh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?M(M({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Wx(e){return{matched:!0,parameters:e.length>0?u_(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function s_(e,t,n,r){return n.length>0&&Yx(e,n,r)?{segmentGroup:new se(t,Zx(r,new se(n,e.children))),slicedSegments:[]}:n.length===0&&Qx(e,n,r)?{segmentGroup:new se(e.segments,qx(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new se(e.segments,e.children),slicedSegments:n}}function qx(e,t,n,r){let o={};for(let i of n)if(nl(e,t,i)&&!r[jt(i)]){let s=new se([],{});o[jt(i)]=s}return M(M({},r),o)}function Zx(e,t){let n={};n[H]=t;for(let r of e)if(r.path===""&&jt(r)!==H){let o=new se([],{});n[jt(r)]=o}return n}function Yx(e,t,n){return n.some(r=>nl(e,t,r)&&jt(r)!==H)}function Qx(e,t,n){return n.some(r=>nl(e,t,r))}function nl(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Kx(e,t,n){return t.length===0&&!e.children[n]}var Hh=class{};function Xx(e,t,n,r,o,i,s="emptyOnly"){return new $h(e,t,n,r,o,s,i).recognize()}var Jx=31,$h=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Bh(this.urlSerializer,this.urlTree)}noMatchError(t){return new S(4002,`'${t.segmentGroup}'`)}recognize(){let t=s_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(U(({children:n,rootSnapshot:r})=>{let o=new ft(r,n),i=new Kc("",o),s=ox(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new Bo([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),H,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,H,n).pipe(U(r=>({children:r,rootSnapshot:n})),On(r=>{if(r instanceof cs)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof as?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(U(s=>s instanceof ft?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return he(i).pipe(kn(s=>{let a=r.children[s],c=hx(n,s);return this.processSegmentGroup(t,c,a,s,o)}),gu((s,a)=>(s.push(...a),s)),Pn(null),pu(),be(s=>{if(s===null)return Lo(r);let a=k_(s);return eT(a),P(a)}))}processSegment(t,n,r,o,i,s,a){return he(n).pipe(kn(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(On(l=>{if(l instanceof as)return P(null);throw l}))),hn(c=>!!c),On(c=>{if(N_(c))return Kx(r,o,i)?P(new Hh):Lo(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return jt(r)!==s&&(s===H||!nl(o,i,r))?Lo(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):Lo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=O_(n,o,i);if(!c)return Lo(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Jx&&(this.allowRedirects=!1));let f=new Bo(i,l,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,a_(o),jt(o),o.component??o._loadedComponent??null,o,c_(o)),v=Qc(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(v.params),f.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,f,t).pipe(He(g=>this.applyRedirects.lineralizeSegments(o,g)),be(g=>this.processSegment(t,r,n,g.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=Gx(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(He(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(He(({routes:l})=>{let u=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,v=new Bo(h,d,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,a_(r),jt(r),r.component??r._loadedComponent??null,r,c_(r)),m=Qc(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(m.params),v.data=Object.freeze(m.data);let{segmentGroup:g,slicedSegments:p}=s_(n,h,f,l);if(p.length===0&&g.hasChildren())return this.processChildren(u,l,g,v).pipe(U(A=>new ft(v,A)));if(l.length===0&&p.length===0)return P(new ft(v,[]));let b=jt(r)===i;return this.processSegment(u,l,g,p,b?H:i,!0,v).pipe(U(A=>new ft(v,A instanceof ft?[A]:[])))}))):Lo(n)))}getChildConfig(t,n,r){return n.children?P({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?P({routes:n._loadedRoutes,injector:n._loadedInjector}):Bx(t,n,r,this.urlSerializer).pipe(be(o=>o?this.configLoader.loadChildren(t,n).pipe(Te(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):$x(n))):P({routes:[],injector:t})}};function eT(e){e.sort((t,n)=>t.value.outlet===H?-1:n.value.outlet===H?1:t.value.outlet.localeCompare(n.value.outlet))}function tT(e){let t=e.value.routeConfig;return t&&t.path===""}function k_(e){let t=[],n=new Set;for(let r of e){if(!tT(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=k_(r.children);t.push(new ft(r.value,o))}return t.filter(r=>!n.has(r))}function a_(e){return e.data||{}}function c_(e){return e.resolve||{}}function nT(e,t,n,r,o,i){return be(s=>Xx(e,t,n,r,s.extractedUrl,o,i).pipe(U(({state:a,tree:c})=>Z(M({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function rT(e,t){return be(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return P(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let l of P_(c))s.add(l);let a=0;return he(s).pipe(kn(c=>i.has(c)?oT(c,r,e,t):(c.data=Qc(c,c.parent,e).resolve,P(void 0))),Te(()=>a++),ao(1),be(c=>a===s.size?P(n):Je))})}function P_(e){let t=e.children.map(n=>P_(n)).flat();return[e,...t]}function oT(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!I_(o)&&(i[ls]=o.title),di(()=>(e.data=Qc(e,e.parent,n).resolve,iT(i,e,t,r).pipe(U(s=>(e._resolvedData=s,e.data=M(M({},e.data),s),null)))))}function iT(e,t,n,r){let o=Dh(e);if(o.length===0)return P({});let i={};return he(o).pipe(be(s=>sT(e[s],t,n,r).pipe(hn(),Te(a=>{if(a instanceof ss)throw Xc(new $o,a);i[s]=a}))),ao(1),U(()=>i),On(s=>N_(s)?Je:io(s)))}function sT(e,t,n,r){let o=Zo(t)??r,i=Yo(e,o),s=i.resolve?i.resolve(t,n):Pe(o,()=>i(t,n));return Sn(s)}function yh(e){return He(t=>{let n=e(t);return n?he(n).pipe(U(()=>t)):P(t)})}var F_=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===H);return r}getResolvedTitleForRoute(n){return n.data[ls]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(aT),providedIn:"root"})}return e})(),aT=(()=>{class e extends F_{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(k(t_))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rl=new x("",{providedIn:"root",factory:()=>({})}),ol=new x(""),L_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=_(zf);loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return P(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=Sn(Pe(n,()=>r.loadComponent())).pipe(U(V_),He(j_),Te(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Fn(()=>{this.componentLoaders.delete(r)})),i=new oo(o,()=>new De).pipe(ro());return this.componentLoaders.set(r,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return P({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=cT(r,this.compiler,n,this.onLoadEndListener).pipe(Fn(()=>{this.childrenLoaders.delete(r)})),s=new oo(i,()=>new De).pipe(ro());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cT(e,t,n,r){return Sn(Pe(n,()=>e.loadChildren())).pipe(U(V_),He(j_),be(o=>o instanceof mc||Array.isArray(o)?P(o):he(t.compileModuleAsync(o))),U(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(ol,[],{optional:!0,self:!0}).flat()),{routes:s.map(Wh),injector:i}}))}function lT(e){return e&&typeof e=="object"&&"default"in e}function V_(e){return lT(e)?e.default:e}function j_(e){return P(e)}var qh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(uT),providedIn:"root"})}return e})(),uT=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),B_=new x("");var U_=new x(""),H_=(()=>{class e{currentNavigation=_n(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new De;transitionAbortWithErrorSubject=new De;configLoader=_(L_);environmentInjector=_(Ie);destroyRef=_(Xt);urlSerializer=_(el);rootContexts=_(us);location=_(Ro);inputBindingEnabled=_(tl,{optional:!0})!==null;titleStrategy=_(F_);options=_(rl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=_(qh);createViewTransition=_(B_,{optional:!0});navigationErrorHandler=_(U_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>P(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new xh(o)),r=o=>this.events.next(new Th(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;We(()=>{this.transitions?.next(Z(M({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(n){return this.transitions=new Oe(null),this.transitions.pipe(tt(r=>r!==null),He(r=>{let o=!1;return P(r).pipe(He(i=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",st.SupersededByNewNavigation),Je;this.currentTransition=r,this.currentNavigation.set({id:i.id,initialUrl:i.rawUrl,extractedUrl:i.extractedUrl,targetBrowserUrl:typeof i.extras.browserUrl=="string"?this.urlSerializer.parse(i.extras.browserUrl):i.extras.browserUrl,trigger:i.source,extras:i.extras,previousNavigation:this.lastSuccessfulNavigation?Z(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>i.abortController.abort()});let s=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=i.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new nr(i.id,this.urlSerializer.serialize(i.rawUrl),"",Wc.IgnoredSameUrlNavigation)),i.resolve(!1),Je;if(this.urlHandlingStrategy.shouldProcessUrl(i.rawUrl))return P(i).pipe(He(c=>(this.events.next(new Go(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Je:Promise.resolve(c))),nT(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Te(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(i.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:d,extras:h}=i,f=new Go(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let v=w_(this.rootComponentType).snapshot;return this.currentTransition=r=Z(M({},i),{targetSnapshot:v,urlAfterRedirects:l,extras:Z(M({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(m=>(m.finalUrl=l,m)),P(r)}else return this.events.next(new nr(i.id,this.urlSerializer.serialize(i.extractedUrl),"",Wc.IgnoredByUrlHandlingStrategy)),i.resolve(!1),Je}),Te(i=>{let s=new bh(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot);this.events.next(s)}),U(i=>(this.currentTransition=r=Z(M({},i),{guards:Cx(i.targetSnapshot,i.currentSnapshot,this.rootContexts)}),r)),Rx(this.environmentInjector,i=>this.events.next(i)),Te(i=>{if(r.guardsResult=i.guardsResult,i.guardsResult&&typeof i.guardsResult!="boolean")throw Xc(this.urlSerializer,i.guardsResult);let s=new Ih(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot,!!i.guardsResult);this.events.next(s)}),tt(i=>i.guardsResult?!0:(this.cancelNavigationTransition(i,"",st.GuardRejected),!1)),yh(i=>{if(i.guards.canActivateChecks.length!==0)return P(i).pipe(Te(s=>{let a=new Mh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),He(s=>{let a=!1;return P(s).pipe(rT(this.paramsInheritanceStrategy,this.environmentInjector),Te({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",st.NoDataFromResolver)}}))}),Te(s=>{let a=new Sh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),yh(i=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Zo(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(Te(u=>{a.component=u}),U(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return da(s(i.targetSnapshot.root)).pipe(Pn(null),fn(1))}),yh(()=>this.afterPreactivation()),He(()=>{let{currentSnapshot:i,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,i.root,s.root);return a?he(a).pipe(U(()=>r)):P(r)}),U(i=>{let s=mx(n.routeReuseStrategy,i.targetSnapshot,i.currentRouterState);return this.currentTransition=r=Z(M({},i),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),Te(()=>{this.events.next(new os)}),Dx(this.rootContexts,n.routeReuseStrategy,i=>this.events.next(i),this.inputBindingEnabled),fn(1),ha(new G(i=>{let s=r.abortController.signal,a=()=>i.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(tt(()=>!o&&!r.targetRouterState),Te(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",st.Aborted)}))),Te({next:i=>{o=!0,this.lastSuccessfulNavigation=We(this.currentNavigation),this.events.next(new tr(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects))),this.titleStrategy?.updateTitle(i.targetRouterState.snapshot),i.resolve(!0)},complete:()=>{o=!0}}),ha(this.transitionAbortWithErrorSubject.pipe(Te(i=>{throw i}))),Fn(()=>{o||this.cancelNavigationTransition(r,"",st.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),On(i=>{if(this.destroyed)return r.resolve(!1),Je;if(o=!0,A_(i))this.events.next(new In(r.id,this.urlSerializer.serialize(r.extractedUrl),i.message,i.cancellationCode)),_x(i)?this.events.next(new Wo(i.url,i.navigationBehaviorOptions)):r.resolve(!1);else{let s=new rs(r.id,this.urlSerializer.serialize(r.extractedUrl),i,r.targetSnapshot??void 0);try{let a=Pe(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ss){let{message:c,cancellationCode:l}=Xc(this.urlSerializer,a);this.events.next(new In(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new Wo(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),i}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return Je}))}))}cancelNavigationTransition(n,r,o){let i=new In(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=We(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dT(e){return e!==es}var fT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(hT),providedIn:"root"})}return e})(),zh=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},hT=(()=>{class e extends zh{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Qn(e)))(o||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$_=(()=>{class e{urlSerializer=_(el);options=_(rl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=_(Ro);urlHandlingStrategy=_(qh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Mn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Mn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=w_(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(pT),providedIn:"root"})}return e})(),pT=(()=>{class e extends $_{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Go?this.updateStateMemento():n instanceof nr?this.commitTransition(r):n instanceof qc?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof os?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof In&&n.code!==st.SupersededByNewNavigation&&n.code!==st.Redirect?this.restoreHistory(r):n instanceof rs?this.restoreHistory(r,!0):n instanceof tr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=M(M({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=M(M({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Qn(e)))(o||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function z_(e,t){e.events.pipe(tt(n=>n instanceof tr||n instanceof In||n instanceof rs||n instanceof nr),U(n=>n instanceof tr||n instanceof nr?0:(n instanceof In?n.code===st.Redirect||n.code===st.SupersededByNewNavigation:!1)?2:1),tt(n=>n!==2),fn(1)).subscribe(()=>{t()})}var gT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Zh=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=_(kf);stateManager=_($_);options=_(rl,{optional:!0})||{};pendingTasks=_(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=_(H_);urlSerializer=_(el);location=_(Ro);urlHandlingStrategy=_(qh);injector=_(Ie);_events=new De;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=_(fT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=_(ol,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!_(tl,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=We(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof In&&r.code!==st.Redirect&&r.code!==st.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof tr)this.navigated=!0;else if(r instanceof Wo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=M({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||dT(o.source)},s);this.scheduleNavigation(a,es,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}dx(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),es,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=M({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(dt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return We(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Wh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=M(M({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=__(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return D_(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=zo(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,es,null,r)}navigate(n,r={skipLocationChange:!1}){return vT(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=M({},gT):r===!1?o=M({},mT):o=r,zo(n))return n_(this.currentUrlTree,n,o);let i=this.parseUrl(n);return n_(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return z_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vT(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new S(4008,!1)}var yT=new x("");function Yh(e,...t){return fo([{provide:ol,multi:!0,useValue:e},[],{provide:jr,useFactory:_T,deps:[Zh]},{provide:_c,multi:!0,useFactory:DT},t.map(n=>n.\u0275providers)])}function _T(e){return e.routerState.root}function DT(){let e=_(ht);return t=>{let n=e.get(wn);if(t!==n.components[0])return;let r=e.get(Zh),o=e.get(CT);e.get(ET)===1&&r.initialNavigation(),e.get(wT,null,{optional:!0})?.setUpPreloading(),e.get(yT,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var CT=new x("",{factory:()=>new De}),ET=new x("",{providedIn:"root",factory:()=>1});var wT=new x("");var G_=[];var W_={providers:[Yh(G_),Vc()]};var t0=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(re(Ar),re(Lt))};static \u0275dir=Ge({type:e})}return e})(),ep=(()=>{class e extends t0{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Qn(e)))(o||e)}})();static \u0275dir=Ge({type:e,features:[En]})}return e})(),ll=new x("");var IT={provide:ll,useExisting:vn(()=>ul),multi:!0};function MT(){let e=Ct()?Ct().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var ST=new x(""),ul=(()=>{class e extends t0{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!MT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(re(Ar),re(Lt),re(ST,8))};static \u0275dir=Ge({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Q("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[To([IT]),En]})}return e})();var xT=new x(""),TT=new x("");function n0(e){return e!=null}function r0(e){return Kn(e)?he(e):e}function o0(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function i0(e,t){return t.map(n=>n(e))}function AT(e){return!e.validate}function s0(e){return e.map(t=>AT(t)?t:n=>t.validate(n))}function NT(e){if(!e)return null;let t=e.filter(n0);return t.length==0?null:function(n){return o0(i0(n,t))}}function a0(e){return e!=null?NT(s0(e)):null}function RT(e){if(!e)return null;let t=e.filter(n0);return t.length==0?null:function(n){let r=i0(n,t).map(r0);return hu(r).pipe(U(o0))}}function c0(e){return e!=null?RT(s0(e)):null}function q_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function OT(e){return e._rawValidators}function kT(e){return e._rawAsyncValidators}function Qh(e){return e?Array.isArray(e)?e:[e]:[]}function sl(e,t){return Array.isArray(e)?e.includes(t):e===t}function Z_(e,t){let n=Qh(t);return Qh(e).forEach(o=>{sl(n,o)||n.push(o)}),n}function Y_(e,t){return Qh(t).filter(n=>!sl(e,n))}var al=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=a0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=c0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Kh=class extends al{name;get formDirective(){return null}get path(){return null}},ms=class extends al{_parent=null;name=null;valueAccessor=null},Xh=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},PT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},z4=Z(M({},PT),{"[class.ng-submitted]":"isSubmitted"}),l0=(()=>{class e extends Xh{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(re(ms,2))};static \u0275dir=Ge({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Xn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[En]})}return e})();var fs="VALID",il="INVALID",Qo="PENDING",hs="DISABLED",Xo=class{},cl=class extends Xo{value;source;constructor(t,n){super(),this.value=t,this.source=n}},ps=class extends Xo{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},gs=class extends Xo{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Ko=class extends Xo{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function FT(e){return(dl(e)?e.validators:e)||null}function LT(e){return Array.isArray(e)?a0(e):e||null}function VT(e,t){return(dl(t)?t.asyncValidators:e)||null}function jT(e){return Array.isArray(e)?c0(e):e||null}function dl(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Jh=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return We(this.statusReactive)}set status(t){We(()=>this.statusReactive.set(t))}_status=ji(()=>this.statusReactive());statusReactive=_n(void 0);get valid(){return this.status===fs}get invalid(){return this.status===il}get pending(){return this.status==Qo}get disabled(){return this.status===hs}get enabled(){return this.status!==hs}errors;get pristine(){return We(this.pristineReactive)}set pristine(t){We(()=>this.pristineReactive.set(t))}_pristine=ji(()=>this.pristineReactive());pristineReactive=_n(!0);get dirty(){return!this.pristine}get touched(){return We(this.touchedReactive)}set touched(t){We(()=>this.touchedReactive.set(t))}_touched=ji(()=>this.touchedReactive());touchedReactive=_n(!1);get untouched(){return!this.touched}_events=new De;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Z_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Z_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Y_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Y_(t,this._rawAsyncValidators))}hasValidator(t){return sl(this._rawValidators,t)}hasAsyncValidator(t){return sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Z(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new gs(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new gs(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Z(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ps(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ps(!0,r))}markAsPending(t={}){this.status=Qo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ko(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Z(M({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hs,this.errors=null,this._forEachChild(o=>{o.disable(Z(M({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new cl(this.value,r)),this._events.next(new Ko(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Z(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=fs,this._forEachChild(r=>{r.enable(Z(M({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Z(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fs||this.status===Qo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new cl(this.value,n)),this._events.next(new Ko(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Z(M({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hs:fs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Qo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=r0(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Ko(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ne,this.statusChanges=new ne}_calculateStatus(){return this._allControlsDisabled()?hs:this.errors?il:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qo)?Qo:this._anyControlsHaveStatus(il)?il:fs}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new ps(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new gs(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dl(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=LT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=jT(this._rawAsyncValidators)}};var u0=new x("",{providedIn:"root",factory:()=>tp}),tp="always";function BT(e,t){return[...t.path,e]}function UT(e,t,n=tp){$T(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),zT(e,t),WT(e,t),GT(e,t),HT(e,t)}function Q_(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function HT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function $T(e,t){let n=OT(e);t.validator!==null?e.setValidators(q_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=kT(e);t.asyncValidator!==null?e.setAsyncValidators(q_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Q_(t._rawValidators,o),Q_(t._rawAsyncValidators,o)}function zT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&d0(e,t)})}function GT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&d0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function d0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function WT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function qT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function ZT(e){return Object.getPrototypeOf(e.constructor)===ep}function YT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===ul?n=i:ZT(i)?r=i:o=i}),o||r||n||null}function K_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function X_(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var QT=class extends Jh{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(FT(n),VT(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(X_(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){K_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){K_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){X_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var KT={provide:ms,useExisting:vn(()=>np)},J_=Promise.resolve(),np=(()=>{class e extends ms{_changeDetectorRef;callSetDisabledState;control=new QT;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ne;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=YT(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),qT(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){UT(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){J_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Kf(r);J_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?BT(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(re(Kh,9),re(xT,10),re(TT,10),re(ll,10),re(No,8),re(u0,8))};static \u0275dir=Ge({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[To([KT]),En,nn]})}return e})();var XT={provide:ll,useExisting:vn(()=>fl),multi:!0};function f0(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function JT(e){return e.split(":")[0]}var fl=(()=>{class e extends ep{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=_(wn).injector;destroyRef=_(Xt);cdr=_(No);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,yc({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),o=f0(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=JT(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Qn(e)))(o||e)}})();static \u0275dir=Ge({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&Q("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[To([XT]),En]})}return e})(),h0=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(f0(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select&&this._select._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(re(Lt),re(Ar),re(fl,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),eA={provide:ll,useExisting:vn(()=>p0),multi:!0};function e0(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function tA(e){return e.split(":")[0]}var p0=(()=>{class e extends ep{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=tA(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Qn(e)))(o||e)}})();static \u0275dir=Ge({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&Q("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[To([eA]),En]})}return e})(),g0=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(e0(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(e0(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(re(Lt),re(Ar),re(p0,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var nA=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({})}return e})();var m0=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:u0,useValue:n.callSetDisabledState??tp}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({imports:[nA]})}return e})();function oA(e,t){if(e&1&&(w(0,"span"),T(1),C()),e&2){let n=ie().$implicit;E(),Se(" Branch: ",n.branches[0]," ")}}function iA(e,t){if(e&1&&(w(0,"span"),T(1),C()),e&2){let n=ie().$implicit;E(),Se(" Tag: ",n.tags[0]," ")}}function sA(e,t){if(e&1){let n=Dt();w(0,"div",15),Q("click",function(){let o=me(n).$implicit,i=ie();return ve(i.onCommitClick(o))}),w(1,"div",16)(2,"div",17)(3,"div",18)(4,"span",19),T(5),C(),w(6,"span",20),T(7),C(),w(8,"span",21),T(9),C()(),w(10,"h3",22),T(11),C(),w(12,"div",23)(13,"span"),T(14),C(),ye(15,oA,2,1,"span",24)(16,iA,2,1,"span",24),C()(),w(17,"div",25)(18,"button",26),Q("click",function(o){let i=me(n).$implicit;return ie().onCommitClick(i),ve(o.stopPropagation())}),T(19," View "),C()()()()}if(e&2){let n=t.$implicit,r=ie();ee("background-color",r.getColor("background","white"))("border-color",r.getColor("border","#e5e7eb"))("color",r.getColor("text","#111827")),E(4),ee("color",r.getColor("text","#6b7280")),E(),we(n.hash.substring(0,8)),E(),ee("color",r.getColor("text","#374151")),E(),we(n.author),E(),ee("color",r.getColor("text","#6b7280")),E(),we(r.formatDate(n.date)),E(),ee("color",r.getColor("text","#111827")),E(),we(n.message),E(),ee("color",r.getColor("text","#6b7280")),E(2),Se("",n.files.length," files changed"),E(),W("ngIf",n.branches.length>0),E(),W("ngIf",n.tags.length>0),E(2),ee("background-color",r.getColor("primary","#3b82f6"))("color",r.getColor("text","white"))}}function aA(e,t){if(e&1&&(w(0,"div",27),T(1," No commits found matching your search criteria. "),C()),e&2){let n=ie();ee("color",n.getColor("text","#6b7280"))("text-align","center")("padding","2rem")}}var hl=class e{commits=[];colorPalette;commitClick=new ne;currentPage=1;pageSize=25;totalCommits=0;totalPages=1;pageChange=new ne;pageSizeChange=new ne;observer;ngOnInit(){this.setupDarkModeObserver()}ngOnDestroy(){this.observer&&this.observer.disconnect()}onCommitClick(t){this.commitClick.emit(t)}get paginatedCommits(){return this.commits}get startIndex(){return(this.currentPage-1)*this.pageSize}get endIndex(){return Math.min(this.startIndex+this.pageSize,this.totalCommits)}goToPage(t){console.log("goToPage called with:",t),console.log("Current page:",this.currentPage),console.log("Total pages:",this.totalPages),t>=1&&t<=this.totalPages&&t!==this.currentPage?(console.log("Emitting pageChange event with page:",t),this.pageChange.emit(t)):console.log("Page change rejected:",{page:t,currentPage:this.currentPage,totalPages:this.totalPages})}onPageSizeChange(t){let n=parseInt(t.target.value);this.pageSizeChange.emit(n)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&setTimeout(()=>{this.getBackgroundColor()},0)})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}getColor(t,n){return this.colorPalette?.colors[t]||n}getBackgroundColor(){return"transparent"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({type:e,selectors:[["app-commit-list"]],inputs:{commits:"commits",colorPalette:"colorPalette",currentPage:"currentPage",pageSize:"pageSize",totalCommits:"totalCommits",totalPages:"totalPages"},outputs:{commitClick:"commitClick",pageChange:"pageChange",pageSizeChange:"pageSizeChange"},decls:32,vars:42,consts:[[1,"commit-list"],[1,"pagination-info"],[1,"page-size-controls"],[3,"change","value"],["value","10"],["value","25"],["value","50"],["value","100"],["class","commit-item",3,"background-color","border-color","color","click",4,"ngFor","ngForOf"],[1,"pagination-controls"],[1,"pagination-btn",3,"click","disabled"],[1,"page-info"],[1,"current-page"],[1,"total-pages"],["class","no-results",3,"color","text-align","padding",4,"ngIf"],[1,"commit-item",3,"click"],[1,"commit-header"],[1,"commit-info"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-stats"],[4,"ngIf"],[1,"commit-actions"],[1,"btn","btn-primary",3,"click"],[1,"no-results"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1)(2,"span"),T(3),C(),w(4,"div",2)(5,"label"),T(6,"Page size:"),C(),w(7,"select",3),Q("change",function(i){return r.onPageSizeChange(i)}),w(8,"option",4),T(9,"10"),C(),w(10,"option",5),T(11,"25"),C(),w(12,"option",6),T(13,"50"),C(),w(14,"option",7),T(15,"100"),C()()()(),ye(16,sA,20,27,"div",8),w(17,"div",9)(18,"button",10),Q("click",function(){return r.goToPage(r.currentPage-1)}),T(19," \u2190 Previous "),C(),w(20,"div",11)(21,"span"),T(22,"Page"),C(),w(23,"span",12),T(24),C(),w(25,"span"),T(26,"of"),C(),w(27,"span",13),T(28),C()(),w(29,"button",10),Q("click",function(){return r.goToPage(r.currentPage+1)}),T(30," Next \u2192 "),C()(),ye(31,aA,2,6,"div",14),C()),n&2&&(ee("background-color",r.getBackgroundColor())("min-height","100vh"),E(),ee("color",r.getColor("text","#6b7280"))("margin-bottom","1rem"),E(2),Ec("Showing ",r.startIndex+1,"-",r.endIndex," of ",r.commits.length," commits"),E(2),ee("margin-right","0.5rem"),E(2),ee("background-color",r.getColor("background","white"))("color",r.getColor("text","#111827"))("border-color",r.getColor("border","#d1d5db"))("padding","0.25rem 0.5rem")("border-radius","0.25rem")("font-size","0.875rem"),W("value",r.pageSize),E(9),W("ngForOf",r.paginatedCommits),E(),ee("margin-top","2rem")("display","flex")("justify-content","center")("align-items","center")("gap","1rem"),E(),W("disabled",r.currentPage===1),E(6),we(r.currentPage),E(4),we(r.totalPages),E(),W("disabled",r.currentPage===r.totalPages),E(2),W("ngIf",r.commits.length===0))},dependencies:[it,Et,Vt],styles:[".commit-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-height:100vh;padding:1rem 0;transition:background-color .2s ease}.commit-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1rem;cursor:pointer;transition:box-shadow .2s}.commit-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 6px #0000001a}.commit-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.commit-info[_ngcontent-%COMP%]{flex:1}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280}.commit-message[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.5rem}.commit-stats[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;font-size:.875rem;color:#6b7280}.commit-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.no-results[_ngcontent-%COMP%]{font-size:1rem;font-style:italic}.pagination-btn[_ngcontent-%COMP%]{padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:.375rem;background-color:#fff;color:#374151;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;min-width:100px;text-align:center}.pagination-btn[_ngcontent-%COMP%]:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 2px 4px #0000001a;background-color:#f9fafb}.pagination-btn[_ngcontent-%COMP%]:active:not(:disabled){transform:translateY(0)}.pagination-btn[_ngcontent-%COMP%]:disabled{background-color:#f3f4f6;color:#9ca3af;cursor:not-allowed;opacity:.6}.page-info[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:flex;align-items:center;gap:.5rem;color:#374151;font-size:.875rem;font-weight:500}.current-page[_ngcontent-%COMP%]{color:#3b82f6;font-weight:600}.total-pages[_ngcontent-%COMP%]{color:#6b7280}"]})};var cA={value:()=>{}};function y0(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new pl(n)}function pl(e){this._=e}function lA(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}pl.prototype=y0.prototype={constructor:pl,on:function(e,t){var n=this._,r=lA(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=uA(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=v0(n[o],e.name,t);else if(t==null)for(o in n)n[o]=v0(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new pl(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function uA(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function v0(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=cA,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Br=y0;var gl="http://www.w3.org/1999/xhtml",rp={svg:"http://www.w3.org/2000/svg",xhtml:gl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),rp.hasOwnProperty(t)?{space:rp[t],local:e}:e}function dA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===gl&&t.documentElement.namespaceURI===gl?t.createElement(e):t.createElementNS(n,e)}}function fA(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ml(e){var t=xn(e);return(t.local?fA:dA)(t)}function hA(){}function Ur(e){return e==null?hA:function(){return this.querySelector(e)}}function _0(e){typeof e!="function"&&(e=Ur(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),c,l,u=0;u<s;++u)(c=i[u])&&(l=e.call(c,c.__data__,u,i))&&("__data__"in c&&(l.__data__=c.__data__),a[u]=l);return new pe(r,this._parents)}function op(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function pA(){return[]}function vs(e){return e==null?pA:function(){return this.querySelectorAll(e)}}function gA(e){return function(){return op(e.apply(this,arguments))}}function D0(e){typeof e=="function"?e=gA(e):e=vs(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&(r.push(e.call(c,c.__data__,l,s)),o.push(c));return new pe(r,o)}function ys(e){return function(){return this.matches(e)}}function vl(e){return function(t){return t.matches(e)}}var mA=Array.prototype.find;function vA(e){return function(){return mA.call(this.children,e)}}function yA(){return this.firstElementChild}function C0(e){return this.select(e==null?yA:vA(typeof e=="function"?e:vl(e)))}var _A=Array.prototype.filter;function DA(){return Array.from(this.children)}function CA(e){return function(){return _A.call(this.children,e)}}function E0(e){return this.selectAll(e==null?DA:CA(typeof e=="function"?e:vl(e)))}function w0(e){typeof e!="function"&&(e=ys(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new pe(r,this._parents)}function yl(e){return new Array(e.length)}function b0(){return new pe(this._enter||this._groups.map(yl),this._parents)}function _s(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}_s.prototype={constructor:_s,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function I0(e){return function(){return e}}function EA(e,t,n,r,o,i){for(var s=0,a,c=t.length,l=i.length;s<l;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new _s(e,i[s]);for(;s<c;++s)(a=t[s])&&(o[s]=a)}function wA(e,t,n,r,o,i,s){var a,c,l=new Map,u=t.length,d=i.length,h=new Array(u),f;for(a=0;a<u;++a)(c=t[a])&&(h[a]=f=s.call(c,c.__data__,a,t)+"",l.has(f)?o[a]=c:l.set(f,c));for(a=0;a<d;++a)f=s.call(e,i[a],a,i)+"",(c=l.get(f))?(r[a]=c,c.__data__=i[a],l.delete(f)):n[a]=new _s(e,i[a]);for(a=0;a<u;++a)(c=t[a])&&l.get(h[a])===c&&(o[a]=c)}function bA(e){return e.__data__}function M0(e,t){if(!arguments.length)return Array.from(this,bA);var n=t?wA:EA,r=this._parents,o=this._groups;typeof e!="function"&&(e=I0(e));for(var i=o.length,s=new Array(i),a=new Array(i),c=new Array(i),l=0;l<i;++l){var u=r[l],d=o[l],h=d.length,f=IA(e.call(u,u&&u.__data__,l,r)),v=f.length,m=a[l]=new Array(v),g=s[l]=new Array(v),p=c[l]=new Array(h);n(u,d,m,g,p,f,t);for(var b=0,A=0,I,j;b<v;++b)if(I=m[b]){for(b>=A&&(A=b+1);!(j=g[A])&&++A<v;);I._next=j||null}}return s=new pe(s,r),s._enter=a,s._exit=c,s}function IA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S0(){return new pe(this._exit||this._groups.map(yl),this._parents)}function x0(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function T0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),c=0;c<s;++c)for(var l=n[c],u=r[c],d=l.length,h=a[c]=new Array(d),f,v=0;v<d;++v)(f=l[v]||u[v])&&(h[v]=f);for(;c<o;++c)a[c]=n[c];return new pe(a,this._parents)}function A0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function N0(e){e||(e=MA);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,c=o[i]=new Array(a),l,u=0;u<a;++u)(l=s[u])&&(c[u]=l);c.sort(t)}return new pe(o,this._parents).order()}function MA(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function R0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function O0(){return Array.from(this)}function k0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function P0(){let e=0;for(let t of this)++e;return e}function F0(){return!this.node()}function L0(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function SA(e){return function(){this.removeAttribute(e)}}function xA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function TA(e,t){return function(){this.setAttribute(e,t)}}function AA(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NA(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function RA(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function V0(e,t){var n=xn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?xA:SA:typeof t=="function"?n.local?RA:NA:n.local?AA:TA)(n,t))}function _l(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function OA(e){return function(){this.style.removeProperty(e)}}function kA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function PA(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function j0(e,t,n){return arguments.length>1?this.each((t==null?OA:typeof t=="function"?PA:kA)(e,t,n??"")):rr(this.node(),e)}function rr(e,t){return e.style.getPropertyValue(t)||_l(e).getComputedStyle(e,null).getPropertyValue(t)}function FA(e){return function(){delete this[e]}}function LA(e,t){return function(){this[e]=t}}function VA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function B0(e,t){return arguments.length>1?this.each((t==null?FA:typeof t=="function"?VA:LA)(e,t)):this.node()[e]}function U0(e){return e.trim().split(/^|\s+/)}function ip(e){return e.classList||new H0(e)}function H0(e){this._node=e,this._names=U0(e.getAttribute("class")||"")}H0.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function $0(e,t){for(var n=ip(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function z0(e,t){for(var n=ip(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function jA(e){return function(){$0(this,e)}}function BA(e){return function(){z0(this,e)}}function UA(e,t){return function(){(t.apply(this,arguments)?$0:z0)(this,e)}}function G0(e,t){var n=U0(e+"");if(arguments.length<2){for(var r=ip(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?UA:t?jA:BA)(n,t))}function HA(){this.textContent=""}function $A(e){return function(){this.textContent=e}}function zA(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function W0(e){return arguments.length?this.each(e==null?HA:(typeof e=="function"?zA:$A)(e)):this.node().textContent}function GA(){this.innerHTML=""}function WA(e){return function(){this.innerHTML=e}}function qA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function q0(e){return arguments.length?this.each(e==null?GA:(typeof e=="function"?qA:WA)(e)):this.node().innerHTML}function ZA(){this.nextSibling&&this.parentNode.appendChild(this)}function Z0(){return this.each(ZA)}function YA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y0(){return this.each(YA)}function Q0(e){var t=typeof e=="function"?e:ml(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function QA(){return null}function K0(e,t){var n=typeof e=="function"?e:ml(e),r=t==null?QA:typeof t=="function"?t:Ur(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function KA(){var e=this.parentNode;e&&e.removeChild(this)}function X0(){return this.each(KA)}function XA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function JA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function J0(e){return this.select(e?JA:XA)}function eD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function eN(e){return function(t){e.call(this,t,this.__data__)}}function tN(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function nN(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function rN(e,t,n){return function(){var r=this.__on,o,i=eN(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function tD(e,t,n){var r=tN(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,u;c<l;++c)for(o=0,u=a[c];o<i;++o)if((s=r[o]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?rN:nN,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function nD(e,t,n){var r=_l(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function oN(e,t){return function(){return nD(this,e,t)}}function iN(e,t){return function(){return nD(this,e,t.apply(this,arguments))}}function rD(e,t){return this.each((typeof t=="function"?iN:oN)(e,t))}function*oD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var sp=[null];function pe(e,t){this._groups=e,this._parents=t}function iD(){return new pe([[document.documentElement]],sp)}function sN(){return this}pe.prototype=iD.prototype={constructor:pe,select:_0,selectAll:D0,selectChild:C0,selectChildren:E0,filter:w0,data:M0,enter:b0,exit:S0,join:x0,merge:T0,selection:sN,order:A0,sort:N0,call:R0,nodes:O0,node:k0,size:P0,empty:F0,each:L0,attr:V0,style:j0,property:B0,classed:G0,text:W0,html:q0,raise:Z0,lower:Y0,append:Q0,insert:K0,remove:X0,clone:J0,datum:eD,on:tD,dispatch:rD,[Symbol.iterator]:oD};var Tn=iD;function bt(e){return typeof e=="string"?new pe([[document.querySelector(e)]],[document.documentElement]):new pe([[e]],sp)}function sD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function An(e,t){if(e=sD(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Dl={capture:!0,passive:!1};function Cl(e){e.preventDefault(),e.stopImmediatePropagation()}function ap(e){var t=e.document.documentElement,n=bt(e).on("dragstart.drag",Cl,Dl);"onselectstart"in t?n.on("selectstart.drag",Cl,Dl):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function cp(e,t){var n=e.document.documentElement,r=bt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Cl,Dl),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function El(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Es(){}var Ds=.7,Il=1/Ds,Jo="\\s*([+-]?\\d+)\\s*",Cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",aN=/^#([0-9a-f]{3,8})$/,cN=new RegExp(`^rgb\\(${Jo},${Jo},${Jo}\\)$`),lN=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),uN=new RegExp(`^rgba\\(${Jo},${Jo},${Jo},${Cs}\\)$`),dN=new RegExp(`^rgba\\(${an},${an},${an},${Cs}\\)$`),fN=new RegExp(`^hsl\\(${Cs},${an},${an}\\)$`),hN=new RegExp(`^hsla\\(${Cs},${an},${an},${Cs}\\)$`),aD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};El(Es,or,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cD,formatHex:cD,formatHex8:pN,formatHsl:gN,formatRgb:lD,toString:lD});function cD(){return this.rgb().formatHex()}function pN(){return this.rgb().formatHex8()}function gN(){return gD(this).formatHsl()}function lD(){return this.rgb().formatRgb()}function or(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=aN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uD(t):n===3?new at(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?wl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?wl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=cN.exec(e))?new at(t[1],t[2],t[3],1):(t=lN.exec(e))?new at(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uN.exec(e))?wl(t[1],t[2],t[3],t[4]):(t=dN.exec(e))?wl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fN.exec(e))?hD(t[1],t[2]/100,t[3]/100,1):(t=hN.exec(e))?hD(t[1],t[2]/100,t[3]/100,t[4]):aD.hasOwnProperty(e)?uD(aD[e]):e==="transparent"?new at(NaN,NaN,NaN,0):null}function uD(e){return new at(e>>16&255,e>>8&255,e&255,1)}function wl(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function mN(e){return e instanceof Es||(e=or(e)),e?(e=e.rgb(),new at(e.r,e.g,e.b,e.opacity)):new at}function ei(e,t,n,r){return arguments.length===1?mN(e):new at(e,t,n,r??1)}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}El(at,ei,lp(Es,{brighter(e){return e=e==null?Il:Math.pow(Il,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at($r(this.r),$r(this.g),$r(this.b),Ml(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dD,formatHex:dD,formatHex8:vN,formatRgb:fD,toString:fD}));function dD(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}`}function vN(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}${Hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function fD(){let e=Ml(this.opacity);return`${e===1?"rgb(":"rgba("}${$r(this.r)}, ${$r(this.g)}, ${$r(this.b)}${e===1?")":`, ${e})`}`}function Ml(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $r(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hr(e){return e=$r(e),(e<16?"0":"")+e.toString(16)}function hD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bt(e,t,n,r)}function gD(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(e instanceof Es||(e=or(e)),!e)return new Bt;if(e instanceof Bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,c=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=c<.5?i+o:2-i-o,s*=60):a=c>0&&c<1?0:s,new Bt(s,a,c,e.opacity)}function mD(e,t,n,r){return arguments.length===1?gD(e):new Bt(e,t,n,r??1)}function Bt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}El(Bt,mD,lp(Es,{brighter(e){return e=e==null?Il:Math.pow(Il,e),new Bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new Bt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(up(e>=240?e-240:e+120,o,r),up(e,o,r),up(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Bt(pD(this.h),bl(this.s),bl(this.l),Ml(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Ml(this.opacity);return`${e===1?"hsl(":"hsla("}${pD(this.h)}, ${bl(this.s)*100}%, ${bl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pD(e){return e=(e||0)%360,e<0?e+360:e}function bl(e){return Math.max(0,Math.min(1,e||0))}function up(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function dp(e,t,n,r,o){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*r+s*o)/6}function vD(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],s=r>0?e[r-1]:2*o-i,a=r<t-1?e[r+2]:2*i-o;return dp((n-r/t)*t,s,o,i,a)}}function yD(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return dp((n-r/t)*t,o,i,s,a)}}var fp=e=>()=>e;function yN(e,t){return function(n){return e+n*t}}function _N(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _D(e){return(e=+e)==1?Sl:function(t,n){return n-t?_N(t,n,e):fp(isNaN(t)?n:t)}}function Sl(e,t){var n=t-e;return n?yN(e,n):fp(isNaN(e)?t:e)}var xl=(function e(t){var n=_D(t);function r(o,i){var s=n((o=ei(o)).r,(i=ei(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=Sl(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=c(u),o.opacity=l(u),o+""}}return r.gamma=e,r})(1);function DD(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),s,a;for(s=0;s<n;++s)a=ei(t[s]),r[s]=a.r||0,o[s]=a.g||0,i[s]=a.b||0;return r=e(r),o=e(o),i=e(i),a.opacity=1,function(c){return a.r=r(c),a.g=o(c),a.b=i(c),a+""}}}var DN=DD(vD),CN=DD(yD);function It(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var pp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hp=new RegExp(pp.source,"g");function EN(e){return function(){return e}}function wN(e){return function(t){return e(t)+""}}function gp(e,t){var n=pp.lastIndex=hp.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=pp.exec(e))&&(o=hp.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,c.push({i:s,x:It(r,o)})),n=hp.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?wN(c[0].x):EN(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)a[(d=c[u]).i]=d.x(l);return a.join("")})}var CD=180/Math.PI,Tl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function mp(e,t,n,r,o,i){var s,a,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),e*r<t*n&&(e=-e,t=-t,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*CD,skewX:Math.atan(c)*CD,scaleX:s,scaleY:a}}var Al;function ED(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Tl:mp(t.a,t.b,t.c,t.d,t.e,t.f)}function wD(e){return e==null?Tl:(Al||(Al=document.createElementNS("http://www.w3.org/2000/svg","g")),Al.setAttribute("transform",e),(e=Al.transform.baseVal.consolidate())?(e=e.matrix,mp(e.a,e.b,e.c,e.d,e.e,e.f)):Tl)}function bD(e,t,n,r){function o(l){return l.length?l.pop()+" ":""}function i(l,u,d,h,f,v){if(l!==d||u!==h){var m=f.push("translate(",null,t,null,n);v.push({i:m-4,x:It(l,d)},{i:m-2,x:It(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function s(l,u,d,h){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:It(l,u)})):u&&d.push(o(d)+"rotate("+u+r)}function a(l,u,d,h){l!==u?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:It(l,u)}):u&&d.push(o(d)+"skewX("+u+r)}function c(l,u,d,h,f,v){if(l!==d||u!==h){var m=f.push(o(f)+"scale(",null,",",null,")");v.push({i:m-4,x:It(l,d)},{i:m-2,x:It(u,h)})}else(d!==1||h!==1)&&f.push(o(f)+"scale("+d+","+h+")")}return function(l,u){var d=[],h=[];return l=e(l),u=e(u),i(l.translateX,l.translateY,u.translateX,u.translateY,d,h),s(l.rotate,u.rotate,d,h),a(l.skewX,u.skewX,d,h),c(l.scaleX,l.scaleY,u.scaleX,u.scaleY,d,h),l=u=null,function(f){for(var v=-1,m=h.length,g;++v<m;)d[(g=h[v]).i]=g.x(f);return d.join("")}}}var vp=bD(ED,"px, ","px)","deg)"),yp=bD(wD,", ",")",")");var bN=1e-12;function ID(e){return((e=Math.exp(e))+1/e)/2}function IN(e){return((e=Math.exp(e))-1/e)/2}function MN(e){return((e=Math.exp(2*e))-1)/(e+1)}var _p=(function e(t,n,r){function o(i,s){var a=i[0],c=i[1],l=i[2],u=s[0],d=s[1],h=s[2],f=u-a,v=d-c,m=f*f+v*v,g,p;if(m<bN)p=Math.log(h/l)/t,g=function(le){return[a+le*f,c+le*v,l*Math.exp(t*le*p)]};else{var b=Math.sqrt(m),A=(h*h-l*l+r*m)/(2*l*n*b),I=(h*h-l*l-r*m)/(2*h*n*b),j=Math.log(Math.sqrt(A*A+1)-A),K=Math.log(Math.sqrt(I*I+1)-I);p=(K-j)/t,g=function(le){var ue=le*p,je=ID(j),de=l/(n*b)*(je*MN(t*ue+j)-IN(j));return[a+de*f,c+de*v,l*je/ID(t*ue+j)]}}return g.duration=p*1e3*t/Math.SQRT2,g}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,c=a*a;return e(s,a,c)},o})(Math.SQRT2,2,4);var ti=0,bs=0,ws=0,SD=1e3,Nl,Is,Rl=0,zr=0,Ol=0,Ms=typeof performance=="object"&&performance.now?performance:Date,xD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xs(){return zr||(xD(SN),zr=Ms.now()+Ol)}function SN(){zr=0}function Ss(){this._call=this._time=this._next=null}Ss.prototype=ni.prototype={constructor:Ss,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?xs():+n)+(t==null?0:+t),!this._next&&Is!==this&&(Is?Is._next=this:Nl=this,Is=this),this._call=e,this._time=n,Dp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dp())}};function ni(e,t,n){var r=new Ss;return r.restart(e,t,n),r}function TD(){xs(),++ti;for(var e=Nl,t;e;)(t=zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ti}function MD(){zr=(Rl=Ms.now())+Ol,ti=bs=0;try{TD()}finally{ti=0,TN(),zr=0}}function xN(){var e=Ms.now(),t=e-Rl;t>SD&&(Ol-=t,Rl=e)}function TN(){for(var e,t=Nl,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Nl=n);Is=e,Dp(r)}function Dp(e){if(!ti){bs&&(bs=clearTimeout(bs));var t=e-zr;t>24?(e<1/0&&(bs=setTimeout(MD,e-Ms.now()-Ol)),ws&&(ws=clearInterval(ws))):(ws||(Rl=Ms.now(),ws=setInterval(xN,SD)),ti=1,xD(MD))}}function kl(e,t,n){var r=new Ss;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var AN=Br("start","end","cancel","interrupt"),NN=[],RD=0,AD=1,Fl=2,Pl=3,ND=4,Ll=5,Ts=6;function ir(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;RN(e,n,{name:t,index:r,group:o,on:AN,tween:NN,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:RD})}function As(e,t){var n=xe(e,t);if(n.state>RD)throw new Error("too late; already scheduled");return n}function Ve(e,t){var n=xe(e,t);if(n.state>Pl)throw new Error("too late; already running");return n}function xe(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function RN(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=ni(i,0,n.time);function i(l){n.state=AD,n.timer.restart(s,n.delay,n.time),n.delay<=l&&s(l-n.delay)}function s(l){var u,d,h,f;if(n.state!==AD)return c();for(u in r)if(f=r[u],f.name===n.name){if(f.state===Pl)return kl(s);f.state===ND?(f.state=Ts,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=Ts,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(kl(function(){n.state===Pl&&(n.state=ND,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=Fl,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Fl){for(n.state=Pl,o=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=f);o.length=d+1}}function a(l){for(var u=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=Ll,1),d=-1,h=o.length;++d<h;)o[d].call(e,u);n.state===Ll&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=Ts,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function sr(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>Fl&&r.state<Ll,r.state=Ts,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function OD(e){return this.each(function(){sr(this,e)})}function ON(e,t){var n,r;return function(){var o=Ve(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function kN(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=Ve(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},c=0,l=o.length;c<l;++c)if(o[c].name===t){o[c]=a;break}c===l&&o.push(a)}i.tween=o}}function kD(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=xe(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?ON:kN)(n,e,t))}function ri(e,t,n){var r=e._id;return e.each(function(){var o=Ve(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return xe(o,r).value[t]}}function Vl(e,t){var n;return(typeof t=="number"?It:t instanceof or?xl:(n=or(t))?(t=n,xl):gp)(e,t)}function PN(e){return function(){this.removeAttribute(e)}}function FN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function LN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function VN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function jN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function BN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function PD(e,t){var n=xn(e),r=n==="transform"?yp:Vl;return this.attrTween(e,typeof t=="function"?(n.local?BN:jN)(n,r,ri(this,"attr."+e,t)):t==null?(n.local?FN:PN)(n):(n.local?VN:LN)(n,r,t))}function UN(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function HN(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function $N(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&HN(e,i)),n}return o._value=t,o}function zN(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&UN(e,i)),n}return o._value=t,o}function FD(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=xn(e);return this.tween(n,(r.local?$N:zN)(r,t))}function GN(e,t){return function(){As(this,e).delay=+t.apply(this,arguments)}}function WN(e,t){return t=+t,function(){As(this,e).delay=t}}function LD(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?GN:WN)(t,e)):xe(this.node(),t).delay}function qN(e,t){return function(){Ve(this,e).duration=+t.apply(this,arguments)}}function ZN(e,t){return t=+t,function(){Ve(this,e).duration=t}}function VD(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?qN:ZN)(t,e)):xe(this.node(),t).duration}function YN(e,t){if(typeof t!="function")throw new Error;return function(){Ve(this,e).ease=t}}function jD(e){var t=this._id;return arguments.length?this.each(YN(t,e)):xe(this.node(),t).ease}function QN(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ve(this,e).ease=n}}function BD(e){if(typeof e!="function")throw new Error;return this.each(QN(this._id,e))}function UD(e){typeof e!="function"&&(e=ys(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new Ke(r,this._parents,this._name,this._id)}function HD(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var c=t[a],l=n[a],u=c.length,d=s[a]=new Array(u),h,f=0;f<u;++f)(h=c[f]||l[f])&&(d[f]=h);for(;a<r;++a)s[a]=t[a];return new Ke(s,this._parents,this._name,this._id)}function KN(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function XN(e,t,n){var r,o,i=KN(t)?As:Ve;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function $D(e,t){var n=this._id;return arguments.length<2?xe(this.node(),n).on.on(e):this.each(XN(n,e,t))}function JN(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function zD(){return this.on("end.remove",JN(this._id))}function GD(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ur(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],c=a.length,l=i[s]=new Array(c),u,d,h=0;h<c;++h)(u=a[h])&&(d=e.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d,ir(l[h],t,n,h,l,xe(u,n)));return new Ke(i,this._parents,t,n)}function WD(e){var t=this._name,n=this._id;typeof e!="function"&&(e=vs(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var c=r[a],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var h=e.call(u,u.__data__,d,c),f,v=xe(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&ir(f,t,n,m,h,v);i.push(h),s.push(u)}return new Ke(i,s,t,n)}var eR=Tn.prototype.constructor;function qD(){return new eR(this._groups,this._parents)}function tR(e,t){var n,r,o;return function(){var i=rr(this,e),s=(this.style.removeProperty(e),rr(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function ZD(e){return function(){this.style.removeProperty(e)}}function nR(e,t,n){var r,o=n+"",i;return function(){var s=rr(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function rR(e,t,n){var r,o,i;return function(){var s=rr(this,e),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(e),rr(this,e))),s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a))}}function oR(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var c=Ve(this,e),l=c.on,u=c.value[i]==null?a||(a=ZD(t)):void 0;(l!==n||o!==u)&&(r=(n=l).copy()).on(s,o=u),c.on=r}}function YD(e,t,n){var r=(e+="")=="transform"?vp:Vl;return t==null?this.styleTween(e,tR(e,r)).on("end.style."+e,ZD(e)):typeof t=="function"?this.styleTween(e,rR(e,r,ri(this,"style."+e,t))).each(oR(this._id,e)):this.styleTween(e,nR(e,r,t),n).on("end.style."+e,null)}function iR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sR(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&iR(e,s,n)),r}return i._value=t,i}function QD(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,sR(e,t,n??""))}function aR(e){return function(){this.textContent=e}}function cR(e){return function(){var t=e(this);this.textContent=t??""}}function KD(e){return this.tween("text",typeof e=="function"?cR(ri(this,"text",e)):aR(e==null?"":e+""))}function lR(e){return function(t){this.textContent=e.call(this,t)}}function uR(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&lR(o)),t}return r._value=e,r}function XD(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,uR(e))}function JD(){for(var e=this._name,t=this._id,n=jl(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)if(c=s[l]){var u=xe(c,t);ir(c,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ke(r,this._parents,e,n)}function eC(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},c={value:function(){--o===0&&i()}};n.each(function(){var l=Ve(this,r),u=l.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(c)),l.on=t}),o===0&&i()})}var dR=0;function Ke(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function tC(e){return Tn().transition(e)}function jl(){return++dR}var Nn=Tn.prototype;Ke.prototype=tC.prototype={constructor:Ke,select:GD,selectAll:WD,selectChild:Nn.selectChild,selectChildren:Nn.selectChildren,filter:UD,merge:HD,selection:qD,transition:JD,call:Nn.call,nodes:Nn.nodes,node:Nn.node,size:Nn.size,empty:Nn.empty,each:Nn.each,on:$D,attr:PD,attrTween:FD,style:YD,styleTween:QD,text:KD,textTween:XD,remove:zD,tween:kD,delay:LD,duration:VD,ease:jD,easeVarying:BD,end:eC,[Symbol.iterator]:Nn[Symbol.iterator]};function Bl(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var fR={time:null,delay:0,duration:250,ease:Bl};function hR(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function nC(e){var t,n;e instanceof Ke?(t=e._id,e=e._name):(t=jl(),(n=fR).time=xs(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&ir(c,e,t,l,s,n||hR(c,t));return new Ke(r,this._parents,e,t)}Tn.prototype.interrupt=OD;Tn.prototype.transition=nC;var{abs:a7,max:c7,min:l7}=Math;function rC(e){return[+e[0],+e[1]]}function pR(e){return[rC(e[0]),rC(e[1])]}var u7={name:"x",handles:["w","e"].map(Cp),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},d7={name:"y",handles:["n","s"].map(Cp),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},f7={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Cp),input:function(e){return e==null?null:pR(e)},output:function(e){return e}};function Cp(e){return{type:e}}function Ep(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function o(){var i,s=n.length,a,c=0,l=0;for(i=0;i<s;++i)a=n[i],c+=a.x,l+=a.y;for(c=(c/s-e)*r,l=(l/s-t)*r,i=0;i<s;++i)a=n[i],a.x-=c,a.y-=l}return o.initialize=function(i){n=i},o.x=function(i){return arguments.length?(e=+i,o):e},o.y=function(i){return arguments.length?(t=+i,o):t},o.strength=function(i){return arguments.length?(r=+i,o):r},o}function oC(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return iC(this.cover(t,n),t,n,e)}function iC(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i=e._root,s={data:r},a=e._x0,c=e._y0,l=e._x1,u=e._y1,d,h,f,v,m,g,p,b;if(!i)return e._root=s,e;for(;i.length;)if((m=t>=(d=(a+l)/2))?a=d:l=d,(g=n>=(h=(c+u)/2))?c=h:u=h,o=i,!(i=i[p=g<<1|m]))return o[p]=s,e;if(f=+e._x.call(null,i.data),v=+e._y.call(null,i.data),t===f&&n===v)return s.next=i,o?o[p]=s:e._root=s,e;do o=o?o[p]=new Array(4):e._root=new Array(4),(m=t>=(d=(a+l)/2))?a=d:l=d,(g=n>=(h=(c+u)/2))?c=h:u=h;while((p=g<<1|m)===(b=(v>=h)<<1|f>=d));return o[b]=i,o[p]=s,e}function sC(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=o,a[n]=i,o<c&&(c=o),o>u&&(u=o),i<l&&(l=i),i>d&&(d=i));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)iC(this,s[n],a[n],e[n]);return this}function aC(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var s=o-n||1,a=this._root,c,l;n>e||e>=o||r>t||t>=i;)switch(l=(t<r)<<1|e<n,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=n+s,i=r+s;break;case 1:n=o-s,i=r+s;break;case 2:o=n+s,r=i-s;break;case 3:n=o-s,r=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this}function cC(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function lC(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Ne(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function uC(e,t,n){var r,o=this._x0,i=this._y0,s,a,c,l,u=this._x1,d=this._y1,h=[],f=this._root,v,m;for(f&&h.push(new Ne(f,o,i,u,d)),n==null?n=1/0:(o=e-n,i=t-n,u=e+n,d=t+n,n*=n);v=h.pop();)if(!(!(f=v.node)||(s=v.x0)>u||(a=v.y0)>d||(c=v.x1)<o||(l=v.y1)<i))if(f.length){var g=(s+c)/2,p=(a+l)/2;h.push(new Ne(f[3],g,p,c,l),new Ne(f[2],s,p,g,l),new Ne(f[1],g,a,c,p),new Ne(f[0],s,a,g,p)),(m=(t>=p)<<1|e>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-m],h[h.length-1-m]=v)}else{var b=e-+this._x.call(null,f.data),A=t-+this._y.call(null,f.data),I=b*b+A*A;if(I<n){var j=Math.sqrt(n=I);o=e-j,i=t-j,u=e+j,d=t+j,r=f.data}}return r}function dC(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,o,i,s=this._x0,a=this._y0,c=this._x1,l=this._y1,u,d,h,f,v,m,g,p;if(!n)return this;if(n.length)for(;;){if((v=u>=(h=(s+c)/2))?s=h:c=h,(m=d>=(f=(a+l)/2))?a=f:l=f,t=n,!(n=n[g=m<<1|v]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,p=g)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[g]=i:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[p]=n:this._root=n),this):(this._root=i,this)}function fC(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function hC(){return this._root}function pC(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function gC(e){var t=[],n,r=this._root,o,i,s,a,c;for(r&&t.push(new Ne(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,i=n.x0,s=n.y0,a=n.x1,c=n.y1)&&r.length){var l=(i+a)/2,u=(s+c)/2;(o=r[3])&&t.push(new Ne(o,l,u,a,c)),(o=r[2])&&t.push(new Ne(o,i,u,l,c)),(o=r[1])&&t.push(new Ne(o,l,s,a,u)),(o=r[0])&&t.push(new Ne(o,i,s,l,u))}return this}function mC(e){var t=[],n=[],r;for(this._root&&t.push(new Ne(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var o=r.node;if(o.length){var i,s=r.x0,a=r.y0,c=r.x1,l=r.y1,u=(s+c)/2,d=(a+l)/2;(i=o[0])&&t.push(new Ne(i,s,a,u,d)),(i=o[1])&&t.push(new Ne(i,u,a,c,d)),(i=o[2])&&t.push(new Ne(i,s,d,u,l)),(i=o[3])&&t.push(new Ne(i,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function vC(e){return e[0]}function yC(e){return arguments.length?(this._x=e,this):this._x}function _C(e){return e[1]}function DC(e){return arguments.length?(this._y=e,this):this._y}function Gr(e,t,n){var r=new wp(t??vC,n??_C,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function wp(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function CC(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Xe=Gr.prototype=wp.prototype;Xe.copy=function(){var e=new wp(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=CC(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(r=t.source[o])&&(r.length?n.push({source:r,target:t.target[o]=new Array(4)}):t.target[o]=CC(r));return e};Xe.add=oC;Xe.addAll=sC;Xe.cover=aC;Xe.data=cC;Xe.extent=lC;Xe.find=uC;Xe.remove=dC;Xe.removeAll=fC;Xe.root=hC;Xe.size=pC;Xe.visit=gC;Xe.visitAfter=mC;Xe.x=yC;Xe.y=DC;function cn(e){return function(){return e}}function Ut(e){return(e()-.5)*1e-6}function gR(e){return e.x+e.vx}function mR(e){return e.y+e.vy}function bp(e){var t,n,r,o=1,i=1;typeof e!="function"&&(e=cn(e==null?1:+e));function s(){for(var l,u=t.length,d,h,f,v,m,g,p=0;p<i;++p)for(d=Gr(t,gR,mR).visitAfter(a),l=0;l<u;++l)h=t[l],m=n[h.index],g=m*m,f=h.x+h.vx,v=h.y+h.vy,d.visit(b);function b(A,I,j,K,le){var ue=A.data,je=A.r,de=m+je;if(ue){if(ue.index>h.index){var $t=f-ue.x-ue.vx,zt=v-ue.y-ue.vy,Mt=$t*$t+zt*zt;Mt<de*de&&($t===0&&($t=Ut(r),Mt+=$t*$t),zt===0&&(zt=Ut(r),Mt+=zt*zt),Mt=(de-(Mt=Math.sqrt(Mt)))/Mt*o,h.vx+=($t*=Mt)*(de=(je*=je)/(g+je)),h.vy+=(zt*=Mt)*de,ue.vx-=$t*(de=1-de),ue.vy-=zt*de)}return}return I>f+de||K<f-de||j>v+de||le<v-de}}function a(l){if(l.data)return l.r=n[l.data.index];for(var u=l.r=0;u<4;++u)l[u]&&l[u].r>l.r&&(l.r=l[u].r)}function c(){if(t){var l,u=t.length,d;for(n=new Array(u),l=0;l<u;++l)d=t[l],n[d.index]=+e(d,l,t)}}return s.initialize=function(l,u){t=l,r=u,c()},s.iterations=function(l){return arguments.length?(i=+l,s):i},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:cn(+l),c(),s):e},s}function vR(e){return e.index}function EC(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Ip(e){var t=vR,n=d,r,o=cn(30),i,s,a,c,l,u=1;e==null&&(e=[]);function d(g){return 1/Math.min(a[g.source.index],a[g.target.index])}function h(g){for(var p=0,b=e.length;p<u;++p)for(var A=0,I,j,K,le,ue,je,de;A<b;++A)I=e[A],j=I.source,K=I.target,le=K.x+K.vx-j.x-j.vx||Ut(l),ue=K.y+K.vy-j.y-j.vy||Ut(l),je=Math.sqrt(le*le+ue*ue),je=(je-i[A])/je*g*r[A],le*=je,ue*=je,K.vx-=le*(de=c[A]),K.vy-=ue*de,j.vx+=le*(de=1-de),j.vy+=ue*de}function f(){if(s){var g,p=s.length,b=e.length,A=new Map(s.map((j,K)=>[t(j,K,s),j])),I;for(g=0,a=new Array(p);g<b;++g)I=e[g],I.index=g,typeof I.source!="object"&&(I.source=EC(A,I.source)),typeof I.target!="object"&&(I.target=EC(A,I.target)),a[I.source.index]=(a[I.source.index]||0)+1,a[I.target.index]=(a[I.target.index]||0)+1;for(g=0,c=new Array(b);g<b;++g)I=e[g],c[g]=a[I.source.index]/(a[I.source.index]+a[I.target.index]);r=new Array(b),v(),i=new Array(b),m()}}function v(){if(s)for(var g=0,p=e.length;g<p;++g)r[g]=+n(e[g],g,e)}function m(){if(s)for(var g=0,p=e.length;g<p;++g)i[g]=+o(e[g],g,e)}return h.initialize=function(g,p){s=g,l=p,f()},h.links=function(g){return arguments.length?(e=g,f(),h):e},h.id=function(g){return arguments.length?(t=g,h):t},h.iterations=function(g){return arguments.length?(u=+g,h):u},h.strength=function(g){return arguments.length?(n=typeof g=="function"?g:cn(+g),v(),h):n},h.distance=function(g){return arguments.length?(o=typeof g=="function"?g:cn(+g),m(),h):o},h}function wC(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function bC(e){return e.x}function IC(e){return e.y}var yR=10,_R=Math.PI*(3-Math.sqrt(5));function Mp(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,s=.6,a=new Map,c=ni(d),l=Br("tick","end"),u=wC();e==null&&(e=[]);function d(){h(),l.call("tick",t),n<r&&(c.stop(),l.call("end",t))}function h(m){var g,p=e.length,b;m===void 0&&(m=1);for(var A=0;A<m;++A)for(n+=(i-n)*o,a.forEach(function(I){I(n)}),g=0;g<p;++g)b=e[g],b.fx==null?b.x+=b.vx*=s:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=s:(b.y=b.fy,b.vy=0);return t}function f(){for(var m=0,g=e.length,p;m<g;++m){if(p=e[m],p.index=m,p.fx!=null&&(p.x=p.fx),p.fy!=null&&(p.y=p.fy),isNaN(p.x)||isNaN(p.y)){var b=yR*Math.sqrt(.5+m),A=m*_R;p.x=b*Math.cos(A),p.y=b*Math.sin(A)}(isNaN(p.vx)||isNaN(p.vy))&&(p.vx=p.vy=0)}}function v(m){return m.initialize&&m.initialize(e,u),m}return f(),t={tick:h,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(m){return arguments.length?(e=m,f(),a.forEach(v),t):e},alpha:function(m){return arguments.length?(n=+m,t):n},alphaMin:function(m){return arguments.length?(r=+m,t):r},alphaDecay:function(m){return arguments.length?(o=+m,t):+o},alphaTarget:function(m){return arguments.length?(i=+m,t):i},velocityDecay:function(m){return arguments.length?(s=1-m,t):1-s},randomSource:function(m){return arguments.length?(u=m,a.forEach(v),t):u},force:function(m,g){return arguments.length>1?(g==null?a.delete(m):a.set(m,v(g)),t):a.get(m)},find:function(m,g,p){var b=0,A=e.length,I,j,K,le,ue;for(p==null?p=1/0:p*=p,b=0;b<A;++b)le=e[b],I=m-le.x,j=g-le.y,K=I*I+j*j,K<p&&(ue=le,p=K);return ue},on:function(m,g){return arguments.length>1?(l.on(m,g),t):l.on(m)}}}function Sp(){var e,t,n,r,o=cn(-30),i,s=1,a=1/0,c=.81;function l(f){var v,m=e.length,g=Gr(e,bC,IC).visitAfter(d);for(r=f,v=0;v<m;++v)t=e[v],g.visit(h)}function u(){if(e){var f,v=e.length,m;for(i=new Array(v),f=0;f<v;++f)m=e[f],i[m.index]=+o(m,f,e)}}function d(f){var v=0,m,g,p=0,b,A,I;if(f.length){for(b=A=I=0;I<4;++I)(m=f[I])&&(g=Math.abs(m.value))&&(v+=m.value,p+=g,b+=g*m.x,A+=g*m.y);f.x=b/p,f.y=A/p}else{m=f,m.x=m.data.x,m.y=m.data.y;do v+=i[m.data.index];while(m=m.next)}f.value=v}function h(f,v,m,g){if(!f.value)return!0;var p=f.x-t.x,b=f.y-t.y,A=g-v,I=p*p+b*b;if(A*A/c<I)return I<a&&(p===0&&(p=Ut(n),I+=p*p),b===0&&(b=Ut(n),I+=b*b),I<s&&(I=Math.sqrt(s*I)),t.vx+=p*f.value*r/I,t.vy+=b*f.value*r/I),!0;if(f.length||I>=a)return;(f.data!==t||f.next)&&(p===0&&(p=Ut(n),I+=p*p),b===0&&(b=Ut(n),I+=b*b),I<s&&(I=Math.sqrt(s*I)));do f.data!==t&&(A=i[f.data.index]*r/I,t.vx+=p*A,t.vy+=b*A);while(f=f.next)}return l.initialize=function(f,v){e=f,n=v,u()},l.strength=function(f){return arguments.length?(o=typeof f=="function"?f:cn(+f),u(),l):o},l.distanceMin=function(f){return arguments.length?(s=f*f,l):Math.sqrt(s)},l.distanceMax=function(f){return arguments.length?(a=f*f,l):Math.sqrt(a)},l.theta=function(f){return arguments.length?(c=f*f,l):Math.sqrt(c)},l}var Ns=e=>()=>e;function xp(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Ht(e,t,n){this.k=e,this.x=t,this.y=n}Ht.prototype={constructor:Ht,scale:function(e){return e===1?this:new Ht(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ht(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Wr=new Ht(1,0,0);Tp.prototype=Ht.prototype;function Tp(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wr;return e.__zoom}function Ul(e){e.stopImmediatePropagation()}function oi(e){e.preventDefault(),e.stopImmediatePropagation()}function DR(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function CR(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function MC(){return this.__zoom||Wr}function ER(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function wR(){return navigator.maxTouchPoints||"ontouchstart"in this}function bR(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function Ap(){var e=DR,t=CR,n=bR,r=ER,o=wR,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=_p,l=Br("start","zoom","end"),u,d,h,f=500,v=150,m=0,g=10;function p(y){y.property("__zoom",MC).on("wheel.zoom",ue,{passive:!1}).on("mousedown.zoom",je).on("dblclick.zoom",de).filter(o).on("touchstart.zoom",$t).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",Mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(y,R,D,O){var $=y.selection?y.selection():y;$.property("__zoom",MC),y!==$?j(y,R,D,O):$.interrupt().each(function(){K(this,arguments).event(O).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},p.scaleBy=function(y,R,D,O){p.scaleTo(y,function(){var $=this.__zoom.k,q=typeof R=="function"?R.apply(this,arguments):R;return $*q},D,O)},p.scaleTo=function(y,R,D,O){p.transform(y,function(){var $=t.apply(this,arguments),q=this.__zoom,X=D==null?I($):typeof D=="function"?D.apply(this,arguments):D,ce=q.invert(X),ge=typeof R=="function"?R.apply(this,arguments):R;return n(A(b(q,ge),X,ce),$,s)},D,O)},p.translateBy=function(y,R,D,O){p.transform(y,function(){return n(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),s)},null,O)},p.translateTo=function(y,R,D,O,$){p.transform(y,function(){var q=t.apply(this,arguments),X=this.__zoom,ce=O==null?I(q):typeof O=="function"?O.apply(this,arguments):O;return n(Wr.translate(ce[0],ce[1]).scale(X.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof D=="function"?-D.apply(this,arguments):-D),q,s)},O,$)};function b(y,R){return R=Math.max(i[0],Math.min(i[1],R)),R===y.k?y:new Ht(R,y.x,y.y)}function A(y,R,D){var O=R[0]-D[0]*y.k,$=R[1]-D[1]*y.k;return O===y.x&&$===y.y?y:new Ht(y.k,O,$)}function I(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function j(y,R,D,O){y.on("start.zoom",function(){K(this,arguments).event(O).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(O).end()}).tween("zoom",function(){var $=this,q=arguments,X=K($,q).event(O),ce=t.apply($,q),ge=D==null?I(ce):typeof D=="function"?D.apply($,q):D,Gt=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),Re=$.__zoom,St=typeof R=="function"?R.apply($,q):R,ln=c(Re.invert(ge).concat(Gt/Re.k),St.invert(ge).concat(Gt/St.k));return function(xt){if(xt===1)xt=St;else{var un=ln(xt),Zl=Gt/un[2];xt=new Ht(Zl,ge[0]-un[0]*Zl,ge[1]-un[1]*Zl)}X.zoom(null,xt)}})}function K(y,R,D){return!D&&y.__zooming||new le(y,R)}function le(y,R){this.that=y,this.args=R,this.active=0,this.sourceEvent=null,this.extent=t.apply(y,R),this.taps=0}le.prototype={event:function(y){return y&&(this.sourceEvent=y),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(y,R){return this.mouse&&y!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&y!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&y!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(y){var R=bt(this.that).datum();l.call(y,this.that,new xp(y,{sourceEvent:this.sourceEvent,target:p,type:y,transform:this.that.__zoom,dispatch:l}),R)}};function ue(y,...R){if(!e.apply(this,arguments))return;var D=K(this,R).event(y),O=this.__zoom,$=Math.max(i[0],Math.min(i[1],O.k*Math.pow(2,r.apply(this,arguments)))),q=An(y);if(D.wheel)(D.mouse[0][0]!==q[0]||D.mouse[0][1]!==q[1])&&(D.mouse[1]=O.invert(D.mouse[0]=q)),clearTimeout(D.wheel);else{if(O.k===$)return;D.mouse=[q,O.invert(q)],sr(this),D.start()}oi(y),D.wheel=setTimeout(X,v),D.zoom("mouse",n(A(b(O,$),D.mouse[0],D.mouse[1]),D.extent,s));function X(){D.wheel=null,D.end()}}function je(y,...R){if(h||!e.apply(this,arguments))return;var D=y.currentTarget,O=K(this,R,!0).event(y),$=bt(y.view).on("mousemove.zoom",ge,!0).on("mouseup.zoom",Gt,!0),q=An(y,D),X=y.clientX,ce=y.clientY;ap(y.view),Ul(y),O.mouse=[q,this.__zoom.invert(q)],sr(this),O.start();function ge(Re){if(oi(Re),!O.moved){var St=Re.clientX-X,ln=Re.clientY-ce;O.moved=St*St+ln*ln>m}O.event(Re).zoom("mouse",n(A(O.that.__zoom,O.mouse[0]=An(Re,D),O.mouse[1]),O.extent,s))}function Gt(Re){$.on("mousemove.zoom mouseup.zoom",null),cp(Re.view,O.moved),oi(Re),O.event(Re).end()}}function de(y,...R){if(e.apply(this,arguments)){var D=this.__zoom,O=An(y.changedTouches?y.changedTouches[0]:y,this),$=D.invert(O),q=D.k*(y.shiftKey?.5:2),X=n(A(b(D,q),O,$),t.apply(this,R),s);oi(y),a>0?bt(this).transition().duration(a).call(j,X,O,y):bt(this).call(p.transform,X,O,y)}}function $t(y,...R){if(e.apply(this,arguments)){var D=y.touches,O=D.length,$=K(this,R,y.changedTouches.length===O).event(y),q,X,ce,ge;for(Ul(y),X=0;X<O;++X)ce=D[X],ge=An(ce,this),ge=[ge,this.__zoom.invert(ge),ce.identifier],$.touch0?!$.touch1&&$.touch0[2]!==ge[2]&&($.touch1=ge,$.taps=0):($.touch0=ge,q=!0,$.taps=1+!!u);u&&(u=clearTimeout(u)),q&&($.taps<2&&(d=ge[0],u=setTimeout(function(){u=null},f)),sr(this),$.start())}}function zt(y,...R){if(this.__zooming){var D=K(this,R).event(y),O=y.changedTouches,$=O.length,q,X,ce,ge;for(oi(y),q=0;q<$;++q)X=O[q],ce=An(X,this),D.touch0&&D.touch0[2]===X.identifier?D.touch0[0]=ce:D.touch1&&D.touch1[2]===X.identifier&&(D.touch1[0]=ce);if(X=D.that.__zoom,D.touch1){var Gt=D.touch0[0],Re=D.touch0[1],St=D.touch1[0],ln=D.touch1[1],xt=(xt=St[0]-Gt[0])*xt+(xt=St[1]-Gt[1])*xt,un=(un=ln[0]-Re[0])*un+(un=ln[1]-Re[1])*un;X=b(X,Math.sqrt(xt/un)),ce=[(Gt[0]+St[0])/2,(Gt[1]+St[1])/2],ge=[(Re[0]+ln[0])/2,(Re[1]+ln[1])/2]}else if(D.touch0)ce=D.touch0[0],ge=D.touch0[1];else return;D.zoom("touch",n(A(X,ce,ge),D.extent,s))}}function Mt(y,...R){if(this.__zooming){var D=K(this,R).event(y),O=y.changedTouches,$=O.length,q,X;for(Ul(y),h&&clearTimeout(h),h=setTimeout(function(){h=null},f),q=0;q<$;++q)X=O[q],D.touch0&&D.touch0[2]===X.identifier?delete D.touch0:D.touch1&&D.touch1[2]===X.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(X=An(X,this),Math.hypot(d[0]-X[0],d[1]-X[1])<g)){var ce=bt(this).on("dblclick.zoom");ce&&ce.apply(this,arguments)}}}return p.wheelDelta=function(y){return arguments.length?(r=typeof y=="function"?y:Ns(+y),p):r},p.filter=function(y){return arguments.length?(e=typeof y=="function"?y:Ns(!!y),p):e},p.touchable=function(y){return arguments.length?(o=typeof y=="function"?y:Ns(!!y),p):o},p.extent=function(y){return arguments.length?(t=typeof y=="function"?y:Ns([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),p):t},p.scaleExtent=function(y){return arguments.length?(i[0]=+y[0],i[1]=+y[1],p):[i[0],i[1]]},p.translateExtent=function(y){return arguments.length?(s[0][0]=+y[0][0],s[1][0]=+y[1][0],s[0][1]=+y[0][1],s[1][1]=+y[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(y){return arguments.length?(n=y,p):n},p.duration=function(y){return arguments.length?(a=+y,p):a},p.interpolate=function(y){return arguments.length?(c=y,p):c},p.on=function(){var y=l.on.apply(l,arguments);return y===l?p:y},p.clickDistance=function(y){return arguments.length?(m=(y=+y)*y,p):Math.sqrt(m)},p.tapDistance=function(y){return arguments.length?(g=+y,p):g},p}var MR=["commitGraph"],Hl=class e{svgElement;commits=[];colorPalette;commitClick=new ne;svg;g;zoom;observer=null;zoomLevel=1;ngAfterViewInit(){this.initializeGraph(),this.setupDarkModeObserver(),this.setupKeyboardShortcuts()}ngOnChanges(t){t.commits&&this.svg&&this.renderGraph()}ngOnDestroy(){this.observer&&this.observer.disconnect(),document.removeEventListener("keydown",this.handleKeyDown)}zoomIn(){this.zoom.scaleBy(this.svg.transition().duration(300),1.3)}zoomOut(){this.zoom.scaleBy(this.svg.transition().duration(300),1/1.3)}resetZoom(){this.svg.transition().duration(300).call(this.zoom.transform,Wr)}setupKeyboardShortcuts(){this.handleKeyDown=this.handleKeyDown.bind(this),document.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){if(!(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement))switch(t.key){case"+":case"=":t.preventDefault(),this.zoomIn();break;case"-":t.preventDefault(),this.zoomOut();break;case"0":t.preventDefault(),this.resetZoom();break}}initializeGraph(){this.svg=bt(this.svgElement.nativeElement),this.g=this.svg.append("g"),this.zoom=Ap().scaleExtent([.1,5]).on("zoom",t=>{this.zoomLevel=t.transform.k,this.g.attr("transform",t.transform)}),this.svg.call(this.zoom),this.renderGraph()}renderGraph(){if(!this.commits.length)return;this.g.selectAll("*").remove();let t=this.svgElement.nativeElement.getBoundingClientRect().width,n=600,r={top:20,right:20,bottom:20,left:20},o=this.getGraphColors(),{nodes:i,links:s,branches:a}=this.createGitGraphStructure(),c=Mp(i).force("link",Ip(s).id(d=>d.id).distance(100)).force("charge",Sp().strength(-300)).force("center",Ep(t/2,n/2)).force("collision",bp().radius(30)),l=this.g.selectAll(".branch-group").data(a).enter().append("g").attr("class","branch-group");l.selectAll(".branch-line").data(d=>d.links).enter().append("line").attr("class","branch-line").attr("stroke",(d,h)=>this.getBranchColor(d.branch,o)).attr("stroke-width",3).attr("opacity",.7),this.g.selectAll(".link").data(s).enter().append("line").attr("class","link").attr("stroke",o.link).attr("stroke-width",2).attr("opacity",.5);let u=this.g.selectAll(".commit-node").data(i).enter().append("g").attr("class","commit-node").style("cursor","pointer");u.append("circle").attr("r",10).attr("fill",d=>this.getNodeColor(d,o)).attr("stroke",o.nodeStroke).attr("stroke-width",2),u.append("text").attr("text-anchor","middle").attr("dy",25).attr("fill",o.text).attr("class","text-xs").text(d=>d.commit.hash.substring(0,6)),u.append("title").text(d=>`${d.commit.message}
6
+ ${d.commit.author}
7
+ ${this.formatDate(d.commit.date)}`),u.on("click",(d,h)=>{this.commitClick.emit(h.commit)}),c.on("tick",()=>{l.selectAll(".branch-line").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),this.g.selectAll(".link").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),u.attr("transform",d=>`translate(${d.x},${d.y})`)})}getGraphColors(){let t=document.documentElement.classList.contains("dark");return console.log("Graph colors - Dark mode:",t),this.colorPalette?{link:this.colorPalette.colors.link,nodeFill:this.colorPalette.colors.nodeFill,nodeStroke:this.colorPalette.colors.nodeStroke,text:this.colorPalette.colors.graphText}:t?{link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#9ca3af"}:{link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#6b7280"}}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&this.svg&&this.renderGraph()})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}createGitGraphStructure(){let t=this.commits.map((s,a)=>({id:s.hash,commit:s,branch:s.branches[0]||"main",index:a,isMerge:s.parents&&s.parents.length>1,isBranch:s.branches.length>0})),n=[],r=[],o=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"];for(let s=1;s<t.length;s++){let a=t[s],c=t[s-1];n.push({source:c.id,target:a.id,branch:a.branch})}let i=new Map;return t.forEach(s=>{let a=s.branch;i.has(a)||i.set(a,[]),i.get(a).push(s)}),i.forEach((s,a)=>{let c=[];for(let l=1;l<s.length;l++)c.push({source:s[l-1],target:s[l],branch:a});r.push({name:a,links:c,color:o[r.length%o.length]})}),{nodes:t,links:n,branches:r}}getBranchColor(t,n){let r=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],o=t.charCodeAt(0)%r.length;return r[o]}getNodeColor(t,n){return t.isMerge?"#8b5cf6":t.isBranch?"#10b981":n.nodeFill}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&Bf(MR,7),n&2){let o;Uf(o=Hf())&&(r.svgElement=o.first)}},inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},features:[nn],decls:18,vars:1,consts:[["commitGraph",""],[1,"graph-container"],[1,"zoom-controls"],["title","Zoom In (+ or =)",1,"zoom-btn",3,"click"],["width","16","height","16","viewBox","0 0 24 24","fill","currentColor"],["d","M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"],["title","Zoom Out (-)",1,"zoom-btn",3,"click"],["d","M19 13H5v-2h14v2z"],["title","Reset Zoom (0)",1,"zoom-btn",3,"click"],["d","M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"],["title","Current zoom level",1,"zoom-level"],[1,"zoom-instructions"],["width","100%","height","600"]],template:function(n,r){if(n&1){let o=Dt();_t(0,"div",1)(1,"div",2)(2,"button",3),So("click",function(){return me(o),ve(r.zoomIn())}),kt(),_t(3,"svg",4),Rr(4,"path",5),on()(),Wn(),_t(5,"button",6),So("click",function(){return me(o),ve(r.zoomOut())}),kt(),_t(6,"svg",4),Rr(7,"path",7),on()(),Wn(),_t(8,"button",8),So("click",function(){return me(o),ve(r.resetZoom())}),kt(),_t(9,"svg",4),Rr(10,"path",9),on()(),Wn(),_t(11,"span",10),T(12),on()(),_t(13,"div",11)(14,"span"),T(15,"Use mouse wheel to zoom \u2022 Drag to pan \u2022 Click commits for details"),on()(),kt(),Rr(16,"svg",12,0),on()}n&2&&(E(12),Se("",(r.zoomLevel*100).toFixed(0),"%"))},dependencies:[it],styles:[".graph-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem;transition:background-color .2s ease;position:relative}.zoom-controls[_ngcontent-%COMP%]{position:absolute;top:1rem;right:1rem;display:flex;align-items:center;gap:.5rem;z-index:10;background-color:#ffffffe6;padding:.5rem;border-radius:.375rem;box-shadow:0 2px 4px #0000001a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.zoom-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#fff;color:#374151;cursor:pointer;transition:all .2s ease}.zoom-btn[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;border-color:#9ca3af}.zoom-btn[_ngcontent-%COMP%]:active{background-color:#e5e7eb}.zoom-level[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#374151;min-width:3rem;text-align:center}.zoom-instructions[_ngcontent-%COMP%]{position:absolute;bottom:1rem;left:1rem;background-color:#ffffffe6;padding:.5rem .75rem;border-radius:.375rem;box-shadow:0 2px 4px #0000001a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:.75rem;color:#6b7280;z-index:10}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d}.dark[_ngcontent-%COMP%] .zoom-controls[_ngcontent-%COMP%]{background-color:#2d2d2de6;border:1px solid #404040}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]{background-color:#404040;border-color:#555;color:#e0e0e0}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]:hover{background-color:#555;border-color:#666}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]:active{background-color:#666}.dark[_ngcontent-%COMP%] .zoom-level[_ngcontent-%COMP%]{color:#e0e0e0}.dark[_ngcontent-%COMP%] .zoom-instructions[_ngcontent-%COMP%]{background-color:#2d2d2de6;color:#9ca3af;border:1px solid #404040}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}.commit-node[_ngcontent-%COMP%]{cursor:pointer;transition:all .2s ease}.commit-node[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.commit-node[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{transition:all .2s ease}.commit-node[_ngcontent-%COMP%]:hover circle[_ngcontent-%COMP%]{stroke-width:3px}"]})};function SR(e,t){if(e&1){let n=Dt();w(0,"div",22)(1,"span",23),T(2),C(),w(3,"button",24),Q("click",function(){let o=me(n).$implicit,i=ie(2);return ve(i.onFileClick(o.file))}),T(4," View Diff "),C()()}if(e&2){let n=t.$implicit;E(2),we(n.file)}}function xR(e,t){if(e&1&&(w(0,"div",27)(1,"div",28),T(2),C(),w(3,"div",29),T(4),C()()),e&2){let n=t.$implicit;E(2),we(n.file),E(2),Cc(" +",n.additions," -",n.deletions," ")}}function TR(e,t){if(e&1&&(w(0,"div",17)(1,"h4",18),T(2,"Diff Summary"),C(),w(3,"div",25),ye(4,xR,5,3,"div",26),C()()),e&2){let n=ie(2);E(4),W("ngForOf",n.diffFiles)}}function AR(e,t){if(e&1&&(w(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),T(5),C(),w(6,"span",13),T(7),C(),w(8,"span",14),T(9),C()(),w(10,"h3",15),T(11),C()(),w(12,"div",16)(13,"div",17)(14,"h4",18),T(15,"Files Changed"),C(),w(16,"div",19),ye(17,SR,5,1,"div",20),C()(),ye(18,TR,5,1,"div",21),C()()()),e&2){let n=ie();E(5),we(n.commit.hash),E(2),Se("by ",n.commit.author),E(2),we(n.formatDate(n.commit.date)),E(2),we(n.commit.message),E(6),W("ngForOf",n.diffFiles),E(),W("ngIf",n.diffFiles.length>0)}}var $l=class e{commit=null;diffFiles=[];close=new ne;fileClick=new ne;isDarkMode=!1;ngOnInit(){this.checkDarkMode(),this.setupDarkModeObserver()}checkDarkMode(){this.isDarkMode=document.documentElement.classList.contains("dark")}setupDarkModeObserver(){new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&this.checkDarkMode()})}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}onClose(){this.close.emit()}onFileClick(t){this.fileClick.emit(t)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({type:e,selectors:[["app-commit-detail"]],inputs:{commit:"commit",diffFiles:"diffFiles"},outputs:{close:"close",fileClick:"fileClick"},decls:9,vars:3,consts:[[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],[1,"modal-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["class","modal-content",4,"ngIf"],[1,"modal-content"],[1,"commit-details"],[1,"commit-header"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-sections"],[1,"section"],[1,"section-title"],[1,"file-list"],["class","file-item",4,"ngFor","ngForOf"],["class","section",4,"ngIf"],[1,"file-item"],[1,"file-name"],[1,"btn","btn-primary",3,"click"],[1,"diff-summary"],["class","diff-item",4,"ngFor","ngForOf"],[1,"diff-item"],[1,"diff-file-name"],[1,"diff-stats"]],template:function(n,r){n&1&&(w(0,"div",0),Q("click",function(){return r.onClose()}),w(1,"div",1),Q("click",function(i){return i.stopPropagation()}),w(2,"div",2)(3,"h3",3),T(4,"Commit Details"),C(),w(5,"button",4),Q("click",function(){return r.onClose()}),kt(),w(6,"svg",5),ot(7,"path",6),C()()(),ye(8,AR,19,6,"div",7),C()()),n&2&&(E(),Xn("dark",r.isDarkMode),E(7),W("ngIf",r.commit))},dependencies:[it,Et,Vt],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:64rem;width:100%;max-height:100vh;overflow-y:auto;transition:background-color .2s ease,color .2s ease}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;transition:border-bottom-color .2s ease}.modal-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;transition:color .2s ease}.modal-container.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .modal-container.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.close-button[_ngcontent-%COMP%]{color:#6b7280;background:none;border:none;cursor:pointer;padding:.5rem}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.modal-content[_ngcontent-%COMP%]{padding:1.5rem}.commit-header[_ngcontent-%COMP%]{border-bottom:1px solid #e5e7eb;padding-bottom:1rem;margin-bottom:1rem;transition:border-bottom-color .2s ease}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-message[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#111827;transition:color .2s ease}.commit-sections[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.section-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.75rem;transition:color .2s ease}.file-list[_ngcontent-%COMP%], .diff-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.file-item[_ngcontent-%COMP%], .diff-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background-color:#f9fafb;border-radius:.25rem;transition:background-color .2s ease}.file-name[_ngcontent-%COMP%], .diff-file-name[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.diff-stats[_ngcontent-%COMP%]{font-size:.75rem;color:#6b7280;transition:color .2s ease}.dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .commit-hash[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-author[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-date[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-message[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-item[_ngcontent-%COMP%]{background-color:#404040!important}.dark[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-file-name[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{color:#9ca3af!important}@media (max-width: 768px){.commit-sections[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};function NR(e,t){if(e&1&&(w(0,"div",14)(1,"span",15),T(2),C(),w(3,"span",16),T(4),C()()),e&2){let n=t.$implicit;Xn("added",n.type==="added")("removed",n.type==="removed")("context",n.type==="context"),E(2),we(n.lineNumber),E(2),we(n.content)}}function RR(e,t){if(e&1&&(w(0,"div",12),ye(1,NR,5,8,"div",13),C()),e&2){let n=ie();E(),W("ngForOf",n.diffLines)("ngForTrackBy",n.trackByLine)}}function OR(e,t){e&1&&(w(0,"div",17)(1,"p"),T(2,"No diff content available for this file."),C()())}var zl=class e{fileName="";diffFile=null;close=new ne;diffLines=[];ngOnInit(){console.log("DiffViewer ngOnInit called"),this.parseDiff()}ngOnChanges(){console.log("DiffViewer ngOnChanges called"),this.parseDiff()}parseDiff(){if(console.log("parseDiff called with diffFile:",this.diffFile),!this.diffFile?.changes){console.log("No changes found in diffFile"),this.diffLines=[];return}let t=this.diffFile.changes.split(`
8
+ `);console.log("Parsed lines:",t.length),this.diffLines=t.map((n,r)=>{let o="context",i=(r+1).toString(),s=n;return n.startsWith("+")?(o="added",s=n.substring(1)):n.startsWith("-")?(o="removed",s=n.substring(1)):n.startsWith("@@")&&(i="@@",s=n),{type:o,lineNumber:i,content:s}}),console.log("Parsed diff lines:",this.diffLines.length)}onClose(){this.close.emit()}trackByLine(t,n){return`${n.type}-${t}`}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({type:e,selectors:[["app-diff-viewer"]],inputs:{fileName:"fileName",diffFile:"diffFile"},outputs:{close:"close"},features:[nn],decls:15,vars:5,consts:[[1,"diff-viewer"],[1,"diff-header"],[1,"diff-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"diff-content"],[1,"diff-stats"],[1,"stat","added"],[1,"stat","removed"],["class","diff-lines",4,"ngIf"],["class","no-diff",4,"ngIf"],[1,"diff-lines"],["class","diff-line",3,"added","removed","context",4,"ngFor","ngForOf","ngForTrackBy"],[1,"diff-line"],[1,"line-number"],[1,"line-content"],[1,"no-diff"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1)(2,"h3",2),T(3),C(),w(4,"button",3),Q("click",function(){return r.onClose()}),kt(),w(5,"svg",4),ot(6,"path",5),C()()(),Wn(),w(7,"div",6)(8,"div",7)(9,"span",8),T(10),C(),w(11,"span",9),T(12),C()(),ye(13,RR,2,2,"div",10)(14,OR,3,0,"div",11),C()()),n&2&&(E(3),Se("Diff: ",r.fileName),E(7),Se("+",(r.diffFile==null?null:r.diffFile.additions)||0," additions"),E(2),Se("-",(r.diffFile==null?null:r.diffFile.deletions)||0," deletions"),E(),W("ngIf",r.diffLines.length>0),E(),W("ngIf",r.diffLines.length===0))},dependencies:[it,Et,Vt],styles:[".diff-viewer[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:90vw;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.diff-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background-color:#f9fafb}.diff-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;margin:0}.close-button[_ngcontent-%COMP%]{background:none;border:none;color:#6b7280;cursor:pointer;padding:.25rem;border-radius:.25rem;transition:color .2s}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.diff-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:1rem}.diff-stats[_ngcontent-%COMP%]{display:flex;gap:1rem;margin-bottom:1rem;padding:.5rem;background-color:#f9fafb;border-radius:.375rem}.stat[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500}.stat.added[_ngcontent-%COMP%]{color:#059669}.stat.removed[_ngcontent-%COMP%]{color:#dc2626}.diff-lines[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.5;border:1px solid #e5e7eb;border-radius:.375rem;overflow:hidden}.diff-line[_ngcontent-%COMP%]{display:flex;padding:.125rem .5rem;border-bottom:1px solid #f3f4f6}.diff-line[_ngcontent-%COMP%]:last-child{border-bottom:none}.diff-line.added[_ngcontent-%COMP%]{background-color:#dcfce7}.diff-line.removed[_ngcontent-%COMP%]{background-color:#fee2e2}.diff-line.context[_ngcontent-%COMP%]{background-color:#f9fafb}.line-number[_ngcontent-%COMP%]{min-width:3rem;color:#6b7280;font-size:.75rem;padding-right:.5rem;border-right:1px solid #e5e7eb;margin-right:.5rem}.line-content[_ngcontent-%COMP%]{flex:1;white-space:pre-wrap;word-break:break-all}.diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#166534}.diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#991b1b}.diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#374151}.no-diff[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:#6b7280}.dark[_ngcontent-%COMP%] .diff-viewer[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] .diff-header[_ngcontent-%COMP%]{background-color:#404040;border-color:#555}.dark[_ngcontent-%COMP%] .diff-title[_ngcontent-%COMP%]{color:#e0e0e0}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .diff-lines[_ngcontent-%COMP%]{border-color:#555}.dark[_ngcontent-%COMP%] .diff-line[_ngcontent-%COMP%]{border-color:#404040}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%]{background-color:#14532d}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%]{background-color:#7f1d1d}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .line-number[_ngcontent-%COMP%]{color:#9ca3af;border-color:#555}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#bbf7d0}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#fecaca}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .no-diff[_ngcontent-%COMP%]{color:#9ca3af}"]})};var ii={default:{id:"default",name:"Default",description:"Classic blue theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#6b7280"}},ocean:{id:"ocean",name:"Ocean",description:"Deep blue ocean theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#ffffff",text:"#0f172a",border:"#e2e8f0",link:"#94a3b8",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#475569"}},forest:{id:"forest",name:"Forest",description:"Green nature theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1fae5",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6b7280"}},sunset:{id:"sunset",name:"Sunset",description:"Warm orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#fed7aa",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#6b7280"}},monochrome:{id:"monochrome",name:"Monochrome",description:"Black and white theme",colors:{primary:"#374151",secondary:"#6b7280",accent:"#111827",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1d5db",nodeFill:"#374151",nodeStroke:"#111827",graphText:"#6b7280"}},neon:{id:"neon",name:"Neon",description:"Bright neon theme",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#f0abfc",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#6b7280"}}},Rs={default:{id:"default",name:"Default Dark",description:"Classic dark theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#1a1a1a",text:"#e0e0e0",border:"#404040",link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#9ca3af"}},ocean:{id:"ocean",name:"Ocean Dark",description:"Deep ocean dark theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#0f172a",text:"#f1f5f9",border:"#334155",link:"#475569",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#94a3b8"}},forest:{id:"forest",name:"Forest Dark",description:"Dark green theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#064e3b",text:"#ecfdf5",border:"#065f46",link:"#065f46",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6ee7b7"}},sunset:{id:"sunset",name:"Sunset Dark",description:"Dark orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#451a03",text:"#fef3c7",border:"#92400e",link:"#92400e",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#fbbf24"}},monochrome:{id:"monochrome",name:"Monochrome Dark",description:"Pure black and white",colors:{primary:"#e5e7eb",secondary:"#9ca3af",accent:"#f9fafb",background:"#000000",text:"#ffffff",border:"#374151",link:"#4b5563",nodeFill:"#e5e7eb",nodeStroke:"#f9fafb",graphText:"#9ca3af"}},neon:{id:"neon",name:"Neon Dark",description:"Bright neon on dark",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#0f0f23",text:"#ffffff",border:"#312e81",link:"#581c87",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#f0abfc"}}};function kR(e,t){if(e&1&&(w(0,"option",5),T(1),C()),e&2){let n=t.$implicit;W("value",n.id),E(),Se(" ",n.name," ")}}function PR(e,t){if(e&1&&(w(0,"div",6)(1,"div",7)(2,"span",8),T(3,"Primary:"),C(),ot(4,"div",9),C(),w(5,"div",7)(6,"span",8),T(7,"Secondary:"),C(),ot(8,"div",9),C(),w(9,"div",7)(10,"span",8),T(11,"Accent:"),C(),ot(12,"div",9),C()()),e&2){let n=ie();E(4),ee("background-color",n.currentPalette.colors.primary),E(4),ee("background-color",n.currentPalette.colors.secondary),E(4),ee("background-color",n.currentPalette.colors.accent)}}var Gl=class e{selectedPalette="default";darkMode=!1;paletteChange=new ne;get availablePalettes(){let t=this.darkMode?Rs:ii;return Object.values(t)}get currentPalette(){return(this.darkMode?Rs:ii)[this.selectedPalette]||null}onPaletteChange(t){let r=t.target.value;this.paletteChange.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({type:e,selectors:[["app-color-palette-selector"]],inputs:{selectedPalette:"selectedPalette",darkMode:"darkMode"},outputs:{paletteChange:"paletteChange"},decls:6,vars:9,consts:[[1,"palette-selector"],[1,"palette-label"],[1,"palette-select",3,"change","value"],[3,"value",4,"ngFor","ngForOf"],["class","color-preview",4,"ngIf"],[3,"value"],[1,"color-preview"],[1,"preview-item"],[1,"preview-label"],[1,"color-swatch"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"label",1),T(2,"Theme:"),C(),w(3,"select",2),Q("change",function(i){return r.onPaletteChange(i)}),ye(4,kR,2,2,"option",3),C(),ye(5,PR,13,6,"div",4),C()),n&2&&(E(3),ee("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),W("value",r.selectedPalette),E(),W("ngForOf",r.availablePalettes),E(),W("ngIf",r.currentPalette))},dependencies:[it,Et,Vt],styles:[".palette-selector[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:.375rem;background-color:#ffffff0d;border:1px solid rgba(255,255,255,.1)}.palette-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:inherit;white-space:nowrap}.palette-select[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid;border-radius:.25rem;font-size:.875rem;cursor:pointer;transition:all .2s ease}.palette-select[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 2px #3b82f680}.color-preview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-left:.5rem}.preview-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.preview-label[_ngcontent-%COMP%]{font-size:.75rem;color:inherit;opacity:.7}.color-swatch[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.125rem;border:1px solid rgba(0,0,0,.1);box-shadow:0 1px 2px #0000001a}.dark[_ngcontent-%COMP%] .palette-selector[_ngcontent-%COMP%]{background-color:#0003;border-color:#ffffff1a}.dark[_ngcontent-%COMP%] .color-swatch[_ngcontent-%COMP%]{border-color:#fff3}@media (max-width: 768px){.color-preview[_ngcontent-%COMP%]{display:none}}"]})};var Wl=class e{constructor(t){this.http=t}apiUrl="/api";getCommits(t={}){let n=new URLSearchParams;return t.file&&n.set("file",t.file),t.since&&n.set("since",t.since),t.author&&n.set("author",t.author),t.page&&n.set("page",t.page.toString()),t.pageSize&&n.set("pageSize",t.pageSize.toString()),this.http.get(`${this.apiUrl}/commits?${n.toString()}`)}getCommit(t){return this.http.get(`${this.apiUrl}/commit/${t}`)}getDiff(t){return this.http.get(`${this.apiUrl}/diff/${t}`)}getBlame(t){return this.http.get(`${this.apiUrl}/blame/${encodeURIComponent(t)}`)}getTags(){return this.http.get(`${this.apiUrl}/tags`)}getBranches(){return this.http.get(`${this.apiUrl}/branches`)}static \u0275fac=function(n){return new(n||e)(k(Lc))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};function LR(e,t){if(e&1&&(w(0,"option",24),T(1),C()),e&2){let n=t.$implicit;W("value",n),E(),we(n)}}function VR(e,t){if(e&1&&(w(0,"div",25),ot(1,"div",26),w(2,"span"),T(3,"Loading commits..."),C()()),e&2){let n=ie();ee("color",n.darkMode?"#e0e0e0":"#374151")}}function jR(e,t){if(e&1){let n=Dt();w(0,"div")(1,"app-commit-graph",27),Q("commitClick",function(o){me(n);let i=ie();return ve(i.showCommitDetails(o))}),C()()}if(e&2){let n=ie();E(),W("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function BR(e,t){if(e&1){let n=Dt();w(0,"div")(1,"app-commit-list",28),Q("commitClick",function(o){me(n);let i=ie();return ve(i.showCommitDetails(o))})("pageChange",function(o){me(n);let i=ie();return ve(i.onPageChange(o))})("pageSizeChange",function(o){me(n);let i=ie();return ve(i.onPageSizeChange(o))}),C()()}if(e&2){let n=ie();E(),W("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())("currentPage",n.currentPage)("pageSize",n.pageSize)("totalCommits",n.totalCommits)("totalPages",n.totalPages)}}function UR(e,t){if(e&1){let n=Dt();w(0,"app-commit-detail",29),Q("close",function(){me(n);let o=ie();return ve(o.closeModal())})("fileClick",function(o){me(n);let i=ie();return ve(i.onFileClick(o))}),C()}if(e&2){let n=ie();W("commit",n.selectedCommit)("diffFiles",n.diffFiles)}}function HR(e,t){if(e&1){let n=Dt();w(0,"div",30),Q("click",function(){me(n);let o=ie();return ve(o.closeDiffModal())}),w(1,"div",31),Q("click",function(o){return me(n),ve(o.stopPropagation())}),w(2,"app-diff-viewer",32),Q("close",function(){me(n);let o=ie();return ve(o.closeDiffModal())}),C()()()}if(e&2){let n=ie();E(2),W("fileName",n.selectedFileName)("diffFile",n.selectedDiffFile)}}var ql=class e{constructor(t){this.gitService=t}commits=[];filteredCommits=[];authors=[];tags=[];currentPage=1;pageSize=25;totalCommits=0;totalPages=1;hasNext=!1;hasPrevious=!1;currentView="list";darkMode=!1;selectedColorPalette="default";loading=!0;showModal=!1;selectedCommit=null;diffFiles=[];showDiffModal=!1;selectedFileName="";selectedDiffFile=null;searchQuery="";selectedAuthor="";selectedSince="";fileFilter="";ngOnInit(){this.initializeDarkMode(),this.initializeColorPalette(),this.loadCommits(),this.loadTags(),this.checkDarkMode()}loadCommits(t=1){this.loading=!0,this.currentPage=t;let n={page:t,pageSize:this.pageSize};this.selectedAuthor&&(n.author=this.selectedAuthor),this.selectedSince&&(n.since=this.selectedSince),this.fileFilter&&(n.file=this.fileFilter),this.gitService.getCommits(n).subscribe({next:r=>{this.commits=r.commits,this.filteredCommits=r.commits,this.totalCommits=r.total,this.totalPages=r.totalPages,this.hasNext=r.hasNext,this.hasPrevious=r.hasPrevious,this.currentPage=r.page,this.pageSize=r.pageSize,this.authors=[...new Set(r.commits.map(o=>o.author))],this.loading=!1},error:r=>{console.error("Error loading commits:",r),this.loading=!1}})}onPageChange(t){this.loadCommits(t)}onPageSizeChange(t){this.pageSize=t,this.loadCommits(1)}loadTags(){this.gitService.getTags().subscribe({next:t=>{this.tags=t},error:t=>{console.error("Error loading tags:",t)}})}switchView(t){this.currentView=t}toggleDarkMode(){this.darkMode=!this.darkMode,document.documentElement.classList.toggle("dark",this.darkMode),document.body.classList.toggle("dark",this.darkMode),localStorage.setItem("darkMode",this.darkMode.toString()),console.log("Dark mode toggled:",this.darkMode),console.log("Document element classes:",document.documentElement.classList.toString()),console.log("Body classes:",document.body.classList.toString()),document.body.offsetHeight}checkDarkMode(){this.darkMode=document.documentElement.classList.contains("dark")}initializeDarkMode(){let t=localStorage.getItem("darkMode");t!==null&&(this.darkMode=t==="true",this.darkMode&&(document.documentElement.classList.add("dark"),document.body.classList.add("dark")))}initializeColorPalette(){let t=localStorage.getItem("colorPalette");t&&Object.keys(ii).includes(t)&&(this.selectedColorPalette=t)}onColorPaletteChange(t){this.selectedColorPalette=t,localStorage.setItem("colorPalette",t)}getCurrentPalette(){return(this.darkMode?Rs:ii)[this.selectedColorPalette]}onSearch(){this.loadCommits(1)}onAuthorFilter(){this.loadCommits(1)}onSinceFilter(){this.loadCommits(1),console.log("Date picker dark mode:",this.darkMode),console.log("Document dark class:",document.documentElement.classList.contains("dark"))}onFileFilter(){this.loadCommits(1)}showCommitDetails(t){this.selectedCommit=t,this.gitService.getDiff(t.hash).subscribe({next:n=>{this.diffFiles=n,this.showModal=!0},error:n=>{console.error("Error loading diff:",n),this.diffFiles=[],this.showModal=!0}})}closeModal(){this.showModal=!1,this.selectedCommit=null,this.diffFiles=[]}onFileClick(t){console.log("File clicked:",t),console.log("Available diff files:",this.diffFiles);let n=this.diffFiles.find(r=>r.file===t);console.log("Found diff file:",n),n?(this.selectedFileName=t,this.selectedDiffFile=n,this.showDiffModal=!0,console.log("Diff modal should be visible now")):console.warn("No diff found for file:",t)}closeDiffModal(){this.showDiffModal=!1,this.selectedFileName="",this.selectedDiffFile=null}static \u0275fac=function(n){return new(n||e)(re(Wl))};static \u0275cmp=Ye({type:e,selectors:[["app-root"]],decls:43,vars:61,consts:[[1,"app-container"],[1,"header"],[1,"container"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","space-x-4"],[1,"app-title"],[1,"flex","items-center",2,"gap","0.5rem"],[3,"click"],[3,"paletteChange","selectedPalette","darkMode"],[1,"btn","btn-secondary",3,"click"],[1,"search-container"],["type","text","placeholder","Search commits...",1,"search-input",3,"ngModelChange","input","ngModel"],[1,"filters"],[1,"filter-group"],[1,"filter-select",3,"ngModelChange","change","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","date","placeholder","Select date",1,"filter-input","date-picker",3,"ngModelChange","change","ngModel"],["type","text","placeholder","Filter by file...",1,"filter-input",3,"ngModelChange","input","ngModel"],[1,"main-content"],["class","loading",3,"color",4,"ngIf"],[4,"ngIf"],[3,"commit","diffFiles","close","fileClick",4,"ngIf"],["class","modal-overlay",3,"click",4,"ngIf"],[3,"value"],[1,"loading"],[1,"spinner"],[3,"commitClick","commits","colorPalette"],[3,"commitClick","pageChange","pageSizeChange","commits","colorPalette","currentPage","pageSize","totalCommits","totalPages"],[3,"close","fileClick","commit","diffFiles"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[3,"close","fileName","diffFile"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),T(6," \u{1F4CA} Git History UI "),C(),w(7,"div",6)(8,"button",7),Q("click",function(){return r.switchView("graph")}),T(9," Graph View "),C(),w(10,"button",7),Q("click",function(){return r.switchView("list")}),T(11," List View "),C()()(),w(12,"div",4)(13,"app-color-palette-selector",8),Q("paletteChange",function(i){return r.onColorPaletteChange(i)}),C(),w(14,"button",9),Q("click",function(){return r.toggleDarkMode()}),T(15),C(),w(16,"div",10)(17,"input",11),kr("ngModelChange",function(i){return xo(r.searchQuery,i)||(r.searchQuery=i),i}),Q("input",function(){return r.onSearch()}),C()()()()()(),w(18,"div",12)(19,"div",2)(20,"div",4)(21,"div",13)(22,"label"),T(23,"Author:"),C(),w(24,"select",14),kr("ngModelChange",function(i){return xo(r.selectedAuthor,i)||(r.selectedAuthor=i),i}),Q("change",function(){return r.onAuthorFilter()}),w(25,"option",15),T(26,"All authors"),C(),ye(27,LR,2,2,"option",16),C()(),w(28,"div",13)(29,"label"),T(30,"Since:"),C(),w(31,"input",17),kr("ngModelChange",function(i){return xo(r.selectedSince,i)||(r.selectedSince=i),i}),Q("change",function(){return r.onSinceFilter()}),C()(),w(32,"div",13)(33,"label"),T(34,"File:"),C(),w(35,"input",18),kr("ngModelChange",function(i){return xo(r.fileFilter,i)||(r.fileFilter=i),i}),Q("input",function(){return r.onFileFilter()}),C()()()()(),w(36,"main",19)(37,"div",2),ye(38,VR,4,2,"div",20)(39,jR,2,2,"div",21)(40,BR,2,6,"div",21),C()(),ye(41,UR,1,2,"app-commit-detail",22)(42,HR,3,2,"div",23),C()),n&2&&(E(),ee("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),E(4),ee("color",r.darkMode?"#e0e0e0":"#111827"),E(3),Dc(r.currentView==="graph"?"btn btn-primary":"btn btn-secondary"),E(2),Dc(r.currentView==="list"?"btn btn-primary":"btn btn-secondary"),E(3),W("selectedPalette",r.selectedColorPalette)("darkMode",r.darkMode),E(2),Se(" ",r.darkMode?"\u2600\uFE0F":"\u{1F319}"," "),E(2),ee("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.searchQuery),E(),ee("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),E(4),ee("color",r.darkMode?"#d1d5db":"#374151"),E(2),ee("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.selectedAuthor),E(3),W("ngForOf",r.authors),E(2),ee("color",r.darkMode?"#d1d5db":"#374151"),E(2),ee("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db")("caret-color",r.darkMode?"#e0e0e0":"#111827"),Or("ngModel",r.selectedSince),E(2),ee("color",r.darkMode?"#d1d5db":"#374151"),E(2),ee("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.fileFilter),E(),ee("background-color",r.darkMode?"#1a1a1a":"#f8f9fa"),E(2),W("ngIf",r.loading),E(),W("ngIf",!r.loading&&r.currentView==="graph"),E(),W("ngIf",!r.loading&&r.currentView==="list"),E(),W("ngIf",r.showModal),E(),W("ngIf",r.showDiffModal))},dependencies:[it,Et,Vt,m0,h0,g0,ul,fl,l0,np,ph,hl,Hl,$l,zl,Gl],styles:[".app-container[_ngcontent-%COMP%]{min-height:100vh;background-color:#f8f9fa;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a}.header[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;transition:background-color .2s ease,border-bottom-color .2s ease}.app-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#111827;transition:color .2s ease}.search-container[_ngcontent-%COMP%]{position:relative}.search-input[_ngcontent-%COMP%]{width:16rem;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;background-color:#fff;font-size:.875rem}.filters[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0}.filter-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#374151}.filter-select[_ngcontent-%COMP%], .filter-input[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#fff;font-size:.875rem}.date-picker[_ngcontent-%COMP%]{min-width:200px;transition:all .2s ease}.date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(.5);cursor:pointer;transition:filter .2s ease}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(1)}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input.date-picker[_ngcontent-%COMP%]{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-fields-wrapper{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-text{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-month-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-day-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-year-field{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-hour-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-minute-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-second-field{color:inherit}.main-content[_ngcontent-%COMP%]{padding:1.5rem 0;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{background-color:#1a1a1a}.loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:3rem 0;gap:.75rem}.spinner[_ngcontent-%COMP%]{width:2rem;height:2rem;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.dark[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border-color:#404040;border-top-color:#3b82f6}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:transparent;max-width:90vw;width:100%;max-height:90vh;overflow:hidden}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a!important}.dark[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-select[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]{background-color:#404040;border-color:#555;color:#e0e0e0}.dark[_ngcontent-%COMP%] .filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}"]})};ch(ql,W_).catch(e=>console.error(e));